@sisense/sdk-ui 1.16.0 → 1.17.1

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.
Files changed (65) hide show
  1. package/dist/ai.cjs +1 -1
  2. package/dist/ai.js +28 -28
  3. package/dist/analytics-composer.cjs +1 -1
  4. package/dist/analytics-composer.js +1 -1
  5. package/dist/app/client-application.d.ts +22 -2
  6. package/dist/chart-data/types.d.ts +1 -1
  7. package/dist/chart-data-options/types.d.ts +4 -2
  8. package/dist/chart-data-processor/table-processor.d.ts +1 -1
  9. package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
  10. package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
  11. package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
  12. package/dist/charts/table/data-table-wrapper.d.ts +1 -1
  13. package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
  14. package/dist/charts/table/types.d.ts +0 -1
  15. package/dist/common/components/loading-indicator.d.ts +13 -0
  16. package/dist/common/hooks/use-has-changed.d.ts +1 -1
  17. package/dist/common/hooks/use-tracking.d.ts +7 -0
  18. package/dist/common-filters/selection-utils.d.ts +1 -1
  19. package/dist/common-filters/types.d.ts +9 -3
  20. package/dist/common-filters/utils.d.ts +0 -4
  21. package/dist/dashboard/dashboard-by-id.d.ts +6 -3
  22. package/dist/dashboard/dashboard.d.ts +6 -4
  23. package/dist/dashboard/index.d.ts +1 -1
  24. package/dist/dashboard/types.d.ts +11 -6
  25. package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
  26. package/dist/dashboard-widget/types.d.ts +3 -0
  27. package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
  28. package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
  29. package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
  30. package/dist/get-widget-options-D88MkBTJ.js +37924 -0
  31. package/dist/index.cjs +181 -207
  32. package/dist/index.d.ts +3 -3
  33. package/dist/index.js +20412 -24315
  34. package/dist/models/dashboard/get-dashboard-model.d.ts +1 -1
  35. package/dist/models/dashboard/types.d.ts +17 -3
  36. package/dist/models/widget/get-widget-model.d.ts +1 -1
  37. package/dist/models/widget/translate-widget.d.ts +1 -0
  38. package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
  39. package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
  40. package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +2 -2
  41. package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
  42. package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
  43. package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
  44. package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
  45. package/dist/pivot-table/pivot-table.d.ts +2 -2
  46. package/dist/props.d.ts +32 -5
  47. package/dist/sisense-context/sisense-context.d.ts +2 -0
  48. package/dist/theme-provider/default-theme-settings.d.ts +2 -0
  49. package/dist/types.d.ts +38 -0
  50. package/dist/useQuery-CFlf48eQ.cjs +433 -0
  51. package/dist/{useQuery-DeK1uDeJ.js → useQuery-DLPVGDKo.js} +12093 -11610
  52. package/dist/utils/color/color-interpolation.d.ts +9 -0
  53. package/dist/utils/combine-handlers.d.ts +3 -0
  54. package/dist/utils/filters.d.ts +13 -1
  55. package/dist/widgets/common/drilldown-connector.d.ts +19 -0
  56. package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
  57. package/dist/widgets/use-highlight-selection.d.ts +10 -0
  58. package/package.json +7 -8
  59. package/dist/filters/utils.d.ts +0 -8
  60. package/dist/get-widget-options-D008Wku-.cjs +0 -172
  61. package/dist/get-widget-options-Xskksk4X.js +0 -34154
  62. package/dist/useQuery-aWnvBOTu.cjs +0 -433
  63. package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
  64. package/dist/widgets/common/drilldown.d.ts +0 -25
  65. package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
@@ -0,0 +1,198 @@
1
+ "use strict";var GM=Object.defineProperty,WM=Object.defineProperties;var HM=Object.getOwnPropertyDescriptors;var zs=Object.getOwnPropertySymbols;var Td=Object.prototype.hasOwnProperty,kd=Object.prototype.propertyIsEnumerable;var te=Math.pow,ph=(t,o,m)=>o in t?GM(t,o,{enumerable:!0,configurable:!0,writable:!0,value:m}):t[o]=m,jt=(t,o)=>{for(var m in o||(o={}))Td.call(o,m)&&ph(t,m,o[m]);if(zs)for(var m of zs(o))kd.call(o,m)&&ph(t,m,o[m]);return t},Zt=(t,o)=>WM(t,HM(o));var Hi=(t,o)=>{var m={};for(var R in t)Td.call(t,R)&&o.indexOf(R)<0&&(m[R]=t[R]);if(t!=null&&zs)for(var R of zs(t))o.indexOf(R)<0&&kd.call(t,R)&&(m[R]=t[R]);return m};var Je=(t,o,m)=>(ph(t,typeof o!="symbol"?o+"":o,m),m);const UM={type:"logger",log(t){this.output("log",t)},warn(t){this.output("warn",t)},error(t){this.output("error",t)},output(t,o){console&&console[t]&&console[t].apply(console,o)}};class ha{constructor(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(o,m)}init(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=m.prefix||"i18next:",this.logger=o||UM,this.options=m,this.debug=m.debug}log(){for(var o=arguments.length,m=new Array(o),R=0;R<o;R++)m[R]=arguments[R];return this.forward(m,"log","",!0)}warn(){for(var o=arguments.length,m=new Array(o),R=0;R<o;R++)m[R]=arguments[R];return this.forward(m,"warn","",!0)}error(){for(var o=arguments.length,m=new Array(o),R=0;R<o;R++)m[R]=arguments[R];return this.forward(m,"error","")}deprecate(){for(var o=arguments.length,m=new Array(o),R=0;R<o;R++)m[R]=arguments[R];return this.forward(m,"warn","WARNING DEPRECATED: ",!0)}forward(o,m,R,Q){return Q&&!this.debug?null:(typeof o[0]=="string"&&(o[0]=`${R}${this.prefix} ${o[0]}`),this.logger[m](o))}create(o){return new ha(this.logger,jt({prefix:`${this.prefix}:${o}:`},this.options))}clone(o){return o=o||this.options,o.prefix=o.prefix||this.prefix,new ha(this.logger,o)}}var gr=new ha;class Pa{constructor(){this.observers={}}on(o,m){return o.split(" ").forEach(R=>{this.observers[R]=this.observers[R]||[],this.observers[R].push(m)}),this}off(o,m){if(this.observers[o]){if(!m){delete this.observers[o];return}this.observers[o]=this.observers[o].filter(R=>R!==m)}}emit(o){for(var m=arguments.length,R=new Array(m>1?m-1:0),Q=1;Q<m;Q++)R[Q-1]=arguments[Q];this.observers[o]&&[].concat(this.observers[o]).forEach(ot=>{ot(...R)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(ot=>{ot.apply(ot,[o,...R])})}}function bo(){let t,o;const m=new Promise((R,Q)=>{t=R,o=Q});return m.resolve=t,m.reject=o,m}function Pd(t){return t==null?"":""+t}function XM(t,o,m){t.forEach(R=>{o[R]&&(m[R]=o[R])})}function sc(t,o,m){function R(ot){return ot&&ot.indexOf("###")>-1?ot.replace(/###/g,"."):ot}function Q(){return!t||typeof t=="string"}const tt=typeof o!="string"?[].concat(o):o.split(".");for(;tt.length>1;){if(Q())return{};const ot=R(tt.shift());!t[ot]&&m&&(t[ot]=new m),Object.prototype.hasOwnProperty.call(t,ot)?t=t[ot]:t={}}return Q()?{}:{obj:t,k:R(tt.shift())}}function Ld(t,o,m){const{obj:R,k:Q}=sc(t,o,Object);R[Q]=m}function YM(t,o,m,R){const{obj:Q,k:tt}=sc(t,o,Object);Q[tt]=Q[tt]||[],Q[tt].push(m)}function ca(t,o){const{obj:m,k:R}=sc(t,o);if(m)return m[R]}function $M(t,o,m){const R=ca(t,m);return R!==void 0?R:ca(o,m)}function Fg(t,o,m){for(const R in o)R!=="__proto__"&&R!=="constructor"&&(R in t?typeof t[R]=="string"||t[R]instanceof String||typeof o[R]=="string"||o[R]instanceof String?m&&(t[R]=o[R]):Fg(t[R],o[R],m):t[R]=o[R]);return t}function jn(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var VM={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function ZM(t){return typeof t=="string"?t.replace(/[&<>"'\/]/g,o=>VM[o]):t}const qM=[" ",",","?","!",";"];function KM(t,o,m){o=o||"",m=m||"";const R=qM.filter(ot=>o.indexOf(ot)<0&&m.indexOf(ot)<0);if(R.length===0)return!0;const Q=new RegExp(`(${R.map(ot=>ot==="?"?"\\?":ot).join("|")})`);let tt=!Q.test(t);if(!tt){const ot=t.indexOf(m);ot>0&&!Q.test(t.substring(0,ot))&&(tt=!0)}return tt}function ua(t,o){let m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!t)return;if(t[o])return t[o];const R=o.split(m);let Q=t;for(let tt=0;tt<R.length;++tt){if(!Q||typeof Q[R[tt]]=="string"&&tt+1<R.length)return;if(Q[R[tt]]===void 0){let ot=2,lt=R.slice(tt,tt+ot).join(m),ct=Q[lt];for(;ct===void 0&&R.length>tt+ot;)ot++,lt=R.slice(tt,tt+ot).join(m),ct=Q[lt];if(ct===void 0)return;if(ct===null)return null;if(o.endsWith(lt)){if(typeof ct=="string")return ct;if(lt&&typeof ct[lt]=="string")return ct[lt]}const ut=R.slice(tt+ot).join(m);return ut?ua(ct,ut,m):void 0}Q=Q[R[tt]]}return Q}function pa(t){return t&&t.indexOf("_")>0?t.replace("_","-"):t}class Ed extends Pa{constructor(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=o||{},this.options=m,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(o){this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}removeNamespaces(o){const m=this.options.ns.indexOf(o);m>-1&&this.options.ns.splice(m,1)}getResource(o,m,R){let Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const tt=Q.keySeparator!==void 0?Q.keySeparator:this.options.keySeparator,ot=Q.ignoreJSONStructure!==void 0?Q.ignoreJSONStructure:this.options.ignoreJSONStructure;let lt=[o,m];R&&typeof R!="string"&&(lt=lt.concat(R)),R&&typeof R=="string"&&(lt=lt.concat(tt?R.split(tt):R)),o.indexOf(".")>-1&&(lt=o.split("."));const ct=ca(this.data,lt);return ct||!ot||typeof R!="string"?ct:ua(this.data&&this.data[o]&&this.data[o][m],R,tt)}addResource(o,m,R,Q){let tt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const ot=tt.keySeparator!==void 0?tt.keySeparator:this.options.keySeparator;let lt=[o,m];R&&(lt=lt.concat(ot?R.split(ot):R)),o.indexOf(".")>-1&&(lt=o.split("."),Q=m,m=lt[1]),this.addNamespaces(m),Ld(this.data,lt,Q),tt.silent||this.emit("added",o,m,R,Q)}addResources(o,m,R){let Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const tt in R)(typeof R[tt]=="string"||Object.prototype.toString.apply(R[tt])==="[object Array]")&&this.addResource(o,m,tt,R[tt],{silent:!0});Q.silent||this.emit("added",o,m,R)}addResourceBundle(o,m,R,Q,tt){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},lt=[o,m];o.indexOf(".")>-1&&(lt=o.split("."),Q=R,R=m,m=lt[1]),this.addNamespaces(m);let ct=ca(this.data,lt)||{};Q?Fg(ct,R,tt):ct=jt(jt({},ct),R),Ld(this.data,lt,ct),ot.silent||this.emit("added",o,m,R)}removeResourceBundle(o,m){this.hasResourceBundle(o,m)&&delete this.data[o][m],this.removeNamespaces(m),this.emit("removed",o,m)}hasResourceBundle(o,m){return this.getResource(o,m)!==void 0}getResourceBundle(o,m){return m||(m=this.options.defaultNS),this.options.compatibilityAPI==="v1"?jt({},this.getResource(o,m)):this.getResource(o,m)}getDataByLanguage(o){return this.data[o]}hasLanguageSomeTranslations(o){const m=this.getDataByLanguage(o);return!!(m&&Object.keys(m)||[]).find(Q=>m[Q]&&Object.keys(m[Q]).length>0)}toJSON(){return this.data}}var Gg={processors:{},addPostProcessor(t){this.processors[t.name]=t},handle(t,o,m,R,Q){return t.forEach(tt=>{this.processors[tt]&&(o=this.processors[tt].process(o,m,R,Q))}),o}};const Od={};class da extends Pa{constructor(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),XM(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o,this),this.options=m,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=gr.create("translator")}changeLanguage(o){o&&(this.language=o)}exists(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(o==null)return!1;const R=this.resolve(o,m);return R&&R.res!==void 0}extractFromKey(o,m){let R=m.nsSeparator!==void 0?m.nsSeparator:this.options.nsSeparator;R===void 0&&(R=":");const Q=m.keySeparator!==void 0?m.keySeparator:this.options.keySeparator;let tt=m.ns||this.options.defaultNS||[];const ot=R&&o.indexOf(R)>-1,lt=!this.options.userDefinedKeySeparator&&!m.keySeparator&&!this.options.userDefinedNsSeparator&&!m.nsSeparator&&!KM(o,R,Q);if(ot&&!lt){const ct=o.match(this.interpolator.nestingRegexp);if(ct&&ct.length>0)return{key:o,namespaces:tt};const ut=o.split(R);(R!==Q||R===Q&&this.options.ns.indexOf(ut[0])>-1)&&(tt=ut.shift()),o=ut.join(Q)}return typeof tt=="string"&&(tt=[tt]),{key:o,namespaces:tt}}translate(o,m,R){if(typeof m!="object"&&this.options.overloadTranslationOptionHandler&&(m=this.options.overloadTranslationOptionHandler(arguments)),typeof m=="object"&&(m=jt({},m)),m||(m={}),o==null)return"";Array.isArray(o)||(o=[String(o)]);const Q=m.returnDetails!==void 0?m.returnDetails:this.options.returnDetails,tt=m.keySeparator!==void 0?m.keySeparator:this.options.keySeparator,{key:ot,namespaces:lt}=this.extractFromKey(o[o.length-1],m),ct=lt[lt.length-1],ut=m.lng||this.language,ft=m.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(ut&&ut.toLowerCase()==="cimode"){if(ft){const q=m.nsSeparator||this.options.nsSeparator;return Q?{res:`${ct}${q}${ot}`,usedKey:ot,exactUsedKey:ot,usedLng:ut,usedNS:ct}:`${ct}${q}${ot}`}return Q?{res:ot,usedKey:ot,exactUsedKey:ot,usedLng:ut,usedNS:ct}:ot}const yt=this.resolve(o,m);let B=yt&&yt.res;const st=yt&&yt.usedKey||ot,U=yt&&yt.exactUsedKey||ot,z=Object.prototype.toString.apply(B),X=["[object Number]","[object Function]","[object RegExp]"],V=m.joinArrays!==void 0?m.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject;if(K&&B&&(typeof B!="string"&&typeof B!="boolean"&&typeof B!="number")&&X.indexOf(z)<0&&!(typeof V=="string"&&z==="[object Array]")){if(!m.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const q=this.options.returnedObjectHandler?this.options.returnedObjectHandler(st,B,Zt(jt({},m),{ns:lt})):`key '${ot} (${this.language})' returned an object instead of string.`;return Q?(yt.res=q,yt):q}if(tt){const q=z==="[object Array]",W=q?[]:{},D=q?U:st;for(const O in B)if(Object.prototype.hasOwnProperty.call(B,O)){const w=`${D}${tt}${O}`;W[O]=this.translate(w,Zt(jt({},m),{joinArrays:!1,ns:lt})),W[O]===w&&(W[O]=B[O])}B=W}}else if(K&&typeof V=="string"&&z==="[object Array]")B=B.join(V),B&&(B=this.extendTranslation(B,o,m,R));else{let q=!1,W=!1;const D=m.count!==void 0&&typeof m.count!="string",O=da.hasDefaultValue(m),w=D?this.pluralResolver.getSuffix(ut,m.count,m):"",T=m.ordinal&&D?this.pluralResolver.getSuffix(ut,m.count,{ordinal:!1}):"",d=m[`defaultValue${w}`]||m[`defaultValue${T}`]||m.defaultValue;!this.isValidLookup(B)&&O&&(q=!0,B=d),this.isValidLookup(B)||(W=!0,B=ot);const g=(m.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&W?void 0:B,b=O&&d!==B&&this.options.updateMissing;if(W||q||b){if(this.logger.log(b?"updateKey":"missingKey",ut,ct,ot,b?d:B),tt){const E=this.resolve(ot,Zt(jt({},m),{keySeparator:!1}));E&&E.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let v=[];const S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,m.lng||this.language);if(this.options.saveMissingTo==="fallback"&&S&&S[0])for(let E=0;E<S.length;E++)v.push(S[E]);else this.options.saveMissingTo==="all"?v=this.languageUtils.toResolveHierarchy(m.lng||this.language):v.push(m.lng||this.language);const P=(E,M,f)=>{const x=O&&f!==B?f:g;this.options.missingKeyHandler?this.options.missingKeyHandler(E,ct,M,x,b,m):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(E,ct,M,x,b,m),this.emit("missingKey",E,ct,M,B)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?v.forEach(E=>{this.pluralResolver.getSuffixes(E,m).forEach(M=>{P([E],ot+M,m[`defaultValue${M}`]||d)})}):P(v,ot,d))}B=this.extendTranslation(B,o,m,yt,R),W&&B===ot&&this.options.appendNamespaceToMissingKey&&(B=`${ct}:${ot}`),(W||q)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?B=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${ct}:${ot}`:ot,q?B:void 0):B=this.options.parseMissingKeyHandler(B))}return Q?(yt.res=B,yt):B}extendTranslation(o,m,R,Q,tt){var ot=this;if(this.i18nFormat&&this.i18nFormat.parse)o=this.i18nFormat.parse(o,jt(jt({},this.options.interpolation.defaultVariables),R),Q.usedLng,Q.usedNS,Q.usedKey,{resolved:Q});else if(!R.skipInterpolation){R.interpolation&&this.interpolator.init(Zt(jt({},R),{interpolation:jt(jt({},this.options.interpolation),R.interpolation)}));const ut=typeof o=="string"&&(R&&R.interpolation&&R.interpolation.skipOnVariables!==void 0?R.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let ft;if(ut){const B=o.match(this.interpolator.nestingRegexp);ft=B&&B.length}let yt=R.replace&&typeof R.replace!="string"?R.replace:R;if(this.options.interpolation.defaultVariables&&(yt=jt(jt({},this.options.interpolation.defaultVariables),yt)),o=this.interpolator.interpolate(o,yt,R.lng||this.language,R),ut){const B=o.match(this.interpolator.nestingRegexp),st=B&&B.length;ft<st&&(R.nest=!1)}!R.lng&&this.options.compatibilityAPI!=="v1"&&Q&&Q.res&&(R.lng=Q.usedLng),R.nest!==!1&&(o=this.interpolator.nest(o,function(){for(var B=arguments.length,st=new Array(B),U=0;U<B;U++)st[U]=arguments[U];return tt&&tt[0]===st[0]&&!R.context?(ot.logger.warn(`It seems you are nesting recursively key: ${st[0]} in key: ${m[0]}`),null):ot.translate(...st,m)},R)),R.interpolation&&this.interpolator.reset()}const lt=R.postProcess||this.options.postProcess,ct=typeof lt=="string"?[lt]:lt;return o!=null&&ct&&ct.length&&R.applyPostProcessor!==!1&&(o=Gg.handle(ct,o,m,this.options&&this.options.postProcessPassResolved?jt({i18nResolved:Q},R):R,this)),o}resolve(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},R,Q,tt,ot,lt;return typeof o=="string"&&(o=[o]),o.forEach(ct=>{if(this.isValidLookup(R))return;const ut=this.extractFromKey(ct,m),ft=ut.key;Q=ft;let yt=ut.namespaces;this.options.fallbackNS&&(yt=yt.concat(this.options.fallbackNS));const B=m.count!==void 0&&typeof m.count!="string",st=B&&!m.ordinal&&m.count===0&&this.pluralResolver.shouldUseIntlApi(),U=m.context!==void 0&&(typeof m.context=="string"||typeof m.context=="number")&&m.context!=="",z=m.lngs?m.lngs:this.languageUtils.toResolveHierarchy(m.lng||this.language,m.fallbackLng);yt.forEach(X=>{this.isValidLookup(R)||(lt=X,!Od[`${z[0]}-${X}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(lt)&&(Od[`${z[0]}-${X}`]=!0,this.logger.warn(`key "${Q}" for languages "${z.join(", ")}" won't get resolved as namespace "${lt}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),z.forEach(V=>{if(this.isValidLookup(R))return;ot=V;const K=[ft];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,ft,V,X,m);else{let q;B&&(q=this.pluralResolver.getSuffix(V,m.count,m));const W=`${this.options.pluralSeparator}zero`,D=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(B&&(K.push(ft+q),m.ordinal&&q.indexOf(D)===0&&K.push(ft+q.replace(D,this.options.pluralSeparator)),st&&K.push(ft+W)),U){const O=`${ft}${this.options.contextSeparator}${m.context}`;K.push(O),B&&(K.push(O+q),m.ordinal&&q.indexOf(D)===0&&K.push(O+q.replace(D,this.options.pluralSeparator)),st&&K.push(O+W))}}let J;for(;J=K.pop();)this.isValidLookup(R)||(tt=J,R=this.getResource(V,X,J,m))}))})}),{res:R,usedKey:Q,exactUsedKey:tt,usedLng:ot,usedNS:lt}}isValidLookup(o){return o!==void 0&&!(!this.options.returnNull&&o===null)&&!(!this.options.returnEmptyString&&o==="")}getResource(o,m,R){let Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(o,m,R,Q):this.resourceStore.getResource(o,m,R,Q)}static hasDefaultValue(o){const m="defaultValue";for(const R in o)if(Object.prototype.hasOwnProperty.call(o,R)&&m===R.substring(0,m.length)&&o[R]!==void 0)return!0;return!1}}function dh(t){return t.charAt(0).toUpperCase()+t.slice(1)}class _d{constructor(o){this.options=o,this.supportedLngs=this.options.supportedLngs||!1,this.logger=gr.create("languageUtils")}getScriptPartFromCode(o){if(o=pa(o),!o||o.indexOf("-")<0)return null;const m=o.split("-");return m.length===2||(m.pop(),m[m.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(m.join("-"))}getLanguagePartFromCode(o){if(o=pa(o),!o||o.indexOf("-")<0)return o;const m=o.split("-");return this.formatLanguageCode(m[0])}formatLanguageCode(o){if(typeof o=="string"&&o.indexOf("-")>-1){const m=["hans","hant","latn","cyrl","cans","mong","arab"];let R=o.split("-");return this.options.lowerCaseLng?R=R.map(Q=>Q.toLowerCase()):R.length===2?(R[0]=R[0].toLowerCase(),R[1]=R[1].toUpperCase(),m.indexOf(R[1].toLowerCase())>-1&&(R[1]=dh(R[1].toLowerCase()))):R.length===3&&(R[0]=R[0].toLowerCase(),R[1].length===2&&(R[1]=R[1].toUpperCase()),R[0]!=="sgn"&&R[2].length===2&&(R[2]=R[2].toUpperCase()),m.indexOf(R[1].toLowerCase())>-1&&(R[1]=dh(R[1].toLowerCase())),m.indexOf(R[2].toLowerCase())>-1&&(R[2]=dh(R[2].toLowerCase()))),R.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?o.toLowerCase():o}isSupportedCode(o){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(o=this.getLanguagePartFromCode(o)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(o)>-1}getBestMatchFromCodes(o){if(!o)return null;let m;return o.forEach(R=>{if(m)return;const Q=this.formatLanguageCode(R);(!this.options.supportedLngs||this.isSupportedCode(Q))&&(m=Q)}),!m&&this.options.supportedLngs&&o.forEach(R=>{if(m)return;const Q=this.getLanguagePartFromCode(R);if(this.isSupportedCode(Q))return m=Q;m=this.options.supportedLngs.find(tt=>{if(tt===Q)return tt;if(!(tt.indexOf("-")<0&&Q.indexOf("-")<0)&&tt.indexOf(Q)===0)return tt})}),m||(m=this.getFallbackCodes(this.options.fallbackLng)[0]),m}getFallbackCodes(o,m){if(!o)return[];if(typeof o=="function"&&(o=o(m)),typeof o=="string"&&(o=[o]),Object.prototype.toString.apply(o)==="[object Array]")return o;if(!m)return o.default||[];let R=o[m];return R||(R=o[this.getScriptPartFromCode(m)]),R||(R=o[this.formatLanguageCode(m)]),R||(R=o[this.getLanguagePartFromCode(m)]),R||(R=o.default),R||[]}toResolveHierarchy(o,m){const R=this.getFallbackCodes(m||this.options.fallbackLng||[],o),Q=[],tt=ot=>{ot&&(this.isSupportedCode(ot)?Q.push(ot):this.logger.warn(`rejecting language code not found in supportedLngs: ${ot}`))};return typeof o=="string"&&(o.indexOf("-")>-1||o.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&tt(this.formatLanguageCode(o)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&tt(this.getScriptPartFromCode(o)),this.options.load!=="currentOnly"&&tt(this.getLanguagePartFromCode(o))):typeof o=="string"&&tt(this.formatLanguageCode(o)),R.forEach(ot=>{Q.indexOf(ot)<0&&tt(this.formatLanguageCode(ot))}),Q}}let JM=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],QM={1:function(t){return+(t>1)},2:function(t){return+(t!=1)},3:function(t){return 0},4:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},5:function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},6:function(t){return t==1?0:t>=2&&t<=4?1:2},7:function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},8:function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},9:function(t){return+(t>=2)},10:function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},11:function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},12:function(t){return+(t%10!=1||t%100==11)},13:function(t){return+(t!==0)},14:function(t){return t==1?0:t==2?1:t==3?2:3},15:function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},16:function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},17:function(t){return t==1||t%10==1&&t%100!=11?0:1},18:function(t){return t==0?0:t==1?1:2},19:function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},20:function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},21:function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},22:function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3}};const tA=["v1","v2","v3"],eA=["v4"],Dd={zero:0,one:1,two:2,few:3,many:4,other:5};function iA(){const t={};return JM.forEach(o=>{o.lngs.forEach(m=>{t[m]={numbers:o.nr,plurals:QM[o.fc]}})}),t}class rA{constructor(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=o,this.options=m,this.logger=gr.create("pluralResolver"),(!this.options.compatibilityJSON||eA.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=iA()}addRule(o,m){this.rules[o]=m}getRule(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(pa(o),{type:m.ordinal?"ordinal":"cardinal"})}catch(R){return}return this.rules[o]||this.rules[this.languageUtils.getLanguagePartFromCode(o)]}needsPlural(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const R=this.getRule(o,m);return this.shouldUseIntlApi()?R&&R.resolvedOptions().pluralCategories.length>1:R&&R.numbers.length>1}getPluralFormsOfKey(o,m){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(o,R).map(Q=>`${m}${Q}`)}getSuffixes(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const R=this.getRule(o,m);return R?this.shouldUseIntlApi()?R.resolvedOptions().pluralCategories.sort((Q,tt)=>Dd[Q]-Dd[tt]).map(Q=>`${this.options.prepend}${m.ordinal?`ordinal${this.options.prepend}`:""}${Q}`):R.numbers.map(Q=>this.getSuffix(o,Q,m)):[]}getSuffix(o,m){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const Q=this.getRule(o,R);return Q?this.shouldUseIntlApi()?`${this.options.prepend}${R.ordinal?`ordinal${this.options.prepend}`:""}${Q.select(m)}`:this.getSuffixRetroCompatible(Q,m):(this.logger.warn(`no plural rule found for: ${o}`),"")}getSuffixRetroCompatible(o,m){const R=o.noAbs?o.plurals(m):o.plurals(Math.abs(m));let Q=o.numbers[R];this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1&&(Q===2?Q="plural":Q===1&&(Q=""));const tt=()=>this.options.prepend&&Q.toString()?this.options.prepend+Q.toString():Q.toString();return this.options.compatibilityJSON==="v1"?Q===1?"":typeof Q=="number"?`_plural_${Q.toString()}`:tt():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&o.numbers.length===2&&o.numbers[0]===1?tt():this.options.prepend&&R.toString()?this.options.prepend+R.toString():R.toString()}shouldUseIntlApi(){return!tA.includes(this.options.compatibilityJSON)}}function Id(t,o,m){let R=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",Q=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,tt=$M(t,o,m);return!tt&&Q&&typeof m=="string"&&(tt=ua(t,m,R),tt===void 0&&(tt=ua(o,m,R))),tt}class nA{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gr.create("interpolator"),this.options=o,this.format=o.interpolation&&o.interpolation.format||(m=>m),this.init(o)}init(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};o.interpolation||(o.interpolation={escapeValue:!0});const m=o.interpolation;this.escape=m.escape!==void 0?m.escape:ZM,this.escapeValue=m.escapeValue!==void 0?m.escapeValue:!0,this.useRawValueToEscape=m.useRawValueToEscape!==void 0?m.useRawValueToEscape:!1,this.prefix=m.prefix?jn(m.prefix):m.prefixEscaped||"{{",this.suffix=m.suffix?jn(m.suffix):m.suffixEscaped||"}}",this.formatSeparator=m.formatSeparator?m.formatSeparator:m.formatSeparator||",",this.unescapePrefix=m.unescapeSuffix?"":m.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":m.unescapeSuffix||"",this.nestingPrefix=m.nestingPrefix?jn(m.nestingPrefix):m.nestingPrefixEscaped||jn("$t("),this.nestingSuffix=m.nestingSuffix?jn(m.nestingSuffix):m.nestingSuffixEscaped||jn(")"),this.nestingOptionsSeparator=m.nestingOptionsSeparator?m.nestingOptionsSeparator:m.nestingOptionsSeparator||",",this.maxReplaces=m.maxReplaces?m.maxReplaces:1e3,this.alwaysFormat=m.alwaysFormat!==void 0?m.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const o=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(o,"g");const m=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(m,"g");const R=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(R,"g")}interpolate(o,m,R,Q){let tt,ot,lt;const ct=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function ut(U){return U.replace(/\$/g,"$$$$")}const ft=U=>{if(U.indexOf(this.formatSeparator)<0){const K=Id(m,ct,U,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(K,void 0,R,Zt(jt(jt({},Q),m),{interpolationkey:U})):K}const z=U.split(this.formatSeparator),X=z.shift().trim(),V=z.join(this.formatSeparator).trim();return this.format(Id(m,ct,X,this.options.keySeparator,this.options.ignoreJSONStructure),V,R,Zt(jt(jt({},Q),m),{interpolationkey:X}))};this.resetRegExp();const yt=Q&&Q.missingInterpolationHandler||this.options.missingInterpolationHandler,B=Q&&Q.interpolation&&Q.interpolation.skipOnVariables!==void 0?Q.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:U=>ut(U)},{regex:this.regexp,safeValue:U=>this.escapeValue?ut(this.escape(U)):ut(U)}].forEach(U=>{for(lt=0;tt=U.regex.exec(o);){const z=tt[1].trim();if(ot=ft(z),ot===void 0)if(typeof yt=="function"){const V=yt(o,tt,Q);ot=typeof V=="string"?V:""}else if(Q&&Object.prototype.hasOwnProperty.call(Q,z))ot="";else if(B){ot=tt[0];continue}else this.logger.warn(`missed to pass in variable ${z} for interpolating ${o}`),ot="";else typeof ot!="string"&&!this.useRawValueToEscape&&(ot=Pd(ot));const X=U.safeValue(ot);if(o=o.replace(tt[0],X),B?(U.regex.lastIndex+=ot.length,U.regex.lastIndex-=tt[0].length):U.regex.lastIndex=0,lt++,lt>=this.maxReplaces)break}}),o}nest(o,m){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q,tt,ot;function lt(ct,ut){const ft=this.nestingOptionsSeparator;if(ct.indexOf(ft)<0)return ct;const yt=ct.split(new RegExp(`${ft}[ ]*{`));let B=`{${yt[1]}`;ct=yt[0],B=this.interpolate(B,ot);const st=B.match(/'/g),U=B.match(/"/g);(st&&st.length%2===0&&!U||U.length%2!==0)&&(B=B.replace(/'/g,'"'));try{ot=JSON.parse(B),ut&&(ot=jt(jt({},ut),ot))}catch(z){return this.logger.warn(`failed parsing options string in nesting for key ${ct}`,z),`${ct}${ft}${B}`}return delete ot.defaultValue,ct}for(;Q=this.nestingRegexp.exec(o);){let ct=[];ot=jt({},R),ot=ot.replace&&typeof ot.replace!="string"?ot.replace:ot,ot.applyPostProcessor=!1,delete ot.defaultValue;let ut=!1;if(Q[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(Q[1])){const ft=Q[1].split(this.formatSeparator).map(yt=>yt.trim());Q[1]=ft.shift(),ct=ft,ut=!0}if(tt=m(lt.call(this,Q[1].trim(),ot),ot),tt&&Q[0]===o&&typeof tt!="string")return tt;typeof tt!="string"&&(tt=Pd(tt)),tt||(this.logger.warn(`missed to resolve ${Q[1]} for nesting ${o}`),tt=""),ut&&(tt=ct.reduce((ft,yt)=>this.format(ft,yt,R.lng,Zt(jt({},R),{interpolationkey:Q[1].trim()})),tt.trim())),o=o.replace(Q[0],tt),this.regexp.lastIndex=0}return o}}function oA(t){let o=t.toLowerCase().trim();const m={};if(t.indexOf("(")>-1){const R=t.split("(");o=R[0].toLowerCase().trim();const Q=R[1].substring(0,R[1].length-1);o==="currency"&&Q.indexOf(":")<0?m.currency||(m.currency=Q.trim()):o==="relativetime"&&Q.indexOf(":")<0?m.range||(m.range=Q.trim()):Q.split(";").forEach(ot=>{if(!ot)return;const[lt,...ct]=ot.split(":"),ut=ct.join(":").trim().replace(/^'+|'+$/g,"");m[lt.trim()]||(m[lt.trim()]=ut),ut==="false"&&(m[lt.trim()]=!1),ut==="true"&&(m[lt.trim()]=!0),isNaN(ut)||(m[lt.trim()]=parseInt(ut,10))})}return{formatName:o,formatOptions:m}}function Nn(t){const o={};return function(R,Q,tt){const ot=Q+JSON.stringify(tt);let lt=o[ot];return lt||(lt=t(pa(Q),tt),o[ot]=lt),lt(R)}}class sA{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=gr.create("formatter"),this.options=o,this.formats={number:Nn((m,R)=>{const Q=new Intl.NumberFormat(m,jt({},R));return tt=>Q.format(tt)}),currency:Nn((m,R)=>{const Q=new Intl.NumberFormat(m,Zt(jt({},R),{style:"currency"}));return tt=>Q.format(tt)}),datetime:Nn((m,R)=>{const Q=new Intl.DateTimeFormat(m,jt({},R));return tt=>Q.format(tt)}),relativetime:Nn((m,R)=>{const Q=new Intl.RelativeTimeFormat(m,jt({},R));return tt=>Q.format(tt,R.range||"day")}),list:Nn((m,R)=>{const Q=new Intl.ListFormat(m,jt({},R));return tt=>Q.format(tt)})},this.init(o)}init(o){const R=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=R.formatSeparator?R.formatSeparator:R.formatSeparator||","}add(o,m){this.formats[o.toLowerCase().trim()]=m}addCached(o,m){this.formats[o.toLowerCase().trim()]=Nn(m)}format(o,m,R){let Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return m.split(this.formatSeparator).reduce((lt,ct)=>{const{formatName:ut,formatOptions:ft}=oA(ct);if(this.formats[ut]){let yt=lt;try{const B=Q&&Q.formatParams&&Q.formatParams[Q.interpolationkey]||{},st=B.locale||B.lng||Q.locale||Q.lng||R;yt=this.formats[ut](lt,st,jt(jt(jt({},ft),Q),B))}catch(B){this.logger.warn(B)}return yt}else this.logger.warn(`there was no format function for ${ut}`);return lt},o)}}function aA(t,o){t.pending[o]!==void 0&&(delete t.pending[o],t.pendingCount--)}class lA extends Pa{constructor(o,m,R){let Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=o,this.store=m,this.services=R,this.languageUtils=R.languageUtils,this.options=Q,this.logger=gr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=Q.maxParallelReads||10,this.readingCalls=0,this.maxRetries=Q.maxRetries>=0?Q.maxRetries:5,this.retryTimeout=Q.retryTimeout>=1?Q.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(R,Q.backend,Q)}queueLoad(o,m,R,Q){const tt={},ot={},lt={},ct={};return o.forEach(ut=>{let ft=!0;m.forEach(yt=>{const B=`${ut}|${yt}`;!R.reload&&this.store.hasResourceBundle(ut,yt)?this.state[B]=2:this.state[B]<0||(this.state[B]===1?ot[B]===void 0&&(ot[B]=!0):(this.state[B]=1,ft=!1,ot[B]===void 0&&(ot[B]=!0),tt[B]===void 0&&(tt[B]=!0),ct[yt]===void 0&&(ct[yt]=!0)))}),ft||(lt[ut]=!0)}),(Object.keys(tt).length||Object.keys(ot).length)&&this.queue.push({pending:ot,pendingCount:Object.keys(ot).length,loaded:{},errors:[],callback:Q}),{toLoad:Object.keys(tt),pending:Object.keys(ot),toLoadLanguages:Object.keys(lt),toLoadNamespaces:Object.keys(ct)}}loaded(o,m,R){const Q=o.split("|"),tt=Q[0],ot=Q[1];m&&this.emit("failedLoading",tt,ot,m),R&&this.store.addResourceBundle(tt,ot,R),this.state[o]=m?-1:2;const lt={};this.queue.forEach(ct=>{YM(ct.loaded,[tt],ot),aA(ct,o),m&&ct.errors.push(m),ct.pendingCount===0&&!ct.done&&(Object.keys(ct.loaded).forEach(ut=>{lt[ut]||(lt[ut]={});const ft=ct.loaded[ut];ft.length&&ft.forEach(yt=>{lt[ut][yt]===void 0&&(lt[ut][yt]=!0)})}),ct.done=!0,ct.errors.length?ct.callback(ct.errors):ct.callback())}),this.emit("loaded",lt),this.queue=this.queue.filter(ct=>!ct.done)}read(o,m,R){let Q=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,tt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,ot=arguments.length>5?arguments[5]:void 0;if(!o.length)return ot(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:o,ns:m,fcName:R,tried:Q,wait:tt,callback:ot});return}this.readingCalls++;const lt=(ut,ft)=>{if(this.readingCalls--,this.waitingReads.length>0){const yt=this.waitingReads.shift();this.read(yt.lng,yt.ns,yt.fcName,yt.tried,yt.wait,yt.callback)}if(ut&&ft&&Q<this.maxRetries){setTimeout(()=>{this.read.call(this,o,m,R,Q+1,tt*2,ot)},tt);return}ot(ut,ft)},ct=this.backend[R].bind(this.backend);if(ct.length===2){try{const ut=ct(o,m);ut&&typeof ut.then=="function"?ut.then(ft=>lt(null,ft)).catch(lt):lt(null,ut)}catch(ut){lt(ut)}return}return ct(o,m,lt)}prepareLoading(o,m){let R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),Q&&Q();typeof o=="string"&&(o=this.languageUtils.toResolveHierarchy(o)),typeof m=="string"&&(m=[m]);const tt=this.queueLoad(o,m,R,Q);if(!tt.toLoad.length)return tt.pending.length||Q(),null;tt.toLoad.forEach(ot=>{this.loadOne(ot)})}load(o,m,R){this.prepareLoading(o,m,{},R)}reload(o,m,R){this.prepareLoading(o,m,{reload:!0},R)}loadOne(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const R=o.split("|"),Q=R[0],tt=R[1];this.read(Q,tt,"read",void 0,void 0,(ot,lt)=>{ot&&this.logger.warn(`${m}loading namespace ${tt} for language ${Q} failed`,ot),!ot&&lt&&this.logger.log(`${m}loaded namespace ${tt} for language ${Q}`,lt),this.loaded(o,ot,lt)})}saveMissing(o,m,R,Q,tt){let ot=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},lt=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(m)){this.logger.warn(`did not save key "${R}" as the namespace "${m}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(R==null||R==="")){if(this.backend&&this.backend.create){const ct=Zt(jt({},ot),{isUpdate:tt}),ut=this.backend.create.bind(this.backend);if(ut.length<6)try{let ft;ut.length===5?ft=ut(o,m,R,Q,ct):ft=ut(o,m,R,Q),ft&&typeof ft.then=="function"?ft.then(yt=>lt(null,yt)).catch(lt):lt(null,ft)}catch(ft){lt(ft)}else ut(o,m,R,Q,lt,ct)}!o||!o[0]||this.store.addResource(o[0],m,R,Q)}}}function jd(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(o){let m={};if(typeof o[1]=="object"&&(m=o[1]),typeof o[1]=="string"&&(m.defaultValue=o[1]),typeof o[2]=="string"&&(m.tDescription=o[2]),typeof o[2]=="object"||typeof o[3]=="object"){const R=o[3]||o[2];Object.keys(R).forEach(Q=>{m[Q]=R[Q]})}return m},interpolation:{escapeValue:!0,format:(t,o,m,R)=>t,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function Nd(t){return typeof t.ns=="string"&&(t.ns=[t.ns]),typeof t.fallbackLng=="string"&&(t.fallbackLng=[t.fallbackLng]),typeof t.fallbackNS=="string"&&(t.fallbackNS=[t.fallbackNS]),t.supportedLngs&&t.supportedLngs.indexOf("cimode")<0&&(t.supportedLngs=t.supportedLngs.concat(["cimode"])),t}function Fs(){}function hA(t){Object.getOwnPropertyNames(Object.getPrototypeOf(t)).forEach(m=>{typeof t[m]=="function"&&(t[m]=t[m].bind(t))})}class ko extends Pa{constructor(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;if(super(),this.options=Nd(o),this.services={},this.logger=gr,this.modules={external:[]},hA(this),m&&!this.isInitialized&&!o.isClone){if(!this.options.initImmediate)return this.init(o,m),this;setTimeout(()=>{this.init(o,m)},0)}}init(){var o=this;let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=arguments.length>1?arguments[1]:void 0;typeof m=="function"&&(R=m,m={}),!m.defaultNS&&m.defaultNS!==!1&&m.ns&&(typeof m.ns=="string"?m.defaultNS=m.ns:m.ns.indexOf("translation")<0&&(m.defaultNS=m.ns[0]));const Q=jd();this.options=jt(jt(jt({},Q),this.options),Nd(m)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=jt(jt({},Q.interpolation),this.options.interpolation)),m.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=m.keySeparator),m.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=m.nsSeparator);function tt(ft){return ft?typeof ft=="function"?new ft:ft:null}if(!this.options.isClone){this.modules.logger?gr.init(tt(this.modules.logger),this.options):gr.init(null,this.options);let ft;this.modules.formatter?ft=this.modules.formatter:typeof Intl!="undefined"&&(ft=sA);const yt=new _d(this.options);this.store=new Ed(this.options.resources,this.options);const B=this.services;B.logger=gr,B.resourceStore=this.store,B.languageUtils=yt,B.pluralResolver=new rA(yt,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),ft&&(!this.options.interpolation.format||this.options.interpolation.format===Q.interpolation.format)&&(B.formatter=tt(ft),B.formatter.init(B,this.options),this.options.interpolation.format=B.formatter.format.bind(B.formatter)),B.interpolator=new nA(this.options),B.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},B.backendConnector=new lA(tt(this.modules.backend),B.resourceStore,B,this.options),B.backendConnector.on("*",function(st){for(var U=arguments.length,z=new Array(U>1?U-1:0),X=1;X<U;X++)z[X-1]=arguments[X];o.emit(st,...z)}),this.modules.languageDetector&&(B.languageDetector=tt(this.modules.languageDetector),B.languageDetector.init&&B.languageDetector.init(B,this.options.detection,this.options)),this.modules.i18nFormat&&(B.i18nFormat=tt(this.modules.i18nFormat),B.i18nFormat.init&&B.i18nFormat.init(this)),this.translator=new da(this.services,this.options),this.translator.on("*",function(st){for(var U=arguments.length,z=new Array(U>1?U-1:0),X=1;X<U;X++)z[X-1]=arguments[X];o.emit(st,...z)}),this.modules.external.forEach(st=>{st.init&&st.init(this)})}if(this.format=this.options.interpolation.format,R||(R=Fs),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const ft=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);ft.length>0&&ft[0]!=="dev"&&(this.options.lng=ft[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(ft=>{this[ft]=function(){return o.store[ft](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(ft=>{this[ft]=function(){return o.store[ft](...arguments),o}});const ct=bo(),ut=()=>{const ft=(yt,B)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),ct.resolve(B),R(yt,B)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return ft(null,this.t.bind(this));this.changeLanguage(this.options.lng,ft)};return this.options.resources||!this.options.initImmediate?ut():setTimeout(ut,0),ct}loadResources(o){let R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fs;const Q=typeof o=="string"?o:this.language;if(typeof o=="function"&&(R=o),!this.options.resources||this.options.partialBundledLanguages){if(Q&&Q.toLowerCase()==="cimode")return R();const tt=[],ot=lt=>{if(!lt)return;this.services.languageUtils.toResolveHierarchy(lt).forEach(ut=>{tt.indexOf(ut)<0&&tt.push(ut)})};Q?ot(Q):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(ct=>ot(ct)),this.options.preload&&this.options.preload.forEach(lt=>ot(lt)),this.services.backendConnector.load(tt,this.options.ns,lt=>{!lt&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),R(lt)})}else R(null)}reloadResources(o,m,R){const Q=bo();return o||(o=this.languages),m||(m=this.options.ns),R||(R=Fs),this.services.backendConnector.reload(o,m,tt=>{Q.resolve(),R(tt)}),Q}use(o){if(!o)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!o.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return o.type==="backend"&&(this.modules.backend=o),(o.type==="logger"||o.log&&o.warn&&o.error)&&(this.modules.logger=o),o.type==="languageDetector"&&(this.modules.languageDetector=o),o.type==="i18nFormat"&&(this.modules.i18nFormat=o),o.type==="postProcessor"&&Gg.addPostProcessor(o),o.type==="formatter"&&(this.modules.formatter=o),o.type==="3rdParty"&&this.modules.external.push(o),this}setResolvedLanguage(o){if(!(!o||!this.languages)&&!(["cimode","dev"].indexOf(o)>-1))for(let m=0;m<this.languages.length;m++){const R=this.languages[m];if(!(["cimode","dev"].indexOf(R)>-1)&&this.store.hasLanguageSomeTranslations(R)){this.resolvedLanguage=R;break}}}changeLanguage(o,m){var R=this;this.isLanguageChangingTo=o;const Q=bo();this.emit("languageChanging",o);const tt=ct=>{this.language=ct,this.languages=this.services.languageUtils.toResolveHierarchy(ct),this.resolvedLanguage=void 0,this.setResolvedLanguage(ct)},ot=(ct,ut)=>{ut?(tt(ut),this.translator.changeLanguage(ut),this.isLanguageChangingTo=void 0,this.emit("languageChanged",ut),this.logger.log("languageChanged",ut)):this.isLanguageChangingTo=void 0,Q.resolve(function(){return R.t(...arguments)}),m&&m(ct,function(){return R.t(...arguments)})},lt=ct=>{!o&&!ct&&this.services.languageDetector&&(ct=[]);const ut=typeof ct=="string"?ct:this.services.languageUtils.getBestMatchFromCodes(ct);ut&&(this.language||tt(ut),this.translator.language||this.translator.changeLanguage(ut),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(ut)),this.loadResources(ut,ft=>{ot(ft,ut)})};return!o&&this.services.languageDetector&&!this.services.languageDetector.async?lt(this.services.languageDetector.detect()):!o&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(lt):this.services.languageDetector.detect(lt):lt(o),Q}getFixedT(o,m,R){var Q=this;const tt=function(ot,lt){let ct;if(typeof lt!="object"){for(var ut=arguments.length,ft=new Array(ut>2?ut-2:0),yt=2;yt<ut;yt++)ft[yt-2]=arguments[yt];ct=Q.options.overloadTranslationOptionHandler([ot,lt].concat(ft))}else ct=jt({},lt);ct.lng=ct.lng||tt.lng,ct.lngs=ct.lngs||tt.lngs,ct.ns=ct.ns||tt.ns,ct.keyPrefix=ct.keyPrefix||R||tt.keyPrefix;const B=Q.options.keySeparator||".";let st;return ct.keyPrefix&&Array.isArray(ot)?st=ot.map(U=>`${ct.keyPrefix}${B}${U}`):st=ct.keyPrefix?`${ct.keyPrefix}${B}${ot}`:ot,Q.t(st,ct)};return typeof o=="string"?tt.lng=o:tt.lngs=o,tt.ns=m,tt.keyPrefix=R,tt}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(o){this.options.defaultNS=o}hasLoadedNamespace(o){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const R=m.lng||this.resolvedLanguage||this.languages[0],Q=this.options?this.options.fallbackLng:!1,tt=this.languages[this.languages.length-1];if(R.toLowerCase()==="cimode")return!0;const ot=(lt,ct)=>{const ut=this.services.backendConnector.state[`${lt}|${ct}`];return ut===-1||ut===2};if(m.precheck){const lt=m.precheck(this,ot);if(lt!==void 0)return lt}return!!(this.hasResourceBundle(R,o)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||ot(R,o)&&(!Q||ot(tt,o)))}loadNamespaces(o,m){const R=bo();return this.options.ns?(typeof o=="string"&&(o=[o]),o.forEach(Q=>{this.options.ns.indexOf(Q)<0&&this.options.ns.push(Q)}),this.loadResources(Q=>{R.resolve(),m&&m(Q)}),R):(m&&m(),Promise.resolve())}loadLanguages(o,m){const R=bo();typeof o=="string"&&(o=[o]);const Q=this.options.preload||[],tt=o.filter(ot=>Q.indexOf(ot)<0);return tt.length?(this.options.preload=Q.concat(tt),this.loadResources(ot=>{R.resolve(),m&&m(ot)}),R):(m&&m(),Promise.resolve())}dir(o){if(o||(o=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!o)return"rtl";const m=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],R=this.services&&this.services.languageUtils||new _d(jd());return m.indexOf(R.getLanguagePartFromCode(o))>-1||o.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1?arguments[1]:void 0;return new ko(o,m)}cloneInstance(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Fs;const R=o.forkResourceStore;R&&delete o.forkResourceStore;const Q=Zt(jt(jt({},this.options),o),{isClone:!0}),tt=new ko(Q);return(o.debug!==void 0||o.prefix!==void 0)&&(tt.logger=tt.logger.clone(o)),["store","services","language"].forEach(lt=>{tt[lt]=this[lt]}),tt.services=jt({},this.services),tt.services.utils={hasLoadedNamespace:tt.hasLoadedNamespace.bind(tt)},R&&(tt.store=new Ed(this.store.data,Q),tt.services.resourceStore=tt.store),tt.translator=new da(tt.services,Q),tt.translator.on("*",function(lt){for(var ct=arguments.length,ut=new Array(ct>1?ct-1:0),ft=1;ft<ct;ft++)ut[ft-1]=arguments[ft];tt.emit(lt,...ut)}),tt.init(Q,m),tt.translator.options=Q,tt.translator.backendConnector.services.utils={hasLoadedNamespace:tt.hasLoadedNamespace.bind(tt)},tt}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const Wg=ko.createInstance();Wg.createInstance=ko.createInstance;const cA={error:"Error"},uA={error:"Помилка"},Bd="common",pA={en:cA,uk:uA},ur=Wg.createInstance({defaultNS:Bd,resources:dA(pA,Bd),lng:"en",fallbackLng:"en"}),ac={i18nextInstance:ur,initPromise:ur.init().then(()=>ur)},ta=new Map;ta.set("common",ac);const lc=t=>{if(ta.has(t.namespace))return ta.get(t.namespace);if(t.plugins)for(const tt of t.plugins)ur.use(tt);Object.keys(t.resource).forEach(tt=>{ur.addResourceBundle(tt,t.namespace,t.resource[tt])});const o=ur.cloneInstance({defaultNS:t.namespace});let m=ac.initPromise.then(()=>o);o.on("languageChanged",tt=>{ur.language!==tt&&ur.changeLanguage(tt)}),ur.on("languageChanged",tt=>{o.language!==tt&&o.changeLanguage(tt)});const R=t.language||"en";ur.language!==R&&(m=m.then(()=>o.changeLanguage(R)).then(()=>o));const Q={initPromise:m,i18nextInstance:o};return ta.set(t.namespace,Q),Q};function dA(t,o){return Object.keys(t).reduce((m,R)=>(m[R]={[o]:t[R]},m),{})}class hc extends Error{constructor(o,m,R){const{key:Q,interpolationOptions:tt}=m,ot=R||ac.i18nextInstance.t,lt=Object.assign(Object.assign({},tt),{ns:o}),ct=ot(Q,Object.assign(Object.assign({},lt),{lng:"en"}));super(ct),this.key=Q,this.namespace=o,this.interpolationOptions=lt}}var Si=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Mi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function fA(t){if(t.__esModule)return t;var o=t.default;if(typeof o=="function"){var m=function R(){return this instanceof R?Reflect.construct(o,arguments,this.constructor):o.apply(this,arguments)};m.prototype=o.prototype}else m={};return Object.defineProperty(m,"__esModule",{value:!0}),Object.keys(t).forEach(function(R){var Q=Object.getOwnPropertyDescriptor(t,R);Object.defineProperty(m,R,Q.get?Q:{enumerable:!0,get:function(){return t[R]}})}),m}const gA=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,mA={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},yA=t=>mA[t],vA=t=>t.replace(gA,yA);let kh={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:vA};function bA(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};kh=jt(jt({},kh),t)}function xA(){return kh}let Hg;function wA(t){Hg=t}function CA(){return Hg}const SA={type:"3rdParty",init(t){bA(t.options.react),wA(t)}},MA={errors:{noSisenseContext:"Sisense context is not initialized",componentRenderError:"Unable to render the component",sisenseContextNoAuthentication:"Authentication method is not specified",chartNoSisenseContext:"Sisense Context for Chart not found. To fix, add a dataSet to the Chart or wrap the component inside a Sisense context provider.",dashboardWidgetNoSisenseContext:"Sisense Context for Dashboard Widget not found. To fix, wrap the component inside a Sisense context provider.",dashboardWidgetInvalidIdentifiers:"Failed to retrieve widget. Please make sure the dashboard widget exists and is accessible.",dashboardWidgetsInvalidIdentifiers:"Failed to retrieve dashboard widgets. Please make sure the dashboard exists and is accessible.",executeQueryNoSisenseContext:"Sisense Context for query execution not found. To fix, wrap the component inside a Sisense context provider.",executeQueryNoDataSource:"No dataSource provided to execute query",dataOptions:{emptyValueArray:'Invalid dataOptions – Array "value" is empty',noDimensionsAndMeasures:"Neither dimensions nor measures found. Data options should have at least one dimension or measure.",attributeNotFound:'Attribute "{{attributeName}}" not found in the data',measureNotFound:'Measure "{{measureName}}" not found in the data',filterAttributeNotFound:'Filter attribute "{{attributeName}}" not found in the data',highlightAttributeNotFound:'Highlight attribute "{{attributeName}}" not found in the data'},themeNotFound:"Theme with oid {{themeOid}} not found in the Sisense instance",paletteNotFound:"Palette '{{paletteName}}' not found in the Sisense instance",chartTypeNotSupported:"Chart type {{chartType}} is not supported",chartInvalidProps:"Invalid chart props",unsupportedWidgetType:"Can't extract props for unsupported widget type - {{widgetType}}",sisenseContextNotFound:"Sisense Context not found. Please ensure it is provided.",dashboardInvalidIdentifier:"Failed to retrieve dashboard. Please make sure the dashboard exists and is accessible.",sharedFormula:{identifierExpected:"Failed to identify shared formula. Please provide oid or both name and datasource",failedToFetch:"Failed to fetch shared formula"},widgetModel:{pivotWidgetNotSupported:"Pivot widget is not supported for method {{methodName}}",onlyTableWidgetSupported:"Only table widget is supported for method {{methodName}}",onlyPivotWidgetSupported:"Only pivot widget is supported for method {{methodName}}"},unknownFilterInFilterRelations:"Filter relations contain unknown filter",filterRelationsNotSupported:"Filter relations not supported yet",invalidFilterType:"Invalid filter type",secondsDateTimeLevelSupportedOnlyForLive:"Seconds datetime level is supported only for the 'live' datasource"},errorBoxText:"$t(common:error): {{errorMessage}}",chartNoData:"No Results",criteriaFilter:{equals:"Equals {{val}}",notEquals:"Does not equal {{val}}",lessThan:"Less than {{val}}",lessThanOrEqual:"Less than or equal to {{val}}",greaterThan:"Greater than {{val}}",greaterThanOrEqual:"Greater than or equal to {{val}}",between:"Between {{valA}} and {{valB}}",notBetween:"Not between {{valA}} and {{valB}}",top:"Top {{valA}} by {{valB}}",bottom:"Last {{valA}} by {{valB}}",is:"Is {{val}}",isNot:"Is not {{val}}",contains:"Contains {{val}}",notContains:"Doesn't contain {{val}}",startsWith:"Starts with {{val}}",notStartsWith:"Doesn't start with {{val}}",endsWith:"Ends with {{val}}",notEndsWith:"Doesn't end with {{val}}",like:"Is like {{val}}",byMeasure:"By measure",by:"by"},dateFilter:{last:"Last",next:"Next",from:"From",count:"Count",today:"Today",days:"Days",weeks:"Weeks",months:"Months",quarters:"Quarters",years:"Years",earliestDate:"Earliest Date",latestDate:"Latest Date",todayOutOfRange:"Today is out of available date range"},boxplot:{tooltip:{whiskers:"Whiskers",box:"Box",min:"Min",median:"Median",max:"Max"}},advanced:{tooltip:{min:"Lower Bound",max:"Upper Bound",forecastValue:"Forecast Value",forecast:"Forecast",trend:"Trend"}},arearange:{tooltip:{min:"Min",max:"Max"}},unsupportedFilter:{title:"Unsupported Filter",message:"Applied to the data query"},commonFilter:{clearSelectionButton:"Clear Selection"},customFilterTileMessage:"filtered with custom filter"},AA={errors:{noSisenseContext:"Контекст Sisense не ініціалізовано",componentRenderError:"Не вдалося відобразити компонент",sisenseContextNoAuthentication:"Не вказано метод аутентифікації",chartNoSisenseContext:"Контекст Sisense для діаграми не знайдено. Щоб виправити, додайте набір даних до Chart або оберніть компонент у SisenseContextProvider.",dashboardWidgetNoSisenseContext:"Контекст Sisense для віджета дашборди не знайдено. Щоб виправити, оберніть компонент у SisenseContextProvider.",dashboardWidgetInvalidIdentifiers:"Не вдалося отримати віджет. Переконайтеся, що віджет дашборди існує і доступний.",dashboardWidgetsInvalidIdentifiers:"Не вдалося отримати віджети дашборди. Переконайтеся, що дашборда існує і доступна.",executeQueryNoSisenseContext:"Контекст Sisense для виконання запиту не знайдено. Щоб виправити, оберніть компонент у SisenseContextProvider.",executeQueryNoDataSource:"Не надано dataSource для виконання запиту",dataOptions:{emptyValueArray:'Недійсні dataOptions - Масив "value" порожній',noDimensionsAndMeasures:"Не знайдено ні dimension-ів, ні measure-ів. Параметри даних повинні мати щонайменше один dimension або measure.",attributeNotFound:'Атрибут "{{attributeName}}" не знайдено в даних',measureNotFound:'Measure "{{measureName}}" не знайдено в даних',filterAttributeNotFound:'Атрибут фільтра "{{attributeName}}" не знайдено в даних',highlightAttributeNotFound:'Атрибут виділення "{{attributeName}}" не знайдено в даних'},themeNotFound:"Тему з oid {{themeOid}} не знайдено на Sisense-сервері",paletteNotFound:'Палітру "{{paletteName}}" не знайдено на Sisense-сервері',chartTypeNotSupported:"Тип діаграми {{chartType}} не підтримується",chartInvalidProps:"Недійсні параметри діаграми",unsupportedWidgetType:"Неможливо отримати властивості для непідтримуваного типу віджета - {{widgetType}}",sisenseContextNotFound:"Контекст Sisense не знайдено. Переконайтеся, що він наданий.",dashboardInvalidIdentifier:"Не вдалося отримати дашборд. Переконайтеся, що дашборд існує і доступний.",sharedFormula:{identifierExpected:"Не вдалося ідентифікувати загальну формулу. Будь ласка, надайте oid або пару name та datasource",failedToFetch:"Не вдалося отримати спільну формулу"},widgetModel:{pivotWidgetNotSupported:"Метод {{methodName}} не підтримується для півот віджету",onlyTableWidgetSupported:"Метод {{methodName}} підтримуються тільки для табличним віджетом",onlyPivotWidgetSupported:"Метод {{methodName}} підтримуються тільки для півот віджетом"},unknownFilterInFilterRelations:"Логічні відношення фільтрів містять невідомий фільтр",filterRelationsNotSupported:"Відносини фільтрів ще не підтримуються",invalidFilterType:"Недійсний тип фільтра",secondsDateTimeLevelSupportedOnlyForLive:"Рівень часу в секундах підтримується лише для 'live' джерела даних"},errorBoxText:"$t(common:error): {{errorMessage}}",chartNoData:"Результатів немає",criteriaFilter:{equals:"Дорівнює {{val}}",notEquals:"Не дорівнює {{val}}",lessThan:"Менше ніж {{val}}",lessThanOrEqual:"Менше або дорівнює {{val}}",greaterThan:"Більше ніж {{val}}",greaterThanOrEqual:"Більше або дорівнює {{val}}",between:"Між {{valA}} та {{valB}}",notBetween:"Не між {{valA}} та {{valB}}",top:"Перші {{valA}} за {{valB}}",bottom:"Останні {{valA}} за {{valB}}",is:"Є {{val}}",isNot:"Не є {{val}}",contains:"Містить {{val}}",notContains:"Не містить {{val}}",startsWith:"Починається з {{val}}",notStartsWith:"Не починається з {{val}}",endsWith:"Закінчується на {{val}}",notEndsWith:"Не закінчується на {{val}}",like:"Схоже на {{val}}",byMeasure:"By measure",by:"by"},dateFilter:{last:"Last",next:"Next",from:"From",count:"Count",today:"Today",days:"Days",weeks:"Weeks",months:"Months",quarters:"Quarters",years:"Years",earliestDate:"Earliest Date",latestDate:"Latest Date",todayOutOfRange:"Today is out of available date range"},boxplot:{tooltip:{whiskers:"Вуса",box:"Коробка",min:"Мінімум",median:"Медіана",max:"Максимум"}},advanced:{tooltip:{min:"Lower Bound",max:"Upper Bound",forecastValue:"Forecast Value",forecast:"Forecast",trend:"Trend"}},arearange:{tooltip:{min:"Мінімум",max:"Максимум"}},unsupportedFilter:{title:"Непідтримуваний Фільтр",message:"Застосовано до запиту даних"},commonFilter:{clearSelectionButton:"Очистити виділення"},customFilterTileMessage:"застосовано користувацький фільтр"},Ug="sdkUi",TA={en:MA,uk:AA};function Xg(){return lc({resource:TA,plugins:[SA],language:"en",namespace:Ug})}const{i18nextInstance:kA}=Xg(),Rd=t=>{if(typeof t=="object"&&t!==null){if(typeof Object.getPrototypeOf=="function"){const o=Object.getPrototypeOf(t);return o===Object.prototype||o===null}return Object.prototype.toString.call(t)==="[object Object]"}return!1},Xi=(...t)=>t.reduce((o,m)=>{if(Array.isArray(m))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(m).forEach(R=>{["__proto__","constructor","prototype"].includes(R)||(Array.isArray(o[R])&&Array.isArray(m[R])?o[R]=Xi.options.mergeArrays?Array.from(new Set(o[R].concat(m[R]))):m[R]:Rd(o[R])&&Rd(m[R])?o[R]=Xi(o[R],m[R]):o[R]=m[R])}),o},{}),Yg={mergeArrays:!0};Xi.options=Yg;Xi.withOptions=(t,...o)=>{Xi.options=Object.assign({mergeArrays:!0},t);const m=Xi(...o);return Xi.options=Yg,m};const PA={errors:{measure:{unsupportedType:"Unsupported measure type",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure must have 'context' property"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure must have 'attribute'/'dim'/'expression' property",noAggAggregation:"DimensionalBaseMeasure must have 'agg' or 'aggregation' property"}},dataModelConfig:{noName:"'name' must be specified in config for DataModel",noMetadata:"'metadata' must be specified in config for DataModel"},filter:{unsupportedType:"Unsupported filter type: {{filterType}}",unsupportedDatetimeLevel:'Filters do not support the next "datetime" levels: Hours, MinutesRoundTo30, MinutesRoundTo15, Minutes, Seconds',membersFilterNullMember:"MembersFilter of {{attributeId}} - member cannot be null"},unsupportedDimensionalElement:"Unsupported dimensional element type"}},LA={errors:{measure:{unsupportedType:"Непідтримуваний тип measure",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure має мати властивість 'context'"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure має мати властивість 'attribute'/'dim'/'expression'",noAggAggregation:"DimensionalBaseMeasure має мати властивість 'agg' або 'aggregation'"}},dataModelConfig:{noName:"'name' має бути вказано в конфігурації для DataModel",noMetadata:"'metadata' має бути вказано в конфігурації для DataModel"},filter:{unsupportedType:"Непідтримуваний тип фільтра: {{filterType}}",unsupportedDatetimeLevel:'Фільтри не підтримують наступні рівні "datetime": Hours, MinutesRoundTo30, MinutesRoundTo15, Minutes, Seconds',membersFilterNullMember:"MembersFilter у {{attributeId}} - member не може бути нульовим"},unsupportedDimensionalElement:"Непідтримуваний тип елемента"}},$g="sdkData",EA={en:PA,uk:LA};function OA(){return lc({resource:EA,language:"en",namespace:$g})}const{i18nextInstance:_A}=OA(),Ge={Sum:"sum",Average:"avg",Min:"min",Max:"max",Count:"count",CountDistinct:"countDistinct",Median:"median",Variance:"var",StandardDeviation:"stdev"};exports.Sort=void 0;(function(t){t[t.None=0]="None",t[t.Ascending=1]="Ascending",t[t.Descending=2]="Descending"})(exports.Sort=exports.Sort||(exports.Sort={}));const me={Measure:"measure",MeasureTemplate:"measuretemplate",BaseMeasure:"basemeasure",CalculatedMeasure:"calculatedmeasure",Dimension:"dimension",DateDimension:"datedimension",TextDimension:"textdimension",NumericDimension:"numericdimension",DateLevel:"datelevel",Attribute:"attribute",TextAttribute:"text-attribute",NumericAttribute:"numeric-attribute",Filter:"filter",DimensionFilter:"dimensionfilter",MeasureFilter:"measurefilter",isMetadata(t){return me.isMeasure(t)||me.isDimension(t)||me.isAttribute(t)||me.isFilter(t)},isMeasureTemplate(t){return t?typeof t=="string"?t.toLowerCase()===me.MeasureTemplate:t.agg==="*"||t.aggregation==="*"||t.type&&t.type.toLowerCase()===me.MeasureTemplate:!1},isBaseMeasure(t){return t?typeof t=="string"?t.toLowerCase()===me.BaseMeasure:(t.agg||t.aggregation)&&t.attribute&&!this.isMeasureTemplate(t):!1},isMeasure(t){if(!t)return!1;if(typeof t=="string"){const o=t;return o.toLowerCase()===me.Measure||o.toLowerCase()===me.BaseMeasure||o.toLowerCase()===me.MeasureTemplate||o.toLowerCase()===me.CalculatedMeasure}return this.isBaseMeasure(t)||this.isCalculatedMeasure(t)||this.isMeasureTemplate(t)},isCalculatedMeasure(t){return t?typeof t=="string"?t.toLowerCase()===me.CalculatedMeasure:(t.expression||t.formula)&&t.context:!1},isDateDimension(t){return t?typeof t=="string"?t.toLowerCase()===me.DateDimension:(t.dim||t.expression)&&t.level:!1},isTextDimension(t){return t&&typeof t=="string"?t.toLowerCase()===me.TextDimension:!1},isNumericDimension(t){return t&&typeof t=="string"?t.toLowerCase()===me.NumericDimension:!1},isDimension(t){if(typeof t=="object"&&(t=t.type),typeof t=="string"){const o=t;return o.toLowerCase()===me.DateDimension||o.toLowerCase()===me.Dimension||o.toLowerCase()===me.TextDimension||o.toLowerCase()===me.NumericDimension}return!1},isAttribute(t){if(typeof t=="string"){const o=t;return o.toLowerCase()===me.Attribute||o.toLowerCase()===me.TextAttribute||o.toLowerCase()===me.NumericAttribute||o.toLowerCase()===me.DateLevel}return t&&t.type?this.isAttribute(t.type):!1},isFilter(t){if(typeof t=="object"&&(t=t.type),typeof t=="string"){const o=t;return o.toLowerCase()===me.Filter||o.toLowerCase()===me.DimensionFilter||o.toLowerCase()===me.MeasureFilter}return!1}},Jt={Years:"Years",Quarters:"Quarters",Months:"Months",Weeks:"Weeks",Days:"Days",Hours:"Hours",MinutesRoundTo30:"MinutesRoundTo30",MinutesRoundTo15:"MinutesRoundTo15",Minutes:"Minutes",Seconds:"Seconds",AggHours:"AggHours",AggMinutesRoundTo30:"AggMinutesRoundTo30",AggMinutesRoundTo15:"AggMinutesRoundTo15",AggMinutesRoundTo1:"AggMinutesRoundTo1",get all(){return[Jt.Years,Jt.Quarters,Jt.Months,Jt.Weeks,Jt.Days,Jt.Hours,Jt.MinutesRoundTo30,Jt.MinutesRoundTo15,Jt.Minutes,Jt.Seconds,Jt.AggHours,Jt.AggMinutesRoundTo30,Jt.AggMinutesRoundTo15,Jt.AggMinutesRoundTo1]}};exports.DataType=void 0;(function(t){t.TEXT="text",t.NUMERIC="numeric",t.DATETIME="datetime"})(exports.DataType=exports.DataType||(exports.DataType={}));var Ao;(function(t){t.ASC="asc",t.DESC="desc"})(Ao=Ao||(Ao={}));class La{constructor(o,m,R){this._name=o,this.type=m,this.description=R||""}get name(){return this._name}set name(o){this._name=o}serializable(){return{name:this.name,type:this.type,desc:this.description,__serializable:"DimensionalElement"}}toJSON(){return this.serializable()}toString(){return this.jaql()}}function Ur(t){let o=t.replace(/[^a-zA-Z0-9_]/g,"");return o.charAt(0).match(/[0-9]/)&&(o="_"+o),o}var DA=typeof Si=="object"&&Si&&Si.Object===Object&&Si,Vg=DA,IA=Vg,jA=typeof self=="object"&&self&&self.Object===Object&&self,NA=IA||jA||Function("return this")(),Zi=NA,BA=Zi,RA=BA.Symbol,$n=RA,zd=$n,Zg=Object.prototype,zA=Zg.hasOwnProperty,FA=Zg.toString,xo=zd?zd.toStringTag:void 0;function GA(t){var o=zA.call(t,xo),m=t[xo];try{t[xo]=void 0;var R=!0}catch(tt){}var Q=FA.call(t);return R&&(o?t[xo]=m:delete t[xo]),Q}var WA=GA,HA=Object.prototype,UA=HA.toString;function XA(t){return UA.call(t)}var YA=XA,Fd=$n,$A=WA,VA=YA,ZA="[object Null]",qA="[object Undefined]",Gd=Fd?Fd.toStringTag:void 0;function KA(t){return t==null?t===void 0?qA:ZA:Gd&&Gd in Object(t)?$A(t):VA(t)}var yn=KA;function JA(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}var br=JA;const QA=Mi(br);var tT=yn,eT=br,iT="[object AsyncFunction]",rT="[object Function]",nT="[object GeneratorFunction]",oT="[object Proxy]";function sT(t){if(!eT(t))return!1;var o=tT(t);return o==rT||o==nT||o==iT||o==oT}var Ea=sT;const aT=Mi(Ea);var lT=Zi,hT=lT["__core-js_shared__"],cT=hT,fh=cT,Wd=function(){var t=/[^.]+$/.exec(fh&&fh.keys&&fh.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function uT(t){return!!Wd&&Wd in t}var pT=uT,dT=Function.prototype,fT=dT.toString;function gT(t){if(t!=null){try{return fT.call(t)}catch(o){}try{return t+""}catch(o){}}return""}var qg=gT,mT=Ea,yT=pT,vT=br,bT=qg,xT=/[\\^$.*+?()[\]{}|]/g,wT=/^\[object .+?Constructor\]$/,CT=Function.prototype,ST=Object.prototype,MT=CT.toString,AT=ST.hasOwnProperty,TT=RegExp("^"+MT.call(AT).replace(xT,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kT(t){if(!vT(t)||yT(t))return!1;var o=mT(t)?TT:wT;return o.test(bT(t))}var PT=kT;function LT(t,o){return t==null?void 0:t[o]}var ET=LT,OT=PT,_T=ET;function DT(t,o){var m=_T(t,o);return OT(m)?m:void 0}var vn=DT,IT=vn,jT=function(){try{var t=IT(Object,"defineProperty");return t({},"",{}),t}catch(o){}}(),Kg=jT,Hd=Kg;function NT(t,o,m){o=="__proto__"&&Hd?Hd(t,o,{configurable:!0,enumerable:!0,value:m,writable:!0}):t[o]=m}var Oa=NT;function BT(t){return function(o,m,R){for(var Q=-1,tt=Object(o),ot=R(o),lt=ot.length;lt--;){var ct=ot[t?lt:++Q];if(m(tt[ct],ct,tt)===!1)break}return o}}var RT=BT,zT=RT,FT=zT(),Jg=FT;function GT(t,o){for(var m=-1,R=Array(t);++m<t;)R[m]=o(m);return R}var WT=GT;function HT(t){return t!=null&&typeof t=="object"}var Dr=HT,UT=yn,XT=Dr,YT="[object Arguments]";function $T(t){return XT(t)&&UT(t)==YT}var VT=$T,Ud=VT,ZT=Dr,Qg=Object.prototype,qT=Qg.hasOwnProperty,KT=Qg.propertyIsEnumerable,JT=Ud(function(){return arguments}())?Ud:function(t){return ZT(t)&&qT.call(t,"callee")&&!KT.call(t,"callee")},jo=JT,QT=Array.isArray,qi=QT,Ph={exports:{}};function t2(){return!1}var e2=t2;(function(t,o){var m=Zi,R=e2,Q=o&&!o.nodeType&&o,tt=Q&&!0&&t&&!t.nodeType&&t,ot=tt&&tt.exports===Q,lt=ot?m.Buffer:void 0,ct=lt?lt.isBuffer:void 0,ut=ct||R;t.exports=ut})(Ph,Ph.exports);var No=Ph.exports,i2=9007199254740991,r2=/^(?:0|[1-9]\d*)$/;function n2(t,o){var m=typeof t;return o=o==null?i2:o,!!o&&(m=="number"||m!="symbol"&&r2.test(t))&&t>-1&&t%1==0&&t<o}var _a=n2,o2=9007199254740991;function s2(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=o2}var cc=s2,a2=yn,l2=cc,h2=Dr,c2="[object Arguments]",u2="[object Array]",p2="[object Boolean]",d2="[object Date]",f2="[object Error]",g2="[object Function]",m2="[object Map]",y2="[object Number]",v2="[object Object]",b2="[object RegExp]",x2="[object Set]",w2="[object String]",C2="[object WeakMap]",S2="[object ArrayBuffer]",M2="[object DataView]",A2="[object Float32Array]",T2="[object Float64Array]",k2="[object Int8Array]",P2="[object Int16Array]",L2="[object Int32Array]",E2="[object Uint8Array]",O2="[object Uint8ClampedArray]",_2="[object Uint16Array]",D2="[object Uint32Array]",Re={};Re[A2]=Re[T2]=Re[k2]=Re[P2]=Re[L2]=Re[E2]=Re[O2]=Re[_2]=Re[D2]=!0;Re[c2]=Re[u2]=Re[S2]=Re[p2]=Re[M2]=Re[d2]=Re[f2]=Re[g2]=Re[m2]=Re[y2]=Re[v2]=Re[b2]=Re[x2]=Re[w2]=Re[C2]=!1;function I2(t){return h2(t)&&l2(t.length)&&!!Re[a2(t)]}var j2=I2;function N2(t){return function(o){return t(o)}}var Da=N2,Lh={exports:{}};(function(t,o){var m=Vg,R=o&&!o.nodeType&&o,Q=R&&!0&&t&&!t.nodeType&&t,tt=Q&&Q.exports===R,ot=tt&&m.process,lt=function(){try{var ct=Q&&Q.require&&Q.require("util").types;return ct||ot&&ot.binding&&ot.binding("util")}catch(ut){}}();t.exports=lt})(Lh,Lh.exports);var uc=Lh.exports,B2=j2,R2=Da,Xd=uc,Yd=Xd&&Xd.isTypedArray,z2=Yd?R2(Yd):B2,Ia=z2,F2=WT,G2=jo,W2=qi,H2=No,U2=_a,X2=Ia,Y2=Object.prototype,$2=Y2.hasOwnProperty;function V2(t,o){var m=W2(t),R=!m&&G2(t),Q=!m&&!R&&H2(t),tt=!m&&!R&&!Q&&X2(t),ot=m||R||Q||tt,lt=ot?F2(t.length,String):[],ct=lt.length;for(var ut in t)(o||$2.call(t,ut))&&!(ot&&(ut=="length"||Q&&(ut=="offset"||ut=="parent")||tt&&(ut=="buffer"||ut=="byteLength"||ut=="byteOffset")||U2(ut,ct)))&&lt.push(ut);return lt}var tm=V2,Z2=Object.prototype;function q2(t){var o=t&&t.constructor,m=typeof o=="function"&&o.prototype||Z2;return t===m}var ja=q2;function K2(t,o){return function(m){return t(o(m))}}var em=K2,J2=em,Q2=J2(Object.keys,Object),tk=Q2,ek=ja,ik=tk,rk=Object.prototype,nk=rk.hasOwnProperty;function ok(t){if(!ek(t))return ik(t);var o=[];for(var m in Object(t))nk.call(t,m)&&m!="constructor"&&o.push(m);return o}var im=ok,sk=Ea,ak=cc;function lk(t){return t!=null&&ak(t.length)&&!sk(t)}var Na=lk,hk=tm,ck=im,uk=Na;function pk(t){return uk(t)?hk(t):ck(t)}var Bo=pk,dk=Jg,fk=Bo;function gk(t,o){return t&&dk(t,o,fk)}var rm=gk;function mk(){this.__data__=[],this.size=0}var yk=mk;function vk(t,o){return t===o||t!==t&&o!==o}var Ba=vk,bk=Ba;function xk(t,o){for(var m=t.length;m--;)if(bk(t[m][0],o))return m;return-1}var Ra=xk,wk=Ra,Ck=Array.prototype,Sk=Ck.splice;function Mk(t){var o=this.__data__,m=wk(o,t);if(m<0)return!1;var R=o.length-1;return m==R?o.pop():Sk.call(o,m,1),--this.size,!0}var Ak=Mk,Tk=Ra;function kk(t){var o=this.__data__,m=Tk(o,t);return m<0?void 0:o[m][1]}var Pk=kk,Lk=Ra;function Ek(t){return Lk(this.__data__,t)>-1}var Ok=Ek,_k=Ra;function Dk(t,o){var m=this.__data__,R=_k(m,t);return R<0?(++this.size,m.push([t,o])):m[R][1]=o,this}var Ik=Dk,jk=yk,Nk=Ak,Bk=Pk,Rk=Ok,zk=Ik;function Vn(t){var o=-1,m=t==null?0:t.length;for(this.clear();++o<m;){var R=t[o];this.set(R[0],R[1])}}Vn.prototype.clear=jk;Vn.prototype.delete=Nk;Vn.prototype.get=Bk;Vn.prototype.has=Rk;Vn.prototype.set=zk;var za=Vn,Fk=za;function Gk(){this.__data__=new Fk,this.size=0}var Wk=Gk;function Hk(t){var o=this.__data__,m=o.delete(t);return this.size=o.size,m}var Uk=Hk;function Xk(t){return this.__data__.get(t)}var Yk=Xk;function $k(t){return this.__data__.has(t)}var Vk=$k,Zk=vn,qk=Zi,Kk=Zk(qk,"Map"),pc=Kk,Jk=vn,Qk=Jk(Object,"create"),Fa=Qk,$d=Fa;function tP(){this.__data__=$d?$d(null):{},this.size=0}var eP=tP;function iP(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}var rP=iP,nP=Fa,oP="__lodash_hash_undefined__",sP=Object.prototype,aP=sP.hasOwnProperty;function lP(t){var o=this.__data__;if(nP){var m=o[t];return m===oP?void 0:m}return aP.call(o,t)?o[t]:void 0}var hP=lP,cP=Fa,uP=Object.prototype,pP=uP.hasOwnProperty;function dP(t){var o=this.__data__;return cP?o[t]!==void 0:pP.call(o,t)}var fP=dP,gP=Fa,mP="__lodash_hash_undefined__";function yP(t,o){var m=this.__data__;return this.size+=this.has(t)?0:1,m[t]=gP&&o===void 0?mP:o,this}var vP=yP,bP=eP,xP=rP,wP=hP,CP=fP,SP=vP;function Zn(t){var o=-1,m=t==null?0:t.length;for(this.clear();++o<m;){var R=t[o];this.set(R[0],R[1])}}Zn.prototype.clear=bP;Zn.prototype.delete=xP;Zn.prototype.get=wP;Zn.prototype.has=CP;Zn.prototype.set=SP;var MP=Zn,Vd=MP,AP=za,TP=pc;function kP(){this.size=0,this.__data__={hash:new Vd,map:new(TP||AP),string:new Vd}}var PP=kP;function LP(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}var EP=LP,OP=EP;function _P(t,o){var m=t.__data__;return OP(o)?m[typeof o=="string"?"string":"hash"]:m.map}var Ga=_P,DP=Ga;function IP(t){var o=DP(this,t).delete(t);return this.size-=o?1:0,o}var jP=IP,NP=Ga;function BP(t){return NP(this,t).get(t)}var RP=BP,zP=Ga;function FP(t){return zP(this,t).has(t)}var GP=FP,WP=Ga;function HP(t,o){var m=WP(this,t),R=m.size;return m.set(t,o),this.size+=m.size==R?0:1,this}var UP=HP,XP=PP,YP=jP,$P=RP,VP=GP,ZP=UP;function qn(t){var o=-1,m=t==null?0:t.length;for(this.clear();++o<m;){var R=t[o];this.set(R[0],R[1])}}qn.prototype.clear=XP;qn.prototype.delete=YP;qn.prototype.get=$P;qn.prototype.has=VP;qn.prototype.set=ZP;var dc=qn,qP=za,KP=pc,JP=dc,QP=200;function tL(t,o){var m=this.__data__;if(m instanceof qP){var R=m.__data__;if(!KP||R.length<QP-1)return R.push([t,o]),this.size=++m.size,this;m=this.__data__=new JP(R)}return m.set(t,o),this.size=m.size,this}var eL=tL,iL=za,rL=Wk,nL=Uk,oL=Yk,sL=Vk,aL=eL;function Kn(t){var o=this.__data__=new iL(t);this.size=o.size}Kn.prototype.clear=rL;Kn.prototype.delete=nL;Kn.prototype.get=oL;Kn.prototype.has=sL;Kn.prototype.set=aL;var Wa=Kn,lL="__lodash_hash_undefined__";function hL(t){return this.__data__.set(t,lL),this}var cL=hL;function uL(t){return this.__data__.has(t)}var pL=uL,dL=dc,fL=cL,gL=pL;function fa(t){var o=-1,m=t==null?0:t.length;for(this.__data__=new dL;++o<m;)this.add(t[o])}fa.prototype.add=fa.prototype.push=fL;fa.prototype.has=gL;var nm=fa;function mL(t,o){for(var m=-1,R=t==null?0:t.length;++m<R;)if(o(t[m],m,t))return!0;return!1}var yL=mL;function vL(t,o){return t.has(o)}var om=vL,bL=nm,xL=yL,wL=om,CL=1,SL=2;function ML(t,o,m,R,Q,tt){var ot=m&CL,lt=t.length,ct=o.length;if(lt!=ct&&!(ot&&ct>lt))return!1;var ut=tt.get(t),ft=tt.get(o);if(ut&&ft)return ut==o&&ft==t;var yt=-1,B=!0,st=m&SL?new bL:void 0;for(tt.set(t,o),tt.set(o,t);++yt<lt;){var U=t[yt],z=o[yt];if(R)var X=ot?R(z,U,yt,o,t,tt):R(U,z,yt,t,o,tt);if(X!==void 0){if(X)continue;B=!1;break}if(st){if(!xL(o,function(V,K){if(!wL(st,K)&&(U===V||Q(U,V,m,R,tt)))return st.push(K)})){B=!1;break}}else if(!(U===z||Q(U,z,m,R,tt))){B=!1;break}}return tt.delete(t),tt.delete(o),B}var sm=ML,AL=Zi,TL=AL.Uint8Array,am=TL;function kL(t){var o=-1,m=Array(t.size);return t.forEach(function(R,Q){m[++o]=[Q,R]}),m}var PL=kL;function LL(t){var o=-1,m=Array(t.size);return t.forEach(function(R){m[++o]=R}),m}var lm=LL,Zd=$n,qd=am,EL=Ba,OL=sm,_L=PL,DL=lm,IL=1,jL=2,NL="[object Boolean]",BL="[object Date]",RL="[object Error]",zL="[object Map]",FL="[object Number]",GL="[object RegExp]",WL="[object Set]",HL="[object String]",UL="[object Symbol]",XL="[object ArrayBuffer]",YL="[object DataView]",Kd=Zd?Zd.prototype:void 0,gh=Kd?Kd.valueOf:void 0;function $L(t,o,m,R,Q,tt,ot){switch(m){case YL:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case XL:return!(t.byteLength!=o.byteLength||!tt(new qd(t),new qd(o)));case NL:case BL:case FL:return EL(+t,+o);case RL:return t.name==o.name&&t.message==o.message;case GL:case HL:return t==o+"";case zL:var lt=_L;case WL:var ct=R&IL;if(lt||(lt=DL),t.size!=o.size&&!ct)return!1;var ut=ot.get(t);if(ut)return ut==o;R|=jL,ot.set(t,o);var ft=OL(lt(t),lt(o),R,Q,tt,ot);return ot.delete(t),ft;case UL:if(gh)return gh.call(t)==gh.call(o)}return!1}var VL=$L;function ZL(t,o){for(var m=-1,R=o.length,Q=t.length;++m<R;)t[Q+m]=o[m];return t}var fc=ZL,qL=fc,KL=qi;function JL(t,o,m){var R=o(t);return KL(t)?R:qL(R,m(t))}var hm=JL;function QL(t,o){for(var m=-1,R=t==null?0:t.length,Q=0,tt=[];++m<R;){var ot=t[m];o(ot,m,t)&&(tt[Q++]=ot)}return tt}var tE=QL;function eE(){return[]}var cm=eE,iE=tE,rE=cm,nE=Object.prototype,oE=nE.propertyIsEnumerable,Jd=Object.getOwnPropertySymbols,sE=Jd?function(t){return t==null?[]:(t=Object(t),iE(Jd(t),function(o){return oE.call(t,o)}))}:rE,gc=sE,aE=hm,lE=gc,hE=Bo;function cE(t){return aE(t,hE,lE)}var um=cE,Qd=um,uE=1,pE=Object.prototype,dE=pE.hasOwnProperty;function fE(t,o,m,R,Q,tt){var ot=m&uE,lt=Qd(t),ct=lt.length,ut=Qd(o),ft=ut.length;if(ct!=ft&&!ot)return!1;for(var yt=ct;yt--;){var B=lt[yt];if(!(ot?B in o:dE.call(o,B)))return!1}var st=tt.get(t),U=tt.get(o);if(st&&U)return st==o&&U==t;var z=!0;tt.set(t,o),tt.set(o,t);for(var X=ot;++yt<ct;){B=lt[yt];var V=t[B],K=o[B];if(R)var J=ot?R(K,V,B,o,t,tt):R(V,K,B,t,o,tt);if(!(J===void 0?V===K||Q(V,K,m,R,tt):J)){z=!1;break}X||(X=B=="constructor")}if(z&&!X){var q=t.constructor,W=o.constructor;q!=W&&"constructor"in t&&"constructor"in o&&!(typeof q=="function"&&q instanceof q&&typeof W=="function"&&W instanceof W)&&(z=!1)}return tt.delete(t),tt.delete(o),z}var gE=fE,mE=vn,yE=Zi,vE=mE(yE,"DataView"),bE=vE,xE=vn,wE=Zi,CE=xE(wE,"Promise"),SE=CE,ME=vn,AE=Zi,TE=ME(AE,"Set"),pm=TE,kE=vn,PE=Zi,LE=kE(PE,"WeakMap"),dm=LE,Eh=bE,Oh=pc,_h=SE,Dh=pm,Ih=dm,fm=yn,Jn=qg,tf="[object Map]",EE="[object Object]",ef="[object Promise]",rf="[object Set]",nf="[object WeakMap]",of="[object DataView]",OE=Jn(Eh),_E=Jn(Oh),DE=Jn(_h),IE=Jn(Dh),jE=Jn(Ih),pn=fm;(Eh&&pn(new Eh(new ArrayBuffer(1)))!=of||Oh&&pn(new Oh)!=tf||_h&&pn(_h.resolve())!=ef||Dh&&pn(new Dh)!=rf||Ih&&pn(new Ih)!=nf)&&(pn=function(t){var o=fm(t),m=o==EE?t.constructor:void 0,R=m?Jn(m):"";if(R)switch(R){case OE:return of;case _E:return tf;case DE:return ef;case IE:return rf;case jE:return nf}return o});var Ro=pn,mh=Wa,NE=sm,BE=VL,RE=gE,sf=Ro,af=qi,lf=No,zE=Ia,FE=1,hf="[object Arguments]",cf="[object Array]",Gs="[object Object]",GE=Object.prototype,uf=GE.hasOwnProperty;function WE(t,o,m,R,Q,tt){var ot=af(t),lt=af(o),ct=ot?cf:sf(t),ut=lt?cf:sf(o);ct=ct==hf?Gs:ct,ut=ut==hf?Gs:ut;var ft=ct==Gs,yt=ut==Gs,B=ct==ut;if(B&&lf(t)){if(!lf(o))return!1;ot=!0,ft=!1}if(B&&!ft)return tt||(tt=new mh),ot||zE(t)?NE(t,o,m,R,Q,tt):BE(t,o,ct,m,R,Q,tt);if(!(m&FE)){var st=ft&&uf.call(t,"__wrapped__"),U=yt&&uf.call(o,"__wrapped__");if(st||U){var z=st?t.value():t,X=U?o.value():o;return tt||(tt=new mh),Q(z,X,m,R,tt)}}return B?(tt||(tt=new mh),RE(t,o,m,R,Q,tt)):!1}var HE=WE,UE=HE,pf=Dr;function gm(t,o,m,R,Q){return t===o?!0:t==null||o==null||!pf(t)&&!pf(o)?t!==t&&o!==o:UE(t,o,m,R,gm,Q)}var mc=gm,XE=Wa,YE=mc,$E=1,VE=2;function ZE(t,o,m,R){var Q=m.length,tt=Q,ot=!R;if(t==null)return!tt;for(t=Object(t);Q--;){var lt=m[Q];if(ot&&lt[2]?lt[1]!==t[lt[0]]:!(lt[0]in t))return!1}for(;++Q<tt;){lt=m[Q];var ct=lt[0],ut=t[ct],ft=lt[1];if(ot&&lt[2]){if(ut===void 0&&!(ct in t))return!1}else{var yt=new XE;if(R)var B=R(ut,ft,ct,t,o,yt);if(!(B===void 0?YE(ft,ut,$E|VE,R,yt):B))return!1}}return!0}var qE=ZE,KE=br;function JE(t){return t===t&&!KE(t)}var mm=JE,QE=mm,tO=Bo;function eO(t){for(var o=tO(t),m=o.length;m--;){var R=o[m],Q=t[R];o[m]=[R,Q,QE(Q)]}return o}var iO=eO;function rO(t,o){return function(m){return m==null?!1:m[t]===o&&(o!==void 0||t in Object(m))}}var ym=rO,nO=qE,oO=iO,sO=ym;function aO(t){var o=oO(t);return o.length==1&&o[0][2]?sO(o[0][0],o[0][1]):function(m){return m===t||nO(m,t,o)}}var lO=aO,hO=yn,cO=Dr,uO="[object Symbol]";function pO(t){return typeof t=="symbol"||cO(t)&&hO(t)==uO}var Ha=pO,dO=qi,fO=Ha,gO=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mO=/^\w*$/;function yO(t,o){if(dO(t))return!1;var m=typeof t;return m=="number"||m=="symbol"||m=="boolean"||t==null||fO(t)?!0:mO.test(t)||!gO.test(t)||o!=null&&t in Object(o)}var yc=yO,vm=dc,vO="Expected a function";function vc(t,o){if(typeof t!="function"||o!=null&&typeof o!="function")throw new TypeError(vO);var m=function(){var R=arguments,Q=o?o.apply(this,R):R[0],tt=m.cache;if(tt.has(Q))return tt.get(Q);var ot=t.apply(this,R);return m.cache=tt.set(Q,ot)||tt,ot};return m.cache=new(vc.Cache||vm),m}vc.Cache=vm;var bO=vc,xO=bO,wO=500;function CO(t){var o=xO(t,function(R){return m.size===wO&&m.clear(),R}),m=o.cache;return o}var SO=CO,MO=SO,AO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,TO=/\\(\\)?/g,kO=MO(function(t){var o=[];return t.charCodeAt(0)===46&&o.push(""),t.replace(AO,function(m,R,Q,tt){o.push(Q?tt.replace(TO,"$1"):R||m)}),o}),PO=kO;function LO(t,o){for(var m=-1,R=t==null?0:t.length,Q=Array(R);++m<R;)Q[m]=o(t[m],m,t);return Q}var bm=LO,df=$n,EO=bm,OO=qi,_O=Ha,DO=1/0,ff=df?df.prototype:void 0,gf=ff?ff.toString:void 0;function xm(t){if(typeof t=="string")return t;if(OO(t))return EO(t,xm)+"";if(_O(t))return gf?gf.call(t):"";var o=t+"";return o=="0"&&1/t==-DO?"-0":o}var wm=xm,IO=wm;function jO(t){return t==null?"":IO(t)}var bc=jO,NO=qi,BO=yc,RO=PO,zO=bc;function FO(t,o){return NO(t)?t:BO(t,o)?[t]:RO(zO(t))}var Ua=FO,GO=Ha,WO=1/0;function HO(t){if(typeof t=="string"||GO(t))return t;var o=t+"";return o=="0"&&1/t==-WO?"-0":o}var zo=HO,UO=Ua,XO=zo;function YO(t,o){o=UO(o,t);for(var m=0,R=o.length;t!=null&&m<R;)t=t[XO(o[m++])];return m&&m==R?t:void 0}var xc=YO,$O=xc;function VO(t,o,m){var R=t==null?void 0:$O(t,o);return R===void 0?m:R}var Cm=VO;const ZO=Mi(Cm);function qO(t,o){return t!=null&&o in Object(t)}var KO=qO,JO=Ua,QO=jo,t_=qi,e_=_a,i_=cc,r_=zo;function n_(t,o,m){o=JO(o,t);for(var R=-1,Q=o.length,tt=!1;++R<Q;){var ot=r_(o[R]);if(!(tt=t!=null&&m(t,ot)))break;t=t[ot]}return tt||++R!=Q?tt:(Q=t==null?0:t.length,!!Q&&i_(Q)&&e_(ot,Q)&&(t_(t)||QO(t)))}var Sm=n_,o_=KO,s_=Sm;function a_(t,o){return t!=null&&s_(t,o,o_)}var Mm=a_,l_=mc,h_=Cm,c_=Mm,u_=yc,p_=mm,d_=ym,f_=zo,g_=1,m_=2;function y_(t,o){return u_(t)&&p_(o)?d_(f_(t),o):function(m){var R=h_(m,t);return R===void 0&&R===o?c_(m,t):l_(o,R,g_|m_)}}var v_=y_;function b_(t){return t}var wc=b_;function x_(t){return function(o){return o==null?void 0:o[t]}}var w_=x_,C_=xc;function S_(t){return function(o){return C_(o,t)}}var M_=S_,A_=w_,T_=M_,k_=yc,P_=zo;function L_(t){return k_(t)?A_(P_(t)):T_(t)}var E_=L_,O_=lO,__=v_,D_=wc,I_=qi,j_=E_;function N_(t){return typeof t=="function"?t:t==null?D_:typeof t=="object"?I_(t)?__(t[0],t[1]):O_(t):j_(t)}var Am=N_,B_=Oa,R_=rm,z_=Am;function F_(t,o){var m={};return o=z_(o),R_(t,function(R,Q,tt){B_(m,Q,o(R,Q,tt))}),m}var G_=F_;const Tm=Mi(G_),W_=t=>["__int4","__int8","int","tinyint","bigint","int2","int4","int8","smallint","mediumint","serial","integer","byteint","int64"].includes(t.toLowerCase()),H_=t=>["basemeasure","calculatedmeasure","float","float4","float8","double precision","double","numeric","decimal","real","number","float64"].includes(t.toLowerCase()),ui=t=>W_(t)||H_(t)||t==="numeric-attribute",km=t=>["textdimension","string","varchar","text","ntext","char","character","character varying","smalltext","nchar","nvarchar","json","jsonb","object","text-attribute"].includes(t.toLowerCase()),mr=t=>["datelevel","date","time","datetime","timestamp without time zone","timestamp","timestamp with time zone","timestamp(6)","timestamp_tz","timestamp_ntz","timestamp_ltz","timestampltz","timestampntz","timestamptz","datetime64[ns]","timewithtimezone","timestampwithtimezone","timestamp_with_timezone"].includes(t.toLowerCase()),Pm=t=>["bool","boolean","bit","logical"].includes(t.toLowerCase()),Lm=t=>ui(t)?"number":mr(t)?"datetime":km(t)?"text":Pm(t)?"boolean":"text",Em=t=>Lm(t).replace("number","numeric");class Qn extends La{constructor(o,m,R,Q,tt){super(Ur(o),R||me.Attribute,Q),this._sort=exports.Sort.None,this.expression=m,this._sort=tt||exports.Sort.None}get id(){return this.expression}getSort(){return this._sort}sort(o){return new Qn(this.name,this.expression,this.type,this.description,o)}jaql(o){const m={jaql:{title:this.name,dim:this.expression,datatype:Em(this.type)}};return this._sort!=exports.Sort.None&&(m.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),o===!0?m.jaql:m}serializable(){const o=super.serializable();return o.expression=this.expression,this.getSort()!==exports.Sort.None&&(o.sort=this.getSort().toString()),o}}class or extends Qn{constructor(o,m,R,Q,tt,ot){super(o,m,me.DateLevel,tt,ot),this._format=Q,this.granularity=R}get id(){let o=`${this.expression}`;const{level:m="",dateTimeLevel:R="",bucket:Q}=this.translateGranularityToJaql();return o+=`_${(m||R).toLowerCase()}`,Q&&(o+=`_${Q}`),o}getSort(){return this._sort}sort(o){return new or(this.name,this.expression,this.granularity,this._format,this.description,o)}getFormat(){return this._format}format(o){return new or(this.name,this.expression,this.granularity,o,this.description,this._sort)}serializable(){const o=super.serializable();return o.granularity=this.granularity,this.getFormat()!==void 0&&(o.format=this.getFormat()),o}jaql(o){const m={jaql:Object.assign({title:this.name,dim:this.expression,datatype:Em(this.type)},this.translateGranularityToJaql())};if(this._format!==void 0){const R=m.jaql.dateTimeLevel||m.jaql.level;m.format={mask:{}},m.format.mask[R]=this._format}return this._sort!=exports.Sort.None&&(m.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),o===!0?m.jaql:m}translateGranularityToJaql(){const o="minutes",m="seconds";switch(this.granularity){case Jt.Years:case Jt.Quarters:case Jt.Months:case Jt.Weeks:case Jt.Days:return{level:this.granularity.toLowerCase()};case Jt.Hours:return{dateTimeLevel:o,bucket:"60"};case Jt.MinutesRoundTo30:return{dateTimeLevel:o,bucket:"30"};case Jt.MinutesRoundTo15:return{dateTimeLevel:o,bucket:"15"};case Jt.Minutes:return{dateTimeLevel:o,bucket:"1"};case Jt.Seconds:return{dateTimeLevel:m,bucket:"0"};case Jt.AggHours:return{level:o,bucket:"60"};case Jt.AggMinutesRoundTo30:return{level:o,bucket:"30"};case Jt.AggMinutesRoundTo15:return{level:o,bucket:"15"};case Jt.AggMinutesRoundTo1:return{level:o,bucket:"1"};default:return console.warn("Unsupported level"),{level:this.granularity}}}static translateJaqlToGranularity(o){const m=R=>(console.warn("Unsupported granularity",R),R);if(o.dateTimeLevel){if(o.dateTimeLevel!=="minutes"&&o.dateTimeLevel!=="seconds")return m(o.dateTimeLevel);switch(o.bucket){case"60":return Jt.Hours;case"30":return Jt.MinutesRoundTo30;case"15":return Jt.MinutesRoundTo15;case"1":return Jt.Minutes;case"0":return Jt.Seconds;default:return m(o.dateTimeLevel)}}switch(o.level){case"years":return Jt.Years;case"quarters":return Jt.Quarters;case"months":return Jt.Months;case"weeks":return Jt.Weeks;case"days":return Jt.Days;case"minutes":switch(o.bucket){case"60":return Jt.AggHours;case"30":return Jt.AggMinutesRoundTo30;case"15":return Jt.AggMinutesRoundTo15;case"1":return Jt.AggMinutesRoundTo1;default:return m(o.level)}default:return m(o.level)}}static getDefaultFormatForGranularity(o){switch(o){case Jt.Years:return"yyyy";case Jt.Quarters:return"Q yyyy";case Jt.Months:return"yyyy-MM";case Jt.Weeks:return"ww yyyy";case Jt.Days:return"yyyy-MM-dd";case Jt.Hours:return"yyyy-MM-dd HH:mm";case Jt.MinutesRoundTo30:return"yyyy-MM-dd HH:mm";case Jt.MinutesRoundTo15:return"yyyy-MM-dd HH:mm";case Jt.Minutes:return"yyyy-MM-dd HH:mm";case Jt.Seconds:return"yyyy-MM-dd HH:mm:ss";case Jt.AggHours:return"HH:mm";case Jt.AggMinutesRoundTo30:return"HH:mm";case Jt.AggMinutesRoundTo15:return"HH:mm";case Jt.AggMinutesRoundTo1:return"HH:mm";default:return""}}}function jh(t,o,m,R){return(R.length>0?R+".":"")+Ur(t)+"."+Ur(o)+(m&&m.length>0?"."+or.translateJaqlToGranularity({level:m}):"")}function U_(t,o,m){if(typeof m=="number")t.push(m.toString());else if(m&&me.isMeasureTemplate(m.type)){m=m.sum();const R=`[${Ur(m.name)}]`;t.push(R),o[R]=m}else if(m&&me.isMeasure(m.type)){const R=`[${Ur(m.name)}]`;t.push(R),o[R]=m}else if(m&&me.isFilter(m.type)){const R=`[${Ur(m.name)}]`;t.push(R),o[R]=m}else if(m&&me.isAttribute(m.type)){const R=`[${Ur(m.name)}]`;t.push(R),o[R]=m}}function Om(t,o,m,R){const Q={},tt=[m+"("];return U_(tt,Q,t),R&&tt.push(`, ${R}`),tt.push(")"),new Gn(o,tt.join(""),Q)}function _m(t){var o;const m="formula"in t;let R;if(t.sort&&(R=t.sort==="asc"?exports.Sort.Ascending:exports.Sort.Descending),m){const ct=Tm((o=t.context)!==null&&o!==void 0?o:{},ut=>ut?_m(ut):{});return new Gn(t.title,t.formula,ct,void 0,void 0,R)}const Q=!!t.agg,tt=mr(t.datatype),ot=ui(t.datatype)?me.NumericAttribute:me.TextAttribute,lt=tt?new or(t.title,t.dim,or.translateJaqlToGranularity(t),void 0,void 0,R):new Qn(t.title,t.dim,ot,void 0,R);return Q?new _r(t.title,lt,_r.aggregationFromJAQL(t.agg||""),void 0,void 0,R):lt}function X_(t,o,m){const R=Object.entries(m).reduce((Q,[tt,ot])=>(Q[`[${tt}]`]=ot.jaql().jaql,Q),{});return _m({title:t,formula:o,context:R})}function Cc(t,o,m,R){return new _r(`${o.toString()} ${t.name}`,t,o,R)}function Y_(t,o,m){return Cc(t,Ge.Min,o,m)}function $_(t,o,m){return Cc(t,Ge.Max,o,m)}function V_(t,o,m){let R;const Q=tt=>tt.replace("advancedSmoothing","smooth").replace("localEstimates","local");return m&&(R=Object.entries(m).map(tt=>Q(`"${tt[0]}=${tt[1]}"`)).join(",")),Om(t,o!=null?o:t.name+" Trend","trend",R)}function Z_(t,o,m){let R;if(m){const Q=Object.assign({forecastHorizon:3},m);if(Q.startDate){const tt=new Date(Q.startDate);Q.startDate=tt.toISOString().replace(/.\d+Z$/g,"")}if(Q.endDate){const tt=new Date(Q.endDate);Q.endDate=tt.toISOString().replace(/.\d+Z$/g,"")}R=Object.entries(Q).map(tt=>`"${tt[0]}=${tt[1]}"`).join(",")}else R='"forecastHorizon=3"';return Om(t,o!=null?o:t.name+" Forecast","forecast",R)}let Dm=class extends hc{constructor(o,m){super($g,{key:o,interpolationOptions:m},_A.t)}};class Im extends La{constructor(o,m,R,Q,tt){super(o,m,Q),this._sort=exports.Sort.None,this._format="#,#.00",this._format=R,this._sort=tt||exports.Sort.None}getSort(){return this._sort}getFormat(){return this._format}serializable(){const o=super.serializable();return this.getFormat()!==void 0&&(o.format=this.getFormat()),this.getSort()!==void 0&&(o.sort=this.getSort()),o}}class _r extends Im{constructor(o,m,R,Q,tt,ot){super(o,me.BaseMeasure,Q,tt,ot),this.attribute=m,this.aggregation=R}static aggregationFromJAQL(o){switch(o){case"sum":return Ge.Sum;case"avg":return Ge.Average;case"min":return Ge.Min;case"max":return Ge.Max;case"countduplicates":return Ge.Count;case"median":return Ge.Median;case"count":return Ge.CountDistinct;case"var":return Ge.Variance;case"stdev":return Ge.StandardDeviation}return Ge.Sum}static aggregationToJAQL(o){switch(o){case Ge.Sum:return"sum";case Ge.Average:return"avg";case Ge.Min:return"min";case Ge.Max:return"max";case Ge.Count:return"countduplicates";case Ge.CountDistinct:return"count";case Ge.Median:return"median";case Ge.Variance:return"var";case Ge.StandardDeviation:return"stdev"}return Ge.Sum}sort(o){return new _r(this.name,this.attribute,this.aggregation,this._format,this.description,o)}format(o){return new _r(this.name,this.attribute,this.aggregation,o,this.description,this._sort)}get id(){return`${this.attribute.expression}_${this.aggregation}`}serializable(){const o=super.serializable();return o.aggregation=this.aggregation,o.attribute=this.attribute.serializable(),o}jaql(o){const m=this.attribute.jaql(!0),R={jaql:Object.assign(Object.assign({},m),{title:this.name,agg:_r.aggregationToJAQL(this.aggregation)})};return this._format&&(R.format={number:this._format}),this._sort!=exports.Sort.None&&(R.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),o===!0?R.jaql:R}}class Gn extends Im{constructor(o,m,R,Q,tt,ot){super(o,me.CalculatedMeasure,Q,tt,ot),this.expression=m,this.context=R}sort(o){return new Gn(this.name,this.expression,this.context,this._format,this.description,o)}format(o){return new Gn(this.name,this.expression,this.context,o,this.description,this._sort)}get id(){return this.expression}serializable(){const o=super.serializable();return o.expression=this.expression,o.context={},Object.getOwnPropertyNames(this.context).forEach(m=>{o.context[m]=this.context[m].serializable()}),o}jaql(o){const m={jaql:{title:this.name,formula:this.expression}},R={};return Object.getOwnPropertyNames(this.context).forEach(tt=>R[tt]=this.context[tt].jaql(!0)),m.jaql.context=R,this._format&&(m.format={number:this._format}),this._sort!=exports.Sort.None&&(m.jaql.sort=this._sort==exports.Sort.Ascending?"asc":"desc"),o===!0?m.jaql:m}}function Ws(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var jm={exports:{}};(function(t,o){(function(m){t.exports=m()})(function(){return function m(R,Q,tt){function ot(ut,ft){if(!Q[ut]){if(!R[ut]){var yt=typeof Ws=="function"&&Ws;if(!ft&&yt)return yt(ut,!0);if(lt)return lt(ut,!0);throw new Error("Cannot find module '"+ut+"'")}ft=Q[ut]={exports:{}},R[ut][0].call(ft.exports,function(B){var st=R[ut][1][B];return ot(st||B)},ft,ft.exports,m,R,Q,tt)}return Q[ut].exports}for(var lt=typeof Ws=="function"&&Ws,ct=0;ct<tt.length;ct++)ot(tt[ct]);return ot}({1:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){var U=m("crypto");function z(D,O){O=K(D,O);var w;return(w=O.algorithm!=="passthrough"?U.createHash(O.algorithm):new W).write===void 0&&(w.write=w.update,w.end=w.update),q(O,w).dispatch(D),w.update||w.end(""),w.digest?w.digest(O.encoding==="buffer"?void 0:O.encoding):(D=w.read(),O.encoding!=="buffer"?D.toString(O.encoding):D)}(Q=R.exports=z).sha1=function(D){return z(D)},Q.keys=function(D){return z(D,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},Q.MD5=function(D){return z(D,{algorithm:"md5",encoding:"hex"})},Q.keysMD5=function(D){return z(D,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var X=U.getHashes?U.getHashes().slice():["sha1","md5"],V=(X.push("passthrough"),["buffer","hex","binary","base64"]);function K(D,O){var w={};if(w.algorithm=(O=O||{}).algorithm||"sha1",w.encoding=O.encoding||"hex",w.excludeValues=!!O.excludeValues,w.algorithm=w.algorithm.toLowerCase(),w.encoding=w.encoding.toLowerCase(),w.ignoreUnknown=O.ignoreUnknown===!0,w.respectType=O.respectType!==!1,w.respectFunctionNames=O.respectFunctionNames!==!1,w.respectFunctionProperties=O.respectFunctionProperties!==!1,w.unorderedArrays=O.unorderedArrays===!0,w.unorderedSets=O.unorderedSets!==!1,w.unorderedObjects=O.unorderedObjects!==!1,w.replacer=O.replacer||void 0,w.excludeKeys=O.excludeKeys||void 0,D===void 0)throw new Error("Object argument required.");for(var T=0;T<X.length;++T)X[T].toLowerCase()===w.algorithm.toLowerCase()&&(w.algorithm=X[T]);if(X.indexOf(w.algorithm)===-1)throw new Error('Algorithm "'+w.algorithm+'" not supported. supported values: '+X.join(", "));if(V.indexOf(w.encoding)===-1&&w.algorithm!=="passthrough")throw new Error('Encoding "'+w.encoding+'" not supported. supported values: '+V.join(", "));return w}function J(D){if(typeof D=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(D))!=null}function q(D,O,w){w=w||[];function T(d){return O.update?O.update(d,"utf8"):O.write(d,"utf8")}return{dispatch:function(d){return this["_"+((d=D.replacer?D.replacer(d):d)===null?"null":typeof d)](d)},_object:function(d){var u,g=Object.prototype.toString.call(d),b=/\[object (.*)\]/i.exec(g);if(b=(b=b?b[1]:"unknown:["+g+"]").toLowerCase(),0<=(g=w.indexOf(d)))return this.dispatch("[CIRCULAR:"+g+"]");if(w.push(d),lt!==void 0&&lt.isBuffer&&lt.isBuffer(d))return T("buffer:"),T(d);if(b==="object"||b==="function"||b==="asyncfunction")return g=Object.keys(d),D.unorderedObjects&&(g=g.sort()),D.respectType===!1||J(d)||g.splice(0,0,"prototype","__proto__","constructor"),D.excludeKeys&&(g=g.filter(function(v){return!D.excludeKeys(v)})),T("object:"+g.length+":"),u=this,g.forEach(function(v){u.dispatch(v),T(":"),D.excludeValues||u.dispatch(d[v]),T(",")});if(!this["_"+b]){if(D.ignoreUnknown)return T("["+b+"]");throw new Error('Unknown object type "'+b+'"')}this["_"+b](d)},_array:function(d,v){v=v!==void 0?v:D.unorderedArrays!==!1;var g=this;if(T("array:"+d.length+":"),!v||d.length<=1)return d.forEach(function(S){return g.dispatch(S)});var b=[],v=d.map(function(S){var P=new W,E=w.slice();return q(D,P,E).dispatch(S),b=b.concat(E.slice(w.length)),P.read().toString()});return w=w.concat(b),v.sort(),this._array(v,!1)},_date:function(d){return T("date:"+d.toJSON())},_symbol:function(d){return T("symbol:"+d.toString())},_error:function(d){return T("error:"+d.toString())},_boolean:function(d){return T("bool:"+d.toString())},_string:function(d){T("string:"+d.length+":"),T(d.toString())},_function:function(d){T("fn:"),J(d)?this.dispatch("[native]"):this.dispatch(d.toString()),D.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(d.name)),D.respectFunctionProperties&&this._object(d)},_number:function(d){return T("number:"+d.toString())},_xml:function(d){return T("xml:"+d.toString())},_null:function(){return T("Null")},_undefined:function(){return T("Undefined")},_regexp:function(d){return T("regex:"+d.toString())},_uint8array:function(d){return T("uint8array:"),this.dispatch(Array.prototype.slice.call(d))},_uint8clampedarray:function(d){return T("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(d))},_int8array:function(d){return T("int8array:"),this.dispatch(Array.prototype.slice.call(d))},_uint16array:function(d){return T("uint16array:"),this.dispatch(Array.prototype.slice.call(d))},_int16array:function(d){return T("int16array:"),this.dispatch(Array.prototype.slice.call(d))},_uint32array:function(d){return T("uint32array:"),this.dispatch(Array.prototype.slice.call(d))},_int32array:function(d){return T("int32array:"),this.dispatch(Array.prototype.slice.call(d))},_float32array:function(d){return T("float32array:"),this.dispatch(Array.prototype.slice.call(d))},_float64array:function(d){return T("float64array:"),this.dispatch(Array.prototype.slice.call(d))},_arraybuffer:function(d){return T("arraybuffer:"),this.dispatch(new Uint8Array(d))},_url:function(d){return T("url:"+d.toString())},_map:function(d){return T("map:"),d=Array.from(d),this._array(d,D.unorderedSets!==!1)},_set:function(d){return T("set:"),d=Array.from(d),this._array(d,D.unorderedSets!==!1)},_file:function(d){return T("file:"),this.dispatch([d.name,d.size,d.type,d.lastModfied])},_blob:function(){if(D.ignoreUnknown)return T("[blob]");throw Error(`Hashing Blob objects is currently not supported
2
+ (see https://github.com/puleos/object-hash/issues/26)
3
+ Use "options.replacer" or "options.ignoreUnknown"
4
+ `)},_domwindow:function(){return T("domwindow")},_bigint:function(d){return T("bigint:"+d.toString())},_process:function(){return T("process")},_timer:function(){return T("timer")},_pipe:function(){return T("pipe")},_tcp:function(){return T("tcp")},_udp:function(){return T("udp")},_tty:function(){return T("tty")},_statwatcher:function(){return T("statwatcher")},_securecontext:function(){return T("securecontext")},_connection:function(){return T("connection")},_zlib:function(){return T("zlib")},_context:function(){return T("context")},_nodescript:function(){return T("nodescript")},_httpparser:function(){return T("httpparser")},_dataview:function(){return T("dataview")},_signal:function(){return T("signal")},_fsevent:function(){return T("fsevent")},_tlswrap:function(){return T("tlswrap")}}}function W(){return{buf:"",write:function(D){this.buf+=D},end:function(D){this.buf+=D},read:function(){return this.buf}}}Q.writeToStream=function(D,O,w){return w===void 0&&(w=O,O={}),q(O=K(D,O),w).dispatch(D)}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){(function(U){var z=typeof Uint8Array!="undefined"?Uint8Array:Array,X=43,V=47,K=48,J=97,q=65,W=45,D=95;function O(w){return w=w.charCodeAt(0),w===X||w===W?62:w===V||w===D?63:w<K?-1:w<K+10?w-K+26+26:w<q+26?w-q:w<J+26?w-J+26:void 0}U.toByteArray=function(w){var T,d;if(0<w.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var u=w.length,u=w.charAt(u-2)==="="?2:w.charAt(u-1)==="="?1:0,g=new z(3*w.length/4-u),b=0<u?w.length-4:w.length,v=0;function S(P){g[v++]=P}for(T=0;T<b;T+=4,0)S((16711680&(d=O(w.charAt(T))<<18|O(w.charAt(T+1))<<12|O(w.charAt(T+2))<<6|O(w.charAt(T+3))))>>16),S((65280&d)>>8),S(255&d);return u==2?S(255&(d=O(w.charAt(T))<<2|O(w.charAt(T+1))>>4)):u==1&&(S((d=O(w.charAt(T))<<10|O(w.charAt(T+1))<<4|O(w.charAt(T+2))>>2)>>8&255),S(255&d)),g},U.fromByteArray=function(w){var T,d,u,g,b=w.length%3,v="";function S(P){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(P)}for(T=0,u=w.length-b;T<u;T+=3)d=(w[T]<<16)+(w[T+1]<<8)+w[T+2],v+=S((g=d)>>18&63)+S(g>>12&63)+S(g>>6&63)+S(63&g);switch(b){case 1:v=(v+=S((d=w[w.length-1])>>2))+S(d<<4&63)+"==";break;case 2:v=(v=(v+=S((d=(w[w.length-2]<<8)+w[w.length-1])>>10))+S(d>>4&63))+S(d<<2&63)+"="}return v}})(Q===void 0?this.base64js={}:Q)}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(m,R,Q){(function(tt,ot,X,ct,ut,ft,yt,B,st){var U=m("base64-js"),z=m("ieee754");function X(s,y,A){if(!(this instanceof X))return new X(s,y,A);var _,p,C,k,F=typeof s;if(y==="base64"&&F=="string")for(s=(k=s).trim?k.trim():k.replace(/^\s+|\s+$/g,"");s.length%4!=0;)s+="=";if(F=="number")_=M(s);else if(F=="string")_=X.byteLength(s,y);else{if(F!="object")throw new Error("First argument needs to be a number, array or string.");_=M(s.length)}if(X._useTypedArrays?p=X._augment(new Uint8Array(_)):((p=this).length=_,p._isBuffer=!0),X._useTypedArrays&&typeof s.byteLength=="number")p._set(s);else if(f(k=s)||X.isBuffer(k)||k&&typeof k=="object"&&typeof k.length=="number")for(C=0;C<_;C++)X.isBuffer(s)?p[C]=s.readUInt8(C):p[C]=s[C];else if(F=="string")p.write(s,0,y);else if(F=="number"&&!X._useTypedArrays&&!A)for(C=0;C<_;C++)p[C]=0;return p}function V(s,y,A,_){return X._charsWritten=e(function(p){for(var C=[],k=0;k<p.length;k++)C.push(255&p.charCodeAt(k));return C}(y),s,A,_)}function K(s,y,A,_){return X._charsWritten=e(function(p){for(var C,k,F=[],G=0;G<p.length;G++)k=p.charCodeAt(G),C=k>>8,k=k%256,F.push(k),F.push(C);return F}(y),s,A,_)}function J(s,y,A){var _="";A=Math.min(s.length,A);for(var p=y;p<A;p++)_+=String.fromCharCode(s[p]);return _}function q(s,y,A,C){C||(a(typeof A=="boolean","missing or invalid endian"),a(y!=null,"missing offset"),a(y+1<s.length,"Trying to read beyond buffer length"));var p,C=s.length;if(!(C<=y))return A?(p=s[y],y+1<C&&(p|=s[y+1]<<8)):(p=s[y]<<8,y+1<C&&(p|=s[y+1])),p}function W(s,y,A,C){C||(a(typeof A=="boolean","missing or invalid endian"),a(y!=null,"missing offset"),a(y+3<s.length,"Trying to read beyond buffer length"));var p,C=s.length;if(!(C<=y))return A?(y+2<C&&(p=s[y+2]<<16),y+1<C&&(p|=s[y+1]<<8),p|=s[y],y+3<C&&(p+=s[y+3]<<24>>>0)):(y+1<C&&(p=s[y+1]<<16),y+2<C&&(p|=s[y+2]<<8),y+3<C&&(p|=s[y+3]),p+=s[y]<<24>>>0),p}function D(s,y,A,_){if(_||(a(typeof A=="boolean","missing or invalid endian"),a(y!=null,"missing offset"),a(y+1<s.length,"Trying to read beyond buffer length")),!(s.length<=y))return _=q(s,y,A,!0),32768&_?-1*(65535-_+1):_}function O(s,y,A,_){if(_||(a(typeof A=="boolean","missing or invalid endian"),a(y!=null,"missing offset"),a(y+3<s.length,"Trying to read beyond buffer length")),!(s.length<=y))return _=W(s,y,A,!0),2147483648&_?-1*(4294967295-_+1):_}function w(s,y,A,_){return _||(a(typeof A=="boolean","missing or invalid endian"),a(y+3<s.length,"Trying to read beyond buffer length")),z.read(s,y,A,23,4)}function T(s,y,A,_){return _||(a(typeof A=="boolean","missing or invalid endian"),a(y+7<s.length,"Trying to read beyond buffer length")),z.read(s,y,A,52,8)}function d(s,y,A,_,p){if(p||(a(y!=null,"missing value"),a(typeof _=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+1<s.length,"trying to write beyond buffer length"),n(y,65535)),p=s.length,!(p<=A))for(var C=0,k=Math.min(p-A,2);C<k;C++)s[A+C]=(y&255<<8*(_?C:1-C))>>>8*(_?C:1-C)}function u(s,y,A,_,p){if(p||(a(y!=null,"missing value"),a(typeof _=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+3<s.length,"trying to write beyond buffer length"),n(y,4294967295)),p=s.length,!(p<=A))for(var C=0,k=Math.min(p-A,4);C<k;C++)s[A+C]=y>>>8*(_?C:3-C)&255}function g(s,y,A,_,p){p||(a(y!=null,"missing value"),a(typeof _=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+1<s.length,"Trying to write beyond buffer length"),i(y,32767,-32768)),s.length<=A||d(s,0<=y?y:65535+y+1,A,_,p)}function b(s,y,A,_,p){p||(a(y!=null,"missing value"),a(typeof _=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+3<s.length,"Trying to write beyond buffer length"),i(y,2147483647,-2147483648)),s.length<=A||u(s,0<=y?y:4294967295+y+1,A,_,p)}function v(s,y,A,_,p){p||(a(y!=null,"missing value"),a(typeof _=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+3<s.length,"Trying to write beyond buffer length"),c(y,34028234663852886e22,-34028234663852886e22)),s.length<=A||z.write(s,y,A,_,23,4)}function S(s,y,A,_,p){p||(a(y!=null,"missing value"),a(typeof _=="boolean","missing or invalid endian"),a(A!=null,"missing offset"),a(A+7<s.length,"Trying to write beyond buffer length"),c(y,17976931348623157e292,-17976931348623157e292)),s.length<=A||z.write(s,y,A,_,52,8)}Q.Buffer=X,Q.SlowBuffer=X,Q.INSPECT_MAX_BYTES=50,X.poolSize=8192,X._useTypedArrays=function(){try{var s=new ArrayBuffer(0),y=new Uint8Array(s);return y.foo=function(){return 42},y.foo()===42&&typeof y.subarray=="function"}catch(A){return!1}}(),X.isEncoding=function(s){switch(String(s).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},X.isBuffer=function(s){return!(s==null||!s._isBuffer)},X.byteLength=function(s,y){var A;switch(s+="",y||"utf8"){case"hex":A=s.length/2;break;case"utf8":case"utf-8":A=l(s).length;break;case"ascii":case"binary":case"raw":A=s.length;break;case"base64":A=h(s).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":A=2*s.length;break;default:throw new Error("Unknown encoding")}return A},X.concat=function(s,y){if(a(f(s),`Usage: Buffer.concat(list, [totalLength])
5
+ list should be an Array.`),s.length===0)return new X(0);if(s.length===1)return s[0];if(typeof y!="number")for(p=y=0;p<s.length;p++)y+=s[p].length;for(var A=new X(y),_=0,p=0;p<s.length;p++){var C=s[p];C.copy(A,_),_+=C.length}return A},X.prototype.write=function(s,y,A,_){isFinite(y)?isFinite(A)||(_=A,A=void 0):(G=_,_=y,y=A,A=G),y=Number(y)||0;var p,C,k,F,G=this.length-y;switch((!A||G<(A=Number(A)))&&(A=G),_=String(_||"utf8").toLowerCase()){case"hex":p=function(I,j,N,Z){N=Number(N)||0;var $=I.length-N;(!Z||$<(Z=Number(Z)))&&(Z=$),a(($=j.length)%2==0,"Invalid hex string"),$/2<Z&&(Z=$/2);for(var Y=0;Y<Z;Y++){var et=parseInt(j.substr(2*Y,2),16);a(!isNaN(et),"Invalid hex string"),I[N+Y]=et}return X._charsWritten=2*Y,Y}(this,s,y,A);break;case"utf8":case"utf-8":C=this,k=y,F=A,p=X._charsWritten=e(l(s),C,k,F);break;case"ascii":case"binary":p=V(this,s,y,A);break;case"base64":C=this,k=y,F=A,p=X._charsWritten=e(h(s),C,k,F);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":p=K(this,s,y,A);break;default:throw new Error("Unknown encoding")}return p},X.prototype.toString=function(s,y,A){var _,p,C,k,F=this;if(s=String(s||"utf8").toLowerCase(),y=Number(y)||0,(A=A!==void 0?Number(A):F.length)===y)return"";switch(s){case"hex":_=function(G,I,j){var N=G.length;(!I||I<0)&&(I=0),(!j||j<0||N<j)&&(j=N);for(var Z="",$=I;$<j;$++)Z+=x(G[$]);return Z}(F,y,A);break;case"utf8":case"utf-8":_=function(G,I,j){var N="",Z="";j=Math.min(G.length,j);for(var $=I;$<j;$++)G[$]<=127?(N+=r(Z)+String.fromCharCode(G[$]),Z=""):Z+="%"+G[$].toString(16);return N+r(Z)}(F,y,A);break;case"ascii":case"binary":_=J(F,y,A);break;case"base64":p=F,k=A,_=(C=y)===0&&k===p.length?U.fromByteArray(p):U.fromByteArray(p.slice(C,k));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":_=function(G,I,j){for(var N=G.slice(I,j),Z="",$=0;$<N.length;$+=2)Z+=String.fromCharCode(N[$]+256*N[$+1]);return Z}(F,y,A);break;default:throw new Error("Unknown encoding")}return _},X.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},X.prototype.copy=function(s,y,A,_){if(y=y||0,(_=_||_===0?_:this.length)!==(A=A||0)&&s.length!==0&&this.length!==0){a(A<=_,"sourceEnd < sourceStart"),a(0<=y&&y<s.length,"targetStart out of bounds"),a(0<=A&&A<this.length,"sourceStart out of bounds"),a(0<=_&&_<=this.length,"sourceEnd out of bounds"),_>this.length&&(_=this.length);var p=(_=s.length-y<_-A?s.length-y+A:_)-A;if(p<100||!X._useTypedArrays)for(var C=0;C<p;C++)s[C+y]=this[C+A];else s._set(this.subarray(A,A+p),y)}},X.prototype.slice=function(s,y){var A=this.length;if(s=E(s,A,0),y=E(y,A,A),X._useTypedArrays)return X._augment(this.subarray(s,y));for(var _=y-s,p=new X(_,void 0,!0),C=0;C<_;C++)p[C]=this[C+s];return p},X.prototype.get=function(s){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(s)},X.prototype.set=function(s,y){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(s,y)},X.prototype.readUInt8=function(s,y){if(y||(a(s!=null,"missing offset"),a(s<this.length,"Trying to read beyond buffer length")),!(s>=this.length))return this[s]},X.prototype.readUInt16LE=function(s,y){return q(this,s,!0,y)},X.prototype.readUInt16BE=function(s,y){return q(this,s,!1,y)},X.prototype.readUInt32LE=function(s,y){return W(this,s,!0,y)},X.prototype.readUInt32BE=function(s,y){return W(this,s,!1,y)},X.prototype.readInt8=function(s,y){if(y||(a(s!=null,"missing offset"),a(s<this.length,"Trying to read beyond buffer length")),!(s>=this.length))return 128&this[s]?-1*(255-this[s]+1):this[s]},X.prototype.readInt16LE=function(s,y){return D(this,s,!0,y)},X.prototype.readInt16BE=function(s,y){return D(this,s,!1,y)},X.prototype.readInt32LE=function(s,y){return O(this,s,!0,y)},X.prototype.readInt32BE=function(s,y){return O(this,s,!1,y)},X.prototype.readFloatLE=function(s,y){return w(this,s,!0,y)},X.prototype.readFloatBE=function(s,y){return w(this,s,!1,y)},X.prototype.readDoubleLE=function(s,y){return T(this,s,!0,y)},X.prototype.readDoubleBE=function(s,y){return T(this,s,!1,y)},X.prototype.writeUInt8=function(s,y,A){A||(a(s!=null,"missing value"),a(y!=null,"missing offset"),a(y<this.length,"trying to write beyond buffer length"),n(s,255)),y>=this.length||(this[y]=s)},X.prototype.writeUInt16LE=function(s,y,A){d(this,s,y,!0,A)},X.prototype.writeUInt16BE=function(s,y,A){d(this,s,y,!1,A)},X.prototype.writeUInt32LE=function(s,y,A){u(this,s,y,!0,A)},X.prototype.writeUInt32BE=function(s,y,A){u(this,s,y,!1,A)},X.prototype.writeInt8=function(s,y,A){A||(a(s!=null,"missing value"),a(y!=null,"missing offset"),a(y<this.length,"Trying to write beyond buffer length"),i(s,127,-128)),y>=this.length||(0<=s?this.writeUInt8(s,y,A):this.writeUInt8(255+s+1,y,A))},X.prototype.writeInt16LE=function(s,y,A){g(this,s,y,!0,A)},X.prototype.writeInt16BE=function(s,y,A){g(this,s,y,!1,A)},X.prototype.writeInt32LE=function(s,y,A){b(this,s,y,!0,A)},X.prototype.writeInt32BE=function(s,y,A){b(this,s,y,!1,A)},X.prototype.writeFloatLE=function(s,y,A){v(this,s,y,!0,A)},X.prototype.writeFloatBE=function(s,y,A){v(this,s,y,!1,A)},X.prototype.writeDoubleLE=function(s,y,A){S(this,s,y,!0,A)},X.prototype.writeDoubleBE=function(s,y,A){S(this,s,y,!1,A)},X.prototype.fill=function(s,y,A){if(y=y||0,A=A||this.length,a(typeof(s=typeof(s=s||0)=="string"?s.charCodeAt(0):s)=="number"&&!isNaN(s),"value is not a number"),a(y<=A,"end < start"),A!==y&&this.length!==0){a(0<=y&&y<this.length,"start out of bounds"),a(0<=A&&A<=this.length,"end out of bounds");for(var _=y;_<A;_++)this[_]=s}},X.prototype.inspect=function(){for(var s=[],y=this.length,A=0;A<y;A++)if(s[A]=x(this[A]),A===Q.INSPECT_MAX_BYTES){s[A+1]="...";break}return"<Buffer "+s.join(" ")+">"},X.prototype.toArrayBuffer=function(){if(typeof Uint8Array=="undefined")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(X._useTypedArrays)return new X(this).buffer;for(var s=new Uint8Array(this.length),y=0,A=s.length;y<A;y+=1)s[y]=this[y];return s.buffer};var P=X.prototype;function E(s,y,A){return typeof s!="number"?A:y<=(s=~~s)?y:0<=s||0<=(s+=y)?s:0}function M(s){return(s=~~Math.ceil(+s))<0?0:s}function f(s){return(Array.isArray||function(y){return Object.prototype.toString.call(y)==="[object Array]"})(s)}function x(s){return s<16?"0"+s.toString(16):s.toString(16)}function l(s){for(var y=[],A=0;A<s.length;A++){var _=s.charCodeAt(A);if(_<=127)y.push(s.charCodeAt(A));else for(var p=A,C=(55296<=_&&_<=57343&&A++,encodeURIComponent(s.slice(p,A+1)).substr(1).split("%")),k=0;k<C.length;k++)y.push(parseInt(C[k],16))}return y}function h(s){return U.toByteArray(s)}function e(s,y,A,_){for(var p=0;p<_&&!(p+A>=y.length||p>=s.length);p++)y[p+A]=s[p];return p}function r(s){try{return decodeURIComponent(s)}catch(y){return"�"}}function n(s,y){a(typeof s=="number","cannot write a non-number as a number"),a(0<=s,"specified a negative value for writing an unsigned value"),a(s<=y,"value is larger than maximum value for type"),a(Math.floor(s)===s,"value has a fractional component")}function i(s,y,A){a(typeof s=="number","cannot write a non-number as a number"),a(s<=y,"value larger than maximum allowed value"),a(A<=s,"value smaller than minimum allowed value"),a(Math.floor(s)===s,"value has a fractional component")}function c(s,y,A){a(typeof s=="number","cannot write a non-number as a number"),a(s<=y,"value larger than maximum allowed value"),a(A<=s,"value smaller than minimum allowed value")}function a(s,y){if(!s)throw new Error(y||"Failed assertion")}X._augment=function(s){return s._isBuffer=!0,s._get=s.get,s._set=s.set,s.get=P.get,s.set=P.set,s.write=P.write,s.toString=P.toString,s.toLocaleString=P.toString,s.toJSON=P.toJSON,s.copy=P.copy,s.slice=P.slice,s.readUInt8=P.readUInt8,s.readUInt16LE=P.readUInt16LE,s.readUInt16BE=P.readUInt16BE,s.readUInt32LE=P.readUInt32LE,s.readUInt32BE=P.readUInt32BE,s.readInt8=P.readInt8,s.readInt16LE=P.readInt16LE,s.readInt16BE=P.readInt16BE,s.readInt32LE=P.readInt32LE,s.readInt32BE=P.readInt32BE,s.readFloatLE=P.readFloatLE,s.readFloatBE=P.readFloatBE,s.readDoubleLE=P.readDoubleLE,s.readDoubleBE=P.readDoubleBE,s.writeUInt8=P.writeUInt8,s.writeUInt16LE=P.writeUInt16LE,s.writeUInt16BE=P.writeUInt16BE,s.writeUInt32LE=P.writeUInt32LE,s.writeUInt32BE=P.writeUInt32BE,s.writeInt8=P.writeInt8,s.writeInt16LE=P.writeInt16LE,s.writeInt16BE=P.writeInt16BE,s.writeInt32LE=P.writeInt32LE,s.writeInt32BE=P.writeInt32BE,s.writeFloatLE=P.writeFloatLE,s.writeFloatBE=P.writeFloatBE,s.writeDoubleLE=P.writeDoubleLE,s.writeDoubleBE=P.writeDoubleBE,s.fill=P.fill,s.inspect=P.inspect,s.toArrayBuffer=P.toArrayBuffer,s}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(m,R,Q){(function(tt,ot,U,ct,ut,ft,yt,B,st){var U=m("buffer").Buffer,z=4,X=new U(z);X.fill(0),R.exports={hash:function(V,K,J,q){for(var W=K(function(d,u){d.length%z!=0&&(g=d.length+(z-d.length%z),d=U.concat([d,X],g));for(var g,b=[],v=u?d.readInt32BE:d.readInt32LE,S=0;S<d.length;S+=z)b.push(v.call(d,S));return b}(V=U.isBuffer(V)?V:new U(V),q),8*V.length),K=q,D=new U(J),O=K?D.writeInt32BE:D.writeInt32LE,w=0;w<W.length;w++)O.call(D,W[w],4*w,!0);return D}}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(m,R,Q){(function(tt,ot,U,ct,ut,ft,yt,B,st){var U=m("buffer").Buffer,z=m("./sha"),X=m("./sha256"),V=m("./rng"),K={sha1:z,sha256:X,md5:m("./md5")},J=64,q=new U(J);function W(d,u){var g=K[d=d||"sha1"],b=[];return g||D("algorithm:",d,"is not yet supported"),{update:function(v){return U.isBuffer(v)||(v=new U(v)),b.push(v),this},digest:function(v){var S=U.concat(b),S=u?function(P,E,M){U.isBuffer(E)||(E=new U(E)),U.isBuffer(M)||(M=new U(M)),E.length>J?E=P(E):E.length<J&&(E=U.concat([E,q],J));for(var f=new U(J),x=new U(J),l=0;l<J;l++)f[l]=54^E[l],x[l]=92^E[l];return M=P(U.concat([f,M])),P(U.concat([x,M]))}(g,u,S):g(S);return b=null,v?S.toString(v):S}}}function D(){var d=[].slice.call(arguments).join(" ");throw new Error([d,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
6
+ `))}q.fill(0),Q.createHash=function(d){return W(d)},Q.createHmac=W,Q.randomBytes=function(d,u){if(!u||!u.call)return new U(V(d));try{u.call(this,void 0,new U(V(d)))}catch(g){u(g)}};var O,w=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],T=function(d){Q[d]=function(){D("sorry,",d,"is not implemented yet")}};for(O in w)T(w[O])}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){var U=m("./helpers");function z(D,O){D[O>>5]|=128<<O%32,D[14+(O+64>>>9<<4)]=O;for(var w=1732584193,T=-271733879,d=-1732584194,u=271733878,g=0;g<D.length;g+=16){var b=w,v=T,S=d,P=u,w=V(w,T,d,u,D[g+0],7,-680876936),u=V(u,w,T,d,D[g+1],12,-389564586),d=V(d,u,w,T,D[g+2],17,606105819),T=V(T,d,u,w,D[g+3],22,-1044525330);w=V(w,T,d,u,D[g+4],7,-176418897),u=V(u,w,T,d,D[g+5],12,1200080426),d=V(d,u,w,T,D[g+6],17,-1473231341),T=V(T,d,u,w,D[g+7],22,-45705983),w=V(w,T,d,u,D[g+8],7,1770035416),u=V(u,w,T,d,D[g+9],12,-1958414417),d=V(d,u,w,T,D[g+10],17,-42063),T=V(T,d,u,w,D[g+11],22,-1990404162),w=V(w,T,d,u,D[g+12],7,1804603682),u=V(u,w,T,d,D[g+13],12,-40341101),d=V(d,u,w,T,D[g+14],17,-1502002290),w=K(w,T=V(T,d,u,w,D[g+15],22,1236535329),d,u,D[g+1],5,-165796510),u=K(u,w,T,d,D[g+6],9,-1069501632),d=K(d,u,w,T,D[g+11],14,643717713),T=K(T,d,u,w,D[g+0],20,-373897302),w=K(w,T,d,u,D[g+5],5,-701558691),u=K(u,w,T,d,D[g+10],9,38016083),d=K(d,u,w,T,D[g+15],14,-660478335),T=K(T,d,u,w,D[g+4],20,-405537848),w=K(w,T,d,u,D[g+9],5,568446438),u=K(u,w,T,d,D[g+14],9,-1019803690),d=K(d,u,w,T,D[g+3],14,-187363961),T=K(T,d,u,w,D[g+8],20,1163531501),w=K(w,T,d,u,D[g+13],5,-1444681467),u=K(u,w,T,d,D[g+2],9,-51403784),d=K(d,u,w,T,D[g+7],14,1735328473),w=J(w,T=K(T,d,u,w,D[g+12],20,-1926607734),d,u,D[g+5],4,-378558),u=J(u,w,T,d,D[g+8],11,-2022574463),d=J(d,u,w,T,D[g+11],16,1839030562),T=J(T,d,u,w,D[g+14],23,-35309556),w=J(w,T,d,u,D[g+1],4,-1530992060),u=J(u,w,T,d,D[g+4],11,1272893353),d=J(d,u,w,T,D[g+7],16,-155497632),T=J(T,d,u,w,D[g+10],23,-1094730640),w=J(w,T,d,u,D[g+13],4,681279174),u=J(u,w,T,d,D[g+0],11,-358537222),d=J(d,u,w,T,D[g+3],16,-722521979),T=J(T,d,u,w,D[g+6],23,76029189),w=J(w,T,d,u,D[g+9],4,-640364487),u=J(u,w,T,d,D[g+12],11,-421815835),d=J(d,u,w,T,D[g+15],16,530742520),w=q(w,T=J(T,d,u,w,D[g+2],23,-995338651),d,u,D[g+0],6,-198630844),u=q(u,w,T,d,D[g+7],10,1126891415),d=q(d,u,w,T,D[g+14],15,-1416354905),T=q(T,d,u,w,D[g+5],21,-57434055),w=q(w,T,d,u,D[g+12],6,1700485571),u=q(u,w,T,d,D[g+3],10,-1894986606),d=q(d,u,w,T,D[g+10],15,-1051523),T=q(T,d,u,w,D[g+1],21,-2054922799),w=q(w,T,d,u,D[g+8],6,1873313359),u=q(u,w,T,d,D[g+15],10,-30611744),d=q(d,u,w,T,D[g+6],15,-1560198380),T=q(T,d,u,w,D[g+13],21,1309151649),w=q(w,T,d,u,D[g+4],6,-145523070),u=q(u,w,T,d,D[g+11],10,-1120210379),d=q(d,u,w,T,D[g+2],15,718787259),T=q(T,d,u,w,D[g+9],21,-343485551),w=W(w,b),T=W(T,v),d=W(d,S),u=W(u,P)}return Array(w,T,d,u)}function X(D,O,w,T,d,u){return W((O=W(W(O,D),W(T,u)))<<d|O>>>32-d,w)}function V(D,O,w,T,d,u,g){return X(O&w|~O&T,D,O,d,u,g)}function K(D,O,w,T,d,u,g){return X(O&T|w&~T,D,O,d,u,g)}function J(D,O,w,T,d,u,g){return X(O^w^T,D,O,d,u,g)}function q(D,O,w,T,d,u,g){return X(w^(O|~T),D,O,d,u,g)}function W(D,O){var w=(65535&D)+(65535&O);return(D>>16)+(O>>16)+(w>>16)<<16|65535&w}R.exports=function(D){return U.hash(D,z,16)}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){R.exports=function(U){for(var z,X=new Array(U),V=0;V<U;V++)!(3&V)&&(z=4294967296*Math.random()),X[V]=z>>>((3&V)<<3)&255;return X}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){var U=m("./helpers");function z(K,J){K[J>>5]|=128<<24-J%32,K[15+(J+64>>9<<4)]=J;for(var q,W,D,O=Array(80),w=1732584193,T=-271733879,d=-1732584194,u=271733878,g=-1009589776,b=0;b<K.length;b+=16){for(var v=w,S=T,P=d,E=u,M=g,f=0;f<80;f++){O[f]=f<16?K[b+f]:V(O[f-3]^O[f-8]^O[f-14]^O[f-16],1);var x=X(X(V(w,5),(x=T,W=d,D=u,(q=f)<20?x&W|~x&D:!(q<40)&&q<60?x&W|x&D|W&D:x^W^D)),X(X(g,O[f]),(q=f)<20?1518500249:q<40?1859775393:q<60?-1894007588:-899497514)),g=u,u=d,d=V(T,30),T=w,w=x}w=X(w,v),T=X(T,S),d=X(d,P),u=X(u,E),g=X(g,M)}return Array(w,T,d,u,g)}function X(K,J){var q=(65535&K)+(65535&J);return(K>>16)+(J>>16)+(q>>16)<<16|65535&q}function V(K,J){return K<<J|K>>>32-J}R.exports=function(K){return U.hash(K,z,20,!0)}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){function U(J,q){var W=(65535&J)+(65535&q);return(J>>16)+(q>>16)+(W>>16)<<16|65535&W}function z(J,q){var W,D=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),O=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),w=new Array(64);J[q>>5]|=128<<24-q%32,J[15+(q+64>>9<<4)]=q;for(var T,d,u=0;u<J.length;u+=16){for(var g=O[0],b=O[1],v=O[2],S=O[3],P=O[4],E=O[5],M=O[6],f=O[7],x=0;x<64;x++)w[x]=x<16?J[x+u]:U(U(U((d=w[x-2],V(d,17)^V(d,19)^K(d,10)),w[x-7]),(d=w[x-15],V(d,7)^V(d,18)^K(d,3))),w[x-16]),W=U(U(U(U(f,V(d=P,6)^V(d,11)^V(d,25)),P&E^~P&M),D[x]),w[x]),T=U(V(T=g,2)^V(T,13)^V(T,22),g&b^g&v^b&v),f=M,M=E,E=P,P=U(S,W),S=v,v=b,b=g,g=U(W,T);O[0]=U(g,O[0]),O[1]=U(b,O[1]),O[2]=U(v,O[2]),O[3]=U(S,O[3]),O[4]=U(P,O[4]),O[5]=U(E,O[5]),O[6]=U(M,O[6]),O[7]=U(f,O[7])}return O}var X=m("./helpers"),V=function(J,q){return J>>>q|J<<32-q},K=function(J,q){return J>>>q};R.exports=function(J){return X.hash(J,z,32,!0)}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){Q.read=function(U,z,X,V,u){var J,q,W=8*u-V-1,D=(1<<W)-1,O=D>>1,w=-7,T=X?u-1:0,d=X?-1:1,u=U[z+T];for(T+=d,J=u&(1<<-w)-1,u>>=-w,w+=W;0<w;J=256*J+U[z+T],T+=d,w-=8);for(q=J&(1<<-w)-1,J>>=-w,w+=V;0<w;q=256*q+U[z+T],T+=d,w-=8);if(J===0)J=1-O;else{if(J===D)return q?NaN:1/0*(u?-1:1);q+=Math.pow(2,V),J-=O}return(u?-1:1)*q*Math.pow(2,J-V)},Q.write=function(U,z,X,V,K,g){var q,W,D=8*g-K-1,O=(1<<D)-1,w=O>>1,T=K===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=V?0:g-1,u=V?1:-1,g=z<0||z===0&&1/z<0?1:0;for(z=Math.abs(z),isNaN(z)||z===1/0?(W=isNaN(z)?1:0,q=O):(q=Math.floor(Math.log(z)/Math.LN2),z*(V=Math.pow(2,-q))<1&&(q--,V*=2),2<=(z+=1<=q+w?T/V:T*Math.pow(2,1-w))*V&&(q++,V/=2),O<=q+w?(W=0,q=O):1<=q+w?(W=(z*V-1)*Math.pow(2,K),q+=w):(W=z*Math.pow(2,w-1)*Math.pow(2,K),q=0));8<=K;U[X+d]=255&W,d+=u,W/=256,K-=8);for(q=q<<K|W,D+=K;0<D;U[X+d]=255&q,d+=u,q/=256,D-=8);U[X+d-u]|=128*g}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(m,R,Q){(function(tt,ot,lt,ct,ut,ft,yt,B,st){var U,z,X;function V(){}(tt=R.exports={}).nextTick=(z=typeof window!="undefined"&&window.setImmediate,X=typeof window!="undefined"&&window.postMessage&&window.addEventListener,z?function(K){return window.setImmediate(K)}:X?(U=[],window.addEventListener("message",function(K){var J=K.source;J!==window&&J!==null||K.data!=="process-tick"||(K.stopPropagation(),0<U.length&&U.shift()())},!0),function(K){U.push(K),window.postMessage("process-tick","*")}):function(K){setTimeout(K,0)}),tt.title="browser",tt.browser=!0,tt.env={},tt.argv=[],tt.on=V,tt.addListener=V,tt.once=V,tt.off=V,tt.removeListener=V,tt.removeAllListeners=V,tt.emit=V,tt.binding=function(K){throw new Error("process.binding is not supported")},tt.cwd=function(){return"/"},tt.chdir=function(K){throw new Error("process.chdir is not supported")}}).call(this,m("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},m("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})})(jm);var q_=jm.exports;const K_=Mi(q_);function J_(t,o){for(var m=-1,R=t==null?0:t.length;++m<R&&o(t[m],m,t)!==!1;);return t}var Nm=J_,Q_=Oa,tD=Ba,eD=Object.prototype,iD=eD.hasOwnProperty;function rD(t,o,m){var R=t[o];(!(iD.call(t,o)&&tD(R,m))||m===void 0&&!(o in t))&&Q_(t,o,m)}var Sc=rD,nD=Sc,oD=Oa;function sD(t,o,m,R){var Q=!m;m||(m={});for(var tt=-1,ot=o.length;++tt<ot;){var lt=o[tt],ct=R?R(m[lt],t[lt],lt,m,t):void 0;ct===void 0&&(ct=t[lt]),Q?oD(m,lt,ct):nD(m,lt,ct)}return m}var Fo=sD,aD=Fo,lD=Bo;function hD(t,o){return t&&aD(o,lD(o),t)}var cD=hD;function uD(t){var o=[];if(t!=null)for(var m in Object(t))o.push(m);return o}var pD=uD,dD=br,fD=ja,gD=pD,mD=Object.prototype,yD=mD.hasOwnProperty;function vD(t){if(!dD(t))return gD(t);var o=fD(t),m=[];for(var R in t)R=="constructor"&&(o||!yD.call(t,R))||m.push(R);return m}var bD=vD,xD=tm,wD=bD,CD=Na;function SD(t){return CD(t)?xD(t,!0):wD(t)}var Xa=SD,MD=Fo,AD=Xa;function TD(t,o){return t&&MD(o,AD(o),t)}var kD=TD,Nh={exports:{}};(function(t,o){var m=Zi,R=o&&!o.nodeType&&o,Q=R&&!0&&t&&!t.nodeType&&t,tt=Q&&Q.exports===R,ot=tt?m.Buffer:void 0,lt=ot?ot.allocUnsafe:void 0;function ct(ut,ft){if(ft)return ut.slice();var yt=ut.length,B=lt?lt(yt):new ut.constructor(yt);return ut.copy(B),B}t.exports=ct})(Nh,Nh.exports);var Bm=Nh.exports;function PD(t,o){var m=-1,R=t.length;for(o||(o=Array(R));++m<R;)o[m]=t[m];return o}var Rm=PD,LD=Fo,ED=gc;function OD(t,o){return LD(t,ED(t),o)}var _D=OD,DD=em,ID=DD(Object.getPrototypeOf,Object),Mc=ID,jD=fc,ND=Mc,BD=gc,RD=cm,zD=Object.getOwnPropertySymbols,FD=zD?function(t){for(var o=[];t;)jD(o,BD(t)),t=ND(t);return o}:RD,zm=FD,GD=Fo,WD=zm;function HD(t,o){return GD(t,WD(t),o)}var UD=HD,XD=hm,YD=zm,$D=Xa;function VD(t){return XD(t,$D,YD)}var ZD=VD,qD=Object.prototype,KD=qD.hasOwnProperty;function JD(t){var o=t.length,m=new t.constructor(o);return o&&typeof t[0]=="string"&&KD.call(t,"index")&&(m.index=t.index,m.input=t.input),m}var QD=JD,mf=am;function tI(t){var o=new t.constructor(t.byteLength);return new mf(o).set(new mf(t)),o}var Ac=tI,eI=Ac;function iI(t,o){var m=o?eI(t.buffer):t.buffer;return new t.constructor(m,t.byteOffset,t.byteLength)}var rI=iI,nI=/\w*$/;function oI(t){var o=new t.constructor(t.source,nI.exec(t));return o.lastIndex=t.lastIndex,o}var sI=oI,yf=$n,vf=yf?yf.prototype:void 0,bf=vf?vf.valueOf:void 0;function aI(t){return bf?Object(bf.call(t)):{}}var lI=aI,hI=Ac;function cI(t,o){var m=o?hI(t.buffer):t.buffer;return new t.constructor(m,t.byteOffset,t.length)}var Fm=cI,uI=Ac,pI=rI,dI=sI,fI=lI,gI=Fm,mI="[object Boolean]",yI="[object Date]",vI="[object Map]",bI="[object Number]",xI="[object RegExp]",wI="[object Set]",CI="[object String]",SI="[object Symbol]",MI="[object ArrayBuffer]",AI="[object DataView]",TI="[object Float32Array]",kI="[object Float64Array]",PI="[object Int8Array]",LI="[object Int16Array]",EI="[object Int32Array]",OI="[object Uint8Array]",_I="[object Uint8ClampedArray]",DI="[object Uint16Array]",II="[object Uint32Array]";function jI(t,o,m){var R=t.constructor;switch(o){case MI:return uI(t);case mI:case yI:return new R(+t);case AI:return pI(t,m);case TI:case kI:case PI:case LI:case EI:case OI:case _I:case DI:case II:return gI(t,m);case vI:return new R;case bI:case CI:return new R(t);case xI:return dI(t);case wI:return new R;case SI:return fI(t)}}var NI=jI,BI=br,xf=Object.create,RI=function(){function t(){}return function(o){if(!BI(o))return{};if(xf)return xf(o);t.prototype=o;var m=new t;return t.prototype=void 0,m}}(),Gm=RI,zI=Gm,FI=Mc,GI=ja;function WI(t){return typeof t.constructor=="function"&&!GI(t)?zI(FI(t)):{}}var Wm=WI,HI=Ro,UI=Dr,XI="[object Map]";function YI(t){return UI(t)&&HI(t)==XI}var $I=YI,VI=$I,ZI=Da,wf=uc,Cf=wf&&wf.isMap,qI=Cf?ZI(Cf):VI,KI=qI,JI=Ro,QI=Dr,tj="[object Set]";function ej(t){return QI(t)&&JI(t)==tj}var ij=ej,rj=ij,nj=Da,Sf=uc,Mf=Sf&&Sf.isSet,oj=Mf?nj(Mf):rj,sj=oj,aj=Wa,lj=Nm,hj=Sc,cj=cD,uj=kD,pj=Bm,dj=Rm,fj=_D,gj=UD,mj=um,yj=ZD,vj=Ro,bj=QD,xj=NI,wj=Wm,Cj=qi,Sj=No,Mj=KI,Aj=br,Tj=sj,kj=Bo,Pj=Xa,Lj=1,Ej=2,Oj=4,Hm="[object Arguments]",_j="[object Array]",Dj="[object Boolean]",Ij="[object Date]",jj="[object Error]",Um="[object Function]",Nj="[object GeneratorFunction]",Bj="[object Map]",Rj="[object Number]",Xm="[object Object]",zj="[object RegExp]",Fj="[object Set]",Gj="[object String]",Wj="[object Symbol]",Hj="[object WeakMap]",Uj="[object ArrayBuffer]",Xj="[object DataView]",Yj="[object Float32Array]",$j="[object Float64Array]",Vj="[object Int8Array]",Zj="[object Int16Array]",qj="[object Int32Array]",Kj="[object Uint8Array]",Jj="[object Uint8ClampedArray]",Qj="[object Uint16Array]",t5="[object Uint32Array]",Ne={};Ne[Hm]=Ne[_j]=Ne[Uj]=Ne[Xj]=Ne[Dj]=Ne[Ij]=Ne[Yj]=Ne[$j]=Ne[Vj]=Ne[Zj]=Ne[qj]=Ne[Bj]=Ne[Rj]=Ne[Xm]=Ne[zj]=Ne[Fj]=Ne[Gj]=Ne[Wj]=Ne[Kj]=Ne[Jj]=Ne[Qj]=Ne[t5]=!0;Ne[jj]=Ne[Um]=Ne[Hj]=!1;function ea(t,o,m,R,Q,tt){var ot,lt=o&Lj,ct=o&Ej,ut=o&Oj;if(m&&(ot=Q?m(t,R,Q,tt):m(t)),ot!==void 0)return ot;if(!Aj(t))return t;var ft=Cj(t);if(ft){if(ot=bj(t),!lt)return dj(t,ot)}else{var yt=vj(t),B=yt==Um||yt==Nj;if(Sj(t))return pj(t,lt);if(yt==Xm||yt==Hm||B&&!Q){if(ot=ct||B?{}:wj(t),!lt)return ct?gj(t,uj(ot,t)):fj(t,cj(ot,t))}else{if(!Ne[yt])return Q?t:{};ot=xj(t,yt,lt)}}tt||(tt=new aj);var st=tt.get(t);if(st)return st;tt.set(t,ot),Tj(t)?t.forEach(function(X){ot.add(ea(X,o,m,X,t,tt))}):Mj(t)&&t.forEach(function(X,V){ot.set(V,ea(X,o,m,V,t,tt))});var U=ut?ct?yj:mj:ct?Pj:kj,z=ft?void 0:U(t);return lj(z||t,function(X,V){z&&(V=X,X=t[V]),hj(ot,V,ea(X,o,m,V,t,tt))}),ot}var e5=ea,i5=e5,r5=1,n5=4;function o5(t){return i5(t,r5|n5)}var s5=o5;const Go=Mi(s5);var ia;(function(t){t.INCLUDE_ALL="INCLUDE_ALL",t.ADVANCED="ADVANCED",t.INVALID="INVALID",t.CONDITION="CONDITION",t.SPECIFIC_ITEMS="SPECIFIC_ITEMS"})(ia=ia||(ia={}));var ra;(function(t){t.PERIOD="PERIOD",t.DATE_RANGE="DATE_RANGE"})(ra=ra||(ra={}));var na;(function(t){t.NUMERIC_RANGE="NUMERIC_RANGE"})(na=na||(na={}));var Yr;(function(t){t.YEARS="years",t.QUARTERS="quarters",t.MONTHS="months",t.WEEKS="weeks",t.DAYS="days",t.HOURS="hours",t.MINUTES="minutes"})(Yr=Yr||(Yr={}));var zn;(function(t){t.DATE_TIME="datetime",t.NUMERIC="numeric",t.TEXT="text"})(zn=zn||(zn={}));const a5=["1","30"],Le=Object.assign(Object.assign(Object.assign({},ia),ra),na),l5={[Le.INCLUDE_ALL]:{all:!0,filterType:Le.INCLUDE_ALL},[Le.PERIOD]:{last:{count:1,offset:1},isNotCurrentPeriod:!0,filterType:Le.PERIOD},[Le.DATE_RANGE]:{filterType:Le.DATE_RANGE},[Le.NUMERIC_RANGE]:{filterType:Le.NUMERIC_RANGE},[Le.CONDITION]:{explicit:!1,multiSelection:!0,exclude:{members:[]},filterType:Le.CONDITION},[Le.SPECIFIC_ITEMS]:{explicit:!0,multiSelection:!0,members:[],filterType:Le.SPECIFIC_ITEMS}},h5={filter:l5.INCLUDE_ALL,level:Yr.YEARS};exports.ConditionFilterType=void 0;(function(t){t.IS="members",t.IS_NOT="exclude",t.IS_WITHIN="isWithin",t.TOP="top",t.BOTTOM="bottom",t.AFTER="after",t.BEFORE="before",t.STARTS_WITH="startsWith",t.DOESNT_START_WITH="doesntStartWith",t.ENDS_WITH="endsWith",t.DOESNT_END_WITH="doesntEndWith",t.CONTAINS="contains",t.DOESNT_CONTAIN="doesntContain",t.EQUALS="equals",t.DOESNT_EQUAL="doesntEqual",t.IS_EMPTY="isEmpty",t.IS_NOT_EMPTY="isNotEmpty",t.GREATER_THAN="fromNotEqual",t.GREATER_THAN_OR_EQUAL="from",t.LESS_THAN="toNotEqual",t.LESS_THAN_OR_EQUAL="to",t.BETWEEN="between",t.IS_NOT_BETWEEN="isNotBetween",t.MULTIPLE_CONDITION="multipleCondition",t.NONE="none"})(exports.ConditionFilterType=exports.ConditionFilterType||(exports.ConditionFilterType={}));function c5(t,o){return new my(t,gy.Union,o)}function u5(t,o){return new my(t,gy.Intersection,o)}function Ym(t,o,m){return new yN(t,o,m)}function $m(t,o,m){return new wr(t,xr.DoesntContain,o,m)}function Vm(t,o,m){return new wr(t,xr.DoesntEndWith,o,m)}function Zm(t,o,m){return new wr(t,xr.DoesntStartWith,o,m)}function qm(t,o,m){return new wr(t,xr.Contains,o,m)}function Km(t,o,m){return new wr(t,xr.EndsWith,o,m)}function Jm(t,o,m){return new wr(t,xr.StartsWith,o,m)}function p5(t,o,m){return new wr(t,xr.Like,o,m)}function d5(t,o,m){return typeof o=="string"?new wr(t,xr.DoesntEqual,o,m):bn(t,pi.DoesntEqual,o,void 0,void 0,m)}function Qm(t,o,m){return typeof o=="string"?new wr(t,xr.Equals,o,m):bn(t,pi.Equals,o,void 0,void 0,m)}function ty(t,o,m){return bn(t,pi.FromNotEqual,o,void 0,void 0,m)}function ey(t,o,m){return bn(t,pi.From,o,void 0,void 0,m)}function iy(t,o,m){return bn(t,pi.ToNotEqual,o,void 0,void 0,m)}function ry(t,o,m){return bn(t,pi.To,o,void 0,void 0,m)}function ga(t,o,m,R){return bn(t,pi.From,o,pi.To,m,R)}function bn(t,o,m,R,Q,tt){return new by(t,o,m,R,Q,tt)}function Wo(t,o,m,R,Q,tt){return new kc(t,o,m,R,Q,tt)}function ny(t,o,m,R){return new xy(t,o,m,R)}function oy(t,o,m,R,Q){return new Lc(t,o,m,Wn.Next,R,Q)}function sy(t,o,m,R,Q){return new Lc(t,o,m,Wn.Last,R,Q)}function to(t,o,m,R,Q,tt,ot){return new vy(t,o,m,R,Q,tt,ot)}function f5(t,o,m){return to(t.attribute,t,pi.Equals,o,void 0,void 0,m)}function g5(t,o,m){return to(t.attribute,t,pi.FromNotEqual,o,void 0,void 0,m)}function m5(t,o,m){return to(t.attribute,t,pi.From,o,void 0,void 0,m)}function y5(t,o,m){return to(t.attribute,t,pi.To,o,void 0,void 0,m)}function v5(t,o,m){return to(t.attribute,t,pi.ToNotEqual,o,void 0,void 0,m)}function b5(t,o,m,R){return to(t.attribute,t,pi.From,o,pi.To,m,R)}function ay(t,o,m,R){return new Pc(t,o,Tc.Top,m,R)}function ly(t,o,m,R){return new Pc(t,o,Tc.Bottom,m,R)}const dn=t=>{if(Array.isArray(t)){const[o,...m]=t;return m.length===0?dn(o):{operator:"AND",left:dn(o),right:dn(m)}}return t};var yh;(function(t){t.and=(o,m)=>({operator:"AND",left:dn(o),right:dn(m)}),t.or=(o,m)=>({operator:"OR",left:dn(o),right:dn(m)})})(yh=yh||(yh={}));function x5(t,o,m){return new wy(t,o,m)}function hy(t){try{if(t==null)return JSON.stringify(t);if(t===Object(t)&&"composeCode"in t)return t.composeCode;if(Array.isArray(t))return"["+t.map(o=>hy(o)).join(", ")+"]";if(typeof t=="string")return`'${t}'`;if(typeof t=="number"||!isNaN(t))return t}catch(o){console.error(o)}return JSON.stringify(t)}function ke(t){return function(...o){const m=o.map(hy).join(", ").replace(/(,\s*)+$/,""),R=`filterFactory.${t.name}(${m})`,Q=t(...o);return Q.composeCode=R,Q}}const Af="DM",cy=(t,o,m,R,Q)=>{const tt=o!=null?o:t.slice(1,-1).split(".")[0];if(R){const ct=or.translateJaqlToGranularity({level:R}),ut=or.getDefaultFormatForGranularity(ct),ft=new or(m,t,ct,ut);return ft.composeCode=jh(tt,m,R,Af),ft}const ot=ui(Q)?me.NumericAttribute:me.TextAttribute,lt=new Qn(m,t,ot);return lt.composeCode=jh(tt,m,void 0,Af),lt},w5=t=>cy(t.dim,t.table,t.column,t.level,t.datatype),uy=(t,o,m,R,Q,tt)=>{const ot=cy(t,o,m,R,Q),lt=Cc(ot,tt);return lt.composeCode=`measureFactory.${tt}(${ot.composeCode})`,lt},C5=t=>{const{dim:o,table:m,column:R,level:Q,datatype:tt,agg:ot}=t;if(ot)return uy(o,m,R,Q,tt,ot)},Tf=t=>{const{dim:o,table:m,column:R,level:Q,datatype:tt,agg:ot}=t;return uy(o,m,R,Q,tt,ot)},S5=t=>t.top!==void 0,M5=t=>t.bottom!==void 0,A5=t=>{var o;return!!(!((o=t.exclude)===null||o===void 0)&&o.members)},T5=t=>!!t.members&&!!t.isCondition,k5=t=>{var o,m;return((o=t.last)===null||o===void 0?void 0:o.anchor)!==void 0||((m=t.next)===null||m===void 0?void 0:m.anchor)!==void 0},P5=t=>t.fromNotEqual!==void 0,L5=t=>t.from!==void 0&&!t.isBetween,E5=t=>t.toNotEqual!==void 0,O5=t=>t.to!==void 0&&!t.isBetween,_5=t=>t.equals!==void 0,D5=t=>t.doesntEqual!==void 0,I5=t=>!!(t.equals===""&&t.isEmpty),j5=t=>!!(t.doesntEqual===""&&t.isEmpty),N5=t=>t.contains!==void 0,B5=t=>t.doesntContain!==void 0,R5=t=>t.startsWith!==void 0,z5=t=>t.doesntStartWith!==void 0,F5=t=>t.endsWith!==void 0,G5=t=>t.doesntEndWith!==void 0,W5=t=>t.from!==void 0&&t.to!==void 0,H5=t=>{var o,m;return((o=t.exclude)===null||o===void 0?void 0:o.from)!==void 0&&((m=t.exclude)===null||m===void 0?void 0:m.to)!==void 0},U5=t=>!!(t.or||t.and),Ya=t=>M5(t)?exports.ConditionFilterType.BOTTOM:S5(t)?exports.ConditionFilterType.TOP:A5(t)?exports.ConditionFilterType.IS_NOT:k5(t)?exports.ConditionFilterType.IS_WITHIN:P5(t)?exports.ConditionFilterType.GREATER_THAN:E5(t)?exports.ConditionFilterType.LESS_THAN:_5(t)?exports.ConditionFilterType.EQUALS:D5(t)?exports.ConditionFilterType.DOESNT_EQUAL:I5(t)?exports.ConditionFilterType.IS_EMPTY:j5(t)?exports.ConditionFilterType.IS_NOT_EMPTY:N5(t)?exports.ConditionFilterType.CONTAINS:B5(t)?exports.ConditionFilterType.DOESNT_CONTAIN:G5(t)?exports.ConditionFilterType.DOESNT_END_WITH:z5(t)?exports.ConditionFilterType.DOESNT_START_WITH:F5(t)?exports.ConditionFilterType.ENDS_WITH:R5(t)?exports.ConditionFilterType.STARTS_WITH:H5(t)?exports.ConditionFilterType.IS_NOT_BETWEEN:T5(t)?exports.ConditionFilterType.IS:U5(t)?exports.ConditionFilterType.MULTIPLE_CONDITION:W5(t)?exports.ConditionFilterType.BETWEEN:L5(t)?exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:O5(t)?exports.ConditionFilterType.LESS_THAN_OR_EQUAL:exports.ConditionFilterType.NONE,Bh=(t,o,m)=>{var R,Q,tt;switch(Ya(o)){case exports.ConditionFilterType.BOTTOM:if(o.by&&"agg"in o.by)return ke(ly)(t,Tf(o.by),o[exports.ConditionFilterType.BOTTOM],m);break;case exports.ConditionFilterType.EQUALS:return ke(Qm)(t,o[exports.ConditionFilterType.EQUALS],m);case exports.ConditionFilterType.GREATER_THAN:return ke(ty)(t,o[exports.ConditionFilterType.GREATER_THAN],m);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return ke(ey)(t,o[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],m);case exports.ConditionFilterType.TOP:if(o.by)return ke(ay)(t,Tf(o.by),o[exports.ConditionFilterType.TOP],m);break;case exports.ConditionFilterType.STARTS_WITH:return ke(Jm)(t,o[exports.ConditionFilterType.STARTS_WITH],m);case exports.ConditionFilterType.DOESNT_START_WITH:return ke(Zm)(t,o[exports.ConditionFilterType.DOESNT_START_WITH],m);case exports.ConditionFilterType.ENDS_WITH:return ke(Km)(t,o[exports.ConditionFilterType.ENDS_WITH],m);case exports.ConditionFilterType.DOESNT_END_WITH:return ke(Vm)(t,o[exports.ConditionFilterType.DOESNT_END_WITH],m);case exports.ConditionFilterType.CONTAINS:return ke(qm)(t,o[exports.ConditionFilterType.CONTAINS],m);case exports.ConditionFilterType.DOESNT_CONTAIN:return ke($m)(t,o[exports.ConditionFilterType.DOESNT_CONTAIN],m);case exports.ConditionFilterType.LESS_THAN:return ke(iy)(t,o[exports.ConditionFilterType.LESS_THAN],m);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return ke(ry)(t,o[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],m);case exports.ConditionFilterType.BETWEEN:return ke(ga)(t,o.from,o.to,m);case exports.ConditionFilterType.IS_NOT_BETWEEN:return ke(Ym)(ke(ga)(t,(R=o.exclude)===null||R===void 0?void 0:R.from,(Q=o.exclude)===null||Q===void 0?void 0:Q.to,m),void 0,m);case exports.ConditionFilterType.MULTIPLE_CONDITION:if(o.and)return ke(u5)(o.and.map(lt=>Bh(t,lt,m)),m);if(o.or)return ke(c5)(o.or.map(lt=>Bh(t,lt,m)),m);break;case exports.ConditionFilterType.IS_NOT:return ke(Wo)(t,((tt=o.exclude)===null||tt===void 0?void 0:tt.members)||[],!0,m)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(o)},X5=(t,o,m)=>{switch(Ya(o)){case exports.ConditionFilterType.EQUALS:return ke(f5)(t,o[exports.ConditionFilterType.EQUALS],m);case exports.ConditionFilterType.GREATER_THAN:return ke(g5)(t,o[exports.ConditionFilterType.GREATER_THAN],m);case exports.ConditionFilterType.GREATER_THAN_OR_EQUAL:return ke(m5)(t,o[exports.ConditionFilterType.GREATER_THAN_OR_EQUAL],m);case exports.ConditionFilterType.LESS_THAN:return ke(v5)(t,o[exports.ConditionFilterType.LESS_THAN],m);case exports.ConditionFilterType.LESS_THAN_OR_EQUAL:return ke(y5)(t,o[exports.ConditionFilterType.LESS_THAN_OR_EQUAL],m);case exports.ConditionFilterType.BETWEEN:return ke(b5)(t,o.from,o.to,m)}throw"Jaql contains unsupported condition filter: "+JSON.stringify(o)},Y5=(t,o)=>{let m=t?t.toLocaleLowerCase():Yr.YEARS;return m===Yr.MINUTES&&o==="60"&&(m=Yr.HOURS),m},$5=t=>t==null?void 0:t.all,V5=t=>t.last?t.last:t.next,Z5=t=>{var o;return((o=V5(t))===null||o===void 0?void 0:o.offset)<2},py=t=>{var o;return((o=t==null?void 0:t.members)===null||o===void 0?void 0:o.length)>=0},q5=(t,o)=>t&&typeof t=="string"||o&&typeof o=="string",K5=(t,o)=>t===""&&o==="",J5=(t,o)=>{const{from:m,to:R}=t;return o!==zn.DATE_TIME?!1:q5(m,R)?!0:K5(m,R)},Q5=t=>{const{from:o,to:m}=t;return o!==void 0&&m!==void 0&&!t.isBetween},dy=t=>Ya(t)!==exports.ConditionFilterType.NONE,tN=t=>Object.keys(t).includes("isAdvanced"),eN=t=>!!(t.level&&t.bucket&&t.level===Yr.MINUTES&&a5.includes(t.bucket)),iN=t=>t.filterType===Le.INVALID,kf=(t,o=zn.DATE_TIME,m)=>m&&eN(m)||tN(t)?Le.ADVANCED:$5(t)?Le.INCLUDE_ALL:Z5(t)?Le.PERIOD:py(t)?Le.SPECIFIC_ITEMS:J5(t,o)?Le.DATE_RANGE:Q5(t)?Le.NUMERIC_RANGE:dy(t)?Le.CONDITION:(iN(t),Le.INVALID),rN=(t,o)=>{const{level:m,filter:R,bucket:Q}=t,tt=R||h5.filter,ot={filter:Object.assign(Object.assign({},tt),{filterType:kf(tt,o)})};if(o===zn.DATE_TIME){const lt=tt,ct=(lt==null?void 0:lt.level)||m;ot.level=Y5(ct,Q),ot.filter.filterType=kf(tt,o,{level:ct,bucket:Q})}return ot},Pf=(t,o)=>({guid:o||fy(13),jaql:m=>m?t:{jaql:t,panel:"scope"},attribute:{id:t.dim},type:"filter",serializable(){return Object.assign(Object.assign({},this),{jaql:this.jaql()})},toJSON(){return this.serializable()}}),nN=(t,o)=>ke(Wo)(t,[],!0,o),oN=(t,o,m)=>{const R=sN(o),Q=aN(o,R);return ke(Wo)(t,Q,void 0,m,R)};function sN(t){var o,m,R;return!((o=t.filter)===null||o===void 0)&&o.turnedOff?(R=(m=t.filter)===null||m===void 0?void 0:m.exclude)===null||R===void 0?void 0:R.members:void 0}function aN(t,o){const m=t.members;return o?m.filter(R=>!o.includes(R)):m}const lN=(t,o,m)=>ke(ny)(t,o.from,o.to,m),hN=(t,o,m)=>ke(ga)(t,o.from,o.to,m),cN=(t,o,m)=>o.last?ke(sy)(t,o.last.offset,o.last.count,o.last.anchor,m):ke(oy)(t,o.next.offset,o.next.count,o.next.anchor,m),uN=(t,o,m,R)=>m?X5(m,o,R):Bh(t,o,R),pN=(t,o,m)=>ke(x5)(t,o,m),Lf=(t,o)=>{try{if("formula"in t)throw"Formula-based filter not supported yet: "+JSON.stringify(t);const m=rN(t,t.datatype),{filter:R}=m,{filterType:Q}=R,tt=w5(t),ot=C5(t);switch(Q){case Le.INCLUDE_ALL:return nN(tt,o);case Le.SPECIFIC_ITEMS:return oN(tt,R,o);case Le.CONDITION:return uN(tt,R,ot,o);case Le.DATE_RANGE:return lN(tt,R,o);case Le.PERIOD:return cN(tt,R,o);case Le.NUMERIC_RANGE:return hN(tt,R,o);case Le.ADVANCED:return pN(tt,R,o);case Le.INVALID:return Pf(t,o)}}catch(m){}return Pf(t,o)},fy=function(t){const o="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),m=new Array(t);let R=0,Q;for(let tt=0;tt<t;tt+=1){if(tt>0&&tt%5==0){m[tt]="-";continue}R<=2&&(R=33554432+Math.random()*16777216|0),Q=R&15,R=R>>4,m[tt]=o[tt==19?Q&3|8:Q]}return m.join("")},dN=t=>{if(!t)return{filters:void 0,relations:void 0};if(Array.isArray(t))return{filters:t,relations:void 0};const o=new Set;function m(tt){return tt&&("guid"in tt?(o.add(tt),{instanceid:tt.guid}):("left"in tt&&(tt.left=m(tt.left)),"right"in tt&&(tt.right=m(tt.right)),tt))}const R=Go(t),Q=m(R);return{filters:Array.from(o),relations:Q}};function fN(t){return typeof t=="string"?t:t.title}function gN(t){return typeof t=="object"&&"type"in t&&"title"in t}const mN=(t,o)=>{const m=t.filter.filter&&!("turnedOff"in t.filter.filter),R=Lf(t,o);return m&&(R.backgroundFilter=Lf(Object.assign(Object.assign({},t),{filter:t.filter.filter}),`${o}-bg`)),R},xr={Contains:"contains",StartsWith:"startsWith",EndsWith:"endsWith",Equals:"equals",DoesntEqual:"doesntEqual",DoesntStartWith:"doesntStartWith",DoesntContain:"doesntContain",DoesntEndWith:"doesntEndWith",Like:"like"},pi={Equals:"equals",DoesntEqual:"doesntEqual",From:"from",FromNotEqual:"fromNotEqual",To:"to",ToNotEqual:"toNotEqual"},Wn={From:"from",To:"to",Last:"last",Next:"next",Anchor:"Anchor"},gy={Union:"or",Intersection:"and",Exclude:"exclude"},Tc={Top:"top",Bottom:"bottom"},Ki={logicalAttribute:"logicalAttribute",members:"members",exclude:"exclude",measure:"measure",ranking:"ranking",text:"text",numeric:"numeric",date:"date",relativeDate:"relativeDate",cascading:"cascading",advanced:"advanced"};class Ii extends La{constructor(o,m,R){super("filter",me.Filter),this.filterType=m,Ii.checkAttributeSupport(o),this.attribute=o,this.guid=R||fy(13),this.disabled=!1,this.locked=!1}get disabled(){return this._disabled}set disabled(o){this._disabled=o}get locked(){return this._locked}set locked(o){this._locked=o}get name(){return K_(this.jaql())}serializable(){const o=super.serializable();return o.filterType=this.filterType,o.attribute=this.attribute.serializable(),o}jaql(o){if(this.disabled)return Ii.disabledJaql(o);const m=this.attribute.jaql(!1),R=this.attribute;if(R.getFormat&&R.getFormat()!==void 0){const Q=R.translateGranularityToJaql();m.format={mask:{[Q.level]:R.getFormat()}}}return m.jaql.filter=this.filterJaql(),this.isScope&&(m.panel="scope"),o===!0?m.jaql:m}static checkAttributeSupport(o){const{granularity:m}=o;if(m===Jt.Hours||m===Jt.MinutesRoundTo30||m===Jt.MinutesRoundTo15||m===Jt.Minutes||m===Jt.Seconds)throw new Dm("errors.filter.unsupportedDatetimeLevel")}static disabledJaql(o){return o?{filter:{}}:{jaql:{filter:{}}}}}class my extends Ii{constructor(o,m,R){super(o[0].attribute,Ki.logicalAttribute,R),this.operator=m,this.filters=o}get id(){return`${this.operator}_${this.filters.map(o=>o.id).join()}`}serializable(){const o=super.serializable();return o.operator=this.operator,o.filters=this.filters.map(m=>m.serializable()),o}filterJaql(){const o={};return o[this.operator]=this.filters.map(m=>m.filterJaql()),o}}class kc extends Ii{constructor(o,m,R,Q,tt,ot){if(super(o,Ki.members,Q),this.members=m!=null?m:[],this.excludeMembers=R!=null?R:!1,this.deactivatedMembers=tt!=null?tt:[],this.backgroundFilter=ot,this.members.filter(lt=>lt==null).length>0)throw new Dm("errors.filter.membersFilterNullMember",{attributeId:o.id})}get id(){return`${this.attribute.id}_${this.members.map(o=>o.toString()).join()}`}serializable(){const o=super.serializable();return o.members=this.members,this.backgroundFilter&&(o.backgroundFilter=this.backgroundFilter.serializable()),o}filterJaql(){const o={members:this.members.map(R=>R.toString())},m=this.excludeMembers&&this.members.length?{exclude:o}:o;return this.backgroundFilter?{and:[m,this.backgroundFilter.filterJaql()]}:m}}class yy extends Ii{constructor(o,m){super(o[0].attribute,Ki.cascading,m),this.filters=o}get id(){return`${this.filterType}_${this.filters.map(o=>o.id).join()}`}get disabled(){return super.disabled}set disabled(o){super.disabled=o,this.filters&&this.filters.forEach(m=>{m.disabled=o})}get locked(){return super.locked}set locked(o){super.locked=o,this.filters&&this.filters.forEach(m=>{m.locked=o})}serializable(){const o=super.serializable();return o.filters=this.filters.map(m=>m.serializable()),o}filterJaql(){return{}}jaql(o){return this.disabled?Ii.disabledJaql(o):this.filters.map(m=>(m.isScope=!0,m.jaql(o)))}}class yN extends Ii{constructor(o,m,R){super(o.attribute,Ki.exclude,R),this.input=m,this.filter=o}get id(){let o=`exclude_${this.filter.id}`;return this.input&&(o+="_from_"+this.input.id),o}serializable(){const o=super.serializable();return o.filter=this.filter.serializable(),this.input&&(o.input=this.input.serializable()),o}filterJaql(){const o={},m=this.filter.filterJaql();return this.input?(o.filter=this.input.filterJaql(),o.filter.filter={exclude:m}):o.exclude=m,o}}class $a extends Ii{constructor(o,m,R,Q,tt,ot,lt){super(o,m,lt),R&&Q!==void 0&&(this.valueA=Q,this.operatorA=R),tt&&ot!==void 0&&(this.operatorB=tt,this.valueB=ot)}get id(){let o=`${this.attribute.id}`;return this.operatorA&&this.valueA!==void 0&&(o+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(o+=`_${this.operatorB}:${this.valueB}`),o}serializable(){const o=super.serializable();return this.operatorA&&(o.operatorA=this.operatorA),this.operatorB&&(o.operatorB=this.operatorB),this.valueA!==void 0&&(o.valueA=this.valueA),this.valueB!==void 0&&(o.valueB=this.valueB),o}filterJaql(){const o={};return this.operatorA&&this.valueA!==void 0&&(o[this.operatorA]=this.valueA),this.operatorB&&this.valueB!==void 0&&(o[this.operatorB]=this.valueB),o}}class vy extends $a{constructor(o,m,R,Q,tt,ot,lt){super(o,Ki.measure,R,Q,tt,ot,lt),this.measure=m}get id(){let o=`${this.attribute.id}_${this.measure.id}`;return this.operatorA&&this.valueA!==void 0&&(o+=`_${this.operatorA}:${this.valueA}`),this.operatorB&&this.valueB!==void 0&&(o+=`_${this.operatorB}${this.valueB}`),o}serializable(){const o=super.serializable();return o.measure=this.measure.serializable(),o}jaql(o){if(this.disabled)return Ii.disabledJaql(o);const m=super.jaql(o);return this.measure instanceof _r&&Object.entries(this.measure.jaql().jaql).forEach(([R,Q])=>{m.jaql[R]=Q}),m}}class Pc extends Ii{constructor(o,m,R,Q,tt){super(o,Ki.ranking,tt),this.count=Q,this.operator=R,this.measure=m}get id(){return`${this.operator}_${this.count}_${this.attribute.id}_by_${this.measure.id}`}serializable(){const o=super.serializable();return o.count=this.count,o.operator=this.operator,o.measure=this.measure.serializable(),o}filterJaql(){const o={};return o[this.operator]=this.count,o.by=this.measure.jaql(!0),o}}class by extends $a{constructor(o,m,R,Q,tt,ot){super(o,Ki.numeric,m,R,Q,tt,ot)}}class wr extends $a{constructor(o,m,R,Q){super(o,Ki.text,m,R,void 0,void 0,Q)}}class xy extends $a{constructor(o,m,R,Q){super(o,Ki.date,Wn.From,m,Wn.To,R,Q),typeof m=="object"&&(this.valueA=m.toISOString()),typeof R=="object"&&(this.valueB=R.toISOString())}get level(){return this.attribute}get from(){return this.valueA}get to(){return this.valueB}filterJaql(){return super.filterJaql()}}class Lc extends Ii{constructor(o,m,R,Q,tt,ot){super(o,Ki.relativeDate,ot),Q||(Q=Wn.Next),this.anchor=tt,this.operator=Q,this.offset=m,this.count=R}get level(){return this.attribute}get id(){let o=`${this.level.id}_${this.operator}_${this.offset}_${this.count}`;return this.anchor&&(typeof this.anchor=="string"?o+=`_${this.anchor}`:typeof this.anchor=="object"&&(o+=`_${this.anchor.toISOString()}`)),o}serializable(){const o=super.serializable();return o.offset=this.offset,o.count=this.count,o.operator=this.operator,this.anchor&&(o.anchor=this.anchor),o}filterJaql(){const o={};return o[this.operator]={offset:this.offset,count:this.count},this.anchor&&(typeof this.anchor=="string"?o[this.operator].anchor=this.anchor:typeof this.anchor=="object"&&(o[this.operator].anchor=this.anchor.toISOString())),o}}class wy extends Ii{constructor(o,m,R){super(o,Ki.advanced,R),delete m.filterType,this.jaqlExpression=m}get id(){return`custom_${this.attribute.id}_${this.guid}`}filterJaql(){return this.jaqlExpression}}function Cy(t){if(t===null||t===!0||t===!1)return NaN;var o=Number(t);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}function Sy(t,o){if(o.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+o.length+" present")}var My=6e4,Ay=36e5;function Ec(t,o){var m;Sy(1,arguments);var R=Cy((m=void 0)!==null&&m!==void 0?m:2);if(R!==2&&R!==1&&R!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(!(typeof t=="string"||Object.prototype.toString.call(t)==="[object String]"))return new Date(NaN);var Q=wN(t),tt;if(Q.date){var ot=CN(Q.date,R);tt=SN(ot.restDateString,ot.year)}if(!tt||isNaN(tt.getTime()))return new Date(NaN);var lt=tt.getTime(),ct=0,ut;if(Q.time&&(ct=MN(Q.time),isNaN(ct)))return new Date(NaN);if(Q.timezone){if(ut=AN(Q.timezone),isNaN(ut))return new Date(NaN)}else{var ft=new Date(lt+ct),yt=new Date(0);return yt.setFullYear(ft.getUTCFullYear(),ft.getUTCMonth(),ft.getUTCDate()),yt.setHours(ft.getUTCHours(),ft.getUTCMinutes(),ft.getUTCSeconds(),ft.getUTCMilliseconds()),yt}return new Date(lt+ct+ut)}var Hs={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},vN=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,bN=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,xN=/^([+-])(\d{2})(?::?(\d{2}))?$/;function wN(t){var o={},m=t.split(Hs.dateTimeDelimiter),R;if(m.length>2)return o;if(/:/.test(m[0])?R=m[0]:(o.date=m[0],R=m[1],Hs.timeZoneDelimiter.test(o.date)&&(o.date=t.split(Hs.timeZoneDelimiter)[0],R=t.substr(o.date.length,t.length))),R){var Q=Hs.timezone.exec(R);Q?(o.time=R.replace(Q[1],""),o.timezone=Q[1]):o.time=R}return o}function CN(t,o){var m=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+o)+"})|(\\d{2}|[+-]\\d{"+(2+o)+"})$)"),R=t.match(m);if(!R)return{year:NaN,restDateString:""};var Q=R[1]?parseInt(R[1]):null,tt=R[2]?parseInt(R[2]):null;return{year:tt===null?Q:tt*100,restDateString:t.slice((R[1]||R[2]).length)}}function SN(t,o){if(o===null)return new Date(NaN);var m=t.match(vN);if(!m)return new Date(NaN);var R=!!m[4],Q=wo(m[1]),tt=wo(m[2])-1,ot=wo(m[3]),lt=wo(m[4]),ct=wo(m[5])-1;if(R)return EN(o,lt,ct)?TN(o,lt,ct):new Date(NaN);var ut=new Date(0);return!PN(o,tt,ot)||!LN(o,Q)?new Date(NaN):(ut.setUTCFullYear(o,tt,Math.max(Q,ot)),ut)}function wo(t){return t?parseInt(t):1}function MN(t){var o=t.match(bN);if(!o)return NaN;var m=vh(o[1]),R=vh(o[2]),Q=vh(o[3]);return ON(m,R,Q)?m*Ay+R*My+Q*1e3:NaN}function vh(t){return t&&parseFloat(t.replace(",","."))||0}function AN(t){if(t==="Z")return 0;var o=t.match(xN);if(!o)return 0;var m=o[1]==="+"?-1:1,R=parseInt(o[2]),Q=o[3]&&parseInt(o[3])||0;return _N(R,Q)?m*(R*Ay+Q*My):NaN}function TN(t,o,m){var R=new Date(0);R.setUTCFullYear(t,0,4);var Q=R.getUTCDay()||7,tt=(o-1)*7+m+1-Q;return R.setUTCDate(R.getUTCDate()+tt),R}var kN=[31,null,31,30,31,30,31,31,30,31,30,31];function Ty(t){return t%400===0||t%4===0&&t%100!==0}function PN(t,o,m){return o>=0&&o<=11&&m>=1&&m<=(kN[o]||(Ty(t)?29:28))}function LN(t,o){return o>=1&&o<=(Ty(t)?366:365)}function EN(t,o,m){return o>=1&&o<=53&&m>=0&&m<=6}function ON(t,o,m){return t===24?o===0&&m===0:m>=0&&m<60&&o>=0&&o<60&&t>=0&&t<25}function _N(t,o){return o>=0&&o<=59}var DN=/\s/;function IN(t){for(var o=t.length;o--&&DN.test(t.charAt(o)););return o}var jN=IN,NN=jN,BN=/^\s+/;function RN(t){return t&&t.slice(0,NN(t)+1).replace(BN,"")}var ky=RN,zN=ky,Ef=br,FN=Ha,Of=NaN,GN=/^[-+]0x[0-9a-f]+$/i,WN=/^0b[01]+$/i,HN=/^0o[0-7]+$/i,UN=parseInt;function XN(t){if(typeof t=="number")return t;if(FN(t))return Of;if(Ef(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=Ef(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=zN(t);var m=WN.test(t);return m||HN.test(t)?UN(t.slice(2),m?2:8):GN.test(t)?Of:+t}var Oc=XN,YN=Oc,_f=1/0,$N=17976931348623157e292;function VN(t){if(!t)return t===0?t:0;if(t=YN(t),t===_f||t===-_f){var o=t<0?-1:1;return o*$N}return t===t?t:0}var Py=VN;class _c extends hc{constructor(o,m){super(Ug,{key:o,interpolationOptions:m},kA.t)}}function Ly(t){const o="column"in t?t.column:t;return"context"in o||"aggregation"in o?!0:!("type"in o)}const Ho=t=>"aggregation"in t||"context"in t||"formula"in t,eo=t=>!Ho(t);var Df=$n,ZN=jo,qN=qi,If=Df?Df.isConcatSpreadable:void 0;function KN(t){return qN(t)||ZN(t)||!!(If&&t&&t[If])}var JN=KN,QN=fc,tB=JN;function Ey(t,o,m,R,Q){var tt=-1,ot=t.length;for(m||(m=tB),Q||(Q=[]);++tt<ot;){var lt=t[tt];o>0&&m(lt)?o>1?Ey(lt,o-1,m,R,Q):QN(Q,lt):R||(Q[Q.length]=lt)}return Q}var Oy=Ey,eB=Oy;function iB(t){var o=t==null?0:t.length;return o?eB(t,1):[]}var rB=iB;function nB(t,o,m){switch(m.length){case 0:return t.call(o);case 1:return t.call(o,m[0]);case 2:return t.call(o,m[0],m[1]);case 3:return t.call(o,m[0],m[1],m[2])}return t.apply(o,m)}var _y=nB,oB=_y,jf=Math.max;function sB(t,o,m){return o=jf(o===void 0?t.length-1:o,0),function(){for(var R=arguments,Q=-1,tt=jf(R.length-o,0),ot=Array(tt);++Q<tt;)ot[Q]=R[o+Q];Q=-1;for(var lt=Array(o+1);++Q<o;)lt[Q]=R[Q];return lt[o]=m(ot),oB(t,this,lt)}}var Dy=sB;function aB(t){return function(){return t}}var lB=aB,hB=lB,Nf=Kg,cB=wc,uB=Nf?function(t,o){return Nf(t,"toString",{configurable:!0,enumerable:!1,value:hB(o),writable:!0})}:cB,pB=uB,dB=800,fB=16,gB=Date.now;function mB(t){var o=0,m=0;return function(){var R=gB(),Q=fB-(R-m);if(m=R,Q>0){if(++o>=dB)return arguments[0]}else o=0;return t.apply(void 0,arguments)}}var yB=mB,vB=pB,bB=yB,xB=bB(vB),Iy=xB,wB=rB,CB=Dy,SB=Iy;function MB(t){return SB(CB(t,void 0,wB),t+"")}var jy=MB;const Po=(t,o)=>{const m=!t||t==="";let R,Q,tt;return ui(o)?(R=parseFloat(t),Q=isNaN(R)):mr(o)?(R=Ec(t).valueOf(),Q=isNaN(R)):(R=t,tt=t==null?void 0:t.toLowerCase(),Q=!1),jt({value:R,valueUndefined:m,valueIsNaN:Q},tt&&{lowercaseValue:tt})};function Bf(t,o){const m=QA(t)?t:{displayValue:t==null?void 0:t.toString()};return m.compareValue||(m.compareValue=Po(m.displayValue,o)),m}var Ny=(t=>(t[t.ASC=1]="ASC",t[t.DESC=-1]="DESC",t[t.NONE=0]="NONE",t))(Ny||{});function By(t,o,m=1,R="string"){const Q=Bf(t,R),tt=Bf(o,R),ot=Q.compareValue,lt=tt.compareValue;if(ot.valueUndefined&&lt.valueUndefined)return 0;if(ot.valueUndefined)return 1;if(lt.valueUndefined)return-1;if(ot.valueIsNaN&&lt.valueIsNaN)return 0;if(ot.valueIsNaN)return 1;if(lt.valueIsNaN)return-1;const ct=ot.lowercaseValue,ut=lt.lowercaseValue;if(ct!==void 0&&ut!==void 0){if(ct<ut)return-1*m;if(ct>ut)return 1*m}return ot.value<lt.value?-1*m:ot.value>lt.value?1*m:0}class Ry{constructor(o){Je(this,"columns",[]);this.columns=o}compare(o,m){for(let R=0;R<this.columns.length;R++){const Q=this.columns[R],tt=o[Q.index],ot=m[Q.index],lt=Q.direction||1,ct=By(tt,ot,lt,Q.type);if(ct!==0)return ct}return 0}}const zy=t=>t instanceof Object&&"data"in t,AB=t=>t.rows.length===0,Dc="$rownum",TB=t=>{let o=0;const m=t.rows.map(Q=>{const tt=t.columns.map((ot,lt)=>{var yt;const ct=Q[lt];if(zy(ct)){let B=ct.data.toString();if(mr(ot.type)){const st="1111-11-11T";B.startsWith(st)&&(B=B.replace(st,"1970-01-01T"))}return jt(jt({rawValue:ct.data,displayValue:(yt=ct.text)!=null?yt:B,compareValue:Po(B,ot.type)},ct.blur!==void 0?{blur:ct.blur}:{}),ct.color?{color:ct.color}:{})}let ut,ft;return mr(ot.type)&&(ut=Po(`${ct}`,ot.type),ft=new Date(ut.value).toISOString()),{rawValue:ft!=null?ft:ct,displayValue:`${ct!=null?ct:""}`,compareValue:ut}});return o++,tt.push({displayValue:`${o}`,rawValue:o}),tt}),R=t.columns.map((Q,tt)=>({name:Q.name,type:Q.type,index:tt,direction:0}));return R.push({name:Dc,type:"number",index:R.length,direction:0}),{columns:R,rows:m}},Fy=["polar"],Gy=["line","area","bar","column",...Fy],Wy=["pie","funnel","treemap","sunburst"],Hy=["scatter"],kB=["table"],PB=["indicator"],Uy=["boxplot"],LB=["areamap"],EB=["scattermap"],Xy=["arearange"],Ic=t=>Gy.find(o=>o===t)!==void 0,Yy=t=>Wy.find(o=>o===t)!==void 0,$y=t=>Hy.find(o=>o===t)!==void 0,Vy=t=>EB.find(o=>o===t)!==void 0,Zy=t=>PB.find(o=>o===t)!==void 0,qy=t=>Fy.find(o=>o===t)!==void 0,OB=t=>kB.find(o=>o===t)!==void 0,Ky=t=>Uy.find(o=>o===t)!==void 0,Jy=t=>LB.find(o=>o===t)!==void 0,_B=t=>Xy.find(o=>o===t)!==void 0;class Rf{constructor(o){Je(this,"data");Je(this,"sum");Je(this,"max");Je(this,"min");Je(this,"avg");Je(this,"variance");Je(this,"stddev");this.data=o}getStat(o){switch(o){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 o of this.data)this.sum+=o;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 o of this.data)o>this.max&&(this.max=o);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 o of this.data)o<this.min&&(this.min=o);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((o,m,R)=>R.indexOf(o)===m).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 o=this.getMean();this.variance=this.data.reduce((m,R)=>m.concat(te(R-o,2)),[]).reduce((m,R)=>m+R,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)}}class DB{constructor(o){Je(this,"data");Je(this,"countDistinct");this.data=o}getStat(o){switch(o){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((o,m,R)=>R.indexOf(o)===m).length}}const Qy=(t,o)=>t.slice(0).sort((m,R)=>o.compare(m,R)),jc=(t,o)=>{if(!(t&&t.length>0))return[];const m=new Ry(o),R=Qy(t,m);let Q=[];const tt=[];let ot=R[0];for(const lt of Array.from(R))m.compare(lt,ot)!==0&&(tt.push(Q),Q=[]),Q.push(lt),ot=lt;return tt.push(Q),tt},IB=(t,o)=>{var R,Q;const m=[];for(const tt of o){let ot;const lt=tt.column,{aggFunc:ct}=tt,ut=t.filter(B=>!!B[lt.index]&&B[lt.index].displayValue!==""),ft=(Q=(R=ut.find(B=>{var st;return B!==void 0&&((st=B==null?void 0:B[lt.index])==null?void 0:st.color)}))==null?void 0:R[lt.index])==null?void 0:Q.color,yt=ut.some(B=>B[lt.index].blur);if(mr(lt.type)){const B=ut.map(st=>Ec(st[lt.index].displayValue).valueOf());ot=new Rf(B).getStat(ct)}else if(ui(lt.type)){const B=ut.map(st=>parseFloat(st[lt.index].displayValue));ot=new Rf(B).getStat(ct)}else{const B=ut.map(st=>st[lt.index].displayValue);ot=new DB(B).getStat(ct)}m.push(jt(jt({displayValue:`${ot}`},ft&&{color:ft}),yt&&{blur:yt}))}return m},t0=(t,o)=>{if(zc(t))return{columns:[],rows:[]};const m=new Ry(o);return{columns:t.columns,rows:Qy(t.rows,m)}},e0=(t,o,m)=>{if(zc(t))return{rows:[],columns:[]};const R={name:"n/a",type:"n/a",index:-1,direction:0},Q=m.map(ut=>({aggFunc:ut.agg,aggName:ut.title,column:Xr(t,ut.column)||R})).filter(ut=>ut.column.index!==-1),tt=jc(t.rows,o),ot=Q.map(ut=>ut.aggName),lt=[];for(const ut of tt){const ft=Uo(ut[0],o),yt=IB(ut,Q),B=ft.slice(0).concat(yt);lt.push(B)}const ct=o.slice(0).concat(ot.map(ut=>({name:ut,type:"number",index:0,direction:0})));return{rows:lt,columns:ct.map((ut,ft)=>Zt(jt({},ut),{index:ft}))}},Xr=(t,o)=>t.columns.find(m=>m.name===o),Lo=(t,o)=>{const m={name:"foo",type:"string",index:-1,direction:0};return o.map(R=>Xr(t,R)||m).filter(R=>R!==m)},i0=(t,o)=>{const m=t.rows.map(Q=>o.map(tt=>Q[tt.index]));return{columns:o.map((Q,tt)=>Zt(jt({},Q),{index:tt})),rows:m}},Nc=(t,o)=>{if(!(t&&o.index<t.length))return;const m=t[o.index];return m.compareValue||(m.compareValue=Po(m.displayValue,o.type)),m.compareValue.value},Bc=(t,o)=>{var m;return(m=t[o.index])==null?void 0:m.blur},Uo=(t,o)=>{const m=[];for(const R of o)m.push(t[R.index]);return m},jB=(t,o)=>Uo(t,o).map(m=>m.rawValue||m.displayValue).join(","),Rc=(t,o)=>{if(!(t&&t.length>0))return{};const m=jc(t,o),R={};for(const Q of m){const tt=jB(Q[0],o);R[tt]=Q}return R},zc=t=>!(t.rows&&t.columns&&t.rows.length>0&&t.columns.length>0),r0=({x:t,y:o,breakBy:m})=>o0(o)&&n0(t)&&m.length===0,NB=({x:t,y:o,breakBy:m})=>n0(t)&&o0(o)&&m.length>0,n0=t=>t.length===0,o0=t=>t.length>0,BB=(t,o)=>t*(o/100),RB=(t,o)=>t===0?0:Math.abs(o)/Math.abs(t)*100,oa=t=>`${t}%`;var zf;(function(t){t.event="event",t.props="prop"})(zf||(zf={}));function zB(t){switch(t){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 FB(t,o,m){var R=zB(m),Q=t.search(/[1-9]/);return Q=Q===-1?t.length:Q,t.substring(0,Q)+t.substring(Q,t.length).replace(R,"$1"+o)}function GB(t,o){o===void 0&&(o=!0);var m=t[0]==="-",R=m&&o;t=t.replace("-","");var Q=t.split("."),tt=Q[0],ot=Q[1]||"";return{beforeDecimal:tt,afterDecimal:ot,hasNegation:m,addNegation:R}}function WB(t,o,m){for(var R="",Q=m?"0":"",tt=0;tt<=o-1;tt++)R+=t[tt]||Q;return R}function HB(t,o){var m=o.decimalScale,R=o.fixedDecimalScale,Q=o.prefix;Q===void 0&&(Q="");var tt=o.suffix;tt===void 0&&(tt="");var ot=o.allowNegative,lt=o.thousandsGroupStyle;if(lt===void 0&&(lt="thousand"),t===""||t==="-")return t;var ct=UB(o),ut=ct.thousandSeparator,ft=ct.decimalSeparator,yt=m!==0&&t.indexOf(".")!==-1||m&&R,B=GB(t,ot),st=B.beforeDecimal,U=B.afterDecimal,z=B.addNegation;return m!==void 0&&(U=WB(U,m,!!R)),ut&&(st=FB(st,ut,lt)),Q&&(st=Q+st),tt&&(U=U+tt),z&&(st="-"+st),t=st+(yt&&ft||"")+U,t}function UB(t){var o=t.decimalSeparator;o===void 0&&(o=".");var m=t.thousandSeparator,R=t.allowedDecimalSeparators;return m===!0&&(m=","),R||(R=[o,"."]),{decimalSeparator:o,thousandSeparator:m,allowedDecimalSeparators:R}}var XB=Py;function YB(t){var o=XB(t),m=o%1;return o===o?m?o-m:o:0}var $B=YB,VB=Zi,ZB=$B,qB=Oc,Ff=bc,KB=VB.isFinite,JB=Math.min;function QB(t){var o=Math[t];return function(m,R){if(m=qB(m),R=R==null?0:JB(ZB(R),292),R&&KB(m)){var Q=(Ff(m)+"e").split("e"),tt=o(Q[0]+"e"+(+Q[1]+R));return Q=(Ff(tt)+"e").split("e"),+(Q[0]+"e"+(+Q[1]-R))}return o(m)}}var t3=QB,e3=t3,i3=e3("round"),r3=i3;const n3=Mi(r3),Rh=1e3,zh=Rh*1e3,Fh=zh*1e3,Gf=Fh*1e3,s0=1000.1.toLocaleString().replace(/\d/g,""),o3=s0[0],s3=s0[1],a3={name:"Numbers",decimalScale:"auto",trillion:!0,billion:!0,million:!0,kilo:!0,thousandSeparator:!0,prefix:!0,symbol:"$"},$e=t=>jt(jt({},a3),t||{}),l3=(t,o)=>isNaN(o)?"":`<span>${Hn(t,o)}</span>`,h3=(t,o)=>Math.sign(t)*n3(Math.abs(t),o),Hn=(t,o)=>{const m=t.decimalScale!==0&&t.decimalScale!=="auto",R=t.decimalScale==="auto"?2:t.decimalScale;let Q=!0;t.name==="Numbers"&&!t.thousandSeparator&&(Q=void 0);let tt,ot,lt=o;return t.name==="Percent"&&(ot="%",lt=o*100),(t.name==="Numbers"||t.name==="Currency")&&(t.trillion&&Math.abs(o)/Gf>=1?(lt=o/Gf,ot="T"):t.billion&&Math.abs(o)/Fh>=1?(lt=o/Fh,ot="B"):t.million&&Math.abs(o)/zh>=1?(lt=o/zh,ot="M"):t.kilo&&Math.abs(o)/Rh>=1&&(lt=o/Rh,ot="K")),t.name==="Currency"&&(t.prefix?tt=t.symbol:ot?ot=`${ot}${t.symbol}`:ot=t.symbol),HB(`${h3(lt,R)}`,{displayType:"text",thousandSeparator:Q?o3:void 0,fixedDecimalScale:m,decimalScale:R,decimalSeparator:s3,prefix:tt,suffix:ot})},si=(t,o)=>{let m=l3(t,o);return m=m.replace("<span>",""),m=m.replace("</span>",""),m},ma="#dcdcdc",fn="#CCCCCC",Zr="#FFFFFF",c3=["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c","#08e5ff","#b3b3f7","#7efb62","#ff8a87","#ffc26a","#279fa1"],Fc=t=>({type:"uniform",color:t});function u3(t){return()=>t.color}const a0=t=>{if(t!==void 0)return typeof t=="string"?Fc(t).color:t.type==="uniform"?t.color:ma};function p3(t){var m;const o=((m=t.conditions)!=null?m:[]).map(R=>({match:d3(R),color:R.color}));return R=>{const Q=o.find(tt=>tt.match(R));return Q?Q.color:t.defaultColor}}function d3(t){const o=Number(t.expression);switch(t.operator){case"<":return m=>m<o;case">":return m=>m>o;case"≤":case"<=":return m=>m<=o;case"≥":case">=":return m=>m>=o;case"=":return m=>m==o;case"≠":case"!=":return m=>m!=o;default:return()=>!0}}function Ze(t,o){let m=t.length;Array.isArray(t[0])||(t=[t]),Array.isArray(o[0])||(o=o.map(ot=>[ot]));let R=o[0].length,Q=o[0].map((ot,lt)=>o.map(ct=>ct[lt])),tt=t.map(ot=>Q.map(lt=>{let ct=0;if(!Array.isArray(ot)){for(let ut of lt)ct+=ot*ut;return ct}for(let ut=0;ut<ot.length;ut++)ct+=ot[ut]*(lt[ut]||0);return ct}));return m===1&&(tt=tt[0]),R===1?tt.map(ot=>ot[0]):tt}function Xo(t){return $r(t)==="string"}function $r(t){return(Object.prototype.toString.call(t).match(/^\[object\s+(.*?)\]$/)[1]||"").toLowerCase()}function ya(t,o){t=+t,o=+o;let m=(Math.floor(t)+"").length;if(o>m)return+t.toFixed(o-m);{let R=te(10,m-o);return Math.round(t/R)*R}}function l0(t){if(!t)return;t=t.trim();const o=/^([a-z]+)\((.+?)\)$/i,m=/^-?[\d.]+$/;let R=t.match(o);if(R){let Q=[];return R[2].replace(/\/?\s*([-\w.]+(?:%|deg)?)/g,(tt,ot)=>{/%$/.test(ot)?(ot=new Number(ot.slice(0,-1)/100),ot.type="<percentage>"):/deg$/.test(ot)?(ot=new Number(+ot.slice(0,-3)),ot.type="<angle>",ot.unit="deg"):m.test(ot)&&(ot=new Number(ot),ot.type="<number>"),tt.startsWith("/")&&(ot=ot instanceof Number?ot:new Number(ot),ot.alpha=!0),Q.push(ot)}),{name:R[1].toLowerCase(),rawName:R[1],rawArgs:R[2],args:Q}}}function h0(t){return t[t.length-1]}function va(t,o,m){return isNaN(t)?o:isNaN(o)?t:t+(o-t)*m}function c0(t,o,m){return(m-t)/(o-t)}function Gc(t,o,m){return va(o[0],o[1],c0(t[0],t[1],m))}function u0(t){return t.map(o=>o.split("|").map(m=>{m=m.trim();let R=m.match(/^(<[a-z]+>)\[(-?[.\d]+),\s*(-?[.\d]+)\]?$/);if(R){let Q=new String(R[1]);return Q.range=[+R[2],+R[3]],Q}return m}))}var f3=Object.freeze({__proto__:null,interpolate:va,interpolateInv:c0,isString:Xo,last:h0,mapRange:Gc,multiplyMatrices:Ze,parseCoordGrammar:u0,parseFunction:l0,toPrecision:ya,type:$r});class g3{add(o,m,R){if(typeof arguments[0]!="string"){for(var o in arguments[0])this.add(o,arguments[0][o],arguments[1]);return}(Array.isArray(o)?o:[o]).forEach(function(Q){this[Q]=this[Q]||[],m&&this[Q][R?"unshift":"push"](m)},this)}run(o,m){this[o]=this[o]||[],this[o].forEach(function(R){R.call(m&&m.context?m.context:m,m)})}}const qr=new g3;var yr={gamut_mapping:"lch.c",precision:5,deltaE:"76"};const rr={D50:[.3457/.3585,1,(1-.3457-.3585)/.3585],D65:[.3127/.329,1,(1-.3127-.329)/.329]};function Gh(t){return Array.isArray(t)?t:rr[t]}function ba(t,o,m,R={}){if(t=Gh(t),o=Gh(o),!t||!o)throw new TypeError(`Missing white point to convert ${t?"":"from"}${!t&&!o?"/":""}${o?"":"to"}`);if(t===o)return m;let Q={W1:t,W2:o,XYZ:m,options:R};if(qr.run("chromatic-adaptation-start",Q),Q.M||(Q.W1===rr.D65&&Q.W2===rr.D50?Q.M=[[1.0479298208405488,.022946793341019088,-.05019222954313557],[.029627815688159344,.990434484573249,-.01707382502938514],[-.009243058152591178,.015055144896577895,.7518742899580008]]:Q.W1===rr.D50&&Q.W2===rr.D65&&(Q.M=[[.9554734527042182,-.023098536874261423,.0632593086610217],[-.028369706963208136,1.0099954580058226,.021041398966943008],[.012314001688319899,-.020507696433477912,1.3303659366080753]])),qr.run("chromatic-adaptation-end",Q),Q.M)return Ze(Q.M,Q.XYZ);throw new TypeError("Only Bradford CAT with white points D50 and D65 supported for now.")}const m3=75e-6,_i=class _i{constructor(o){var Q,tt,ot,lt,ct,ut,ft;this.id=o.id,this.name=o.name,this.base=o.base?_i.get(o.base):null,this.aliases=o.aliases,this.base&&(this.fromBase=o.fromBase,this.toBase=o.toBase);let m=(Q=o.coords)!=null?Q:this.base.coords;for(let yt in m)"name"in m[yt]||(m[yt].name=yt);this.coords=m;let R=(ot=(tt=o.white)!=null?tt:this.base.white)!=null?ot:"D65";this.white=Gh(R),this.formats=(lt=o.formats)!=null?lt:{};for(let yt in this.formats){let B=this.formats[yt];B.type||(B.type="function"),B.name||(B.name=yt)}o.cssId&&!((ct=this.formats.functions)!=null&&ct.color)?(this.formats.color={id:o.cssId},Object.defineProperty(this,"cssId",{value:o.cssId})):(ut=this.formats)!=null&&ut.color&&!((ft=this.formats)!=null&&ft.color.id)&&(this.formats.color.id=this.id),this.referred=o.referred,Object.defineProperty(this,"path",{value:y3(this).reverse(),writable:!1,enumerable:!0,configurable:!0}),qr.run("colorspace-init-end",this)}inGamut(o,{epsilon:m=m3}={}){if(this.isPolar)return o=this.toBase(o),this.base.inGamut(o,{epsilon:m});let R=Object.values(this.coords);return o.every((Q,tt)=>{let ot=R[tt];if(ot.type!=="angle"&&ot.range){if(Number.isNaN(Q))return!0;let[lt,ct]=ot.range;return(lt===void 0||Q>=lt-m)&&(ct===void 0||Q<=ct+m)}return!0})}get cssId(){var o,m;return((m=(o=this.formats.functions)==null?void 0:o.color)==null?void 0:m.id)||this.id}get isPolar(){for(let o in this.coords)if(this.coords[o].type==="angle")return!0;return!1}getFormat(o){if(typeof o=="object")return o=Wf(o,this),o;let m;return o==="default"?m=Object.values(this.formats)[0]:m=this.formats[o],m?(m=Wf(m,this),m):null}equals(o){return o?this===o||this.id===o.id:!1}to(o,m){if(arguments.length===1&&([o,m]=[o.space,o.coords]),o=_i.get(o),this.equals(o))return m;m=m.map(lt=>Number.isNaN(lt)?0:lt);let R=this.path,Q=o.path,tt,ot;for(let lt=0;lt<R.length&&R[lt].equals(Q[lt]);lt++)tt=R[lt],ot=lt;if(!tt)throw new Error(`Cannot convert between color spaces ${this} and ${o}: no connection space was found`);for(let lt=R.length-1;lt>ot;lt--)m=R[lt].toBase(m);for(let lt=ot+1;lt<Q.length;lt++)m=Q[lt].fromBase(m);return m}from(o,m){return arguments.length===1&&([o,m]=[o.space,o.coords]),o=_i.get(o),o.to(this,m)}toString(){return`${this.name} (${this.id})`}getMinCoords(){var m;let o=[];for(let R in this.coords){let Q=this.coords[R],tt=Q.range||Q.refRange;o.push((m=tt==null?void 0:tt.min)!=null?m:0)}return o}static get all(){return[...new Set(Object.values(_i.registry))]}static register(o,m){if(arguments.length===1&&(m=arguments[0],o=m.id),m=this.get(m),this.registry[o]&&this.registry[o]!==m)throw new Error(`Duplicate color space registration: '${o}'`);if(this.registry[o]=m,arguments.length===1&&m.aliases)for(let R of m.aliases)this.register(R,m);return m}static get(o,...m){if(!o||o instanceof _i)return o;if($r(o)==="string"){let Q=_i.registry[o.toLowerCase()];if(!Q)throw new TypeError(`No color space found with id = "${o}"`);return Q}if(m.length)return _i.get(...m);throw new TypeError(`${o} is not a valid color space`)}static resolveCoord(o,m){var ct;let R=$r(o),Q,tt;if(R==="string"?o.includes(".")?[Q,tt]=o.split("."):[Q,tt]=[,o]:Array.isArray(o)?[Q,tt]=o:(Q=o.space,tt=o.coordId),Q=_i.get(Q),Q||(Q=m),!Q)throw new TypeError(`Cannot resolve coordinate reference ${o}: No color space specified and relative references are not allowed here`);if(R=$r(tt),R==="number"||R==="string"&&tt>=0){let ut=Object.entries(Q.coords)[tt];if(ut)return jt({space:Q,id:ut[0],index:tt},ut[1])}Q=_i.get(Q);let ot=tt.toLowerCase(),lt=0;for(let ut in Q.coords){let ft=Q.coords[ut];if(ut.toLowerCase()===ot||((ct=ft.name)==null?void 0:ct.toLowerCase())===ot)return jt({space:Q,id:ut,index:lt},ft);lt++}throw new TypeError(`No "${tt}" coordinate found in ${Q.name}. Its coordinates are: ${Object.keys(Q.coords).join(", ")}`)}};Je(_i,"registry",{}),Je(_i,"DEFAULT_FORMAT",{type:"functions",name:"color"});let ue=_i;function y3(t){let o=[t];for(let m=t;m=m.base;)o.push(m);return o}function Wf(t,{coords:o}={}){if(t.coords&&!t.coordGrammar){t.type||(t.type="function"),t.name||(t.name="color"),t.coordGrammar=u0(t.coords);let m=Object.entries(o).map(([R,Q],tt)=>{let ot=t.coordGrammar[tt][0],lt=Q.range||Q.refRange,ct=ot.range,ut="";return ot=="<percentage>"?(ct=[0,100],ut="%"):ot=="<angle>"&&(ut="deg"),{fromRange:lt,toRange:ct,suffix:ut}});t.serializeCoords=(R,Q)=>R.map((tt,ot)=>{let{fromRange:lt,toRange:ct,suffix:ut}=m[ot];return lt&&ct&&(tt=Gc(lt,ct,tt)),tt=ya(tt,Q),ut&&(tt+=ut),tt})}return t}var $i=new ue({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 Ai extends ue{constructor(o){var m,R,Q;o.coords||(o.coords={r:{range:[0,1],name:"Red"},g:{range:[0,1],name:"Green"},b:{range:[0,1],name:"Blue"}}),o.base||(o.base=$i),o.toXYZ_M&&o.fromXYZ_M&&((m=o.toBase)!=null||(o.toBase=tt=>{let ot=Ze(o.toXYZ_M,tt);return this.white!==this.base.white&&(ot=ba(this.white,this.base.white,ot)),ot}),(R=o.fromBase)!=null||(o.fromBase=tt=>(tt=ba(this.base.white,this.white,tt),Ze(o.fromXYZ_M,tt)))),(Q=o.referred)!=null||(o.referred="display"),super(o)}}function p0(t,{meta:o}={}){var R,Q,tt,ot,lt,ct;let m={str:(R=String(t))==null?void 0:R.trim()};if(qr.run("parse-start",m),m.color)return m.color;if(m.parsed=l0(m.str),m.parsed){let ut=m.parsed.name;if(ut==="color"){let ft=m.parsed.args.shift(),yt=m.parsed.rawArgs.indexOf("/")>0?m.parsed.args.pop():1;for(let st of ue.all){let U=st.getFormat("color");if(U&&(ft===U.id||(Q=U.ids)!=null&&Q.includes(ft))){const z=Object.keys(st.coords).map((X,V)=>m.parsed.args[V]||0);return o&&(o.formatId="color"),{spaceId:st.id,coords:z,alpha:yt}}}let B="";if(ft in ue.registry){let st=(lt=(ot=(tt=ue.registry[ft].formats)==null?void 0:tt.functions)==null?void 0:ot.color)==null?void 0:lt.id;st&&(B=`Did you mean color(${st})?`)}throw new TypeError(`Cannot parse color(${ft}). `+(B||"Missing a plugin?"))}else for(let ft of ue.all){let yt=ft.getFormat(ut);if(yt&&yt.type==="function"){let B=1;(yt.lastAlpha||h0(m.parsed.args).alpha)&&(B=m.parsed.args.pop());let st=m.parsed.args,U;return yt.coordGrammar&&(U=Object.entries(ft.coords).map(([z,X],V)=>{var O;let K=yt.coordGrammar[V],J=(O=st[V])==null?void 0:O.type,q=K.find(w=>w==J);if(!q){let w=X.name||z;throw new TypeError(`${J} not allowed for ${w} in ${ut}()`)}let W=q.range;J==="<percentage>"&&(W||(W=[0,1]));let D=X.range||X.refRange;return W&&D&&(st[V]=Gc(W,D,st[V])),q})),o&&Object.assign(o,{formatId:yt.name,types:U}),{spaceId:ft.id,coords:st,alpha:B}}}}else for(let ut of ue.all)for(let ft in ut.formats){let yt=ut.formats[ft];if(yt.type!=="custom"||yt.test&&!yt.test(m.str))continue;let B=yt.parse(m.str);if(B)return(ct=B.alpha)!=null||(B.alpha=1),o&&(o.formatId=ft),B}throw new TypeError(`Could not parse ${t} as a color. Missing a plugin?`)}function Oe(t){if(!t)throw new TypeError("Empty color reference");Xo(t)&&(t=p0(t));let o=t.space||t.spaceId;return o instanceof ue||(t.space=ue.get(o)),t.alpha===void 0&&(t.alpha=1),t}function Yo(t,o){return o=ue.get(o),o.from(t)}function Vi(t,o){let{space:m,index:R}=ue.resolveCoord(o,t.space);return Yo(t,m)[R]}function d0(t,o,m){return o=ue.get(o),t.coords=o.to(t.space,m),t}function Kr(t,o,m){if(t=Oe(t),arguments.length===2&&$r(arguments[1])==="object"){let R=arguments[1];for(let Q in R)Kr(t,Q,R[Q])}else{typeof m=="function"&&(m=m(Vi(t,o)));let{space:R,index:Q}=ue.resolveCoord(o,t.space),tt=Yo(t,R);tt[Q]=m,d0(t,R,tt)}return t}var Wc=new ue({id:"xyz-d50",name:"XYZ D50",white:"D50",base:$i,fromBase:t=>ba($i.white,"D50",t),toBase:t=>ba("D50",$i.white,t),formats:{color:{}}});const v3=216/24389,Hf=24/116,Us=24389/27;let bh=rr.D50;var Di=new ue({id:"lab",name:"Lab",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:bh,base:Wc,fromBase(t){let m=t.map((R,Q)=>R/bh[Q]).map(R=>R>v3?Math.cbrt(R):(Us*R+16)/116);return[116*m[1]-16,500*(m[0]-m[1]),200*(m[1]-m[2])]},toBase(t){let o=[];return o[1]=(t[0]+16)/116,o[0]=t[1]/500+o[1],o[2]=o[1]-t[2]/200,[o[0]>Hf?Math.pow(o[0],3):(116*o[0]-16)/Us,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/Us,o[2]>Hf?Math.pow(o[2],3):(116*o[2]-16)/Us].map((R,Q)=>R*bh[Q])},formats:{lab:{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function Va(t){return(t%360+360)%360}function b3(t,o){if(t==="raw")return o;let[m,R]=o.map(Va),Q=R-m;return t==="increasing"?Q<0&&(R+=360):t==="decreasing"?Q>0&&(m+=360):t==="longer"?-180<Q&&Q<180&&(Q>0?m+=360:R+=360):t==="shorter"&&(Q>180?m+=360:Q<-180&&(R+=360)),[m,R]}var Eo=new ue({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:Di,fromBase(t){let[o,m,R]=t,Q;const tt=.02;return Math.abs(m)<tt&&Math.abs(R)<tt?Q=NaN:Q=Math.atan2(R,m)*180/Math.PI,[o,Math.sqrt(te(m,2)+te(R,2)),Va(Q)]},toBase(t){let[o,m,R]=t;return m<0&&(m=0),isNaN(R)&&(R=0),[o,m*Math.cos(R*Math.PI/180),m*Math.sin(R*Math.PI/180)]},formats:{lch:{coords:["<number> | <percentage>","<number> | <percentage>","<number> | <angle>"]}}});const Uf=te(25,7),xa=Math.PI,Xf=180/xa,Bn=xa/180;function Wh(t,o,{kL:m=1,kC:R=1,kH:Q=1}={}){let[tt,ot,lt]=Di.from(t),ct=Eo.from(Di,[tt,ot,lt])[1],[ut,ft,yt]=Di.from(o),B=Eo.from(Di,[ut,ft,yt])[1];ct<0&&(ct=0),B<0&&(B=0);let st=(ct+B)/2,U=te(st,7),z=.5*(1-Math.sqrt(U/(U+Uf))),X=(1+z)*ot,V=(1+z)*ft,K=Math.sqrt(te(X,2)+te(lt,2)),J=Math.sqrt(te(V,2)+te(yt,2)),q=X===0&&lt===0?0:Math.atan2(lt,X),W=V===0&&yt===0?0:Math.atan2(yt,V);q<0&&(q+=2*xa),W<0&&(W+=2*xa),q*=Xf,W*=Xf;let D=ut-tt,O=J-K,w=W-q,T=q+W,d=Math.abs(w),u;K*J===0?u=0:d<=180?u=w:w>180?u=w-360:w<-180?u=w+360:console.log("the unthinkable has happened");let g=2*Math.sqrt(J*K)*Math.sin(u*Bn/2),b=(tt+ut)/2,v=(K+J)/2,S=Math.pow(v,7),P;K*J===0?P=T:d<=180?P=T/2:T<360?P=(T+360)/2:P=(T-360)/2;let E=te(b-50,2),M=1+.015*E/Math.sqrt(20+E),f=1+.045*v,x=1;x-=.17*Math.cos((P-30)*Bn),x+=.24*Math.cos(2*P*Bn),x+=.32*Math.cos((3*P+6)*Bn),x-=.2*Math.cos((4*P-63)*Bn);let l=1+.015*v*x,h=30*Math.exp(-1*te((P-275)/25,2)),e=2*Math.sqrt(S/(S+Uf)),r=-1*Math.sin(2*h*Bn)*e,n=te(D/(m*M),2);return n+=te(O/(R*f),2),n+=te(g/(Q*l),2),n+=r*(O/(R*f))*(g/(Q*l)),Math.sqrt(n)}const x3=75e-6;function To(t,o=t.space,{epsilon:m=x3}={}){t=Oe(t),o=ue.get(o);let R=t.coords;return o!==t.space&&(R=o.from(t)),o.inGamut(R,{epsilon:m})}function Oo(t){return{space:t.space,coords:t.coords.slice(),alpha:t.alpha}}function Jr(t,{method:o=yr.gamut_mapping,space:m=t.space}={}){if(Xo(arguments[1])&&(m=arguments[1]),m=ue.get(m),To(t,m,{epsilon:0}))return Oe(t);let R=Yi(t,m);if(o!=="clip"&&!To(t,m)){let Q=Jr(Oo(R),{method:"clip",space:m});if(Wh(t,Q)>2){let tt=ue.resolveCoord(o),ot=tt.space,lt=tt.id,ct=Yi(R,ot),ft=(tt.range||tt.refRange)[0],yt=.01,B=ft,st=Vi(ct,lt);for(;st-B>yt;){let U=Oo(ct);U=Jr(U,{space:m,method:"clip"}),Wh(ct,U)-2<yt?B=Vi(ct,lt):st=Vi(ct,lt),Kr(ct,lt,(B+st)/2)}R=Yi(ct,m)}else R=Q}if(o==="clip"||!To(R,m,{epsilon:0})){let Q=Object.values(m.coords).map(tt=>tt.range||[]);R.coords=R.coords.map((tt,ot)=>{let[lt,ct]=Q[ot];return lt!==void 0&&(tt=Math.max(lt,tt)),ct!==void 0&&(tt=Math.min(tt,ct)),tt})}return m!==t.space&&(R=Yi(R,t.space)),t.coords=R.coords,t}Jr.returns="color";function Yi(t,o,{inGamut:m}={}){t=Oe(t),o=ue.get(o);let R=o.from(t),Q={space:o,coords:R,alpha:t.alpha};return m&&(Q=Jr(Q)),Q}Yi.returns="color";function wa(t,tt={}){var ot=tt,{precision:o=yr.precision,format:m="default",inGamut:R=!0}=ot,Q=Hi(ot,["precision","format","inGamut"]);var ft,yt,B;let lt;t=Oe(t);let ct=m;m=(yt=(ft=t.space.getFormat(m))!=null?ft:t.space.getFormat("default"))!=null?yt:ue.DEFAULT_FORMAT,R||(R=m.toGamut);let ut=t.coords;if(ut=ut.map(st=>st||0),R&&!To(t)&&(ut=Jr(Oo(t),R===!0?void 0:R).coords),m.type==="custom")if(Q.precision=o,m.serialize)lt=m.serialize(ut,t.alpha,Q);else throw new TypeError(`format ${ct} can only be used to parse colors, not for serialization`);else{let st=m.name||"color";m.serializeCoords?ut=m.serializeCoords(ut,o):o!==null&&(ut=ut.map(V=>ya(V,o)));let U=[...ut];if(st==="color"){let V=m.id||((B=m.ids)==null?void 0:B[0])||t.space.id;U.unshift(V)}let z=t.alpha;o!==null&&(z=ya(z,o));let X=t.alpha<1&&!m.noAlpha?`${m.commas?",":" /"} ${z}`:"";lt=`${st}(${U.join(m.commas?", ":" ")}${X})`}return lt}const w3=[[.6369580483012914,.14461690358620832,.1688809751641721],[.2627002120112671,.6779980715188708,.05930171646986196],[0,.028072693049087428,1.060985057710791]],C3=[[1.716651187971268,-.355670783776392,-.25336628137366],[-.666684351832489,1.616481236634939,.0157685458139111],[.017639857445311,-.042770613257809,.942103121235474]];var Za=new Ai({id:"rec2020-linear",name:"Linear REC.2020",white:"D65",toXYZ_M:w3,fromXYZ_M:C3,formats:{color:{}}});const Xs=1.09929682680944,Yf=.018053968510807;var f0=new Ai({id:"rec2020",name:"REC.2020",base:Za,toBase(t){return t.map(function(o){return o<Yf*4.5?o/4.5:Math.pow((o+Xs-1)/Xs,1/.45)})},fromBase(t){return t.map(function(o){return o>=Yf?Xs*Math.pow(o,.45)-(Xs-1):4.5*o})},formats:{color:{}}});const S3=[[.4865709486482162,.26566769316909306,.1982172852343625],[.2289745640697488,.6917385218365064,.079286914093745],[0,.04511338185890264,1.043944368900976]],M3=[[2.493496911941425,-.9313836179191239,-.40271078445071684],[-.8294889695615747,1.7626640603183463,.023624685841943577],[.03584583024378447,-.07617238926804182,.9568845240076872]];var g0=new Ai({id:"p3-linear",name:"Linear P3",white:"D65",toXYZ_M:S3,fromXYZ_M:M3});const A3=[[.41239079926595934,.357584339383878,.1804807884018343],[.21263900587151027,.715168678767756,.07219231536073371],[.01933081871559182,.11919477979462598,.9505321522496607]],T3=[[3.2409699419045226,-1.537383177570094,-.4986107602930034],[-.9692436362808796,1.8759675015077202,.04155505740717559],[.05563007969699366,-.20397695888897652,1.0569715142428786]];var m0=new Ai({id:"srgb-linear",name:"Linear sRGB",white:"D65",toXYZ_M:A3,fromXYZ_M:T3,formats:{color:{}}}),$f={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 Vf=Array(3).fill("<percentage> | <number>[0, 255]"),Zf=Array(3).fill("<number>[0, 255]");var _o=new Ai({id:"srgb",name:"sRGB",base:m0,fromBase:t=>t.map(o=>{let m=o<0?-1:1,R=o*m;return R>.0031308?m*(1.055*te(R,1/2.4)-.055):12.92*o}),toBase:t=>t.map(o=>{let m=o<0?-1:1,R=o*m;return R<.04045?o/12.92:m*te((R+.055)/1.055,2.4)}),formats:{rgb:{coords:Vf},rgb_number:{name:"rgb",commas:!0,coords:Zf,noAlpha:!0},color:{},rgba:{coords:Vf,commas:!0,lastAlpha:!0},rgba_number:{name:"rgba",commas:!0,coords:Zf},hex:{type:"custom",toGamut:!0,test:t=>/^#([a-f0-9]{3,4}){1,2}$/i.test(t),parse(t){t.length<=5&&(t=t.replace(/[a-f0-9]/gi,"$&$&"));let o=[];return t.replace(/[a-f0-9]{2}/gi,m=>{o.push(parseInt(m,16)/255)}),{spaceId:"srgb",coords:o.slice(0,3),alpha:o.slice(3)[0]}},serialize:(t,o,{collapse:m=!0}={})=>{o<1&&t.push(o),t=t.map(tt=>Math.round(tt*255));let R=m&&t.every(tt=>tt%17===0);return"#"+t.map(tt=>R?(tt/17).toString(16):tt.toString(16).padStart(2,"0")).join("")}},keyword:{type:"custom",test:t=>/^[a-z]+$/i.test(t),parse(t){t=t.toLowerCase();let o={spaceId:"srgb",coords:null,alpha:1};if(t==="transparent"?(o.coords=$f.black,o.alpha=0):o.coords=$f[t],o.coords)return o}}}}),y0=new Ai({id:"p3",name:"P3",base:g0,fromBase:_o.fromBase,toBase:_o.toBase,formats:{color:{id:"display-p3"}}});yr.display_space=_o;if(typeof CSS!="undefined"&&CSS.supports)for(let t of[Di,f0,y0]){let o=t.getMinCoords(),R=wa({space:t,coords:o,alpha:1});if(CSS.supports("color",R)){yr.display_space=t;break}}function k3(t,R={}){var Q=R,{space:o=yr.display_space}=Q,m=Hi(Q,["space"]);let tt=wa(t,m);if(typeof CSS=="undefined"||CSS.supports("color",tt)||!yr.display_space)tt=new String(tt),tt.color=t;else{let ot=Yi(t,o);tt=new String(wa(ot,m)),tt.color=ot}return tt}function v0(t,o,m="lab"){m=ue.get(m);let R=m.from(t),Q=m.from(o);return Math.sqrt(R.reduce((tt,ot,lt)=>{let ct=Q[lt];return isNaN(ot)||isNaN(ct)?tt:tt+te(ct-ot,2)},0))}function P3(t,o){return t=Oe(t),o=Oe(o),t.space===o.space&&t.alpha===o.alpha&&t.coords.every((m,R)=>m===o.coords[R])}function Qr(t){return Vi(t,[$i,"y"])}function b0(t,o){Kr(t,[$i,"y"],o)}function L3(t){Object.defineProperty(t.prototype,"luminance",{get(){return Qr(this)},set(o){b0(this,o)}})}var E3=Object.freeze({__proto__:null,getLuminance:Qr,register:L3,setLuminance:b0});function O3(t,o){t=Oe(t),o=Oe(o);let m=Math.max(Qr(t),0),R=Math.max(Qr(o),0);return R>m&&([m,R]=[R,m]),(m+.05)/(R+.05)}const _3=.56,D3=.57,I3=.62,j3=.65,qf=.022,N3=1.414,B3=.1,R3=5e-4,z3=1.14,Kf=.027,F3=1.14;function Jf(t){return t>=qf?t:t+te(qf-t,N3)}function Rn(t){let o=t<0?-1:1,m=Math.abs(t);return o*Math.pow(m,2.4)}function G3(t,o){o=Oe(o),t=Oe(t);let m,R,Q,tt,ot,lt;o=Yi(o,"srgb"),[tt,ot,lt]=o.coords;let ct=Rn(tt)*.2126729+Rn(ot)*.7151522+Rn(lt)*.072175;t=Yi(t,"srgb"),[tt,ot,lt]=t.coords;let ut=Rn(tt)*.2126729+Rn(ot)*.7151522+Rn(lt)*.072175,ft=Jf(ct),yt=Jf(ut),B=yt>ft;return Math.abs(yt-ft)<R3?R=0:B?(m=te(yt,_3)-te(ft,D3),R=m*z3):(m=te(yt,j3)-te(ft,I3),R=m*F3),Math.abs(R)<B3?Q=0:R>0?Q=R-Kf:Q=R+Kf,Q*100}function W3(t,o){t=Oe(t),o=Oe(o);let m=Math.max(Qr(t),0),R=Math.max(Qr(o),0);R>m&&([m,R]=[R,m]);let Q=m+R;return Q===0?0:(m-R)/Q}const H3=5e4;function U3(t,o){t=Oe(t),o=Oe(o);let m=Math.max(Qr(t),0),R=Math.max(Qr(o),0);return R>m&&([m,R]=[R,m]),R===0?H3:(m-R)/R}function X3(t,o){t=Oe(t),o=Oe(o);let m=Vi(t,[Di,"l"]),R=Vi(o,[Di,"l"]);return Math.abs(m-R)}const Y3=216/24389,Qf=24/116,Ys=24389/27;let xh=rr.D65;var Hh=new ue({id:"lab-d65",name:"Lab D65",coords:{l:{refRange:[0,100],name:"L"},a:{refRange:[-125,125]},b:{refRange:[-125,125]}},white:xh,base:$i,fromBase(t){let m=t.map((R,Q)=>R/xh[Q]).map(R=>R>Y3?Math.cbrt(R):(Ys*R+16)/116);return[116*m[1]-16,500*(m[0]-m[1]),200*(m[1]-m[2])]},toBase(t){let o=[];return o[1]=(t[0]+16)/116,o[0]=t[1]/500+o[1],o[2]=o[1]-t[2]/200,[o[0]>Qf?Math.pow(o[0],3):(116*o[0]-16)/Ys,t[0]>8?Math.pow((t[0]+16)/116,3):t[0]/Ys,o[2]>Qf?Math.pow(o[2],3):(116*o[2]-16)/Ys].map((R,Q)=>R*xh[Q])},formats:{"lab-d65":{coords:["<number> | <percentage>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});const wh=Math.pow(5,.5)*.5+.5;function $3(t,o){t=Oe(t),o=Oe(o);let m=Vi(t,[Hh,"l"]),R=Vi(o,[Hh,"l"]),Q=Math.abs(Math.pow(m,wh)-Math.pow(R,wh)),tt=Math.pow(Q,1/wh)*Math.SQRT2-40;return tt<7.5?0:tt}var sa=Object.freeze({__proto__:null,contrastAPCA:G3,contrastDeltaPhi:$3,contrastLstar:X3,contrastMichelson:W3,contrastWCAG21:O3,contrastWeber:U3});function V3(t,o,m={}){Xo(m)&&(m={algorithm:m});let tt=m,{algorithm:R}=tt,Q=Hi(tt,["algorithm"]);if(!R){let ot=Object.keys(sa).map(lt=>lt.replace(/^contrast/,"")).join(", ");throw new TypeError(`contrast() function needs a contrast algorithm. Please specify one of: ${ot}`)}t=Oe(t),o=Oe(o);for(let ot in sa)if("contrast"+R.toLowerCase()===ot.toLowerCase())return sa[ot](t,o,Q);throw new TypeError(`Unknown contrast algorithm: ${R}`)}function x0(t){let[o,m,R]=Yo(t,$i),Q=o+15*m+3*R;return[4*o/Q,9*m/Q]}function w0(t){let[o,m,R]=Yo(t,$i),Q=o+m+R;return[o/Q,m/Q]}function Z3(t){Object.defineProperty(t.prototype,"uv",{get(){return x0(this)}}),Object.defineProperty(t.prototype,"xy",{get(){return w0(this)}})}var q3=Object.freeze({__proto__:null,register:Z3,uv:x0,xy:w0});function K3(t,o){return v0(t,o,"lab")}const J3=Math.PI,tg=J3/180;function Q3(t,o,{l:m=2,c:R=1}={}){let[Q,tt,ot]=Di.from(t),[,lt,ct]=Eo.from(Di,[Q,tt,ot]),[ut,ft,yt]=Di.from(o),B=Eo.from(Di,[ut,ft,yt])[1];lt<0&&(lt=0),B<0&&(B=0);let st=Q-ut,U=lt-B,z=tt-ft,X=ot-yt,V=te(z,2)+te(X,2)-te(U,2),K=.511;Q>=16&&(K=.040975*Q/(1+.01765*Q));let J=.0638*lt/(1+.0131*lt)+.638,q;Number.isNaN(ct)&&(ct=0),ct>=164&&ct<=345?q=.56+Math.abs(.2*Math.cos((ct+168)*tg)):q=.36+Math.abs(.4*Math.cos((ct+35)*tg));let W=Math.pow(lt,4),D=Math.sqrt(W/(W+1900)),O=J*(D*q+1-D),w=te(st/(m*K),2);return w+=te(U/(R*J),2),w+=V/te(O,2),Math.sqrt(w)}const eg=203;var Hc=new ue({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:$i,fromBase(t){return t.map(o=>Math.max(o*eg,0))},toBase(t){return t.map(o=>Math.max(o/eg,0))}});const $s=1.15,Vs=.66,ig=2610/te(2,14),tR=te(2,14)/2610,rg=3424/te(2,12),ng=2413/te(2,7),og=2392/te(2,7),eR=1.7*2523/te(2,5),sg=te(2,5)/(1.7*2523),Zs=-.56,Ch=16295499532821565e-27,iR=[[.41478972,.579999,.014648],[-.20151,1.120649,.0531008],[-.0166008,.2648,.6684799]],rR=[[1.9242264357876067,-1.0047923125953657,.037651404030618],[.35031676209499907,.7264811939316552,-.06538442294808501],[-.09098281098284752,-.3127282905230739,1.5227665613052603]],nR=[[.5,.5,0],[3.524,-4.066708,.542708],[.199076,1.096799,-1.295875]],oR=[[1,.1386050432715393,.05804731615611886],[.9999999999999999,-.1386050432715393,-.05804731615611886],[.9999999999999998,-.09601924202631895,-.8118918960560388]];var C0=new ue({id:"jzazbz",name:"Jzazbz",coords:{jz:{refRange:[0,1],name:"Jz"},az:{refRange:[-.5,.5]},bz:{refRange:[-.5,.5]}},base:Hc,fromBase(t){let[o,m,R]=t,Q=$s*o-($s-1)*R,tt=Vs*m-(Vs-1)*o,lt=Ze(iR,[Q,tt,R]).map(function(B){let st=rg+ng*te(B/1e4,ig),U=1+og*te(B/1e4,ig);return te(st/U,eR)}),[ct,ut,ft]=Ze(nR,lt);return[(1+Zs)*ct/(1+Zs*ct)-Ch,ut,ft]},toBase(t){let[o,m,R]=t,Q=(o+Ch)/(1+Zs-Zs*(o+Ch)),ot=Ze(oR,[Q,m,R]).map(function(B){let st=rg-te(B,sg),U=og*te(B,sg)-ng;return 1e4*te(st/U,tR)}),[lt,ct,ut]=Ze(rR,ot),ft=(lt+($s-1)*ut)/$s,yt=(ct+(Vs-1)*ft)/Vs;return[ft,yt,ut]},formats:{color:{}}}),Uh=new ue({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:C0,fromBase(t){let[o,m,R]=t,Q;const tt=2e-4;return Math.abs(m)<tt&&Math.abs(R)<tt?Q=NaN:Q=Math.atan2(R,m)*180/Math.PI,[o,Math.sqrt(te(m,2)+te(R,2)),Va(Q)]},toBase(t){return[t[0],t[1]*Math.cos(t[2]*Math.PI/180),t[1]*Math.sin(t[2]*Math.PI/180)]},formats:{color:{}}});function sR(t,o){let[m,R,Q]=Uh.from(t),[tt,ot,lt]=Uh.from(o),ct=m-tt,ut=R-ot;Number.isNaN(Q)&&Number.isNaN(lt)?(Q=0,lt=0):Number.isNaN(Q)?Q=lt:Number.isNaN(lt)&&(lt=Q);let ft=Q-lt,yt=2*Math.sqrt(R*ot)*Math.sin(ft/2*(Math.PI/180));return Math.sqrt(te(ct,2)+te(ut,2)+te(yt,2))}const S0=3424/4096,M0=2413/128,A0=2392/128,ag=2610/16384,aR=2523/32,lR=16384/2610,lg=32/2523,hR=[[.3592,.6976,-.0358],[-.1922,1.1004,.0755],[.007,.0749,.8434]],cR=[[2048/4096,2048/4096,0],[6610/4096,-13613/4096,7003/4096],[17933/4096,-17390/4096,-543/4096]],uR=[[.9999888965628402,.008605050147287059,.11103437159861648],[1.00001110343716,-.008605050147287059,-.11103437159861648],[1.0000320633910054,.56004913547279,-.3206339100541203]],pR=[[2.0701800566956137,-1.326456876103021,.20661600684785517],[.3649882500326575,.6804673628522352,-.04542175307585323],[-.04959554223893211,-.04942116118675749,1.1879959417328034]];var Xh=new ue({id:"ictcp",name:"ICTCP",coords:{i:{refRange:[0,1],name:"I"},ct:{refRange:[-.5,.5],name:"CT"},cp:{refRange:[-.5,.5],name:"CP"}},base:Hc,fromBase(t){let o=Ze(hR,t);return dR(o)},toBase(t){let o=fR(t);return Ze(pR,o)},formats:{color:{}}});function dR(t){let o=t.map(function(m){let R=S0+M0*te(m/1e4,ag),Q=1+A0*te(m/1e4,ag);return te(R/Q,aR)});return Ze(cR,o)}function fR(t){return Ze(uR,t).map(function(R){let Q=Math.max(te(R,lg)-S0,0),tt=M0-A0*te(R,lg);return 1e4*te(Q/tt,lR)})}function gR(t,o){let[m,R,Q]=Xh.from(t),[tt,ot,lt]=Xh.from(o);return 720*Math.sqrt(te(m-tt,2)+.25*te(R-ot,2)+te(Q-lt,2))}const mR=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],yR=[[1.2268798733741557,-.5578149965554813,.28139105017721583],[-.04057576262431372,1.1122868293970594,-.07171106666151701],[-.07637294974672142,-.4214933239627914,1.5869240244272418]],vR=[[.2104542553,.793617785,-.0040720468],[1.9779984951,-2.428592205,.4505937099],[.0259040371,.7827717662,-.808675766]],bR=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]];var Ca=new ue({id:"oklab",name:"Oklab",coords:{l:{refRange:[0,1],name:"L"},a:{refRange:[-.4,.4]},b:{refRange:[-.4,.4]}},white:"D65",base:$i,fromBase(t){let m=Ze(mR,t).map(R=>Math.cbrt(R));return Ze(vR,m)},toBase(t){let m=Ze(bR,t).map(R=>te(R,3));return Ze(yR,m)},formats:{oklab:{coords:["<percentage> | <number>","<number> | <percentage>[-1,1]","<number> | <percentage>[-1,1]"]}}});function xR(t,o){let[m,R,Q]=Ca.from(t),[tt,ot,lt]=Ca.from(o),ct=m-tt,ut=R-ot,ft=Q-lt;return Math.sqrt(te(ct,2)+te(ut,2)+te(ft,2))}var Sa={deltaE76:K3,deltaECMC:Q3,deltaE2000:Wh,deltaEJz:sR,deltaEITP:gR,deltaEOK:xR};function Mo(t,o,m={}){Xo(m)&&(m={method:m});let tt=m,{method:R=yr.deltaE}=tt,Q=Hi(tt,["method"]);t=Oe(t),o=Oe(o);for(let ot in Sa)if("deltae"+R.toLowerCase()===ot.toLowerCase())return Sa[ot](t,o,Q);throw new TypeError(`Unknown deltaE method: ${R}`)}function wR(t,o=.25){let R=[ue.get("oklch","lch"),"l"];return Kr(t,R,Q=>Q*(1+o))}function CR(t,o=.25){let R=[ue.get("oklch","lch"),"l"];return Kr(t,R,Q=>Q*(1-o))}var SR=Object.freeze({__proto__:null,darken:CR,lighten:wR});function T0(t,o,m=.5,R={}){[t,o]=[Oe(t),Oe(o)],$r(m)==="object"&&([m,R]=[.5,m]);let{space:Q,outputSpace:tt,premultiplied:ot}=R;return $o(t,o,{space:Q,outputSpace:tt,premultiplied:ot})(m)}function k0(t,o,m={}){let R;Uc(t)&&([R,m]=[t,o],[t,o]=R.rangeArgs.colors);let B=m,{maxDeltaE:Q,deltaEMethod:tt,steps:ot=2,maxSteps:lt=1e3}=B,ct=Hi(B,["maxDeltaE","deltaEMethod","steps","maxSteps"]);R||([t,o]=[Oe(t),Oe(o)],R=$o(t,o,ct));let ut=Mo(t,o),ft=Q>0?Math.max(ot,Math.ceil(ut/Q)+1):ot,yt=[];if(lt!==void 0&&(ft=Math.min(ft,lt)),ft===1)yt=[{p:.5,color:R(.5)}];else{let st=1/(ft-1);yt=Array.from({length:ft},(U,z)=>{let X=z*st;return{p:X,color:R(X)}})}if(Q>0){let st=yt.reduce((U,z,X)=>{if(X===0)return 0;let V=Mo(z.color,yt[X-1].color,tt);return Math.max(U,V)},0);for(;st>Q;){st=0;for(let U=1;U<yt.length&&yt.length<lt;U++){let z=yt[U-1],X=yt[U],V=(X.p+z.p)/2,K=R(V);st=Math.max(st,Mo(K,z.color),Mo(K,X.color)),yt.splice(U,0,{p:V,color:R(V)}),U++}}}return yt=yt.map(st=>st.color),yt}function $o(t,o,m={}){if(Uc(t)){let[ct,ut]=[t,o];return $o(...ct.rangeArgs.colors,jt(jt({},ct.rangeArgs.options),ut))}let{space:R,outputSpace:Q,progression:tt,premultiplied:ot}=m;t=Oe(t),o=Oe(o),t=Oo(t),o=Oo(o);let lt={colors:[t,o],options:m};if(R?R=ue.get(R):R=ue.registry[yr.interpolationSpace]||t.space,Q=Q?ue.get(Q):R,t=Yi(t,R),o=Yi(o,R),t=Jr(t),o=Jr(o),R.coords.h&&R.coords.h.type==="angle"){let ct=m.hue=m.hue||"shorter",ut=[R,"h"],[ft,yt]=[Vi(t,ut),Vi(o,ut)];[ft,yt]=b3(ct,[ft,yt]),Kr(t,ut,ft),Kr(o,ut,yt)}return ot&&(t.coords=t.coords.map(ct=>ct*t.alpha),o.coords=o.coords.map(ct=>ct*o.alpha)),Object.assign(ct=>{ct=tt?tt(ct):ct;let ut=t.coords.map((B,st)=>{let U=o.coords[st];return va(B,U,ct)}),ft=va(t.alpha,o.alpha,ct),yt={space:R,coords:ut,alpha:ft};return ot&&(yt.coords=yt.coords.map(B=>B/ft)),Q!==R&&(yt=Yi(yt,Q)),yt},{rangeArgs:lt})}function Uc(t){return $r(t)==="function"&&!!t.rangeArgs}yr.interpolationSpace="lab";function MR(t){t.defineFunction("mix",T0,{returns:"color"}),t.defineFunction("range",$o,{returns:"function<color>"}),t.defineFunction("steps",k0,{returns:"array<color>"})}var AR=Object.freeze({__proto__:null,isRange:Uc,mix:T0,range:$o,register:MR,steps:k0}),P0=new ue({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:_o,fromBase:t=>{let o=Math.max(...t),m=Math.min(...t),[R,Q,tt]=t,[ot,lt,ct]=[NaN,0,(m+o)/2],ut=o-m;if(ut!==0){switch(lt=ct===0||ct===1?0:(o-ct)/Math.min(ct,1-ct),o){case R:ot=(Q-tt)/ut+(Q<tt?6:0);break;case Q:ot=(tt-R)/ut+2;break;case tt:ot=(R-Q)/ut+4}ot=ot*60}return[ot,lt*100,ct*100]},toBase:t=>{let[o,m,R]=t;o=o%360,o<0&&(o+=360),m/=100,R/=100;function Q(tt){let ot=(tt+o/30)%12,lt=m*Math.min(R,1-R);return R-lt*Math.max(-1,Math.min(ot-3,9-ot,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}}}),L0=new ue({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:P0,fromBase(t){let[o,m,R]=t;m/=100,R/=100;let Q=R+m*Math.min(R,1-R);return[o,Q===0?0:200*(1-R/Q),100*Q]},toBase(t){let[o,m,R]=t;m/=100,R/=100;let Q=R*(1-m/2);return[o,Q===0||Q===1?0:(R-Q)/Math.min(Q,1-Q)*100,Q*100]},formats:{color:{toGamut:!0}}}),TR=new ue({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:L0,fromBase(t){let[o,m,R]=t;return[o,R*(100-m)/100,100-R]},toBase(t){let[o,m,R]=t;m/=100,R/=100;let Q=m+R;if(Q>=1){let lt=m/Q;return[o,0,lt*100]}let tt=1-R,ot=tt===0?0:1-m/tt;return[o,ot*100,tt*100]},formats:{hwb:{toGamut:!0,coords:["<number> | <angle>","<percentage>","<percentage>"]}}});const kR=[[.5766690429101305,.1855582379065463,.1882286462349947],[.29734497525053605,.6273635662554661,.07529145849399788],[.02703136138641234,.07068885253582723,.9913375368376388]],PR=[[2.0415879038107465,-.5650069742788596,-.34473135077832956],[-.9692436362808795,1.8759675015077202,.04155505740717557],[.013444280632031142,-.11836239223101838,1.0151749943912054]];var E0=new Ai({id:"a98rgb-linear",name:"Linear Adobe® 98 RGB compatible",white:"D65",toXYZ_M:kR,fromXYZ_M:PR}),LR=new Ai({id:"a98rgb",name:"Adobe® 98 RGB compatible",base:E0,toBase:t=>t.map(o=>Math.pow(Math.abs(o),563/256)*Math.sign(o)),fromBase:t=>t.map(o=>Math.pow(Math.abs(o),256/563)*Math.sign(o)),formats:{color:{id:"a98-rgb"}}});const ER=[[.7977604896723027,.13518583717574031,.0313493495815248],[.2880711282292934,.7118432178101014,8565396060525902e-20],[0,0,.8251046025104601]],OR=[[1.3457989731028281,-.25558010007997534,-.05110628506753401],[-.5446224939028347,1.5082327413132781,.02053603239147973],[0,0,1.2119675456389454]];var O0=new Ai({id:"prophoto-linear",name:"Linear ProPhoto",white:"D50",base:Wc,toXYZ_M:ER,fromXYZ_M:OR});const _R=1/512,DR=16/512;var IR=new Ai({id:"prophoto",name:"ProPhoto",base:O0,toBase(t){return t.map(o=>o<DR?o/16:te(o,1.8))},fromBase(t){return t.map(o=>o>=_R?te(o,1/1.8):16*o)},formats:{color:{id:"prophoto-rgb"}}}),jR=new ue({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:Ca,fromBase(t){let[o,m,R]=t,Q;const tt=2e-4;return Math.abs(m)<tt&&Math.abs(R)<tt?Q=NaN:Q=Math.atan2(R,m)*180/Math.PI,[o,Math.sqrt(te(m,2)+te(R,2)),Va(Q)]},toBase(t){let[o,m,R]=t,Q,tt;return isNaN(R)?(Q=0,tt=0):(Q=m*Math.cos(R*Math.PI/180),tt=m*Math.sin(R*Math.PI/180)),[o,Q,tt]},formats:{oklch:{coords:["<number> | <percentage>","<number> | <percentage>[0,1]","<number> | <angle>"]}}});const hg=203,cg=2610/te(2,14),NR=te(2,14)/2610,BR=2523/te(2,5),ug=te(2,5)/2523,pg=3424/te(2,12),dg=2413/te(2,7),fg=2392/te(2,7);var RR=new Ai({id:"rec2100pq",name:"REC.2100-PQ",base:Za,toBase(t){return t.map(function(o){return te(Math.max(te(o,ug)-pg,0)/(dg-fg*te(o,ug)),NR)*1e4/hg})},fromBase(t){return t.map(function(o){let m=Math.max(o*hg/1e4,0),R=pg+dg*te(m,cg),Q=1+fg*te(m,cg);return te(R/Q,BR)})},formats:{color:{id:"rec2100-pq"}}});const gg=.17883277,mg=.28466892,yg=.55991073,Sh=3.7743;var zR=new Ai({id:"rec2100hlg",cssid:"rec2100-hlg",name:"REC.2100-HLG",referred:"scene",base:Za,toBase(t){return t.map(function(o){return o<=.5?te(o,2)/3*Sh:(Math.exp((o-yg)/gg)+mg)/12*Sh})},fromBase(t){return t.map(function(o){return o/=Sh,o<=1/12?Math.sqrt(3*o):gg*Math.log(12*o-mg)+yg})},formats:{color:{id:"rec2100-hlg"}}});const _0={};qr.add("chromatic-adaptation-start",t=>{t.options.method&&(t.M=D0(t.W1,t.W2,t.options.method))});qr.add("chromatic-adaptation-end",t=>{t.M||(t.M=D0(t.W1,t.W2,t.options.method))});function qa({id:t,toCone_M:o,fromCone_M:m}){_0[t]=arguments[0]}function D0(t,o,m="Bradford"){let R=_0[m],[Q,tt,ot]=Ze(R.toCone_M,t),[lt,ct,ut]=Ze(R.toCone_M,o),ft=[[lt/Q,0,0],[0,ct/tt,0],[0,0,ut/ot]],yt=Ze(ft,R.toCone_M);return Ze(R.fromCone_M,yt)}qa({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]]});qa({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]]});qa({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]]});qa({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(rr,{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]});rr.ACES=[.32168/.33767,1,(1-.32168-.33767)/.33767];const FR=[[.6624541811085053,.13400420645643313,.1561876870049078],[.27222871678091454,.6740817658111484,.05368951740793705],[-.005574649490394108,.004060733528982826,1.0103391003129971]],GR=[[1.6410233796943257,-.32480329418479,-.23642469523761225],[-.6636628587229829,1.6153315916573379,.016756347685530137],[.011721894328375376,-.008284441996237409,.9883948585390215]];var I0=new Ai({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:rr.ACES,toXYZ_M:FR,fromXYZ_M:GR,formats:{color:{}}});const qs=te(2,-16),Mh=-.35828683,Ks=(Math.log2(65504)+9.72)/17.52;var WR=new Ai({id:"acescc",name:"ACEScc",coords:{r:{range:[Mh,Ks],name:"Red"},g:{range:[Mh,Ks],name:"Green"},b:{range:[Mh,Ks],name:"Blue"}},referred:"scene",base:I0,toBase(t){const o=-.3013698630136986;return t.map(function(m){return m<=o?(te(2,m*17.52-9.72)-qs)*2:m<Ks?te(2,m*17.52-9.72):65504})},fromBase(t){return t.map(function(o){return o<=0?(Math.log2(qs)+9.72)/17.52:o<qs?(Math.log2(qs+o*.5)+9.72)/17.52:(Math.log2(o)+9.72)/17.52})},formats:{color:{}}}),vg=Object.freeze({__proto__:null,A98RGB:LR,A98RGB_Linear:E0,ACEScc:WR,ACEScg:I0,HSL:P0,HSV:L0,HWB:TR,ICTCP:Xh,JzCzHz:Uh,Jzazbz:C0,LCH:Eo,Lab:Di,Lab_D65:Hh,OKLCH:jR,OKLab:Ca,P3:y0,P3_Linear:g0,ProPhoto:IR,ProPhoto_Linear:O0,REC_2020:f0,REC_2020_Linear:Za,REC_2100_HLG:zR,REC_2100_PQ:RR,XYZ_ABS_D65:Hc,XYZ_D50:Wc,XYZ_D65:$i,sRGB:_o,sRGB_Linear:m0});class Ae{constructor(...o){let m;o.length===1&&(m=Oe(o[0]));let R,Q,tt;m?(R=m.space||m.spaceId,Q=m.coords,tt=m.alpha):[R,Q,tt]=o,Object.defineProperty(this,"space",{value:ue.get(R),writable:!1,enumerable:!0,configurable:!0}),this.coords=Q?Q.slice():[0,0,0],this.alpha=tt<1?tt:1;for(let ot=0;ot<this.coords.length;ot++)this.coords[ot]==="NaN"&&(this.coords[ot]=NaN);for(let ot in this.space.coords)Object.defineProperty(this,ot,{get:()=>this.get(ot),set:lt=>this.set(ot,lt)})}get spaceId(){return this.space.id}clone(){return new Ae(this.space,this.coords,this.alpha)}toJSON(){return{spaceId:this.spaceId,coords:this.coords,alpha:this.alpha}}display(...o){let m=k3(this,...o);return m.color=new Ae(m.color),m}static get(o,...m){return o instanceof Ae?o:new Ae(o,...m)}static defineFunction(o,m,R=m){let{instance:Q=!0,returns:tt}=R,ot=function(...lt){let ct=m(...lt);if(tt==="color")ct=Ae.get(ct);else if(tt==="function<color>"){let ut=ct;ct=function(...ft){let yt=ut(...ft);return Ae.get(yt)},Object.assign(ct,ut)}else tt==="array<color>"&&(ct=ct.map(ut=>Ae.get(ut)));return ct};o in Ae||(Ae[o]=ot),Q&&(Ae.prototype[o]=function(...lt){return ot(this,...lt)})}static defineFunctions(o){for(let m in o)Ae.defineFunction(m,o[m],o[m])}static extend(o){if(o.register)o.register(Ae);else for(let m in o)Ae.defineFunction(m,o[m])}}Ae.defineFunctions({get:Vi,getAll:Yo,set:Kr,setAll:d0,to:Yi,equals:P3,inGamut:To,toGamut:Jr,distance:v0,toString:wa});Object.assign(Ae,{util:f3,hooks:qr,WHITES:rr,Space:ue,spaces:ue.registry,parse:p0,defaults:yr});for(let t of Object.keys(vg))ue.register(vg[t]);for(let t in ue.registry)Yh(t,ue.registry[t]);qr.add("colorspace-init-end",t=>{var o;Yh(t.id,t),(o=t.aliases)==null||o.forEach(m=>{Yh(m,t)})});function Yh(t,o){Object.values(o.coords).map(R=>R.name);let m=t.replace(/-/g,"_");Object.defineProperty(Ae.prototype,m,{get(){let R=this.getAll(t);return typeof Proxy=="undefined"?R:new Proxy(R,{has:(Q,tt)=>{try{return ue.resolveCoord([o,tt]),!0}catch(ot){}return Reflect.has(Q,tt)},get:(Q,tt,ot)=>{if(tt&&typeof tt!="symbol"&&!(tt in Q)){let{index:lt}=ue.resolveCoord([o,tt]);if(lt>=0)return Q[lt]}return Reflect.get(Q,tt,ot)},set:(Q,tt,ot,lt)=>{if(tt&&typeof tt!="symbol"&&!(tt in Q)||tt>=0){let{index:ct}=ue.resolveCoord([o,tt]);if(ct>=0)return Q[ct]=ot,this.setAll(t,Q),!0}return Reflect.set(Q,tt,ot,lt)}})},set(R){this.setAll(t,R)},configurable:!0,enumerable:!0})}Ae.extend(Sa);Ae.extend({deltaE:Mo});Object.assign(Ae,{deltaEMethods:Sa});Ae.extend(SR);Ae.extend({contrast:V3});Ae.extend(q3);Ae.extend(E3);Ae.extend(AR);Ae.extend(sa);const HR=.15,sr=t=>typeof t=="string"?new Ae(t):t,Or=t=>t.toString({format:"hex"}),j0=(...t)=>{const o=t.map(sr);if(o.length<2)return()=>Or(o[0]);const R=o.slice(0,-1).map((Q,tt)=>[Q,o[tt+1]]).map(([Q,tt])=>{const ot=Ae.range(Q,tt,{outputSpace:"srgb"});return lt=>Or(ot(lt))});return Q=>{if(Q<=0)return Or(o[0]);if(Q>=1)return Or(o[o.length-1]);const tt=Math.floor(Q*R.length);return R[tt](Q*R.length-tt)}},UR=(t,...o)=>{const m=o.map(sr);if(m.length<2)return Array(t).fill(Or(m[0]));const R=j0(...m);return Array(t).fill(0).map((Q,tt)=>R(tt/(t-1)))},N0=t=>Or(sr(t).set("hsl.s",0)),XR=(t,o)=>Or(Ae.mix(t,o,.5,{outputSpace:"srgb"})),YR=(t,o)=>Math.abs(sr(o).hsl.h-sr(t).hsl.h),$h=(t,o)=>{const m=sr(t);return m.hsv.v=m.hsv.v+m.hsv.v*o,m.hsv.v>100&&(m.hsv.s=m.hsv.s-(m.hsv.v-100)/1.677),m.hsv.s=Math.max(0,Math.min(100,m.hsv.s)),m.hsv.v=Math.max(0,Math.min(100,m.hsv.v)),Or(m)},B0=t=>({R:t.srgb[0]*255,G:t.srgb[1]*255,B:t.srgb[2]*255}),Vo=t=>{const{R:o,G:m,B:R}=B0(t);return 1-(.299*o+.587*m+.114*R)/255};function $R(t){return Vo(t)<.9}const VR=(t,o=.05,m=1)=>{const R=sr(t),{R:Q,G:tt,B:ot}=B0(R),lt=Vo(R);let ct=o;$R(R)&&(ct*=-.6),ct*=Math.exp(lt*1.2);const ut=Math.min(Math.max(Math.round(255*ct)+Q,0),255),ft=Math.min(Math.max(Math.round(255*ct)+tt,0),255),yt=Math.min(Math.max(Math.round(255*ct)+ot,0),255);return`rgba(${ut}, ${ft}, ${yt}, ${m})`},ZR=(t,o)=>{const m=sr(t);return m.alpha=o,Or(m)},qR=(t,o,m)=>Ae.steps(new Ae(t),new Ae(o),{steps:m}).map(R=>new Ae(R).to("srgb").toString());function KR(t){return o=>{var ut,ft,yt;const{steps:m,minColor:R,maxColor:Q}=t,tt=(ut=t.minValue)!=null?ut:Math.min(...o),ot=(ft=t.maxValue)!=null?ft:Math.max(...o),lt=(yt=t.midValue)!=null?yt:tt<0&&ot>0?0:(tt+ot)/2,ct=JR(R!=null?R:ma,Q!=null?Q:ma,tt,lt,ot,m);return B=>ct(B)}}const JR=(t,o,m,R,Q,tt=0)=>{const ot=ez(m,R,Q),lt=YR(t,o)>90?[t,N0(XR(t,o)),o]:[t,o];return tt<=0?QR(ot,lt):tz(ot,tt,lt)},QR=(t,o)=>{const m=j0(...o);return R=>m(t(R))},tz=(t,o,m)=>{const R=UR(o,...m);return Q=>{const tt=Math.floor(t(Q)*o);return R[Math.min(Math.max(tt,0),o-1)]}},ez=(t,o,m)=>R=>R==t&&R==m?.5:R<o?.5*((R-t)/(o-t)):.5+.5*(R-o)/(m-o);function R0(t){let o;switch(typeof t=="string"?o=Fc(t):o=t,o.type){case"uniform":return{type:"Static",getColor:u3(o)};case"conditional":return{type:"Absolute",getColor:p3(o)};case"range":return{type:"Relative",getColor:KR(o)}}}const Xc=t=>{const{getValueFromDataStructure:o,applyColorToDataStructure:m}=t;return(R,Q)=>{const tt=R0(Q);let ot;switch(tt.type){case"Static":ot=()=>tt.getColor();break;case"Absolute":ot=lt=>tt.getColor(lt);break;case"Relative":{const lt=R.map(o),ct=tt.getColor(lt);ot=ut=>ct(ut);break}}return R.map(lt=>{const ct=o(lt),ut=ot(ct);return m(lt,ut)})}},iz=Xc({getValueFromDataStructure:t=>t.value,applyColorToDataStructure:(t,o)=>Zt(jt({},t),{color:o})});var rz=im,nz=Ro,oz=jo,sz=qi,az=Na,lz=No,hz=ja,cz=Ia,uz="[object Map]",pz="[object Set]",dz=Object.prototype,fz=dz.hasOwnProperty;function gz(t){if(t==null)return!0;if(az(t)&&(sz(t)||typeof t=="string"||typeof t.splice=="function"||lz(t)||cz(t)||oz(t)))return!t.length;var o=nz(t);if(o==uz||o==pz)return!t.size;if(hz(t))return!rz(t).length;for(var m in t)if(fz.call(t,m))return!1;return!0}var z0=gz;const mz=Mi(z0),F0=(t,o)=>Object.assign(Object.create(t),o),yz=(t,o)=>Object.assign(Object.create(Object.getPrototypeOf(t)),t,o),G0=t=>{const o="column"in t;let m=t,R;if(o){const Q=t,{column:tt}=Q,ot=Hi(Q,["column"]);m=tt,mz(ot)||(R=ot)}return{column:m,style:R}},Yc=t=>{var tt;const{column:o,style:m}=G0(t),R=mr(o.type)?(tt=o==null?void 0:o.getFormat)==null?void 0:tt.call(o):void 0,Q=Zt(jt({},m),{dateFormat:(m==null?void 0:m.dateFormat)||R});return F0(o,Q)},W0=t=>{var tt,ot;const o="column"in t,m=o?t.column:t,Q=F0(m,Zt(jt({},o?t:{}),{title:(ot=(tt=t.title)!=null?tt:m.title)!=null?ot:m.name,enabled:!0}));return Q.aggregation=Q.aggregation||"sum",Q},vz=t=>Ly(t)?W0(t):Yc(t),bz=t=>t,xz=t=>t,wz=t=>t,H0=t=>t,pr=t=>{var o;return(o=t.title)!=null?o:t.name},Cz=t=>H0(Yc(t)),Vh=(t,o)=>{var B;if(o.rows.length===0)return{type:"cartesian",series:[],xValues:[],xAxisCount:0};const m=t,R=m.x.length;let Q=Lo(o,m.x.map(st=>st.name));Q=Q.map((st,U)=>Zt(jt({},st),{direction:U0(m.x[U].sortType)}));const tt=Lo(o,m.breakBy.map(st=>st.name)),ot=m.y.filter(st=>(st==null?void 0:st.sortType)&&st.sortType!=="sortNone"),lt=Q.length>1?1:0,ct=X0(o,ot,Q,((B=Q[lt])==null?void 0:B.direction)===0?Dc:void 0),ut=m.y.map(st=>st.name),ft=m.breakBy.length>0?Tz(o,ct,Q,ut[0],tt,m.breakBy):Sz(o,ct,Q,ut,m.y);return Zt(jt({},ft),{xAxisCount:R,type:"cartesian"})},U0=t=>{switch(t){case"sortNone":return 0;case"sortDesc":return-1;case"sortAsc":default:return 1}},X0=(t,o,m,R)=>{if(m.length===0)return[{key:"",xValues:[""],rawValues:[]}];const Q=o.map(yt=>({column:yt.name,agg:"sum",title:yt.name}));if(R){const yt={column:R,title:R,agg:"min"};Q.push(yt)}const tt=e0(t,m,Q),ot=[];let lt=0;if(m.length===2){lt=1;const B=Xr(tt,m[0].name);B&&ot.push(B)}if(o.map(yt=>{const B=Xr(tt,yt.name);return B&&ot.push(Zt(jt({},B),{direction:yt.sortType==="sortAsc"?1:-1})),yt}),R){const yt=Xr(tt,R);yt&&ot.push(yt)}if(m.length>0){const yt=Xr(tt,m[lt].name);yt&&ot.push(yt)}const ct=t0(tt,ot),ut=Lo(ct,m.map(yt=>yt.name)),ft=i0(ct,ut);return ft.rows.map(yt=>{const B=Uo(yt,ft.columns),st=B.map(V=>V.displayValue),U=B.map(V=>{var K;return(K=V.rawValue)!=null?K:V.displayValue}),z=B.map(V=>{var K;return(K=V==null?void 0:V.compareValue)==null?void 0:K.value});return{key:U.join(","),xValues:st,rawValues:U,compareValues:z}})},Sz=(t,o,m,R,Q)=>{const tt=Lo(t,R),ot=Q.reduce((ut,ft)=>(ut[ft.name]=ft,ut),{});if(tt.length===0)return{type:"cartesian",series:[],xValues:[]};const lt=Rc(t.rows,m),ct=tt.map(ut=>{let ft=o.map(B=>{var K;const st=lt[B.key],U=st?st[0]:[],z=Nc(U,ut),{color:X,rawValue:V}=(K=U[ut.index])!=null?K:{};return jt({rawValue:V,xValue:B.rawValues,xDisplayValue:B.xValues,xCompareValue:B.compareValues,value:z===void 0?NaN:z,blur:Bc(U,ut)},X&&{color:X})});const yt=ot[ut.name].color;return yt&&(ft=iz(ft,yt)),{name:ut.name,title:pr(ot[ut.name]),data:ft}});return{xValues:o,series:ct}},Mz=(t,o,m)=>Uo(t,o).map((R,Q)=>{const tt=$e(m[Q].numberFormatConfig);return ui(o[Q].type)?si(tt,parseFloat(R.displayValue)):R.displayValue}).join(","),Az=(t,o)=>Uo(t,o).map(({rawValue:m})=>m),Tz=(t,o,m,R,Q,tt)=>{const ot=Xr(t,R);if(!ot)return{type:"cartesian",series:[],xValues:[]};const ut=jc(t.rows,Q).map(ft=>{const yt=ft[0];return{seriesName:Mz(yt,Q,tt),seriesValues:Az(yt,Q),rowsByXColumns:Rc(ft,m)}}).map(ft=>{const yt=o.map(B=>{var K;const st=ft.rowsByXColumns[B.key],U=st?st[0]:[],z=Nc(U,ot),{color:X,rawValue:V}=(K=U[ot.index])!=null?K:{};return jt({rawValue:V,value:z===void 0?NaN:z,xValue:B.rawValues,xDisplayValue:B.xValues,xCompareValue:B.compareValues,blur:Bc(U,ot)},X&&{color:X})});return{name:ft.seriesName,data:yt,custom:{rawValue:ft.seriesValues}}});return{xValues:o,series:ut}},kz={displayValue:"0"},Co=(t,o)=>{if(o){for(let m=0;m<t.columns.length;m++)if(t.columns[m].name===o.name)return m}return-1},Pz=(t,o)=>({x:Co(o,t.x),y:Co(o,t.y),breakByPoint:Co(o,t.breakByPoint),breakByColor:Co(o,t.breakByColor),size:Co(o,t.size)}),bg=(t,o)=>o[t]||kz,Lz=(t,o)=>{const m=new Set;return t.forEach(R=>{m.add(R[o].displayValue)}),Array.from(m.values())},xg=(t,o,m)=>{if(m&&eo(m))return Lz(t,o)},wg=(t,o)=>[t,o],Ez=(t,o)=>{const m=new Map(t==null?void 0:t.map(wg)),R=new Map(o==null?void 0:o.map(wg));return{xCategoriesMap:m,yCategoriesMap:R}},Oz=(t,o)=>{var tt,ot;const m=Pz(t,o),R=t!=null&&t.breakByPoint&&ui(t.breakByPoint.type)?$e((tt=t.breakByPoint)==null?void 0:tt.numberFormatConfig):void 0,Q=t!=null&&t.breakByColor&&(!eo(t.breakByColor)||ui(t.breakByColor.type))?$e((ot=t.breakByColor)==null?void 0:ot.numberFormatConfig):void 0;return o.rows.map(lt=>{const ct=jt({},lt[m.breakByPoint]);R&&(ct.displayValue=si(R,ct.compareValue?ct.compareValue.value:parseFloat(ct.displayValue)));const ut=jt({},lt[m.breakByColor]);return Q&&(ut.displayValue=si(Q,ut.compareValue?ut.compareValue.value:parseFloat(ut.displayValue))),{xAxis:bg(m.x,lt),yAxis:bg(m.y,lt),breakByPoint:ct,breakByColor:ut,size:lt[m.size]}})},_z=(t,o)=>{const m=Oz(t,o),{x:R,y:Q}=t,tt=xg(m,"xAxis",R),ot=xg(m,"yAxis",Q);return{type:"scatter",scatterDataTable:m,xCategories:tt,yCategories:ot}},vr=(t,o)=>{var R;const m=t==null?void 0:t.filter(Q=>Q);return(R=m&&m[o%m.length])!=null?R:c3[o%10]},Y0=(t,o)=>{const m=()=>Zt(jt({},t),{y:[]}),R=m(),Q=m(),tt=1,ot=0;t.seriesValues.forEach(ut=>{R.y.push(ut),Q.y.push(ut)}),t.rangeValues.forEach(ut=>{const ft=ut[tt],yt=ut[ot];R.y.push(ft),Q.y.push(yt)});const lt=Vh(R,o),ct=Vh(Q,o);return Zt(jt({},lt),{type:"range",seriesOther:ct})},Ka="$forecast",$c="$trend",Fn=t=>t.startsWith(Ka),$0=t=>t.startsWith($c),Ma=t=>`${t} $range`,Dz=(t,o,m)=>{const R=m[Ma(t.name)],Q=o[Ma(t.name)],tt=t.name.substring(Ka.length+1),ot=o[tt],lt=t.data.findIndex(ct=>!isNaN((ct==null?void 0:ct.y)||NaN));return t.showInLegend=!1,t.data[lt-1].y=ot.data[lt-1].y,t.dashStyle="ShortDash",t.color=ot.color,t.data.forEach((ct,ut)=>{ct.high=R.data[ut].y,ct.low=Q.data[ut].y}),lt},Iz=(t,o)=>{t.showInLegend=!1,t.enableMouseTracking=!1;const m=t.name.substring(Ka.length+1,t.name.length-7),R=o[m];t.color=R.color,t.fillOpacity=.15,t.lineWidth=0},jz=(t,o)=>{const m=t.name.substring(10,t.name.length-7),R=o[m],Q=t.data.findIndex(tt=>!isNaN((tt==null?void 0:tt.low)||NaN));t.data[Q-1].low=R.data[Q-1].y,t.data[Q-1].high=R.data[Q-1].y},Nz=(t,o,m)=>{t.forEach(R=>R.plotBands=[{color:"#F7F7FA",borderWidth:0,from:o-1,to:m}])},Bz=(t,o,m)=>{const R=t.name.substring($c.length+1),Q=o[R];t.showInLegend=!1,t.dashStyle="ShortDot",t.color=Q.color,Q.name=`${Q.name} (+${m("advanced.tooltip.trend")})`},Rz=(t,o)=>{const m={};t.forEach(R=>{m[R.name]=R}),t.forEach(R=>{$0(R.name)&&Bz(R,m,o)})},V0=t=>t.rangeValues?!1:t.y.some(m=>Fn(m.title)),Z0=t=>{const o=t.y.filter(tt=>Fn(tt.title)).map(tt=>{const ot=Zt(jt({},tt),{title:Ma(tt.title),name:`${tt.name}_upper`});return[Zt(jt({},tt),{title:Ma(tt.title),name:`${tt.name}_lower`}),ot]}),R=o.concat(t.y).flat(),Q=t.y;return Zt(jt({},t),{rangeValues:o,seriesValues:Q,y:R})},zz=(t,o)=>{const m=Z0(t);return Zt(jt({},Y0(m,o)),{type:"cartesian"})};var Fz=yn,Gz=Dr,Wz="[object Number]";function Hz(t){return typeof t=="number"||Gz(t)&&Fz(t)==Wz}var q0=Hz;const Zh=Mi(q0);var K0=(t=>(t.FILTER="filter",t.SELECT="select",t))(K0||{}),J0=(t=>(t.PRE="pre",t.POST="post",t))(J0||{}),aa=(t=>(t.WIDGET_FIRST="widgetFirst",t.CODE_FIRST="codeFirst",t.CODE_ONLY="codeOnly",t))(aa||{}),qh={exports:{}};/**
7
+ * @license
8
+ * Lodash <https://lodash.com/>
9
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
10
+ * Released under MIT license <https://lodash.com/license>
11
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
12
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
13
+ */(function(t,o){(function(){var m,R="4.17.21",Q=200,tt="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",ot="Expected a function",lt="Invalid `variable` option passed into `_.template`",ct="__lodash_hash_undefined__",ut=500,ft="__lodash_placeholder__",yt=1,B=2,st=4,U=1,z=2,X=1,V=2,K=4,J=8,q=16,W=32,D=64,O=128,w=256,T=512,d=30,u="...",g=800,b=16,v=1,S=2,P=3,E=1/0,M=9007199254740991,f=17976931348623157e292,x=NaN,l=4294967295,h=l-1,e=l>>>1,r=[["ary",O],["bind",X],["bindKey",V],["curry",J],["curryRight",q],["flip",T],["partial",W],["partialRight",D],["rearg",w]],n="[object Arguments]",i="[object Array]",c="[object AsyncFunction]",a="[object Boolean]",s="[object Date]",y="[object DOMException]",A="[object Error]",_="[object Function]",p="[object GeneratorFunction]",C="[object Map]",k="[object Number]",F="[object Null]",G="[object Object]",I="[object Promise]",j="[object Proxy]",N="[object RegExp]",Z="[object Set]",$="[object String]",Y="[object Symbol]",et="[object Undefined]",rt="[object WeakMap]",it="[object WeakSet]",ht="[object ArrayBuffer]",dt="[object DataView]",bt="[object Float32Array]",xt="[object Float64Array]",St="[object Int8Array]",wt="[object Int16Array]",mt="[object Int32Array]",at="[object Uint8Array]",pt="[object Uint8ClampedArray]",vt="[object Uint16Array]",Ct="[object Uint32Array]",Tt=/\b__p \+= '';/g,At=/\b(__p \+=) '' \+/g,Lt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ot=/&(?:amp|lt|gt|quot|#39);/g,_t=/[&<>"']/g,It=RegExp(Ot.source),zt=RegExp(_t.source),Rt=/<%-([\s\S]+?)%>/g,Ut=/<%([\s\S]+?)%>/g,Xt=/<%=([\s\S]+?)%>/g,Ht=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qt=/^\w*$/,Kt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fe=/[\\^$.*+?()[\]{}|]/g,Qt=RegExp(fe.source),oe=/^\s+/,xe=/\s/,Qe=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,Me=/,? & /,ii=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Gt=/[()=,{}\[\]\/\s]/,ee=/\\(\\)?/g,he=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,Ve=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^\[object .+?Constructor\]$/,Te=/^0o[0-7]+$/i,Ir=/^(?:0|[1-9]\d*)$/,ti=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,yi=/($^)/,xn=/['\n\r\u2028\u2029\\]/g,Ji="\\ud800-\\udfff",tn="\\u0300-\\u036f",De="\\ufe20-\\ufe2f",vi="\\u20d0-\\u20ff",ar=tn+De+vi,Jo="\\u2700-\\u27bf",ru="a-z\\xdf-\\xf6\\xf8-\\xff",Bv="\\xac\\xb1\\xd7\\xf7",Rv="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zv="\\u2000-\\u206f",Fv=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nu="A-Z\\xc0-\\xd6\\xd8-\\xde",ou="\\ufe0e\\ufe0f",su=Bv+Rv+zv+Fv,il="['’]",Gv="["+Ji+"]",au="["+su+"]",Qo="["+ar+"]",lu="\\d+",Wv="["+Jo+"]",hu="["+ru+"]",cu="[^"+Ji+su+lu+Jo+ru+nu+"]",rl="\\ud83c[\\udffb-\\udfff]",Hv="(?:"+Qo+"|"+rl+")",uu="[^"+Ji+"]",nl="(?:\\ud83c[\\udde6-\\uddff]){2}",ol="[\\ud800-\\udbff][\\udc00-\\udfff]",wn="["+nu+"]",pu="\\u200d",du="(?:"+hu+"|"+cu+")",Uv="(?:"+wn+"|"+cu+")",fu="(?:"+il+"(?:d|ll|m|re|s|t|ve))?",gu="(?:"+il+"(?:D|LL|M|RE|S|T|VE))?",mu=Hv+"?",yu="["+ou+"]?",Xv="(?:"+pu+"(?:"+[uu,nl,ol].join("|")+")"+yu+mu+")*",Yv="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$v="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vu=yu+mu+Xv,Vv="(?:"+[Wv,nl,ol].join("|")+")"+vu,Zv="(?:"+[uu+Qo+"?",Qo,nl,ol,Gv].join("|")+")",qv=RegExp(il,"g"),Kv=RegExp(Qo,"g"),sl=RegExp(rl+"(?="+rl+")|"+Zv+vu,"g"),Jv=RegExp([wn+"?"+hu+"+"+fu+"(?="+[au,wn,"$"].join("|")+")",Uv+"+"+gu+"(?="+[au,wn+du,"$"].join("|")+")",wn+"?"+du+"+"+fu,wn+"+"+gu,$v,Yv,lu,Vv].join("|"),"g"),Qv=RegExp("["+pu+Ji+ar+ou+"]"),tb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eb=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ib=-1,Be={};Be[bt]=Be[xt]=Be[St]=Be[wt]=Be[mt]=Be[at]=Be[pt]=Be[vt]=Be[Ct]=!0,Be[n]=Be[i]=Be[ht]=Be[a]=Be[dt]=Be[s]=Be[A]=Be[_]=Be[C]=Be[k]=Be[G]=Be[N]=Be[Z]=Be[$]=Be[rt]=!1;var je={};je[n]=je[i]=je[ht]=je[dt]=je[a]=je[s]=je[bt]=je[xt]=je[St]=je[wt]=je[mt]=je[C]=je[k]=je[G]=je[N]=je[Z]=je[$]=je[Y]=je[at]=je[pt]=je[vt]=je[Ct]=!0,je[A]=je[_]=je[rt]=!1;var rb={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},nb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ob={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},sb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ab=parseFloat,lb=parseInt,bu=typeof Si=="object"&&Si&&Si.Object===Object&&Si,hb=typeof self=="object"&&self&&self.Object===Object&&self,ri=bu||hb||Function("return this")(),al=o&&!o.nodeType&&o,en=al&&!0&&t&&!t.nodeType&&t,xu=en&&en.exports===al,ll=xu&&bu.process,ji=function(){try{var Nt=en&&en.require&&en.require("util").types;return Nt||ll&&ll.binding&&ll.binding("util")}catch(Wt){}}(),wu=ji&&ji.isArrayBuffer,Cu=ji&&ji.isDate,Su=ji&&ji.isMap,Mu=ji&&ji.isRegExp,Au=ji&&ji.isSet,Tu=ji&&ji.isTypedArray;function Ti(Nt,Wt,Ft){switch(Ft.length){case 0:return Nt.call(Wt);case 1:return Nt.call(Wt,Ft[0]);case 2:return Nt.call(Wt,Ft[0],Ft[1]);case 3:return Nt.call(Wt,Ft[0],Ft[1],Ft[2])}return Nt.apply(Wt,Ft)}function cb(Nt,Wt,Ft,re){for(var de=-1,Pe=Nt==null?0:Nt.length;++de<Pe;){var qe=Nt[de];Wt(re,qe,Ft(qe),Nt)}return re}function Ni(Nt,Wt){for(var Ft=-1,re=Nt==null?0:Nt.length;++Ft<re&&Wt(Nt[Ft],Ft,Nt)!==!1;);return Nt}function ub(Nt,Wt){for(var Ft=Nt==null?0:Nt.length;Ft--&&Wt(Nt[Ft],Ft,Nt)!==!1;);return Nt}function ku(Nt,Wt){for(var Ft=-1,re=Nt==null?0:Nt.length;++Ft<re;)if(!Wt(Nt[Ft],Ft,Nt))return!1;return!0}function jr(Nt,Wt){for(var Ft=-1,re=Nt==null?0:Nt.length,de=0,Pe=[];++Ft<re;){var qe=Nt[Ft];Wt(qe,Ft,Nt)&&(Pe[de++]=qe)}return Pe}function ts(Nt,Wt){var Ft=Nt==null?0:Nt.length;return!!Ft&&Cn(Nt,Wt,0)>-1}function hl(Nt,Wt,Ft){for(var re=-1,de=Nt==null?0:Nt.length;++re<de;)if(Ft(Wt,Nt[re]))return!0;return!1}function ze(Nt,Wt){for(var Ft=-1,re=Nt==null?0:Nt.length,de=Array(re);++Ft<re;)de[Ft]=Wt(Nt[Ft],Ft,Nt);return de}function Nr(Nt,Wt){for(var Ft=-1,re=Wt.length,de=Nt.length;++Ft<re;)Nt[de+Ft]=Wt[Ft];return Nt}function cl(Nt,Wt,Ft,re){var de=-1,Pe=Nt==null?0:Nt.length;for(re&&Pe&&(Ft=Nt[++de]);++de<Pe;)Ft=Wt(Ft,Nt[de],de,Nt);return Ft}function pb(Nt,Wt,Ft,re){var de=Nt==null?0:Nt.length;for(re&&de&&(Ft=Nt[--de]);de--;)Ft=Wt(Ft,Nt[de],de,Nt);return Ft}function ul(Nt,Wt){for(var Ft=-1,re=Nt==null?0:Nt.length;++Ft<re;)if(Wt(Nt[Ft],Ft,Nt))return!0;return!1}var db=pl("length");function fb(Nt){return Nt.split("")}function gb(Nt){return Nt.match(ii)||[]}function Pu(Nt,Wt,Ft){var re;return Ft(Nt,function(de,Pe,qe){if(Wt(de,Pe,qe))return re=Pe,!1}),re}function es(Nt,Wt,Ft,re){for(var de=Nt.length,Pe=Ft+(re?1:-1);re?Pe--:++Pe<de;)if(Wt(Nt[Pe],Pe,Nt))return Pe;return-1}function Cn(Nt,Wt,Ft){return Wt===Wt?kb(Nt,Wt,Ft):es(Nt,Lu,Ft)}function mb(Nt,Wt,Ft,re){for(var de=Ft-1,Pe=Nt.length;++de<Pe;)if(re(Nt[de],Wt))return de;return-1}function Lu(Nt){return Nt!==Nt}function Eu(Nt,Wt){var Ft=Nt==null?0:Nt.length;return Ft?fl(Nt,Wt)/Ft:x}function pl(Nt){return function(Wt){return Wt==null?m:Wt[Nt]}}function dl(Nt){return function(Wt){return Nt==null?m:Nt[Wt]}}function Ou(Nt,Wt,Ft,re,de){return de(Nt,function(Pe,qe,Ie){Ft=re?(re=!1,Pe):Wt(Ft,Pe,qe,Ie)}),Ft}function yb(Nt,Wt){var Ft=Nt.length;for(Nt.sort(Wt);Ft--;)Nt[Ft]=Nt[Ft].value;return Nt}function fl(Nt,Wt){for(var Ft,re=-1,de=Nt.length;++re<de;){var Pe=Wt(Nt[re]);Pe!==m&&(Ft=Ft===m?Pe:Ft+Pe)}return Ft}function gl(Nt,Wt){for(var Ft=-1,re=Array(Nt);++Ft<Nt;)re[Ft]=Wt(Ft);return re}function vb(Nt,Wt){return ze(Wt,function(Ft){return[Ft,Nt[Ft]]})}function _u(Nt){return Nt&&Nt.slice(0,Nu(Nt)+1).replace(oe,"")}function ki(Nt){return function(Wt){return Nt(Wt)}}function ml(Nt,Wt){return ze(Wt,function(Ft){return Nt[Ft]})}function ro(Nt,Wt){return Nt.has(Wt)}function Du(Nt,Wt){for(var Ft=-1,re=Nt.length;++Ft<re&&Cn(Wt,Nt[Ft],0)>-1;);return Ft}function Iu(Nt,Wt){for(var Ft=Nt.length;Ft--&&Cn(Wt,Nt[Ft],0)>-1;);return Ft}function bb(Nt,Wt){for(var Ft=Nt.length,re=0;Ft--;)Nt[Ft]===Wt&&++re;return re}var xb=dl(rb),wb=dl(nb);function Cb(Nt){return"\\"+sb[Nt]}function Sb(Nt,Wt){return Nt==null?m:Nt[Wt]}function Sn(Nt){return Qv.test(Nt)}function Mb(Nt){return tb.test(Nt)}function Ab(Nt){for(var Wt,Ft=[];!(Wt=Nt.next()).done;)Ft.push(Wt.value);return Ft}function yl(Nt){var Wt=-1,Ft=Array(Nt.size);return Nt.forEach(function(re,de){Ft[++Wt]=[de,re]}),Ft}function ju(Nt,Wt){return function(Ft){return Nt(Wt(Ft))}}function Br(Nt,Wt){for(var Ft=-1,re=Nt.length,de=0,Pe=[];++Ft<re;){var qe=Nt[Ft];(qe===Wt||qe===ft)&&(Nt[Ft]=ft,Pe[de++]=Ft)}return Pe}function is(Nt){var Wt=-1,Ft=Array(Nt.size);return Nt.forEach(function(re){Ft[++Wt]=re}),Ft}function Tb(Nt){var Wt=-1,Ft=Array(Nt.size);return Nt.forEach(function(re){Ft[++Wt]=[re,re]}),Ft}function kb(Nt,Wt,Ft){for(var re=Ft-1,de=Nt.length;++re<de;)if(Nt[re]===Wt)return re;return-1}function Pb(Nt,Wt,Ft){for(var re=Ft+1;re--;)if(Nt[re]===Wt)return re;return re}function Mn(Nt){return Sn(Nt)?Eb(Nt):db(Nt)}function Qi(Nt){return Sn(Nt)?Ob(Nt):fb(Nt)}function Nu(Nt){for(var Wt=Nt.length;Wt--&&xe.test(Nt.charAt(Wt)););return Wt}var Lb=dl(ob);function Eb(Nt){for(var Wt=sl.lastIndex=0;sl.test(Nt);)++Wt;return Wt}function Ob(Nt){return Nt.match(sl)||[]}function _b(Nt){return Nt.match(Jv)||[]}var Db=function Nt(Wt){Wt=Wt==null?ri:An.defaults(ri.Object(),Wt,An.pick(ri,eb));var Ft=Wt.Array,re=Wt.Date,de=Wt.Error,Pe=Wt.Function,qe=Wt.Math,Ie=Wt.Object,vl=Wt.RegExp,Ib=Wt.String,Bi=Wt.TypeError,rs=Ft.prototype,jb=Pe.prototype,Tn=Ie.prototype,ns=Wt["__core-js_shared__"],os=jb.toString,_e=Tn.hasOwnProperty,Nb=0,Bu=function(){var L=/[^.]+$/.exec(ns&&ns.keys&&ns.keys.IE_PROTO||"");return L?"Symbol(src)_1."+L:""}(),ss=Tn.toString,Bb=os.call(Ie),Rb=ri._,zb=vl("^"+os.call(_e).replace(fe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),as=xu?Wt.Buffer:m,Rr=Wt.Symbol,ls=Wt.Uint8Array,Ru=as?as.allocUnsafe:m,hs=ju(Ie.getPrototypeOf,Ie),zu=Ie.create,Fu=Tn.propertyIsEnumerable,cs=rs.splice,Gu=Rr?Rr.isConcatSpreadable:m,no=Rr?Rr.iterator:m,rn=Rr?Rr.toStringTag:m,us=function(){try{var L=ln(Ie,"defineProperty");return L({},"",{}),L}catch(H){}}(),Fb=Wt.clearTimeout!==ri.clearTimeout&&Wt.clearTimeout,Gb=re&&re.now!==ri.Date.now&&re.now,Wb=Wt.setTimeout!==ri.setTimeout&&Wt.setTimeout,ps=qe.ceil,ds=qe.floor,bl=Ie.getOwnPropertySymbols,Hb=as?as.isBuffer:m,Wu=Wt.isFinite,Ub=rs.join,Xb=ju(Ie.keys,Ie),Ke=qe.max,li=qe.min,Yb=re.now,$b=Wt.parseInt,Hu=qe.random,Vb=rs.reverse,xl=ln(Wt,"DataView"),oo=ln(Wt,"Map"),wl=ln(Wt,"Promise"),kn=ln(Wt,"Set"),so=ln(Wt,"WeakMap"),ao=ln(Ie,"create"),fs=so&&new so,Pn={},Zb=hn(xl),qb=hn(oo),Kb=hn(wl),Jb=hn(kn),Qb=hn(so),gs=Rr?Rr.prototype:m,lo=gs?gs.valueOf:m,Uu=gs?gs.toString:m;function kt(L){if(He(L)&&!ge(L)&&!(L instanceof Ce)){if(L instanceof Ri)return L;if(_e.call(L,"__wrapped__"))return Xp(L)}return new Ri(L)}var Ln=function(){function L(){}return function(H){if(!Fe(H))return{};if(zu)return zu(H);L.prototype=H;var nt=new L;return L.prototype=m,nt}}();function ms(){}function Ri(L,H){this.__wrapped__=L,this.__actions__=[],this.__chain__=!!H,this.__index__=0,this.__values__=m}kt.templateSettings={escape:Rt,evaluate:Ut,interpolate:Xt,variable:"",imports:{_:kt}},kt.prototype=ms.prototype,kt.prototype.constructor=kt,Ri.prototype=Ln(ms.prototype),Ri.prototype.constructor=Ri;function Ce(L){this.__wrapped__=L,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=l,this.__views__=[]}function tx(){var L=new Ce(this.__wrapped__);return L.__actions__=bi(this.__actions__),L.__dir__=this.__dir__,L.__filtered__=this.__filtered__,L.__iteratees__=bi(this.__iteratees__),L.__takeCount__=this.__takeCount__,L.__views__=bi(this.__views__),L}function ex(){if(this.__filtered__){var L=new Ce(this);L.__dir__=-1,L.__filtered__=!0}else L=this.clone(),L.__dir__*=-1;return L}function ix(){var L=this.__wrapped__.value(),H=this.__dir__,nt=ge(L),gt=H<0,Mt=nt?L.length:0,Pt=f1(0,Mt,this.__views__),Et=Pt.start,Dt=Pt.end,Bt=Dt-Et,Yt=gt?Dt:Et-1,$t=this.__iteratees__,Vt=$t.length,ie=0,ne=li(Bt,this.__takeCount__);if(!nt||!gt&&Mt==Bt&&ne==Bt)return fp(L,this.__actions__);var ae=[];t:for(;Bt--&&ie<ne;){Yt+=H;for(var ve=-1,le=L[Yt];++ve<Vt;){var we=$t[ve],Se=we.iteratee,Ei=we.type,gi=Se(le);if(Ei==S)le=gi;else if(!gi){if(Ei==v)continue t;break t}}ae[ie++]=le}return ae}Ce.prototype=Ln(ms.prototype),Ce.prototype.constructor=Ce;function nn(L){var H=-1,nt=L==null?0:L.length;for(this.clear();++H<nt;){var gt=L[H];this.set(gt[0],gt[1])}}function rx(){this.__data__=ao?ao(null):{},this.size=0}function nx(L){var H=this.has(L)&&delete this.__data__[L];return this.size-=H?1:0,H}function ox(L){var H=this.__data__;if(ao){var nt=H[L];return nt===ct?m:nt}return _e.call(H,L)?H[L]:m}function sx(L){var H=this.__data__;return ao?H[L]!==m:_e.call(H,L)}function ax(L,H){var nt=this.__data__;return this.size+=this.has(L)?0:1,nt[L]=ao&&H===m?ct:H,this}nn.prototype.clear=rx,nn.prototype.delete=nx,nn.prototype.get=ox,nn.prototype.has=sx,nn.prototype.set=ax;function Cr(L){var H=-1,nt=L==null?0:L.length;for(this.clear();++H<nt;){var gt=L[H];this.set(gt[0],gt[1])}}function lx(){this.__data__=[],this.size=0}function hx(L){var H=this.__data__,nt=ys(H,L);if(nt<0)return!1;var gt=H.length-1;return nt==gt?H.pop():cs.call(H,nt,1),--this.size,!0}function cx(L){var H=this.__data__,nt=ys(H,L);return nt<0?m:H[nt][1]}function ux(L){return ys(this.__data__,L)>-1}function px(L,H){var nt=this.__data__,gt=ys(nt,L);return gt<0?(++this.size,nt.push([L,H])):nt[gt][1]=H,this}Cr.prototype.clear=lx,Cr.prototype.delete=hx,Cr.prototype.get=cx,Cr.prototype.has=ux,Cr.prototype.set=px;function Sr(L){var H=-1,nt=L==null?0:L.length;for(this.clear();++H<nt;){var gt=L[H];this.set(gt[0],gt[1])}}function dx(){this.size=0,this.__data__={hash:new nn,map:new(oo||Cr),string:new nn}}function fx(L){var H=Ls(this,L).delete(L);return this.size-=H?1:0,H}function gx(L){return Ls(this,L).get(L)}function mx(L){return Ls(this,L).has(L)}function yx(L,H){var nt=Ls(this,L),gt=nt.size;return nt.set(L,H),this.size+=nt.size==gt?0:1,this}Sr.prototype.clear=dx,Sr.prototype.delete=fx,Sr.prototype.get=gx,Sr.prototype.has=mx,Sr.prototype.set=yx;function on(L){var H=-1,nt=L==null?0:L.length;for(this.__data__=new Sr;++H<nt;)this.add(L[H])}function vx(L){return this.__data__.set(L,ct),this}function bx(L){return this.__data__.has(L)}on.prototype.add=on.prototype.push=vx,on.prototype.has=bx;function tr(L){var H=this.__data__=new Cr(L);this.size=H.size}function xx(){this.__data__=new Cr,this.size=0}function wx(L){var H=this.__data__,nt=H.delete(L);return this.size=H.size,nt}function Cx(L){return this.__data__.get(L)}function Sx(L){return this.__data__.has(L)}function Mx(L,H){var nt=this.__data__;if(nt instanceof Cr){var gt=nt.__data__;if(!oo||gt.length<Q-1)return gt.push([L,H]),this.size=++nt.size,this;nt=this.__data__=new Sr(gt)}return nt.set(L,H),this.size=nt.size,this}tr.prototype.clear=xx,tr.prototype.delete=wx,tr.prototype.get=Cx,tr.prototype.has=Sx,tr.prototype.set=Mx;function Xu(L,H){var nt=ge(L),gt=!nt&&cn(L),Mt=!nt&&!gt&&Hr(L),Pt=!nt&&!gt&&!Mt&&Dn(L),Et=nt||gt||Mt||Pt,Dt=Et?gl(L.length,Ib):[],Bt=Dt.length;for(var Yt in L)(H||_e.call(L,Yt))&&!(Et&&(Yt=="length"||Mt&&(Yt=="offset"||Yt=="parent")||Pt&&(Yt=="buffer"||Yt=="byteLength"||Yt=="byteOffset")||kr(Yt,Bt)))&&Dt.push(Yt);return Dt}function Yu(L){var H=L.length;return H?L[_l(0,H-1)]:m}function Ax(L,H){return Es(bi(L),sn(H,0,L.length))}function Tx(L){return Es(bi(L))}function Cl(L,H,nt){(nt!==m&&!er(L[H],nt)||nt===m&&!(H in L))&&Mr(L,H,nt)}function ho(L,H,nt){var gt=L[H];(!(_e.call(L,H)&&er(gt,nt))||nt===m&&!(H in L))&&Mr(L,H,nt)}function ys(L,H){for(var nt=L.length;nt--;)if(er(L[nt][0],H))return nt;return-1}function kx(L,H,nt,gt){return zr(L,function(Mt,Pt,Et){H(gt,Mt,nt(Mt),Et)}),gt}function $u(L,H){return L&&hr(H,ei(H),L)}function Px(L,H){return L&&hr(H,wi(H),L)}function Mr(L,H,nt){H=="__proto__"&&us?us(L,H,{configurable:!0,enumerable:!0,value:nt,writable:!0}):L[H]=nt}function Sl(L,H){for(var nt=-1,gt=H.length,Mt=Ft(gt),Pt=L==null;++nt<gt;)Mt[nt]=Pt?m:rh(L,H[nt]);return Mt}function sn(L,H,nt){return L===L&&(nt!==m&&(L=L<=nt?L:nt),H!==m&&(L=L>=H?L:H)),L}function zi(L,H,nt,gt,Mt,Pt){var Et,Dt=H&yt,Bt=H&B,Yt=H&st;if(nt&&(Et=Mt?nt(L,gt,Mt,Pt):nt(L)),Et!==m)return Et;if(!Fe(L))return L;var $t=ge(L);if($t){if(Et=m1(L),!Dt)return bi(L,Et)}else{var Vt=hi(L),ie=Vt==_||Vt==p;if(Hr(L))return yp(L,Dt);if(Vt==G||Vt==n||ie&&!Mt){if(Et=Bt||ie?{}:Np(L),!Dt)return Bt?o1(L,Px(Et,L)):n1(L,$u(Et,L))}else{if(!je[Vt])return Mt?L:{};Et=y1(L,Vt,Dt)}}Pt||(Pt=new tr);var ne=Pt.get(L);if(ne)return ne;Pt.set(L,Et),ud(L)?L.forEach(function(le){Et.add(zi(le,H,nt,le,L,Pt))}):hd(L)&&L.forEach(function(le,we){Et.set(we,zi(le,H,nt,we,L,Pt))});var ae=Yt?Bt?Hl:Wl:Bt?wi:ei,ve=$t?m:ae(L);return Ni(ve||L,function(le,we){ve&&(we=le,le=L[we]),ho(Et,we,zi(le,H,nt,we,L,Pt))}),Et}function Lx(L){var H=ei(L);return function(nt){return Vu(nt,L,H)}}function Vu(L,H,nt){var gt=nt.length;if(L==null)return!gt;for(L=Ie(L);gt--;){var Mt=nt[gt],Pt=H[Mt],Et=L[Mt];if(Et===m&&!(Mt in L)||!Pt(Et))return!1}return!0}function Zu(L,H,nt){if(typeof L!="function")throw new Bi(ot);return yo(function(){L.apply(m,nt)},H)}function co(L,H,nt,gt){var Mt=-1,Pt=ts,Et=!0,Dt=L.length,Bt=[],Yt=H.length;if(!Dt)return Bt;nt&&(H=ze(H,ki(nt))),gt?(Pt=hl,Et=!1):H.length>=Q&&(Pt=ro,Et=!1,H=new on(H));t:for(;++Mt<Dt;){var $t=L[Mt],Vt=nt==null?$t:nt($t);if($t=gt||$t!==0?$t:0,Et&&Vt===Vt){for(var ie=Yt;ie--;)if(H[ie]===Vt)continue t;Bt.push($t)}else Pt(H,Vt,gt)||Bt.push($t)}return Bt}var zr=Cp(lr),qu=Cp(Al,!0);function Ex(L,H){var nt=!0;return zr(L,function(gt,Mt,Pt){return nt=!!H(gt,Mt,Pt),nt}),nt}function vs(L,H,nt){for(var gt=-1,Mt=L.length;++gt<Mt;){var Pt=L[gt],Et=H(Pt);if(Et!=null&&(Dt===m?Et===Et&&!Li(Et):nt(Et,Dt)))var Dt=Et,Bt=Pt}return Bt}function Ox(L,H,nt,gt){var Mt=L.length;for(nt=ye(nt),nt<0&&(nt=-nt>Mt?0:Mt+nt),gt=gt===m||gt>Mt?Mt:ye(gt),gt<0&&(gt+=Mt),gt=nt>gt?0:dd(gt);nt<gt;)L[nt++]=H;return L}function Ku(L,H){var nt=[];return zr(L,function(gt,Mt,Pt){H(gt,Mt,Pt)&&nt.push(gt)}),nt}function ni(L,H,nt,gt,Mt){var Pt=-1,Et=L.length;for(nt||(nt=b1),Mt||(Mt=[]);++Pt<Et;){var Dt=L[Pt];H>0&&nt(Dt)?H>1?ni(Dt,H-1,nt,gt,Mt):Nr(Mt,Dt):gt||(Mt[Mt.length]=Dt)}return Mt}var Ml=Sp(),Ju=Sp(!0);function lr(L,H){return L&&Ml(L,H,ei)}function Al(L,H){return L&&Ju(L,H,ei)}function bs(L,H){return jr(H,function(nt){return Pr(L[nt])})}function an(L,H){H=Gr(H,L);for(var nt=0,gt=H.length;L!=null&&nt<gt;)L=L[cr(H[nt++])];return nt&&nt==gt?L:m}function Qu(L,H,nt){var gt=H(L);return ge(L)?gt:Nr(gt,nt(L))}function di(L){return L==null?L===m?et:F:rn&&rn in Ie(L)?d1(L):T1(L)}function Tl(L,H){return L>H}function _x(L,H){return L!=null&&_e.call(L,H)}function Dx(L,H){return L!=null&&H in Ie(L)}function Ix(L,H,nt){return L>=li(H,nt)&&L<Ke(H,nt)}function kl(L,H,nt){for(var gt=nt?hl:ts,Mt=L[0].length,Pt=L.length,Et=Pt,Dt=Ft(Pt),Bt=1/0,Yt=[];Et--;){var $t=L[Et];Et&&H&&($t=ze($t,ki(H))),Bt=li($t.length,Bt),Dt[Et]=!nt&&(H||Mt>=120&&$t.length>=120)?new on(Et&&$t):m}$t=L[0];var Vt=-1,ie=Dt[0];t:for(;++Vt<Mt&&Yt.length<Bt;){var ne=$t[Vt],ae=H?H(ne):ne;if(ne=nt||ne!==0?ne:0,!(ie?ro(ie,ae):gt(Yt,ae,nt))){for(Et=Pt;--Et;){var ve=Dt[Et];if(!(ve?ro(ve,ae):gt(L[Et],ae,nt)))continue t}ie&&ie.push(ae),Yt.push(ne)}}return Yt}function jx(L,H,nt,gt){return lr(L,function(Mt,Pt,Et){H(gt,nt(Mt),Pt,Et)}),gt}function uo(L,H,nt){H=Gr(H,L),L=Fp(L,H);var gt=L==null?L:L[cr(Gi(H))];return gt==null?m:Ti(gt,L,nt)}function tp(L){return He(L)&&di(L)==n}function Nx(L){return He(L)&&di(L)==ht}function Bx(L){return He(L)&&di(L)==s}function po(L,H,nt,gt,Mt){return L===H?!0:L==null||H==null||!He(L)&&!He(H)?L!==L&&H!==H:Rx(L,H,nt,gt,po,Mt)}function Rx(L,H,nt,gt,Mt,Pt){var Et=ge(L),Dt=ge(H),Bt=Et?i:hi(L),Yt=Dt?i:hi(H);Bt=Bt==n?G:Bt,Yt=Yt==n?G:Yt;var $t=Bt==G,Vt=Yt==G,ie=Bt==Yt;if(ie&&Hr(L)){if(!Hr(H))return!1;Et=!0,$t=!1}if(ie&&!$t)return Pt||(Pt=new tr),Et||Dn(L)?Dp(L,H,nt,gt,Mt,Pt):u1(L,H,Bt,nt,gt,Mt,Pt);if(!(nt&U)){var ne=$t&&_e.call(L,"__wrapped__"),ae=Vt&&_e.call(H,"__wrapped__");if(ne||ae){var ve=ne?L.value():L,le=ae?H.value():H;return Pt||(Pt=new tr),Mt(ve,le,nt,gt,Pt)}}return ie?(Pt||(Pt=new tr),p1(L,H,nt,gt,Mt,Pt)):!1}function zx(L){return He(L)&&hi(L)==C}function Pl(L,H,nt,gt){var Mt=nt.length,Pt=Mt,Et=!gt;if(L==null)return!Pt;for(L=Ie(L);Mt--;){var Dt=nt[Mt];if(Et&&Dt[2]?Dt[1]!==L[Dt[0]]:!(Dt[0]in L))return!1}for(;++Mt<Pt;){Dt=nt[Mt];var Bt=Dt[0],Yt=L[Bt],$t=Dt[1];if(Et&&Dt[2]){if(Yt===m&&!(Bt in L))return!1}else{var Vt=new tr;if(gt)var ie=gt(Yt,$t,Bt,L,H,Vt);if(!(ie===m?po($t,Yt,U|z,gt,Vt):ie))return!1}}return!0}function ep(L){if(!Fe(L)||w1(L))return!1;var H=Pr(L)?zb:We;return H.test(hn(L))}function Fx(L){return He(L)&&di(L)==N}function Gx(L){return He(L)&&hi(L)==Z}function Wx(L){return He(L)&&Ns(L.length)&&!!Be[di(L)]}function ip(L){return typeof L=="function"?L:L==null?Ci:typeof L=="object"?ge(L)?op(L[0],L[1]):np(L):Md(L)}function Ll(L){if(!mo(L))return Xb(L);var H=[];for(var nt in Ie(L))_e.call(L,nt)&&nt!="constructor"&&H.push(nt);return H}function Hx(L){if(!Fe(L))return A1(L);var H=mo(L),nt=[];for(var gt in L)gt=="constructor"&&(H||!_e.call(L,gt))||nt.push(gt);return nt}function El(L,H){return L<H}function rp(L,H){var nt=-1,gt=xi(L)?Ft(L.length):[];return zr(L,function(Mt,Pt,Et){gt[++nt]=H(Mt,Pt,Et)}),gt}function np(L){var H=Xl(L);return H.length==1&&H[0][2]?Rp(H[0][0],H[0][1]):function(nt){return nt===L||Pl(nt,L,H)}}function op(L,H){return $l(L)&&Bp(H)?Rp(cr(L),H):function(nt){var gt=rh(nt,L);return gt===m&&gt===H?nh(nt,L):po(H,gt,U|z)}}function xs(L,H,nt,gt,Mt){L!==H&&Ml(H,function(Pt,Et){if(Mt||(Mt=new tr),Fe(Pt))Ux(L,H,Et,nt,xs,gt,Mt);else{var Dt=gt?gt(Zl(L,Et),Pt,Et+"",L,H,Mt):m;Dt===m&&(Dt=Pt),Cl(L,Et,Dt)}},wi)}function Ux(L,H,nt,gt,Mt,Pt,Et){var Dt=Zl(L,nt),Bt=Zl(H,nt),Yt=Et.get(Bt);if(Yt){Cl(L,nt,Yt);return}var $t=Pt?Pt(Dt,Bt,nt+"",L,H,Et):m,Vt=$t===m;if(Vt){var ie=ge(Bt),ne=!ie&&Hr(Bt),ae=!ie&&!ne&&Dn(Bt);$t=Bt,ie||ne||ae?ge(Dt)?$t=Dt:Xe(Dt)?$t=bi(Dt):ne?(Vt=!1,$t=yp(Bt,!0)):ae?(Vt=!1,$t=vp(Bt,!0)):$t=[]:vo(Bt)||cn(Bt)?($t=Dt,cn(Dt)?$t=fd(Dt):(!Fe(Dt)||Pr(Dt))&&($t=Np(Bt))):Vt=!1}Vt&&(Et.set(Bt,$t),Mt($t,Bt,gt,Pt,Et),Et.delete(Bt)),Cl(L,nt,$t)}function sp(L,H){var nt=L.length;if(nt)return H+=H<0?nt:0,kr(H,nt)?L[H]:m}function ap(L,H,nt){H.length?H=ze(H,function(Pt){return ge(Pt)?function(Et){return an(Et,Pt.length===1?Pt[0]:Pt)}:Pt}):H=[Ci];var gt=-1;H=ze(H,ki(se()));var Mt=rp(L,function(Pt,Et,Dt){var Bt=ze(H,function(Yt){return Yt(Pt)});return{criteria:Bt,index:++gt,value:Pt}});return yb(Mt,function(Pt,Et){return r1(Pt,Et,nt)})}function Xx(L,H){return lp(L,H,function(nt,gt){return nh(L,gt)})}function lp(L,H,nt){for(var gt=-1,Mt=H.length,Pt={};++gt<Mt;){var Et=H[gt],Dt=an(L,Et);nt(Dt,Et)&&fo(Pt,Gr(Et,L),Dt)}return Pt}function Yx(L){return function(H){return an(H,L)}}function Ol(L,H,nt,gt){var Mt=gt?mb:Cn,Pt=-1,Et=H.length,Dt=L;for(L===H&&(H=bi(H)),nt&&(Dt=ze(L,ki(nt)));++Pt<Et;)for(var Bt=0,Yt=H[Pt],$t=nt?nt(Yt):Yt;(Bt=Mt(Dt,$t,Bt,gt))>-1;)Dt!==L&&cs.call(Dt,Bt,1),cs.call(L,Bt,1);return L}function hp(L,H){for(var nt=L?H.length:0,gt=nt-1;nt--;){var Mt=H[nt];if(nt==gt||Mt!==Pt){var Pt=Mt;kr(Mt)?cs.call(L,Mt,1):jl(L,Mt)}}return L}function _l(L,H){return L+ds(Hu()*(H-L+1))}function $x(L,H,nt,gt){for(var Mt=-1,Pt=Ke(ps((H-L)/(nt||1)),0),Et=Ft(Pt);Pt--;)Et[gt?Pt:++Mt]=L,L+=nt;return Et}function Dl(L,H){var nt="";if(!L||H<1||H>M)return nt;do H%2&&(nt+=L),H=ds(H/2),H&&(L+=L);while(H);return nt}function be(L,H){return ql(zp(L,H,Ci),L+"")}function Vx(L){return Yu(In(L))}function Zx(L,H){var nt=In(L);return Es(nt,sn(H,0,nt.length))}function fo(L,H,nt,gt){if(!Fe(L))return L;H=Gr(H,L);for(var Mt=-1,Pt=H.length,Et=Pt-1,Dt=L;Dt!=null&&++Mt<Pt;){var Bt=cr(H[Mt]),Yt=nt;if(Bt==="__proto__"||Bt==="constructor"||Bt==="prototype")return L;if(Mt!=Et){var $t=Dt[Bt];Yt=gt?gt($t,Bt,Dt):m,Yt===m&&(Yt=Fe($t)?$t:kr(H[Mt+1])?[]:{})}ho(Dt,Bt,Yt),Dt=Dt[Bt]}return L}var cp=fs?function(L,H){return fs.set(L,H),L}:Ci,qx=us?function(L,H){return us(L,"toString",{configurable:!0,enumerable:!1,value:sh(H),writable:!0})}:Ci;function Kx(L){return Es(In(L))}function Fi(L,H,nt){var gt=-1,Mt=L.length;H<0&&(H=-H>Mt?0:Mt+H),nt=nt>Mt?Mt:nt,nt<0&&(nt+=Mt),Mt=H>nt?0:nt-H>>>0,H>>>=0;for(var Pt=Ft(Mt);++gt<Mt;)Pt[gt]=L[gt+H];return Pt}function Jx(L,H){var nt;return zr(L,function(gt,Mt,Pt){return nt=H(gt,Mt,Pt),!nt}),!!nt}function ws(L,H,nt){var gt=0,Mt=L==null?gt:L.length;if(typeof H=="number"&&H===H&&Mt<=e){for(;gt<Mt;){var Pt=gt+Mt>>>1,Et=L[Pt];Et!==null&&!Li(Et)&&(nt?Et<=H:Et<H)?gt=Pt+1:Mt=Pt}return Mt}return Il(L,H,Ci,nt)}function Il(L,H,nt,gt){var Mt=0,Pt=L==null?0:L.length;if(Pt===0)return 0;H=nt(H);for(var Et=H!==H,Dt=H===null,Bt=Li(H),Yt=H===m;Mt<Pt;){var $t=ds((Mt+Pt)/2),Vt=nt(L[$t]),ie=Vt!==m,ne=Vt===null,ae=Vt===Vt,ve=Li(Vt);if(Et)var le=gt||ae;else Yt?le=ae&&(gt||ie):Dt?le=ae&&ie&&(gt||!ne):Bt?le=ae&&ie&&!ne&&(gt||!ve):ne||ve?le=!1:le=gt?Vt<=H:Vt<H;le?Mt=$t+1:Pt=$t}return li(Pt,h)}function up(L,H){for(var nt=-1,gt=L.length,Mt=0,Pt=[];++nt<gt;){var Et=L[nt],Dt=H?H(Et):Et;if(!nt||!er(Dt,Bt)){var Bt=Dt;Pt[Mt++]=Et===0?0:Et}}return Pt}function pp(L){return typeof L=="number"?L:Li(L)?x:+L}function Pi(L){if(typeof L=="string")return L;if(ge(L))return ze(L,Pi)+"";if(Li(L))return Uu?Uu.call(L):"";var H=L+"";return H=="0"&&1/L==-E?"-0":H}function Fr(L,H,nt){var gt=-1,Mt=ts,Pt=L.length,Et=!0,Dt=[],Bt=Dt;if(nt)Et=!1,Mt=hl;else if(Pt>=Q){var Yt=H?null:h1(L);if(Yt)return is(Yt);Et=!1,Mt=ro,Bt=new on}else Bt=H?[]:Dt;t:for(;++gt<Pt;){var $t=L[gt],Vt=H?H($t):$t;if($t=nt||$t!==0?$t:0,Et&&Vt===Vt){for(var ie=Bt.length;ie--;)if(Bt[ie]===Vt)continue t;H&&Bt.push(Vt),Dt.push($t)}else Mt(Bt,Vt,nt)||(Bt!==Dt&&Bt.push(Vt),Dt.push($t))}return Dt}function jl(L,H){return H=Gr(H,L),L=Fp(L,H),L==null||delete L[cr(Gi(H))]}function dp(L,H,nt,gt){return fo(L,H,nt(an(L,H)),gt)}function Cs(L,H,nt,gt){for(var Mt=L.length,Pt=gt?Mt:-1;(gt?Pt--:++Pt<Mt)&&H(L[Pt],Pt,L););return nt?Fi(L,gt?0:Pt,gt?Pt+1:Mt):Fi(L,gt?Pt+1:0,gt?Mt:Pt)}function fp(L,H){var nt=L;return nt instanceof Ce&&(nt=nt.value()),cl(H,function(gt,Mt){return Mt.func.apply(Mt.thisArg,Nr([gt],Mt.args))},nt)}function Nl(L,H,nt){var gt=L.length;if(gt<2)return gt?Fr(L[0]):[];for(var Mt=-1,Pt=Ft(gt);++Mt<gt;)for(var Et=L[Mt],Dt=-1;++Dt<gt;)Dt!=Mt&&(Pt[Mt]=co(Pt[Mt]||Et,L[Dt],H,nt));return Fr(ni(Pt,1),H,nt)}function gp(L,H,nt){for(var gt=-1,Mt=L.length,Pt=H.length,Et={};++gt<Mt;){var Dt=gt<Pt?H[gt]:m;nt(Et,L[gt],Dt)}return Et}function Bl(L){return Xe(L)?L:[]}function Rl(L){return typeof L=="function"?L:Ci}function Gr(L,H){return ge(L)?L:$l(L,H)?[L]:Up(Ee(L))}var Qx=be;function Wr(L,H,nt){var gt=L.length;return nt=nt===m?gt:nt,!H&&nt>=gt?L:Fi(L,H,nt)}var mp=Fb||function(L){return ri.clearTimeout(L)};function yp(L,H){if(H)return L.slice();var nt=L.length,gt=Ru?Ru(nt):new L.constructor(nt);return L.copy(gt),gt}function zl(L){var H=new L.constructor(L.byteLength);return new ls(H).set(new ls(L)),H}function t1(L,H){var nt=H?zl(L.buffer):L.buffer;return new L.constructor(nt,L.byteOffset,L.byteLength)}function e1(L){var H=new L.constructor(L.source,pe.exec(L));return H.lastIndex=L.lastIndex,H}function i1(L){return lo?Ie(lo.call(L)):{}}function vp(L,H){var nt=H?zl(L.buffer):L.buffer;return new L.constructor(nt,L.byteOffset,L.length)}function bp(L,H){if(L!==H){var nt=L!==m,gt=L===null,Mt=L===L,Pt=Li(L),Et=H!==m,Dt=H===null,Bt=H===H,Yt=Li(H);if(!Dt&&!Yt&&!Pt&&L>H||Pt&&Et&&Bt&&!Dt&&!Yt||gt&&Et&&Bt||!nt&&Bt||!Mt)return 1;if(!gt&&!Pt&&!Yt&&L<H||Yt&&nt&&Mt&&!gt&&!Pt||Dt&&nt&&Mt||!Et&&Mt||!Bt)return-1}return 0}function r1(L,H,nt){for(var gt=-1,Mt=L.criteria,Pt=H.criteria,Et=Mt.length,Dt=nt.length;++gt<Et;){var Bt=bp(Mt[gt],Pt[gt]);if(Bt){if(gt>=Dt)return Bt;var Yt=nt[gt];return Bt*(Yt=="desc"?-1:1)}}return L.index-H.index}function xp(L,H,nt,gt){for(var Mt=-1,Pt=L.length,Et=nt.length,Dt=-1,Bt=H.length,Yt=Ke(Pt-Et,0),$t=Ft(Bt+Yt),Vt=!gt;++Dt<Bt;)$t[Dt]=H[Dt];for(;++Mt<Et;)(Vt||Mt<Pt)&&($t[nt[Mt]]=L[Mt]);for(;Yt--;)$t[Dt++]=L[Mt++];return $t}function wp(L,H,nt,gt){for(var Mt=-1,Pt=L.length,Et=-1,Dt=nt.length,Bt=-1,Yt=H.length,$t=Ke(Pt-Dt,0),Vt=Ft($t+Yt),ie=!gt;++Mt<$t;)Vt[Mt]=L[Mt];for(var ne=Mt;++Bt<Yt;)Vt[ne+Bt]=H[Bt];for(;++Et<Dt;)(ie||Mt<Pt)&&(Vt[ne+nt[Et]]=L[Mt++]);return Vt}function bi(L,H){var nt=-1,gt=L.length;for(H||(H=Ft(gt));++nt<gt;)H[nt]=L[nt];return H}function hr(L,H,nt,gt){var Mt=!nt;nt||(nt={});for(var Pt=-1,Et=H.length;++Pt<Et;){var Dt=H[Pt],Bt=gt?gt(nt[Dt],L[Dt],Dt,nt,L):m;Bt===m&&(Bt=L[Dt]),Mt?Mr(nt,Dt,Bt):ho(nt,Dt,Bt)}return nt}function n1(L,H){return hr(L,Yl(L),H)}function o1(L,H){return hr(L,Ip(L),H)}function Ss(L,H){return function(nt,gt){var Mt=ge(nt)?cb:kx,Pt=H?H():{};return Mt(nt,L,se(gt,2),Pt)}}function En(L){return be(function(H,nt){var gt=-1,Mt=nt.length,Pt=Mt>1?nt[Mt-1]:m,Et=Mt>2?nt[2]:m;for(Pt=L.length>3&&typeof Pt=="function"?(Mt--,Pt):m,Et&&fi(nt[0],nt[1],Et)&&(Pt=Mt<3?m:Pt,Mt=1),H=Ie(H);++gt<Mt;){var Dt=nt[gt];Dt&&L(H,Dt,gt,Pt)}return H})}function Cp(L,H){return function(nt,gt){if(nt==null)return nt;if(!xi(nt))return L(nt,gt);for(var Mt=nt.length,Pt=H?Mt:-1,Et=Ie(nt);(H?Pt--:++Pt<Mt)&&gt(Et[Pt],Pt,Et)!==!1;);return nt}}function Sp(L){return function(H,nt,gt){for(var Mt=-1,Pt=Ie(H),Et=gt(H),Dt=Et.length;Dt--;){var Bt=Et[L?Dt:++Mt];if(nt(Pt[Bt],Bt,Pt)===!1)break}return H}}function s1(L,H,nt){var gt=H&X,Mt=go(L);function Pt(){var Et=this&&this!==ri&&this instanceof Pt?Mt:L;return Et.apply(gt?nt:this,arguments)}return Pt}function Mp(L){return function(H){H=Ee(H);var nt=Sn(H)?Qi(H):m,gt=nt?nt[0]:H.charAt(0),Mt=nt?Wr(nt,1).join(""):H.slice(1);return gt[L]()+Mt}}function On(L){return function(H){return cl(Cd(wd(H).replace(qv,"")),L,"")}}function go(L){return function(){var H=arguments;switch(H.length){case 0:return new L;case 1:return new L(H[0]);case 2:return new L(H[0],H[1]);case 3:return new L(H[0],H[1],H[2]);case 4:return new L(H[0],H[1],H[2],H[3]);case 5:return new L(H[0],H[1],H[2],H[3],H[4]);case 6:return new L(H[0],H[1],H[2],H[3],H[4],H[5]);case 7:return new L(H[0],H[1],H[2],H[3],H[4],H[5],H[6])}var nt=Ln(L.prototype),gt=L.apply(nt,H);return Fe(gt)?gt:nt}}function a1(L,H,nt){var gt=go(L);function Mt(){for(var Pt=arguments.length,Et=Ft(Pt),Dt=Pt,Bt=_n(Mt);Dt--;)Et[Dt]=arguments[Dt];var Yt=Pt<3&&Et[0]!==Bt&&Et[Pt-1]!==Bt?[]:Br(Et,Bt);if(Pt-=Yt.length,Pt<nt)return Lp(L,H,Ms,Mt.placeholder,m,Et,Yt,m,m,nt-Pt);var $t=this&&this!==ri&&this instanceof Mt?gt:L;return Ti($t,this,Et)}return Mt}function Ap(L){return function(H,nt,gt){var Mt=Ie(H);if(!xi(H)){var Pt=se(nt,3);H=ei(H),nt=function(Dt){return Pt(Mt[Dt],Dt,Mt)}}var Et=L(H,nt,gt);return Et>-1?Mt[Pt?H[Et]:Et]:m}}function Tp(L){return Tr(function(H){var nt=H.length,gt=nt,Mt=Ri.prototype.thru;for(L&&H.reverse();gt--;){var Pt=H[gt];if(typeof Pt!="function")throw new Bi(ot);if(Mt&&!Et&&Ps(Pt)=="wrapper")var Et=new Ri([],!0)}for(gt=Et?gt:nt;++gt<nt;){Pt=H[gt];var Dt=Ps(Pt),Bt=Dt=="wrapper"?Ul(Pt):m;Bt&&Vl(Bt[0])&&Bt[1]==(O|J|W|w)&&!Bt[4].length&&Bt[9]==1?Et=Et[Ps(Bt[0])].apply(Et,Bt[3]):Et=Pt.length==1&&Vl(Pt)?Et[Dt]():Et.thru(Pt)}return function(){var Yt=arguments,$t=Yt[0];if(Et&&Yt.length==1&&ge($t))return Et.plant($t).value();for(var Vt=0,ie=nt?H[Vt].apply(this,Yt):$t;++Vt<nt;)ie=H[Vt].call(this,ie);return ie}})}function Ms(L,H,nt,gt,Mt,Pt,Et,Dt,Bt,Yt){var $t=H&O,Vt=H&X,ie=H&V,ne=H&(J|q),ae=H&T,ve=ie?m:go(L);function le(){for(var we=arguments.length,Se=Ft(we),Ei=we;Ei--;)Se[Ei]=arguments[Ei];if(ne)var gi=_n(le),Oi=bb(Se,gi);if(gt&&(Se=xp(Se,gt,Mt,ne)),Pt&&(Se=wp(Se,Pt,Et,ne)),we-=Oi,ne&&we<Yt){var Ye=Br(Se,gi);return Lp(L,H,Ms,le.placeholder,nt,Se,Ye,Dt,Bt,Yt-we)}var ir=Vt?nt:this,Er=ie?ir[L]:L;return we=Se.length,Dt?Se=k1(Se,Dt):ae&&we>1&&Se.reverse(),$t&&Bt<we&&(Se.length=Bt),this&&this!==ri&&this instanceof le&&(Er=ve||go(Er)),Er.apply(ir,Se)}return le}function kp(L,H){return function(nt,gt){return jx(nt,L,H(gt),{})}}function As(L,H){return function(nt,gt){var Mt;if(nt===m&&gt===m)return H;if(nt!==m&&(Mt=nt),gt!==m){if(Mt===m)return gt;typeof nt=="string"||typeof gt=="string"?(nt=Pi(nt),gt=Pi(gt)):(nt=pp(nt),gt=pp(gt)),Mt=L(nt,gt)}return Mt}}function Fl(L){return Tr(function(H){return H=ze(H,ki(se())),be(function(nt){var gt=this;return L(H,function(Mt){return Ti(Mt,gt,nt)})})})}function Ts(L,H){H=H===m?" ":Pi(H);var nt=H.length;if(nt<2)return nt?Dl(H,L):H;var gt=Dl(H,ps(L/Mn(H)));return Sn(H)?Wr(Qi(gt),0,L).join(""):gt.slice(0,L)}function l1(L,H,nt,gt){var Mt=H&X,Pt=go(L);function Et(){for(var Dt=-1,Bt=arguments.length,Yt=-1,$t=gt.length,Vt=Ft($t+Bt),ie=this&&this!==ri&&this instanceof Et?Pt:L;++Yt<$t;)Vt[Yt]=gt[Yt];for(;Bt--;)Vt[Yt++]=arguments[++Dt];return Ti(ie,Mt?nt:this,Vt)}return Et}function Pp(L){return function(H,nt,gt){return gt&&typeof gt!="number"&&fi(H,nt,gt)&&(nt=gt=m),H=Lr(H),nt===m?(nt=H,H=0):nt=Lr(nt),gt=gt===m?H<nt?1:-1:Lr(gt),$x(H,nt,gt,L)}}function ks(L){return function(H,nt){return typeof H=="string"&&typeof nt=="string"||(H=Wi(H),nt=Wi(nt)),L(H,nt)}}function Lp(L,H,nt,gt,Mt,Pt,Et,Dt,Bt,Yt){var $t=H&J,Vt=$t?Et:m,ie=$t?m:Et,ne=$t?Pt:m,ae=$t?m:Pt;H|=$t?W:D,H&=~($t?D:W),H&K||(H&=~(X|V));var ve=[L,H,Mt,ne,Vt,ae,ie,Dt,Bt,Yt],le=nt.apply(m,ve);return Vl(L)&&Gp(le,ve),le.placeholder=gt,Wp(le,L,H)}function Gl(L){var H=qe[L];return function(nt,gt){if(nt=Wi(nt),gt=gt==null?0:li(ye(gt),292),gt&&Wu(nt)){var Mt=(Ee(nt)+"e").split("e"),Pt=H(Mt[0]+"e"+(+Mt[1]+gt));return Mt=(Ee(Pt)+"e").split("e"),+(Mt[0]+"e"+(+Mt[1]-gt))}return H(nt)}}var h1=kn&&1/is(new kn([,-0]))[1]==E?function(L){return new kn(L)}:hh;function Ep(L){return function(H){var nt=hi(H);return nt==C?yl(H):nt==Z?Tb(H):vb(H,L(H))}}function Ar(L,H,nt,gt,Mt,Pt,Et,Dt){var Bt=H&V;if(!Bt&&typeof L!="function")throw new Bi(ot);var Yt=gt?gt.length:0;if(Yt||(H&=~(W|D),gt=Mt=m),Et=Et===m?Et:Ke(ye(Et),0),Dt=Dt===m?Dt:ye(Dt),Yt-=Mt?Mt.length:0,H&D){var $t=gt,Vt=Mt;gt=Mt=m}var ie=Bt?m:Ul(L),ne=[L,H,nt,gt,Mt,$t,Vt,Pt,Et,Dt];if(ie&&M1(ne,ie),L=ne[0],H=ne[1],nt=ne[2],gt=ne[3],Mt=ne[4],Dt=ne[9]=ne[9]===m?Bt?0:L.length:Ke(ne[9]-Yt,0),!Dt&&H&(J|q)&&(H&=~(J|q)),!H||H==X)var ae=s1(L,H,nt);else H==J||H==q?ae=a1(L,H,Dt):(H==W||H==(X|W))&&!Mt.length?ae=l1(L,H,nt,gt):ae=Ms.apply(m,ne);var ve=ie?cp:Gp;return Wp(ve(ae,ne),L,H)}function Op(L,H,nt,gt){return L===m||er(L,Tn[nt])&&!_e.call(gt,nt)?H:L}function _p(L,H,nt,gt,Mt,Pt){return Fe(L)&&Fe(H)&&(Pt.set(H,L),xs(L,H,m,_p,Pt),Pt.delete(H)),L}function c1(L){return vo(L)?m:L}function Dp(L,H,nt,gt,Mt,Pt){var Et=nt&U,Dt=L.length,Bt=H.length;if(Dt!=Bt&&!(Et&&Bt>Dt))return!1;var Yt=Pt.get(L),$t=Pt.get(H);if(Yt&&$t)return Yt==H&&$t==L;var Vt=-1,ie=!0,ne=nt&z?new on:m;for(Pt.set(L,H),Pt.set(H,L);++Vt<Dt;){var ae=L[Vt],ve=H[Vt];if(gt)var le=Et?gt(ve,ae,Vt,H,L,Pt):gt(ae,ve,Vt,L,H,Pt);if(le!==m){if(le)continue;ie=!1;break}if(ne){if(!ul(H,function(we,Se){if(!ro(ne,Se)&&(ae===we||Mt(ae,we,nt,gt,Pt)))return ne.push(Se)})){ie=!1;break}}else if(!(ae===ve||Mt(ae,ve,nt,gt,Pt))){ie=!1;break}}return Pt.delete(L),Pt.delete(H),ie}function u1(L,H,nt,gt,Mt,Pt,Et){switch(nt){case dt:if(L.byteLength!=H.byteLength||L.byteOffset!=H.byteOffset)return!1;L=L.buffer,H=H.buffer;case ht:return!(L.byteLength!=H.byteLength||!Pt(new ls(L),new ls(H)));case a:case s:case k:return er(+L,+H);case A:return L.name==H.name&&L.message==H.message;case N:case $:return L==H+"";case C:var Dt=yl;case Z:var Bt=gt&U;if(Dt||(Dt=is),L.size!=H.size&&!Bt)return!1;var Yt=Et.get(L);if(Yt)return Yt==H;gt|=z,Et.set(L,H);var $t=Dp(Dt(L),Dt(H),gt,Mt,Pt,Et);return Et.delete(L),$t;case Y:if(lo)return lo.call(L)==lo.call(H)}return!1}function p1(L,H,nt,gt,Mt,Pt){var Et=nt&U,Dt=Wl(L),Bt=Dt.length,Yt=Wl(H),$t=Yt.length;if(Bt!=$t&&!Et)return!1;for(var Vt=Bt;Vt--;){var ie=Dt[Vt];if(!(Et?ie in H:_e.call(H,ie)))return!1}var ne=Pt.get(L),ae=Pt.get(H);if(ne&&ae)return ne==H&&ae==L;var ve=!0;Pt.set(L,H),Pt.set(H,L);for(var le=Et;++Vt<Bt;){ie=Dt[Vt];var we=L[ie],Se=H[ie];if(gt)var Ei=Et?gt(Se,we,ie,H,L,Pt):gt(we,Se,ie,L,H,Pt);if(!(Ei===m?we===Se||Mt(we,Se,nt,gt,Pt):Ei)){ve=!1;break}le||(le=ie=="constructor")}if(ve&&!le){var gi=L.constructor,Oi=H.constructor;gi!=Oi&&"constructor"in L&&"constructor"in H&&!(typeof gi=="function"&&gi instanceof gi&&typeof Oi=="function"&&Oi instanceof Oi)&&(ve=!1)}return Pt.delete(L),Pt.delete(H),ve}function Tr(L){return ql(zp(L,m,Vp),L+"")}function Wl(L){return Qu(L,ei,Yl)}function Hl(L){return Qu(L,wi,Ip)}var Ul=fs?function(L){return fs.get(L)}:hh;function Ps(L){for(var H=L.name+"",nt=Pn[H],gt=_e.call(Pn,H)?nt.length:0;gt--;){var Mt=nt[gt],Pt=Mt.func;if(Pt==null||Pt==L)return Mt.name}return H}function _n(L){var H=_e.call(kt,"placeholder")?kt:L;return H.placeholder}function se(){var L=kt.iteratee||ah;return L=L===ah?ip:L,arguments.length?L(arguments[0],arguments[1]):L}function Ls(L,H){var nt=L.__data__;return x1(H)?nt[typeof H=="string"?"string":"hash"]:nt.map}function Xl(L){for(var H=ei(L),nt=H.length;nt--;){var gt=H[nt],Mt=L[gt];H[nt]=[gt,Mt,Bp(Mt)]}return H}function ln(L,H){var nt=Sb(L,H);return ep(nt)?nt:m}function d1(L){var H=_e.call(L,rn),nt=L[rn];try{L[rn]=m;var gt=!0}catch(Pt){}var Mt=ss.call(L);return gt&&(H?L[rn]=nt:delete L[rn]),Mt}var Yl=bl?function(L){return L==null?[]:(L=Ie(L),jr(bl(L),function(H){return Fu.call(L,H)}))}:ch,Ip=bl?function(L){for(var H=[];L;)Nr(H,Yl(L)),L=hs(L);return H}:ch,hi=di;(xl&&hi(new xl(new ArrayBuffer(1)))!=dt||oo&&hi(new oo)!=C||wl&&hi(wl.resolve())!=I||kn&&hi(new kn)!=Z||so&&hi(new so)!=rt)&&(hi=function(L){var H=di(L),nt=H==G?L.constructor:m,gt=nt?hn(nt):"";if(gt)switch(gt){case Zb:return dt;case qb:return C;case Kb:return I;case Jb:return Z;case Qb:return rt}return H});function f1(L,H,nt){for(var gt=-1,Mt=nt.length;++gt<Mt;){var Pt=nt[gt],Et=Pt.size;switch(Pt.type){case"drop":L+=Et;break;case"dropRight":H-=Et;break;case"take":H=li(H,L+Et);break;case"takeRight":L=Ke(L,H-Et);break}}return{start:L,end:H}}function g1(L){var H=L.match(ce);return H?H[1].split(Me):[]}function jp(L,H,nt){H=Gr(H,L);for(var gt=-1,Mt=H.length,Pt=!1;++gt<Mt;){var Et=cr(H[gt]);if(!(Pt=L!=null&&nt(L,Et)))break;L=L[Et]}return Pt||++gt!=Mt?Pt:(Mt=L==null?0:L.length,!!Mt&&Ns(Mt)&&kr(Et,Mt)&&(ge(L)||cn(L)))}function m1(L){var H=L.length,nt=new L.constructor(H);return H&&typeof L[0]=="string"&&_e.call(L,"index")&&(nt.index=L.index,nt.input=L.input),nt}function Np(L){return typeof L.constructor=="function"&&!mo(L)?Ln(hs(L)):{}}function y1(L,H,nt){var gt=L.constructor;switch(H){case ht:return zl(L);case a:case s:return new gt(+L);case dt:return t1(L,nt);case bt:case xt:case St:case wt:case mt:case at:case pt:case vt:case Ct:return vp(L,nt);case C:return new gt;case k:case $:return new gt(L);case N:return e1(L);case Z:return new gt;case Y:return i1(L)}}function v1(L,H){var nt=H.length;if(!nt)return L;var gt=nt-1;return H[gt]=(nt>1?"& ":"")+H[gt],H=H.join(nt>2?", ":" "),L.replace(Qe,`{
14
+ /* [wrapped with `+H+`] */
15
+ `)}function b1(L){return ge(L)||cn(L)||!!(Gu&&L&&L[Gu])}function kr(L,H){var nt=typeof L;return H=H==null?M:H,!!H&&(nt=="number"||nt!="symbol"&&Ir.test(L))&&L>-1&&L%1==0&&L<H}function fi(L,H,nt){if(!Fe(nt))return!1;var gt=typeof H;return(gt=="number"?xi(nt)&&kr(H,nt.length):gt=="string"&&H in nt)?er(nt[H],L):!1}function $l(L,H){if(ge(L))return!1;var nt=typeof L;return nt=="number"||nt=="symbol"||nt=="boolean"||L==null||Li(L)?!0:qt.test(L)||!Ht.test(L)||H!=null&&L in Ie(H)}function x1(L){var H=typeof L;return H=="string"||H=="number"||H=="symbol"||H=="boolean"?L!=="__proto__":L===null}function Vl(L){var H=Ps(L),nt=kt[H];if(typeof nt!="function"||!(H in Ce.prototype))return!1;if(L===nt)return!0;var gt=Ul(nt);return!!gt&&L===gt[0]}function w1(L){return!!Bu&&Bu in L}var C1=ns?Pr:uh;function mo(L){var H=L&&L.constructor,nt=typeof H=="function"&&H.prototype||Tn;return L===nt}function Bp(L){return L===L&&!Fe(L)}function Rp(L,H){return function(nt){return nt==null?!1:nt[L]===H&&(H!==m||L in Ie(nt))}}function S1(L){var H=Is(L,function(gt){return nt.size===ut&&nt.clear(),gt}),nt=H.cache;return H}function M1(L,H){var nt=L[1],gt=H[1],Mt=nt|gt,Pt=Mt<(X|V|O),Et=gt==O&&nt==J||gt==O&&nt==w&&L[7].length<=H[8]||gt==(O|w)&&H[7].length<=H[8]&&nt==J;if(!(Pt||Et))return L;gt&X&&(L[2]=H[2],Mt|=nt&X?0:K);var Dt=H[3];if(Dt){var Bt=L[3];L[3]=Bt?xp(Bt,Dt,H[4]):Dt,L[4]=Bt?Br(L[3],ft):H[4]}return Dt=H[5],Dt&&(Bt=L[5],L[5]=Bt?wp(Bt,Dt,H[6]):Dt,L[6]=Bt?Br(L[5],ft):H[6]),Dt=H[7],Dt&&(L[7]=Dt),gt&O&&(L[8]=L[8]==null?H[8]:li(L[8],H[8])),L[9]==null&&(L[9]=H[9]),L[0]=H[0],L[1]=Mt,L}function A1(L){var H=[];if(L!=null)for(var nt in Ie(L))H.push(nt);return H}function T1(L){return ss.call(L)}function zp(L,H,nt){return H=Ke(H===m?L.length-1:H,0),function(){for(var gt=arguments,Mt=-1,Pt=Ke(gt.length-H,0),Et=Ft(Pt);++Mt<Pt;)Et[Mt]=gt[H+Mt];Mt=-1;for(var Dt=Ft(H+1);++Mt<H;)Dt[Mt]=gt[Mt];return Dt[H]=nt(Et),Ti(L,this,Dt)}}function Fp(L,H){return H.length<2?L:an(L,Fi(H,0,-1))}function k1(L,H){for(var nt=L.length,gt=li(H.length,nt),Mt=bi(L);gt--;){var Pt=H[gt];L[gt]=kr(Pt,nt)?Mt[Pt]:m}return L}function Zl(L,H){if(!(H==="constructor"&&typeof L[H]=="function")&&H!="__proto__")return L[H]}var Gp=Hp(cp),yo=Wb||function(L,H){return ri.setTimeout(L,H)},ql=Hp(qx);function Wp(L,H,nt){var gt=H+"";return ql(L,v1(gt,P1(g1(gt),nt)))}function Hp(L){var H=0,nt=0;return function(){var gt=Yb(),Mt=b-(gt-nt);if(nt=gt,Mt>0){if(++H>=g)return arguments[0]}else H=0;return L.apply(m,arguments)}}function Es(L,H){var nt=-1,gt=L.length,Mt=gt-1;for(H=H===m?gt:H;++nt<H;){var Pt=_l(nt,Mt),Et=L[Pt];L[Pt]=L[nt],L[nt]=Et}return L.length=H,L}var Up=S1(function(L){var H=[];return L.charCodeAt(0)===46&&H.push(""),L.replace(Kt,function(nt,gt,Mt,Pt){H.push(Mt?Pt.replace(ee,"$1"):gt||nt)}),H});function cr(L){if(typeof L=="string"||Li(L))return L;var H=L+"";return H=="0"&&1/L==-E?"-0":H}function hn(L){if(L!=null){try{return os.call(L)}catch(H){}try{return L+""}catch(H){}}return""}function P1(L,H){return Ni(r,function(nt){var gt="_."+nt[0];H&nt[1]&&!ts(L,gt)&&L.push(gt)}),L.sort()}function Xp(L){if(L instanceof Ce)return L.clone();var H=new Ri(L.__wrapped__,L.__chain__);return H.__actions__=bi(L.__actions__),H.__index__=L.__index__,H.__values__=L.__values__,H}function L1(L,H,nt){(nt?fi(L,H,nt):H===m)?H=1:H=Ke(ye(H),0);var gt=L==null?0:L.length;if(!gt||H<1)return[];for(var Mt=0,Pt=0,Et=Ft(ps(gt/H));Mt<gt;)Et[Pt++]=Fi(L,Mt,Mt+=H);return Et}function E1(L){for(var H=-1,nt=L==null?0:L.length,gt=0,Mt=[];++H<nt;){var Pt=L[H];Pt&&(Mt[gt++]=Pt)}return Mt}function O1(){var L=arguments.length;if(!L)return[];for(var H=Ft(L-1),nt=arguments[0],gt=L;gt--;)H[gt-1]=arguments[gt];return Nr(ge(nt)?bi(nt):[nt],ni(H,1))}var _1=be(function(L,H){return Xe(L)?co(L,ni(H,1,Xe,!0)):[]}),D1=be(function(L,H){var nt=Gi(H);return Xe(nt)&&(nt=m),Xe(L)?co(L,ni(H,1,Xe,!0),se(nt,2)):[]}),I1=be(function(L,H){var nt=Gi(H);return Xe(nt)&&(nt=m),Xe(L)?co(L,ni(H,1,Xe,!0),m,nt):[]});function j1(L,H,nt){var gt=L==null?0:L.length;return gt?(H=nt||H===m?1:ye(H),Fi(L,H<0?0:H,gt)):[]}function N1(L,H,nt){var gt=L==null?0:L.length;return gt?(H=nt||H===m?1:ye(H),H=gt-H,Fi(L,0,H<0?0:H)):[]}function B1(L,H){return L&&L.length?Cs(L,se(H,3),!0,!0):[]}function R1(L,H){return L&&L.length?Cs(L,se(H,3),!0):[]}function z1(L,H,nt,gt){var Mt=L==null?0:L.length;return Mt?(nt&&typeof nt!="number"&&fi(L,H,nt)&&(nt=0,gt=Mt),Ox(L,H,nt,gt)):[]}function Yp(L,H,nt){var gt=L==null?0:L.length;if(!gt)return-1;var Mt=nt==null?0:ye(nt);return Mt<0&&(Mt=Ke(gt+Mt,0)),es(L,se(H,3),Mt)}function $p(L,H,nt){var gt=L==null?0:L.length;if(!gt)return-1;var Mt=gt-1;return nt!==m&&(Mt=ye(nt),Mt=nt<0?Ke(gt+Mt,0):li(Mt,gt-1)),es(L,se(H,3),Mt,!0)}function Vp(L){var H=L==null?0:L.length;return H?ni(L,1):[]}function F1(L){var H=L==null?0:L.length;return H?ni(L,E):[]}function G1(L,H){var nt=L==null?0:L.length;return nt?(H=H===m?1:ye(H),ni(L,H)):[]}function W1(L){for(var H=-1,nt=L==null?0:L.length,gt={};++H<nt;){var Mt=L[H];gt[Mt[0]]=Mt[1]}return gt}function Zp(L){return L&&L.length?L[0]:m}function H1(L,H,nt){var gt=L==null?0:L.length;if(!gt)return-1;var Mt=nt==null?0:ye(nt);return Mt<0&&(Mt=Ke(gt+Mt,0)),Cn(L,H,Mt)}function U1(L){var H=L==null?0:L.length;return H?Fi(L,0,-1):[]}var X1=be(function(L){var H=ze(L,Bl);return H.length&&H[0]===L[0]?kl(H):[]}),Y1=be(function(L){var H=Gi(L),nt=ze(L,Bl);return H===Gi(nt)?H=m:nt.pop(),nt.length&&nt[0]===L[0]?kl(nt,se(H,2)):[]}),$1=be(function(L){var H=Gi(L),nt=ze(L,Bl);return H=typeof H=="function"?H:m,H&&nt.pop(),nt.length&&nt[0]===L[0]?kl(nt,m,H):[]});function V1(L,H){return L==null?"":Ub.call(L,H)}function Gi(L){var H=L==null?0:L.length;return H?L[H-1]:m}function Z1(L,H,nt){var gt=L==null?0:L.length;if(!gt)return-1;var Mt=gt;return nt!==m&&(Mt=ye(nt),Mt=Mt<0?Ke(gt+Mt,0):li(Mt,gt-1)),H===H?Pb(L,H,Mt):es(L,Lu,Mt,!0)}function q1(L,H){return L&&L.length?sp(L,ye(H)):m}var K1=be(qp);function qp(L,H){return L&&L.length&&H&&H.length?Ol(L,H):L}function J1(L,H,nt){return L&&L.length&&H&&H.length?Ol(L,H,se(nt,2)):L}function Q1(L,H,nt){return L&&L.length&&H&&H.length?Ol(L,H,m,nt):L}var tw=Tr(function(L,H){var nt=L==null?0:L.length,gt=Sl(L,H);return hp(L,ze(H,function(Mt){return kr(Mt,nt)?+Mt:Mt}).sort(bp)),gt});function ew(L,H){var nt=[];if(!(L&&L.length))return nt;var gt=-1,Mt=[],Pt=L.length;for(H=se(H,3);++gt<Pt;){var Et=L[gt];H(Et,gt,L)&&(nt.push(Et),Mt.push(gt))}return hp(L,Mt),nt}function Kl(L){return L==null?L:Vb.call(L)}function iw(L,H,nt){var gt=L==null?0:L.length;return gt?(nt&&typeof nt!="number"&&fi(L,H,nt)?(H=0,nt=gt):(H=H==null?0:ye(H),nt=nt===m?gt:ye(nt)),Fi(L,H,nt)):[]}function rw(L,H){return ws(L,H)}function nw(L,H,nt){return Il(L,H,se(nt,2))}function ow(L,H){var nt=L==null?0:L.length;if(nt){var gt=ws(L,H);if(gt<nt&&er(L[gt],H))return gt}return-1}function sw(L,H){return ws(L,H,!0)}function aw(L,H,nt){return Il(L,H,se(nt,2),!0)}function lw(L,H){var nt=L==null?0:L.length;if(nt){var gt=ws(L,H,!0)-1;if(er(L[gt],H))return gt}return-1}function hw(L){return L&&L.length?up(L):[]}function cw(L,H){return L&&L.length?up(L,se(H,2)):[]}function uw(L){var H=L==null?0:L.length;return H?Fi(L,1,H):[]}function pw(L,H,nt){return L&&L.length?(H=nt||H===m?1:ye(H),Fi(L,0,H<0?0:H)):[]}function dw(L,H,nt){var gt=L==null?0:L.length;return gt?(H=nt||H===m?1:ye(H),H=gt-H,Fi(L,H<0?0:H,gt)):[]}function fw(L,H){return L&&L.length?Cs(L,se(H,3),!1,!0):[]}function gw(L,H){return L&&L.length?Cs(L,se(H,3)):[]}var mw=be(function(L){return Fr(ni(L,1,Xe,!0))}),yw=be(function(L){var H=Gi(L);return Xe(H)&&(H=m),Fr(ni(L,1,Xe,!0),se(H,2))}),vw=be(function(L){var H=Gi(L);return H=typeof H=="function"?H:m,Fr(ni(L,1,Xe,!0),m,H)});function bw(L){return L&&L.length?Fr(L):[]}function xw(L,H){return L&&L.length?Fr(L,se(H,2)):[]}function ww(L,H){return H=typeof H=="function"?H:m,L&&L.length?Fr(L,m,H):[]}function Jl(L){if(!(L&&L.length))return[];var H=0;return L=jr(L,function(nt){if(Xe(nt))return H=Ke(nt.length,H),!0}),gl(H,function(nt){return ze(L,pl(nt))})}function Kp(L,H){if(!(L&&L.length))return[];var nt=Jl(L);return H==null?nt:ze(nt,function(gt){return Ti(H,m,gt)})}var Cw=be(function(L,H){return Xe(L)?co(L,H):[]}),Sw=be(function(L){return Nl(jr(L,Xe))}),Mw=be(function(L){var H=Gi(L);return Xe(H)&&(H=m),Nl(jr(L,Xe),se(H,2))}),Aw=be(function(L){var H=Gi(L);return H=typeof H=="function"?H:m,Nl(jr(L,Xe),m,H)}),Tw=be(Jl);function kw(L,H){return gp(L||[],H||[],ho)}function Pw(L,H){return gp(L||[],H||[],fo)}var Lw=be(function(L){var H=L.length,nt=H>1?L[H-1]:m;return nt=typeof nt=="function"?(L.pop(),nt):m,Kp(L,nt)});function Jp(L){var H=kt(L);return H.__chain__=!0,H}function Ew(L,H){return H(L),L}function Os(L,H){return H(L)}var Ow=Tr(function(L){var H=L.length,nt=H?L[0]:0,gt=this.__wrapped__,Mt=function(Pt){return Sl(Pt,L)};return H>1||this.__actions__.length||!(gt instanceof Ce)||!kr(nt)?this.thru(Mt):(gt=gt.slice(nt,+nt+(H?1:0)),gt.__actions__.push({func:Os,args:[Mt],thisArg:m}),new Ri(gt,this.__chain__).thru(function(Pt){return H&&!Pt.length&&Pt.push(m),Pt}))});function _w(){return Jp(this)}function Dw(){return new Ri(this.value(),this.__chain__)}function Iw(){this.__values__===m&&(this.__values__=pd(this.value()));var L=this.__index__>=this.__values__.length,H=L?m:this.__values__[this.__index__++];return{done:L,value:H}}function jw(){return this}function Nw(L){for(var H,nt=this;nt instanceof ms;){var gt=Xp(nt);gt.__index__=0,gt.__values__=m,H?Mt.__wrapped__=gt:H=gt;var Mt=gt;nt=nt.__wrapped__}return Mt.__wrapped__=L,H}function Bw(){var L=this.__wrapped__;if(L instanceof Ce){var H=L;return this.__actions__.length&&(H=new Ce(this)),H=H.reverse(),H.__actions__.push({func:Os,args:[Kl],thisArg:m}),new Ri(H,this.__chain__)}return this.thru(Kl)}function Rw(){return fp(this.__wrapped__,this.__actions__)}var zw=Ss(function(L,H,nt){_e.call(L,nt)?++L[nt]:Mr(L,nt,1)});function Fw(L,H,nt){var gt=ge(L)?ku:Ex;return nt&&fi(L,H,nt)&&(H=m),gt(L,se(H,3))}function Gw(L,H){var nt=ge(L)?jr:Ku;return nt(L,se(H,3))}var Ww=Ap(Yp),Hw=Ap($p);function Uw(L,H){return ni(_s(L,H),1)}function Xw(L,H){return ni(_s(L,H),E)}function Yw(L,H,nt){return nt=nt===m?1:ye(nt),ni(_s(L,H),nt)}function Qp(L,H){var nt=ge(L)?Ni:zr;return nt(L,se(H,3))}function td(L,H){var nt=ge(L)?ub:qu;return nt(L,se(H,3))}var $w=Ss(function(L,H,nt){_e.call(L,nt)?L[nt].push(H):Mr(L,nt,[H])});function Vw(L,H,nt,gt){L=xi(L)?L:In(L),nt=nt&&!gt?ye(nt):0;var Mt=L.length;return nt<0&&(nt=Ke(Mt+nt,0)),Bs(L)?nt<=Mt&&L.indexOf(H,nt)>-1:!!Mt&&Cn(L,H,nt)>-1}var Zw=be(function(L,H,nt){var gt=-1,Mt=typeof H=="function",Pt=xi(L)?Ft(L.length):[];return zr(L,function(Et){Pt[++gt]=Mt?Ti(H,Et,nt):uo(Et,H,nt)}),Pt}),qw=Ss(function(L,H,nt){Mr(L,nt,H)});function _s(L,H){var nt=ge(L)?ze:rp;return nt(L,se(H,3))}function Kw(L,H,nt,gt){return L==null?[]:(ge(H)||(H=H==null?[]:[H]),nt=gt?m:nt,ge(nt)||(nt=nt==null?[]:[nt]),ap(L,H,nt))}var Jw=Ss(function(L,H,nt){L[nt?0:1].push(H)},function(){return[[],[]]});function Qw(L,H,nt){var gt=ge(L)?cl:Ou,Mt=arguments.length<3;return gt(L,se(H,4),nt,Mt,zr)}function tC(L,H,nt){var gt=ge(L)?pb:Ou,Mt=arguments.length<3;return gt(L,se(H,4),nt,Mt,qu)}function eC(L,H){var nt=ge(L)?jr:Ku;return nt(L,js(se(H,3)))}function iC(L){var H=ge(L)?Yu:Vx;return H(L)}function rC(L,H,nt){(nt?fi(L,H,nt):H===m)?H=1:H=ye(H);var gt=ge(L)?Ax:Zx;return gt(L,H)}function nC(L){var H=ge(L)?Tx:Kx;return H(L)}function oC(L){if(L==null)return 0;if(xi(L))return Bs(L)?Mn(L):L.length;var H=hi(L);return H==C||H==Z?L.size:Ll(L).length}function sC(L,H,nt){var gt=ge(L)?ul:Jx;return nt&&fi(L,H,nt)&&(H=m),gt(L,se(H,3))}var aC=be(function(L,H){if(L==null)return[];var nt=H.length;return nt>1&&fi(L,H[0],H[1])?H=[]:nt>2&&fi(H[0],H[1],H[2])&&(H=[H[0]]),ap(L,ni(H,1),[])}),Ds=Gb||function(){return ri.Date.now()};function lC(L,H){if(typeof H!="function")throw new Bi(ot);return L=ye(L),function(){if(--L<1)return H.apply(this,arguments)}}function ed(L,H,nt){return H=nt?m:H,H=L&&H==null?L.length:H,Ar(L,O,m,m,m,m,H)}function id(L,H){var nt;if(typeof H!="function")throw new Bi(ot);return L=ye(L),function(){return--L>0&&(nt=H.apply(this,arguments)),L<=1&&(H=m),nt}}var Ql=be(function(L,H,nt){var gt=X;if(nt.length){var Mt=Br(nt,_n(Ql));gt|=W}return Ar(L,gt,H,nt,Mt)}),rd=be(function(L,H,nt){var gt=X|V;if(nt.length){var Mt=Br(nt,_n(rd));gt|=W}return Ar(H,gt,L,nt,Mt)});function nd(L,H,nt){H=nt?m:H;var gt=Ar(L,J,m,m,m,m,m,H);return gt.placeholder=nd.placeholder,gt}function od(L,H,nt){H=nt?m:H;var gt=Ar(L,q,m,m,m,m,m,H);return gt.placeholder=od.placeholder,gt}function sd(L,H,nt){var gt,Mt,Pt,Et,Dt,Bt,Yt=0,$t=!1,Vt=!1,ie=!0;if(typeof L!="function")throw new Bi(ot);H=Wi(H)||0,Fe(nt)&&($t=!!nt.leading,Vt="maxWait"in nt,Pt=Vt?Ke(Wi(nt.maxWait)||0,H):Pt,ie="trailing"in nt?!!nt.trailing:ie);function ne(Ye){var ir=gt,Er=Mt;return gt=Mt=m,Yt=Ye,Et=L.apply(Er,ir),Et}function ae(Ye){return Yt=Ye,Dt=yo(we,H),$t?ne(Ye):Et}function ve(Ye){var ir=Ye-Bt,Er=Ye-Yt,Ad=H-ir;return Vt?li(Ad,Pt-Er):Ad}function le(Ye){var ir=Ye-Bt,Er=Ye-Yt;return Bt===m||ir>=H||ir<0||Vt&&Er>=Pt}function we(){var Ye=Ds();if(le(Ye))return Se(Ye);Dt=yo(we,ve(Ye))}function Se(Ye){return Dt=m,ie&&gt?ne(Ye):(gt=Mt=m,Et)}function Ei(){Dt!==m&&mp(Dt),Yt=0,gt=Bt=Mt=Dt=m}function gi(){return Dt===m?Et:Se(Ds())}function Oi(){var Ye=Ds(),ir=le(Ye);if(gt=arguments,Mt=this,Bt=Ye,ir){if(Dt===m)return ae(Bt);if(Vt)return mp(Dt),Dt=yo(we,H),ne(Bt)}return Dt===m&&(Dt=yo(we,H)),Et}return Oi.cancel=Ei,Oi.flush=gi,Oi}var hC=be(function(L,H){return Zu(L,1,H)}),cC=be(function(L,H,nt){return Zu(L,Wi(H)||0,nt)});function uC(L){return Ar(L,T)}function Is(L,H){if(typeof L!="function"||H!=null&&typeof H!="function")throw new Bi(ot);var nt=function(){var gt=arguments,Mt=H?H.apply(this,gt):gt[0],Pt=nt.cache;if(Pt.has(Mt))return Pt.get(Mt);var Et=L.apply(this,gt);return nt.cache=Pt.set(Mt,Et)||Pt,Et};return nt.cache=new(Is.Cache||Sr),nt}Is.Cache=Sr;function js(L){if(typeof L!="function")throw new Bi(ot);return function(){var H=arguments;switch(H.length){case 0:return!L.call(this);case 1:return!L.call(this,H[0]);case 2:return!L.call(this,H[0],H[1]);case 3:return!L.call(this,H[0],H[1],H[2])}return!L.apply(this,H)}}function pC(L){return id(2,L)}var dC=Qx(function(L,H){H=H.length==1&&ge(H[0])?ze(H[0],ki(se())):ze(ni(H,1),ki(se()));var nt=H.length;return be(function(gt){for(var Mt=-1,Pt=li(gt.length,nt);++Mt<Pt;)gt[Mt]=H[Mt].call(this,gt[Mt]);return Ti(L,this,gt)})}),th=be(function(L,H){var nt=Br(H,_n(th));return Ar(L,W,m,H,nt)}),ad=be(function(L,H){var nt=Br(H,_n(ad));return Ar(L,D,m,H,nt)}),fC=Tr(function(L,H){return Ar(L,w,m,m,m,H)});function gC(L,H){if(typeof L!="function")throw new Bi(ot);return H=H===m?H:ye(H),be(L,H)}function mC(L,H){if(typeof L!="function")throw new Bi(ot);return H=H==null?0:Ke(ye(H),0),be(function(nt){var gt=nt[H],Mt=Wr(nt,0,H);return gt&&Nr(Mt,gt),Ti(L,this,Mt)})}function yC(L,H,nt){var gt=!0,Mt=!0;if(typeof L!="function")throw new Bi(ot);return Fe(nt)&&(gt="leading"in nt?!!nt.leading:gt,Mt="trailing"in nt?!!nt.trailing:Mt),sd(L,H,{leading:gt,maxWait:H,trailing:Mt})}function vC(L){return ed(L,1)}function bC(L,H){return th(Rl(H),L)}function xC(){if(!arguments.length)return[];var L=arguments[0];return ge(L)?L:[L]}function wC(L){return zi(L,st)}function CC(L,H){return H=typeof H=="function"?H:m,zi(L,st,H)}function SC(L){return zi(L,yt|st)}function MC(L,H){return H=typeof H=="function"?H:m,zi(L,yt|st,H)}function AC(L,H){return H==null||Vu(L,H,ei(H))}function er(L,H){return L===H||L!==L&&H!==H}var TC=ks(Tl),kC=ks(function(L,H){return L>=H}),cn=tp(function(){return arguments}())?tp:function(L){return He(L)&&_e.call(L,"callee")&&!Fu.call(L,"callee")},ge=Ft.isArray,PC=wu?ki(wu):Nx;function xi(L){return L!=null&&Ns(L.length)&&!Pr(L)}function Xe(L){return He(L)&&xi(L)}function LC(L){return L===!0||L===!1||He(L)&&di(L)==a}var Hr=Hb||uh,EC=Cu?ki(Cu):Bx;function OC(L){return He(L)&&L.nodeType===1&&!vo(L)}function _C(L){if(L==null)return!0;if(xi(L)&&(ge(L)||typeof L=="string"||typeof L.splice=="function"||Hr(L)||Dn(L)||cn(L)))return!L.length;var H=hi(L);if(H==C||H==Z)return!L.size;if(mo(L))return!Ll(L).length;for(var nt in L)if(_e.call(L,nt))return!1;return!0}function DC(L,H){return po(L,H)}function IC(L,H,nt){nt=typeof nt=="function"?nt:m;var gt=nt?nt(L,H):m;return gt===m?po(L,H,m,nt):!!gt}function eh(L){if(!He(L))return!1;var H=di(L);return H==A||H==y||typeof L.message=="string"&&typeof L.name=="string"&&!vo(L)}function jC(L){return typeof L=="number"&&Wu(L)}function Pr(L){if(!Fe(L))return!1;var H=di(L);return H==_||H==p||H==c||H==j}function ld(L){return typeof L=="number"&&L==ye(L)}function Ns(L){return typeof L=="number"&&L>-1&&L%1==0&&L<=M}function Fe(L){var H=typeof L;return L!=null&&(H=="object"||H=="function")}function He(L){return L!=null&&typeof L=="object"}var hd=Su?ki(Su):zx;function NC(L,H){return L===H||Pl(L,H,Xl(H))}function BC(L,H,nt){return nt=typeof nt=="function"?nt:m,Pl(L,H,Xl(H),nt)}function RC(L){return cd(L)&&L!=+L}function zC(L){if(C1(L))throw new de(tt);return ep(L)}function FC(L){return L===null}function GC(L){return L==null}function cd(L){return typeof L=="number"||He(L)&&di(L)==k}function vo(L){if(!He(L)||di(L)!=G)return!1;var H=hs(L);if(H===null)return!0;var nt=_e.call(H,"constructor")&&H.constructor;return typeof nt=="function"&&nt instanceof nt&&os.call(nt)==Bb}var ih=Mu?ki(Mu):Fx;function WC(L){return ld(L)&&L>=-M&&L<=M}var ud=Au?ki(Au):Gx;function Bs(L){return typeof L=="string"||!ge(L)&&He(L)&&di(L)==$}function Li(L){return typeof L=="symbol"||He(L)&&di(L)==Y}var Dn=Tu?ki(Tu):Wx;function HC(L){return L===m}function UC(L){return He(L)&&hi(L)==rt}function XC(L){return He(L)&&di(L)==it}var YC=ks(El),$C=ks(function(L,H){return L<=H});function pd(L){if(!L)return[];if(xi(L))return Bs(L)?Qi(L):bi(L);if(no&&L[no])return Ab(L[no]());var H=hi(L),nt=H==C?yl:H==Z?is:In;return nt(L)}function Lr(L){if(!L)return L===0?L:0;if(L=Wi(L),L===E||L===-E){var H=L<0?-1:1;return H*f}return L===L?L:0}function ye(L){var H=Lr(L),nt=H%1;return H===H?nt?H-nt:H:0}function dd(L){return L?sn(ye(L),0,l):0}function Wi(L){if(typeof L=="number")return L;if(Li(L))return x;if(Fe(L)){var H=typeof L.valueOf=="function"?L.valueOf():L;L=Fe(H)?H+"":H}if(typeof L!="string")return L===0?L:+L;L=_u(L);var nt=Ue.test(L);return nt||Te.test(L)?lb(L.slice(2),nt?2:8):Ve.test(L)?x:+L}function fd(L){return hr(L,wi(L))}function VC(L){return L?sn(ye(L),-M,M):L===0?L:0}function Ee(L){return L==null?"":Pi(L)}var ZC=En(function(L,H){if(mo(H)||xi(H)){hr(H,ei(H),L);return}for(var nt in H)_e.call(H,nt)&&ho(L,nt,H[nt])}),gd=En(function(L,H){hr(H,wi(H),L)}),Rs=En(function(L,H,nt,gt){hr(H,wi(H),L,gt)}),qC=En(function(L,H,nt,gt){hr(H,ei(H),L,gt)}),KC=Tr(Sl);function JC(L,H){var nt=Ln(L);return H==null?nt:$u(nt,H)}var QC=be(function(L,H){L=Ie(L);var nt=-1,gt=H.length,Mt=gt>2?H[2]:m;for(Mt&&fi(H[0],H[1],Mt)&&(gt=1);++nt<gt;)for(var Pt=H[nt],Et=wi(Pt),Dt=-1,Bt=Et.length;++Dt<Bt;){var Yt=Et[Dt],$t=L[Yt];($t===m||er($t,Tn[Yt])&&!_e.call(L,Yt))&&(L[Yt]=Pt[Yt])}return L}),tS=be(function(L){return L.push(m,_p),Ti(md,m,L)});function eS(L,H){return Pu(L,se(H,3),lr)}function iS(L,H){return Pu(L,se(H,3),Al)}function rS(L,H){return L==null?L:Ml(L,se(H,3),wi)}function nS(L,H){return L==null?L:Ju(L,se(H,3),wi)}function oS(L,H){return L&&lr(L,se(H,3))}function sS(L,H){return L&&Al(L,se(H,3))}function aS(L){return L==null?[]:bs(L,ei(L))}function lS(L){return L==null?[]:bs(L,wi(L))}function rh(L,H,nt){var gt=L==null?m:an(L,H);return gt===m?nt:gt}function hS(L,H){return L!=null&&jp(L,H,_x)}function nh(L,H){return L!=null&&jp(L,H,Dx)}var cS=kp(function(L,H,nt){H!=null&&typeof H.toString!="function"&&(H=ss.call(H)),L[H]=nt},sh(Ci)),uS=kp(function(L,H,nt){H!=null&&typeof H.toString!="function"&&(H=ss.call(H)),_e.call(L,H)?L[H].push(nt):L[H]=[nt]},se),pS=be(uo);function ei(L){return xi(L)?Xu(L):Ll(L)}function wi(L){return xi(L)?Xu(L,!0):Hx(L)}function dS(L,H){var nt={};return H=se(H,3),lr(L,function(gt,Mt,Pt){Mr(nt,H(gt,Mt,Pt),gt)}),nt}function fS(L,H){var nt={};return H=se(H,3),lr(L,function(gt,Mt,Pt){Mr(nt,Mt,H(gt,Mt,Pt))}),nt}var gS=En(function(L,H,nt){xs(L,H,nt)}),md=En(function(L,H,nt,gt){xs(L,H,nt,gt)}),mS=Tr(function(L,H){var nt={};if(L==null)return nt;var gt=!1;H=ze(H,function(Pt){return Pt=Gr(Pt,L),gt||(gt=Pt.length>1),Pt}),hr(L,Hl(L),nt),gt&&(nt=zi(nt,yt|B|st,c1));for(var Mt=H.length;Mt--;)jl(nt,H[Mt]);return nt});function yS(L,H){return yd(L,js(se(H)))}var vS=Tr(function(L,H){return L==null?{}:Xx(L,H)});function yd(L,H){if(L==null)return{};var nt=ze(Hl(L),function(gt){return[gt]});return H=se(H),lp(L,nt,function(gt,Mt){return H(gt,Mt[0])})}function bS(L,H,nt){H=Gr(H,L);var gt=-1,Mt=H.length;for(Mt||(Mt=1,L=m);++gt<Mt;){var Pt=L==null?m:L[cr(H[gt])];Pt===m&&(gt=Mt,Pt=nt),L=Pr(Pt)?Pt.call(L):Pt}return L}function xS(L,H,nt){return L==null?L:fo(L,H,nt)}function wS(L,H,nt,gt){return gt=typeof gt=="function"?gt:m,L==null?L:fo(L,H,nt,gt)}var vd=Ep(ei),bd=Ep(wi);function CS(L,H,nt){var gt=ge(L),Mt=gt||Hr(L)||Dn(L);if(H=se(H,4),nt==null){var Pt=L&&L.constructor;Mt?nt=gt?new Pt:[]:Fe(L)?nt=Pr(Pt)?Ln(hs(L)):{}:nt={}}return(Mt?Ni:lr)(L,function(Et,Dt,Bt){return H(nt,Et,Dt,Bt)}),nt}function SS(L,H){return L==null?!0:jl(L,H)}function MS(L,H,nt){return L==null?L:dp(L,H,Rl(nt))}function AS(L,H,nt,gt){return gt=typeof gt=="function"?gt:m,L==null?L:dp(L,H,Rl(nt),gt)}function In(L){return L==null?[]:ml(L,ei(L))}function TS(L){return L==null?[]:ml(L,wi(L))}function kS(L,H,nt){return nt===m&&(nt=H,H=m),nt!==m&&(nt=Wi(nt),nt=nt===nt?nt:0),H!==m&&(H=Wi(H),H=H===H?H:0),sn(Wi(L),H,nt)}function PS(L,H,nt){return H=Lr(H),nt===m?(nt=H,H=0):nt=Lr(nt),L=Wi(L),Ix(L,H,nt)}function LS(L,H,nt){if(nt&&typeof nt!="boolean"&&fi(L,H,nt)&&(H=nt=m),nt===m&&(typeof H=="boolean"?(nt=H,H=m):typeof L=="boolean"&&(nt=L,L=m)),L===m&&H===m?(L=0,H=1):(L=Lr(L),H===m?(H=L,L=0):H=Lr(H)),L>H){var gt=L;L=H,H=gt}if(nt||L%1||H%1){var Mt=Hu();return li(L+Mt*(H-L+ab("1e-"+((Mt+"").length-1))),H)}return _l(L,H)}var ES=On(function(L,H,nt){return H=H.toLowerCase(),L+(nt?xd(H):H)});function xd(L){return oh(Ee(L).toLowerCase())}function wd(L){return L=Ee(L),L&&L.replace(ti,xb).replace(Kv,"")}function OS(L,H,nt){L=Ee(L),H=Pi(H);var gt=L.length;nt=nt===m?gt:sn(ye(nt),0,gt);var Mt=nt;return nt-=H.length,nt>=0&&L.slice(nt,Mt)==H}function _S(L){return L=Ee(L),L&&zt.test(L)?L.replace(_t,wb):L}function DS(L){return L=Ee(L),L&&Qt.test(L)?L.replace(fe,"\\$&"):L}var IS=On(function(L,H,nt){return L+(nt?"-":"")+H.toLowerCase()}),jS=On(function(L,H,nt){return L+(nt?" ":"")+H.toLowerCase()}),NS=Mp("toLowerCase");function BS(L,H,nt){L=Ee(L),H=ye(H);var gt=H?Mn(L):0;if(!H||gt>=H)return L;var Mt=(H-gt)/2;return Ts(ds(Mt),nt)+L+Ts(ps(Mt),nt)}function RS(L,H,nt){L=Ee(L),H=ye(H);var gt=H?Mn(L):0;return H&&gt<H?L+Ts(H-gt,nt):L}function zS(L,H,nt){L=Ee(L),H=ye(H);var gt=H?Mn(L):0;return H&&gt<H?Ts(H-gt,nt)+L:L}function FS(L,H,nt){return nt||H==null?H=0:H&&(H=+H),$b(Ee(L).replace(oe,""),H||0)}function GS(L,H,nt){return(nt?fi(L,H,nt):H===m)?H=1:H=ye(H),Dl(Ee(L),H)}function WS(){var L=arguments,H=Ee(L[0]);return L.length<3?H:H.replace(L[1],L[2])}var HS=On(function(L,H,nt){return L+(nt?"_":"")+H.toLowerCase()});function US(L,H,nt){return nt&&typeof nt!="number"&&fi(L,H,nt)&&(H=nt=m),nt=nt===m?l:nt>>>0,nt?(L=Ee(L),L&&(typeof H=="string"||H!=null&&!ih(H))&&(H=Pi(H),!H&&Sn(L))?Wr(Qi(L),0,nt):L.split(H,nt)):[]}var XS=On(function(L,H,nt){return L+(nt?" ":"")+oh(H)});function YS(L,H,nt){return L=Ee(L),nt=nt==null?0:sn(ye(nt),0,L.length),H=Pi(H),L.slice(nt,nt+H.length)==H}function $S(L,H,nt){var gt=kt.templateSettings;nt&&fi(L,H,nt)&&(H=m),L=Ee(L),H=Rs({},H,gt,Op);var Mt=Rs({},H.imports,gt.imports,Op),Pt=ei(Mt),Et=ml(Mt,Pt),Dt,Bt,Yt=0,$t=H.interpolate||yi,Vt="__p += '",ie=vl((H.escape||yi).source+"|"+$t.source+"|"+($t===Xt?he:yi).source+"|"+(H.evaluate||yi).source+"|$","g"),ne="//# sourceURL="+(_e.call(H,"sourceURL")?(H.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ib+"]")+`
16
+ `;L.replace(ie,function(le,we,Se,Ei,gi,Oi){return Se||(Se=Ei),Vt+=L.slice(Yt,Oi).replace(xn,Cb),we&&(Dt=!0,Vt+=`' +
17
+ __e(`+we+`) +
18
+ '`),gi&&(Bt=!0,Vt+=`';
19
+ `+gi+`;
20
+ __p += '`),Se&&(Vt+=`' +
21
+ ((__t = (`+Se+`)) == null ? '' : __t) +
22
+ '`),Yt=Oi+le.length,le}),Vt+=`';
23
+ `;var ae=_e.call(H,"variable")&&H.variable;if(!ae)Vt=`with (obj) {
24
+ `+Vt+`
25
+ }
26
+ `;else if(Gt.test(ae))throw new de(lt);Vt=(Bt?Vt.replace(Tt,""):Vt).replace(At,"$1").replace(Lt,"$1;"),Vt="function("+(ae||"obj")+`) {
27
+ `+(ae?"":`obj || (obj = {});
28
+ `)+"var __t, __p = ''"+(Dt?", __e = _.escape":"")+(Bt?`, __j = Array.prototype.join;
29
+ function print() { __p += __j.call(arguments, '') }
30
+ `:`;
31
+ `)+Vt+`return __p
32
+ }`;var ve=Sd(function(){return Pe(Pt,ne+"return "+Vt).apply(m,Et)});if(ve.source=Vt,eh(ve))throw ve;return ve}function VS(L){return Ee(L).toLowerCase()}function ZS(L){return Ee(L).toUpperCase()}function qS(L,H,nt){if(L=Ee(L),L&&(nt||H===m))return _u(L);if(!L||!(H=Pi(H)))return L;var gt=Qi(L),Mt=Qi(H),Pt=Du(gt,Mt),Et=Iu(gt,Mt)+1;return Wr(gt,Pt,Et).join("")}function KS(L,H,nt){if(L=Ee(L),L&&(nt||H===m))return L.slice(0,Nu(L)+1);if(!L||!(H=Pi(H)))return L;var gt=Qi(L),Mt=Iu(gt,Qi(H))+1;return Wr(gt,0,Mt).join("")}function JS(L,H,nt){if(L=Ee(L),L&&(nt||H===m))return L.replace(oe,"");if(!L||!(H=Pi(H)))return L;var gt=Qi(L),Mt=Du(gt,Qi(H));return Wr(gt,Mt).join("")}function QS(L,H){var nt=d,gt=u;if(Fe(H)){var Mt="separator"in H?H.separator:Mt;nt="length"in H?ye(H.length):nt,gt="omission"in H?Pi(H.omission):gt}L=Ee(L);var Pt=L.length;if(Sn(L)){var Et=Qi(L);Pt=Et.length}if(nt>=Pt)return L;var Dt=nt-Mn(gt);if(Dt<1)return gt;var Bt=Et?Wr(Et,0,Dt).join(""):L.slice(0,Dt);if(Mt===m)return Bt+gt;if(Et&&(Dt+=Bt.length-Dt),ih(Mt)){if(L.slice(Dt).search(Mt)){var Yt,$t=Bt;for(Mt.global||(Mt=vl(Mt.source,Ee(pe.exec(Mt))+"g")),Mt.lastIndex=0;Yt=Mt.exec($t);)var Vt=Yt.index;Bt=Bt.slice(0,Vt===m?Dt:Vt)}}else if(L.indexOf(Pi(Mt),Dt)!=Dt){var ie=Bt.lastIndexOf(Mt);ie>-1&&(Bt=Bt.slice(0,ie))}return Bt+gt}function tM(L){return L=Ee(L),L&&It.test(L)?L.replace(Ot,Lb):L}var eM=On(function(L,H,nt){return L+(nt?" ":"")+H.toUpperCase()}),oh=Mp("toUpperCase");function Cd(L,H,nt){return L=Ee(L),H=nt?m:H,H===m?Mb(L)?_b(L):gb(L):L.match(H)||[]}var Sd=be(function(L,H){try{return Ti(L,m,H)}catch(nt){return eh(nt)?nt:new de(nt)}}),iM=Tr(function(L,H){return Ni(H,function(nt){nt=cr(nt),Mr(L,nt,Ql(L[nt],L))}),L});function rM(L){var H=L==null?0:L.length,nt=se();return L=H?ze(L,function(gt){if(typeof gt[1]!="function")throw new Bi(ot);return[nt(gt[0]),gt[1]]}):[],be(function(gt){for(var Mt=-1;++Mt<H;){var Pt=L[Mt];if(Ti(Pt[0],this,gt))return Ti(Pt[1],this,gt)}})}function nM(L){return Lx(zi(L,yt))}function sh(L){return function(){return L}}function oM(L,H){return L==null||L!==L?H:L}var sM=Tp(),aM=Tp(!0);function Ci(L){return L}function ah(L){return ip(typeof L=="function"?L:zi(L,yt))}function lM(L){return np(zi(L,yt))}function hM(L,H){return op(L,zi(H,yt))}var cM=be(function(L,H){return function(nt){return uo(nt,L,H)}}),uM=be(function(L,H){return function(nt){return uo(L,nt,H)}});function lh(L,H,nt){var gt=ei(H),Mt=bs(H,gt);nt==null&&!(Fe(H)&&(Mt.length||!gt.length))&&(nt=H,H=L,L=this,Mt=bs(H,ei(H)));var Pt=!(Fe(nt)&&"chain"in nt)||!!nt.chain,Et=Pr(L);return Ni(Mt,function(Dt){var Bt=H[Dt];L[Dt]=Bt,Et&&(L.prototype[Dt]=function(){var Yt=this.__chain__;if(Pt||Yt){var $t=L(this.__wrapped__),Vt=$t.__actions__=bi(this.__actions__);return Vt.push({func:Bt,args:arguments,thisArg:L}),$t.__chain__=Yt,$t}return Bt.apply(L,Nr([this.value()],arguments))})}),L}function pM(){return ri._===this&&(ri._=Rb),this}function hh(){}function dM(L){return L=ye(L),be(function(H){return sp(H,L)})}var fM=Fl(ze),gM=Fl(ku),mM=Fl(ul);function Md(L){return $l(L)?pl(cr(L)):Yx(L)}function yM(L){return function(H){return L==null?m:an(L,H)}}var vM=Pp(),bM=Pp(!0);function ch(){return[]}function uh(){return!1}function xM(){return{}}function wM(){return""}function CM(){return!0}function SM(L,H){if(L=ye(L),L<1||L>M)return[];var nt=l,gt=li(L,l);H=se(H),L-=l;for(var Mt=gl(gt,H);++nt<L;)H(nt);return Mt}function MM(L){return ge(L)?ze(L,cr):Li(L)?[L]:bi(Up(Ee(L)))}function AM(L){var H=++Nb;return Ee(L)+H}var TM=As(function(L,H){return L+H},0),kM=Gl("ceil"),PM=As(function(L,H){return L/H},1),LM=Gl("floor");function EM(L){return L&&L.length?vs(L,Ci,Tl):m}function OM(L,H){return L&&L.length?vs(L,se(H,2),Tl):m}function _M(L){return Eu(L,Ci)}function DM(L,H){return Eu(L,se(H,2))}function IM(L){return L&&L.length?vs(L,Ci,El):m}function jM(L,H){return L&&L.length?vs(L,se(H,2),El):m}var NM=As(function(L,H){return L*H},1),BM=Gl("round"),RM=As(function(L,H){return L-H},0);function zM(L){return L&&L.length?fl(L,Ci):0}function FM(L,H){return L&&L.length?fl(L,se(H,2)):0}return kt.after=lC,kt.ary=ed,kt.assign=ZC,kt.assignIn=gd,kt.assignInWith=Rs,kt.assignWith=qC,kt.at=KC,kt.before=id,kt.bind=Ql,kt.bindAll=iM,kt.bindKey=rd,kt.castArray=xC,kt.chain=Jp,kt.chunk=L1,kt.compact=E1,kt.concat=O1,kt.cond=rM,kt.conforms=nM,kt.constant=sh,kt.countBy=zw,kt.create=JC,kt.curry=nd,kt.curryRight=od,kt.debounce=sd,kt.defaults=QC,kt.defaultsDeep=tS,kt.defer=hC,kt.delay=cC,kt.difference=_1,kt.differenceBy=D1,kt.differenceWith=I1,kt.drop=j1,kt.dropRight=N1,kt.dropRightWhile=B1,kt.dropWhile=R1,kt.fill=z1,kt.filter=Gw,kt.flatMap=Uw,kt.flatMapDeep=Xw,kt.flatMapDepth=Yw,kt.flatten=Vp,kt.flattenDeep=F1,kt.flattenDepth=G1,kt.flip=uC,kt.flow=sM,kt.flowRight=aM,kt.fromPairs=W1,kt.functions=aS,kt.functionsIn=lS,kt.groupBy=$w,kt.initial=U1,kt.intersection=X1,kt.intersectionBy=Y1,kt.intersectionWith=$1,kt.invert=cS,kt.invertBy=uS,kt.invokeMap=Zw,kt.iteratee=ah,kt.keyBy=qw,kt.keys=ei,kt.keysIn=wi,kt.map=_s,kt.mapKeys=dS,kt.mapValues=fS,kt.matches=lM,kt.matchesProperty=hM,kt.memoize=Is,kt.merge=gS,kt.mergeWith=md,kt.method=cM,kt.methodOf=uM,kt.mixin=lh,kt.negate=js,kt.nthArg=dM,kt.omit=mS,kt.omitBy=yS,kt.once=pC,kt.orderBy=Kw,kt.over=fM,kt.overArgs=dC,kt.overEvery=gM,kt.overSome=mM,kt.partial=th,kt.partialRight=ad,kt.partition=Jw,kt.pick=vS,kt.pickBy=yd,kt.property=Md,kt.propertyOf=yM,kt.pull=K1,kt.pullAll=qp,kt.pullAllBy=J1,kt.pullAllWith=Q1,kt.pullAt=tw,kt.range=vM,kt.rangeRight=bM,kt.rearg=fC,kt.reject=eC,kt.remove=ew,kt.rest=gC,kt.reverse=Kl,kt.sampleSize=rC,kt.set=xS,kt.setWith=wS,kt.shuffle=nC,kt.slice=iw,kt.sortBy=aC,kt.sortedUniq=hw,kt.sortedUniqBy=cw,kt.split=US,kt.spread=mC,kt.tail=uw,kt.take=pw,kt.takeRight=dw,kt.takeRightWhile=fw,kt.takeWhile=gw,kt.tap=Ew,kt.throttle=yC,kt.thru=Os,kt.toArray=pd,kt.toPairs=vd,kt.toPairsIn=bd,kt.toPath=MM,kt.toPlainObject=fd,kt.transform=CS,kt.unary=vC,kt.union=mw,kt.unionBy=yw,kt.unionWith=vw,kt.uniq=bw,kt.uniqBy=xw,kt.uniqWith=ww,kt.unset=SS,kt.unzip=Jl,kt.unzipWith=Kp,kt.update=MS,kt.updateWith=AS,kt.values=In,kt.valuesIn=TS,kt.without=Cw,kt.words=Cd,kt.wrap=bC,kt.xor=Sw,kt.xorBy=Mw,kt.xorWith=Aw,kt.zip=Tw,kt.zipObject=kw,kt.zipObjectDeep=Pw,kt.zipWith=Lw,kt.entries=vd,kt.entriesIn=bd,kt.extend=gd,kt.extendWith=Rs,lh(kt,kt),kt.add=TM,kt.attempt=Sd,kt.camelCase=ES,kt.capitalize=xd,kt.ceil=kM,kt.clamp=kS,kt.clone=wC,kt.cloneDeep=SC,kt.cloneDeepWith=MC,kt.cloneWith=CC,kt.conformsTo=AC,kt.deburr=wd,kt.defaultTo=oM,kt.divide=PM,kt.endsWith=OS,kt.eq=er,kt.escape=_S,kt.escapeRegExp=DS,kt.every=Fw,kt.find=Ww,kt.findIndex=Yp,kt.findKey=eS,kt.findLast=Hw,kt.findLastIndex=$p,kt.findLastKey=iS,kt.floor=LM,kt.forEach=Qp,kt.forEachRight=td,kt.forIn=rS,kt.forInRight=nS,kt.forOwn=oS,kt.forOwnRight=sS,kt.get=rh,kt.gt=TC,kt.gte=kC,kt.has=hS,kt.hasIn=nh,kt.head=Zp,kt.identity=Ci,kt.includes=Vw,kt.indexOf=H1,kt.inRange=PS,kt.invoke=pS,kt.isArguments=cn,kt.isArray=ge,kt.isArrayBuffer=PC,kt.isArrayLike=xi,kt.isArrayLikeObject=Xe,kt.isBoolean=LC,kt.isBuffer=Hr,kt.isDate=EC,kt.isElement=OC,kt.isEmpty=_C,kt.isEqual=DC,kt.isEqualWith=IC,kt.isError=eh,kt.isFinite=jC,kt.isFunction=Pr,kt.isInteger=ld,kt.isLength=Ns,kt.isMap=hd,kt.isMatch=NC,kt.isMatchWith=BC,kt.isNaN=RC,kt.isNative=zC,kt.isNil=GC,kt.isNull=FC,kt.isNumber=cd,kt.isObject=Fe,kt.isObjectLike=He,kt.isPlainObject=vo,kt.isRegExp=ih,kt.isSafeInteger=WC,kt.isSet=ud,kt.isString=Bs,kt.isSymbol=Li,kt.isTypedArray=Dn,kt.isUndefined=HC,kt.isWeakMap=UC,kt.isWeakSet=XC,kt.join=V1,kt.kebabCase=IS,kt.last=Gi,kt.lastIndexOf=Z1,kt.lowerCase=jS,kt.lowerFirst=NS,kt.lt=YC,kt.lte=$C,kt.max=EM,kt.maxBy=OM,kt.mean=_M,kt.meanBy=DM,kt.min=IM,kt.minBy=jM,kt.stubArray=ch,kt.stubFalse=uh,kt.stubObject=xM,kt.stubString=wM,kt.stubTrue=CM,kt.multiply=NM,kt.nth=q1,kt.noConflict=pM,kt.noop=hh,kt.now=Ds,kt.pad=BS,kt.padEnd=RS,kt.padStart=zS,kt.parseInt=FS,kt.random=LS,kt.reduce=Qw,kt.reduceRight=tC,kt.repeat=GS,kt.replace=WS,kt.result=bS,kt.round=BM,kt.runInContext=Nt,kt.sample=iC,kt.size=oC,kt.snakeCase=HS,kt.some=sC,kt.sortedIndex=rw,kt.sortedIndexBy=nw,kt.sortedIndexOf=ow,kt.sortedLastIndex=sw,kt.sortedLastIndexBy=aw,kt.sortedLastIndexOf=lw,kt.startCase=XS,kt.startsWith=YS,kt.subtract=RM,kt.sum=zM,kt.sumBy=FM,kt.template=$S,kt.times=SM,kt.toFinite=Lr,kt.toInteger=ye,kt.toLength=dd,kt.toLower=VS,kt.toNumber=Wi,kt.toSafeInteger=VC,kt.toString=Ee,kt.toUpper=ZS,kt.trim=qS,kt.trimEnd=KS,kt.trimStart=JS,kt.truncate=QS,kt.unescape=tM,kt.uniqueId=AM,kt.upperCase=eM,kt.upperFirst=oh,kt.each=Qp,kt.eachRight=td,kt.first=Zp,lh(kt,function(){var L={};return lr(kt,function(H,nt){_e.call(kt.prototype,nt)||(L[nt]=H)}),L}(),{chain:!1}),kt.VERSION=R,Ni(["bind","bindKey","curry","curryRight","partial","partialRight"],function(L){kt[L].placeholder=kt}),Ni(["drop","take"],function(L,H){Ce.prototype[L]=function(nt){nt=nt===m?1:Ke(ye(nt),0);var gt=this.__filtered__&&!H?new Ce(this):this.clone();return gt.__filtered__?gt.__takeCount__=li(nt,gt.__takeCount__):gt.__views__.push({size:li(nt,l),type:L+(gt.__dir__<0?"Right":"")}),gt},Ce.prototype[L+"Right"]=function(nt){return this.reverse()[L](nt).reverse()}}),Ni(["filter","map","takeWhile"],function(L,H){var nt=H+1,gt=nt==v||nt==P;Ce.prototype[L]=function(Mt){var Pt=this.clone();return Pt.__iteratees__.push({iteratee:se(Mt,3),type:nt}),Pt.__filtered__=Pt.__filtered__||gt,Pt}}),Ni(["head","last"],function(L,H){var nt="take"+(H?"Right":"");Ce.prototype[L]=function(){return this[nt](1).value()[0]}}),Ni(["initial","tail"],function(L,H){var nt="drop"+(H?"":"Right");Ce.prototype[L]=function(){return this.__filtered__?new Ce(this):this[nt](1)}}),Ce.prototype.compact=function(){return this.filter(Ci)},Ce.prototype.find=function(L){return this.filter(L).head()},Ce.prototype.findLast=function(L){return this.reverse().find(L)},Ce.prototype.invokeMap=be(function(L,H){return typeof L=="function"?new Ce(this):this.map(function(nt){return uo(nt,L,H)})}),Ce.prototype.reject=function(L){return this.filter(js(se(L)))},Ce.prototype.slice=function(L,H){L=ye(L);var nt=this;return nt.__filtered__&&(L>0||H<0)?new Ce(nt):(L<0?nt=nt.takeRight(-L):L&&(nt=nt.drop(L)),H!==m&&(H=ye(H),nt=H<0?nt.dropRight(-H):nt.take(H-L)),nt)},Ce.prototype.takeRightWhile=function(L){return this.reverse().takeWhile(L).reverse()},Ce.prototype.toArray=function(){return this.take(l)},lr(Ce.prototype,function(L,H){var nt=/^(?:filter|find|map|reject)|While$/.test(H),gt=/^(?:head|last)$/.test(H),Mt=kt[gt?"take"+(H=="last"?"Right":""):H],Pt=gt||/^find/.test(H);Mt&&(kt.prototype[H]=function(){var Et=this.__wrapped__,Dt=gt?[1]:arguments,Bt=Et instanceof Ce,Yt=Dt[0],$t=Bt||ge(Et),Vt=function(we){var Se=Mt.apply(kt,Nr([we],Dt));return gt&&ie?Se[0]:Se};$t&&nt&&typeof Yt=="function"&&Yt.length!=1&&(Bt=$t=!1);var ie=this.__chain__,ne=!!this.__actions__.length,ae=Pt&&!ie,ve=Bt&&!ne;if(!Pt&&$t){Et=ve?Et:new Ce(this);var le=L.apply(Et,Dt);return le.__actions__.push({func:Os,args:[Vt],thisArg:m}),new Ri(le,ie)}return ae&&ve?L.apply(this,Dt):(le=this.thru(Vt),ae?gt?le.value()[0]:le.value():le)})}),Ni(["pop","push","shift","sort","splice","unshift"],function(L){var H=rs[L],nt=/^(?:push|sort|unshift)$/.test(L)?"tap":"thru",gt=/^(?:pop|shift)$/.test(L);kt.prototype[L]=function(){var Mt=arguments;if(gt&&!this.__chain__){var Pt=this.value();return H.apply(ge(Pt)?Pt:[],Mt)}return this[nt](function(Et){return H.apply(ge(Et)?Et:[],Mt)})}}),lr(Ce.prototype,function(L,H){var nt=kt[H];if(nt){var gt=nt.name+"";_e.call(Pn,gt)||(Pn[gt]=[]),Pn[gt].push({name:H,func:nt})}}),Pn[Ms(m,V).name]=[{name:"wrapper",func:m}],Ce.prototype.clone=tx,Ce.prototype.reverse=ex,Ce.prototype.value=ix,kt.prototype.at=Ow,kt.prototype.chain=_w,kt.prototype.commit=Dw,kt.prototype.next=Iw,kt.prototype.plant=Nw,kt.prototype.reverse=Bw,kt.prototype.toJSON=kt.prototype.valueOf=kt.prototype.value=Rw,kt.prototype.first=kt.prototype.head,no&&(kt.prototype[no]=jw),kt},An=Db();en?((en.exports=An)._=An,al._=An):ri._=An}).call(Si)})(qh,qh.exports);var Q0=qh.exports;function tv(t){return t instanceof yy}const Uz=t=>{const o=Xz(t);return o.disabled=!t.disabled,o},Xz=t=>{const o=Q0.cloneDeep(t);return Object.setPrototypeOf(o,t),o};function Yz(t,o,m){return Wo(t,[],!1,m,void 0,o)}function $z(t){if(!Vz(t))throw new Error("Filter is not a MembersFilter");const{attribute:o,guid:m,backgroundFilter:R}=t;return Yz(o,R,m)}function Vz(t){return t instanceof kc}function Zz(t){return"members"in t&&t.members.length===0}function qz(t,o){return ev(t.attribute,o.attribute)}function ev(t,o){return t.expression===(o==null?void 0:o.expression)&&t.granularity===o.granularity}function Kz(t){return{"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"}[t]}function Jz(t){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"}[t]}function Qz(t){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"].includes(t)}function tF(t){return t==="tablewidget"||t==="tablewidgetagg"}function iv(t){return t==="pivot"||t==="pivot2"}function eF(t){return!iv(t)}function iF(t,o){var Q;const m=t.find(tt=>tt.name===o);return((Q=m==null?void 0:m.items)!=null?Q:[]).filter(tt=>!tt.disabled)}function rv(t){return t.parent?rv(t.parent):t}function nv(t){switch(t){case Ao.ASC:return"sortAsc";case Ao.DESC:return"sortDesc";default:return"sortNone"}}function Aa(t){if(tv(t))return t.filters.map(Aa).join("-");const{attribute:o}=t,m=t.jaql().jaql,R=o.expression||m.dim,Q=o.granularity||((m==null?void 0:m.datatype)==="datetime"?or.translateJaqlToGranularity(m):"");return`${R}${Q}`}function la(t=[],o=[]){const m=[...t];return o.forEach(R=>{const Q=m.findIndex(ot=>Aa(R)===Aa(ot));Q!==-1?m[Q]=R:m.push(R)}),m}function rF(t=[],o=[],m){switch(m){case aa.WIDGET_FIRST:return la(o,t);case aa.CODE_FIRST:return la(t,o);case aa.CODE_ONLY:return o;default:return la(t,o)}}function nF(t,o){if(!o)return t;const m=Go(o);function R(Q){if("instanceid"in Q){const tt=t.find(ot=>ot.guid===Q.instanceid);if(!tt)throw new _c("errors.unknownFilterInFilterRelations");return tt}if("operator"in Q){const tt={operator:Q.operator};return"left"in Q&&(tt.left=R(Q.left)),"right"in Q&&(tt.right=R(Q.right)),tt}return Q}return R(m)}function oF(t){if(!t)return t;const o=Go(t);function m(R){if("instanceId"in R)return{instanceid:R.instanceId};if("value"in R)return m(R.value);if("operator"in R){const Q={operator:R.operator};return"left"in R&&(Q.left=m(R.left)),"right"in R&&(Q.right=m(R.right)),Q}return R}return m(o)}const sF=t=>t?Ho(t)||t.type&&ui(t.type):!1,mi=(t,o,m)=>{if(!t||o===void 0||isNaN(o))return m;const R=$e(t.numberFormatConfig);return Hn(R,o)},Do=(t,o,m)=>sF(t)?mi(t,parseFloat(`${o}`),m):m,aF=["auto","column","area","areaspline","bar","scatter","arearange"];function ov(t){return t!=null&&t.chartType?aF.includes(t.chartType):!0}const oi=(t,o)=>t!==""?`<span style="color:${o!=null?o:"currentColor"}; font-size: 15px; line-height: 18px">${t}</span>`:"",So=(t,o)=>`${o||""}${o&&t?"<br />":""}${t||""}`,gn=t=>`<div style="minWidth: 100px; color: #5B6372; fontSize: 13px; lineHeight: 18px; margin: 4px 6px">
33
+ ${t}
34
+ </div>`,Vr=()=>'<hr class="csdk-border-t" style="margin: 7px 0px" />',lF=t=>{const o=t.map((m,R)=>m&&R>0?Vr()+m:m).join("");return gn(o)},hF=(t,o)=>{const{maskedX:m,maskedY:R,maskedBreakByPoint:Q,maskedSize:tt,maskedBreakByColor:ot}=t.point.custom,lt=Do(o.x,t.point.x,m),ct=mi(o.y,t.point.y,R),ut=mi(o.size,t.point.z,tt||""),ft=oi(lt,t.point.color),yt=oi(ct,t.point.color),B=oi(Q||"",t.point.color),st=oi(ot||"",t.point.color),U=oi(ut,t.point.color);return{x:ft,y:yt,breakByPoint:B,breakByColor:st,size:U}},cF=(t,o)=>{const m=So(t.x,o.x&&pr(o.x)),R=So(t.y,o.y&&pr(o.y)),Q=So(t.breakByPoint,o.breakByPoint&&pr(o.breakByPoint)),tt=So(t.breakByColor,o.breakByColor&&pr(o.breakByColor)),ot=So(t.size,o.size&&pr(o.size));return{x:m,y:R,breakByPoint:Q,breakByColor:tt,size:ot}},uF=(t,o)=>{const m=hF(t,o),{x:R,y:Q,breakByPoint:tt,breakByColor:ot,size:lt}=cF(m,o);return lF([R,Q,tt,ot,lt])},pF=t=>({enabled:!0,useHTML:!0,formatter(){return uF(this,t)}});var dF=function(o){return fF(o)&&!gF(o)};function fF(t){return!!t&&typeof t=="object"}function gF(t){var o=Object.prototype.toString.call(t);return o==="[object RegExp]"||o==="[object Date]"||vF(t)}var mF=typeof Symbol=="function"&&Symbol.for,yF=mF?Symbol.for("react.element"):60103;function vF(t){return t.$$typeof===yF}function bF(t){return Array.isArray(t)?[]:{}}function Io(t,o){return o.clone!==!1&&o.isMergeableObject(t)?Un(bF(t),t,o):t}function xF(t,o,m){return t.concat(o).map(function(R){return Io(R,m)})}function wF(t,o){if(!o.customMerge)return Un;var m=o.customMerge(t);return typeof m=="function"?m:Un}function CF(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(o){return Object.propertyIsEnumerable.call(t,o)}):[]}function Cg(t){return Object.keys(t).concat(CF(t))}function sv(t,o){try{return o in t}catch(m){return!1}}function SF(t,o){return sv(t,o)&&!(Object.hasOwnProperty.call(t,o)&&Object.propertyIsEnumerable.call(t,o))}function MF(t,o,m){var R={};return m.isMergeableObject(t)&&Cg(t).forEach(function(Q){R[Q]=Io(t[Q],m)}),Cg(o).forEach(function(Q){SF(t,Q)||(sv(t,Q)&&m.isMergeableObject(o[Q])?R[Q]=wF(Q,m)(t[Q],o[Q],m):R[Q]=Io(o[Q],m))}),R}function Un(t,o,m){m=m||{},m.arrayMerge=m.arrayMerge||xF,m.isMergeableObject=m.isMergeableObject||dF,m.cloneUnlessOtherwiseSpecified=Io;var R=Array.isArray(o),Q=Array.isArray(t),tt=R===Q;return tt?R?m.arrayMerge(t,o,m):MF(t,o,m):Io(o,m)}Un.all=function(o,m){if(!Array.isArray(o))throw new Error("first argument should be an array");return o.reduce(function(R,Q){return Un(R,Q,m)},{})};var AF=Un,TF=AF;const Ui=Mi(TF),kF={cursor:"default",fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#5b6372",textOutline:"none",pointerEvents:"auto"},mn=t=>{const o={symbolRadius:0,backgroundColor:"transparent",borderColor:"transparent",borderWidth:0,itemStyle:kF};if(!t)return{enabled:!1,align:"center",verticalAlign:"bottom",layout:"horizontal"};switch(t){case"bottom":return jt({enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"},o);case"left":return jt({enabled:!0,align:"left",verticalAlign:"middle",layout:"vertical"},o);case"right":return jt({enabled:!0,align:"right",verticalAlign:"middle",layout:"vertical"},o);case"top":return jt({enabled:!0,align:"center",verticalAlign:"top",layout:"horizontal"},o);default:return jt({enabled:!0,align:"center",verticalAlign:"bottom",layout:"horizontal"},o)}},av={enabled:!0,types:{count:!1,relative:!0,totals:!0}},PF=t=>function(){return this.y===void 0||isNaN(this.y)?"":si($e(t),this.y)},Vc=t=>{const o=Math.abs(t)%180;return o<20?"horizontal":o<60?"diagonal":o<120?"vertical":o<160?"diagonal":"horizontal"},LF=(t,o,m)=>{var tt;if(!o.enabled)return{enabled:!1};const R=Zt(jt({},av),{align:"center",verticalAlign:"middle",rotation:(tt=o.rotation)!=null?tt:0});if(m)return R;const Q=Vc(R.rotation);if(t==="vertical")return Zt(jt({},R),{align:Q==="horizontal"?"left":"center"});switch(Q){case"horizontal":return Zt(jt({},R),{verticalAlign:"bottom",padding:5});case"diagonal":return Zt(jt({},R),{align:"left",y:-10,x:-2});case"vertical":return Zt(jt({},R),{align:"left",y:-10})}},EF=(t,o)=>{var R;if(!t)return{enabled:!1};const m=(R=t.rotation)!=null?R:0;return Zt(jt({},av),{verticalAlign:o==="line"?"bottom":"middle",rotation:m,align:Vc(m)==="vertical"?"left":"center",padding:5})},Sg=t=>Zt(jt({enabled:t.enabled,radius:!t.enabled||t.size==="small"?4:7,fillColor:!t.enabled||t.fill==="full"?null:Zr,lineColor:null,lineWidth:2,symbol:"circle",fillOpacity:.3},!t.enabled&&{symbol:"circle"}),{states:{hover:{fillColor:Zr,radius:t.size==="small"?6:9,lineWidth:3}}}),ci="#d1d1d7",lv=25,hv=[-10,-20,-30,-40,-50,-60,-70,-80,-90],ai={fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#5b6372",textOutline:"none",pointerEvents:"none"},OF={color:"#56535b",fontFamily:"Open Sans",fontSize:"13px",textOverflow:"ellipsis",pointerEvents:"none",textOutline:"none",fontWeight:"bold"},Kh={labels:{overflow:"none",enabled:!0,autoRotation:hv,style:ai},tickmarkPlacement:"on",title:{text:"",enabled:!1,margin:lv,style:ai},gridLineDashStyle:"Dot",minorGridLineWidth:0,startOnTick:!1,endOnTick:!1,lineColor:ci,lineWidth:1,tickColor:ci,minorTickColor:ci,gridLineColor:ci,minorGridLineColor:ci},Mg={labels:{autoRotation:hv,style:ai},tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,title:{text:"",margin:lv,enabled:!1,style:ai},gridLineWidth:1,minorTickWidth:0,tickWidth:0,minorGridLineWidth:0,gridLineDashStyle:"Dot",lineColor:ci,lineWidth:1,tickColor:ci,minorTickColor:ci,gridLineColor:ci,minorGridLineColor:ci,minorGridLineDashStyle:"Dot",stackLabels:{style:OF,crop:!0,allowOverlap:!1,enabled:!1,rotation:0,labelrank:99999},showLastLabel:!0},_F=(t,o,m)=>{switch(t){case"line":return un;case"area":return Ui(un,Ag(m));case"bar":return Ui(un,IF(m));case"column":return Ui(un,DF(m));case"polar":return Ui(un,jF(o));case"arearange":return Ui(un,Ag(m));default:return un}},un={chart:{type:"line",spacing:[],alignTicks:!1,polar:!1},legend:mn(null),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:Zt(jt({},ai),{textOutline:"none"})},stickyTracking:!1,states:{select:{color:null,opacity:.3,borderColor:"transparent"}}}},xAxis:[],yAxis:[],series:[],boost:{useGPUTranslations:!0,usePreAllocated:!0}},Ag=t=>({plotOptions:{area:jt({},t&&{lineColor:"#ffffff"}),series:jt({},t&&{stacking:t})}}),DF=t=>({plotOptions:{column:jt({groupPadding:.1,pointPadding:.01},t&&{borderWidth:0}),series:jt({},t&&{stacking:t})}}),IF=t=>({plotOptions:{bar:jt({groupPadding:.1,pointPadding:.01},t&&{borderWidth:0}),series:jt({},t&&{stacking:t})}});function jF(t){return{plotOptions:{series:Zt(jt({},t!=="line"&&{stacking:"normal"}),{fillOpacity:1})}}}const cv=t=>t.compareValues?t.compareValues[0]:NaN,NF=t=>{switch(t){case Jt.Years:return 31536e6;case Jt.Quarters:return 7884e6;case Jt.Months:return 2592e6;case Jt.Weeks:return 6048e5;case Jt.Days:return 864e5;case Jt.AggHours:case Jt.Hours:return 36e5;case Jt.AggMinutesRoundTo30:case Jt.MinutesRoundTo30:return 18e5;case Jt.AggMinutesRoundTo15:case Jt.MinutesRoundTo15:return 9e5;case Jt.AggMinutesRoundTo1:return 6e4}return console.warn("Unsupported level"),0},Zc=t=>{if(t!==void 0){switch(t){case Jt.Years:return"yyyy";case Jt.Quarters:return"yyyy Q";case Jt.Months:return"MM/yyyy";case Jt.Weeks:return"ww yyyy";case Jt.Days:return"M/d/yy";case Jt.AggHours:return"HH";case Jt.Hours:return"M/d/yy HH";case Jt.AggMinutesRoundTo30:return"HH:mm";case Jt.MinutesRoundTo30:return"HH:mm";case Jt.AggMinutesRoundTo15:return"HH:mm";case Jt.MinutesRoundTo15:return"HH:mm";case Jt.AggMinutesRoundTo1:return"HH:mm";case Jt.Minutes:return"HH:mm";case Jt.Seconds:return"HH:mm:ss"}return console.warn("Unsupported level"),"M/d/yy HH"}},BF=(t,o)=>{const m=(t==null?void 0:t.dateFormat)||Zc(t==null?void 0:t.granularity);return!o||!m?R=>`${R}`:function(R){return o(new Date(R),m)}},RF=(t,o,m,R)=>{const Q=(yt,B)=>yt.lastValue?{minInterval:Math.min(B-yt.lastValue,yt.minInterval),lastValue:B}:Zt(jt({},yt),{lastValue:B}),tt=m[0],ot=m[m.length-1];let lt=o.granularity?NF(o.granularity):m.reduce(Q,{minInterval:(ot-tt)/(m.length-1),lastValue:void 0}).minInterval;if(lt<30*864e5&&lt>25*864e5&&(lt=2592e6),m.length>1&&(isNaN(lt)||lt===0))throw new Error("Unable to calculate tic interval. Try specifying datetime granularity.");let ct;const ut=(o==null?void 0:o.dateFormat)||Zc(o==null?void 0:o.granularity);R&&ut&&(ct=function(){const yt=this;return R(new Date(yt.value),ut)});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[Ui(Kh,{type:"datetime",title:{enabled:t.enabled&&t.titleEnabled,text:t.title},dateTimeLabelFormats:ft,gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:ci,tickWidth:0,lineColor:ci,lineWidth:1,labels:Zt(jt({},ct&&{formatter:ct}),{overflow:"none",enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:ai}),min:tt,max:ot,tickInterval:lt,minTickInterval:lt,tickmarkPlacement:"on",startOnTick:!0,endOnTick:!0,startOfWeek:4,showFirstLabel:!0,showLastLabel:!0,minRange:lt,isDate:!0})]},zF=(t,o,m,R,Q,tt,ot)=>{const lt=(R||[]).map(st=>({isPlotBand:!0,from:st.from,to:st.to,label:jt({text:st.text,y:-5,style:Zt(jt({},ai),{width:"70px",textOverflow:"ellipsis"})},Q==="vertical"&&{align:"right",x:5,textAlign:"left",y:0})})),ct=(R||[]).filter(st=>st.from>0).map(st=>({color:"#C0D0E0",dashStyle:"shortDot",width:1,value:st.from})),ut=tt,ft=ut.x[ut.x.length-1],yt=qy(ot);let B=[Ui(Kh,{type:t.type,title:jt({enabled:t.enabled&&t.titleEnabled,text:t.title},yt&&{textAlign:"center",align:"high",y:-25}),gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:ci,tickWidth:0,lineColor:ci,lineWidth:1,labels:Zt(jt({enabled:t.enabled&&t.labels,style:ai},yt&&{rotation:0}),{formatter:function(){const st=this;return!ft||!ui(ft==null?void 0:ft.type)||isNaN(parseFloat(st.value))?st.value:si($e(ft==null?void 0:ft.numberFormatConfig),parseFloat(st.value))}}),min:t.min,max:t.max,tickInterval:t.tickInterval,categories:m,plotBands:lt,plotLines:ct,tickmarkPlacement:"on"})];return o&&(B=B.concat(Ui(Kh,{title:{enabled:o.enabled&&o.titleEnabled,text:o.title},categories:m,opposite:!0,gridLineWidth:0,tickWidth:0,lineWidth:0}))),B},FF=(t,o,m,R,Q,tt)=>{var yt,B,st,U;const ot=tt,lt=$e((yt=ot.y.find(z=>!z.showOnRightAxis))==null?void 0:yt.numberFormatConfig),ct=$e((B=ot.y.find(z=>z.showOnRightAxis))==null?void 0:B.numberFormatConfig),ut=[{minClipped:!!(t.enabled&&t.min),maxClipped:!!(t.enabled&&t.max)}],ft=[Ui(Mg,Zt(jt(jt({type:t.type,title:{enabled:t.enabled&&t.titleEnabled,text:t.title},gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:ci,tickWidth:0,lineColor:ci,lineWidth:1,labels:{enabled:t.enabled&&t.labels,style:ai,formatter:function(){return si(lt,this.value)}},startOnTick:!(t.enabled&&t.min)},t.min&&{minPadding:0}),t.max&&{maxPadding:0}),{min:t.enabled?(st=t.min)!=null?st:m.min:null,max:t.enabled?(U=t.max)!=null?U:m.max:null,tickInterval:t.enabled?t.tickInterval:null,stackLabels:{enabled:Q}}))];if(R){ut.push({minClipped:!!(o!=null&&o.enabled&&o.min),maxClipped:!!(o!=null&&o.enabled&&o.max)});const z={startOnTick:!(o!=null&&o.enabled&&o.min),min:o!=null&&o.enabled?o.min||R.min:null,max:o!=null&&o.enabled?o.max||R.max:null},X=o!=null&&o.enabled?{opposite:!0,gridLineWidth:0,title:{enabled:o.enabled&&o.titleEnabled,text:o.title},labels:{enabled:o.enabled&&o.labels,style:ai,formatter:function(){return si(ct,this.value)}},tickInterval:o.enabled?o.tickInterval:null,stackLabels:{enabled:Q}}:{visible:!1};ft.push(Ui(Mg,jt(jt({},z),X)))}return[ft,ut]},Ja=(t,o)=>t==="line"&&o.lineType==="smooth"?"spline":t==="area"&&o.lineType==="smooth"?"areaspline":t==="polar"?o.polarType:t==="scatter"?"bubble":t,uv=(t,o)=>{if(t!=="area"&&t!=="bar"&&t!=="column")return{showTotal:!1};const m=o.valueLabel&&o.showTotal||!1;switch(o.stackType){case"stacked":return{stacking:"normal",showTotal:m};case"stack100":return{stacking:"percent",showTotal:m};default:return{showTotal:!1}}},GF=(t,o)=>t.map((m,R)=>o===R?0:-1),WF=(t,o,m,R,Q,tt,ot,lt)=>{const ct=dv(t,m),yt=t,{title:ut}=yt,ft=Hi(yt,["title"]);return Zt(jt({},ft),{name:ut!=null?ut:t.name,data:UF(ct,o,R,Q,m,tt,ot,lt)})},HF=(t,o)=>{!o.minClipped&&(t!=null&&t.min)&&(t==null?void 0:t.min)>0&&(t.min=0),!o.maxClipped&&(t!=null&&t.max)&&(t==null?void 0:t.max)<0&&(t.max=0)},UF=(t,o,m,R,Q,tt,ot,lt)=>{const ct=o.map((st,U)=>{if(st<0)return{y:null};const{value:z,blur:X,color:V,rawValue:K,xValue:J,xDisplayValue:q,xCompareValue:W}=t[st],D=pv(t,o,st,U),O=D||X,w={enabled:!X,isIsolatedPoint:D},T=W?W[0]:NaN;return Zt(jt(jt({x:T,y:z,selected:!!X},O&&{marker:w}),V&&{color:V}),{custom:{rawValue:K,xValue:J,xDisplayValue:q||J}})}),ut=[];let ft=-1;const yt=m/2;let B=0;return ct.forEach(st=>{if(st.x&&ft===-1&&(ft=st.x+yt),st.x&&st.x>ft){let U=Math.round((st.x-(ft-yt))/m);for(;U>0&&(B++,!(B>R));){const z=st.x-m*U;ut.push({custom:{xDisplayValue:tt(z)},x:z,y:Q?0:null}),Q&&(ot!=null&&ot.min)&&(ot==null?void 0:ot.min)>0&&HF(ot,lt),U--,ft+=m}}ut.push(st),st.x?ft=st.x+m+yt:ft+=m}),ut},Xn=(t,o,m,R,Q)=>{const tt=dv(t,m),ct=t,{title:ot}=ct,lt=Hi(ct,["title"]);return Zt(jt({},lt),{name:ot!=null?ot:t.name,data:XF(tt,o,R,Q)})},pv=(t,o,m,R)=>{const Q=R===0||o[R-1]<0||isNaN(t[o[R-1]].value),tt=R+1===o.length||o[R+1]<0||isNaN(t[o[R+1]].value);return Q&&tt},dv=(t,o)=>t.data.map(Q=>{var tt=Q,{value:m}=tt,R=Hi(tt,["value"]);return jt({value:o&&Number.isNaN(m)?0:m},R)}),XF=(t,o,m,R)=>{const Q=t.some(tt=>tt.blur!==void 0);return o.map((tt,ot)=>{if(tt<0)return{y:null};const{value:lt,blur:ct,color:ut,rawValue:ft,xValue:yt}=t[tt];if(m)return Zt(jt({name:m[tt],y:lt,color:ut!=null?ut:R==null?void 0:R[tt]},Q&&!ct&&{selected:!0}),{custom:{rawValue:ft,xValue:yt}});{const B=pv(t,o,tt,ot),st=B||Q,U={enabled:!ct,isIsolatedPoint:B};return Zt(jt(jt({y:isNaN(+lt)?lt:+lt,selected:!!ct},st&&{marker:U}),ut&&{color:ut}),{custom:{rawValue:ft,xValue:yt}})}})},YF=(t,o,m=.1)=>{const Q=Math.abs(o-t)*m/2;return{min:t<0?t-Q:t,max:o>=0?o+Q:o}},Tg=(t,o)=>{const m=jt({},o);return t.min&&t.min>=m.max&&(m.max=t.min*(t.min>=0?2:.5)),t.max&&t.max<=m.min&&(m.min=t.max*(t.max>=0?.5:2)),m},kg=(t,o)=>{const m=jt({},o);return m.min<=0||(t==="column"||t==="bar")&&(m.min=0),m},Pg=(t,o,m,R,Q,tt)=>{const ot=o.series.map((yt,B)=>Zt(jt({},yt),{data:yt.data.map(z=>{var X=z,{value:st}=X,U=Hi(X,["value"]);return jt({value:isNaN(st)&&Q[B]?0:st},U)})})).filter((yt,B)=>R[B]===tt),{stacking:lt}=uv(t,m),ct=tt===0?m.yAxis:m.y2Axis||{min:void 0,max:void 0},ut=qy(t)&&m.polarType!=="line";if(lt==="percent")return{min:0,max:100};if(lt==="normal"||ut){const yt=Array.from(Array(o.xValues.length),()=>({plus:0,minus:0}));let st=ot.reduce((U,z)=>(z.data.forEach(({value:X},V)=>{X<0?U[V].minus+=X||0:U[V].plus+=X||0}),U),yt).reduce((U,z)=>({min:Math.min(U.min,z.minus),max:Math.max(U.max,z.plus)}),{min:Number.MAX_VALUE,max:Number.MIN_VALUE});return st=Tg(ct,st),st=kg(t,st),m.valueLabel&&(st=YF(ct.min||st.min,ct.max||st.max)),st}let ft=ot.reduce((yt,B)=>{const st=B.data.map(({value:U})=>U).filter(U=>!isNaN(U));return{min:Math.min(yt.min,...st),max:Math.max(yt.max,...st)}},{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY});return ft=Tg(ct,ft),ft=kg(t,ft),ft},$F=(t,o)=>{var lt;if(t.type!=="cartesian")return[[],[],[],[]];let m=[],R=[];const Q=o;let tt=Q.y.map(ct=>!!ct.treatNullDataAsZeros),ot=Q.y.map(ct=>!!ct.connectNulls);if(Q.breakBy.length===0){m=Q.y.map(ut=>ut.showOnRightAxis?1:0);let ct=Q.y.length<=1;if(!ct){let ut=0;Q.y.map(ft=>(ft.enabled&&(ut+=1),null)),ut<=1&&(ct=!0)}R=Q.y.map(ut=>{if(!(!ut.chartType||ut.chartType==="auto"||ct))return ut.chartType})}else{const ct=(lt=Q.y[0])!=null&&lt.showOnRightAxis?1:0;m=t.series.map(()=>ct),R=t.series.map(()=>{}),tt=t.series.map(()=>tt[0]),ot=t.series.map(()=>ot[0])}return[m,R,tt,ot]},Qa=(t,o)=>{var m,R;if(t.breakBy.length===0){const Q=(m=t.y.find(tt=>tt.name===o))==null?void 0:m.color;return a0(Q)}else return(R=t.seriesToColorMap)==null?void 0:R[o]},fv=function(t,o,m,R){var D,O,w,T,d,u,g,b,v,S;let Q;t.percentage&&(Q=o?t.percentage.toFixed(1):`${Math.round(t.percentage)}`);const tt=m,ot=tt.breakBy.length>0?(D=tt.y)==null?void 0:D.find(P=>P.enabled):(O=tt.y)==null?void 0:O.find(P=>P.title===t.series.name),lt=ov(ot),ct=mi(ot,t.point.y,""),ut=(d=(T=(w=t.point)==null?void 0:w.custom)==null?void 0:T.xDisplayValue)!=null?d:t.x,ft=tt.x?Do(tt.x[0],t.x,ut):ut;let yt;if((u=t.point.custom)!=null&&u.xValue&&(tt!=null&&tt.x)&&tt.x.length===2){const P=`${t.point.custom.xValue[0]}`;yt=Do(tt.x[1],P,P)}const B=ct+(lt&&Q?` / ${Q}%`:""),st=t.point.color||t.series.color,U=Fn(t.point.name||t.series.name),z=$0(t.point.name||t.series.name),X=R&&U?`${R("advanced.tooltip.forecast")} ${t.series.name.substring(10)}`:R&&z?`${R("advanced.tooltip.trend")} ${t.series.name.substring(7)}`:t.series.name,V=(g=t.point)!=null&&g.low?mi(ot,(b=t.point)==null?void 0:b.low,""):void 0,K=(v=t.point)!=null&&v.high?mi(ot,(S=t.point)==null?void 0:S.high,""):void 0,J=(P,E,M)=>P?!R||!U||!E?`<br /${oi(P,M)}`:`<br /><span>${R(E)} </span>${oi(P,M)}`:"",q=R?`(+${R("advanced.tooltip.trend")})`:"",W=U?"advanced.tooltip.forecastValue":"";return gn(`
35
+ ${X.replace(q,"")}
36
+ ${J(B,W,st)}
37
+ ${J(K,"advanced.tooltip.max",st)}
38
+ ${J(V,"advanced.tooltip.min",st)}
39
+ ${yt||ft?Vr():""}
40
+ ${yt||""}
41
+ ${yt&&ft?`
42
+ <svg xmlns="http://www.w3.org/2000/svg" width="12" height="18" viewBox="0 0 24 24" style="display: inline-block">
43
+ <path
44
+ fill="#5B6372"
45
+ fillRule="nonzero"
46
+ d="M6.84 8.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"
47
+ />
48
+ </svg>
49
+ `:""}
50
+ ${ft||""}
51
+ `)},VF=(t,o,m)=>({animation:!1,backgroundColor:Zr,borderColor:fn,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){return fv(this,t,o,m)}}),ZF=(t,o)=>{const m=t;if(m.x.length!==2)return o;const{categories:R,indexMap:Q,plotBands:tt}=o,ot=m.x[1],lt=m.x[0],ct=$e(ot==null?void 0:ot.numberFormatConfig),ut=$e(lt==null?void 0:lt.numberFormatConfig);let ft=R;ot&&ui(ot.type)&&(ft=R.map(B=>si(ct,parseFloat(B))));let yt=tt;return lt&&ui(lt.type)&&(yt=tt.map(B=>{const st=si(ut,parseFloat(B.text));return Zt(jt({},B),{text:st})})),{categories:ft,indexMap:Q,plotBands:yt}},qF=(t,o)=>{const{stackType:m}=o;return m==="classic"&&(r0(t)||NB(t))},KF=t=>{const{xValues:o,xAxisCount:m}=t;return m!==2||o.length===0},Ah=(t,o)=>({plotBands:[],indexMap:t.map((m,R)=>R),categories:o}),JF=(t,o,m,R)=>{const{xValues:ot}=t,{y:lt}=o;if(qF(o,m))return Ah(ot,lt.map(z=>pr(z)));if(R)return Ah(ot,ot.map(cv).map(z=>`${z}`));if(KF(t))return Ah(ot,ot.map(z=>z.xValues[0]));const ct=[],ut=[],ft=[];let yt=ot[0].xValues[0],B=-.5;ot.map((z,X)=>{const V=z.xValues[1],K=z.xValues[0];if(K!==yt){ct.push(-1);const J=ct.length-1;ft.push(" "),ut.push({text:yt,from:B,to:J}),B=J,yt=K}return ct.push(X),ft.push(V),z.xValues[1]});const st=ot.length-1,U=ot[st].xValues[0];return ut.push({text:U,from:B,to:ct.length-.5}),{categories:ft,indexMap:ct,plotBands:ut}},gv=(t,o,m)=>!o||m<50?{enabled:!1}:{series:{type:t,dataGrouping:{enabled:!1}},tooltipFormatter:()=>({left:"",right:""}),enabled:!0,margin:30,height:40,xAxis:{labels:{enabled:!1}},handles:{symbols:["navigator-handle","navigator-handle"],backgroundColor:fn,borderColor:Zr},maskInside:!0,maskFill:"rgba(91,99,114, 0.15)",outlineColor:fn,outlineWidth:1},Yn=(t,o)=>`Maximum number of series (${o}) exceeded (${t})`,Jh=(t,o,m)=>`'${t.toUpperCase()}-Axis:' Maximum number of categories (${m}) exceeded (${o})`,Qh=(t,o,m,R,Q,tt,ot)=>{const lt=[],ct=R.x.length===1&&R.x[0].continuous&&mr(R.x[0].type)||!1,ut=Ja(o,m);if(t.type!=="cartesian")throw new Error("Unexpected chart type");const{seriesCapacity:ft,categoriesCapacity:yt}=m.dataLimits;t.xValues.length>yt&&lt.push(Jh("x",t.xValues.length,yt));const{categories:B,indexMap:st,plotBands:U}=ZF(R,JF(Zt(jt({},t),{xValues:t.xValues.slice(0,yt)}),R,m,ct)),[z,X,V,K]=$F(t,R),J=o==="bar"||X.includes("bar")?"vertical":"horizontal",q=ct?RF(m.xAxis,R.x[0],t.xValues.map(cv),ot):zF(m.xAxis,m.x2Axis,B,U,J,R,o),W=Pg(o,t,m,z,V,0),D=z.some(E=>E===1)?Pg(o,t,m,z,V,1):void 0,{stacking:O,showTotal:w}=uv(o,m);let T,d=m.yAxis;"polarType"in m&&(T=m.polarType,d=Zt(jt({},m.yAxis),{titleEnabled:!1,title:null}));const[u,g]=FF(d,m.y2Axis,W,D,w,R),b=t.xAxisCount>1&&J==="vertical"?90:20,v=o==="area"&&O!==void 0,S=!!T;return t.series.length>ft&&lt.push(Yn(t.series.length,ft)),{options:Ui(_F(o,T,O),{title:{text:null},chart:{type:ut,spacing:[20,b,20,20],alignTicks:!1,polar:S},xAxis:q,yAxis:u,legend:mn(m.legend),series:t.series.slice(0,ft).map((E,M)=>{var r,n;const f=R.breakBy.length?R.y[0]:R.y.find(({name:i})=>i===E.name),x=f==null?void 0:f.name,e=(x?m.designPerSeries[x]:void 0)||m;return Zt(jt(Zt(jt({},ct?WF(E,st,v||V[M],q[0].tickInterval,m.dataLimits.categoriesCapacity,BF(R.x[0],ot),u[M],g[M]):r0(R)&&!O?Xn(E,GF(B,M),v||V[M]):Xn(E,st,v||V[M])),{showInNavigator:!0,stickyTracking:!1,boostThreshold:0,turboThreshold:0,color:(n=Qa(R,E.name))!=null?n:vr((r=tt==null?void 0:tt.palette)==null?void 0:r.variantColors,M),yAxis:z[M],dataLabels:{formatter:PF(f==null?void 0:f.numberFormatConfig)}}),X[M]&&{type:X[M]}),{connectNulls:K[M],marker:Sg(e.marker),lineWidth:e.lineWidth})}),plotOptions:{series:Zt(jt({dataLabels:S?EF(m.valueLabel,T):LF(J,m.valueLabel,O&&o!=="area"),marker:Sg(m.marker)},O&&{stacking:O}),{stacking:O||void 0,connectNulls:!1})},navigator:gv(ut,m.autoZoom,t.xValues.length),tooltip:VF(void 0,R,Q)}),alerts:lt}},Lg=(t,o)=>({animation:!1,backgroundColor:Zr,borderColor:fn,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var ft,yt,B,st,U,z,X;const m=this;let R;m.percentage&&(R=t?m.percentage.toFixed(1):`${Math.round(m.percentage)}`);const Q=o;let tt=(yt=(ft=Q.y)==null?void 0:ft.find(V=>V.name===m.series.name))==null?void 0:yt.numberFormatConfig;!tt&&Q.breakBy.length>0&&(tt=(st=(B=Q.y)==null?void 0:B.find(V=>V.enabled))==null?void 0:st.numberFormatConfig);const ot=$e(tt),lt=(X=(z=(U=m.point)==null?void 0:U.custom)==null?void 0:z.xDisplayValue)!=null?X:m.x,ct=Hn(ot,m.y)+(R?` / ${R}%`:""),ut=m.point.color||m.series.color;return gn(`
52
+ ${m.series.name||""}
53
+ ${m.series.name&&m.point.name?" - ":""}
54
+ ${m.point.name||""}
55
+ <br />
56
+ ${oi(ct,ut)}
57
+ ${lt?Vr()+lt:""}
58
+ `)}}),mv={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},yv="classic",QF={classic:"0%",donut:"40%",ring:"80%"},t6=()=>({allowPointSelect:!1,showInLegend:!0,dataLabels:{enabled:!1,showPercentLabels:!1,showDecimals:!1,pieMinimumFontSizeToTextLabel:8,align:"center",style:ai},innerSize:"0%"}),e6=()=>({dataLabels:{enabled:!1}}),i6=(t=yv,o=mv,m,R)=>{var ot;const Q=t6(),tt=e6();if(Q.innerSize=QF[t],R&&(Q.dataLabels.style={color:R.chart.textColor,fontFamily:R.typography.fontFamily}),o.enabled){const lt=o.showCategories||o.showValue,{dataLabels:ct}=Q;ct.enabled=lt,ct.showPercentLabels=o.showPercent,ct.showDecimals=o.showDecimals;const ut=$e((ot=m.y[0])==null?void 0:ot.numberFormatConfig);ct.formatter=function(){const ft=this.point.name||this.series.name,yt=this.y;return`<div>
59
+ ${o.showCategories?ft:""}
60
+ ${o.showCategories&&o.showValue?"<br />":""}
61
+ ${o.showValue?si(ut,yt):""}
62
+ </div>`},tt.dataLabels&&(tt.dataLabels.enabled=lt)}return{pie:Q,series:tt}},qc={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},Kc="regular",Jc="regular",Qc="regular",r6=t=>t!=="regular",Eg=()=>({allowPointSelect:!1,cursor:"pointer",showInLegend:!0,dataLabels:{enabled:!1,funnelMinimumFontSizeToTextLabel:8,align:"center",style:ai},reversed:!0,neckWidth:h6,neckHeight:0,width:vv}),n6=()=>({dataLabels:{enabled:!1}}),o6=t=>{const{enabled:o,showCategories:m,showValue:R,showPercent:Q}=t;return{enabled:o&&[m,R,Q].find(Boolean)!==void 0}},s6=(t,o)=>o.showCategories?t.point.name||t.series.name:"",a6=(t,o,m)=>{if(!o.showValue)return"";const R=si(m,t.y);return o.showValue&&o.showCategories?`<br />${R}`:R},l6=(t,o)=>{var Q,tt;if(!o.showPercent)return"";const m=((tt=(Q=t.point)==null?void 0:Q.custom)==null?void 0:tt.number1)||0,R=o.showDecimals?m.toFixed(1):`${Math.round(m)}`;return` <b>${oa(R)}</b>`},vv=66.6,h6=15,c6=t=>vv,u6={wide:60,regular:30,narrow:15},p6=(t,o)=>Math.round(BB(t,u6[o])),d6=t=>t==="pinched"?30:0,f6=(t,o,m)=>{var yt;const{funnelType:R=Jc,funnelSize:Q=Kc,funnelDirection:tt=Qc,funnelLabels:ot=qc}=t,lt=Zt(jt({},n6()),{dataLabels:o6(ot)}),ct=$e((yt=o.y[0])==null?void 0:yt.numberFormatConfig),ut=c6();return{funnel:Zt(jt({},Eg()),{dataLabels:Zt(jt(jt({},Eg().dataLabels),m?{color:m.chart.textColor,style:{fontFamily:m.typography.fontFamily}}:null),{enabled:ot.enabled&&(ot.showCategories||ot.showValue||ot.showPercent),formatter:function(){const B=s6(this,ot),st=a6(this,ot,ct),U=l6(this,ot);return`${B}${st}${U}`}}),reversed:r6(tt),neckWidth:oa(p6(ut,Q)),neckHeight:oa(d6(R)),width:oa(ut)}),series:lt}},bv="Other",xv="Others",g6="#525A6B",m6=(t,o,m,R)=>{const Q=[],{seriesCapacity:tt}=m.dataLimits;let ot;if(t.xAxisCount===0){t.series.length>tt&&Q.push(Yn(t.series.length,tt));const ct=t.series.slice(0,tt),ut=ct.map(ft=>{var yt;return(yt=ft.title)!=null?yt:ft.name});ot=[{name:"",data:ct.map(ft=>Xn(ft,[0],!1,ut).data).flat().map((ft,yt)=>{var B,st;return Zt(jt({},ft),{sliced:(B=ft.selected)!=null?B:!1,name:ut[yt],color:(st=Qa(o,ct[yt].name))!=null?st:vr(R==null?void 0:R.palette.variantColors,yt)})}),boostThreshold:0,turboThreshold:0}]}else{t.xValues.length>tt&&Q.push(Yn(t.xValues.length,tt));const ct=t.xValues.slice(0,tt).map(yt=>yt.xValues.join(",")),ut=ct.map((yt,B)=>B),ft=ct.map((yt,B)=>{var st,U,z;return(z=(st=o.seriesToColorMap)==null?void 0:st[yt])!=null?z:vr((U=R==null?void 0:R.palette)==null?void 0:U.variantColors,B)});ot=t.series.map(yt=>{const U=Xn(yt,ut,!1,ct,ft),{data:B}=U,st=Hi(U,["data"]);return Zt(jt({},st),{data:B.map(z=>{var X;return Zt(jt({},z),{sliced:(X=z.selected)!=null?X:!1})}),boostThreshold:0,turboThreshold:0})})}const lt=m==null?void 0:m.convolution;if(!(lt!=null&&lt.enabled))return{series:ot,alerts:Q,convolutionSeries:[]};switch(lt==null?void 0:lt.selectedConvolutionType){case"byPercentage":return Zt(jt({},v6(ot,lt)),{alerts:Q});case"bySlicesCount":return Zt(jt({},b6(ot,lt)),{alerts:Q});default:return{series:ot,alerts:Q,convolutionSeries:[]}}},y6=(t,o)=>{var m;return t+((m=o.y)!=null?m:0)},Og=(t,o,m)=>{var R;return((R=t.y)!=null?R:0)/o>=m},wv=(t,o)=>{const m=o.reduce((R,Q)=>{var tt;return R+((tt=Q.y)!=null?tt:0)},0);return t[0].data.push({y:m,name:bv,color:g6,sliced:!1,drilldown:xv}),t},Cv=t=>[{name:bv,id:xv,data:t}],v6=(t,o)=>{if((o==null?void 0:o.minimalIndependentSlicePercentage)===void 0||t.length===0)return{series:t,convolutionSeries:[]};const m=o.minimalIndependentSlicePercentage/100,R=t[0].data.reduce(y6,0),Q=t[0].data.filter(tt=>!Og(tt,R,m));return Q.length===0?{series:t,convolutionSeries:[]}:(t[0].data=t[0].data.filter(tt=>Og(tt,R,m)),{series:wv(t,Q),convolutionSeries:Cv(Q)})},b6=(t,o)=>{if((o==null?void 0:o.independentSlicesCount)===void 0)return{series:t,convolutionSeries:[]};const m=o.independentSlicesCount,R=t[0].data.map((ot,lt)=>Zt(jt({},ot),{index:lt})).sort((ot,lt)=>{var ct,ut;return((ct=lt.y)!=null?ct:0)-((ut=ot.y)!=null?ut:0)}).slice(0,m),Q=Object.fromEntries(R.map(ot=>[ot.index,!0])),tt=t[0].data.filter((ot,lt)=>!Q[lt]);return tt.length===0?{series:t,convolutionSeries:[]}:(t[0].data=t[0].data.filter((ot,lt)=>Q[lt]),{series:wv(t,tt),convolutionSeries:Cv(tt)})},x6=(t,o,m,R)=>{let Q;const tt=[],{seriesCapacity:ot}=m.dataLimits;if(t.xAxisCount===0){t.series.length>ot&&tt.push(Yn(t.series.length,ot));const lt=t.series.slice(0,ot),ct=lt.map(ut=>{var ft;return(ft=ut.title)!=null?ft:ut.name});Q=[{name:"",data:lt.map(ut=>Xn(ut,[0],!1,ct).data).flat().map((ut,ft)=>{var yt;return Zt(jt({},ut),{name:ct[ft],color:(yt=Qa(o,lt[ft].name))!=null?yt:vr(R==null?void 0:R.palette.variantColors,ft)})}),boostThreshold:0,turboThreshold:0}],_g(Q[0])}else{t.xValues.length>ot&&tt.push(Yn(t.xValues.length,ot));const lt=t.xValues.slice(0,ot).map(ft=>ft.xValues.join(",")),ct=lt.map((ft,yt)=>yt),ut=lt.map((ft,yt)=>{var B,st,U;return(U=(B=o.seriesToColorMap)==null?void 0:B[ft])!=null?U:vr((st=R==null?void 0:R.palette)==null?void 0:st.variantColors,yt)});Q=t.series.map(ft=>Zt(jt({},_g(Xn(ft,ct,!1,lt,ut))),{boostThreshold:0,turboThreshold:0}))}return{series:Q,alerts:tt}},_g=t=>{let o=0;const m=t.data.map((R,Q)=>{const tt=R.y;return Q===0&&(o=tt),R.custom={number1:RB(o,tt)},R});return Zt(jt({},t),{data:m})},Sv=(t,o,m)=>({animation:!1,backgroundColor:Zr,borderColor:fn,borderRadius:10,borderWidth:1,padding:1,useHTML:!0,outside:!0,formatter:function(){return S6(this,t,o,m)}}),w6=`
63
+ <div style="position: absolute; top: 100%; right: 40px; z-index: 1">
64
+ <div style="
65
+ border: solid transparent;
66
+ content: ' ';
67
+ height: 0;
68
+ width: 0;
69
+ position: absolute;
70
+ pointer-events: none;
71
+ border-color: rgba(136,136,136,0);
72
+ border-top-color: #ccc;
73
+ border-width: 7px 12px 12px 12px;
74
+ margin-left: -7px;
75
+ "></div>
76
+ <div style="
77
+ border: solid transparent;
78
+ content: ' ';
79
+ height: 0;
80
+ width: 0;
81
+ position: absolute;
82
+ pointer-events: none;
83
+ border-color: rgba(255,255,255,0);
84
+ border-top-color: #fff;
85
+ border-width: 6px 11px 11px 11px;
86
+ margin-left: -6px;
87
+ "></div>
88
+ </div>
89
+ `;function C6(t,o){return t/(o/100)}function Js(t,o){return`${C6(t,o).toPrecision(3)}%`}function S6(t,o,m,R){var yt,B,st,U,z,X,V,K,J,q,W,D,O;if(R!=null&&R.shouldSkip&&R.shouldSkip(t))return!1;const Q=$e((B=(yt=o.y)==null?void 0:yt[0])==null?void 0:B.numberFormatConfig),tt=((st=m==null?void 0:m.tooltip)==null?void 0:st.mode)==="contribution",ot=(K=(z=(U=o.y)==null?void 0:U[0])==null?void 0:z.title)!=null?K:(V=(X=o.y)==null?void 0:X[0])==null?void 0:V.name,lt=t.color;let ct=0;const ut=[],ft=w=>{if(w.parentNode)ut.push(w);else{ct=w.val;return}ft(w.parentNode)};return ft(t.point.node),`
90
+ <div
91
+ class="csdk-treemap-tooltip-wrapper">
92
+ ${[...ut].reverse().map((w,T)=>{const d=T===ut.length-1;return`
93
+ <div
94
+ class="csdk-treemap-tooltip-level"
95
+ style="background: ${d?"#f2f2f2":"white"};"
96
+ >
97
+ ${R!=null&&R.displayColorCircles?M6(w.color):""}
98
+ <span
99
+ style="color: ${d?lt:"currentColor"}"
100
+ >${w.name}</span>
101
+ <span
102
+ style="color: ${d?"#5B6372":"currentColor"}; margin-left: auto;"
103
+ >${tt?Js(w.val,ct):Hn(Q,w.val)}</span>
104
+ ${d?"":w6}
105
+ </div>`}).join("")}
106
+ <div class="csdk-treemap-tooltip-value">
107
+ <span style="color:${lt}; font-size: 15px">${tt?Js(ut[0].val,ct):Hn(Q,(J=ut[0])==null?void 0:J.val)}</span> of ${ot}
108
+ </div>
109
+ ${ut[1]?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
110
+ <span style="color:${lt}; font-size: 15px">${Js((q=ut[0])==null?void 0:q.val,(W=ut[1])==null?void 0:W.val)}
111
+ </span> of ${(D=ut[1])==null?void 0:D.name}
112
+ </div>`:""}
113
+ ${R!=null&&R.displayTotalContribution&&!tt?`<div class="csdk-treemap-tooltip-value" style="padding-top: 4px;">
114
+ <span style="color:${lt}; font-size: 15px">${Js((O=ut[0])==null?void 0:O.val,ct)}
115
+ </span> of total
116
+ </div>`:""}
117
+ </div>
118
+ </div>`}function M6(t){return`
119
+ <div style="
120
+ width: 12px;
121
+ height: 12px;
122
+ border-radius: 100%;
123
+ background-color: ${t};
124
+ margin-right: 6px;
125
+ "></div>
126
+ `}var tc={exports:{}};/*! For license information please see index.js.LICENSE.txt */(function(t,o){(function(m,R){t.exports=R()})(self,()=>(()=>{var m={4658:function(tt,ot,lt){var ct=this&&this.__createBinding||(Object.create?function(B,st,U,z){z===void 0&&(z=U);var X=Object.getOwnPropertyDescriptor(st,U);X&&!("get"in X?!st.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return st[U]}}),Object.defineProperty(B,z,X)}:function(B,st,U,z){z===void 0&&(z=U),B[z]=st[U]}),ut=this&&this.__exportStar||function(B,st){for(var U in B)U==="default"||Object.prototype.hasOwnProperty.call(st,U)||ct(st,B,U)},ft=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=void 0,ut(lt(1920),ot);var yt=lt(1920);Object.defineProperty(ot,"default",{enumerable:!0,get:function(){return ft(yt).default}})},1920:function(tt,ot,lt){var ct=this&&this.__createBinding||(Object.create?function(B,st,U,z){z===void 0&&(z=U);var X=Object.getOwnPropertyDescriptor(st,U);X&&!("get"in X?!st.__esModule:X.writable||X.configurable)||(X={enumerable:!0,get:function(){return st[U]}}),Object.defineProperty(B,z,X)}:function(B,st,U,z){z===void 0&&(z=U),B[z]=st[U]}),ut=this&&this.__exportStar||function(B,st){for(var U in B)U==="default"||Object.prototype.hasOwnProperty.call(st,U)||ct(st,B,U)},ft=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(ot,"__esModule",{value:!0});var yt=ft(lt(7155));ot.default=yt.default,ut(lt(8840),ot)},6598:function(tt,ot,lt){var ct=this&&this.__importDefault||function(yt){return yt&&yt.__esModule?yt:{default:yt}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(4052)),ft={xAxis:{labels:{style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily}},title:{style:{color:ut.default.textColor,fontFamily:ut.default.fontFamily}},crosshair:!1},yAxis:{labels:{style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily}},title:{style:{color:ut.default.textColor,fontFamily:ut.default.fontFamily}},crosshair:!1},zAxis:{labels:{style:{color:ut.default.labelColor,fontFamily:ut.default.fontFamily}},title:{style:{color:ut.default.textColor,fontFamily:ut.default.fontFamily}}}};ot.default=ft},4052:(tt,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.default={fontFamily:"Open Sans",textColor:"#5B6372",labelColor:"#5B6372",legendColor:"#5B6372",legendNavigationColor:"#5B6372",legendNavigationSecondaryColor:"#9EA2AB"}},548:function(tt,ot,lt){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(3941));ot.default=ut.default},2243:function(tt,ot,lt){var ct=this&&this.__importDefault||function(yt){return yt&&yt.__esModule?yt:{default:yt}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(4052)),ft={align:"center",itemHoverStyle:{color:ut.default.legendColor},itemStyle:{color:ut.default.legendColor,fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis",fontFamily:ut.default.fontFamily},navigation:{style:{color:ut.default.legendNavigationColor,fontFamily:ut.default.fontFamily},activeColor:ut.default.legendNavigationColor,inactiveColor:ut.default.legendNavigationSecondaryColor},alignColumns:!1};ot.default=ft},3941:function(tt,ot,lt){var ct=this&&this.__assign||function(){return ct=Object.assign||function(V){for(var K,J=1,q=arguments.length;J<q;J++)for(var W in K=arguments[J])Object.prototype.hasOwnProperty.call(K,W)&&(V[W]=K[W]);return V},ct.apply(this,arguments)},ut=this&&this.__importDefault||function(V){return V&&V.__esModule?V:{default:V}};Object.defineProperty(ot,"__esModule",{value:!0});var ft=ut(lt(4052)),yt=ut(lt(8655)),B=ut(lt(2243)),st=ut(lt(1222)),U=ut(lt(6598)),z={enabled:!1,text:"Sisense",href:"http://www.sisense.com",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:ft.default.textColor,fontSize:"9px"}},X=ct({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:z,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:B.default,navigator:{yAxis:{gridLineWidth:0},xAxis:{gridLineWidth:0}},plotOptions:st.default,title:{margin:0},tooltip:yt.default},U.default);ot.default=X},1222:function(tt,ot,lt){var ct=this&&this.__importDefault||function(st){return st&&st.__esModule?st:{default:st}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(3491)),ft=ct(lt(4052)),yt={enabled:!0,overflow:"justify",style:{color:ft.default.labelColor,fontFamily:ft.default.fontFamily,fontSize:"13px",fontWeight:"normal",cursor:"default",lineHeight:"14px"}},B={series:{turboThreshold:1e3,dataLabels:ut.default.merge(yt,{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:ft.default.labelColor,fontFamily:ft.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:ut.default.merge(yt,{align:"center",enabled:!1}),cropThreshold:300,pointRange:0,states:{hover:{marker:{}},select:{marker:{}}},stickyTracking:!0},column:{maxPointWidth:82,dataLabels:ut.default.merge(yt,{align:"center",enabled:!1,verticalAlign:"bottom",overflow:"justify"})},bar:{maxPointWidth:82,dataLabels:ut.default.merge(yt,{align:"center",enabled:!1,verticalAlign:"middle",overflow:"justify"})},pie:{dataLabels:{overflow:"ellipsis"}}};ot.default=B},8655:function(tt,ot,lt){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(5837));ot.default=ut.default},5837:function(tt,ot,lt){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(ot,"__esModule",{value:!0});var ut={style:{fontSize:"13px",fontWeight:"normal",color:"#5B6372",fontFamily:ct(lt(4052)).default.fontFamily},borderWidth:1,borderColor:"#CCCCCC",backgroundColor:"#FFFFFF",borderRadius:10,hideDelay:20,shadow:{color:"#CECECE",offsetX:2,offsetY:2,width:5}};ot.default=ut},8040:function(tt,ot,lt){var ct=this&&this.__assign||function(){return ct=Object.assign||function(U){for(var z,X=1,V=arguments.length;X<V;X++)for(var K in z=arguments[X])Object.prototype.hasOwnProperty.call(z,K)&&(U[K]=z[K]);return U},ct.apply(this,arguments)},ut=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(ot,"__esModule",{value:!0});var ft=ut(lt(1857)),yt=ut(lt(4402)),B=ut(lt(5998)),st=lt(2930);ot.default=function(U){var z=U.merge,X=U.extend,V=U.pick;U.getOptions().plotOptions.boxplot.lineWidth=1,U.getOptions().plotOptions.boxplot.fillOpacity=.6,U.getOptions().plotOptions.boxplot.strokeOpacity=.6,U.getOptions().plotOptions.boxplot.strokeWidth=1,U.getOptions().plotOptions.boxplot.states.select.lineWidth=1,U.getOptions().plotOptions.boxplot.states.select.fillOpacity=.3,U.getOptions().plotOptions.boxplot.states.select.strokeOpacity=.3,U.getOptions().plotOptions.boxplot.states.hover.lineWidth=1,U.getOptions().plotOptions.boxplot.states.hover.fillOpacity=1,U.getOptions().plotOptions.boxplot.states.hover.strokeOpacity=1,U.wrap(U.seriesTypes.boxplot.prototype,"drawPoints",function(){var K,J,q,W,D,O,w,T,d,u,g,b,v,S,P,E,M,f,x,l,h,e,r,n,i,c,a=this,s=a.points,y=a.options,A=a.chart.renderer,_=a.doQuartiles!==!1,p=parseInt(a.options.whiskerLength,10)/100;s.forEach(function(C){if(g=C.graphic,n=C.shapeArgs,v={},M={},x={},i=C.color||a.color,c=C.innerBoxColor||a.color,C.plotY!==void 0){K={fill:c,"fill-opacity":.75,stroke:a.color,"stroke-opacity":1,"stroke-width":1},C.selected&&(K.fill=c,K["fill-opacity"]=.3,K["stroke-opacity"]=.3),q={fill:c,"fill-opacity":K["fill-opacity"],stroke:i,"stroke-width":1};var k={fill:K.fill,"fill-opacity":K["fill-opacity"],"stroke-opacity":K["fill-opacity"]};J=ct({},K),l=n.width,h=Math.floor(n.x),e=h+l,r=Math.round(l/2),W=Math.floor(_?C.q1Plot:C.lowPlot),D=Math.floor(_?C.q3Plot:C.lowPlot),O=Math.floor(C.highPlot),w=Math.floor(C.lowPlot),v.stroke=C.stemColor||y.stemColor||i,v["stroke-width"]=V(C.stemWidth,y.stemWidth,y.lineWidth),v.dashstyle=C.stemDashStyle||y.stemDashStyle,M.stroke=C.whiskerColor||y.whiskerColor||i,M["stroke-width"]=V(C.whiskerWidth,y.whiskerWidth,y.lineWidth),x.stroke=C.medianColor||y.medianColor||i,x["stroke-width"]=V(C.medianWidth,y.medianWidth,y.lineWidth),x["stroke-linecap"]="round",d=v["stroke-width"]%2/2,b=["M",u=h+r+d,D,"L",u,O,"M",u,W,"L",u,w,"z"],_&&(d=K["stroke-width"]%2/2,u=Math.floor(u)+d,W=Math.floor(W)+d,D=Math.floor(D)+d,S=["M",h+=d,D,"L",h,W,"L",e+=d,W,"L",e,D,"L",h,D,"z"]),p&&(d=M["stroke-width"]%2/2,P=["M",u-r*p,O+=d,"L",u+r*p,O,"M",u-r*p,w+=d,"L",u+r*p,w]),d=2,T=Math.round(C.medianPlot)+d,f=["M",h,T,"L",e,T,"z"],_&&(E=["M",h+.5,T+.5,"L",h+.5,W-.5,"L",e-.5,W-.5,"L",e-.5,T+.5,"L",h+.5,T+.5,"z"]),g?(g.attr(k),C.stem.attr(v),C.stem.animate({d:b}),p&&(C.whiskers.attr(M),C.whiskers.animate({d:P})),_&&(C.box.attr(J),C.box.attr("stroke",J.stroke),C.box.animate({d:S}),C.innerBox.animate({d:E}),C.innerBox.attr(q)),C.medianShape.attr(x),C.medianShape.animate({d:f})):(C.graphic=g=A.g().add(a.group).attr(k).attr("name","graphic"),C.stem=A.path(b).attr(v).attr("name","stem").add(g),p&&(C.whiskers=A.path(P).attr(M).attr("name","whiskers").add(g)),_&&(C.box=A.path(S).attr(J).attr("stroke",J.stroke).attr("name","box").add(g),C.innerBox=A.path(E).attr(q).attr("name","inner-box").add(g)),C.medianShape=A.path(f).attr(x).attr("name","median").add(g))}})}),U.wrap(U.seriesTypes.boxplot.prototype,"drawDataLabels",function(K,J,q){var W,D,O,w,T=this,d=T.options,u=d.cursor,g=T.points,b=d.dataLabels,v=[{name:"median",enabled:!0,indent:-15,path:function(M,f){return["M",M,f,"L",M-10,f]}},{name:"q3",enabled:!0,indent:-20,path:function(M,f){return["M",M,f,"L",M-2,f+5,M-10,f+5]}},{name:"high",enabled:!0,indent:-20,path:function(M,f){return["M",M,f,"L",M-2,f+5,M-10,f+5]}},{name:"q1",enabled:!0,indent:-7,path:function(M,f){return["M",M,f,"L",M-2,f-5,M-10,f-5]}},{name:"low",enabled:!0,indent:-7,path:function(M,f){return["M",M,f,"L",M-2,f-5,M-10,f-5]}}];if(K.call(this,b,q),T.data.length>0){var S=T.barW;T.barW>T.options.maxPointWidth&&(S=T.options.maxPointWidth),this.data.forEach(function(M){M.shapeArgs.x+=(M.shapeArgs.width-S)/2,M.shapeArgs.width=S})}if(b.enabled||T._hasPointLabels){w=T.plotGroup("dataLabelsGroup","data-labels",T.visible?"visible":"hidden",b.zIndex||6);var P=T.chart.plotBox.height;if(T.type==="boxplot"&&P<200)if((0,st.defined)((0,ft.default)(g,"0.dataLabel")))for(var E=0;E<g.length;E++)g[E].dataLabel&&((0,st.defined)((0,ft.default)(g[E].dataLabel,"high"))&&g[E].dataLabel.high.destroy(),(0,st.defined)((0,ft.default)(g[E].dataLabel,"low"))&&g[E].dataLabel.low.destroy());else delete v[2],delete v[4];D=b,g.forEach(function(M){var f,x,l,h,e,r,n=!0,i=M.connector,c=M.shapeArgs,a=Math.floor(c.x)+c.width;W=M.options&&M.options.dataLabels;var s=V(W&&W.enabled,D.enabled),y=M.innerBoxColor||T.color;if(s){b=z(D,W),r=b.rotation,l=M.getLabelConfig();var A=!1,_=(0,B.default)(v);(0,st.defined)(M,"shapeArgs.height")&&M.shapeArgs.height<30&&(delete _[2],delete _[4],M.shapeArgs.height===0&&(A=!0)),(0,st.defined)(M.dataLabel)||(M.dataLabel={},M.dataLabel.element={},M.dataLabel.destroy=function(){U.removeEvent(M.dataLabel,"add"),U.removeEvent(M.dataLabel.element,"mouseenter"),U.removeEvent(M.dataLabel.element,"mouseleave"),_.forEach(function(p){p&&M.dataLabel[p.name]&&(M.dataLabel[p.name].destroy(),M.dataLabelLine[p.name].destroy())}),M.dataLabel=null,M.dataLabelLine=null}),(0,st.defined)(M.dataLabelLine)||(M.dataLabelLine={}),_.forEach(function(p){if(p&&p.enabled){f=M.dataLabel[p.name],x=M.dataLabelLine[p.name],O=b.formatter.call(l,b,p.name),b.style.color=V(b.color,b.style.color,T.color,"black"),b.x=a+12,b.y=M[p.name+"Plot"]-M.highPlot+p.indent;var C=T.visible&&T.chart.isInsidePlot(M.plotX,M.plotY,T.chart.inverted)&&T.chart.isInsidePlot(M.plotX,M.yBottom,T.chart.inverted);if(f)C?((0,st.defined)(O)?(f.attr({text:O}),n=!1):(M.dataLabel[p.name]=f=f.destroy(),i&&(M.connector=i.destroy())),x&&x.destroy()):(M.dataLabel[p.name]=f=f.destroy(),x&&x.destroy());else if((0,st.defined)(O)&&O!=="null"){for(e in h={fill:b.backgroundColor,stroke:b.borderColor,"stroke-width":b.borderWidth,r:b.borderRadius||0,rotation:r,padding:b.padding,zIndex:1})(0,yt.default)(h[e])&&delete h[e];C&&((f=T.chart.renderer[r?"text":"label"](O,0,-999,null,null,null,b.useHTML)).attr(h).css(X(b.style,u&&{cursor:u})).add(w).shadow(b.shadow),f.options={},M.dataLabel[p.name]=f)}if(C){var k={fill:y,"fill-opacity":.75,stroke:T.color,"stroke-opacity":1,"stroke-width":1},F=13;A&&(p.name==="q1"?F=5:p.name==="q3"&&(F=21)),x=M.dataLabelLine[p.name]=M.series.chart.renderer.path(p.path(2,F)).attr({"stroke-width":1,stroke:k.stroke,"stroke-opacity":k["fill-opacity"]||1}).add(f)}f&&T.alignDataLabel(M,f,b,null,n,x,p.name),f.options={},M["dataLabel"+p.name]=f}})}M.dataLabels=v.map(function(p){return M.dataLabel[p.name]}).filter(function(p){return p})}),T.dataLabelCollections=[],v.map(function(M){return M.name}).forEach(function(M){T.dataLabelCollections.push("dataLabel"+M)})}}),U.wrap(U.seriesTypes.boxplot.prototype,"alignDataLabel",function(K,J,q,W,D,O,w,T){var d=this.chart,u=d.inverted,g=J.dlBox||J.shapeArgs,b=J.below||J.plotY>V(this.translatedThreshold,d.plotSizeY),v=V(W.inside,!!this.options.stacking);g&&((D=z(g)).y+=b?D.height:0,D.height=0),W.align=V(W.align,"left"),W.verticalAlign=V(W.verticalAlign,u||v?"middle":b?"top":"bottom");var S,P=q.getBBox(),E=this.visible&&d.isInsidePlot(J.plotX,J.plotY,u)&&d.isInsidePlot(J.plotX,J.yBottom,u);if(E){switch(X(W,{width:P.width,height:P.height}),S={align:W.align,x:W.x,y:D.y+W.y+D.height/2},T){case"q3":(0,st.defined)(J,"dataLabel.median.y")&&J.dataLabel.median.y!=999&&S.y+W.height>J.dataLabel.median.y&&(S.y=J.dataLabel.median.y-(W.height/2+4));break;case"high":(0,st.defined)(J,"dataLabel.q3.y")&&J.dataLabel.q3.y!=999&&S.y+W.height>J.dataLabel.q3.y&&(S.y=J.dataLabel.q3.y-(W.height/2+4));break;case"q1":(0,st.defined)(J,"dataLabel.median.y")&&J.dataLabel.median.y!=999&&S.y<J.dataLabel.median.y+J.dataLabel.median.height&&(S.y=J.dataLabel.median.y+(W.height/2+4));break;case"low":(0,st.defined)(J,"dataLabel.q1.y")&&J.dataLabel.q1.y!=999&&S.y<J.dataLabel.q1.y+J.dataLabel.q1.height?S.y=J.dataLabel.q1.y+(W.height/2+4):(0,st.defined)(J,"yBottom")&&S.y+W.height>d.plotHeight&&(S.y=d.plotHeight-W.height)}S.y=isNaN(S.y)?0:S.y,q[O?"attr":"animate"](S)}E||(q.attr({y:-999}),q.placed=!1,w.attr({"stroke-opacity":0}))})}},9688:function(tt,ot,lt){var ct=this&&this.__importDefault||function(yt){return yt&&yt.__esModule?yt:{default:yt}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(1284)),ft=ct(lt(1654));ot.default=function(yt){var B=yt.wrap;function st(U){this.hasCartesianSeries&&this.series.forEach(function(z){z.options&&z.options.stacking==="percent"&&(z.userOptions.data.forEach(function(X){X&&(X.originalY=X.y,X.y=Math.abs(X.y))}),z.yData=z.yData.map(Math.abs))}),U.apply(this,[].slice.call(arguments,1))}(0,ft.default)(yt),B(yt.Chart.prototype,"render",st),B(yt.Chart.prototype,"redraw",st),yt.Axis.prototype.renderUnsquish=function(){var U,z,X,V,K,J=this.chart,q=J.renderer,W=this.tickPositions,D=this.ticks,O=this.options.labels,w=O.style,T=this.horiz,d=this.getSlotWidth(),u=Math.max(1,Math.round(d-2*O.padding)),g={},b=this.labelMetrics(),v=w.textOverflow,S=0;if((0,ut.default)(O.rotation)||(g.rotation=O.rotation||0),W.forEach(function(P){var E=D[P];E.movedLabel&&E.replaceMovedLabel(),E&&E.label&&E.label.textPxLength>S&&(S=E.label.textPxLength)}),this.maxLabelLength=S,this.autoRotation)S>u&&S>b.h?g.rotation=this.labelRotation:this.labelRotation=0;else if(d&&(U=u,!v))for(z="clip",V=W.length;!T&&V--;)K=W[V],(X=D[K].label)&&(X.styles&&X.styles.textOverflow==="ellipsis"?X.css({textOverflow:"clip"}):X.textPxLength>d&&X.css({width:d+"px"}),X.getBBox().height>this.len/W.length-(b.h-b.f)&&(X.specificTextOverflow="ellipsis"));g.rotation&&(U=S>.33*J.chartHeight?.28*J.chartHeight:S,v||(z="ellipsis")),this.labelAlign=O.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(g.align=this.labelAlign),W.forEach(function(P){var E=D[P],M=E&&E.label,f=w.width,x={};M&&(M.attr(g),E.shortenLabel?E.shortenLabel():U&&!f&&w.whiteSpace!=="nowrap"&&(U<M.textPxLength||M.element.tagName==="SPAN")?(x.width=U+"px",v||(x.textOverflow=M.specificTextOverflow||z),M.css(x)):M.styles&&M.styles.width&&!x.width&&!f&&M.css({width:null}),delete M.specificTextOverflow,E.rotation=g.rotation)},this),this.tickRotCorr=q.rotCorr(b.b,this.labelRotation||0,this.side!==0)}}},9639:function(tt,ot,lt){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=void 0;var ut=lt(9688);Object.defineProperty(ot,"default",{enumerable:!0,get:function(){return ct(ut).default}})},1654:function(tt,ot,lt){var ct=this&&this.__read||function(U,z){var X=typeof Symbol=="function"&&U[Symbol.iterator];if(!X)return U;var V,K,J=X.call(U),q=[];try{for(;(z===void 0||z-- >0)&&!(V=J.next()).done;)q.push(V.value)}catch(W){K={error:W}}finally{try{V&&!V.done&&(X=J.return)&&X.call(J)}finally{if(K)throw K.error}}return q},ut=this&&this.__spreadArray||function(U,z,X){if(X||arguments.length===2)for(var V,K=0,J=z.length;K<J;K++)!V&&K in z||(V||(V=Array.prototype.slice.call(z,0,K)),V[K]=z[K]);return U.concat(V||Array.prototype.slice.call(z))},ft=this&&this.__importDefault||function(U){return U&&U.__esModule?U:{default:U}};Object.defineProperty(ot,"__esModule",{value:!0});var yt=ft(lt(1857)),B=ft(lt(4402)),st=lt(2930);ot.default=function(U){var z,X=U.fireEvent,V=new Map,K=!1;function J(w,T){for(var d=[w,T],u=0;u<d.length;u++)for(var g=d[u],b=0;b<g.length;b++){for(var v=(b+1)%g.length,S=g[b],P=g[v],E={x:P.y-S.y,y:S.x-P.x},M=void 0,f=void 0,x=0;x<w.length;x++){var l=E.x*w[x].x+E.y*w[x].y;((0,B.default)(M)||l<M)&&(M=l),((0,B.default)(f)||l>f)&&(f=l)}var h=void 0,e=void 0;for(x=0;x<T.length;x++)l=E.x*T[x].x+E.y*T[x].y,((0,B.default)(h)||l<h)&&(h=l),((0,B.default)(e)||l>e)&&(e=l);if(f<h||e<M)return!1}return!0}function q(w,T){return(w.yAxis||[]).some(function(d){return!(!d.options.stackLabels||!d.stacking.stacks)&&Object.values(d.stacking.stacks||[]).some(function(u){return Object.values(u).some(function(g){return g.label===T})})})}function W(w){return w.series&&w.series.some(function(T){return(0,yt.default)(T,"xAxis.axisLine.animating")})}function D(w,T,d){return d&&!(0,B.default)(d.totalsRank)&&q(w,T)?d.totalsRank:T.labelrank||0}function O(){K||(K=!0,V.forEach(function(w,T){if(!W(T)){if(w.length){var d=w[w.length-1];T.hideOverlappingLabels(d.labels,d.options)}V.delete(T)}}),V.size&&(clearTimeout(z),z=setTimeout(O,100)),K=!1)}U.wrap(U.Axis.prototype,"addPlotBandOrLine",function(w){var T=w.apply(this,[].slice.call(arguments,1));return(0,yt.default)(T,"options.isPlotBand")===!0&&(this.sisensePlotBands||(this.sisensePlotBands=[]),this.sisensePlotBands.push(T)),T}),U.wrap(U.PlotLineOrBand.prototype,"render",function(w){var T=this,d=T.axis,u=T.options,g=u.to,b=u.from,v=(0,st.defined)(b)&&(0,st.defined)(g),S=U.pick(u.zIndex,0),P=d.chart.renderer,E=v?"bands":"lines",M={zIndex:S};E+="-labels-"+S;var f=d.plotLinesAndBandsGroups[E];return f||(M.translateX=0,M.translateY=0,d.plotLinesAndBandsGroups[E]=f=P.g("plot-"+E).attr(M).add()),w.apply(this,[].slice.call(arguments,1))}),U.PlotLineOrBand.prototype.renderLabel=function(w,T,d,u){var g=this,b=g.axis,v=b.chart.renderer,S=g.label,P=(d?"bands":"lines")+"-labels-"+u,E=b.plotLinesAndBandsGroups[P];S||(g.label=S=v.text(this.getLabelText(w),0,0,w.useHTML).attr({align:w.textAlign||w.align,rotation:w.rotation,class:"highcharts-plot-"+(d?"band":"line")+"-label "+(w.className||""),zIndex:u}).add(E),b.chart.styledMode||S.css(U.merge({textOverflow:"ellipsis"},w.style)));var M=T.xBounds||[T[0][1],T[1][1],d?T[2][1]:T[0][1]],f=T.yBounds||[T[0][2],T[1][2],d?T[2][2]:T[0][2]],x=(0,st.arrayMin)(M),l=(0,st.arrayMin)(f);if(S.align(w,!1,{x,y:l,width:(0,st.arrayMax)(M)-x,height:(0,st.arrayMax)(f)-l}),!(S.styles.width&&S.styles.width!=="auto"||S.alignValue&&S.alignValue!=="left")){var h=w.clip?b.width:b.chart.chartWidth;S.css({width:(S.rotation===90?b.height-(S.alignAttr.y-b.top):h-(S.alignAttr.x-b.left))+"px"})}S.show(!0)},U.addEvent(U.Chart.prototype,"render",function(){var w=[];(this.xAxis||[]).forEach(function(T){T.plotLinesAndBands&&T.plotLinesAndBands.forEach(function(d){d.label&&d.label.visibility!=="hidden"&&(d.label.isSerieLabel=!0,w.push(d.label))})}),w.length>0&&this.hideOverlappingLabels(w)}),U.Chart.prototype.hideOverlappingLabels=function(w,T){var d=this;T===void 0&&(T={});var u=this;if(W(u))return function(e,r,n){V.has(e)||V.set(e,[]),V.get(e).push({labels:r,options:n}),O()}(u,ut([],ct(w),!1),T);O(),(w=w.filter(function(e){var r=e==null?void 0:e.element,n=(e==null?void 0:e.className)==="stack-labels",i=(e==null?void 0:e.visibility)!=="hidden"||n&&(e==null?void 0:e.placed);return r&&i})).forEach(function(e){e.oldOpacity=e.opacity,e.newOpacity=1,e.polygon=function(r){var n=document.createElementNS("http://www.w3.org/2000/svg","svg"),i=r.element,c=i.transform.baseVal.consolidate().matrix,a=i.getBBox();function s(y,A){var _=n.createSVGPoint();_.x=y,_.y=A;var p=_.matrixTransform(c);return{x:p.x,y:p.y}}return[s(a.x,a.y),s(a.x,a.y+a.height),s(a.x+a.width,a.y+a.height),s(a.x+a.width,a.y)]}(e)}),w.sort(function(e,r){return D(u,r,T)-D(u,e,T)});var g=this.plotBackground&&this.plotBackground.element?this.plotBackground.element.getBoundingClientRect():null,b=g?{x:(0,st.defined)(g.x)?g.x:g.left,y:(0,st.defined)(g.y)?g.y:g.top,width:g.width,height:g.height}:null,v=(0,yt.default)(u,"options.chart.type"),S=v==="area"||v==="areaspline",P=v==="pie";if((S||v==="column"||v==="bar"||v==="line"||v==="bubble"||v==="boxplot")&&b){b.x-=10,b.y-=10,b.width+=20,b.height+=20,S&&!function(e){var r=(e.xAxis||[]).filter(function(n){return(0,yt.default)(n,"options.labels.enabled")});return r.length>1||r.some(function(n){return n.options.plotBands&&n.options.plotBands.length})}(u)&&(b.y-=30,b.height+=30);var E=this.series&&this.series.some(function(e){return(0,yt.default)(e,"options.stacking")==="percent"});w.forEach(function(e){var r,n,i,c;e.newOpacity===0||e.isSerieLabel||E&&q(d,e)||(r=b,n=e.element.getBoundingClientRect(),i=(0,st.defined)(n.x)?n.x:n.left,c=(0,st.defined)(n.y)?n.y:n.top,r.x<=i&&r.y<=c&&r.x+r.width>=i+n.width&&r.y+r.height>=c+n.height)||(e.newOpacity=0)})}for(var M=w.length,f=0;f<M;f++)for(var x=w[f],l=f+1;l<M;++l){var h=w[l];x.polygon&&h.polygon&&x!==h&&x.newOpacity!==0&&h.newOpacity!==0&&J(x.polygon,h.polygon)&&((D(u,x,T)<D(u,h,T)?x:h).newOpacity=0)}w.forEach(function(e){var r,n;e&&(n=e.newOpacity,P&&!e.placed||(n?e.show(!0):r=function(){e.hide()},e.oldOpacity!==n&&(e.alignAttr?(e.alignAttr.opacity=n,e[e.isOld?"animate":"attr"](e.alignAttr,null,r),X(u,"afterHideOverlappingLabels")):e.attr({opacity:n})),e.isOld=!0))})},U.wrap(U.SVGElement.prototype,"animate",function(w,T,d,u){var g=this;return g.animating=!0,w.apply(this,[T,d,function(){g.animating=!1,u?u(arguments):d&&d.complete&&d.complete(arguments)}])})}},4389:function(tt,ot,lt){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(4402));ot.default=function(ft){var yt,B,st=ft.objectEach,U=ft.pick,z="legend-hovered",X=document.documentElement.ontouchstart!==void 0;function V(){clearTimeout(yt),clearTimeout(B),yt=null,B=null}ft.wrap(ft.Legend.prototype,"renderItem",function(K,J){K.call(this,J);var q=J.chart?J.chart:J.series.chart,W=!!J.series,D=q.options.$familyType==="pie",O=W?["graphic"]:["group","markerGroup"],w=J.legendItem.group.element,T=W?J.series.points:this.chart.series;function d(E){var M=[];return(E.yAxis||[]).forEach(function(f){f.options.stackLabels&&!f.options.stackLabels.allowOverlap&&st(f.stacking.stacks,function(x){st(x,function(l){l&&l.label&&(l.label.isStackLabel=!0),M.push(l.label)})})}),M}function u(){B=null,yt||S(J)}function g(){var E;yt=null,B||(E=J,(q.series||[]).forEach(function(M){M!==E&&S(M)}))}function b(E,M){q.hideOverlappingLabels(E,M)}function v(E){(q.series||[]).forEach(function(M){M===E&&(M.dataLabelCollections||["dataLabel"]).forEach(function(f){M.points.forEach(function(x){var l=x[String(f)];l&&l.visibility!=="hidden"&&(l.prevOpacity=l.opacity,l.opacitySetter(0,"opacity",l.element),l.prevVisibility=l.visibility,l.visibilitySetter("hidden","visibility",l.element))})})})}function S(E){(q.series||[]).forEach(function(M){if(M===E){(M.dataLabelCollections||["dataLabel"]).forEach(function(l){M.points.forEach(function(h){var e=h[String(l)];if(e&&e.visibility==="hidden"){var r=(0,ut.default)(e.prevOpacity)?1:e.prevOpacity;e.prevOpacity=e.opacity,e.opacitySetter(r,"opacity",e.element);var n=(0,ut.default)(e.prevVisibility)?"visible":e.prevVisibility;e.prevVisibility=e.visibility,e.visibilitySetter(n,"visibility",e.element)}})});var f=P(M),x=d(q);b([].concat(f,x),{totalsRank:Number.MIN_SAFE_INTEGER})}})}function P(E){var M=[],f=E.options.dataLabels,x=E.dataLabelCollections||["dataLabel","dataLabelsGroup"];return f&&(f.enabled||E._hasPointLabels)&&!f.allowOverlap&&E.visible&&x.forEach(function(l){E.points&&E.points.forEach(function(h){h[l]&&(h[l].labelrank=U(h.labelrank,h.shapeArgs&&h.shapeArgs.height),M.push(h[l]))})}),M}(0,ut.default)(T)&&(T=[]),X||(w.onmouseover=function(){if(J.visible){V();var E=W&&J.series.halo;E&&E.attr({d:"M 0 0"}),T.forEach(function(M){M!==J&&M.visible&&(O.forEach(function(f){M[f]&&M[f].animate({opacity:.15},{duration:400})}),v(M))}),O.forEach(function(M){J[M]&&J[M].addClass(z)}),D||(B=setTimeout(u,100))}},w.onmouseout=function(){J.visible&&(V(),T.forEach(function(E){E.visible&&E!==J&&O.forEach(function(M){E[M]&&E[M].animate({opacity:1},{duration:400})})}),O.forEach(function(E){J[E]&&J[E].removeClass(z)}),D||(yt=setTimeout(g,100)))},w.addEventListener("click",function(){V();var E=[];T.forEach(function(f){f.visible?(O.forEach(function(x){f[x]&&f[x].animate({opacity:1},{duration:50})}),E=E.concat(P(f))):(O.forEach(function(x){f[x]&&f[x].animate({opacity:.25},{duration:150})}),v(f))});var M=d(q);b(E=E.concat(M))}))})}},2372:(tt,ot)=>{Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=function(lt){var ct=lt.defaultOptions,ut=ct.plotOptions,ft={fillOpacity:.2,color:null,borderColor:null},yt={fillColor:null,lineColor:null,lineWidth:2};ct.plotOptions.column.states.select=ft,ct.plotOptions.area.states.select=ft,ct.plotOptions.bar.states.select=ft,ct.plotOptions.line.states.select=ft,ct.plotOptions.spline.states.select=ft,ct.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}}},ct.plotOptions.series={states:{select:ft}},ut.area.marker.states.select=yt,ut.line.marker.states.select=yt,ut.spline.marker.states.select=yt,ut.bubble.marker.states.select={fillOpacity:.25,fillColor:null,lineColor:null,lineWidth:1},lt.timeUnits.month=26784e5,lt.timeUnits.year=31556952e3}},1639:function(tt,ot,lt){var ct=this&&this.__assign||function(){return ct=Object.assign||function(z){for(var X,V=1,K=arguments.length;V<K;V++)for(var J in X=arguments[V])Object.prototype.hasOwnProperty.call(X,J)&&(z[J]=X[J]);return z},ct.apply(this,arguments)},ut=this&&this.__read||function(z,X){var V=typeof Symbol=="function"&&z[Symbol.iterator];if(!V)return z;var K,J,q=V.call(z),W=[];try{for(;(X===void 0||X-- >0)&&!(K=q.next()).done;)W.push(K.value)}catch(D){J={error:D}}finally{try{K&&!K.done&&(V=q.return)&&V.call(q)}finally{if(J)throw J.error}}return W},ft=this&&this.__spreadArray||function(z,X,V){if(V||arguments.length===2)for(var K,J=0,q=X.length;J<q;J++)!K&&J in X||(K||(K=Array.prototype.slice.call(X,0,J)),K[J]=X[J]);return z.concat(K||Array.prototype.slice.call(X))},yt=this&&this.__importDefault||function(z){return z&&z.__esModule?z:{default:z}};Object.defineProperty(ot,"__esModule",{value:!0});var B=yt(lt(1857)),st=yt(lt(4891)),U=lt(2930);ot.default=function(z){var X=z.removeEvent,V=z.splat,K=z.isArray,J=z.defaultOptions.plotOptions,q=z.fireEvent,W=z.color,D=z.extend,O=z.isNumber,w=z.merge,T=z.pick,d=z.Series,u=z.Point,g=navigator.userAgent,b=/(ipad|iphone|ipod)/g.test(g.toLowerCase()),v=document.documentElement.ontouchstart!==void 0,S=z.defaultOptions,P="highcharts-",E="hover";z.Axis.prototype.allowNegativeLog=!0,z.addEvent(z.Axis,"afterInit",function(){var M=this.logarithmic;M&&(this.positiveValuesOnly=!1,M.log2lin=function(f){var x=f<0,l=Math.abs(f);l<10&&(l+=(10-l)/10);var h=Math.log(l)/Math.LN10;return x?-h:h},M.lin2log=function(f){var x=f<0,l=Math.pow(10,Math.abs(f));return l<10&&(l=10*(l-1)/9),x?-l:l})}),z.Series.prototype.setPercentStacks=function(){var M,f=this,x=f.stackKey,l=f.yAxis.stacking.stacks,h=new RegExp(/navigator.\d*/gi);M=f.name.match(h)?f.chart.yAxis[1].options.max||100:f.chart.yAxis[f.options.yAxis||0].options.max||100,[x,"-"+x].forEach(function(e){for(var r,n,i,c,a=f.xData.length;a--;)r=f.xData[a],(i=(n=l[e]&&l[e][r])&&n.points[f.index])&&(c=n.total?100/n.total:0,i[0]=(0,U.correctFloat)(i[0]*c*((0,U.defined)(M)?M/100:1)),i[1]=(0,U.correctFloat)(i[1]*c*((0,U.defined)(M)?M/100:1)),f.stackedYData[a]=i[1])})},z.seriesTypes.area.prototype.getStackPoints=function(M){var f=this,x=[],l=[],h=this.xAxis,e=this.yAxis,r=e.stacking.stacks[this.stackKey],n={},i=e.series,c=i.length,a=e.options.reversedStacks?1:-1,s=i.indexOf(f);if(M=M||this.points,this.options.stacking){for(var y=0;y<M.length;y++)M[y].leftNull=M[y].rightNull=void 0,n[M[y].x]=M[y];z.objectEach(r,function(_,p){_.total!==null&&l.push(p)}),l.sort(function(_,p){return _-p});var A=i.map(function(_){return _.visible});l.forEach(function(_,p){var C,k,F=0;if(n[_]&&!n[_].isNull)x.push(n[_]),[-1,1].forEach(function(j){var N=j===1?"rightNull":"leftNull",Z=j===1?"rightCliff":"leftCliff",$=r[l[p+j]],Y=0;if($)for(var et=s;et>=0&&et<c;){var rt=i[et].index;(C=$.points[rt])||(rt===f.index?n[_][N]=!0:A[et]&&(k=r[_].points[rt])&&(Y-=k[1]-k[0])),et+=a}n[_][Z]=Y});else{for(var G=s;G>=0&&G<c;){var I=i[G].index;if(C=r[_].points[I]){F=C[1];break}G+=a}F=T(F,0),F=e.translate(F,0,1,0,1),x.push({isNull:!0,plotX:h.translate(_,0,0,0,1),x:_,plotY:F,yBottom:F,isDividerNull:n[_]&&n[_].isDividerNull})}})}return x},z.seriesTypes.areaspline.prototype.getStackPoints=z.seriesTypes.area.prototype.getStackPoints,z.seriesTypes.area.prototype.getGraphPath=function(M){var f,x,l,h=z.seriesTypes.line.prototype.getGraphPath,e=this.options,r=e.stacking,n=this.yAxis,i=[],c=[],a=this.index,s=n.stacking.stacks[this.stackKey],y=e.threshold,A=Math.round(n.getThreshold(e.threshold)),_=T(e.connectNulls,r==="percent"),p=function(rt,it,ht){var dt,bt,xt=M[rt],St=r&&s[xt.x].points[a],wt=xt[ht+"Null"]||0,mt=xt[ht+"Cliff"]||0,at=!0;mt||wt?(dt=(wt?St[0]:St[1])+mt,bt=St[0]+mt,at=!!wt):!r&&M[it]&&M[it].isNull&&(dt=bt=y),dt!==void 0&&(c.push({plotX:f,plotY:dt===null?A:n.getThreshold(dt),isNull:at,isCliff:!0}),i.push({plotX:f,plotY:bt===null?A:n.getThreshold(bt),doCurve:!1}))};M=M||this.points,r&&(M=this.getStackPoints(M));for(var C=0,k=M.length;C<k;++C)if(r||(M[C].leftCliff=M[C].rightCliff=M[C].leftNull=M[C].rightNull=void 0),x=M[C].isNull,f=T(M[C].rectPlotX,M[C].plotX),l=r?T(M[C].yBottom,A):A,!x||_){var F=M[C-1],G=M[C+1],I=!M[C].isDividerNull&&F&&F.isDividerNull,j=!M[C].isDividerNull&&G&&G.isDividerNull;_&&!I||p(C,C-1,"left"),x&&!r&&_||(c.push(M[C]),i.push({x:C,plotX:f,plotY:l})),_&&!j||p(C,C+1,"right")}var N=h.call(this,c,!0,!0);i.reversed=!0;var Z=h.call(this,i,!0,!0),$=Z[0];$&&$[0]==="M"&&(Z[0]=["L",$[1],$[2]]);var Y=N.concat(Z);Y.length&&Y.push(["Z"]);var et=h.call(this,c,!1,_);return Y.xMap=N.xMap,this.areaPath=Y,et},z.seriesTypes.areaspline.prototype.getGraphPath=z.seriesTypes.area.prototype.getGraphPath,z.Series.prototype.pointAttribs=function(M,f){var x,l,h,e,r,n,i=this.options.marker,c=M&&M.options,a=c&&c.marker||{},s=this.color,y=c&&c.color,A=M&&M.color,_=T(a.lineWidth,i.lineWidth),p=M&&M.zone&&M.zone.color;return s=y||p||A||s,h=a.fillColor||i.fillColor||s,e=a.lineColor||i.lineColor||s,r=1,n=1,f&&(x=i.states[f],l=a.states&&a.states[f]||{},_=T(l.lineWidth,x.lineWidth,_+T(l.lineWidthPlus,x.lineWidthPlus,0)),h=l.fillColor||x.fillColor||h,e=l.lineColor||x.lineColor||e,r=l.fillOpacity||x.fillOpacity||1,n=l.fillOpacity||x.fillOpacity||1),{stroke:e,"stroke-width":_,"stroke-opacity":n,"fill-opacity":r,fill:h}},z.Point.prototype.setState=function(M,f){var x,l,h,e=this,r=Math.floor(e.plotX),n=e.plotY,i=e.series,c=i.options.states[M]||{},a=J[i.type].marker&&i.options.marker,s=a&&a.enabled===!1,y=a&&a.states&&a.states[M]||{},A=y.enabled===!1,_=i.stateMarkerGraphic,p=e.marker||{},C=i.chart,k=i.halo,F=a&&i.markerAttribs;if(!((M=M||"")===e.state&&!f||e.selected&&M!=="select"||c.enabled===!1||M&&(A||s&&y.enabled===!1)||M&&p.states&&p.states[M]&&p.states[M].enabled===!1)){if(F&&(l=i.markerAttribs(e,M)),e.graphic){e.state&&e.graphic.removeClass("highcharts-point-"+e.state),M&&e.graphic.addClass("highcharts-point-"+M);var G=e.innerBoxColor||i.color,I={fill:G,"fill-opacity":.8,stroke:i.color,"stroke-opacity":1,"stroke-width":1};if(e.selected){var j=.3;I.fill=G,I["fill-opacity"]=j,I["stroke-opacity"]=j}M==="hover"&&(j=.9,I.fill=G,I["fill-opacity"]=j,I["stroke-opacity"]=j);var N={fill:G,"fill-opacity":1,stroke:W,"stroke-width":1},Z=ct({},I),$=i.pointAttribs(e,M);e.graphic.attr($),e.stem&&e.stem.attr({}),e.whiskers&&e.whiskers.attr({}),e.box&&(e.box.attr(Z),e.box.attr("stroke",Z.stroke),e.innerBox.attr(N)),e.medianShape&&e.medianShape.attr({}),l&&e.graphic.animate(l,T(C.options.chart.animation,y.animation,a.animation)),_&&_.hide()}else M&&y&&(h=p.symbol||i.symbol,_&&_.currentSymbol!==h&&(_=_.destroy()),_?_[f?"animate":"attr"]({x:l.x,y:l.y}):h&&(i.stateMarkerGraphic=_=C.renderer.symbol(h,l.x,l.y,l.width,l.height).add(i.markerGroup),_.currentSymbol=h),_&&_.attr(i.pointAttribs(e,M))),_&&(_[M&&C.isInsidePlot(r,n,C.inverted)?"show":"hide"](),_.element.point=e);(x=c.halo)&&x.size?(k||(i.halo=k=C.renderer.path().add((e.graphic||_).parentGroup)),k[f?"animate":"attr"]({d:e.haloPath(x.size)}),k.attr({class:"highcharts-halo highcharts-color-"+T(e.colorIndex,i.colorIndex)}),k.point=e,k.attr(D({fill:e.color||i.color,"fill-opacity":x.opacity,zIndex:-1},x.attributes))):k&&k.point&&k.point.haloPath&&k.animate({d:k.point.haloPath(0)}),e.state=M}},z.Point.prototype.applyOptions=function(M,f){var x=this,l=x.series,h=l.options.pointValKey||l.pointValKey;return M=u.prototype.optionsToObject.call(this,M),D(x,M),x.options=x.options?D(x.options,M):M,M.group&&delete x.group,h&&(x.y=x[h]),x.isNull=T(x.isValid&&!x.isValid(),x.x===null||x.y===null||!O(x.y,!0)),x.selected&&(x.state="select"),"name"in x&&f===void 0&&l.xAxis&&l.xAxis.hasNames&&(x.x=l.xAxis.nameToX(x)),x.x===void 0&&l&&(x.x=f===void 0?l.autoIncrement(x):f),x},z.seriesTypes.column.prototype.pointAttribs=function(M,f){var x,l,h,e,r,n=this.options,i=this.pointAttrToOptions||{},c=i.stroke||"borderColor",a=i["stroke-width"]||"borderWidth",s=M&&M.color||this.color,y=M[c]||n[c]||this.color||s,A=M[a]||n[a]||this[a]||0,_=n.dashStyle;return M&&this.zones.length&&(s=(e=M.getZone())&&e.color||M.options.color||this.color),f&&(r=(x=n.states[f]).brightness,l=x.fillOpacity,s=x.color||r!==void 0&&W(s).brighten(x.brightness).get()||s,l&&l!==1&&(s=W(s).setOpacity(l).get("rgba")),y=x[c]||y,A=x[a]||A,_=x.dashStyle||_),h={fill:s,stroke:y,"stroke-width":A},n.borderRadius&&(h.r=n.borderRadius),_&&(h.dashstyle=_),h},z.seriesTypes.scatter.prototype.pointAttribs=function(M,f){var x=f?this.options.marker.states[f]:this.options.marker,l=T(x.fillOpacity,.5),h=d.prototype.pointAttribs.call(this,M,f);return l!==1&&(h.fill=W(h.fill).setOpacity(l).get("rgba")),h},z.seriesTypes.bubble.prototype.pointAttribs=function(M,f){var x=f?this.options.marker.states[f]:this.options.marker,l=T(x.fillOpacity,.5),h=d.prototype.pointAttribs.call(this,M,f);return l!==1&&(h.fill=W(h.fill).setOpacity(l).get("rgba")),h},z.seriesTypes.boxplot.prototype.pointAttribs=function(M,f){var x=f?this.options.states[f]:this.options,l=T(x.fillOpacity,.5),h=M&&M.color||this.color,e=M.fillColor||x.fillColor||h;return l!==1&&(e=W(e).setOpacity(l).get("rgba")),{fill:e,stroke:x.lineColor||h,"stroke-width":x.lineWidth||0}},z.Pointer.prototype.onContainerClick=function(M){var f,x,l,h=this.chart,e=h.hoverPoint,r=h.plotLeft,n=h.plotTop,i=h.inverted,c=M.type;M=this.normalize(M),h.cancelClick||(e&&this.inClass(M.target,P+"tracker")?(f=this.chartPosition,x=e.plotX,l=e.plotY,D(e,{pageX:f.left+r+(i?h.plotWidth-l:x),pageY:f.top+n+(i?h.plotHeight-x:l)}),q(e.series,c,D(M,{point:e})),h.hoverPoint&&e.firePointEvent(c,M)):(D(M,this.getCoordinates(M)),h.isInsidePlot(M.chartX-r,M.chartY-n)&&q(h,"click",M)))},z.Pointer.prototype.onContainerTapHold=function(M){var f,x,l,h=this.chart,e=h.hoverPoint,r=h.plotLeft,n=h.plotTop,i=h.inverted,c="contextmenu";(M=this.normalize(M)).hasTapHold=!0,h.cancelClick||e&&this.inClass(M.target,P+"tracker")&&(f=this.chartPosition,x=e.plotX,l=e.plotY,D(e,{pageX:f.left+r+(i?h.plotWidth-l:x),pageY:f.top+n+(i?h.plotHeight-x:l)}),q(e.series,c,D(M,{point:e})),h.hoverPoint&&(M.type="taphold",M.point=e,M.target=h,e.firePointEvent(c,M)))},z.Pointer.prototype.setDOMEvents=function(){var M,f=this,x=f.chart.container;this.unbindContainerMouseLeave=function(){},this._events=M=[[x,"onmousedown","onContainerMouseDown"],[x,"onmousemove","onContainerMouseMove"],[x,"onclick","onContainerClick"],[x,"mouseleave","onContainerMouseLeave"],[x,"contextmenu","onContainerClick"],[x,"mousemove","onDocumentMouseMove"],[x,"mouseup","onDocumentMouseUp"]],v&&b&&M.push([x,"taphold","onContainerClick"]),v&&M.push([x,"ontouchmove","onContainerTouchMove"],[x,"ontouchstart","onContainerTouchStart"],[x,"taphold","onContainerTapHold"],[document,"touchend","onDocumentTouchEnd"]),M.forEach(function(l){var h=ut(l,3),e=h[0],r=h[1],n=h[2];f["_"+n]=function(i){typeof f[l[2]]=="function"&&f[l[2]](i)},r.indexOf("on")===0?e[r]=f["_"+n]:e.addEventListener(r,f["_"+n])})},z.Navigator.prototype.updateNavigatorSeries=function(M,f){var x,l,h,e=this,r=e.chart,n=e.baseSeries,i={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}},visible:!0},c=e.series=(e.series||[]).filter(function(s){var y=s.baseSeries;return!(n.indexOf(y)<0&&(y&&(X(y,"updatedData",e.updatedDataHandler),delete y.navigatorSeries),s.chart&&s.destroy(),1))}),a=e.navigatorOptions.series;n&&n.length&&n.forEach(function(s){var y,A=s.navigatorSeries,_=D({color:s.color,visible:s.visible},K(a)?S.navigator.series:a);if(!A||e.navigatorOptions.adaptToUpdatedData!==!1){i.name="Navigator "+n.length,(x=s.options||{}).navigatorOptions=ct(ct({},x.navigatorOptions),{marker:ct(ct({},(y=x.navigatorOptions)===null||y===void 0?void 0:y.marker),{radius:0})}),h=x.navigatorOptions||{},_.dataLabels=V(_.dataLabels),(l=w(x,i,_,h)).pointRange=T(_.pointRange,h.pointRange,S.plotOptions[l.type||"line"].pointRange);var p=h.data||_.data;e.hasNavigatorData=e.hasNavigatorData||!!p,l.data=p||x.data&&x.data.slice(0),l.color=x.color,l.fillOpacity=x.fillOpacity,l.type!=="spline"&&l.type!=="areaspline"||(l.stacking=x.stacking),x.stacking!=="percent"&&x.stacking!=="normal"||(l.stacking=x.stacking,l.startFromThreshold=!1),A&&A.options?A.update(l,f):(s.navigatorSeries=r.initSeries(l),s.navigatorSeries.baseSeries=s,c.push(s.navigatorSeries))}}),(!a.data||n&&n.length)&&!K(a)||(e.hasNavigatorData=!1,(a=V(a)).forEach(function(s,y){i.name="Navigator "+(c.length+1),(l=w(S.navigator.series,{color:r.series[y]&&!r.series[y].options.isInternal&&r.series[y].color||r.options.colors[y]||r.options.colors[0]},i,s)).data=s.data,l.data&&(e.hasNavigatorData=!0,c.push(r.initSeries(l)))})),M&&this.addBaseSeriesEvents()},z.seriesTypes.scatter.prototype.drawLegendSymbol=z.seriesTypes.column.prototype.drawLegendSymbol,(0,U.wrap)(z.Pointer.prototype,"runPointActions",function(M,f,x){var l,h=f,e=this.chart;M.call(this,f,x);var r=e.hoverPoint,n=e.hoverSeries;if(h&&e.hoverPoint&&(a=h.touches?h.touches.length&&h.touches.item?h.touches.item(0):h.changedTouches?h.changedTouches[0]:h:h)&&a.clientX&&a.clientY){for(var i=document.elementFromPoint(a.clientX,a.clientY);i&&!l;)l=i.point,i=i.parentNode;l&&e.hoverPoint!=l&&l.onMouseOver(h)}(0,U.defined)(r)||(0,U.defined)(n)||(0,B.default)(e,"sisenseTipper.status")!=="on"||!e.sisenseTipper.tipper||(e.sisenseTipper.tipper.deactivate(),(0,st.default)(e,"sisenseTipper.status","off"));var c=(0,B.default)(e,"sisenseTipper.chartType");if((0,B.default)(e,"sisenseTipper.status")!=="off"&&(0,B.default)(e,"sisenseTipper.tipper")&&(c==="pie"||c==="scatter"||c==="bubble"||h.type==="touchmove")){var a=h.touches?h.touches.length&&h.touches.item?h.touches.item(0):h.changedTouches?h.changedTouches[0]:h:h;e.sisenseTipper.tipper.activate({x:a.clientX,y:a.clientY,space:0})}}),(0,U.wrap)(z.Chart.prototype,"getContainer",function(M,f,x){M.call(this,f,x);var l,h=this;h.renderTo=l=h.container.parentElement,l.setAttribute("data-type",(0,B.default)(h,"options.chart.type"))}),(0,U.wrap)(z.Chart.prototype,"setChartSize",function(M){var f,x,l,h,e=this.legend,r=this.navigator;if(M.apply(this,[].slice.call(arguments,1)),r){if(x=e&&e.options,l=r.xAxis,h=r.yAxis,f=r.scrollbarHeight,this.inverted){var n=r.opposite?this.chartWidth-f-r.height:this.spacing[3]+f,i=this.plotTop+f;x.align==="left"&&e.legendWidth&&(n+=e.legendWidth),r.left=r.navigatorOptions.left||n,r.top=r.navigatorOptions.top||i}l&&h&&(this.inverted?l.options.left=h.options.left=r.left:l.options.top=h.options.top=r.top,l.setAxisSize(),h.setAxisSize())}}),(0,U.wrap)(z.Chart.prototype,"renderLabels",function(M){var f,x,l,h=this;if(M.apply(this,[].slice.call(arguments,1)),h&&h.polar&&h.userOptions&&((f=h.userOptions)===null||f===void 0?void 0:f.labels)&&((l=(x=h.userOptions.labels)===null||x===void 0?void 0:x.items)===null||l===void 0?void 0:l.length)){var e=20,r=20,n=void 0,i=h.userOptions.labels.items[0].html,c=ft([],ut(h.container.querySelectorAll("text")),!1).find(function(C){return C.innerHTML.includes(i)}),a=h.containerWidth,s=c.clientWidth,y=c.getBBox(),A=y.height?y.height:r,_=a/2-s/2,p=void 0;h.legend.options.verticalAlign==="top"?(n=h.legend.legendHeight+e+A)>h.plotTop&&(p=e+A,n=h.legend.legendHeight+p/2+e/2,h.legend.update({margin:p},!0)):(n=r)>h.plotTop&&(p=e+A,n=e/2+A,h.update({chart:{marginTop:p}},!0)),c.setAttribute("x",_),c.setAttribute("y",n)}}),z.wrap(z.SVGElement.prototype,"titleSetter",function(M,f){var x,l,h=this.element.getElementsByTagName("title")[0];h||(h=document.createElementNS(this.SVG_NS,"title"),this.element.appendChild(h)),h.firstChild&&h.removeChild(h.firstChild),h.appendChild(document.createTextNode((x=this.renderer.escapes,l=f,z.objectEach(x,function(e,r){l=l.replace(new RegExp(e,"g"),r)}),l)))}),(0,U.wrap)(z.Chart.prototype,"renderLabels",function(M){var f=this;M.apply(this,[].slice.call(arguments,1)),f.chartBackground.addClass("widget-body")}),(0,U.wrap)(z.Legend.prototype,"renderItem",function(M,f){var x=this,l=x.options,h=f.legendItem,e=!f.series,r=!e&&f.series.drawLegendSymbol?f.series:f,n=l.useHTML;M.apply(this,[].slice.call(arguments,1)),/msie|trident/i.exec(navigator.userAgent)&&f.legendItem.group.element.addEventListener("contextmenu",function(i){var c="legendItemClick",a={eventType:"contextmenu",browserEvent:i};return f.firePointEvent?f.firePointEvent(c,a,null):q(r,c,a,null),!1}),(n?h:f.legendItem.group).on("mouseover",function(){var i;f.setState(E),h&&((i=h.css)===null||i===void 0||i.call(h,x.options.itemHoverStyle))}).on("contextmenu",function(i){var c="legendItemClick",a={eventType:"contextmenu",browserEvent:i};return f.firePointEvent?f.firePointEvent(c,a,null):q(r,c,a,null),!1})}),(0,U.wrap)(z.StackItem.prototype,"render",function(M){var f=this.options,x=(0,B.default)(this,"axis.chart.options.chart.type"),l=5;if(this.alignOptions&&this.total!==void 0&&(x==="column"||x==="bar"&&Math.abs(f.rotation)===90)&&(this.alignOptions.y=this.alignOptions.x=0),M.apply(this,[].slice.call(arguments,1)),this.total!==void 0){var h=this.label.getBBox(!0,0),e=this.label.getBBox(),r=-Math.sign(this.total),n=0,i=0;if(x==="column"?(this.total<0||Math.abs(f.rotation)===90?n=e.height/2*r:Math.abs(f.rotation)===45&&this.total>0&&(n=-h.width/2*Math.sin(45*Math.PI/180)),Math.abs(f.rotation)===45&&(i+=-e.width/4*r),Math.abs(f.rotation)===90&&(i+=h.height/4),n+=l*r):x==="bar"&&Math.abs(f.rotation)===90&&(n=-e.height/2*r,this.total>=0&&(i+=h.height/2),i+=-l*r),this.label.translate(i,n),this.label&&!this.label.labelrank){var c=this.total===0?Number.MIN_SAFE_INTEGER:0;this.label.labelrank=this.x+f.labelrank+c}}}),z.wrap(z,"fireEvent",function(M,f,x,l){var h=new Event(x),e=(0,B.default)(l,"changedTouches"),r=(0,B.default)(l,"point.graphic.element");D(h,l),e&&(h.clientX=(0,B.default)(e,"0.clientX"),h.clientY=(0,B.default)(e,"0.clientY"),h.target=r),M.apply(this,[].slice.call(arguments,1))}),(0,U.wrap)(z.Point.prototype,"getLabelConfig",function(M){var f=M.apply(this,[].slice.call(arguments,1));return this.originalY&&(f.y=this.originalY),f}),(0,U.wrap)(z.seriesTypes.column.prototype,"alignDataLabel",function(M,f,x,l){var h=f.series.options.stacking,e=this.chart.inverted,r=l.rotation,n=f.y<0&&f.dataLabel,i=f.dlBox,c=f.dataLabel.getBBox();if(!h&&n){f.below=!0;var a=w(f.dlBox||f.shapeArgs),s=e?c.width:c.height;a.y+=s,f.dlBox=a}else h&&(l.align="center");!h&&r&&(c=f.dataLabel.getBBox(),e?l.x+=.5*c.width:n&&Math.abs(r)%360==45&&(l.x=.5*-c.width));var y=M.apply(this,[].slice.call(arguments,1));return f.dlBox=i,y}),z.Scroller=z.Navigator}},9984:function(tt,ot,lt){var ct=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(1857)),ft=lt(2930),yt=ct(lt(4052));ot.default=function(B){var st=B.wrap;st(B.seriesTypes.pie.prototype,"drawDataLabels",function(U,z,X){var V,K=this,J=K.chart.renderer;U.call(this,z,X);var q=function(O){var w,T,d,u,g,b,v,S,P,E,M,f,x,l,h,e,r,n,i,c,a=(0,ut.default)(O,"shapeArgs.x")+O.series.chart.plotBox.x,s=(0,ut.default)(O,"shapeArgs.y")+O.series.chart.plotBox.y,y=(0,ut.default)(O,"shapeArgs.innerR"),A=(0,ut.default)(O,"shapeArgs.r")-y,_={},p=O.shapeArgs;d=p.r*Math.sin(p.start+1.571)+a,u=p.r*Math.cos(p.start+1.571)*-1+s,M=d-(w=p.r*Math.sin((p.end+1.571+p.start+1.571)/2)+a),f=u-(T=p.r*Math.cos((p.end+1.571+p.start+1.571)/2)*-1+s),E=s-u,(P=a-d)==0?(v=1,S=0,l=1):(v=E/P,S=1,l=Math.sqrt(Math.pow(v,2)+Math.pow(S,2)),p.start+1.571>Math.PI?S*=-1:v*=-1),g=a-w,h=(P*f/E-M)/(P*(b=s-T)/(E*(x=Math.sqrt(Math.pow(g,2)+Math.pow(b,2))))-P*S/(E*l)+v/l-g/x),e=w+g/x*Math.abs(h),r=T+b/x*Math.abs(h),n=Math.sqrt(Math.pow(e-w,2)+Math.pow(r-T,2));var C=p.end-p.start,k=Math.round((0,ft.radiansToDegrees)(C)),F=(0,ft.radiansToDegrees)(Math.PI);return(2*n>A||k>=F)&&(e=w+g/x*(n=A/2),r=T+b/x*n),c=(0,ut.default)(O,"series.chart.options.plotOptions.pie.dataLabels.showDecimals")===!0?O.percentage.toFixed(1).replace(".0",""):Math.round(O.percentage),(0,ft.defined)(_[c])?i=_[c]:(i=n/1.5,_[c]=i),{fontSize:i,slicePercentage:c,newCenterX:e,newCenterY:r,circleCenterX:a,circleCenterY:s}},W=function(O,w,T,d){var u=J.text(w.slicePercentage+"%",w.newCenterX,w.newCenterY),g={class:"pie-percent-label",zIndex:13,"text-anchor":"middle","font-size":w.fontSize},b={"pointer-events":"none","font-family":(0,ut.default)(d,"options.dataLabels.style.fontFamily",yt.default.fontFamily),"letter-spacing":"-0.05em",color:"white",fontSize:!1},v=u.attr(g).attr(T).add(),S=u.element.getBBox().height/4,P={x:w.newCenterX,y:w.newCenterY+S};O.sisenseLabel=v.css(b).attr(P).add()},D=(0,ut.default)(K,"chart.options.chart.isHighlightMode");K.points.forEach(function(O){var w,T;if(O.graphic){if((0,ut.default)(O,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0)if(w=q(O),T=(0,ut.default)(O,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),w.fontSize>T)if((0,ft.defined)((0,ut.default)(O,"sisenseLabel.element"))){var d={x:w.newCenterX,y:w.newCenterY};D&&(d.translateX=O.sliced?O.slicedTranslation.translateX:0,d.translateY=O.sliced?O.slicedTranslation.translateY:0),O.sisenseLabel.attr({text:w.slicePercentage+"%","font-size":w.fontSize}).animate(d)}else W(O,w,V,K),O.sisenseLabel&&D&&((d={x:w.newCenterX,y:w.newCenterY}).translateX=O.sliced?O.slicedTranslation.translateX:0,d.translateY=O.sliced?O.slicedTranslation.translateY:0,O.sisenseLabel.attr({text:w.slicePercentage+"%","font-size":w.fontSize}).attr(d));else(0,ft.defined)((0,ut.default)(O,"sisenseLabel.element"))&&O.sisenseLabel.destroy()}else(0,ut.default)(O,"series.chart.options.plotOptions.pie.dataLabels.showPercentLabels")===!0&&(w=q(O),T=(0,ut.default)(O,"series.chart.options.plotOptions.pie.dataLabels.pieMinimumFontSizeToTextLabel"),w.fontSize>T&&W(O,w,V,K))})}),st(B.Point.prototype,"destroyElements",function(U,z,X){for(var V,K=this,J=["decoration","sisenseLabel"],q=J.length;q--;)K[V=J[q]]&&K.visible&&K[V].renderer&&K[V].destroy();U.call(this,z,X)}),st(B.seriesTypes.pie.prototype.pointClass.prototype,"slice",function(U){var z=this;U.apply(this,[].slice.call(arguments,1)),(0,ut.default)(z,"sisenseLabel.renderer")&&z.sisenseLabel.animate(this.getTranslate())}),B.seriesTypes.pie.prototype.placeDataLabels=function(){this.points.forEach(function(U){var z,X=U.dataLabel;X&&U.visible&&((z=X._pos)?(X.sideOverflow&&(X._attr.width=X.getBBox().width-X.sideOverflow,X.css({width:X._attr.width+"px",textOverflow:"ellipsis"}),X.shortened=!0),X.attr(X._attr),X[X.moved?"animate":"attr"](z),X.moved=!0):X&&X.attr({y:-9999}))},this)},B.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",""):"")}}},7155:function(tt,ot,lt){var ct=this&&this.__importDefault||function(T){return T&&T.__esModule?T:{default:T}};Object.defineProperty(ot,"__esModule",{value:!0});var ut=ct(lt(3491)),ft=ct(lt(3805)),yt=ct(lt(7274)),B=ct(lt(8291)),st=ct(lt(7330)),U=ct(lt(8693)),z=ct(lt(7922)),X=ct(lt(1548)),V=ct(lt(3968)),K=ct(lt(8040)),J=ct(lt(4389)),q=ct(lt(2372)),W=ct(lt(9984)),D=ct(lt(9639)),O=ct(lt(1639)),w=ct(lt(548));(0,yt.default)(ut.default),(0,ft.default)(ut.default),(0,B.default)(ut.default),(0,st.default)(ut.default),(0,U.default)(ut.default),(0,z.default)(ut.default),(0,X.default)(ut.default),(0,V.default)(ut.default),(0,q.default)(ut.default),(0,W.default)(ut.default),(0,D.default)(ut.default),(0,O.default)(ut.default),(0,K.default)(ut.default),(0,J.default)(ut.default),ut.default.setOptions(w.default),ot.default=ut.default},2930:function(tt,ot,lt){var ct=this&&this.__importDefault||function(ft){return ft&&ft.__esModule?ft:{default:ft}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.arrayMax=ot.arrayMin=ot.correctFloat=ot.radiansToDegrees=ot.defined=ot.wrap=void 0;var ut=ct(lt(1857));ot.wrap=function(ft,yt,B){var st=ft[yt];ft[yt]=function(){var U=Array.prototype.slice.call(arguments);return U.unshift(st),B.apply(this,U)}},ot.defined=function(ft,yt){return yt===void 0||yt==="null"||yt===""?ft!=null:(0,ut.default)(ft,yt)!==void 0},ot.radiansToDegrees=function(ft){return 180*ft/Math.PI},ot.correctFloat=function(ft){return parseFloat(ft.toPrecision(14))},ot.arrayMin=function(ft){for(var yt=ft.length,B=ft[0];yt--;)ft[yt]<B&&(B=ft[yt]);return B},ot.arrayMax=function(ft){for(var yt=ft.length,B=ft[0];yt--;)ft[yt]>B&&(B=ft[yt]);return B}},3805:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Core/Math3D.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=U.deg2rad,V=z.pick;function K(W,D,O,w){var T=D.options.chart.options3d,d=V(w,!!O&&D.inverted),u={x:D.plotWidth/2,y:D.plotHeight/2,z:T.depth/2,vd:V(T.depth,1)*V(T.viewDistance,0)},g=D.scale3d||1,b=X*T.beta*(d?-1:1),v=X*T.alpha*(d?-1:1),S={cosA:Math.cos(v),cosB:Math.cos(-b),sinA:Math.sin(v),sinB:Math.sin(-b)};return O||(u.x+=D.plotLeft,u.y+=D.plotTop),W.map(function(P){var E=function(f,x,l,h){return{x:h.cosB*f-h.sinB*l,y:-h.sinA*h.sinB*f+h.cosA*x-h.cosB*h.sinA*l,z:h.cosA*h.sinB*f+h.sinA*x+h.cosA*h.cosB*l}}((d?P.y:P.x)-u.x,(d?P.x:P.y)-u.y,(P.z||0)-u.z,S),M=J(E,u,u.vd);return M.x=M.x*g+u.x,M.y=M.y*g+u.y,M.z=E.z*g+u.z,{x:d?M.y:M.x,y:d?M.x:M.y,z:M.z}})}function J(W,D,O){var w=O>0&&O<Number.POSITIVE_INFINITY?O/(W.z+D.z+O):1;return{x:W.x*w,y:W.y*w}}function q(W){var D,O,w=0;for(D=0;D<W.length;D++)O=(D+1)%W.length,w+=W[D].x*W[O].y-W[O].x*W[D].y;return w/2}return{perspective:K,perspective3D:J,pointCameraDistance:function(W,D){var O=D.options.chart.options3d,w=D.plotWidth/2,T=D.plotHeight/2,d=V(O.depth,1)*V(O.viewDistance,0)+O.depth;return Math.sqrt(Math.pow(w-V(W.plotX,W.x),2)+Math.pow(T-V(W.plotY,W.y),2)+Math.pow(d-V(W.plotZ,W.z),2))},shapeArea:q,shapeArea3D:function(W,D,O){return q(K(W,D,O))}}}),st(B,"Core/Renderer/SVG/SVGElement3D.js",[B["Core/Color/Color.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z,X){var V=U.parse,K=X.defined,J=X.merge,q=X.objectEach,W=X.pick,D={};return D.base={initArgs:function(O){var w=this,T=w.renderer,d=T[w.pathType+"Path"](O),u=d.zIndexes;w.parts.forEach(function(g){var b={class:"highcharts-3d-"+g,zIndex:u[g]||0};T.styledMode&&(g==="top"?b.filter="url(#highcharts-brighter)":g==="side"&&(b.filter="url(#highcharts-darker)")),w[g]=T.path(d[g]).attr(b).add(w)}),w.attr({"stroke-linejoin":"round",zIndex:u.group}),w.originalDestroy=w.destroy,w.destroy=w.destroyParts,w.forcedSides=d.forcedSides},singleSetterForParts:function(O,w,T,d,u,g){var b={},v=[null,null,d||"attr",u,g],S=T&&T.zIndexes;return T?(S&&S.group&&this.attr({zIndex:S.group}),q(T,function(P,E){b[E]={},b[E][O]=P,S&&(b[E].zIndex=T.zIndexes[E]||0)}),v[1]=b):(b[O]=w,v[0]=b),this.processParts.apply(this,v)},processParts:function(O,w,T,d,u){var g=this;return g.parts.forEach(function(b){w&&(O=W(w[b],!1)),O!==!1&&g[b][T](O,d,u)}),g},destroyParts:function(){return this.processParts(null,null,"destroy"),this.originalDestroy()}},D.cuboid=J(D.base,{parts:["front","top","side"],pathType:"cuboid",attr:function(O,w,T,d){if(typeof O=="string"&&w!==void 0){var u=O;(O={})[u]=w}return O.shapeArgs||K(O.x)?this.singleSetterForParts("d",null,this.renderer[this.pathType+"Path"](O.shapeArgs||O)):z.prototype.attr.call(this,O,void 0,T,d)},animate:function(O,w,T){if(K(O.x)&&K(O.y)){var d=this.renderer[this.pathType+"Path"](O),u=d.forcedSides;this.singleSetterForParts("d",null,d,"animate",w,T),this.attr({zIndex:d.zIndexes.group}),u!==this.forcedSides&&(this.forcedSides=u,this.renderer.styledMode||D.cuboid.fillSetter.call(this,this.fill))}else z.prototype.animate.call(this,O,w,T);return this},fillSetter:function(O){var w=this;return w.forcedSides=w.forcedSides||[],w.singleSetterForParts("fill",null,{front:O,top:V(O).brighten(w.forcedSides.indexOf("top")>=0?0:.1).get(),side:V(O).brighten(w.forcedSides.indexOf("side")>=0?0:-.1).get()}),w.color=w.fill=O,w}}),D}),st(B,"Core/Renderer/SVG/SVGRenderer3D.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGElement3D.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W){var D,O=this&&this.__extends||(D=function(e,r){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])},D(e,r)},function(e,r){function n(){this.constructor=e}D(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}),w=U.animObject,T=z.parse,d=X.charts,u=X.deg2rad,g=V.perspective,b=V.shapeArea,v=W.defined,S=W.extend,P=W.merge,E=W.pick,M=Math.cos,f=Math.sin,x=Math.PI,l=4*(Math.sqrt(2)-1)/3/(x/2),h=function(e){function r(){return e!==null&&e.apply(this,arguments)||this}return O(r,e),r.compose=function(n){var i=n.prototype,c=r.prototype;i.elements3d=J,i.arc3d=c.arc3d,i.arc3dPath=c.arc3dPath,i.cuboid=c.cuboid,i.cuboidPath=c.cuboidPath,i.element3d=c.element3d,i.face3d=c.face3d,i.polyhedron=c.polyhedron,i.toLinePath=c.toLinePath,i.toLineSegments=c.toLineSegments},r.curveTo=function(n,i,c,a,s,y,A,_){var p=[],C=y-s;return y>s&&y-s>Math.PI/2+1e-4?p=(p=p.concat(this.curveTo(n,i,c,a,s,s+Math.PI/2,A,_))).concat(this.curveTo(n,i,c,a,s+Math.PI/2,y,A,_)):y<s&&s-y>Math.PI/2+1e-4?p=(p=p.concat(this.curveTo(n,i,c,a,s,s-Math.PI/2,A,_))).concat(this.curveTo(n,i,c,a,s-Math.PI/2,y,A,_)):[["C",n+c*Math.cos(s)-c*l*C*Math.sin(s)+A,i+a*Math.sin(s)+a*l*C*Math.cos(s)+_,n+c*Math.cos(y)+c*l*C*Math.sin(y)+A,i+a*Math.sin(y)-a*l*C*Math.cos(y)+_,n+c*Math.cos(y)+A,i+a*Math.sin(y)+_]]},r.prototype.toLinePath=function(n,i){var c=[];return n.forEach(function(a){c.push(["L",a.x,a.y])}),n.length&&(c[0][0]="M",i&&c.push(["Z"])),c},r.prototype.toLineSegments=function(n){var i=[],c=!0;return n.forEach(function(a){i.push(c?["M",a.x,a.y]:["L",a.x,a.y]),c=!c}),i},r.prototype.face3d=function(n){var i=this,c=this.createElement("path");return c.vertexes=[],c.insidePlotArea=!1,c.enabled=!0,c.attr=function(a){if(typeof a=="object"&&(v(a.enabled)||v(a.vertexes)||v(a.insidePlotArea))){this.enabled=E(a.enabled,this.enabled),this.vertexes=E(a.vertexes,this.vertexes),this.insidePlotArea=E(a.insidePlotArea,this.insidePlotArea),delete a.enabled,delete a.vertexes,delete a.insidePlotArea;var s=d[i.chartIndex],y=g(this.vertexes,s,this.insidePlotArea),A=i.toLinePath(y,!0),_=b(y);a.d=A,a.visibility=this.enabled&&_>0?"inherit":"hidden"}return K.prototype.attr.apply(this,arguments)},c.animate=function(a){if(typeof a=="object"&&(v(a.enabled)||v(a.vertexes)||v(a.insidePlotArea))){this.enabled=E(a.enabled,this.enabled),this.vertexes=E(a.vertexes,this.vertexes),this.insidePlotArea=E(a.insidePlotArea,this.insidePlotArea),delete a.enabled,delete a.vertexes,delete a.insidePlotArea;var s=d[i.chartIndex],y=g(this.vertexes,s,this.insidePlotArea),A=i.toLinePath(y,!0),_=b(y),p=this.enabled&&_>0?"visible":"hidden";a.d=A,this.attr("visibility",p)}return K.prototype.animate.apply(this,arguments)},c.attr(n)},r.prototype.polyhedron=function(n){var i=this,c=this.g(),a=c.destroy;return this.styledMode||c.attr({"stroke-linejoin":"round"}),c.faces=[],c.destroy=function(){for(var s=0;s<c.faces.length;s++)c.faces[s].destroy();return a.call(this)},c.attr=function(s,y,A,_){if(typeof s=="object"&&v(s.faces)){for(;c.faces.length>s.faces.length;)c.faces.pop().destroy();for(;c.faces.length<s.faces.length;)c.faces.push(i.face3d().add(c));for(var p=0;p<s.faces.length;p++)i.styledMode&&delete s.faces[p].fill,c.faces[p].attr(s.faces[p],null,A,_);delete s.faces}return K.prototype.attr.apply(this,arguments)},c.animate=function(s,y,A){if(s&&s.faces){for(;c.faces.length>s.faces.length;)c.faces.pop().destroy();for(;c.faces.length<s.faces.length;)c.faces.push(i.face3d().add(c));for(var _=0;_<s.faces.length;_++)c.faces[_].animate(s.faces[_],y,A);delete s.faces}return K.prototype.animate.apply(this,arguments)},c.attr(n)},r.prototype.element3d=function(n,i){var c=this.g();return S(c,this.elements3d[n]),c.initArgs(i),c},r.prototype.cuboid=function(n){return this.element3d("cuboid",n)},r.prototype.cuboidPath=function(n){var i,c,a,s,y,A,_,p,C=n.x||0,k=n.y||0,F=n.z||0,G=n.height||0,I=n.width||0,j=n.depth||0,N=d[this.chartIndex],Z=N.options.chart.options3d.alpha,$=1e6,Y=0,et=[{x:C,y:k,z:F},{x:C+I,y:k,z:F},{x:C+I,y:k+G,z:F},{x:C,y:k+G,z:F},{x:C,y:k+G,z:F+j},{x:C+I,y:k+G,z:F+j},{x:C+I,y:k,z:F+j},{x:C,y:k,z:F+j}],rt=[];function it(dt){return G===0&&dt>1&&dt<6?{x:et[dt].x,y:et[dt].y+10,z:et[dt].z}:et[0].x===et[7].x&&dt>=4?{x:et[dt].x+10,y:et[dt].y,z:et[dt].z}:j===0&&dt<2||dt>5?{x:et[dt].x,y:et[dt].y,z:et[dt].z+10}:et[dt]}function ht(dt){return et[dt]}return et=g(et,N,n.insidePlotArea),c=(i=(p=function(dt,bt,xt){var St=[[],-1],wt=dt.map(ht),mt=bt.map(ht),at=dt.map(it),pt=bt.map(it);return b(wt)<0?St=[wt,0]:b(mt)<0?St=[mt,1]:xt&&(rt.push(xt),St=b(at)<0?[wt,0]:b(pt)<0?[mt,1]:[wt,0]),St})([3,2,1,0],[7,6,5,4],"front"))[0],y=i[1],a=(i=p([1,6,7,0],[4,5,2,3],"top"))[0],A=i[1],s=(i=p([1,2,5,6],[0,7,4,3],"side"))[0],(_=i[1])===1?Y+=$*(N.plotWidth-C):_||(Y+=$*C),Y+=10*(!A||Z>=0&&Z<=180||Z<360&&Z>357.5?N.plotHeight-k:10+k),y===1?Y+=100*F:y||(Y+=100*(1e3-F)),{front:this.toLinePath(c,!0),top:this.toLinePath(a,!0),side:this.toLinePath(s,!0),zIndexes:{group:Math.round(Y)},forcedSides:rt,isFront:y,isTop:A}},r.prototype.arc3d=function(n){var i=this.g(),c=i.renderer,a=["x","y","r","innerR","start","end","depth"];function s(y){var A,_=!1,p={};for(A in y=P(y))a.indexOf(A)!==-1&&(p[A]=y[A],delete y[A],_=!0);return!!_&&[p,y]}return(n=P(n)).alpha=(n.alpha||0)*u,n.beta=(n.beta||0)*u,i.top=c.path(),i.side1=c.path(),i.side2=c.path(),i.inn=c.path(),i.out=c.path(),i.onAdd=function(){var y=i.parentGroup,A=i.attr("class");i.top.add(i),["out","inn","side1","side2"].forEach(function(_){i[_].attr({class:A+" highcharts-3d-side"}).add(y)})},["addClass","removeClass"].forEach(function(y){i[y]=function(){var A=arguments;["top","out","inn","side1","side2"].forEach(function(_){i[_][y].apply(i[_],A)})}}),i.setPaths=function(y){var A=i.renderer.arc3dPath(y),_=100*A.zTop;i.attribs=y,i.top.attr({d:A.top,zIndex:A.zTop}),i.inn.attr({d:A.inn,zIndex:A.zInn}),i.out.attr({d:A.out,zIndex:A.zOut}),i.side1.attr({d:A.side1,zIndex:A.zSide1}),i.side2.attr({d:A.side2,zIndex:A.zSide2}),i.zIndex=_,i.attr({zIndex:_}),y.center&&(i.top.setRadialReference(y.center),delete y.center)},i.setPaths(n),i.fillSetter=function(y){var A=T(y).brighten(-.1).get();return this.fill=y,this.side1.attr({fill:A}),this.side2.attr({fill:A}),this.inn.attr({fill:A}),this.out.attr({fill:A}),this.top.attr({fill:y}),this},["opacity","translateX","translateY","visibility"].forEach(function(y){i[y+"Setter"]=function(A,_){i[_]=A,["out","inn","side1","side2","top"].forEach(function(p){i[p].attr(_,A)})}}),i.attr=function(y){var A,_;return typeof y=="object"&&(_=s(y))&&(A=_[0],arguments[0]=_[1],S(i.attribs,A),i.setPaths(i.attribs)),K.prototype.attr.apply(i,arguments)},i.animate=function(y,A,_){var p,C,k,F=this.attribs,G="data-"+Math.random().toString(26).substring(2,9);return delete y.center,delete y.z,delete y.alpha,delete y.beta,(k=w(E(A,this.renderer.globalAnimation))).duration&&(p=s(y),i[G]=0,y[G]=1,i[G+"Setter"]=X.noop,p&&(C=p[0],k.step=function(I,j){function N(Z){return F[Z]+(E(C[Z],F[Z])-F[Z])*j.pos}j.prop===G&&j.elem.setPaths(P(F,{x:N("x"),y:N("y"),r:N("r"),innerR:N("innerR"),start:N("start"),end:N("end"),depth:N("depth")}))}),A=k),K.prototype.animate.call(this,y,A,_)},i.destroy=function(){return this.top.destroy(),this.out.destroy(),this.inn.destroy(),this.side1.destroy(),this.side2.destroy(),K.prototype.destroy.call(this)},i.hide=function(){this.top.hide(),this.out.hide(),this.inn.hide(),this.side1.hide(),this.side2.hide()},i.show=function(y){this.top.show(y),this.out.show(y),this.inn.show(y),this.side1.show(y),this.side2.show(y)},i},r.prototype.arc3dPath=function(n){var i=n.x||0,c=n.y||0,a=n.start||0,s=(n.end||0)-1e-5,y=n.r||0,A=n.innerR||0,_=n.depth||0,p=n.alpha||0,C=n.beta||0,k=Math.cos(a),F=Math.sin(a),G=Math.cos(s),I=Math.sin(s),j=y*Math.cos(C),N=y*Math.cos(p),Z=A*Math.cos(C),$=A*Math.cos(p),Y=_*Math.sin(C),et=_*Math.sin(p),rt=[["M",i+j*k,c+N*F]];(rt=rt.concat(r.curveTo(i,c,j,N,a,s,0,0))).push(["L",i+Z*G,c+$*I]),(rt=rt.concat(r.curveTo(i,c,Z,$,s,a,0,0))).push(["Z"]);var it=C>0?Math.PI/2:0,ht=p>0?0:Math.PI/2,dt=a>-it?a:s>-it?-it:a,bt=s<x-ht?s:a<x-ht?x-ht:s,xt=2*x-ht,St=[["M",i+j*M(dt),c+N*f(dt)]];St=St.concat(r.curveTo(i,c,j,N,dt,bt,0,0)),s>xt&&a<xt?(St.push(["L",i+j*M(bt)+Y,c+N*f(bt)+et]),(St=St.concat(r.curveTo(i,c,j,N,bt,xt,Y,et))).push(["L",i+j*M(xt),c+N*f(xt)]),(St=St.concat(r.curveTo(i,c,j,N,xt,s,0,0))).push(["L",i+j*M(s)+Y,c+N*f(s)+et]),(St=St.concat(r.curveTo(i,c,j,N,s,xt,Y,et))).push(["L",i+j*M(xt),c+N*f(xt)]),St=St.concat(r.curveTo(i,c,j,N,xt,bt,0,0))):s>x-ht&&a<x-ht&&(St.push(["L",i+j*Math.cos(bt)+Y,c+N*Math.sin(bt)+et]),(St=St.concat(r.curveTo(i,c,j,N,bt,s,Y,et))).push(["L",i+j*Math.cos(s),c+N*Math.sin(s)]),St=St.concat(r.curveTo(i,c,j,N,s,bt,0,0))),St.push(["L",i+j*Math.cos(bt)+Y,c+N*Math.sin(bt)+et]),(St=St.concat(r.curveTo(i,c,j,N,bt,dt,Y,et))).push(["Z"]);var wt=[["M",i+Z*k,c+$*F]];(wt=wt.concat(r.curveTo(i,c,Z,$,a,s,0,0))).push(["L",i+Z*Math.cos(s)+Y,c+$*Math.sin(s)+et]),(wt=wt.concat(r.curveTo(i,c,Z,$,s,a,Y,et))).push(["Z"]);var mt=[["M",i+j*k,c+N*F],["L",i+j*k+Y,c+N*F+et],["L",i+Z*k+Y,c+$*F+et],["L",i+Z*k,c+$*F],["Z"]],at=[["M",i+j*G,c+N*I],["L",i+j*G+Y,c+N*I+et],["L",i+Z*G+Y,c+$*I+et],["L",i+Z*G,c+$*I],["Z"]],pt=Math.atan2(et,-Y),vt=Math.abs(s+pt),Ct=Math.abs(a+pt),Tt=Math.abs((a+s)/2+pt);function At(zt){return(zt%=2*Math.PI)>Math.PI&&(zt=2*Math.PI-zt),zt}vt=At(vt),Ct=At(Ct);var Lt=1e5,Ot=(Tt=At(Tt))*Lt,_t=Ct*Lt,It=vt*Lt;return{top:rt,zTop:Math.PI*Lt+1,out:St,zOut:Math.max(Ot,_t,It),inn:wt,zInn:Math.max(Ot,_t,It),side1:mt,zSide1:.99*It,side2:at,zSide2:.99*_t}},r}(q);return h}),st(B,"Core/Chart/Chart3D.js",[B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Math3D.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=U.parse,q=z.defaultOptions,W=X.perspective,D=X.shapeArea3D,O=V.addEvent,w=V.isArray,T=V.merge,d=V.pick,u=V.wrap;return function(g){var b=function(){function n(i){this.frame3d=void 0,this.chart=i}return n.prototype.get3dFrame=function(){var i=this.chart,c=i.options.chart.options3d,a=c.frame,s=i.plotLeft,y=i.plotLeft+i.plotWidth,A=i.plotTop,_=i.plotTop+i.plotHeight,p=c.depth,C=function(at){var pt=D(at,i);return pt>.5?1:pt<-.5?-1:0},k=C([{x:s,y:_,z:p},{x:y,y:_,z:p},{x:y,y:_,z:0},{x:s,y:_,z:0}]),F=C([{x:s,y:A,z:0},{x:y,y:A,z:0},{x:y,y:A,z:p},{x:s,y:A,z:p}]),G=C([{x:s,y:A,z:0},{x:s,y:A,z:p},{x:s,y:_,z:p},{x:s,y:_,z:0}]),I=C([{x:y,y:A,z:p},{x:y,y:A,z:0},{x:y,y:_,z:0},{x:y,y:_,z:p}]),j=C([{x:s,y:_,z:0},{x:y,y:_,z:0},{x:y,y:A,z:0},{x:s,y:A,z:0}]),N=C([{x:s,y:A,z:p},{x:y,y:A,z:p},{x:y,y:_,z:p},{x:s,y:_,z:p}]),Z=!1,$=!1,Y=!1,et=!1;[].concat(i.xAxis,i.yAxis,i.zAxis).forEach(function(at){at&&(at.horiz?at.opposite?$=!0:Z=!0:at.opposite?et=!0:Y=!0)});var rt=function(at,pt,vt){for(var Ct=["size","color","visible"],Tt={},At=0;At<Ct.length;At++)for(var Lt=Ct[At],Ot=0;Ot<at.length;Ot++)if(typeof at[Ot]=="object"){var _t=at[Ot][Lt];if(_t!=null){Tt[Lt]=_t;break}}var It=vt;return Tt.visible===!0||Tt.visible===!1?It=Tt.visible:Tt.visible==="auto"&&(It=pt>0),{size:d(Tt.size,1),color:d(Tt.color,"none"),frontFacing:pt>0,visible:It}},it={axes:{},bottom:rt([a.bottom,a.top,a],k,Z),top:rt([a.top,a.bottom,a],F,$),left:rt([a.left,a.right,a.side,a],G,Y),right:rt([a.right,a.left,a.side,a],I,et),back:rt([a.back,a.front,a],N,!0),front:rt([a.front,a.back,a],j,!1)};if(c.axisLabelPosition==="auto"){var ht=function(at,pt){return at.visible!==pt.visible||at.visible&&pt.visible&&at.frontFacing!==pt.frontFacing},dt=[];ht(it.left,it.front)&&dt.push({y:(A+_)/2,x:s,z:0,xDir:{x:1,y:0,z:0}}),ht(it.left,it.back)&&dt.push({y:(A+_)/2,x:s,z:p,xDir:{x:0,y:0,z:-1}}),ht(it.right,it.front)&&dt.push({y:(A+_)/2,x:y,z:0,xDir:{x:0,y:0,z:1}}),ht(it.right,it.back)&&dt.push({y:(A+_)/2,x:y,z:p,xDir:{x:-1,y:0,z:0}});var bt=[];ht(it.bottom,it.front)&&bt.push({x:(s+y)/2,y:_,z:0,xDir:{x:1,y:0,z:0}}),ht(it.bottom,it.back)&&bt.push({x:(s+y)/2,y:_,z:p,xDir:{x:-1,y:0,z:0}});var xt=[];ht(it.top,it.front)&&xt.push({x:(s+y)/2,y:A,z:0,xDir:{x:1,y:0,z:0}}),ht(it.top,it.back)&&xt.push({x:(s+y)/2,y:A,z:p,xDir:{x:-1,y:0,z:0}});var St=[];ht(it.bottom,it.left)&&St.push({z:(0+p)/2,y:_,x:s,xDir:{x:0,y:0,z:-1}}),ht(it.bottom,it.right)&&St.push({z:(0+p)/2,y:_,x:y,xDir:{x:0,y:0,z:1}});var wt=[];ht(it.top,it.left)&&wt.push({z:(0+p)/2,y:A,x:s,xDir:{x:0,y:0,z:-1}}),ht(it.top,it.right)&&wt.push({z:(0+p)/2,y:A,x:y,xDir:{x:0,y:0,z:1}});var mt=function(at,pt,vt){if(at.length===0)return null;if(at.length===1)return at[0];for(var Ct=W(at,i,!1),Tt=0,At=1;At<Ct.length;At++)(vt*Ct[At][pt]>vt*Ct[Tt][pt]||vt*Ct[At][pt]==vt*Ct[Tt][pt]&&Ct[At].z<Ct[Tt].z)&&(Tt=At);return at[Tt]};it.axes={y:{left:mt(dt,"x",-1),right:mt(dt,"x",1)},x:{top:mt(xt,"y",-1),bottom:mt(bt,"y",1)},z:{top:mt(wt,"y",-1),bottom:mt(St,"y",1)}}}else it.axes={y:{left:{x:s,z:0,xDir:{x:1,y:0,z:0}},right:{x:y,z:0,xDir:{x:0,y:0,z:1}}},x:{top:{y:A,z:0,xDir:{x:1,y:0,z:0}},bottom:{y:_,z:0,xDir:{x:1,y:0,z:0}}},z:{top:{x:Y?y:s,y:A,xDir:Y?{x:0,y:0,z:1}:{x:0,y:0,z:-1}},bottom:{x:Y?y:s,y:_,xDir:Y?{x:0,y:0,z:1}:{x:0,y:0,z:-1}}}};return it},n.prototype.getScale=function(i){var c,a=this.chart,s=a.plotLeft,y=a.plotWidth+s,A=a.plotTop,_=a.plotHeight+A,p=s+a.plotWidth/2,C=A+a.plotHeight/2,k={minX:Number.MAX_VALUE,maxX:-Number.MAX_VALUE,minY:Number.MAX_VALUE,maxY:-Number.MAX_VALUE},F=1;return c=[{x:s,y:A,z:0},{x:s,y:A,z:i}],[0,1].forEach(function(G){c.push({x:y,y:c[G].y,z:c[G].z})}),[0,1,2,3].forEach(function(G){c.push({x:c[G].x,y:_,z:c[G].z})}),(c=W(c,a,!1)).forEach(function(G){k.minX=Math.min(k.minX,G.x),k.maxX=Math.max(k.maxX,G.x),k.minY=Math.min(k.minY,G.y),k.maxY=Math.max(k.maxY,G.y)}),s>k.minX&&(F=Math.min(F,1-Math.abs((s+p)/(k.minX+p))%1)),y<k.maxX&&(F=Math.min(F,(y-p)/(k.maxX-p))),A>k.minY&&(F=k.minY<0?Math.min(F,(A+C)/(-k.minY+A+C)):Math.min(F,1-(A+C)/(k.minY+C)%1)),_<k.maxY&&(F=Math.min(F,Math.abs((_-C)/(k.maxY-C)))),F},n}();function v(n){this.is3d()&&n.options.type==="scatter"&&(n.options.type="scatter3d")}function S(){if(this.chart3d&&this.is3d()){var n=this,i=n.renderer,c=n.options.chart.options3d,a=n.chart3d.get3dFrame(),s=n.plotLeft,y=n.plotLeft+n.plotWidth,A=n.plotTop,_=n.plotTop+n.plotHeight,p=c.depth,C=s-(a.left.visible?a.left.size:0),k=y+(a.right.visible?a.right.size:0),F=A-(a.top.visible?a.top.size:0),G=_+(a.bottom.visible?a.bottom.size:0),I=0-(a.front.visible?a.front.size:0),j=p+(a.back.visible?a.back.size:0),N=n.hasRendered?"animate":"attr";n.chart3d.frame3d=a,n.frameShapes||(n.frameShapes={bottom:i.polyhedron().add(),top:i.polyhedron().add(),left:i.polyhedron().add(),right:i.polyhedron().add(),back:i.polyhedron().add(),front:i.polyhedron().add()}),n.frameShapes.bottom[N]({class:"highcharts-3d-frame highcharts-3d-frame-bottom",zIndex:a.bottom.frontFacing?-1e3:1e3,faces:[{fill:J(a.bottom.color).brighten(.1).get(),vertexes:[{x:C,y:G,z:I},{x:k,y:G,z:I},{x:k,y:G,z:j},{x:C,y:G,z:j}],enabled:a.bottom.visible},{fill:J(a.bottom.color).brighten(.1).get(),vertexes:[{x:s,y:_,z:p},{x:y,y:_,z:p},{x:y,y:_,z:0},{x:s,y:_,z:0}],enabled:a.bottom.visible},{fill:J(a.bottom.color).brighten(-.1).get(),vertexes:[{x:C,y:G,z:I},{x:C,y:G,z:j},{x:s,y:_,z:p},{x:s,y:_,z:0}],enabled:a.bottom.visible&&!a.left.visible},{fill:J(a.bottom.color).brighten(-.1).get(),vertexes:[{x:k,y:G,z:j},{x:k,y:G,z:I},{x:y,y:_,z:0},{x:y,y:_,z:p}],enabled:a.bottom.visible&&!a.right.visible},{fill:J(a.bottom.color).get(),vertexes:[{x:k,y:G,z:I},{x:C,y:G,z:I},{x:s,y:_,z:0},{x:y,y:_,z:0}],enabled:a.bottom.visible&&!a.front.visible},{fill:J(a.bottom.color).get(),vertexes:[{x:C,y:G,z:j},{x:k,y:G,z:j},{x:y,y:_,z:p},{x:s,y:_,z:p}],enabled:a.bottom.visible&&!a.back.visible}]}),n.frameShapes.top[N]({class:"highcharts-3d-frame highcharts-3d-frame-top",zIndex:a.top.frontFacing?-1e3:1e3,faces:[{fill:J(a.top.color).brighten(.1).get(),vertexes:[{x:C,y:F,z:j},{x:k,y:F,z:j},{x:k,y:F,z:I},{x:C,y:F,z:I}],enabled:a.top.visible},{fill:J(a.top.color).brighten(.1).get(),vertexes:[{x:s,y:A,z:0},{x:y,y:A,z:0},{x:y,y:A,z:p},{x:s,y:A,z:p}],enabled:a.top.visible},{fill:J(a.top.color).brighten(-.1).get(),vertexes:[{x:C,y:F,z:j},{x:C,y:F,z:I},{x:s,y:A,z:0},{x:s,y:A,z:p}],enabled:a.top.visible&&!a.left.visible},{fill:J(a.top.color).brighten(-.1).get(),vertexes:[{x:k,y:F,z:I},{x:k,y:F,z:j},{x:y,y:A,z:p},{x:y,y:A,z:0}],enabled:a.top.visible&&!a.right.visible},{fill:J(a.top.color).get(),vertexes:[{x:C,y:F,z:I},{x:k,y:F,z:I},{x:y,y:A,z:0},{x:s,y:A,z:0}],enabled:a.top.visible&&!a.front.visible},{fill:J(a.top.color).get(),vertexes:[{x:k,y:F,z:j},{x:C,y:F,z:j},{x:s,y:A,z:p},{x:y,y:A,z:p}],enabled:a.top.visible&&!a.back.visible}]}),n.frameShapes.left[N]({class:"highcharts-3d-frame highcharts-3d-frame-left",zIndex:a.left.frontFacing?-1e3:1e3,faces:[{fill:J(a.left.color).brighten(.1).get(),vertexes:[{x:C,y:G,z:I},{x:s,y:_,z:0},{x:s,y:_,z:p},{x:C,y:G,z:j}],enabled:a.left.visible&&!a.bottom.visible},{fill:J(a.left.color).brighten(.1).get(),vertexes:[{x:C,y:F,z:j},{x:s,y:A,z:p},{x:s,y:A,z:0},{x:C,y:F,z:I}],enabled:a.left.visible&&!a.top.visible},{fill:J(a.left.color).brighten(-.1).get(),vertexes:[{x:C,y:G,z:j},{x:C,y:F,z:j},{x:C,y:F,z:I},{x:C,y:G,z:I}],enabled:a.left.visible},{fill:J(a.left.color).brighten(-.1).get(),vertexes:[{x:s,y:A,z:p},{x:s,y:_,z:p},{x:s,y:_,z:0},{x:s,y:A,z:0}],enabled:a.left.visible},{fill:J(a.left.color).get(),vertexes:[{x:C,y:G,z:I},{x:C,y:F,z:I},{x:s,y:A,z:0},{x:s,y:_,z:0}],enabled:a.left.visible&&!a.front.visible},{fill:J(a.left.color).get(),vertexes:[{x:C,y:F,z:j},{x:C,y:G,z:j},{x:s,y:_,z:p},{x:s,y:A,z:p}],enabled:a.left.visible&&!a.back.visible}]}),n.frameShapes.right[N]({class:"highcharts-3d-frame highcharts-3d-frame-right",zIndex:a.right.frontFacing?-1e3:1e3,faces:[{fill:J(a.right.color).brighten(.1).get(),vertexes:[{x:k,y:G,z:j},{x:y,y:_,z:p},{x:y,y:_,z:0},{x:k,y:G,z:I}],enabled:a.right.visible&&!a.bottom.visible},{fill:J(a.right.color).brighten(.1).get(),vertexes:[{x:k,y:F,z:I},{x:y,y:A,z:0},{x:y,y:A,z:p},{x:k,y:F,z:j}],enabled:a.right.visible&&!a.top.visible},{fill:J(a.right.color).brighten(-.1).get(),vertexes:[{x:y,y:A,z:0},{x:y,y:_,z:0},{x:y,y:_,z:p},{x:y,y:A,z:p}],enabled:a.right.visible},{fill:J(a.right.color).brighten(-.1).get(),vertexes:[{x:k,y:G,z:I},{x:k,y:F,z:I},{x:k,y:F,z:j},{x:k,y:G,z:j}],enabled:a.right.visible},{fill:J(a.right.color).get(),vertexes:[{x:k,y:F,z:I},{x:k,y:G,z:I},{x:y,y:_,z:0},{x:y,y:A,z:0}],enabled:a.right.visible&&!a.front.visible},{fill:J(a.right.color).get(),vertexes:[{x:k,y:G,z:j},{x:k,y:F,z:j},{x:y,y:A,z:p},{x:y,y:_,z:p}],enabled:a.right.visible&&!a.back.visible}]}),n.frameShapes.back[N]({class:"highcharts-3d-frame highcharts-3d-frame-back",zIndex:a.back.frontFacing?-1e3:1e3,faces:[{fill:J(a.back.color).brighten(.1).get(),vertexes:[{x:k,y:G,z:j},{x:C,y:G,z:j},{x:s,y:_,z:p},{x:y,y:_,z:p}],enabled:a.back.visible&&!a.bottom.visible},{fill:J(a.back.color).brighten(.1).get(),vertexes:[{x:C,y:F,z:j},{x:k,y:F,z:j},{x:y,y:A,z:p},{x:s,y:A,z:p}],enabled:a.back.visible&&!a.top.visible},{fill:J(a.back.color).brighten(-.1).get(),vertexes:[{x:C,y:G,z:j},{x:C,y:F,z:j},{x:s,y:A,z:p},{x:s,y:_,z:p}],enabled:a.back.visible&&!a.left.visible},{fill:J(a.back.color).brighten(-.1).get(),vertexes:[{x:k,y:F,z:j},{x:k,y:G,z:j},{x:y,y:_,z:p},{x:y,y:A,z:p}],enabled:a.back.visible&&!a.right.visible},{fill:J(a.back.color).get(),vertexes:[{x:s,y:A,z:p},{x:y,y:A,z:p},{x:y,y:_,z:p},{x:s,y:_,z:p}],enabled:a.back.visible},{fill:J(a.back.color).get(),vertexes:[{x:C,y:G,z:j},{x:k,y:G,z:j},{x:k,y:F,z:j},{x:C,y:F,z:j}],enabled:a.back.visible}]}),n.frameShapes.front[N]({class:"highcharts-3d-frame highcharts-3d-frame-front",zIndex:a.front.frontFacing?-1e3:1e3,faces:[{fill:J(a.front.color).brighten(.1).get(),vertexes:[{x:C,y:G,z:I},{x:k,y:G,z:I},{x:y,y:_,z:0},{x:s,y:_,z:0}],enabled:a.front.visible&&!a.bottom.visible},{fill:J(a.front.color).brighten(.1).get(),vertexes:[{x:k,y:F,z:I},{x:C,y:F,z:I},{x:s,y:A,z:0},{x:y,y:A,z:0}],enabled:a.front.visible&&!a.top.visible},{fill:J(a.front.color).brighten(-.1).get(),vertexes:[{x:C,y:F,z:I},{x:C,y:G,z:I},{x:s,y:_,z:0},{x:s,y:A,z:0}],enabled:a.front.visible&&!a.left.visible},{fill:J(a.front.color).brighten(-.1).get(),vertexes:[{x:k,y:G,z:I},{x:k,y:F,z:I},{x:y,y:A,z:0},{x:y,y:_,z:0}],enabled:a.front.visible&&!a.right.visible},{fill:J(a.front.color).get(),vertexes:[{x:y,y:A,z:0},{x:s,y:A,z:0},{x:s,y:_,z:0},{x:y,y:_,z:0}],enabled:a.front.visible},{fill:J(a.front.color).get(),vertexes:[{x:k,y:G,z:I},{x:C,y:G,z:I},{x:C,y:F,z:I},{x:k,y:F,z:I}],enabled:a.front.visible}]})}}function P(){this.styledMode&&[{name:"darker",slope:.6},{name:"brighter",slope:1.4}].forEach(function(n){this.renderer.definition({tagName:"filter",attributes:{id:"highcharts-"+n.name},children:[{tagName:"feComponentTransfer",children:[{tagName:"feFuncR",attributes:{type:"linear",slope:n.slope}},{tagName:"feFuncG",attributes:{type:"linear",slope:n.slope}},{tagName:"feFuncB",attributes:{type:"linear",slope:n.slope}}]}]})},this)}function E(){var n=this.options;this.is3d()&&(n.series||[]).forEach(function(i){(i.type||n.chart.type||n.chart.defaultSeriesType)==="scatter"&&(i.type="scatter3d")})}function M(){var n=this,i=n.options.chart.options3d;if(n.chart3d&&n.is3d()){i&&(i.alpha=i.alpha%360+(i.alpha>=0?0:360),i.beta=i.beta%360+(i.beta>=0?0:360));var c=n.inverted,a=n.clipBox,s=n.margin,y=c?"x":"y",A=c?"height":"width",_=c?"width":"height";a[c?"y":"x"]=-(s[3]||0),a[y]=-(s[0]||0),a[A]=n.chartWidth+(s[3]||0)+(s[1]||0),a[_]=n.chartHeight+(s[0]||0)+(s[2]||0),n.scale3d=1,i.fitToPlot===!0&&(n.scale3d=n.chart3d.getScale(i.depth)),n.chart3d.frame3d=n.chart3d.get3dFrame()}}function f(){this.is3d()&&(this.isDirtyBox=!0)}function x(){this.chart3d&&this.is3d()&&(this.chart3d.frame3d=this.chart3d.get3dFrame())}function l(){this.chart3d||(this.chart3d=new b(this))}function h(n){return this.is3d()||n.apply(this,[].slice.call(arguments,1))}function e(n){var i,c=this.series.length;if(this.is3d())for(;c--;)(i=this.series[c]).translate(),i.render();else n.call(this)}function r(n){n.apply(this,[].slice.call(arguments,1)),this.is3d()&&(this.container.className+=" highcharts-3d-chart")}g.Composition=b,g.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:{}}}}},g.compose=function(n,i){var c=n.prototype,a=i.prototype;c.is3d=function(){return!!(this.options.chart.options3d&&this.options.chart.options3d.enabled)},c.propsRequireDirtyBox.push("chart.options3d"),c.propsRequireUpdateSeries.push("chart.options3d"),a.matrixSetter=function(){var s;if(this.pos<1&&(w(this.start)||w(this.end))){var y=this.start||[1,0,0,1,0,0],A=this.end||[1,0,0,1,0,0];s=[];for(var _=0;_<6;_++)s.push(this.pos*A[_]+(1-this.pos)*y[_])}else s=this.end;this.elem.attr(this.prop,s,null,!0)},T(!0,q,g.defaultOptions),O(n,"init",l),O(n,"addSeries",v),O(n,"afterDrawChartBox",S),O(n,"afterGetContainer",P),O(n,"afterInit",E),O(n,"afterSetChartSize",M),O(n,"beforeRedraw",f),O(n,"beforeRender",x),u(c,"isInsidePlot",h),u(c,"renderSeries",e),u(c,"setClassName",r)}}(K||(K={})),K}),st(B,"Core/Axis/ZAxis.js",[B["Core/Axis/Axis.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(d,u){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},X(d,u)},function(d,u){function g(){this.constructor=d}X(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),K=z.addEvent,J=z.merge,q=z.pick,W=z.splat,D=[];function O(d){return new T(this,d)}function w(){var d=this,u=this.options.zAxis=W(this.options.zAxis||{});this.is3d()&&(this.zAxis=[],u.forEach(function(g,b){g.index=b,g.isX=!0,d.addZAxis(g).setScale()}))}var T=function(d){function u(g,b){var v=d.call(this,g,b)||this;return v.isZAxis=!0,v}return V(u,d),u.compose=function(g){if(D.indexOf(g)===-1){D.push(g),K(g,"afterGetAxes",w);var b=g.prototype;b.addZAxis=O,b.collectionsWithInit.zAxis=[b.addZAxis],b.collectionsWithUpdate.push("zAxis")}},u.prototype.getSeriesExtremes=function(){var g=this,b=this.chart;this.hasVisibleSeries=!1,this.dataMin=this.dataMax=this.ignoreMinPadding=this.ignoreMaxPadding=void 0,this.stacking&&this.stacking.buildStacks(),this.series.forEach(function(v){if(v.visible||!b.options.chart.ignoreHiddenSeries){g.hasVisibleSeries=!0;var S=v.zData;S.length&&(g.dataMin=Math.min(q(g.dataMin,S[0]),Math.min.apply(null,S)),g.dataMax=Math.max(q(g.dataMax,S[0]),Math.max.apply(null,S)))}})},u.prototype.setAxisSize=function(){var g=this.chart;d.prototype.setAxisSize.call(this),this.width=this.len=g.options.chart.options3d&&g.options.chart.options3d.depth||0,this.right=g.chartWidth-this.width-this.left},u.prototype.setOptions=function(g){g=J({offset:0,lineWidth:0},g),this.isZAxis=!0,d.prototype.setOptions.call(this,g),this.coll="zAxis"},u}(U);return T}),st(B,"Core/Axis/Axis3DDefaults.js",[],function(){return{labels:{position3d:"offset",skew3d:!1},title:{position3d:null,skew3d:null}}}),st(B,"Core/Axis/Tick3DComposition.js",[B["Core/Utilities.js"]],function(U){var z=U.addEvent,X=U.extend,V=U.wrap,K=[];function J(W){var D=this.axis.axis3D;D&&X(W.pos,D.fix3dPosition(W.pos))}function q(W){var D=this.axis.axis3D,O=W.apply(this,[].slice.call(arguments,1));if(D){var w=O[0],T=O[1];if(w[0]==="M"&&T[0]==="L"){var d=[D.fix3dPosition({x:w[1],y:w[2],z:0}),D.fix3dPosition({x:T[1],y:T[2],z:0})];return this.axis.chart.renderer.toLineSegments(d)}}return O}return{compose:function(W){K.indexOf(W)===-1&&(K.push(W),z(W,"afterGetLabelPosition",J),V(W.prototype,"getMarkPath",q))}}}),st(B,"Core/Axis/Axis3DComposition.js",[B["Core/Axis/Axis3DDefaults.js"],B["Core/Globals.js"],B["Core/Math3D.js"],B["Core/Axis/Tick3DComposition.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=z.deg2rad,q=X.perspective,W=X.perspective3D,D=X.shapeArea,O=K.addEvent,w=K.merge,T=K.pick,d=K.wrap,u=[];function g(){var l=this,h=l.chart,e=l.options;h.is3d&&h.is3d()&&l.coll!=="colorAxis"&&(e.tickWidth=T(e.tickWidth,0),e.gridLineWidth=T(e.gridLineWidth,1))}function b(l){var h=this;h.chart.is3d()&&h.coll!=="colorAxis"&&l.point&&(l.point.crosshairPos=h.isXAxis?l.point.axisXpos:h.len-l.point.axisYpos)}function v(){var l=this;l.axis3D||(l.axis3D=new x(l))}function S(l){var h=this;return h.chart.is3d()&&h.coll!=="colorAxis"?[]:l.apply(h,[].slice.call(arguments,1))}function P(l){if(!this.chart.is3d()||this.coll==="colorAxis")return l.apply(this,[].slice.call(arguments,1));var h=arguments,e=h[1],r=h[2],n=[],i=this.getPlotLinePath({value:e}),c=this.getPlotLinePath({value:r});if(i&&c)for(var a=0;a<i.length;a+=2){var s=i[a],y=i[a+1],A=c[a],_=c[a+1];s[0]==="M"&&y[0]==="L"&&A[0]==="M"&&_[0]==="L"&&n.push(s,y,_,["L",A[1],A[2]],["Z"])}return n}function E(l){var h=this,e=h.axis3D,r=h.chart,n=l.apply(h,[].slice.call(arguments,1));if(h.coll==="colorAxis"||!r.chart3d||!r.is3d()||n===null)return n;var i,c=r.options.chart.options3d,a=h.isZAxis?r.plotWidth:c.depth,s=r.chart3d.frame3d,y=n[0],A=n[1],_=[];return y[0]==="M"&&A[0]==="L"&&(i=[e.swapZ({x:y[1],y:y[2],z:0}),e.swapZ({x:y[1],y:y[2],z:a}),e.swapZ({x:A[1],y:A[2],z:0}),e.swapZ({x:A[1],y:A[2],z:a})],this.horiz?this.isZAxis?(s.left.visible&&_.push(i[0],i[2]),s.right.visible&&_.push(i[1],i[3]),s.top.visible&&_.push(i[0],i[1]),s.bottom.visible&&_.push(i[2],i[3])):(s.front.visible&&_.push(i[0],i[2]),s.back.visible&&_.push(i[1],i[3]),s.top.visible&&_.push(i[0],i[1]),s.bottom.visible&&_.push(i[2],i[3])):(s.front.visible&&_.push(i[0],i[2]),s.back.visible&&_.push(i[1],i[3]),s.left.visible&&_.push(i[0],i[1]),s.right.visible&&_.push(i[2],i[3])),_=q(_,this.chart,!1)),r.renderer.toLineSegments(_)}function M(l,h){var e=this,r=e.chart,n=e.ticks,i=e.gridGroup;if(e.categories&&r.frameShapes&&r.is3d()&&i&&h&&h.label){var c=i.element.childNodes[0].getBBox(),a=r.frameShapes.left.getBBox(),s=r.options.chart.options3d,y={x:r.plotWidth/2,y:r.plotHeight/2,z:s.depth/2,vd:T(s.depth,1)*T(s.viewDistance,0)},A=h.pos,_=n[A-1],p=n[A+1],C=void 0,k=void 0,F=void 0;return A!==0&&_&&_.label&&_.label.xy&&(k=W({x:_.label.xy.x,y:_.label.xy.y,z:null},y,y.vd)),p&&p.label&&p.label.xy&&(F=W({x:p.label.xy.x,y:p.label.xy.y,z:null},y,y.vd)),C={x:h.label.xy.x,y:h.label.xy.y,z:null},C=W(C,y,y.vd),Math.abs(k?C.x-k.x:F?F.x-C.x:c.x-a.x)}return l.apply(e,[].slice.call(arguments,1))}function f(l){var h=l.apply(this,[].slice.call(arguments,1));return this.axis3D?this.axis3D.fix3dPosition(h,!0):h}var x=function(){function l(h){this.axis=h}return l.compose=function(h,e){if(V.compose(e),u.indexOf(h)===-1){u.push(h),w(!0,h.defaultOptions,U),h.keepProps.push("axis3D"),O(h,"init",v),O(h,"afterSetOptions",g),O(h,"drawCrosshair",b);var r=h.prototype;d(r,"getLinePath",S),d(r,"getPlotBandPath",P),d(r,"getPlotLinePath",E),d(r,"getSlotWidth",M),d(r,"getTitlePosition",f)}},l.prototype.fix3dPosition=function(h,e){var r=this.axis,n=r.chart;if(r.coll==="colorAxis"||!n.chart3d||!n.is3d())return h;var i,c=J*n.options.chart.options3d.alpha,a=J*n.options.chart.options3d.beta,s=T(e&&r.options.title.position3d,r.options.labels.position3d),y=T(e&&r.options.title.skew3d,r.options.labels.skew3d),A=n.chart3d.frame3d,_=n.plotLeft,p=n.plotWidth+_,C=n.plotTop,k=n.plotHeight+C,F=0,G=0,I={x:0,y:1,z:0},j=!1;if(h=r.axis3D.swapZ({x:h.x,y:h.y,z:0}),r.isZAxis)if(r.opposite){if(A.axes.z.top===null)return{};G=h.y-C,h.x=A.axes.z.top.x,h.y=A.axes.z.top.y,i=A.axes.z.top.xDir,j=!A.top.frontFacing}else{if(A.axes.z.bottom===null)return{};G=h.y-k,h.x=A.axes.z.bottom.x,h.y=A.axes.z.bottom.y,i=A.axes.z.bottom.xDir,j=!A.bottom.frontFacing}else if(r.horiz)if(r.opposite){if(A.axes.x.top===null)return{};G=h.y-C,h.y=A.axes.x.top.y,h.z=A.axes.x.top.z,i=A.axes.x.top.xDir,j=!A.top.frontFacing}else{if(A.axes.x.bottom===null)return{};G=h.y-k,h.y=A.axes.x.bottom.y,h.z=A.axes.x.bottom.z,i=A.axes.x.bottom.xDir,j=!A.bottom.frontFacing}else if(r.opposite){if(A.axes.y.right===null)return{};F=h.x-p,h.x=A.axes.y.right.x,h.z=A.axes.y.right.z,i={x:(i=A.axes.y.right.xDir).z,y:i.y,z:-i.x}}else{if(A.axes.y.left===null)return{};F=h.x-_,h.x=A.axes.y.left.x,h.z=A.axes.y.left.z,i=A.axes.y.left.xDir}if(s!=="chart")if(s==="flap")if(r.horiz){var N=Math.sin(c),Z=Math.cos(c);r.opposite&&(N=-N),j&&(N=-N),I={x:i.z*N,y:Z,z:-i.x*N}}else i={x:Math.cos(a),y:0,z:Math.sin(a)};else if(s==="ortho")if(r.horiz){var $=Math.sin(c),Y=Math.cos(c),et={x:Math.sin(a)*Y,y:-$,z:-Y*Math.cos(a)};I={x:i.y*et.z-i.z*et.y,y:i.z*et.x-i.x*et.z,z:i.x*et.y-i.y*et.x};var rt=1/Math.sqrt(I.x*I.x+I.y*I.y+I.z*I.z);j&&(rt=-rt),I={x:rt*I.x,y:rt*I.y,z:rt*I.z}}else i={x:Math.cos(a),y:0,z:Math.sin(a)};else r.horiz?I={x:Math.sin(a)*Math.sin(c),y:Math.cos(c),z:-Math.cos(a)*Math.sin(c)}:i={x:Math.cos(a),y:0,z:Math.sin(a)};h.x+=F*i.x+G*I.x,h.y+=F*i.y+G*I.y,h.z+=F*i.z+G*I.z;var it=q([h],r.chart)[0];if(y){D(q([h,{x:h.x+i.x,y:h.y+i.y,z:h.z+i.z},{x:h.x+I.x,y:h.y+I.y,z:h.z+I.z}],r.chart))<0&&(i={x:-i.x,y:-i.y,z:-i.z});var ht=q([{x:h.x,y:h.y,z:h.z},{x:h.x+i.x,y:h.y+i.y,z:h.z+i.z},{x:h.x+I.x,y:h.y+I.y,z:h.z+I.z}],r.chart);it.matrix=[ht[1].x-ht[0].x,ht[1].y-ht[0].y,ht[2].x-ht[0].x,ht[2].y-ht[0].y,it.x,it.y],it.matrix[4]-=it.x*it.matrix[0]+it.y*it.matrix[2],it.matrix[5]-=it.x*it.matrix[1]+it.y*it.matrix[3]}return it},l.prototype.swapZ=function(h,e){var r=this.axis;if(r.isZAxis){var n=e?0:r.chart.plotLeft;return{x:n+h.z,y:h.y,z:h.x-n}}return h},l}();return x}),st(B,"Core/Series/Series3D.js",[B["Core/Math3D.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(d,u){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},V(d,u)},function(d,u){function g(){this.constructor=d}V(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),J=U.perspective,q=X.addEvent,W=X.extend,D=X.merge,O=X.pick,w=X.isNumber,T=function(d){function u(){return d!==null&&d.apply(this,arguments)||this}return K(u,d),u.prototype.translate=function(){d.prototype.translate.apply(this,arguments),this.chart.is3d()&&this.translate3dPoints()},u.prototype.translate3dPoints=function(){var g,b,v,S,P,E=this,M=E.options,f=E.chart,x=O(E.zAxis,f.options.zAxis[0]),l=[],h=[],e=M.stacking?w(M.stack)?M.stack:0:E.index||0;for(E.zPadding=e*(M.depth||0+(M.groupZPadding||1)),P=0;P<E.data.length;P++)g=E.data[P],x&&x.translate?(S=x.logarithmic&&x.val2lin?x.val2lin(g.z):g.z,g.plotZ=x.translate(S),g.isInside=!!g.isInside&&S>=x.min&&S<=x.max):g.plotZ=E.zPadding,g.axisXpos=g.plotX,g.axisYpos=g.plotY,g.axisZpos=g.plotZ,l.push({x:g.plotX,y:g.plotY,z:g.plotZ}),h.push(g.plotX||0);for(E.rawPointsX=h,b=J(l,f,!0),P=0;P<E.data.length;P++)g=E.data[P],v=b[P],g.plotX=v.x,g.plotY=v.y,g.plotZ=v.z},u.defaultOptions=D(z.defaultOptions),u}(z);return q(z,"afterTranslate",function(){this.chart.is3d()&&this.translate3dPoints()}),W(z.prototype,{translate3dPoints:T.prototype.translate3dPoints}),T}),st(B,"Series/Area3D/Area3DSeries.js",[B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V=U.perspective,K=z.seriesTypes.line.prototype,J=X.wrap,q=[];function W(D){var O=this,w=D.apply(O,[].slice.call(arguments,1));if(!O.chart.is3d())return w;var T=K.getGraphPath,d=O.options,u=Math.round(O.yAxis.getThreshold(d.threshold)),g=[];if(O.rawPointsX)for(var b=0;b<O.points.length;b++)g.push({x:O.rawPointsX[b],y:d.stacking?O.points[b].yBottom:u,z:O.zPadding});var v=O.chart.options.chart.options3d;g=V(g,O.chart,!0).map(function(E){return{plotX:E.x,plotY:E.y,plotZ:E.z}}),O.group&&v&&v.depth&&v.beta&&(O.markerGroup&&(O.markerGroup.add(O.group),O.markerGroup.attr({translateX:0,translateY:0})),O.group.attr({zIndex:Math.max(1,v.beta>270||v.beta<90?v.depth-Math.round(O.zPadding||0):Math.round(O.zPadding||0))})),g.reversed=!0;var S=T.call(O,g,!0,!0);if(S[0]&&S[0][0]==="M"&&(S[0]=["L",S[0][1],S[0][2]]),O.areaPath){var P=O.areaPath.splice(0,O.areaPath.length/2).concat(S);P.xMap=O.areaPath.xMap,O.areaPath=P}return w}return{compose:function(D){q.indexOf(D)===-1&&(q.push(D),J(D.prototype,"getGraphPath",W))}}}),st(B,"Series/Column3D/Column3DComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Math3D.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q){var W=U.prototype,D=z.svg,O=V.perspective,w=q.addEvent,T=q.pick,d=q.wrap;function u(S){var P=S.apply(this,[].slice.call(arguments,1));return this.chart.is3d&&this.chart.is3d()&&(P.stroke=this.options.edgeColor||P.fill,P["stroke-width"]=T(this.options.edgeWidth,1)),P}function g(S,P,E){var M=this.chart.is3d&&this.chart.is3d();M&&(this.options.inactiveOtherPoints=!0),S.call(this,P,E),M&&(this.options.inactiveOtherPoints=!1)}function b(S){for(var P=[],E=1;E<arguments.length;E++)P[E-1]=arguments[E];return this.series.chart.is3d()?this.graphic&&this.graphic.element.nodeName!=="g":S.apply(this,P)}if(d(W,"translate",function(S){S.apply(this,[].slice.call(arguments,1)),this.chart.is3d()&&this.translate3dShapes()}),d(X.prototype,"justifyDataLabel",function(S){return!arguments[2].outside3dPlot&&S.apply(this,[].slice.call(arguments,1))}),W.translate3dPoints=function(){},W.translate3dShapes=function(){var S,P=this,E=P.chart,M=P.options,f=M.depth,x=(M.stacking?M.stack||0:P.index)*(f+(M.groupZPadding||1)),l=P.borderWidth%2?.5:0;E.inverted&&!P.yAxis.reversed&&(l*=-1),M.grouping!==!1&&(x=0),x+=M.groupZPadding||1,P.data.forEach(function(h){if(h.outside3dPlot=null,h.y!==null){var e,r=h.shapeArgs,n=h.tooltipPos;[["x","width"],["y","height"]].forEach(function(i){if((e=r[i[0]]-l)<0&&(r[i[1]]+=r[i[0]]+l,r[i[0]]=-l,e=0),e+r[i[1]]>P[i[0]+"Axis"].len&&r[i[1]]!==0&&(r[i[1]]=P[i[0]+"Axis"].len-r[i[0]]),r[i[1]]!==0&&(r[i[0]]>=P[i[0]+"Axis"].len||r[i[0]]+r[i[1]]<=l)){for(var c in r)r[c]=c==="y"?-9999:0;h.outside3dPlot=!0}}),h.shapeType==="rect"&&(h.shapeType="cuboid"),r.z=x,r.depth=f,r.insidePlotArea=!0,S={x:r.x+r.width/2,y:r.y,z:x+f/2},E.inverted&&(S.x=r.height,S.y=h.clientX),h.plot3d=O([S],E,!0,!1)[0],n=O([{x:n[0],y:n[1],z:x+f/2}],E,!0,!1)[0],h.tooltipPos=[n.x,n.y]}}),P.z=x},d(W,"animate",function(S){if(this.chart.is3d()){var P=arguments,E=P[1],M=this.yAxis,f=this,x=this.yAxis.reversed;D&&(E?f.data.forEach(function(l){l.y!==null&&(l.height=l.shapeArgs.height,l.shapey=l.shapeArgs.y,l.shapeArgs.height=1,x||(l.stackY?l.shapeArgs.y=l.plotY+M.translate(l.stackY):l.shapeArgs.y=l.plotY+(l.negative?-l.height:l.height)))}):(f.data.forEach(function(l){l.y!==null&&(l.shapeArgs.height=l.height,l.shapeArgs.y=l.shapey,l.graphic&&l.graphic[l.outside3dPlot?"attr":"animate"](l.shapeArgs,f.options.animation))}),this.drawDataLabels()))}else S.apply(this,[].slice.call(arguments,1))}),d(W,"plotGroup",function(S,P,E,M,f,x){return P!=="dataLabelsGroup"&&P!=="markerGroup"&&this.chart.is3d()&&(this[P]&&delete this[P],x&&(this.chart.columnGroup||(this.chart.columnGroup=this.chart.renderer.g("columnGroup").add(x)),this[P]=this.chart.columnGroup,this.chart.columnGroup.attr(this.getPlotBox()),this[P].survive=!0,P==="group"&&(arguments[3]="visible"))),S.apply(this,Array.prototype.slice.call(arguments,1))}),d(W,"setVisible",function(S,P){var E=this;E.chart.is3d()&&E.data.forEach(function(M){M.visible=M.options.visible=P=P===void 0?!T(E.visible,M.visible):P,E.options.data[E.data.indexOf(M)]=M.options,M.graphic&&M.graphic.attr({visibility:P?"visible":"hidden"})}),S.apply(this,Array.prototype.slice.call(arguments,1))}),w(U,"afterInit",function(){if(this.chart.is3d()){var S=this.options,P=S.grouping,E=S.stacking,M=this.yAxis.options.reversedStacks,f=0;if(P===void 0||P){var x=function(e,r){var n,i=e.series,c={totalStacks:0},a=1;return i.forEach(function(s){n=T(s.options.stack,r?0:i.length-1-s.index),c[n]?c[n].series.push(s):(c[n]={series:[s],position:a},a++)}),c.totalStacks=a+1,c}(this.chart,E),l=S.stack||0,h=void 0;for(h=0;h<x[l].series.length&&x[l].series[h]!==this;h++);f=10*(x.totalStacks-x[l].position)+(M?h:-h),this.xAxis.reversed||(f=10*x.totalStacks-f)}S.depth=S.depth||25,this.z=this.z||0,S.zIndex=f}}),d(W,"pointAttribs",u),d(W,"setState",g),d(W.pointClass.prototype,"hasNewShapeType",b),K.seriesTypes.columnRange){var v=K.seriesTypes.columnrange.prototype;d(v,"pointAttribs",u),d(v,"setState",g),d(v.pointClass.prototype,"hasNewShapeType",b),v.plotGroup=W.plotGroup,v.setVisible=W.setVisible}return d(X.prototype,"alignDataLabel",function(S,P,E,M,f){var x=this.chart;if(M.outside3dPlot=P.outside3dPlot,x.is3d()&&this.is("column")){var l=this,h=l.options,e=T(M.inside,!!l.options.stacking),r=x.options.chart.options3d,n=P.pointWidth/2||0,i={x:f.x+n,y:f.y,z:l.z+h.depth/2};x.inverted&&(e&&(f.width=0,i.x+=P.shapeArgs.height/2),r.alpha>=90&&r.alpha<=270&&(i.y+=P.shapeArgs.width)),i=O([i],x,!0,!1)[0],f.x=i.x-n,f.y=P.outside3dPlot?-9e9:i.y}S.apply(this,[].slice.call(arguments,1))}),d(J.prototype,"getStackBox",function(S,P){var E=S.apply(this,[].slice.call(arguments,1)),M=this,f=this.axis.chart,x=P.width;if(f.is3d()&&M.base){var l=+M.base.split(",")[0],h=f.series[l],e=f.options.chart.options3d;if(h&&h instanceof K.seriesTypes.column){var r={x:E.x+(f.inverted?E.height:x/2),y:E.y,z:h.options.depth/2};f.inverted&&(E.width=0,e.alpha>=90&&e.alpha<=270&&(r.y+=x)),r=O([r],f,!0,!1)[0],E.x=r.x-x/2,E.y=r.y}}return E}),U}),st(B,"Series/Pie3D/Pie3DPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(U){var z,X=this&&this.__extends||(z=function(q,W){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,O){D.__proto__=O}||function(D,O){for(var w in O)O.hasOwnProperty(w)&&(D[w]=O[w])},z(q,W)},function(q,W){function D(){this.constructor=q}z(q,W),q.prototype=W===null?Object.create(W):(D.prototype=W.prototype,new D)}),V=U.seriesTypes.pie.prototype.pointClass,K=V.prototype.haloPath,J=function(q){function W(){var D=q!==null&&q.apply(this,arguments)||this;return D.series=void 0,D}return X(W,q),W.prototype.haloPath=function(){return this.series.chart.is3d()?[]:K.apply(this,arguments)},W}(V);return J}),st(B,"Series/Pie3D/Pie3DSeries.js",[B["Core/Globals.js"],B["Series/Pie3D/Pie3DPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(d,u){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},K(d,u)},function(d,u){function g(){this.constructor=d}K(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),q=U.deg2rad,W=U.svg,D=X.seriesTypes.pie,O=V.extend,w=V.pick,T=function(d){function u(){return d!==null&&d.apply(this,arguments)||this}return J(u,d),u.prototype.addPoint=function(){d.prototype.addPoint.apply(this,arguments),this.chart.is3d()&&this.update(this.userOptions,!0)},u.prototype.animate=function(g){if(this.chart.is3d()){var b=this.options.animation,v=void 0,S=this.center,P=this.group,E=this.markerGroup;W&&(b===!0&&(b={}),g?(P.oldtranslateX=w(P.oldtranslateX,P.translateX),P.oldtranslateY=w(P.oldtranslateY,P.translateY),v={translateX:S[0],translateY:S[1],scaleX:.001,scaleY:.001},P.attr(v),E&&(E.attrSetters=P.attrSetters,E.attr(v))):(v={translateX:P.oldtranslateX,translateY:P.oldtranslateY,scaleX:1,scaleY:1},P.animate(v,b),E&&E.animate(v,b)))}else d.prototype.animate.apply(this,arguments)},u.prototype.drawDataLabels=function(){if(this.chart.is3d()){var g=this,b=g.chart,v=b.options.chart.options3d;g.data.forEach(function(S){var P=S.shapeArgs,E=P.r,M=(P.alpha||v.alpha)*q,f=(P.beta||v.beta)*q,x=(P.start+P.end)/2,l=S.labelPosition,h=l.connectorPosition,e=-E*(1-Math.cos(M))*Math.sin(x),r=E*(Math.cos(f)-1)*Math.cos(x);[l.natural,h.breakAt,h.touchingSliceAt].forEach(function(n){n.x+=r,n.y+=e})})}d.prototype.drawDataLabels.apply(this,arguments)},u.prototype.pointAttribs=function(g){var b=d.prototype.pointAttribs.apply(this,arguments),v=this.options;return this.chart.is3d()&&!this.chart.styledMode&&(b.stroke=v.edgeColor||g.color||this.color,b["stroke-width"]=w(v.edgeWidth,1)),b},u.prototype.translate=function(){if(d.prototype.translate.apply(this,arguments),this.chart.is3d()){var g=this,b=g.options,v=b.depth||0,S=g.chart.options.chart.options3d,P=S.alpha,E=S.beta,M=b.stacking?(b.stack||0)*v:g._i*v;M+=v/2,b.grouping!==!1&&(M=0),g.data.forEach(function(f){var x,l=f.shapeArgs;f.shapeType="arc3d",l.z=M,l.depth=.75*v,l.alpha=P,l.beta=E,l.center=g.center,x=(l.end+l.start)/2,f.slicedTranslation={translateX:Math.round(Math.cos(x)*b.slicedOffset*Math.cos(P*q)),translateY:Math.round(Math.sin(x)*b.slicedOffset*Math.cos(P*q))}})}},u.prototype.drawTracker=function(){d.prototype.drawTracker.apply(this,arguments),this.chart.is3d()&&this.points.forEach(function(g){g.graphic&&["out","inn","side1","side2"].forEach(function(b){g.graphic&&(g.graphic[b].element.point=g)})})},u}(D);return O(T.prototype,{pointClass:z}),T}),st(B,"Series/Pie3D/Pie3DComposition.js",[B["Series/Pie3D/Pie3DPoint.js"],B["Series/Pie3D/Pie3DSeries.js"],B["Core/Series/SeriesRegistry.js"]],function(U,z,X){X.seriesTypes.pie.prototype.pointClass.prototype.haloPath=U.prototype.haloPath,X.seriesTypes.pie=z}),st(B,"Series/Scatter3D/Scatter3DPoint.js",[B["Series/Scatter/ScatterSeries.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(q,W){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,O){D.__proto__=O}||function(D,O){for(var w in O)O.hasOwnProperty(w)&&(D[w]=O[w])},X(q,W)},function(q,W){function D(){this.constructor=q}X(q,W),q.prototype=W===null?Object.create(W):(D.prototype=W.prototype,new D)}),K=z.defined,J=function(q){function W(){var D=q!==null&&q.apply(this,arguments)||this;return D.options=void 0,D.series=void 0,D}return V(W,q),W.prototype.applyOptions=function(){return q.prototype.applyOptions.apply(this,arguments),K(this.z)||(this.z=0),this},W}(U.prototype.pointClass);return J}),st(B,"Series/Scatter3D/Scatter3DSeries.js",[B["Core/Math3D.js"],B["Series/Scatter3D/Scatter3DPoint.js"],B["Series/Scatter/ScatterSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J,q=this&&this.__extends||(J=function(T,d){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var b in g)g.hasOwnProperty(b)&&(u[b]=g[b])},J(T,d)},function(T,d){function u(){this.constructor=T}J(T,d),T.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),W=U.pointCameraDistance,D=K.extend,O=K.merge,w=function(T){function d(){var u=T!==null&&T.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return q(d,T),d.prototype.pointAttribs=function(u){var g=T.prototype.pointAttribs.apply(this,arguments);return this.chart.is3d()&&u&&(g.zIndex=W(u,this.chart)),g},d.defaultOptions=O(X.defaultOptions,{tooltip:{pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>z: <b>{point.z}</b><br/>"}}),d}(X);return D(w.prototype,{axisTypes:["xAxis","yAxis","zAxis"],directTouch:!0,parallelArrays:["x","y","z"],pointArrayMap:["x","y","z"],pointClass:z}),V.registerSeriesType("scatter3d",w),w}),st(B,"masters/highcharts-3d.src.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGRenderer3D.js"],B["Core/Chart/Chart3D.js"],B["Core/Axis/ZAxis.js"],B["Core/Axis/Axis3DComposition.js"],B["Series/Area3D/Area3DSeries.js"]],function(U,z,X,V,K,J){var q=U;z.compose(q.SVGRenderer),X.compose(q.Chart,q.Fx),V.compose(q.Chart),K.compose(q.Axis,q.Tick),J.compose(q.seriesTypes.area)})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},7274:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Extensions/Pane.js",[B["Core/Chart/Chart.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=K.addEvent,q=K.correctFloat,W=K.defined,D=K.extend,O=K.merge,w=K.pick,T=K.splat;U.prototype.collectionsWithUpdate.push("pane");var d=function(){function g(b,v){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(b,v)}return g.prototype.init=function(b,v){this.chart=v,this.background=[],v.pane.push(this),this.setOptions(b)},g.prototype.setOptions=function(b){this.options=b=O(this.defaultOptions,this.chart.angular?{background:{}}:void 0,b)},g.prototype.render=function(){var b,v,S=this.options,P=this.options.background,E=this.chart.renderer;if(this.group||(this.group=E.g("pane-group").attr({zIndex:S.zIndex||0}).add()),this.updateCenter(),P)for(P=T(P),b=Math.max(P.length,this.background.length||0),v=0;v<b;v++)P[v]&&this.axis?this.renderBackground(O(this.defaultBackgroundOptions,P[v]),v):this.background[v]&&(this.background[v]=this.background[v].destroy(),this.background.splice(v,1))},g.prototype.renderBackground=function(b,v){var S="animate",P={class:"highcharts-pane "+(b.className||"")};this.chart.styledMode||D(P,{fill:b.backgroundColor,stroke:b.borderColor,"stroke-width":b.borderWidth}),this.background[v]||(this.background[v]=this.chart.renderer.path().add(this.group),S="attr"),this.background[v][S]({d:this.axis.getPlotBandPath(b.from,b.to,b)}).attr(P)},g.prototype.updateCenter=function(b){this.center=(b||this.axis||{}).center=z.getCenter.call(this)},g.prototype.update=function(b,v){O(!0,this.options,b),this.setOptions(this.options),this.render(),this.chart.axes.forEach(function(S){S.pane===this&&(S.pane=null,S.update({},v))},this)},g}();function u(g,b,v,S,P){var E=!0,M=v[0],f=v[1],x=Math.sqrt(Math.pow(g-M,2)+Math.pow(b-f,2));if(W(S)&&W(P)){var l=Math.atan2(q(b-f,8),q(g-M,8));P!==S&&(E=S>P?l>=S&&l<=Math.PI||l<=P&&l>=-Math.PI:l>=S&&l<=q(P,8))}return x<=Math.ceil(v[2]/2)&&E}return U.prototype.getHoverPane=function(g){var b,v=this;return g&&v.pane.forEach(function(S){u(g.chartX-v.plotLeft,g.chartY-v.plotTop,S.center)&&(b=S)}),b},J(U,"afterIsInsidePlot",function(g){var b;this.polar&&(g.options.inverted&&(b=[g.y,g.x],g.x=b[0],g.y=b[1]),g.isInsidePlot=this.pane.some(function(v){return u(g.x,g.y,v.center,v.axis&&v.axis.normalizedStartAngleRad,v.axis&&v.axis.normalizedEndAngleRad)}))}),J(V,"beforeGetHoverData",function(g){var b=this.chart;b.polar?(b.hoverPane=b.getHoverPane(g),g.filter=function(v){return v.visible&&!(!g.shared&&v.directTouch)&&w(v.options.enableMouseTracking,!0)&&(!b.hoverPane||v.xAxis.pane===b.hoverPane)}):b.hoverPane=void 0}),J(V,"afterGetHoverData",function(g){var b=this.chart;g.hoverPoint&&g.hoverPoint.plotX&&g.hoverPoint.plotY&&b.hoverPane&&!u(g.hoverPoint.plotX,g.hoverPoint.plotY,b.hoverPane.center)&&(g.hoverPoint=void 0)}),X.Pane=d,X.Pane}),st(B,"Series/AreaRange/AreaRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(w,T){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},X(w,T)},function(w,T){function d(){this.constructor=w}X(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),K=U.seriesTypes.area.prototype,J=K.pointClass,q=K.pointClass.prototype,W=z.defined,D=z.isNumber,O=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.high=void 0,d.low=void 0,d.options=void 0,d.plotX=void 0,d.series=void 0,d}return V(T,w),T.prototype.setState=function(){var d=this.state,u=this.series,g=u.chart.polar;W(this.plotHigh)||(this.plotHigh=u.yAxis.toPixels(this.high,!0)),W(this.plotLow)||(this.plotLow=this.plotY=u.yAxis.toPixels(this.low,!0)),u.stateMarkerGraphic&&(u.lowerStateMarkerGraphic=u.stateMarkerGraphic,u.stateMarkerGraphic=u.upperStateMarkerGraphic),this.graphic=this.graphics&&this.graphics[1],this.plotY=this.plotHigh,g&&D(this.plotHighX)&&(this.plotX=this.plotHighX),q.setState.apply(this,arguments),this.state=d,this.plotY=this.plotLow,this.graphic=this.graphics&&this.graphics[0],g&&D(this.plotLowX)&&(this.plotX=this.plotLowX),u.stateMarkerGraphic&&(u.upperStateMarkerGraphic=u.stateMarkerGraphic,u.stateMarkerGraphic=u.lowerStateMarkerGraphic,u.lowerStateMarkerGraphic=void 0),q.setState.apply(this,arguments)},T.prototype.haloPath=function(){var d=this.series.chart.polar,u=[];return this.plotY=this.plotLow,d&&D(this.plotLowX)&&(this.plotX=this.plotLowX),this.isInside&&(u=q.haloPath.apply(this,arguments)),this.plotY=this.plotHigh,d&&D(this.plotHighX)&&(this.plotX=this.plotHighX),this.isTopInside&&(u=u.concat(q.haloPath.apply(this,arguments))),u},T.prototype.isValid=function(){return D(this.low)&&D(this.high)},T}(J);return O}),st(B,"Series/AreaRange/AreaRangeSeries.js",[B["Series/AreaRange/AreaRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(M,f){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,l){x.__proto__=l}||function(x,l){for(var h in l)l.hasOwnProperty(h)&&(x[h]=l[h])},K(M,f)},function(M,f){function x(){this.constructor=M}K(M,f),M.prototype=f===null?Object.create(f):(x.prototype=f.prototype,new x)}),q=z.noop,W=X.seriesTypes,D=W.area,O=W.area.prototype,w=W.column.prototype,T=V.addEvent,d=V.defined,u=V.extend,g=V.isArray,b=V.isNumber,v=V.pick,S=V.merge,P={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}},E=function(M){function f(){var x=M!==null&&M.apply(this,arguments)||this;return x.data=void 0,x.options=void 0,x.points=void 0,x.lowerStateMarkerGraphic=void 0,x.xAxis=void 0,x}return J(f,M),f.prototype.toYData=function(x){return[x.low,x.high]},f.prototype.highToXY=function(x){var l=this.chart,h=this.xAxis.postTranslate(x.rectPlotX||0,this.yAxis.len-(x.plotHigh||0));x.plotHighX=h.x-l.plotLeft,x.plotHigh=h.y-l.plotTop,x.plotLowX=x.plotX},f.prototype.getGraphPath=function(x){var l,h,e,r=[],n=[],i=O.getGraphPath,c=this.options,a=this.chart.polar,s=a&&c.connectEnds!==!1,y=c.connectNulls,A=c.step;for(l=(x=x||this.points).length;l--;){h=x[l];var _=a?{plotX:h.rectPlotX,plotY:h.yBottom,doCurve:!1}:{plotX:h.plotX,plotY:h.plotY,doCurve:!1};h.isNull||s||y||x[l+1]&&!x[l+1].isNull||n.push(_),e={polarPlotY:h.polarPlotY,rectPlotX:h.rectPlotX,yBottom:h.yBottom,plotX:v(h.plotHighX,h.plotX),plotY:h.plotHigh,isNull:h.isNull},n.push(e),r.push(e),h.isNull||s||y||x[l-1]&&!x[l-1].isNull||n.push(_)}var p=i.call(this,x);A&&(A===!0&&(A="left"),c.step={left:"right",center:"center",right:"left"}[A]);var C=i.call(this,r),k=i.call(this,n);c.step=A;var F=[].concat(p,C);return!this.chart.polar&&k[0]&&k[0][0]==="M"&&(k[0]=["L",k[0][1],k[0][2]]),this.graphPath=F,this.areaPath=p.concat(k),F.isArea=!0,F.xMap=p.xMap,this.areaPath.xMap=p.xMap,F},f.prototype.drawDataLabels=function(){var x,l,h,e,r,n=this.points,i=n.length,c=[],a=this.options.dataLabels,s=this.chart.inverted;if(a){if(g(a)?(e=a[0]||{enabled:!1},r=a[1]||{enabled:!1}):((e=u({},a)).x=a.xHigh,e.y=a.yHigh,(r=u({},a)).x=a.xLow,r.y=a.yLow),e.enabled||this._hasPointLabels){for(x=i;x--;)if(l=n[x]){var y=l.plotHigh,A=y===void 0?0:y,_=l.plotLow,p=_===void 0?0:_;h=e.inside?A<p:A>p,l.y=l.high,l._plotY=l.plotY,l.plotY=A,c[x]=l.dataLabel,l.dataLabel=l.dataLabelUpper,l.below=h,s?e.align||(e.align=h?"right":"left"):e.verticalAlign||(e.verticalAlign=h?"top":"bottom")}for(this.options.dataLabels=e,O.drawDataLabels&&O.drawDataLabels.apply(this,arguments),x=i;x--;)(l=n[x])&&(l.dataLabelUpper=l.dataLabel,l.dataLabel=c[x],delete l.dataLabels,l.y=l.low,l.plotY=l._plotY)}if(r.enabled||this._hasPointLabels){for(x=i;x--;)if(l=n[x]){var C=l.plotHigh,k=(A=C===void 0?0:C,l.plotLow);p=k===void 0?0:k,h=r.inside?A<p:A>p,l.below=!h,s?r.align||(r.align=h?"left":"right"):r.verticalAlign||(r.verticalAlign=h?"bottom":"top")}this.options.dataLabels=r,O.drawDataLabels&&O.drawDataLabels.apply(this,arguments)}if(e.enabled)for(x=i;x--;)(l=n[x])&&(l.dataLabels=[l.dataLabelUpper,l.dataLabel].filter(function(F){return!!F}));this.options.dataLabels=a}},f.prototype.alignDataLabel=function(){w.alignDataLabel.apply(this,arguments)},f.prototype.drawPoints=function(){var x,l,h=this,e=h.points.length;for(O.drawPoints.apply(h,arguments),x=0;x<e;)(l=h.points[x]).graphics=l.graphics||[],l.origProps={plotY:l.plotY,plotX:l.plotX,isInside:l.isInside,negative:l.negative,zone:l.zone,y:l.y},(l.graphic||l.graphics[0])&&(l.graphics[0]=l.graphic),l.graphic=l.graphics[1],l.plotY=l.plotHigh,d(l.plotHighX)&&(l.plotX=l.plotHighX),l.y=v(l.high,l.origProps.y),l.negative=l.y<(h.options.threshold||0),h.zones.length&&(l.zone=l.getZone()),h.chart.polar||(l.isInside=l.isTopInside=l.plotY!==void 0&&l.plotY>=0&&l.plotY<=h.yAxis.len&&l.plotX>=0&&l.plotX<=h.xAxis.len),x++;for(O.drawPoints.apply(h,arguments),x=0;x<e;)(l=h.points[x]).graphics=l.graphics||[],(l.graphic||l.graphics[1])&&(l.graphics[1]=l.graphic),l.graphic=l.graphics[0],l.origProps&&(u(l,l.origProps),delete l.origProps),x++},f.defaultOptions=S(D.defaultOptions,P),f}(D);return T(E,"afterTranslate",function(){var M=this;this.pointArrayMap.join(",")==="low,high"&&this.points.forEach(function(f){var x=f.high,l=f.plotY;f.isNull?f.plotY=void 0:(f.plotLow=l,f.plotHigh=b(x)?M.yAxis.translate(M.dataModify?M.dataModify.modifyValue(x):x,!1,!0,void 0,!0):void 0,M.dataModify&&(f.yBottom=f.plotHigh))})},{order:0}),T(E,"afterTranslate",function(){var M=this;this.points.forEach(function(f){if(M.chart.polar)M.highToXY(f),f.plotLow=f.plotY,f.tooltipPos=[((f.plotHighX||0)+(f.plotLowX||0))/2,((f.plotHigh||0)+(f.plotLow||0))/2];else{var x=f.pos(!1,f.plotLow),l=f.pos(!1,f.plotHigh);x&&l&&(x[0]=(x[0]+l[0])/2,x[1]=(x[1]+l[1])/2),f.tooltipPos=x}})},{order:3}),u(E.prototype,{deferTranslatePolar:!0,pointArrayMap:["low","high"],pointClass:U,pointValKey:"low",setStackedPoints:q}),X.registerSeriesType("arearange",E),E}),st(B,"Series/AreaSplineRange/AreaSplineRangeSeries.js",[B["Series/AreaRange/AreaRangeSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(O,w){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,d){T.__proto__=d}||function(T,d){for(var u in d)d.hasOwnProperty(u)&&(T[u]=d[u])},V(O,w)},function(O,w){function T(){this.constructor=O}V(O,w),O.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}),J=z.seriesTypes.spline.prototype,q=X.merge,W=X.extend,D=function(O){function w(){var T=O!==null&&O.apply(this,arguments)||this;return T.options=void 0,T.data=void 0,T.points=void 0,T}return K(w,O),w.defaultOptions=q(U.defaultOptions),w}(U);return W(D.prototype,{getPointSpline:J.getPointSpline}),z.registerSeriesType("areasplinerange",D),D}),st(B,"Series/BoxPlot/BoxPlotSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(T,d){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var b in g)g.hasOwnProperty(b)&&(u[b]=g[b])},K(T,d)},function(T,d){function u(){this.constructor=T}K(T,d),T.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),q=z.noop,W=V.extend,D=V.merge,O=V.pick,w=function(T){function d(){var u=T!==null&&T.apply(this,arguments)||this;return u.data=void 0,u.options=void 0,u.points=void 0,u}return J(d,T),d.prototype.pointAttribs=function(){return{}},d.prototype.translate=function(){var u=this,g=u.yAxis,b=u.pointArrayMap;T.prototype.translate.apply(u),u.points.forEach(function(v){b.forEach(function(S){v[S]!==null&&(v[S+"Plot"]=g.translate(v[S],0,1,0,1))}),v.plotHigh=v.highPlot})},d.prototype.drawPoints=function(){var u,g,b,v,S,P,E,M,f,x,l,h=this,e=h.points,r=h.options,n=h.chart,i=n.renderer,c=0,a=h.doQuartiles!==!1,s=h.options.whiskerLength;e.forEach(function(y){var A=y.graphic,_=A?"animate":"attr",p=y.shapeArgs,C={},k={},F={},G={},I=y.color||h.color;if(y.plotY!==void 0){E=Math.round(p.width),M=Math.floor(p.x),f=M+E,x=Math.round(E/2),u=Math.floor(a?y.q1Plot:y.lowPlot),g=Math.floor(a?y.q3Plot:y.lowPlot),b=Math.floor(y.highPlot),v=Math.floor(y.lowPlot),A||(y.graphic=A=i.g("point").add(h.group),y.stem=i.path().addClass("highcharts-boxplot-stem").add(A),s&&(y.whiskers=i.path().addClass("highcharts-boxplot-whisker").add(A)),a&&(y.box=i.path(void 0).addClass("highcharts-boxplot-box").add(A)),y.medianShape=i.path(void 0).addClass("highcharts-boxplot-median").add(A)),n.styledMode||(k.stroke=y.stemColor||r.stemColor||I,k["stroke-width"]=O(y.stemWidth,r.stemWidth,r.lineWidth),k.dashstyle=y.stemDashStyle||r.stemDashStyle||r.dashStyle,y.stem.attr(k),s&&(F.stroke=y.whiskerColor||r.whiskerColor||I,F["stroke-width"]=O(y.whiskerWidth,r.whiskerWidth,r.lineWidth),F.dashstyle=y.whiskerDashStyle||r.whiskerDashStyle||r.dashStyle,y.whiskers.attr(F)),a&&(C.fill=y.fillColor||r.fillColor||I,C.stroke=r.lineColor||I,C["stroke-width"]=r.lineWidth||0,C.dashstyle=y.boxDashStyle||r.boxDashStyle||r.dashStyle,y.box.attr(C)),G.stroke=y.medianColor||r.medianColor||I,G["stroke-width"]=O(y.medianWidth,r.medianWidth,r.lineWidth),G.dashstyle=y.medianDashStyle||r.medianDashStyle||r.dashStyle,y.medianShape.attr(G));var j=void 0;P=y.stem.strokeWidth()%2/2,j=[["M",c=M+x+P,g],["L",c,b],["M",c,u],["L",c,v]],y.stem[_]({d:j}),a&&(P=y.box.strokeWidth()%2/2,u=Math.floor(u)+P,g=Math.floor(g)+P,j=[["M",M+=P,g],["L",M,u],["L",f+=P,u],["L",f,g],["L",M,g],["Z"]],y.box[_]({d:j})),s&&(P=y.whiskers.strokeWidth()%2/2,b+=P,v+=P,l=/%$/.test(s)?x*parseFloat(s)/100:s/2,j=[["M",c-l,b],["L",c+l,b],["M",c-l,v],["L",c+l,v]],y.whiskers[_]({d:j})),S=Math.round(y.medianPlot),P=y.medianShape.strokeWidth()%2/2,j=[["M",M,S+=P],["L",f,S]],y.medianShape[_]({d:j})}})},d.prototype.toYData=function(u){return[u.low,u.q1,u.median,u.q3,u.high]},d.defaultOptions=D(U.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}),d}(U);return W(w.prototype,{pointArrayMap:["low","q1","median","q3","high"],pointValKey:"high",drawDataLabels:q,setStackedPoints:q}),X.registerSeriesType("boxplot",w),w}),st(B,"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}}),st(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=U.parse,J=X.noop,q=V.arrayMax,W=V.arrayMin,D=V.isNumber,O=V.merge,w=V.pick,T=V.stableSort;return function(){function d(u,g){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=J,this.init(u,g)}return d.prototype.init=function(u,g){this.options=u,this.visible=!0,this.chart=g.chart,this.legend=g},d.prototype.addToLegend=function(u){u.splice(this.options.legendIndex,0,this)},d.prototype.drawLegendSymbol=function(u){var g,b=this.chart,v=w(u.options.itemDistance,20),S=this.legendItem||{},P=this.options,E=P.ranges,M=P.connectorDistance;if(this.fontMetrics=b.renderer.fontMetrics(P.labels.style.fontSize),E&&E.length&&D(E[0].value)){T(E,function(h,e){return e.value-h.value}),this.ranges=E,this.setOptions(),this.render();var f=this.getMaxLabelSize(),x=this.ranges[0].radius,l=2*x;g=(g=M-x+f.width)>0?g:0,this.maxLabel=f,this.movementX=P.labels.align==="left"?g:0,S.labelWidth=l+g+v,S.labelHeight=l+this.fontMetrics.h/2}else u.options.bubbleLegend.autoRanges=!0},d.prototype.setOptions=function(){var u=this.ranges,g=this.options,b=this.chart.series[g.seriesIndex],v=this.legend.baseline,S={zIndex:g.zIndex,"stroke-width":g.borderWidth},P={zIndex:g.zIndex,"stroke-width":g.connectorWidth},E={align:this.legend.options.rtl||g.labels.align==="left"?"right":"left",zIndex:g.zIndex},M=b.options.marker.fillOpacity,f=this.chart.styledMode;u.forEach(function(x,l){f||(S.stroke=w(x.borderColor,g.borderColor,b.color),S.fill=w(x.color,g.color,M!==1?K(b.color).setOpacity(M).get("rgba"):b.color),P.stroke=w(x.connectorColor,g.connectorColor,b.color)),u[l].radius=this.getRangeRadius(x.value),u[l]=O(u[l],{center:u[0].radius-u[l].radius+v}),f||O(!0,u[l],{bubbleAttribs:O(S),connectorAttribs:O(P),labelAttribs:E})},this)},d.prototype.getRangeRadius=function(u){var g=this.options,b=this.options.seriesIndex,v=this.chart.series[b],S=g.ranges[0].value,P=g.ranges[g.ranges.length-1].value,E=g.minSize,M=g.maxSize;return v.getRadius.call(this,P,S,E,M,u)},d.prototype.render=function(){var u=this.legendItem||{},g=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),u.symbol=g.g("bubble-legend"),u.label=g.g("bubble-legend-item"),u.symbol.translateX=0,u.symbol.translateY=0;for(var v=0,S=this.ranges;v<S.length;v++){var P=S[v];P.value>=b&&this.renderRange(P)}u.symbol.add(u.label),u.label.add(u.group),this.hideOverlappingLabels()},d.prototype.renderRange=function(u){var g=this.ranges[0],b=this.legend,v=this.options,S=v.labels,P=this.chart,E=P.series[v.seriesIndex],M=P.renderer,f=this.symbols,x=f.labels,l=u.center,h=Math.abs(u.radius),e=v.connectorDistance||0,r=S.align,n=b.options.rtl,i=v.borderWidth,c=v.connectorWidth,a=g.radius||0,s=l-h-i/2+c/2,y=this.fontMetrics,A=y.f/2-(y.h-y.f)/2,_=(s%1?1:.5)-(c%2?0:.5),p=M.styledMode,C=n||r==="left"?-e:e;r==="center"&&(C=0,v.connectorDistance=0,u.labelAttribs.align="center");var k=s+v.labels.y,F=a+C+v.labels.x;f.bubbleItems.push(M.circle(a,l+_,h).attr(p?{}:u.bubbleAttribs).addClass((p?"highcharts-color-"+E.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(v.className||"")).add(this.legendItem.symbol)),f.connectors.push(M.path(M.crispLine([["M",a,s],["L",a+C,s]],v.connectorWidth)).attr(p?{}:u.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(v.connectorClassName||"")).add(this.legendItem.symbol));var G=M.text(this.formatLabel(u),F,k+A).attr(p?{}:u.labelAttribs).css(p?{}:S.style).addClass("highcharts-bubble-legend-labels "+(v.labels.className||"")).add(this.legendItem.symbol);x.push(G),G.placed=!0,G.alignAttr={x:F,y:k+A}},d.prototype.getMaxLabelSize=function(){var u,g;return this.symbols.labels.forEach(function(b){g=b.getBBox(!0),u=u?g.width>u.width?g:u:g}),u||{}},d.prototype.formatLabel=function(u){var g=this.options,b=g.labels.formatter,v=g.labels.format,S=this.chart.numberFormatter;return v?z.format(v,u):b?b.call(u):S(u.value,1)},d.prototype.hideOverlappingLabels=function(){var u=this.chart,g=this.options.labels.allowOverlap,b=this.symbols;!g&&b&&(u.hideOverlappingLabels(b.labels),b.labels.forEach(function(v,S){v.newOpacity?v.newOpacity!==v.oldOpacity&&b.connectors[S].show():b.connectors[S].hide()}))},d.prototype.getRanges=function(){var u,g,b=this.legend.bubbleLegend,v=b.chart.series,S=b.options.ranges,P=Number.MAX_VALUE,E=-Number.MAX_VALUE;return v.forEach(function(M){M.isBubble&&!M.ignoreSeries&&(g=M.zData.filter(D)).length&&(P=w(M.options.zMin,Math.min(P,Math.max(W(g),M.options.displayNegative===!1?M.options.zThreshold:-Number.MAX_VALUE))),E=w(M.options.zMax,Math.max(E,q(g))))}),u=P===E?[{value:E}]:[{value:P},{value:(P+E)/2},{value:E,autoRanges:!0}],S.length&&S[0].radius&&u.reverse(),u.forEach(function(M,f){S&&S[f]&&(u[f]=O(S[f],M))}),u},d.prototype.predictBubbleSizes=function(){var u,g=this.chart,b=this.fontMetrics,v=g.legend.options,S=v.floating,P=v.layout==="horizontal",E=P?g.legend.lastLineHeight:0,M=g.plotSizeX,f=g.plotSizeY,x=g.series[this.options.seriesIndex],l=x.getPxExtremes(),h=Math.ceil(l.minPxSize),e=Math.ceil(l.maxPxSize),r=Math.min(f,M),n=x.options.maxSize;return S||!/%$/.test(n)?u=e:(n=parseFloat(n),u=(r+E-b.h/2)*n/100/(n/100+1),(P&&f-u>=M||!P&&M-u>=f)&&(u=e)),[h,Math.ceil(u)]},d.prototype.updateRanges=function(u,g){var b=this.legend.options.bubbleLegend;b.minSize=u,b.maxSize=g,b.ranges=this.getRanges()},d.prototype.correctSizes=function(){var u=this.legend,g=this.chart.series[this.options.seriesIndex].getPxExtremes(),b=g.maxPxSize,v=this.options.maxSize;Math.abs(Math.ceil(b)-v)>1&&(this.updateRanges(this.options.minSize,g.maxPxSize),u.render())},d}()}),st(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=X.setOptions,J=V.addEvent,q=V.objectEach,W=V.wrap,D=[];function O(b,v,S){var P,E,M,f=this,x=f.legend,l=w(f)>=0;x&&x.options.enabled&&x.bubbleLegend&&x.options.bubbleLegend.autoRanges&&l?(P=x.bubbleLegend.options,E=x.bubbleLegend.predictBubbleSizes(),x.bubbleLegend.updateRanges(E[0],E[1]),P.placed||(x.group.placed=!1,x.allItems.forEach(function(h){(M=h.legendItem||{}).group&&(M.group.translateY=null)})),x.render(),f.getMargins(),f.axes.forEach(function(h){h.visible&&h.render(),P.placed||(h.setScale(),h.updateNames(),q(h.ticks,function(e){e.isNew=!0,e.isNewLabel=!0}))}),P.placed=!0,f.getMargins(),b.call(f,v,S),x.bubbleLegend.correctSizes(),g(x,T(x))):(b.call(f,v,S),x&&x.options.enabled&&x.bubbleLegend&&(x.render(),g(x,T(x))))}function w(b){for(var v=b.series,S=0;S<v.length;){if(v[S]&&v[S].isBubble&&v[S].visible&&v[S].zData.length)return S;S++}return-1}function T(b){var v,S,P,E=b.allItems,M=[],f=E.length,x=0,l=0;for(x=0;x<f;x++)if(S=E[x].legendItem||{},P=(E[x+1]||{}).legendItem||{},S.labelHeight&&(E[x].itemHeight=S.labelHeight),E[x]===E[f-1]||S.y!==P.y){for(M.push({height:0}),v=M[M.length-1];l<=x;l++)E[l].itemHeight>v.height&&(v.height=E[l].itemHeight);v.step=x}return M}function d(b){var v=this,S=v.bubbleLegend,P=v.options,E=P.bubbleLegend,M=w(v.chart);S&&S.ranges&&S.ranges.length&&(E.ranges.length&&(E.autoRanges=!!E.ranges[0].autoRanges),v.destroyItem(S)),M>=0&&P.enabled&&E.enabled&&(E.seriesIndex=M,v.bubbleLegend=new z(E,v),v.bubbleLegend.addToLegend(b.allItems))}function u(){var b,v=this,S=v.chart,P=v.visible,E=v.chart.legend;E&&E.bubbleLegend&&(v.visible=!P,v.ignoreSeries=P,b=w(S)>=0,E.bubbleLegend.visible!==b&&(E.update({bubbleLegend:{enabled:b}}),E.bubbleLegend.visible=b),v.visible=P)}function g(b,v){var S,P,E,M,f=b.allItems,x=b.options.rtl,l=0;f.forEach(function(h,e){(M=h.legendItem||{}).group&&(S=M.group.translateX||0,P=M.y||0,((E=h.movementX)||x&&h.ranges)&&(E=x?S-h.options.maxSize/2:S+E,M.group.attr({translateX:E})),e>v[l].step&&l++,M.group.attr({translateY:Math.round(P+v[l].height/2)}),M.y=P+v[l].height/2)})}return{compose:function(b,v,S){D.indexOf(b)===-1&&(D.push(b),K({legend:{bubbleLegend:U}}),W(b.prototype,"drawChartBox",O)),D.indexOf(v)===-1&&(D.push(v),J(v,"afterGetAllItems",d)),D.indexOf(S)===-1&&(D.push(S),J(S,"legendItemClick",u))}}}),st(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(D,O){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var d in T)T.hasOwnProperty(d)&&(w[d]=T[d])},V(D,O)},function(D,O){function w(){this.constructor=D}V(D,O),D.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),J=z.seriesTypes.scatter.prototype.pointClass,q=X.extend,W=function(D){function O(){var w=D!==null&&D.apply(this,arguments)||this;return w.options=void 0,w.series=void 0,w}return K(O,D),O.prototype.haloPath=function(w){return U.prototype.haloPath.call(this,w===0?0:(this.marker&&this.marker.radius||0)+w)},O}(J);return q(W.prototype,{ttBelow:!1}),W}),st(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q,W=this&&this.__extends||(q=function(e,r){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])},q(e,r)},function(e,r){function n(){this.constructor=e}q(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}),D=X.parse,O=V.noop,w=K.series,T=K.seriesTypes,d=T.column.prototype,u=T.scatter,g=J.addEvent,b=J.arrayMax,v=J.arrayMin,S=J.clamp,P=J.extend,E=J.isNumber,M=J.merge,f=J.pick,x=[];function l(){var e,r=this,n=this.len,i=this.chart,c=this.isXAxis,a=c?"xData":"yData",s=this.min,y=this.max-s,A=0,_=n,p=n/y;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!i.options.chart.ignoreHiddenSeries)){r.allowZoomOutside=!0,e=!0;var k=C[a];if(c&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),y>0){for(var F=k.length;F--;)if(E(k[F])&&r.dataMin<=k[F]&&k[F]<=r.max){var G=C.radii&&C.radii[F]||0;A=Math.min((k[F]-s)*p-G,A),_=Math.max((k[F]-s)*p+G,_)}}}}),e&&y>0&&!this.logarithmic&&(_-=n,p*=(n+Math.max(0,A)-Math.min(_,n))/n,[["min","userMin",A],["max","userMax",_]].forEach(function(C){f(r.options[C[0]],r[C[1]])===void 0&&(r[C[0]]+=C[2]/p)}))}var h=function(e){function r(){var n=e!==null&&e.apply(this,arguments)||this;return n.data=void 0,n.maxPxSize=void 0,n.minPxSize=void 0,n.options=void 0,n.points=void 0,n.radii=void 0,n.yData=void 0,n.zData=void 0,n}return W(r,e),r.compose=function(n,i,c,a){U.compose(i,c,a),x.indexOf(n)===-1&&(x.push(n),n.prototype.beforePadding=l)},r.prototype.animate=function(n){!n&&this.points.length<this.options.animationLimit&&this.points.forEach(function(i){var c=i.graphic;c&&c.width&&(this.hasRendered||c.attr({x:i.plotX,y:i.plotY,width:1,height:1}),c.animate(this.markerAttribs(i),this.options.animation))},this)},r.prototype.getRadii=function(){var n,i,c,a=this,s=this.zData,y=this.yData,A=[],_=this.chart.bubbleZExtremes,p=this.getPxExtremes(),C=p.minPxSize,k=p.maxPxSize;if(!_){var F,G=Number.MAX_VALUE,I=-Number.MAX_VALUE;this.chart.series.forEach(function(j){if(j.bubblePadding&&(j.visible||!a.chart.options.chart.ignoreHiddenSeries)){var N=(j.onPoint||j).getZExtremes();N&&(G=Math.min(G||N.zMin,N.zMin),I=Math.max(I||N.zMax,N.zMax),F=!0)}}),F?(_={zMin:G,zMax:I},this.chart.bubbleZExtremes=_):_={zMin:0,zMax:0}}for(i=0,n=s.length;i<n;i++)c=s[i],A.push(this.getRadius(_.zMin,_.zMax,C,k,c,y&&y[i]));this.radii=A},r.prototype.getRadius=function(n,i,c,a,s,y){var A=this.options,_=A.sizeBy!=="width",p=A.zThreshold,C=i-n,k=.5;if(y===null||s===null)return null;if(E(s)){if(A.sizeByAbsoluteValue&&(s=Math.abs(s-p),i=C=Math.max(i-p,Math.abs(n-p)),n=0),s<n)return c/2-1;C>0&&(k=(s-n)/C)}return _&&k>=0&&(k=Math.sqrt(k)),Math.ceil(c+k*(a-c))/2},r.prototype.hasData=function(){return!!this.processedXData.length},r.prototype.pointAttribs=function(n,i){var c=this.options.marker.fillOpacity,a=w.prototype.pointAttribs.call(this,n,i);return c!==1&&(a.fill=D(a.fill).setOpacity(c).get("rgba")),a},r.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},r.prototype.translateBubble=function(){for(var n=this.data,i=this.radii,c=this.getPxExtremes().minPxSize,a=n.length;a--;){var s=n[a],y=i?i[a]:0;E(y)&&y>=c/2?(s.marker=P(s.marker,{radius:y,width:2*y,height:2*y}),s.dlBox={x:s.plotX-y,y:s.plotY-y,width:2*y,height:2*y}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}},r.prototype.getPxExtremes=function(){var n=Math.min(this.chart.plotWidth,this.chart.plotHeight),i=function(a){var s;return typeof a=="string"&&(s=/%$/.test(a),a=parseInt(a,10)),s?n*a/100:a},c=i(f(this.options.minSize,8));return{minPxSize:c,maxPxSize:Math.max(i(f(this.options.maxSize,"20%")),c)}},r.prototype.getZExtremes=function(){var n=this.options,i=(this.zData||[]).filter(E);if(i.length){var c=f(n.zMin,S(v(i),n.displayNegative===!1?n.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),a=f(n.zMax,b(i));if(E(c)&&E(a))return{zMin:c,zMax:a}}},r.defaultOptions=M(u.defaultOptions,{dataLabels:{formatter:function(){var n=this.series.chart.numberFormatter,i=this.point.z;return E(i)?n(i,-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"}),r}(u);return P(h.prototype,{alignDataLabel:d.alignDataLabel,applyZones:O,bubblePadding:!0,buildKDTree:O,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:z,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(h,"updatedData",function(e){delete e.target.chart.bubbleZExtremes}),g(h,"remove",function(e){delete e.target.chart.bubbleZExtremes}),K.registerSeriesType("bubble",h),h}),st(B,"Series/ColumnRange/ColumnRangePoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(w,T){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},X(w,T)},function(w,T){function d(){this.constructor=w}X(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),K=U.seriesTypes,J=K.column.prototype.pointClass.prototype,q=K.arearange.prototype.pointClass,W=z.extend,D=z.isNumber,O=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.options=void 0,d.series=void 0,d}return V(T,w),T.prototype.isValid=function(){return D(this.low)},T}(q);return W(O.prototype,{setState:J.setState}),O}),st(B,"Series/ColumnRange/ColumnRangeSeries.js",[B["Series/ColumnRange/ColumnRangePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(P,E){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,f){M.__proto__=f}||function(M,f){for(var x in f)f.hasOwnProperty(x)&&(M[x]=f[x])},K(P,E)},function(P,E){function M(){this.constructor=P}K(P,E),P.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),q=z.noop,W=X.seriesTypes,D=W.arearange,O=W.column,w=W.column.prototype,T=V.clamp,d=V.extend,u=V.isNumber,g=V.merge,b=V.pick,v={pointRange:null,marker:null,states:{hover:{halo:!1}}},S=function(P){function E(){return P!==null&&P.apply(this,arguments)||this}return J(E,P),E.prototype.setOptions=function(){return g(!0,arguments[0],{stacking:void 0}),D.prototype.setOptions.apply(this,arguments)},E.prototype.translate=function(){var M,f,x,l,h=this,e=this.yAxis,r=this.xAxis,n=r.startAngleRad,i=this.chart,c=this.xAxis.isRadial,a=Math.max(i.chartWidth,i.chartHeight)+999;function s(y){return T(y,-a,a)}w.translate.apply(this),this.points.forEach(function(y){var A=y.shapeArgs||{},_=h.options.minPointLength,p=y.plotY,C=e.translate(y.high,0,1,0,1);if(u(C)&&u(p))if(y.plotHigh=s(C),y.plotLow=s(p),l=y.plotHigh,M=b(y.rectPlotY,y.plotY)-y.plotHigh,Math.abs(M)<_?(M+=f=_-M,l-=f/2):M<0&&(l-=M*=-1),c&&h.polar)x=y.barX+n,y.shapeType="arc",y.shapeArgs=h.polar.arc(l+M,l,x,x+y.pointWidth);else{A.height=M,A.y=l;var k=A.x,F=k===void 0?0:k,G=A.width,I=G===void 0?0:G;y.tooltipPos=i.inverted?[e.len+e.pos-i.plotLeft-l-M/2,r.len+r.pos-i.plotTop-F-I/2,M]:[r.left-i.plotLeft+F+I/2,e.pos-i.plotTop+l+M/2,M]}})},E.prototype.pointAttribs=function(){return w.pointAttribs.apply(this,arguments)},E.prototype.translate3dPoints=function(){return w.translate3dPoints.apply(this,arguments)},E.prototype.translate3dShapes=function(){return w.translate3dShapes.apply(this,arguments)},E.defaultOptions=g(O.defaultOptions,D.defaultOptions,v),E}(D);return d(S.prototype,{directTouch:!0,pointClass:U,trackerGroups:["group","dataLabelsGroup"],adjustForMissingColumns:w.adjustForMissingColumns,animate:w.animate,crispCol:w.crispCol,drawGraph:q,drawPoints:w.drawPoints,getSymbol:q,drawTracker:w.drawTracker,getColumnMetrics:w.getColumnMetrics}),X.registerSeriesType("columnrange",S),S}),st(B,"Series/ColumnPyramid/ColumnPyramidSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(w,T){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},V(w,T)},function(w,T){function d(){this.constructor=w}V(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),J=U.prototype,q=X.clamp,W=X.merge,D=X.pick,O=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.data=void 0,d.options=void 0,d.points=void 0,d}return K(T,w),T.prototype.translate=function(){var d=this,u=d.chart,g=d.options,b=d.dense=d.closestPointRange*d.xAxis.transA<2,v=d.borderWidth=D(g.borderWidth,b?0:1),S=d.yAxis,P=g.threshold,E=d.translatedThreshold=S.getThreshold(P),M=D(g.minPointLength,5),f=d.getColumnMetrics(),x=f.width,l=d.barW=Math.max(x,1+2*v),h=d.pointXOffset=f.offset;u.inverted&&(E-=.5),g.pointPadding&&(l=Math.ceil(l)),J.translate.apply(d),d.points.forEach(function(e){var r,n,i,c,a,s,y,A,_,p,C,k,F=D(e.yBottom,E),G=999+Math.abs(F),I=q(e.plotY,-G,S.len+G),j=e.plotX+h,N=l/2,Z=Math.min(I,F),$=Math.max(I,F)-Z;e.barX=j,e.pointWidth=x,e.tooltipPos=u.inverted?[S.len+S.pos-u.plotLeft-I,d.xAxis.len-j-N,$]:[j+N,I+S.pos-u.plotTop,$],r=P+(e.total||e.y),g.stacking==="percent"&&(r=P+(e.y<0)?-100:100),i=S.toPixels(r,!0),y=j-(c=(n=u.plotHeight-i-(u.plotHeight-E))?N*(Z-i)/n:0)+N,A=j+c+N,_=j+(a=n?N*(Z+$-i)/n:0)+N,p=j-a+N,C=Z-M,k=Z+$,e.y<0&&(C=Z,k=Z+$+M),u.inverted&&(A=(y=j+N+(c=N*(i-(s=S.width-Z))/(n=i-(S.width-E))))-2*c,_=j-(a=N*(i-(s-$))/n)+N,p=j+a+N,C=Z,k=Z+$-M,e.y<0&&(k=Z+$+M)),e.shapeType="path",e.shapeArgs={x:y,y:C,width:A-y,height:$,d:[["M",y,C],["L",A,C],["L",_,k],["L",p,k],["Z"]]}})},T.defaultOptions=W(U.defaultOptions,{}),T}(U);return z.registerSeriesType("columnpyramid",O),O}),st(B,"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}}),st(B,"Series/ErrorBar/ErrorBarSeries.js",[B["Series/BoxPlot/BoxPlotSeries.js"],B["Series/Column/ColumnSeries.js"],B["Series/ErrorBar/ErrorBarSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J,q=this&&this.__extends||(J=function(d,u){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},J(d,u)},function(d,u){function g(){this.constructor=d}J(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),W=V.seriesTypes.arearange,D=K.addEvent,O=K.merge,w=K.extend,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return q(u,d),u.prototype.getColumnMetrics=function(){return this.linkedParent&&this.linkedParent.columnMetrics||z.prototype.getColumnMetrics.call(this)},u.prototype.drawDataLabels=function(){var g=this.pointValKey;W&&(W.prototype.drawDataLabels.call(this),this.data.forEach(function(b){b.y=b[g]}))},u.prototype.toYData=function(g){return[g.low,g.high]},u.defaultOptions=O(U.defaultOptions,X),u}(U);return D(T,"afterTranslate",function(){this.points.forEach(function(d){d.plotLow=d.plotY})},{order:0}),w(T.prototype,{pointArrayMap:["low","high"],pointValKey:"high",doQuartiles:!1}),V.registerSeriesType("errorbar",T),T}),st(B,"Series/Gauge/GaugePoint.js",[B["Core/Series/SeriesRegistry.js"]],function(U){var z,X=this&&this.__extends||(z=function(K,J){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,W){q.__proto__=W}||function(q,W){for(var D in W)W.hasOwnProperty(D)&&(q[D]=W[D])},z(K,J)},function(K,J){function q(){this.constructor=K}z(K,J),K.prototype=J===null?Object.create(J):(q.prototype=J.prototype,new q)}),V=function(K){function J(){var q=K!==null&&K.apply(this,arguments)||this;return q.options=void 0,q.series=void 0,q.shapeArgs=void 0,q}return X(J,K),J.prototype.setState=function(q){this.state=q},J}(U.series.prototype.pointClass);return V}),st(B,"Series/Gauge/GaugeSeries.js",[B["Series/Gauge/GaugePoint.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(v,S){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,E){P.__proto__=E}||function(P,E){for(var M in E)E.hasOwnProperty(M)&&(P[M]=E[M])},K(v,S)},function(v,S){function P(){this.constructor=v}K(v,S),v.prototype=S===null?Object.create(S):(P.prototype=S.prototype,new P)}),q=z.noop,W=X.series,D=X.seriesTypes.column,O=V.clamp,w=V.isNumber,T=V.extend,d=V.merge,u=V.pick,g=V.pInt,b=function(v){function S(){var P=v!==null&&v.apply(this,arguments)||this;return P.data=void 0,P.points=void 0,P.options=void 0,P.yAxis=void 0,P}return J(S,v),S.prototype.translate=function(){var P=this,E=P.yAxis,M=P.options,f=E.center;P.generatePoints(),P.points.forEach(function(x){var l=d(M.dial,x.dial),h=g(l.radius)*f[2]/200,e=g(l.baseLength)*h/100,r=g(l.rearLength)*h/100,n=l.baseWidth,i=l.topWidth,c=M.overshoot,a=E.startAngleRad+E.translate(x.y,void 0,void 0,void 0,!0);(w(c)||M.wrap===!1)&&(c=w(c)?c/180*Math.PI:0,a=O(a,E.startAngleRad-c,E.endAngleRad+c)),a=180*a/Math.PI,x.shapeType="path";var s=l.path||[["M",-r,-n/2],["L",e,-n/2],["L",h,-i/2],["L",h,i/2],["L",e,n/2],["L",-r,n/2],["Z"]];x.shapeArgs={d:s,translateX:f[0],translateY:f[1],rotation:a},x.plotX=f[0],x.plotY=f[1]})},S.prototype.drawPoints=function(){var P=this,E=P.chart,M=P.yAxis.center,f=P.pivot,x=P.options,l=x.pivot,h=E.renderer;P.points.forEach(function(e){var r=e.graphic,n=e.shapeArgs,i=n.d,c=d(x.dial,e.dial);r?(r.animate(n),n.d=i):e.graphic=h[e.shapeType](n).attr({rotation:n.rotation,zIndex:1}).addClass("highcharts-dial").add(P.group),E.styledMode||e.graphic[r?"animate":"attr"]({stroke:c.borderColor,"stroke-width":c.borderWidth,fill:c.backgroundColor})}),f?f.animate({translateX:M[0],translateY:M[1]}):l&&(P.pivot=h.circle(0,0,l.radius).attr({zIndex:2}).addClass("highcharts-pivot").translate(M[0],M[1]).add(P.group),E.styledMode||P.pivot.attr({fill:l.backgroundColor,stroke:l.borderColor,"stroke-width":l.borderWidth}))},S.prototype.animate=function(P){var E=this;P||E.points.forEach(function(M){var f=M.graphic;f&&(f.attr({rotation:180*E.yAxis.startAngleRad/Math.PI}),f.animate({rotation:M.shapeArgs.rotation},E.options.animation))})},S.prototype.render=function(){this.group=this.plotGroup("group","series",this.visible?"inherit":"hidden",this.options.zIndex,this.chart.seriesGroup),W.prototype.render.call(this),this.group.clip(this.chart.clipRect)},S.prototype.setData=function(P,E){W.prototype.setData.call(this,P,!1),this.processData(),this.generatePoints(),u(E,!0)&&this.chart.redraw()},S.prototype.hasData=function(){return!!this.points.length},S.defaultOptions=d(W.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}),S}(W);return T(b.prototype,{angular:!0,directTouch:!0,drawGraph:q,drawTracker:D.prototype.drawTracker,fixedBox:!0,forceDL:!0,noSharedTooltip:!0,pointClass:U,trackerGroups:["group","dataLabelsGroup"]}),X.registerSeriesType("gauge",b),b}),st(B,"Series/DragNodesComposition.js",[B["Core/Utilities.js"]],function(U){var z=U.addEvent,X=[];function V(){var K,J,q,W=this;W.container&&(K=z(W.container,"mousedown",function(D){var O=W.hoverPoint;O&&O.series&&O.series.hasDraggableNodes&&O.series.options.draggable&&(O.series.onMouseDown(O,D),J=z(W.container,"mousemove",function(w){return O&&O.series&&O.series.onMouseMove(O,w)}),q=z(W.container.ownerDocument,"mouseup",function(w){return J(),q(),O&&O.series&&O.series.onMouseUp(O,w)}))})),z(W,"destroy",function(){K()})}return{compose:function(K){X.indexOf(K)===-1&&(X.push(K),z(K,"load",V))},onMouseDown:function(K,J){var q=this.chart.pointer.normalize(J);K.fixedPosition={chartX:q.chartX,chartY:q.chartY,plotX:K.plotX,plotY:K.plotY},K.inDragMode=!0},onMouseMove:function(K,J){if(K.fixedPosition&&K.inDragMode){var q=this.chart,W=q.pointer.normalize(J),D=K.fixedPosition.chartX-W.chartX,O=K.fixedPosition.chartY-W.chartY,w=q.graphLayoutsLookup,T=void 0,d=void 0;(Math.abs(D)>5||Math.abs(O)>5)&&(T=K.fixedPosition.plotX-D,d=K.fixedPosition.plotY-O,q.isInsidePlot(T,d)&&(K.plotX=T,K.plotY=d,K.hasDragged=!0,this.redrawHalo(K),w.forEach(function(u){u.restartSimulation()})))}},onMouseUp:function(K,J){K.fixedPosition&&(K.hasDragged&&(this.layout.enableSimulation?this.layout.start():this.chart.redraw()),K.inDragMode=K.hasDragged=!1,this.options.fixedDraggable||delete K.fixedPosition)},redrawHalo:function(K){K&&this.halo&&this.halo.attr({d:K.haloPath(this.options.states.hover.halo.size)})}}}),st(B,"Series/GraphLayoutComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Utilities.js"]],function(U,z){var X=U.setAnimation,V=z.addEvent,K=[];function J(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(O){O.updateSimulation()}),this.redraw())}function q(){this.graphLayoutsLookup&&(this.graphLayoutsLookup.forEach(function(O){O.updateSimulation(!1)}),this.redraw())}function W(){this.graphLayoutsLookup&&this.graphLayoutsLookup.forEach(function(O){O.stop()})}function D(){var O,w=!1,T=function(d){d.maxIterations--&&isFinite(d.temperature)&&!d.isStable()&&!d.enableSimulation&&(d.beforeStep&&d.beforeStep(),d.step(),O=!1,w=!0)};if(this.graphLayoutsLookup){for(X(!1,this),this.graphLayoutsLookup.forEach(function(d){return d.start()});!O;)O=!0,this.graphLayoutsLookup.forEach(T);w&&this.series.forEach(function(d){d&&d.layout&&d.render()})}}return{compose:function(O){K.indexOf(O)&&(K.push(O),V(O,"afterPrint",J),V(O,"beforePrint",q),V(O,"predraw",W),V(O,"render",D))},integrations:{},layouts:{}}}),st(B,"Series/PackedBubble/PackedBubblePoint.js",[B["Core/Chart/Chart.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(q,W){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(D,O){D.__proto__=O}||function(D,O){for(var w in O)O.hasOwnProperty(w)&&(D[w]=O[w])},V(q,W)},function(q,W){function D(){this.constructor=q}V(q,W),q.prototype=W===null?Object.create(W):(D.prototype=W.prototype,new D)}),J=function(q){function W(){var D=q!==null&&q.apply(this,arguments)||this;return D.degree=NaN,D.mass=NaN,D.radius=NaN,D.options=void 0,D.series=void 0,D.value=null,D}return K(W,q),W.prototype.destroy=function(){return this.series.layout&&this.series.layout.removeElementFromCollection(this,this.series.layout.nodes),z.prototype.destroy.apply(this,arguments)},W.prototype.firePointEvent=function(){var D=this.series,O=D.options;if(this.isParentNode&&O.parentNode){var w=O.allowPointSelect;O.allowPointSelect=O.parentNode.allowPointSelect,z.prototype.firePointEvent.apply(this,arguments),O.allowPointSelect=w}else z.prototype.firePointEvent.apply(this,arguments)},W.prototype.select=function(){var D=this,O=this.series,w=O.chart;D.isParentNode?(w.getSelectedPoints=w.getSelectedParentNodes,z.prototype.select.apply(this,arguments),w.getSelectedPoints=U.prototype.getSelectedPoints):z.prototype.select.apply(this,arguments)},W}(X.seriesTypes.bubble.prototype.pointClass);return J}),st(B,"Series/PackedBubble/PackedBubbleSeriesDefaults.js",[B["Core/Utilities.js"]],function(U){var z=U.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,V=this.point.value;return z(V)?X(V,-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}}}),st(B,"Series/Networkgraph/VerletIntegration.js",[],function(){return{attractive:function(U,z,X){var V=U.getMass(),K=-X.x*z*this.diffTemperature,J=-X.y*z*this.diffTemperature;U.fromNode.fixedPosition||(U.fromNode.plotX-=K*V.fromNode/U.fromNode.degree,U.fromNode.plotY-=J*V.fromNode/U.fromNode.degree),U.toNode.fixedPosition||(U.toNode.plotX+=K*V.toNode/U.toNode.degree,U.toNode.plotY+=J*V.toNode/U.toNode.degree)},attractiveForceFunction:function(U,z){return(z-U)/U},barycenter:function(){var U=this.options.gravitationalConstant,z=this.barycenter.xFactor,X=this.barycenter.yFactor;z=(z-(this.box.left+this.box.width)/2)*U,X=(X-(this.box.top+this.box.height)/2)*U,this.nodes.forEach(function(V){V.fixedPosition||(V.plotX-=z/V.mass/V.degree,V.plotY-=X/V.mass/V.degree)})},getK:function(U){return Math.pow(U.box.width*U.box.height/U.nodes.length,.5)},integrate:function(U,z){var X=-U.options.friction,V=U.options.maxSpeed,K=z.prevX,J=z.prevY,q=(z.plotX+z.dispX-K)*X,W=(z.plotY+z.dispY-J)*X,D=Math.abs,O=D(q)/(q||1),w=D(W)/(W||1);q=O*Math.min(V,Math.abs(q)),W=w*Math.min(V,Math.abs(W)),z.prevX=z.plotX+z.dispX,z.prevY=z.plotY+z.dispY,z.plotX+=q,z.plotY+=W,z.temperature=U.vectorLength({x:q,y:W})},repulsive:function(U,z,X){var V=z*this.diffTemperature/U.mass/U.degree;U.fixedPosition||(U.plotX+=X.x*V,U.plotY+=X.y*V)},repulsiveForceFunction:function(U,z){return(z-U)/U*(z>U?1:0)}}}),st(B,"Series/PackedBubble/PackedBubbleIntegration.js",[B["Core/Globals.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(U,z){return{barycenter:function(){for(var X,V,K=this,J=K.options.gravitationalConstant,q=K.box,W=K.nodes,D=0,O=W;D<O.length;D++){var w=O[D];K.options.splitSeries&&!w.isParentNode?(X=w.series.parentNode.plotX,V=w.series.parentNode.plotY):(X=q.width/2,V=q.height/2),w.fixedPosition||(w.plotX-=(w.plotX-X)*J/(w.mass*Math.sqrt(W.length)),w.plotY-=(w.plotY-V)*J/(w.mass*Math.sqrt(W.length)))}},getK:U.noop,integrate:z.integrate,repulsive:function(X,V,K,J){var q=V*this.diffTemperature/X.mass/X.degree,W=K.x*q,D=K.y*q;X.fixedPosition||(X.plotX+=W,X.plotY+=D),J.fixedPosition||(J.plotX-=W,J.plotY-=D)},repulsiveForceFunction:function(X,V,K,J){return Math.min(X,(K.marker.radius+J.marker.radius)/2)}}}),st(B,"Series/Networkgraph/EulerIntegration.js",[],function(){return{attractive:function(U,z,X,V){var K=U.getMass(),J=X.x/V*z,q=X.y/V*z;U.fromNode.fixedPosition||(U.fromNode.dispX-=J*K.fromNode/U.fromNode.degree,U.fromNode.dispY-=q*K.fromNode/U.fromNode.degree),U.toNode.fixedPosition||(U.toNode.dispX+=J*K.toNode/U.toNode.degree,U.toNode.dispY+=q*K.toNode/U.toNode.degree)},attractiveForceFunction:function(U,z){return U*U/z},barycenter:function(){var U=this.options.gravitationalConstant,z=this.barycenter.xFactor,X=this.barycenter.yFactor;this.nodes.forEach(function(V){if(!V.fixedPosition){var K=V.getDegree(),J=K*(1+K/2);V.dispX+=(z-V.plotX)*U*J/V.degree,V.dispY+=(X-V.plotY)*U*J/V.degree}})},getK:function(U){return Math.pow(U.box.width*U.box.height/U.nodes.length,.3)},integrate:function(U,z){var X;z.dispX+=z.dispX*U.options.friction,z.dispY+=z.dispY*U.options.friction,(X=z.temperature=U.vectorLength({x:z.dispX,y:z.dispY}))!==0&&(z.plotX+=z.dispX/X*Math.min(Math.abs(z.dispX),U.temperature),z.plotY+=z.dispY/X*Math.min(Math.abs(z.dispY),U.temperature))},repulsive:function(U,z,X,V){U.dispX+=X.x/V*z/U.degree,U.dispY+=X.y/V*z/U.degree},repulsiveForceFunction:function(U,z){return z*z/U}}}),st(B,"Series/Networkgraph/QuadTreeNode.js",[],function(){return function(){function U(z){this.body=!1,this.isEmpty=!1,this.isInternal=!1,this.nodes=[],this.box=z,this.boxSize=Math.min(z.width,z.height)}return U.prototype.divideBox=function(){var z=this.box.width/2,X=this.box.height/2;this.nodes[0]=new U({left:this.box.left,top:this.box.top,width:z,height:X}),this.nodes[1]=new U({left:this.box.left+z,top:this.box.top,width:z,height:X}),this.nodes[2]=new U({left:this.box.left+z,top:this.box.top+X,width:z,height:X}),this.nodes[3]=new U({left:this.box.left,top:this.box.top+X,width:z,height:X})},U.prototype.getBoxPosition=function(z){var X=z.plotX<this.box.left+this.box.width/2,V=z.plotY<this.box.top+this.box.height/2;return X?V?0:3:V?1:2},U.prototype.insert=function(z,X){var V;this.isInternal?this.nodes[this.getBoxPosition(z)].insert(z,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(z)].insert(z,X-1)):((V=new U({top:z.plotX||NaN,left:z.plotY||NaN,width:.1,height:.1})).body=z,V.isInternal=!1,this.nodes.push(V)):(this.isInternal=!1,this.body=z))},U.prototype.updateMassAndCenter=function(){var z=0,X=0,V=0;if(this.isInternal){for(var K=0,J=this.nodes;K<J.length;K++){var q=J[K];q.isEmpty||(z+=q.mass,X+=q.plotX*q.mass,V+=q.plotY*q.mass)}X/=z,V/=z}else this.body&&(z=this.body.mass,X=this.body.plotX,V=this.body.plotY);this.mass=z,this.plotX=X,this.plotY=V},U}()}),st(B,"Series/Networkgraph/QuadTree.js",[B["Series/Networkgraph/QuadTreeNode.js"]],function(U){return function(){function z(X,V,K,J){this.box={left:X,top:V,width:K,height:J},this.maxDepth=25,this.root=new U(this.box),this.root.isInternal=!0,this.root.isRoot=!0,this.root.divideBox()}return z.prototype.calculateMassAndCenter=function(){this.visitNodeRecursive(null,null,function(X){X.updateMassAndCenter()})},z.prototype.insertNodes=function(X){for(var V=0,K=X;V<K.length;V++){var J=K[V];this.root.insert(J,this.maxDepth)}},z.prototype.visitNodeRecursive=function(X,V,K){var J;if(X||(X=this.root),X===this.root&&V&&(J=V(X)),J!==!1){for(var q=0,W=X.nodes;q<W.length;q++){var D=W[q];if(D.isInternal){if(V&&(J=V(D)),J===!1)continue;this.visitNodeRecursive(D,V,K)}else D.body&&V&&V(D.body);K&&K(D)}X===this.root&&K&&K(X)}},z}()}),st(B,"Series/Networkgraph/ReingoldFruchtermanLayout.js",[B["Series/Networkgraph/EulerIntegration.js"],B["Core/Globals.js"],B["Series/GraphLayoutComposition.js"],B["Series/Networkgraph/QuadTree.js"],B["Core/Utilities.js"],B["Series/Networkgraph/VerletIntegration.js"]],function(U,z,X,V,K,J){var q=z.win,W=K.clamp,D=K.defined,O=K.isFunction,w=K.pick,T=function(){function d(){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 d.compose=function(u){X.compose(u),X.integrations.euler=U,X.integrations.verlet=J,X.layouts["reingold-fruchterman"]=d},d.prototype.init=function(u){this.options=u,this.nodes=[],this.links=[],this.series=[],this.box={x:0,y:0,width:0,height:0},this.setInitialRendering(!0),this.integration=X.integrations[u.integration],this.enableSimulation=u.enableSimulation,this.attractiveForce=w(u.attractiveForce,this.integration.attractiveForceFunction),this.repulsiveForce=w(u.repulsiveForce,this.integration.repulsiveForceFunction),this.approximation=u.approximation},d.prototype.updateSimulation=function(u){this.enableSimulation=w(u,this.options.enableSimulation)},d.prototype.start=function(){var u=this,g=this.series,b=this.options;u.currentStep=0,u.forces=g[0]&&g[0].forces||[],u.chart=g[0]&&g[0].chart,u.initialRendering&&(u.initPositions(),g.forEach(function(v){v.finishedAnimating=!0,v.render()})),u.setK(),u.resetSimulation(b),u.enableSimulation&&u.step()},d.prototype.step=function(){var u=this,g=this.series;this.currentStep++,this.approximation==="barnes-hut"&&(this.createQuadTree(),this.quadTree.calculateMassAndCenter());for(var b=0,v=this.forces||[];b<v.length;b++)this[v[b]+"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 S=0,P=g;S<P.length;S++){var E=P[S];E.chart&&E.render()}this.maxIterations--&&isFinite(this.temperature)&&!this.isStable()?(this.simulation&&q.cancelAnimationFrame(this.simulation),this.simulation=q.requestAnimationFrame(function(){return u.step()})):this.simulation=!1}},d.prototype.stop=function(){this.simulation&&q.cancelAnimationFrame(this.simulation)},d.prototype.setArea=function(u,g,b,v){this.box={left:u,top:g,width:b,height:v}},d.prototype.setK=function(){this.k=this.options.linkLength||this.integration.getK(this)},d.prototype.addElementsToCollection=function(u,g){for(var b=0,v=u;b<v.length;b++){var S=v[b];g.indexOf(S)===-1&&g.push(S)}},d.prototype.removeElementFromCollection=function(u,g){var b=g.indexOf(u);b!==-1&&g.splice(b,1)},d.prototype.clear=function(){this.nodes.length=0,this.links.length=0,this.series.length=0,this.resetSimulation()},d.prototype.resetSimulation=function(){this.forcedStop=!1,this.systemTemperature=0,this.setMaxIterations(),this.setTemperature(),this.setDiffTemperature()},d.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))},d.prototype.setMaxIterations=function(u){this.maxIterations=w(u,this.options.maxIterations)},d.prototype.setTemperature=function(){this.temperature=this.startTemperature=Math.sqrt(this.nodes.length)},d.prototype.setDiffTemperature=function(){this.diffTemperature=this.startTemperature/(this.options.maxIterations+1)},d.prototype.setInitialRendering=function(u){this.initialRendering=u},d.prototype.createQuadTree=function(){this.quadTree=new V(this.box.left,this.box.top,this.box.width,this.box.height),this.quadTree.insertNodes(this.nodes)},d.prototype.initPositions=function(){var u=this.options.initialPositions;if(O(u)){u.call(this);for(var g=0,b=this.nodes;g<b.length;g++){var v=b[g];D(v.prevX)||(v.prevX=v.plotX),D(v.prevY)||(v.prevY=v.plotY),v.dispX=0,v.dispY=0}}else u==="circle"?this.setCircularPositions():this.setRandomPositions()},d.prototype.setCircularPositions=function(){for(var u,g=this.box,b=this.nodes,v=b.length+1,S=2*Math.PI/v,P=b.filter(function(s){return s.linksTo.length===0}),E={},M=this.options.initialPositionRadius,f=function(s){for(var y=0,A=s.linksFrom||[];y<A.length;y++){var _=A[y];E[_.toNode.id]||(E[_.toNode.id]=!0,x.push(_.toNode),f(_.toNode))}},x=[],l=0,h=P;l<h.length;l++){var e=h[l];x.push(e),f(e)}if(x.length)for(var r=0,n=b;r<n.length;r++){var i=n[r];x.indexOf(i)===-1&&x.push(i)}else x=b;for(var c=0,a=x.length;c<a;++c)(u=x[c]).plotX=u.prevX=w(u.plotX,g.width/2+M*Math.cos(c*S)),u.plotY=u.prevY=w(u.plotY,g.height/2+M*Math.sin(c*S)),u.dispX=0,u.dispY=0},d.prototype.setRandomPositions=function(){for(var u,g=this.box,b=this.nodes,v=b.length+1,S=function(M){var f=M*M/Math.PI;return f-Math.floor(f)},P=0,E=b.length;P<E;++P)(u=b[P]).plotX=u.prevX=w(u.plotX,g.width*S(P)),u.plotY=u.prevY=w(u.plotY,g.height*S(v+P)),u.dispX=0,u.dispY=0},d.prototype.force=function(u){for(var g=[],b=1;b<arguments.length;b++)g[b-1]=arguments[b];this.integration[u].apply(this,g)},d.prototype.barycenterForces=function(){this.getBarycenter(),this.force("barycenter")},d.prototype.getBarycenter=function(){for(var u=0,g=0,b=0,v=0,S=this.nodes;v<S.length;v++){var P=S[v];g+=P.plotX*P.mass,b+=P.plotY*P.mass,u+=P.mass}return this.barycenter={x:g,y:b,xFactor:g/u,yFactor:b/u},this.barycenter},d.prototype.barnesHutApproximation=function(u,g){var b,v,S=this.getDistXY(u,g),P=this.vectorLength(S);return u!==g&&P!==0&&(g.isInternal?g.boxSize/P<this.options.theta&&P!==0?(v=this.repulsiveForce(P,this.k),this.force("repulsive",u,v*g.mass,S,P),b=!1):b=!0:(v=this.repulsiveForce(P,this.k),this.force("repulsive",u,v*g.mass,S,P))),b},d.prototype.repulsiveForces=function(){var u=this;if(this.approximation==="barnes-hut")for(var g=function(n){b.quadTree.visitNodeRecursive(null,function(i){return u.barnesHutApproximation(n,i)})},b=this,v=0,S=this.nodes;v<S.length;v++)g(l=S[v]);else for(var P=void 0,E=void 0,M=void 0,f=0,x=this.nodes;f<x.length;f++)for(var l=x[f],h=0,e=this.nodes;h<e.length;h++){var r=e[h];l===r||l.fixedPosition||(M=this.getDistXY(l,r),(E=this.vectorLength(M))!==0&&(P=this.repulsiveForce(E,this.k),this.force("repulsive",l,P*r.mass,M,E)))}},d.prototype.attractiveForces=function(){for(var u,g,b,v=0,S=this.links;v<S.length;v++){var P=S[v];P.fromNode&&P.toNode&&(u=this.getDistXY(P.fromNode,P.toNode),(g=this.vectorLength(u))!==0&&(b=this.attractiveForce(g,this.k),this.force("attractive",P,b,u,g)))}},d.prototype.applyLimits=function(){for(var u=0,g=this.nodes;u<g.length;u++){var b=g[u];if(b.fixedPosition)return;this.integration.integrate(this,b),this.applyLimitBox(b,this.box),b.dispX=0,b.dispY=0}},d.prototype.applyLimitBox=function(u,g){var b=u.radius;u.plotX=W(u.plotX,g.left+b,g.width-b),u.plotY=W(u.plotY,g.top+b,g.height-b)},d.prototype.coolDown=function(u,g,b){return u-g*b},d.prototype.isStable=function(){return Math.abs(this.systemTemperature-this.prevSystemTemperature)<1e-5||this.temperature<=0},d.prototype.getSystemTemperature=function(){for(var u=0,g=0,b=this.nodes;g<b.length;g++)u+=b[g].temperature;return u},d.prototype.vectorLength=function(u){return Math.sqrt(u.x*u.x+u.y*u.y)},d.prototype.getDistR=function(u,g){var b=this.getDistXY(u,g);return this.vectorLength(b)},d.prototype.getDistXY=function(u,g){var b=u.plotX-g.plotX,v=u.plotY-g.plotY;return{x:b,y:v,absX:Math.abs(b),absY:Math.abs(v)}},d}();return T}),st(B,"Series/PackedBubble/PackedBubbleLayout.js",[B["Series/GraphLayoutComposition.js"],B["Series/PackedBubble/PackedBubbleIntegration.js"],B["Series/Networkgraph/ReingoldFruchtermanLayout.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(d,u){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},K(d,u)},function(d,u){function g(){this.constructor=d}K(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),q=V.addEvent,W=V.pick,D=[];function O(){var d=this.series,u=[];return d.forEach(function(g){g.parentNode&&g.parentNode.selected&&u.push(g.parentNode)}),u}function w(){this.allDataPoints&&delete this.allDataPoints}var T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.index=NaN,g.nodes=[],g.options=void 0,g.series=[],g}return J(u,d),u.compose=function(g){X.compose(g),U.integrations.packedbubble=z,U.layouts.packedbubble=u,D.indexOf(g)===-1&&(D.push(g),q(g,"beforeRedraw",w),g.prototype.getSelectedParentNodes=O)},u.prototype.beforeStep=function(){this.options.marker&&this.series.forEach(function(g){g&&g.calculateParentRadius()})},u.prototype.isStable=function(){var g=Math.abs(this.prevSystemTemperature-this.systemTemperature),b=10*this.systemTemperature/Math.sqrt(this.nodes.length);return Math.abs(b)<1&&g<1e-5||this.temperature<=0},u.prototype.setCircularPositions=function(){for(var g,b,v=this,S=v.box,P=v.nodes,E=P.length+1,M=2*Math.PI/E,f=v.options.initialPositionRadius,x=0,l=0,h=P;l<h.length;l++){var e=h[l];v.options.splitSeries&&!e.isParentNode?(g=e.series.parentNode.plotX,b=e.series.parentNode.plotY):(g=S.width/2,b=S.height/2),e.plotX=e.prevX=W(e.plotX,g+f*Math.cos(e.index||x*M)),e.plotY=e.prevY=W(e.plotY,b+f*Math.sin(e.index||x*M)),e.dispX=0,e.dispY=0,x++}},u.prototype.repulsiveForces=function(){var g,b,v,S=this,P=S.options.bubblePadding;S.nodes.forEach(function(E){E.degree=E.mass,E.neighbours=0,S.nodes.forEach(function(M){g=0,E===M||E.fixedPosition||!S.options.seriesInteraction&&E.series!==M.series||(v=S.getDistXY(E,M),(b=S.vectorLength(v)-(E.marker.radius+M.marker.radius+P))<0&&(E.degree+=.01,E.neighbours++,g=S.repulsiveForce(-b/Math.sqrt(E.neighbours),S.k,E,M)),S.force("repulsive",E,g*M.mass,v,M,b))})})},u.prototype.applyLimitBox=function(g,b){var v,S,P=this;P.options.splitSeries&&!g.isParentNode&&P.options.parentNodeLimit&&(v=P.getDistXY(g,g.series.parentNode),(S=g.series.parentNodeRadius-g.marker.radius-P.vectorLength(v))<0&&S>-2*g.marker.radius&&(g.plotX-=.01*v.x,g.plotY-=.01*v.y)),d.prototype.applyLimitBox.call(this,g,b)},u}(X);return U.layouts.packedbubble=T,T}),st(B,"Series/PackedBubble/PackedBubbleSeries.js",[B["Core/Color/Color.js"],B["Series/DragNodesComposition.js"],B["Series/GraphLayoutComposition.js"],B["Core/Globals.js"],B["Series/PackedBubble/PackedBubblePoint.js"],B["Series/PackedBubble/PackedBubbleSeriesDefaults.js"],B["Series/PackedBubble/PackedBubbleLayout.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D){var O,w=this&&this.__extends||(O=function(e,r){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])},O(e,r)},function(e,r){function n(){this.constructor=e}O(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}),T=U.parse,d=V.noop,u=W.series.prototype,g=W.seriesTypes.bubble,b=D.addEvent,v=D.clamp,S=D.defined,P=D.extend,E=D.fireEvent,M=D.isArray,f=D.isNumber,x=D.merge,l=D.pick,h=function(e){function r(){var n=e!==null&&e.apply(this,arguments)||this;return n.chart=void 0,n.data=void 0,n.layout=void 0,n.options=void 0,n.parentNodeMass=0,n.points=void 0,n.xData=void 0,n}return w(r,e),r.compose=function(n,i,c,a){g.compose(n,i,c,a),z.compose(i),q.compose(i)},r.prototype.accumulateAllPoints=function(){for(var n,i=this.chart,c=[],a=0,s=i.series;a<s.length;a++){var y=s[a];if(y.is("packedbubble")&&y.visible||!i.options.chart.ignoreHiddenSeries){n=y.yData||[];for(var A=0;A<n.length;A++)c.push([null,null,n[A],y.index,A,{id:A,marker:{radius:0}}])}}return c},r.prototype.addLayout=function(){var n,i=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},c=i.type||"packedbubble",a=this.chart.options.chart,s=this.chart.graphLayoutsStorage,y=this.chart.graphLayoutsLookup;s||(this.chart.graphLayoutsStorage=s={},this.chart.graphLayoutsLookup=y=[]),(n=s[c])||(i.enableSimulation=S(a.forExport)?!a.forExport:i.enableSimulation,s[c]=n=new X.layouts[c],n.init(i),y.splice(n.index,0,n)),this.layout=n,this.points.forEach(function(A){A.mass=2,A.degree=1,A.collisionNmb=1}),n.setArea(0,0,this.chart.plotWidth,this.chart.plotHeight),n.addElementsToCollection([this],n.series),n.addElementsToCollection(this.points,n.nodes)},r.prototype.addSeriesLayout=function(){var n=this.options.layoutAlgorithm=this.options.layoutAlgorithm||{},i=n.type||"packedbubble",c=this.chart.graphLayoutsStorage,a=this.chart.graphLayoutsLookup,s=x(n,n.parentNodeOptions,{enableSimulation:this.layout.options.enableSimulation}),y=c[i+"-series"];y||(c[i+"-series"]=y=new X.layouts[i],y.init(s),a.splice(y.index,0,y)),this.parentNodeLayout=y,this.createParentNodes()},r.prototype.calculateParentRadius=function(){var n=this.seriesBox();this.parentNodeRadius=v(Math.sqrt(2*this.parentNodeMass/Math.PI)+20,20,n?Math.max(Math.sqrt(Math.pow(n.width,2)+Math.pow(n.height,2))/2+20,20):Math.sqrt(2*this.parentNodeMass/Math.PI)+20),this.parentNode&&(this.parentNode.marker.radius=this.parentNode.radius=this.parentNodeRadius)},r.prototype.calculateZExtremes=function(){var n=this.chart.series,i=this.options.zMin,c=this.options.zMax,a=1/0,s=-1/0;return i&&c?[i,c]:(n.forEach(function(y){y.yData.forEach(function(A){S(A)&&(A>s&&(s=A),A<a&&(a=A))})}),[i=l(i,a),c=l(c,s)])},r.prototype.checkOverlap=function(n,i){var c=n[0]-i[0],a=n[1]-i[1],s=n[2]+i[2];return Math.sqrt(c*c+a*a)-Math.abs(s)<-.001},r.prototype.createParentNodes=function(){var n,i=this,c=this.pointClass,a=this.chart,s=this.parentNodeLayout,y=this.layout.options,A=this.parentNode,_={radius:this.parentNodeRadius,lineColor:this.color,fillColor:T(this.color).brighten(.4).get()};y.parentNodeOptions&&(_=x(y.parentNodeOptions.marker||{},_)),this.parentNodeMass=0,this.points.forEach(function(p){i.parentNodeMass+=Math.PI*Math.pow(p.marker.radius,2)}),this.calculateParentRadius(),s.nodes.forEach(function(p){p.seriesIndex===i.index&&(n=!0)}),s.setArea(0,0,a.plotWidth,a.plotHeight),n||(A||(A=new c().init(this,{mass:this.parentNodeRadius/2,marker:_,dataLabels:{inside:!1},states:{normal:{marker:_},hover:{marker:_}},dataLabelOnNull:!0,degree:this.parentNodeRadius,isParentNode:!0,seriesIndex:this.index})),this.parentNode&&(A.plotX=this.parentNode.plotX,A.plotY=this.parentNode.plotY),this.parentNode=A,s.addElementsToCollection([this],s.series),s.addElementsToCollection([A],s.nodes))},r.prototype.deferLayout=function(){var n=this.options.layoutAlgorithm;this.visible&&(this.addLayout(),n.splitSeries&&this.addSeriesLayout())},r.prototype.destroy=function(){var n=this;this.chart.graphLayoutsLookup&&this.chart.graphLayoutsLookup.forEach(function(i){i.removeElementFromCollection(n,i.series)},this),this.parentNode&&this.parentNodeLayout&&(this.parentNodeLayout.removeElementFromCollection(this.parentNode,this.parentNodeLayout.nodes),this.parentNode.dataLabel&&(this.parentNode.dataLabel=this.parentNode.dataLabel.destroy())),u.destroy.apply(this,arguments)},r.prototype.drawDataLabels=function(){u.drawDataLabels.call(this,this.points),this.parentNode&&(this.parentNode.formatPrefix="parentNode",u.drawDataLabels.call(this,[this.parentNode]))},r.prototype.drawGraph=function(){if(this.layout&&this.layout.options.splitSeries){var n,i=this.chart,c=this.layout.options.parentNodeOptions.marker,a={fill:c.fillColor||T(this.color).brighten(.4).get(),opacity:c.fillOpacity,stroke:c.lineColor||this.color,"stroke-width":l(c.lineWidth,this.options.lineWidth)};this.parentNodesGroup||(this.parentNodesGroup=this.plotGroup("parentNodesGroup","parentNode",this.visible?"inherit":"hidden",.1,i.seriesGroup),this.group.attr({zIndex:2})),this.calculateParentRadius(),n=x({x:this.parentNode.plotX-this.parentNodeRadius,y:this.parentNode.plotY-this.parentNodeRadius,width:2*this.parentNodeRadius,height:2*this.parentNodeRadius},a),this.parentNode.graphic||(this.graph=this.parentNode.graphic=i.renderer.symbol(a.symbol).add(this.parentNodesGroup)),this.parentNode.graphic.attr(n)}},r.prototype.drawTracker=function(){var n,i=this.parentNode;e.prototype.drawTracker.call(this),i&&(n=M(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),n.forEach(function(c){c.div?c.div.point=i:c.element.point=i}))},r.prototype.getPointRadius=function(){var n,i,c,a,s=this,y=this.chart,A=y.plotWidth,_=y.plotHeight,p=this.options,C=p.useSimulation,k=Math.min(A,_),F={},G=[],I=y.allDataPoints||[],j=I.length;["minSize","maxSize"].forEach(function(Z){var $=parseInt(p[Z],10),Y=/%$/.test(p[Z]);F[Z]=Y?k*$/100:$*Math.sqrt(j)}),y.minRadius=n=F.minSize/Math.sqrt(j),y.maxRadius=i=F.maxSize/Math.sqrt(j);var N=C?this.calculateZExtremes():[n,i];I.forEach(function(Z,$){c=C?v(Z[2],N[0],N[1]):Z[2],(a=s.getRadius(N[0],N[1],n,i,c))===0&&(a=null),I[$][2]=a,G.push(a)}),this.radii=G},r.prototype.init=function(){return u.init.apply(this,arguments),this.eventsToUnbind.push(b(this,"updatedData",function(){var n=this;this.chart.series.forEach(function(i){i.type===n.type&&(i.isDirty=!0)},this)})),this},r.prototype.onMouseUp=function(n){var i=n;if(i.fixedPosition&&!i.removed){var c,a=this.layout,s=this.parentNodeLayout;s&&a.options.dragBetweenSeries&&s.nodes.forEach(function(y){i&&i.marker&&y!==i.series.parentNode&&(c=a.getDistXY(i,y),a.vectorLength(c)-y.marker.radius-i.marker.radius<0&&(y.series.addPoint(x(i.options,{plotX:i.plotX,plotY:i.plotY}),!1),a.removeElementFromCollection(i,a.nodes),i.remove()))}),z.onMouseUp.apply(this,arguments)}},r.prototype.placeBubbles=function(n){var i,c,a=this.checkOverlap,s=this.positionBubble,y=[],A=1,_=0,p=0,C=[],k=n.sort(function(F,G){return G[2]-F[2]});if(k.length){if(y.push([[0,0,k[0][2],k[0][3],k[0][4]]]),k.length>1)for(y.push([[0,0-k[1][2]-k[0][2],k[1][2],k[1][3],k[1][4]]]),c=2;c<k.length;c++)k[c][2]=k[c][2]||1,a(i=s(y[A][_],y[A-1][p],k[c]),y[A][0])?(y.push([]),p=0,y[A+1].push(s(y[A][_],y[A][0],k[c])),A++,_=0):A>1&&y[A-1][p+1]&&a(i,y[A-1][p+1])?(p++,y[A].push(s(y[A][_],y[A-1][p],k[c])),_++):(_++,y[A].push(i));this.chart.stages=y,this.chart.rawPositions=[].concat.apply([],y),this.resizeRadius(),C=this.chart.rawPositions}return C},r.prototype.pointAttribs=function(n,i){var c=this.options,a=n&&n.isParentNode,s=c.marker;a&&c.layoutAlgorithm&&c.layoutAlgorithm.parentNodeOptions&&(s=c.layoutAlgorithm.parentNodeOptions.marker);var y=s.fillOpacity,A=u.pointAttribs.call(this,n,i);return y!==1&&(A["fill-opacity"]=y),A},r.prototype.positionBubble=function(n,i,c){var a=Math.sqrt,s=Math.asin,y=Math.acos,A=Math.pow,_=Math.abs,p=a(A(n[0]-i[0],2)+A(n[1]-i[1],2)),C=y((A(p,2)+A(c[2]+i[2],2)-A(c[2]+n[2],2))/(2*(c[2]+i[2])*p)),k=s(_(n[0]-i[0])/p),F=(n[1]-i[1]<0?0:Math.PI)+C+k*((n[0]-i[0])*(n[1]-i[1])<0?1:-1),G=Math.cos(F),I=Math.sin(F);return[i[0]+(i[2]+c[2])*I,i[1]-(i[2]+c[2])*G,c[2],c[3],c[4]]},r.prototype.render=function(){var n=[];u.render.apply(this,arguments),this.options.dataLabels.allowOverlap||(this.data.forEach(function(i){M(i.dataLabels)&&i.dataLabels.forEach(function(c){n.push(c)})}),this.options.useSimulation&&this.chart.hideOverlappingLabels(n))},r.prototype.resizeRadius=function(){var n,i,c,a,s,y=this.chart,A=y.rawPositions,_=Math.min,p=Math.max,C=y.plotLeft,k=y.plotTop,F=y.plotHeight,G=y.plotWidth;n=c=Number.POSITIVE_INFINITY,i=a=Number.NEGATIVE_INFINITY;for(var I=0,j=A;I<j.length;I++)s=(rt=j[I])[2],n=_(n,rt[0]-s),i=p(i,rt[0]+s),c=_(c,rt[1]-s),a=p(a,rt[1]+s);var N=[i-n,a-c],Z=[(G-C)/N[0],(F-k)/N[1]],$=_.apply([],Z);if(Math.abs($-1)>1e-10){for(var Y=0,et=A;Y<et.length;Y++){var rt;(rt=et[Y])[2]*=$}this.placeBubbles(A)}else y.diffY=F/2+k-c-(a-c)/2,y.diffX=G/2+C-n-(i-n)/2},r.prototype.seriesBox=function(){var n,i=this.chart,c=this.data,a=Math.max,s=Math.min,y=[i.plotLeft,i.plotLeft+i.plotWidth,i.plotTop,i.plotTop+i.plotHeight];return c.forEach(function(A){S(A.plotX)&&S(A.plotY)&&A.marker.radius&&(n=A.marker.radius,y[0]=s(y[0],A.plotX-n),y[1]=a(y[1],A.plotX+n),y[2]=s(y[2],A.plotY-n),y[3]=a(y[3],A.plotY+n))}),f(y.width/y.height)?y:null},r.prototype.setVisible=function(){var n=this;u.setVisible.apply(n,arguments),n.parentNodeLayout&&n.graph?n.visible?(n.graph.show(),n.parentNode.dataLabel&&n.parentNode.dataLabel.show()):(n.graph.hide(),n.parentNodeLayout.removeElementFromCollection(n.parentNode,n.parentNodeLayout.nodes),n.parentNode.dataLabel&&n.parentNode.dataLabel.hide()):n.layout&&(n.visible?n.layout.addElementsToCollection(n.points,n.layout.nodes):n.points.forEach(function(i){n.layout.removeElementFromCollection(i,n.layout.nodes)}))},r.prototype.translate=function(){var n,i,c,a=this.chart,s=this.data,y=this.index,A=this.options.useSimulation;this.processedXData=this.xData,this.generatePoints(),S(a.allDataPoints)||(a.allDataPoints=this.accumulateAllPoints(),this.getPointRadius()),A?c=a.allDataPoints:(c=this.placeBubbles(a.allDataPoints),this.options.draggable=!1);for(var _=0,p=c;_<p.length;_++){var C=p[_];C[3]===y&&(n=s[C[4]],i=l(C[2],void 0),A||(n.plotX=C[0]-a.plotLeft+a.diffX,n.plotY=C[1]-a.plotTop+a.diffY),f(i)&&(n.marker=P(n.marker,{radius:i,width:2*i,height:2*i}),n.radius=i))}A&&this.deferLayout(),E(this,"afterTranslate")},r.defaultOptions=x(g.defaultOptions,J),r}(g);return P(h.prototype,{pointClass:K,axisTypes:[],directTouch:!0,forces:["barycenter","repulsive"],hasDraggableNodes:!0,isCartesian:!1,noSharedTooltip:!0,pointArrayMap:["value"],pointValKey:"value",requireSorting:!1,trackerGroups:["group","dataLabelsGroup","parentNodesGroup"],alignDataLabel:u.alignDataLabel,indexateNodes:d,onMouseDown:z.onMouseDown,onMouseMove:z.onMouseMove,redrawHalo:z.redrawHalo,searchPoint:d}),W.registerSeriesType("packedbubble",h),h}),st(B,"Series/Polygon/PolygonSeries.js",[B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(b,v){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,P){S.__proto__=P}||function(S,P){for(var E in P)P.hasOwnProperty(E)&&(S[E]=P[E])},K(b,v)},function(b,v){function S(){this.constructor=b}K(b,v),b.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),q=U.noop,W=X.series,D=X.seriesTypes,O=D.area,w=D.line,T=D.scatter,d=V.extend,u=V.merge,g=function(b){function v(){var S=b!==null&&b.apply(this,arguments)||this;return S.data=void 0,S.options=void 0,S.points=void 0,S}return J(v,b),v.prototype.getGraphPath=function(){for(var S=w.prototype.getGraphPath.call(this),P=S.length+1;P--;)(P===S.length||S[P][0]==="M")&&P>0&&S.splice(P,0,["Z"]);return this.areaPath=S,S},v.prototype.drawGraph=function(){this.options.fillColor=this.color,O.prototype.drawGraph.call(this)},v.defaultOptions=u(T.defaultOptions,{marker:{enabled:!1,states:{hover:{enabled:!1}}},stickyTracking:!1,tooltip:{followPointer:!0,pointFormat:""},trackByArea:!0}),v}(T);return d(g.prototype,{type:"polygon",drawLegendSymbol:z.drawRectangle,drawTracker:W.prototype.drawTracker,setStackedPoints:q}),X.registerSeriesType("polygon",g),g}),st(B,"Core/Axis/WaterfallAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(U,z){var X,V=z.addEvent,K=z.objectEach;return function(J){var q=function(){function T(d){this.axis=d,this.stacks={changed:!1}}return T.prototype.renderStackTotals=function(){var d=this.axis,u=d.waterfall.stacks,g=d.stacking&&d.stacking.stackTotalGroup,b=new U(d,d.options.stackLabels||{},!1,0,void 0);this.dummyStackItem=b,g&&K(u,function(v){K(v,function(S,P){b.total=S.stackTotal,b.x=+P,S.label&&(b.label=S.label),U.prototype.render.call(b,g),S.label=b.label,delete b.label})}),b.total=null},T}();function W(){var T=this.waterfall.stacks;T&&(T.changed=!1,delete T.alreadyChanged)}function D(){var T=this,d=T.options.stackLabels;d&&d.enabled&&T.waterfall.stacks&&T.waterfall.renderStackTotals()}function O(){for(var T=this.axes,d=this.series,u=d.length;u--;)d[u].options.stacking&&(T.forEach(function(g){g.isXAxis||(g.waterfall.stacks.changed=!0)}),u=0)}function w(){var T=this;T.waterfall||(T.waterfall=new q(T))}J.Composition=q,J.compose=function(T,d){V(T,"init",w),V(T,"afterBuildStacks",W),V(T,"afterRender",D),V(d,"beforeRedraw",O)}}(X||(X={})),X}),st(B,"Series/Waterfall/WaterfallPoint.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(W,D){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])},V(W,D)},function(W,D){function O(){this.constructor=W}V(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}),J=X.isNumber,q=function(W){function D(){var O=W!==null&&W.apply(this,arguments)||this;return O.options=void 0,O.series=void 0,O}return K(D,W),D.prototype.getClassName=function(){var O=z.prototype.getClassName.call(this);return this.isSum?O+=" highcharts-sum":this.isIntermediateSum&&(O+=" highcharts-intermediate-sum"),O},D.prototype.isValid=function(){return J(this.y)||this.isSum||!!this.isIntermediateSum},D}(U.prototype.pointClass);return q}),st(B,"Series/Waterfall/WaterfallSeries.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"],B["Core/Axis/WaterfallAxis.js"],B["Series/Waterfall/WaterfallPoint.js"]],function(U,z,X,V,K,J){var q,W=this&&this.__extends||(q=function(f,x){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var e in h)h.hasOwnProperty(e)&&(l[e]=h[e])},q(f,x)},function(f,x){function l(){this.constructor=f}q(f,x),f.prototype=x===null?Object.create(x):(l.prototype=x.prototype,new l)}),D=X.seriesTypes,O=D.column,w=D.line,T=V.arrayMax,d=V.arrayMin,u=V.correctFloat,g=V.extend,b=V.isNumber,v=V.merge,S=V.objectEach,P=V.pick;function E(f,x){return Object.hasOwnProperty.call(f,x)}var M=function(f){function x(){var l=f!==null&&f.apply(this,arguments)||this;return l.chart=void 0,l.data=void 0,l.options=void 0,l.points=void 0,l.stackedYNeg=void 0,l.stackedYPos=void 0,l.stackKey=void 0,l.xData=void 0,l.yAxis=void 0,l.yData=void 0,l}return W(x,f),x.prototype.generatePoints=function(){O.prototype.generatePoints.apply(this);for(var l=0,h=this.points.length;l<h;l++){var e=this.points[l],r=this.processedYData[l];b(r)&&(e.isIntermediateSum||e.isSum)&&(e.y=u(r))}},x.prototype.translate=function(){var l,h,e,r,n=this,i=n.options,c=n.yAxis,a=P(i.minPointLength,5),s=a/2,y=i.threshold||0,A=i.stacking,_=c.waterfall.stacks[n.stackKey],p=y,C=y;O.prototype.translate.apply(n);for(var k=n.points,F=0;F<k.length;F++){var G=k[F],I=n.processedYData[F],j=G.shapeArgs;if(j&&b(I)){var N=[0,I],Z=G.y;if(A){if(_){var $=_[F];A==="overlap"?(h=$.stackState[$.stateIndex--],l=Z>=0?h:h-Z,E($,"absolutePos")&&delete $.absolutePos,E($,"absoluteNeg")&&delete $.absoluteNeg):(Z>=0?(h=$.threshold+$.posTotal,$.posTotal-=Z,l=h):(h=$.threshold+$.negTotal,$.negTotal-=Z,l=h-Z),$.posTotal||b($.absolutePos)&&E($,"absolutePos")&&($.posTotal=$.absolutePos,delete $.absolutePos),$.negTotal||b($.absoluteNeg)&&E($,"absoluteNeg")&&($.negTotal=$.absoluteNeg,delete $.absoluteNeg)),G.isSum||($.connectorThreshold=$.threshold+$.stackTotal),c.reversed?(e=Z>=0?l-Z:l+Z,r=l):(e=l,r=l-Z),G.below=e<=y,j.y=c.translate(e,!1,!0,!1,!0),j.height=Math.abs(j.y-c.translate(r,!1,!0,!1,!0));var Y=c.waterfall.dummyStackItem;Y&&(Y.x=F,Y.label=_[F].label,Y.setOffset(n.pointXOffset||0,n.barW||0,n.stackedYNeg[F],n.stackedYPos[F],void 0,this.xAxis))}}else l=Math.max(C,C+Z)+N[0],j.y=c.translate(l,!1,!0,!1,!0),G.isSum?(j.y=c.translate(N[1],!1,!0,!1,!0),j.height=Math.min(c.translate(N[0],!1,!0,!1,!0),c.len)-j.y,G.below=N[1]<=y):G.isIntermediateSum?(Z>=0?(e=N[1]+p,r=p):(e=p,r=N[1]+p),c.reversed&&(e^=r,e^=r^=e),j.y=c.translate(e,!1,!0,!1,!0),j.height=Math.abs(j.y-Math.min(c.translate(r,!1,!0,!1,!0),c.len)),p+=N[1],G.below=e<=y):(j.height=I>0?c.translate(C,!1,!0,!1,!0)-j.y:c.translate(C,!1,!0,!1,!0)-c.translate(C-I,!1,!0,!1,!0),C+=I,G.below=C<y),j.height<0&&(j.y+=j.height,j.height*=-1);G.plotY=j.y=Math.round(j.y||0)-n.borderWidth%2/2,j.height=Math.max(Math.round(j.height||0),.001),G.yBottom=j.y+j.height,j.height<=a&&!G.isNull?(j.height=a,j.y-=s,G.plotY=j.y,G.y<0?G.minPointLengthOffset=-s:G.minPointLengthOffset=s):(G.isNull&&(j.width=0),G.minPointLengthOffset=0);var et=G.plotY+(G.negative?j.height:0);G.below&&(G.plotY+=j.height),G.tooltipPos&&(n.chart.inverted?G.tooltipPos[0]=c.len-et:G.tooltipPos[1]=et),G.isInside=this.isPointInside(G)}}},x.prototype.processData=function(l){var h,e,r,n,i,c,a,s=this,y=s.options,A=s.yData,_=y.data,p=A.length,C=y.threshold||0;for(r=e=n=i=0,a=0;a<p;a++)c=A[a],h=_&&_[a]?_[a]:{},c==="sum"||h.isSum?A[a]=u(r):c==="intermediateSum"||h.isIntermediateSum?(A[a]=u(e),e=0):(r+=c,e+=c),n=Math.min(r,n),i=Math.max(r,i);f.prototype.processData.call(this,l),y.stacking||(s.dataMin=n+C,s.dataMax=i)},x.prototype.toYData=function(l){return l.isSum?"sum":l.isIntermediateSum?"intermediateSum":l.y},x.prototype.updateParallelArrays=function(l,h){f.prototype.updateParallelArrays.call(this,l,h),this.yData[0]!=="sum"&&this.yData[0]!=="intermediateSum"||(this.yData[0]=null)},x.prototype.pointAttribs=function(l,h){var e=this.options.upColor;e&&!l.options.color&&(l.color=l.y>0?e:void 0);var r=O.prototype.pointAttribs.call(this,l,h);return delete r.dashstyle,r},x.prototype.getGraphPath=function(){return[["M",0,0]]},x.prototype.getCrispPath=function(){var l,h,e,r,n,i,c,a,s,y=this.data,A=this.yAxis,_=y.length,p=Math.round(this.graph.strokeWidth())%2/2,C=Math.round(this.borderWidth)%2/2,k=this.xAxis.reversed,F=this.yAxis.reversed,G=this.options.stacking,I=[];for(s=1;s<_;s++)if(a=y[s].shapeArgs,r=y[s-1],c=y[s-1].shapeArgs,h=A.waterfall.stacks[this.stackKey],i=r.y>0?-c.height:0,h&&c&&a&&(e=h[s-1],G?(l=e.connectorThreshold,n=Math.round(A.translate(l,!1,!0,!1,!0)+(F?i:0))-p):n=c.y+r.minPointLengthOffset+C-p,I.push(["M",(c.x||0)+(k?0:c.width||0),n],["L",(a.x||0)+(k&&a.width||0),n])),c&&I.length&&(!G&&r.y<0&&!F||r.y>0&&F)){var j=I[I.length-2];j&&typeof j[2]=="number"&&(j[2]+=c.height||0);var N=I[I.length-1];N&&typeof N[2]=="number"&&(N[2]+=c.height||0)}return I},x.prototype.drawGraph=function(){w.prototype.drawGraph.call(this),this.graph&&this.graph.attr({d:this.getCrispPath()})},x.prototype.setStackedPoints=function(){var l,h,e,r,n,i,c,a,s,y,A,_,p=this,C=p.options,k=p.yAxis.waterfall.stacks,F=C.threshold||0,G=F,I=G,j=p.stackKey,N=p.xData,Z=N.length;function $(rt,it,ht,dt){if(l){if(n)for(;ht<n;ht++)l.stackState[ht]+=dt;else l.stackState[0]=rt,n=l.stackState.length;l.stackState.push(l.stackState[n-1]+it)}}if(p.yAxis.stacking.usePercentage=!1,h=e=r=G,p.visible||!p.chart.options.chart.ignoreHiddenSeries){_=k.changed,(A=k.alreadyChanged)&&A.indexOf(j)<0&&(_=!0),k[j]||(k[j]={});var Y=k[j];if(Y)for(var et=0;et<Z;et++)Y[y=N[et]]&&!_||(Y[y]={negTotal:0,posTotal:0,stackTotal:0,threshold:0,stateIndex:0,stackState:[],label:_&&Y[y]?Y[y].label:void 0}),l=Y[y],(s=p.yData[et])>=0?l.posTotal+=s:l.negTotal+=s,a=C.data[et],i=l.absolutePos=l.posTotal,c=l.absoluteNeg=l.negTotal,l.stackTotal=i+c,n=l.stackState.length,a&&a.isIntermediateSum?($(r,e,0,r),r=e,e=F,G^=I,G^=I^=G):a&&a.isSum?($(F,h,n,0),G=F):($(G,s,0,h),a&&(h+=s,e+=s)),l.stateIndex++,l.threshold=G,G+=l.stackTotal;k.changed=!1,k.alreadyChanged||(k.alreadyChanged=[]),k.alreadyChanged.push(j)}},x.prototype.getExtremes=function(){var l,h,e,r=this.options.stacking;return r?(l=this.yAxis.waterfall.stacks,h=this.stackedYNeg=[],e=this.stackedYPos=[],S(l[this.stackKey],r==="overlap"?function(n){h.push(d(n.stackState)),e.push(T(n.stackState))}:function(n){h.push(n.negTotal+n.threshold),e.push(n.posTotal+n.threshold)}),{dataMin:d(h),dataMax:T(e)}):{dataMin:this.dataMin,dataMax:this.dataMax}},x.defaultOptions=v(O.defaultOptions,{dataLabels:{inside:!0},lineWidth:1,lineColor:"#333333",dashStyle:"Dot",borderColor:"#333333",states:{hover:{lineWidthPlus:0}}}),x}(O);return g(M.prototype,{getZonesGraphs:w.prototype.getZonesGraphs,pointValKey:"y",showLine:!0,pointClass:J}),X.registerSeriesType("waterfall",M),K.compose(U,z),M}),st(B,"Core/Axis/RadialAxis.js",[B["Core/Axis/AxisDefaults.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=z.defaultOptions,q=X.noop,W=V.addEvent,D=V.correctFloat,O=V.defined,w=V.extend,T=V.fireEvent,d=V.merge,u=V.pick,g=V.relativeLength,b=V.wrap;return function(v){var S=[],P={gridLineWidth:1,labels:{align:void 0,distance:15,x:0,y:void 0,style:{textOverflow:"none"}},maxPadding:0,minPadding:0,showLastLabel:!1,tickLength:0},E={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},M={gridLineInterpolation:"circle",gridLineWidth:1,labels:{align:"right",x:-3,y:-2},showLastLabel:!1,title:{x:4,text:null,rotation:90}};function f(){this.autoConnect=this.isCircular&&u(this.userMax,this.options.max)===void 0&&D(this.endAngleRad-this.startAngleRad)===D(2*Math.PI),!this.isCircular&&this.chart.inverted&&this.max++,this.autoConnect&&(this.max+=(this.categories?1:this.pointRange)||this.closestPointRange||0)}function x(){var Y=this;return function(){if(Y.isRadial&&Y.tickPositions&&Y.options.labels&&Y.options.labels.allowOverlap!==!0)return Y.tickPositions.map(function(et){return Y.ticks[et]&&Y.ticks[et].label}).filter(function(et){return!!et})}}function l(){return q}function h(Y,et,rt){var it,ht,dt,bt=this.pane.center,xt=Y.value;return this.isCircular?(O(xt)?Y.point&&(Y.point.shapeArgs||{}).start&&(xt=this.chart.inverted?this.translate(Y.point.rectPlotY,!0):Y.point.x):(ht=Y.chartX||0,dt=Y.chartY||0,xt=this.translate(Math.atan2(dt-rt,ht-et)-this.startAngleRad,!0)),ht=(it=this.getPosition(xt)).x,dt=it.y):(O(xt)||(ht=Y.chartX,dt=Y.chartY),O(ht)&&O(dt)&&(rt=bt[1]+this.chart.plotTop,xt=this.translate(Math.min(Math.sqrt(Math.pow(ht-et,2)+Math.pow(dt-rt,2)),bt[2]/2)-bt[3]/2,!0))),[xt,ht||0,dt||0]}function e(Y,et,rt){var it,ht,dt=this.pane.center,bt=this.chart,xt=this.left||0,St=this.top||0,wt=u(et,dt[2]/2-this.offset);return rt===void 0&&(rt=this.horiz?0:this.center&&-this.center[3]/2),rt&&(wt+=rt),this.isCircular||et!==void 0?((ht=this.chart.renderer.symbols.arc(xt+dt[0],St+dt[1],wt,wt,{start:this.startAngleRad,end:this.endAngleRad,open:!0,innerR:0})).xBounds=[xt+dt[0]],ht.yBounds=[St+dt[1]-wt]):(it=this.postTranslate(this.angleRad,wt),ht=[["M",this.center[0]+bt.plotLeft,this.center[1]+bt.plotTop],["L",it.x,it.y]]),ht}function r(){this.constructor.prototype.getOffset.call(this),this.chart.axisOffset[this.side]=0}function n(Y,et,rt){var it,ht,dt,bt,xt,St,wt=this.chart,mt=function(Xt){if(typeof Xt=="string"){var Ht=parseInt(Xt,10);return Lt.test(Xt)&&(Ht=Ht*vt/100),Ht}return Xt},at=this.center,pt=this.startAngleRad,vt=at[2]/2,Ct=Math.min(this.offset,0),Tt=this.left||0,At=this.top||0,Lt=/%$/,Ot=this.isCircular,_t=u(mt(rt.outerRadius),vt),It=mt(rt.innerRadius),zt=u(mt(rt.thickness),10);if(this.options.gridLineInterpolation==="polygon")St=this.getPlotLinePath({value:Y}).concat(this.getPlotLinePath({value:et,reverse:!0}));else{Y=Math.max(Y,this.min),et=Math.min(et,this.max);var Rt=this.translate(Y),Ut=this.translate(et);Ot||(_t=Rt||0,It=Ut||0),rt.shape!=="circle"&&Ot?(it=pt+(Rt||0),ht=pt+(Ut||0)):(it=-Math.PI/2,ht=1.5*Math.PI,xt=!0),_t-=Ct,zt-=Ct,St=wt.renderer.symbols.arc(Tt+at[0],At+at[1],_t,_t,{start:Math.min(it,ht),end:Math.max(it,ht),innerR:u(It,_t-zt),open:xt}),Ot&&(dt=(ht+it)/2,bt=Tt+at[0]+at[2]/2*Math.cos(dt),St.xBounds=dt>-Math.PI/2&&dt<Math.PI/2?[bt,wt.plotWidth]:[0,bt],St.yBounds=[At+at[1]+at[2]/2*Math.sin(dt)],St.yBounds[0]+=dt>-Math.PI&&dt<0||dt>Math.PI?-10:10)}return St}function i(Y){var et,rt,it,ht,dt,bt,xt,St,wt,mt=this,at=this.pane.center,pt=this.chart,vt=pt.inverted,Ct=Y.reverse,Tt=this.pane.options.background?this.pane.options.background[0]||this.pane.options.background:{},At=Tt.innerRadius||"0%",Lt=Tt.outerRadius||"100%",Ot=at[0]+pt.plotLeft,_t=at[1]+pt.plotTop,It=this.height,zt=Y.isCrosshair,Rt=at[3]/2,Ut=Y.value,Xt=this.getPosition(Ut),Ht=Xt.x,qt=Xt.y;if(zt&&(Ut=(St=this.getCrosshairPosition(Y,Ot,_t))[0],Ht=St[1],qt=St[2]),this.isCircular)rt=Math.sqrt(Math.pow(Ht-Ot,2)+Math.pow(qt-_t,2)),it=typeof At=="string"?g(At,1):At/rt,ht=typeof Lt=="string"?g(Lt,1):Lt/rt,at&&Rt&&(it<(et=Rt/rt)&&(it=et),ht<et&&(ht=et)),wt=[["M",Ot+it*(Ht-Ot),_t-it*(_t-qt)],["L",Ht-(1-ht)*(Ht-Ot),qt+(1-ht)*(_t-qt)]];else if((Ut=this.translate(Ut))&&(Ut<0||Ut>It)&&(Ut=0),this.options.gridLineInterpolation==="circle")wt=this.getLinePath(0,Ut,Rt);else if(wt=[],pt[vt?"yAxis":"xAxis"].forEach(function(fe){fe.pane===mt.pane&&(dt=fe)}),dt){xt=dt.tickPositions,dt.autoConnect&&(xt=xt.concat([xt[0]])),Ct&&(xt=xt.slice().reverse()),Ut&&(Ut+=Rt);for(var Kt=0;Kt<xt.length;Kt++)bt=dt.getPosition(xt[Kt],Ut),wt.push(Kt?["L",bt.x,bt.y]:["M",bt.x,bt.y])}return wt}function c(Y,et){var rt=this.translate(Y);return this.postTranslate(this.isCircular?rt:this.angleRad,u(this.isCircular?et:rt<0?0:rt,this.center[2]/2)-this.offset)}function a(){var Y=this.center,et=this.chart,rt=this.options.title;return{x:et.plotLeft+Y[0]+(rt.x||0),y:et.plotTop+Y[1]-{high:.5,middle:.25,low:0}[rt.align]*Y[2]+(rt.y||0)}}function s(Y){Y.beforeSetTickPositions=f,Y.createLabelCollector=x,Y.getCrosshairPosition=h,Y.getLinePath=e,Y.getOffset=r,Y.getPlotBandPath=n,Y.getPlotLinePath=i,Y.getPosition=c,Y.getTitlePosition=a,Y.postTranslate=G,Y.setAxisSize=j,Y.setAxisTranslation=N,Y.setOptions=Z}function y(){var Y=this.chart,et=this.options,rt=Y.angular&&this.isXAxis,it=this.pane,ht=it&&it.options;if(!rt&&it&&(Y.angular||Y.polar)){var dt=2*Math.PI,bt=(u(ht.startAngle,0)-90)*Math.PI/180,xt=(u(ht.endAngle,u(ht.startAngle,0)+360)-90)*Math.PI/180;this.angleRad=(et.angle||0)*Math.PI/180,this.startAngleRad=bt,this.endAngleRad=xt,this.offset=et.offset||0;var St=(bt%dt+dt)%dt,wt=(xt%dt+dt)%dt;St>Math.PI&&(St-=dt),wt>Math.PI&&(wt-=dt),this.normalizedStartAngleRad=St,this.normalizedEndAngleRad=wt}}function A(Y){this.isRadial&&(Y.align=void 0,Y.preventDefault())}function _(){if(this.chart&&this.chart.labelCollectors){var Y=this.labelCollector?this.chart.labelCollectors.indexOf(this.labelCollector):-1;Y>=0&&this.chart.labelCollectors.splice(Y,1)}}function p(Y){var et,rt,it=this.chart,ht=it.inverted,dt=it.angular,bt=it.polar,xt=this.isXAxis,St=this.coll,wt=dt&&xt,mt=Y.userOptions.pane||0,at=this.pane=it.pane&&it.pane[mt];St!=="colorAxis"?(dt?(wt?((rt=this).isHidden=!0,rt.createLabelCollector=l,rt.getOffset=q,rt.redraw=I,rt.render=I,rt.setScale=q,rt.setCategories=q,rt.setTitle=q):s(this),(et=!xt)&&(this.defaultPolarOptions=E)):bt&&(s(this),et=this.horiz,this.defaultPolarOptions=et?P:d(St==="xAxis"?U.defaultXAxisOptions:U.defaultYAxisOptions,M),ht&&St==="yAxis"&&(this.defaultPolarOptions.stackLabels=U.defaultYAxisOptions.stackLabels,this.defaultPolarOptions.reversedStacks=!0)),dt||bt?(this.isRadial=!0,this.labelCollector||(this.labelCollector=this.createLabelCollector()),this.labelCollector&&it.labelCollectors.push(this.labelCollector)):this.isRadial=!1,at&&et&&(at.axis=this),this.isCircular=et):this.isRadial=!1}function C(){this.isRadial&&this.beforeSetTickPositions()}function k(Y){var et=this.label;if(et){var rt,it=this.axis,ht=et.getBBox(),dt=it.options.labels,bt=(it.translate(this.pos)+it.startAngleRad+Math.PI/2)/Math.PI*180%360,xt=Math.round(bt),St=O(dt.y)?0:.3*-ht.height,wt=dt.y,mt=20,at=dt.align,pt="end",vt=xt<0?xt+360:xt,Ct=vt,Tt=0,At=0;it.isRadial&&(rt=it.getPosition(this.pos,it.center[2]/2+g(u(dt.distance,-25),it.center[2]/2,-it.center[2]/2)),dt.rotation==="auto"?et.attr({rotation:bt}):O(wt)||(wt=it.chart.renderer.fontMetrics(et.styles&&et.styles.fontSize).b-ht.height/2),O(at)||(it.isCircular?(ht.width>it.len*it.tickInterval/(it.max-it.min)&&(mt=0),at=bt>mt&&bt<180-mt?"left":bt>180+mt&&bt<360-mt?"right":"center"):at="center",et.attr({align:at})),at==="auto"&&it.tickPositions.length===2&&it.isCircular&&(vt>90&&vt<180?vt=180-vt:vt>270&&vt<=360&&(vt=540-vt),Ct>180&&Ct<=360&&(Ct=360-Ct),it.pane.options.startAngle!==xt&&it.pane.options.startAngle!==xt+360&&it.pane.options.startAngle!==xt-360||(pt="start"),at=xt>=-90&&xt<=90||xt>=-360&&xt<=-270||xt>=270&&xt<=360?pt==="start"?"right":"left":pt==="start"?"left":"right",Ct>70&&Ct<110&&(at="center"),vt<15||vt>=180&&vt<195?Tt=.3*ht.height:vt>=15&&vt<=35?Tt=pt==="start"?0:.75*ht.height:vt>=195&&vt<=215?Tt=pt==="start"?.75*ht.height:0:vt>35&&vt<=90?Tt=pt==="start"?.25*-ht.height:ht.height:vt>215&&vt<=270&&(Tt=pt==="start"?ht.height:.25*-ht.height),Ct<15?At=pt==="start"?.15*-ht.height:.15*ht.height:Ct>165&&Ct<=180&&(At=pt==="start"?.15*ht.height:.15*-ht.height),et.attr({align:at}),et.translate(At,Tt+St)),Y.pos.x=rt.x+(dt.x||0),Y.pos.y=rt.y+(wt||0))}}function F(Y){this.axis.getPosition&&w(Y.pos,this.axis.getPosition(this.pos))}function G(Y,et){var rt=this.chart,it=this.center;return Y=this.startAngleRad+Y,{x:rt.plotLeft+it[0]+Math.cos(Y)*et,y:rt.plotTop+it[1]+Math.sin(Y)*et}}function I(){this.isDirty=!1}function j(){var Y,et;this.constructor.prototype.setAxisSize.call(this),this.isRadial&&(this.pane.updateCenter(this),Y=this.center=this.pane.center.slice(),this.isCircular?this.sector=this.endAngleRad-this.startAngleRad:(et=this.postTranslate(this.angleRad,Y[3]/2),Y[0]=et.x-this.chart.plotLeft,Y[1]=et.y-this.chart.plotTop),this.len=this.width=this.height=(Y[2]-Y[3])*u(this.sector,1)/2)}function N(){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 Z(Y){var et=this.options=d(this.constructor.defaultOptions,this.defaultPolarOptions,J[this.coll],Y);et.plotBands||(et.plotBands=[]),T(this,"afterSetOptions")}function $(Y,et,rt,it,ht,dt,bt){var xt,St=this.axis;return St.isRadial?["M",et,rt,"L",(xt=St.getPosition(this.pos,St.center[2]/2+it)).x,xt.y]:Y.call(this,et,rt,it,ht,dt,bt)}v.compose=function(Y,et){return S.indexOf(Y)===-1&&(S.push(Y),W(Y,"afterInit",y),W(Y,"autoLabelAlign",A),W(Y,"destroy",_),W(Y,"init",p),W(Y,"initialAxisTranslation",C)),S.indexOf(et)===-1&&(S.push(et),W(et,"afterGetLabelPosition",k),W(et,"afterGetPosition",F),b(et.prototype,"getMarkPath",$)),Y}}(K||(K={})),K}),st(B,"Series/PolarComposition.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Extensions/Pane.js"],B["Core/Axis/RadialAxis.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=this&&this.__spreadArray||function(p,C,k){if(k||arguments.length===2)for(var F,G=0,I=C.length;G<I;G++)!F&&G in C||(F||(F=Array.prototype.slice.call(C,0,G)),F[G]=C[G]);return p.concat(F||Array.prototype.slice.call(C))},q=U.animObject,W=K.addEvent,D=K.defined,O=K.find,w=K.isNumber,T=K.pick,d=K.splat,u=K.uniqueKey,g=K.wrap,b=[];function v(p,C,k,F){var G,I,j,N,Z,$,Y=1.5,et=2.5,rt=F?1:0,it=(G=C>=0&&C<=p.length-1?C:C<0?p.length-1+C:0)-1<0?p.length-(1+rt):G-1,ht=G+1>p.length-1?rt:G+1,dt=p[it],bt=p[ht],xt=dt.plotX,St=dt.plotY,wt=bt.plotX,mt=bt.plotY,at=p[G].plotX,pt=p[G].plotY;I=(Y*at+xt)/et,j=(Y*pt+St)/et,N=(Y*at+wt)/et,Z=(Y*pt+mt)/et;var vt=Math.sqrt(Math.pow(I-at,2)+Math.pow(j-pt,2)),Ct=Math.sqrt(Math.pow(N-at,2)+Math.pow(Z-pt,2)),Tt=Math.atan2(j-pt,I-at),At=Math.atan2(Z-pt,N-at);$=Math.PI/2+(Tt+At)/2,Math.abs(Tt-$)>Math.PI/2&&($-=Math.PI),I=at+Math.cos($)*vt,j=pt+Math.sin($)*vt;var Lt={rightContX:N=at+Math.cos(Math.PI+$)*Ct,rightContY:Z=pt+Math.sin(Math.PI+$)*Ct,leftContX:I,leftContY:j,plotX:at,plotY:pt};return k&&(Lt.prevPointCont=v(p,it,!1,F)),Lt}function S(){(this.pane||[]).forEach(function(p){p.render()})}function P(p){var C=p.args[0].xAxis,k=p.args[0].yAxis,F=p.args[0].chart;C&&k&&(k.gridLineInterpolation==="polygon"?(C.startOnTick=!0,C.endOnTick=!0):C.gridLineInterpolation==="polygon"&&F.inverted&&(k.startOnTick=!0,k.endOnTick=!0))}function E(){var p=this;this.pane||(this.pane=[]),this.options.pane=d(this.options.pane),this.options.pane.forEach(function(C){new X(C,p)},this)}function M(p){var C=p.args.marker,k=this.chart.xAxis[0],F=this.chart.yAxis[0],G=this.chart.inverted,I=G?F:k,j=G?k:F;if(this.chart.polar){p.preventDefault();var N=(C.attr?C.attr("start"):C.start)-I.startAngleRad,Z=C.attr?C.attr("r"):C.r,$=(C.attr?C.attr("end"):C.end)-I.startAngleRad,Y=C.attr?C.attr("innerR"):C.innerR;p.result.x=N+I.pos,p.result.width=$-N,p.result.y=j.len+j.pos-Y,p.result.height=Y-Z}}function f(p){var C=this.chart;if(C.polar&&C.hoverPane&&C.hoverPane.axis){p.preventDefault();var k=C.hoverPane.center,F=this.mouseDownX||0,G=this.mouseDownY||0,I=p.args.chartY,j=p.args.chartX,N=2*Math.PI,Z=C.hoverPane.axis.startAngleRad,$=C.hoverPane.axis.endAngleRad,Y=C.inverted?C.xAxis[0]:C.yAxis[0],et={},rt="arc";if(et.x=k[0]+C.plotLeft,et.y=k[1]+C.plotTop,this.zoomHor){var it=Z>0?$-Z:Math.abs(Z)+Math.abs($),ht=Math.atan2(G-C.plotTop-k[1],F-C.plotLeft-k[0])-Z,dt=Math.atan2(I-C.plotTop-k[1],j-C.plotLeft-k[0])-Z;et.r=k[2]/2,et.innerR=k[3]/2,ht<=0&&(ht+=N),dt<=0&&(dt+=N),dt<ht&&(dt=[ht,ht=dt][0]),it<N&&Z+dt>$+(N-it)/2&&(dt=ht,ht=Z<=0?Z:0);var bt=et.start=Math.max(ht+Z,Z),xt=et.end=Math.min(dt+Z,$);if(Y.options.gridLineInterpolation==="polygon"){(It=C.hoverPane.axis).tickInterval;var St=bt-It.startAngleRad+It.pos,wt=xt-bt,mt=Y.getPlotLinePath({value:Y.max}),at=It.toValue(St),pt=It.toValue(St+wt);if(at<It.getExtremes().min){var vt=It.getExtremes(),Ct=vt.min;at=vt.max-(Ct-at)}if(pt<It.getExtremes().min){var Tt=It.getExtremes(),At=Tt.min;pt=Tt.max-(At-pt)}pt<at&&(pt=[at,at=pt][0]),(mt=e(mt,at,pt,It)).push(["L",k[0]+C.plotLeft,C.plotTop+k[1]]),et.d=mt,rt="path"}}if(this.zoomVert){var Lt=C.inverted?C.xAxis[0]:C.yAxis[0],Ot=Math.sqrt(Math.pow(F-C.plotLeft-k[0],2)+Math.pow(G-C.plotTop-k[1],2)),_t=Math.sqrt(Math.pow(j-C.plotLeft-k[0],2)+Math.pow(I-C.plotTop-k[1],2));_t<Ot&&(Ot=[_t,_t=Ot][0]),_t>k[2]/2&&(_t=k[2]/2),Ot<k[3]/2&&(Ot=k[3]/2),this.zoomHor||(et.start=Z,et.end=$),et.r=_t,et.innerR=Ot,Lt.options.gridLineInterpolation==="polygon"&&(xt=Lt.toValue(Lt.len+Lt.pos-Ot),bt=Lt.toValue(Lt.len+Lt.pos-_t),mt=Lt.getPlotLinePath({value:bt}).concat(Lt.getPlotLinePath({value:xt,reverse:!0})),et.d=mt,rt="path")}if(this.zoomHor&&this.zoomVert&&Y.options.gridLineInterpolation==="polygon"){var It=C.hoverPane.axis;if(bt=et.start||0,xt=et.end||0,St=bt-It.startAngleRad+It.pos,wt=xt-bt,at=It.toValue(St),pt=It.toValue(St+wt),et.d instanceof Array){var zt=et.d.slice(0,et.d.length/2),Rt=et.d.slice(et.d.length/2,et.d.length);Rt=J([],Rt,!0).reverse();var Ut=C.hoverPane.axis;zt=e(zt,at,pt,Ut),(Rt=e(Rt,at,pt,Ut))&&(Rt[0][0]="L"),Rt=J([],Rt,!0).reverse(),et.d=zt.concat(Rt),rt="path"}}p.attrs=et,p.shapeType=rt}}function x(){var p=this.chart;p.polar&&(this.polar=new _(this),p.inverted&&(this.isRadialSeries=!0,this.is("column")&&(this.isRadialBar=!0)))}function l(){if(this.chart.polar&&this.xAxis){var p=this,C=p.chart;p.kdByAngle=C.tooltip&&C.tooltip.shared,p.kdByAngle?p.searchPoint=h:p.options.findNearestPointBy="xy";for(var k=p.points,F=k.length;F--;)p.preventPostTranslate||p.polar.toXY(k[F]),C.hasParallelCoordinates||p.yAxis.reversed||(T(k[F].y,Number.MIN_VALUE)<p.yAxis.min||k[F].x<p.xAxis.min||k[F].x>p.xAxis.max?(k[F].isNull=!0,k[F].plotY=NaN):k[F].isNull=k[F].isValid&&!k[F].isValid());this.hasClipCircleSetter||(this.hasClipCircleSetter=!!p.eventsToUnbind.push(W(p,"afterRender",function(){var G,I,j,N,Z,$,Y,et,rt;C.polar&&(G=this.yAxis.pane.center,this.clipCircle?this.clipCircle.animate({x:G[0],y:G[1],r:G[2]/2,innerR:G[3]/2}):this.clipCircle=(I=C.renderer,j=G[0],N=G[1],Z=G[2]/2,$=G[3]/2,Y=u(),et=I.createElement("clipPath").attr({id:Y}).add(I.defs),(rt=$?I.arc(j,N,Z,$,0,2*Math.PI).add(et):I.circle(j,N,Z).add(et)).id=Y,rt.clipPath=et,rt),this.group.clip(this.clipCircle),this.setClip=z.noop)})))}}function h(p){var C=this,k=C.chart,F=C.xAxis,G=F.pane&&F.pane.center,I=p.chartX-(G&&G[0]||0)-k.plotLeft,j=p.chartY-(G&&G[1]||0)-k.plotTop;return C.searchKDTree({clientX:180+Math.atan2(I,j)*(-180/Math.PI)})}function e(p,C,k,F){var G=F.tickInterval,I=F.tickPositions,j=O(I,function(Z){return Z>=k}),N=O(J([],I,!0).reverse(),function(Z){return Z<=C});return D(j)||(j=I[I.length-1]),D(N)||(N=I[0],j+=G,p[0][0]="L",p.unshift(p[p.length-3])),(p=p.slice(I.indexOf(N),I.indexOf(j)+1))[0][0]="M",p}function r(p,C){return O(this.pane||[],function(k){return k.options.id===C})||p.call(this,C)}function n(p,C,k,F,G,I){var j,N,Z,$=this.chart,Y=T(F.inside,!!this.options.stacking);$.polar?(j=C.rectPlotX/Math.PI*180,$.inverted?(this.forceDL=$.isInsidePlot(C.plotX,C.plotY),Y&&C.shapeArgs?(N=C.shapeArgs,G={x:(Z=this.yAxis.postTranslate(((N.start||0)+(N.end||0))/2-this.xAxis.startAngleRad,C.barX+C.pointWidth/2)).x-$.plotLeft,y:Z.y-$.plotTop}):C.tooltipPos&&(G={x:C.tooltipPos[0],y:C.tooltipPos[1]}),F.align=T(F.align,"center"),F.verticalAlign=T(F.verticalAlign,"middle")):F=function(et,rt){var it,ht;return rt.align===null&&(it=et>20&&et<160?"left":et>200&&et<340?"right":"center",rt.align=it),rt.verticalAlign===null&&(ht=et<45||et>315?"bottom":et>135&&et<225?"top":"middle",rt.verticalAlign=ht),rt}(j,F),Object.getPrototypeOf(Object.getPrototypeOf(this)).alignDataLabel.call(this,C,k,F,G,I),this.isRadialBar&&C.shapeArgs&&C.shapeArgs.start===C.shapeArgs.end?k.hide():k.show()):p.call(this,C,k,F,G,I)}function i(p){var C,k,F,G,I,j,N,Z,$,Y,et,rt,it,ht=this,dt=ht.options,bt=dt.stacking,xt=ht.chart,St=ht.xAxis,wt=ht.yAxis,mt=wt.reversed,at=wt.center,pt=St.startAngleRad,vt=St.endAngleRad-pt,Ct=dt.threshold,Tt=0,At=0,Lt=0;if(ht.preventPostTranslate=!0,p.call(ht),St.isRadial)for(F=(C=ht.points).length,G=wt.translate(wt.min),I=wt.translate(wt.max),Ct=dt.threshold||0,xt.inverted&&w(Ct)&&(Tt=wt.translate(Ct),D(Tt)&&(Tt<0?Tt=0:Tt>vt&&(Tt=vt),ht.translatedThreshold=Tt+pt));F--;)et=(k=C[F]).barX,N=k.x,Z=k.y,k.shapeType="arc",xt.inverted?(k.plotY=wt.translate(Z),bt&&wt.stacking?(Y=wt.stacking.stacks[(Z<0?"-":"")+ht.stackKey],ht.visible&&Y&&Y[N]&&(k.isNull||($=Y[N].points[ht.getStackIndicator(void 0,N,ht.index).key],At=wt.translate($[0]),Lt=wt.translate($[1]),D(At)&&(At=K.clamp(At,0,vt))))):(At=Tt,Lt=k.plotY),At>Lt&&(Lt=[At,At=Lt][0]),mt?Lt>G?Lt=G:At<I?At=I:(At>G||Lt<I)&&(At=Lt=vt):At<G?At=G:Lt>I?Lt=I:(Lt<G||At>I)&&(At=Lt=0),wt.min>wt.max&&(At=Lt=mt?vt:0),At+=pt,Lt+=pt,at&&(k.barX=et+=at[3]/2),rt=Math.max(et,0),it=Math.max(et+k.pointWidth,0),k.shapeArgs={x:at&&at[0],y:at&&at[1],r:it,innerR:rt,start:At,end:Lt},k.opacity=At===Lt?0:void 0,k.plotY=(D(ht.translatedThreshold)&&(At<ht.translatedThreshold?At:Lt))-pt):(At=et+pt,k.shapeArgs=ht.polar.arc(k.yBottom,k.plotY,At,At+k.pointWidth)),ht.polar.toXY(k),xt.inverted?(j=wt.postTranslate(k.rectPlotY,et+k.pointWidth/2),k.tooltipPos=[j.x-xt.plotLeft,j.y-xt.plotTop]):k.tooltipPos=[k.plotX,k.plotY],at&&(k.ttBelow=k.plotY>at[1])}function c(p,C){var k,F,G=this;if(this.chart.polar){C=C||this.points;for(var I=0;I<C.length;I++)if(!C[I].isNull){k=I;break}this.options.connectEnds!==!1&&k!==void 0&&(this.connectEnds=!0,C.splice(C.length,0,C[k]),F=!0),C.forEach(function(N){N.polarPlotY===void 0&&G.polar.toXY(N)})}var j=p.apply(this,[].slice.call(arguments,1));return F&&C.pop(),j}function a(p,C){var k=this.chart,F={xAxis:[],yAxis:[]};return k.polar?k.axes.forEach(function(G){if(G.coll!=="colorAxis"){var I=G.isXAxis,j=G.center,N=C.chartX-j[0]-k.plotLeft,Z=C.chartY-j[1]-k.plotTop;F[I?"xAxis":"yAxis"].push({axis:G,value:G.translate(I?Math.PI-Math.atan2(N,Z):Math.sqrt(Math.pow(N,2)+Math.pow(Z,2)),!0)})}}):F=p.call(this,C),F}function s(p,C){this.chart.polar||p.call(this,C)}function y(p,C){var k,F,G,I,j,N,Z=this,$=this.chart,Y=this.group,et=this.markerGroup,rt=this.xAxis&&this.xAxis.center,it=$.plotLeft,ht=$.plotTop,dt=this.options.animation;$.polar?Z.isRadialBar?C||(Z.startAngleRad=T(Z.translatedThreshold,Z.xAxis.startAngleRad),z.seriesTypes.pie.prototype.animate.call(Z,C)):$.renderer.isSVG&&(dt=q(dt),Z.is("column")?C||(F=rt[3]/2,Z.points.forEach(function(bt){G=bt.graphic,I=bt.shapeArgs,j=I&&I.r,N=I&&I.innerR,G&&I&&(G.attr({r:F,innerR:F}),G.animate({r:j,innerR:N},Z.options.animation))})):C?(k={translateX:rt[0]+it,translateY:rt[1]+ht,scaleX:.001,scaleY:.001},Y.attr(k),et&&et.attr(k)):(k={translateX:it,translateY:ht,scaleX:1,scaleY:1},Y.animate(k,dt),et&&et.animate(k,dt))):p.call(this,C)}function A(p,C,k,F){var G,I;if(this.chart.polar)if(F){var j=(I=v(C,F,!0,this.connectEnds)).prevPointCont&&I.prevPointCont.rightContX,N=I.prevPointCont&&I.prevPointCont.rightContY;G=["C",w(j)?j:I.plotX,w(N)?N:I.plotY,w(I.leftContX)?I.leftContX:I.plotX,w(I.leftContY)?I.leftContY:I.plotY,I.plotX,I.plotY]}else G=["M",k.plotX,k.plotY];else G=p.call(this,C,k,F);return G}var _=function(){function p(C){this.series=C}return p.compose=function(C,k,F,G,I,j,N,Z,$){if(V.compose(C,I),b.indexOf(k)===-1){b.push(k),W(k,"afterDrawChartBox",S),W(k,"getAxes",E),W(k,"init",P);var Y=k.prototype;g(Y,"get",r)}if(b.indexOf(F)===-1){b.push(F);var et=F.prototype;g(et,"getCoordinates",a),g(et,"pinch",s),W(F,"getSelectionMarkerAttrs",f),W(F,"getSelectionBox",M)}if(b.indexOf(G)===-1){b.push(G),W(G,"afterInit",x),W(G,"afterTranslate",l,{order:2});var rt=G.prototype;g(rt,"animate",y)}if(N&&b.indexOf(N)===-1){b.push(N);var it=N.prototype;g(it,"alignDataLabel",n),g(it,"animate",y),g(it,"translate",i)}if(Z&&b.indexOf(Z)===-1){b.push(Z);var ht=Z.prototype;g(ht,"getGraphPath",c)}if($&&b.indexOf($)===-1){b.push($);var dt=$.prototype;g(dt,"getPointSpline",A),j&&b.indexOf(j)===-1&&(b.push(j),j.prototype.getPointSpline=dt.getPointSpline)}},p.prototype.arc=function(C,k,F,G){var I=this.series,j=I.xAxis.center,N=I.yAxis.len,Z=j[3]/2,$=N-k+Z,Y=N-T(C,N)+Z;return I.yAxis.reversed&&($<0&&($=Z),Y<0&&(Y=Z)),{x:j[0],y:j[1],r:$,innerR:Y,start:F,end:G}},p.prototype.toXY=function(C){var k,F=this.series,G=F.chart,I=F.xAxis,j=F.yAxis,N=C.plotX,Z=G.inverted,$=C.y,Y=C.plotY,et=Z?N:j.len-Y;if(Z&&F&&!F.isRadialBar&&(C.plotY=Y=w($)?j.translate($):0),C.rectPlotX=N,C.rectPlotY=Y,j.center&&(et+=j.center[3]/2),w(Y)){var rt=Z?j.postTranslate(Y,et):I.postTranslate(N,et);C.plotX=C.polarPlotX=rt.x-G.plotLeft,C.plotY=C.polarPlotY=rt.y-G.plotTop}F.kdByAngle?((k=(N/Math.PI*180+I.pane.options.startAngle)%360)<0&&(k+=360),C.clientX=k):C.clientX=C.plotX},p}();return _}),st(B,"masters/highcharts-more.src.js",[B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Bubble/BubbleSeries.js"],B["Series/PackedBubble/PackedBubbleSeries.js"],B["Series/PolarComposition.js"]],function(U,z,X,V,K){var J=U;X.compose(J.Axis,J.Chart,J.Legend,J.Series),V.compose(J.Axis,J.Chart,J.Legend,J.Series),K.compose(J.Axis,J.Chart,J.Pointer,J.Series,J.Tick,z.seriesTypes.areasplinerange,z.seriesTypes.column,z.seriesTypes.line,z.seriesTypes.spline)})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},8840:function(tt,ot,lt){var ct,ut,ft;ut=typeof window!="undefined"?window:this,ft=function(yt){function B(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&yt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}var st={};return B(st,"Core/Globals.js",[],function(){var U;return function(z){z.SVG_NS="http://www.w3.org/2000/svg",z.product="Highcharts",z.version="10.3.3",z.win=yt!==void 0?yt:{},z.doc=z.win.document,z.svg=z.doc&&z.doc.createElementNS&&!!z.doc.createElementNS(z.SVG_NS,"svg").createSVGRect,z.userAgent=z.win.navigator&&z.win.navigator.userAgent||"",z.isChrome=z.userAgent.indexOf("Chrome")!==-1,z.isFirefox=z.userAgent.indexOf("Firefox")!==-1,z.isMS=/(edge|msie|trident)/i.test(z.userAgent)&&!z.win.opera,z.isSafari=!z.isChrome&&z.userAgent.indexOf("Safari")!==-1,z.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(z.userAgent),z.isWebKit=z.userAgent.indexOf("AppleWebKit")!==-1,z.deg2rad=2*Math.PI/360,z.hasBidiBug=z.isFirefox&&4>parseInt(z.userAgent.split("Firefox/")[1],10),z.hasTouch=!!z.win.TouchEvent,z.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],z.noop=function(){},z.supportsPassiveEvents=function(){var X=!1;if(!z.isMS){var V=Object.defineProperty({},"passive",{get:function(){X=!0}});z.win.addEventListener&&z.win.removeEventListener&&(z.win.addEventListener("testPassive",z.noop,V),z.win.removeEventListener("testPassive",z.noop,V))}return X}(),z.charts=[],z.dateFormats={},z.seriesTypes={},z.symbolSizes={},z.chartCount=0}(U||(U={})),U}),B(st,"Core/Utilities.js",[st["Core/Globals.js"]],function(U){function z(e,r,n,i){var c=r?"Highcharts error":"Highcharts warning";e===32&&(e=c+": Deprecated member");var a=D(e),s=a?c+" #"+e+": www.highcharts.com/errors/"+e+"/":e.toString();if(i!==void 0){var y="";a&&(s+="?"),v(i,function(A,_){y+=`
127
+ - `.concat(_,": ").concat(A),a&&(s+=encodeURI(_)+"="+encodeURI(A))}),s+=y}P(U,"displayError",{chart:n,code:e,message:s,params:i},function(){if(r)throw Error(s);f.console&&z.messages.indexOf(s)===-1&&console.warn(s)}),z.messages.push(s)}function X(e,r){return parseInt(e,r||10)}function V(e){return typeof e=="string"}function K(e){return(e=Object.prototype.toString.call(e))==="[object Array]"||e==="[object Array Iterator]"}function J(e,r){return!(!e||typeof e!="object"||r&&K(e))}function q(e){return J(e)&&typeof e.nodeType=="number"}function W(e){var r=e&&e.constructor;return!(!J(e,!0)||q(e)||!r||!r.name||r.name==="Object")}function D(e){return typeof e=="number"&&!isNaN(e)&&1/0>e&&-1/0<e}function O(e){return e!=null}function w(e,r,n){var i,c=V(r)&&!O(n),a=function(s,y){O(s)?e.setAttribute(y,s):c?(i=e.getAttribute(y))||y!=="class"||(i=e.getAttribute(y+"Name")):e.removeAttribute(y)};return V(r)?a(n,r):v(r,a),i}function T(e,r){var n;for(n in e||(e={}),r)e[n]=r[n];return e}function d(){for(var e=arguments,r=e.length,n=0;n<r;n++){var i=e[n];if(i!=null)return i}}function u(e,r){U.isMS&&!U.svg&&r&&O(r.opacity)&&(r.filter="alpha(opacity=".concat(100*r.opacity,")")),T(e.style,r)}function g(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))}function b(e,r){return 1e14<e?e:parseFloat(e.toPrecision(r||14))}function v(e,r,n){for(var i in e)Object.hasOwnProperty.call(e,i)&&r.call(n||e[i],e[i],i,e)}function S(e,r,n){function i(y,A){var _=e.removeEventListener||U.removeEventListenerPolyfill;_&&_.call(e,y,A,!1)}function c(y){var A;if(e.nodeName){if(r){var _={};_[r]=!0}else _=y;v(_,function(p,C){if(y[C])for(A=y[C].length;A--;)i(C,y[C][A].fn)})}}var a=typeof e=="function"&&e.prototype||e;if(Object.hasOwnProperty.call(a,"hcEvents")){var s=a.hcEvents;r?(a=s[r]||[],n?(s[r]=a.filter(function(y){return n!==y.fn}),i(r,n)):(c(s),s[r]=[])):(c(s),delete a.hcEvents)}}function P(e,r,n,i){if(n=n||{},M.createEvent&&(e.dispatchEvent||e.fireEvent&&e!==U)){var c=M.createEvent("Events");c.initEvent(r,!0,!0),n=T(c,n),e.dispatchEvent?e.dispatchEvent(n):e.fireEvent(r,n)}else if(e.hcEvents){n.target||T(n,{preventDefault:function(){n.defaultPrevented=!0},target:e,type:r}),c=[];for(var a=e,s=!1;a.hcEvents;)Object.hasOwnProperty.call(a,"hcEvents")&&a.hcEvents[r]&&(c.length&&(s=!0),c.unshift.apply(c,a.hcEvents[r])),a=Object.getPrototypeOf(a);s&&c.sort(function(y,A){return y.order-A.order}),c.forEach(function(y){y.fn.call(e,n)===!1&&n.preventDefault()})}i&&!n.defaultPrevented&&i.call(e,n)}var E=U.charts,M=U.doc,f=U.win;(z||(z={})).messages=[],Math.easeInOutSine=function(e){return-.5*(Math.cos(Math.PI*e)-1)};var x=Array.prototype.find?function(e,r){return e.find(r)}:function(e,r){var n,i=e.length;for(n=0;n<i;n++)if(r(e[n],n))return e[n]};v({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,r){U[r]=function(n){var i;return z(32,!1,void 0,((i={})["Highcharts.".concat(r)]="use Array.".concat(e),i)),Array.prototype[e].apply(n,[].slice.call(arguments,1))}});var l,h=function(){var e=Math.random().toString(36).substring(2,9)+"-",r=0;return function(){return"highcharts-"+(l?"":e)+r++}}();return f.jQuery,x={addEvent:function(e,r,n,i){i===void 0&&(i={});var c=typeof e=="function"&&e.prototype||e;Object.hasOwnProperty.call(c,"hcEvents")||(c.hcEvents={}),c=c.hcEvents,U.Point&&e instanceof U.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var a=e.addEventListener||U.addEventListenerPolyfill;return a&&a.call(e,r,n,!!U.supportsPassiveEvents&&{passive:i.passive===void 0?r.indexOf("touch")!==-1:i.passive,capture:!1}),c[r]||(c[r]=[]),c[r].push({fn:n,order:typeof i.order=="number"?i.order:1/0}),c[r].sort(function(s,y){return s.order-y.order}),function(){S(e,r,n)}},arrayMax:function(e){for(var r=e.length,n=e[0];r--;)e[r]>n&&(n=e[r]);return n},arrayMin:function(e){for(var r=e.length,n=e[0];r--;)e[r]<n&&(n=e[r]);return n},attr:w,clamp:function(e,r,n){return e>r?e<n?e:n:r},cleanRecursively:function e(r,n){var i={};return v(r,function(c,a){J(r[a],!0)&&!r.nodeType&&n[a]?(c=e(r[a],n[a]),Object.keys(c).length&&(i[a]=c)):(J(r[a])||r[a]!==n[a]||a in r&&!(a in n))&&(i[a]=r[a])}),i},clearTimeout:function(e){O(e)&&clearTimeout(e)},correctFloat:b,createElement:function(e,r,n,i,c){return e=M.createElement(e),r&&T(e,r),c&&u(e,{padding:"0",border:"none",margin:"0"}),n&&u(e,n),i&&i.appendChild(e),e},css:u,defined:O,destroyObjectProperties:function(e,r){v(e,function(n,i){n&&n!==r&&n.destroy&&n.destroy(),delete e[i]})},discardElement:function(e){e&&e.parentElement&&e.parentElement.removeChild(e)},erase:function(e,r){for(var n=e.length;n--;)if(e[n]===r){e.splice(n,1);break}},error:z,extend:T,extendClass:function(e,r){var n=function(){};return T(n.prototype=new e,r),n},find:x,fireEvent:P,getMagnitude:g,getNestedProperty:function(e,r){for(e=e.split(".");e.length&&O(r);){var n=e.shift();if(n===void 0||n==="__proto__"||!O(r=r[n])||typeof r=="function"||typeof r.nodeType=="number"||r===f)return}return r},getStyle:function e(r,n,i){var c=U.getStyle||e;if(n==="width")return n=Math.min(r.offsetWidth,r.scrollWidth),(i=r.getBoundingClientRect&&r.getBoundingClientRect().width)<n&&i>=n-1&&(n=Math.floor(i)),Math.max(0,n-(c(r,"padding-left",!0)||0)-(c(r,"padding-right",!0)||0));if(n==="height")return Math.max(0,Math.min(r.offsetHeight,r.scrollHeight)-(c(r,"padding-top",!0)||0)-(c(r,"padding-bottom",!0)||0));if(f.getComputedStyle||z(27,!0),r=f.getComputedStyle(r,void 0)){var a=r.getPropertyValue(n);d(i,n!=="opacity")&&(a=X(a))}return a},inArray:function(e,r,n){return z(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),r.indexOf(e,n)},isArray:K,isClass:W,isDOMElement:q,isFunction:function(e){return typeof e=="function"},isNumber:D,isObject:J,isString:V,keys:function(e){return z(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(e)},merge:function(){var e,r=arguments,n={},i=function(a,s){return typeof a!="object"&&(a={}),v(s,function(y,A){A!=="__proto__"&&A!=="constructor"&&(!J(y,!0)||W(y)||q(y)?a[A]=s[A]:a[A]=i(a[A]||{},y))}),a};r[0]===!0&&(n=r[1],r=Array.prototype.slice.call(r,2));var c=r.length;for(e=0;e<c;e++)n=i(n,r[e]);return n},normalizeTickInterval:function(e,r,n,i,c){var a=e,s=e/(n=d(n,g(e)));for(r||(r=c?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(n===1?r=r.filter(function(y){return y%1==0}):.1>=n&&(r=[1/n]))),i=0;i<r.length&&(a=r[i],!(c&&a*n>=e||!c&&s<=(r[i]+(r[i+1]||r[i]))/2));i++);return b(a*n,-Math.round(Math.log(.001)/Math.LN10))},objectEach:v,offset:function(e){var r=M.documentElement;return{top:(e=e.parentElement||e.parentNode?e.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(f.pageYOffset||r.scrollTop)-(r.clientTop||0),left:e.left+(f.pageXOffset||r.scrollLeft)-(r.clientLeft||0),width:e.width,height:e.height}},pad:function(e,r,n){return Array((r||2)+1-String(e).replace("-","").length).join(n||"0")+e},pick:d,pInt:X,relativeLength:function(e,r,n){return/%$/.test(e)?r*parseFloat(e)/100+(n||0):parseFloat(e)},removeEvent:S,splat:function(e){return K(e)?e:[e]},stableSort:function(e,r){var n,i,c=e.length;for(i=0;i<c;i++)e[i].safeI=i;for(e.sort(function(a,s){return(n=r(a,s))===0?a.safeI-s.safeI:n}),i=0;i<c;i++)delete e[i].safeI},syncTimeout:function(e,r,n){return 0<r?setTimeout(e,r,n):(e.call(0,n),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:h,useSerialIds:function(e){return l=d(e,l)},wrap:function(e,r,n){var i=e[r];e[r]=function(){var c=arguments,a=this;return n.apply(this,[function(){return i.apply(a,arguments.length?arguments:c)}].concat([].slice.call(arguments)))}}},x}),B(st,"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"}}),B(st,"Core/Color/Color.js",[st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z){var X=z.isNumber,V=z.merge,K=z.pInt;return z=function(){function J(q){this.rgba=[NaN,NaN,NaN,NaN],this.input=q;var W=U.Color;return W&&W!==J?new W(q):this instanceof J?void this.init(q):new J(q)}return J.parse=function(q){return q?new J(q):J.None},J.prototype.init=function(q){var W;if(typeof q=="object"&&q.stops!==void 0)this.stops=q.stops.map(function(T){return new J(T[1])});else if(typeof q=="string"){if(this.input=q=J.names[q.toLowerCase()]||q,q.charAt(0)==="#"){var D=q.length,O=parseInt(q.substr(1),16);D===7?W=[(16711680&O)>>16,(65280&O)>>8,255&O,1]:D===4&&(W=[(3840&O)>>4|(3840&O)>>8,(240&O)>>4|240&O,(15&O)<<4|15&O,1])}if(!W)for(O=J.parsers.length;O--&&!W;){var w=J.parsers[O];(D=w.regex.exec(q))&&(W=w.parse(D))}}W&&(this.rgba=W)},J.prototype.get=function(q){var W=this.input,D=this.rgba;if(typeof W=="object"&&this.stops!==void 0){var O=V(W);return O.stops=[].slice.call(O.stops),this.stops.forEach(function(w,T){O.stops[T]=[O.stops[T][0],w.get(q)]}),O}return D&&X(D[0])?q==="rgb"||!q&&D[3]===1?"rgb("+D[0]+","+D[1]+","+D[2]+")":q==="a"?"".concat(D[3]):"rgba("+D.join(",")+")":W},J.prototype.brighten=function(q){var W=this.rgba;if(this.stops)this.stops.forEach(function(O){O.brighten(q)});else if(X(q)&&q!==0)for(var D=0;3>D;D++)W[D]+=K(255*q),0>W[D]&&(W[D]=0),255<W[D]&&(W[D]=255);return this},J.prototype.setOpacity=function(q){return this.rgba[3]=q,this},J.prototype.tweenTo=function(q,W){var D=this.rgba,O=q.rgba;return X(D[0])&&X(O[0])?((q=O[3]!==1||D[3]!==1)?"rgba(":"rgb(")+Math.round(O[0]+(D[0]-O[0])*(1-W))+","+Math.round(O[1]+(D[1]-O[1])*(1-W))+","+Math.round(O[2]+(D[2]-O[2])*(1-W))+(q?","+(O[3]+(D[3]-O[3])*(1-W)):"")+")":q.input||"none"},J.names={white:"#ffffff",black:"#000000"},J.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(q){return[K(q[1]),K(q[2]),K(q[3]),parseFloat(q[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(q){return[K(q[1]),K(q[2]),K(q[3]),1]}}],J.None=new J(""),J}(),z}),B(st,"Core/Color/Palettes.js",[],function(){return{colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" ")}}),B(st,"Core/Time.js",[st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z){var X=U.win,V=z.defined,K=z.error,J=z.extend,q=z.isObject,W=z.merge,D=z.objectEach,O=z.pad,w=z.pick,T=z.splat,d=z.timeUnits,u=U.isSafari&&X.Intl&&X.Intl.DateTimeFormat.prototype.formatRange,g=U.isSafari&&X.Intl&&!X.Intl.DateTimeFormat.prototype.formatRange;return z=function(){function b(v){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=X.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(v)}return b.prototype.get=function(v,S){if(this.variableTimezone||this.timezoneOffset){var P=S.getTime(),E=P-this.getTimezoneOffset(S);return S.setTime(E),v=S["getUTC"+v](),S.setTime(P),v}return this.useUTC?S["getUTC"+v]():S["get"+v]()},b.prototype.set=function(v,S,P){if(this.variableTimezone||this.timezoneOffset){if(v==="Milliseconds"||v==="Seconds"||v==="Minutes"&&this.getTimezoneOffset(S)%36e5==0)return S["setUTC"+v](P);var E=this.getTimezoneOffset(S);return E=S.getTime()-E,S.setTime(E),S["setUTC"+v](P),v=this.getTimezoneOffset(S),E=S.getTime()+v,S.setTime(E)}return this.useUTC||u&&v==="FullYear"?S["setUTC"+v](P):S["set"+v](P)},b.prototype.update=function(v){v===void 0&&(v={});var S=w(v.useUTC,!0);this.options=v=W(!0,this.options,v),this.Date=v.Date||X.Date||Date,this.timezoneOffset=(this.useUTC=S)&&v.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=S&&!(!v.getTimezoneOffset&&!v.timezone)},b.prototype.makeTime=function(v,S,P,E,M,f){if(this.useUTC){var x=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(x);x+=l;var h=this.getTimezoneOffset(x);l!==h?x+=h-l:l-36e5!==this.getTimezoneOffset(x-36e5)||g||(x-=36e5)}else x=new this.Date(v,S,w(P,1),w(E,0),w(M,0),w(f,0)).getTime();return x},b.prototype.timezoneOffsetFunction=function(){var v=this,S=this.options,P=S.getTimezoneOffset,E=S.moment||X.moment;if(!this.useUTC)return function(M){return 6e4*new Date(M.toString()).getTimezoneOffset()};if(S.timezone){if(E)return function(M){return 6e4*-E.tz(M,S.timezone).utcOffset()};K(25)}return this.useUTC&&P?function(M){return 6e4*P(M.valueOf())}:function(){return 6e4*(v.timezoneOffset||0)}},b.prototype.dateFormat=function(v,S,P){if(!V(S)||isNaN(S))return U.defaultOptions.lang&&U.defaultOptions.lang.invalidDate||"";v=w(v,"%Y-%m-%d %H:%M:%S");var E=this,M=new this.Date(S),f=this.get("Hours",M),x=this.get("Day",M),l=this.get("Date",M),h=this.get("Month",M),e=this.get("FullYear",M),r=U.defaultOptions.lang,n=r&&r.weekdays,i=r&&r.shortWeekdays;return M=J({a:i?i[x]:n[x].substr(0,3),A:n[x],d:O(l),e:O(l,2," "),w:x,b:r.shortMonths[h],B:r.months[h],m:O(h+1),o:h+1,y:e.toString().substr(2,2),Y:e,H:O(f),k:f,I:O(f%12||12),l:f%12||12,M:O(this.get("Minutes",M)),p:12>f?"AM":"PM",P:12>f?"am":"pm",S:O(M.getSeconds()),L:O(Math.floor(S%1e3),3)},U.dateFormats),D(M,function(c,a){for(;v.indexOf("%"+a)!==-1;)v=v.replace("%"+a,typeof c=="function"?c.call(E,S):c)}),P?v.substr(0,1).toUpperCase()+v.substr(1):v},b.prototype.resolveDTLFormat=function(v){return q(v,!0)?v:{main:(v=T(v))[0],from:v[1],to:v[2]}},b.prototype.getTimeTicks=function(v,S,P,E){var M,f=this,x=[],l={},h=new f.Date(S),e=v.unitRange,r=v.count||1;if(E=w(E,1),V(S)){if(f.set("Milliseconds",h,e>=d.second?0:r*Math.floor(f.get("Milliseconds",h)/r)),e>=d.second&&f.set("Seconds",h,e>=d.minute?0:r*Math.floor(f.get("Seconds",h)/r)),e>=d.minute&&f.set("Minutes",h,e>=d.hour?0:r*Math.floor(f.get("Minutes",h)/r)),e>=d.hour&&f.set("Hours",h,e>=d.day?0:r*Math.floor(f.get("Hours",h)/r)),e>=d.day&&f.set("Date",h,e>=d.month?1:Math.max(1,r*Math.floor(f.get("Date",h)/r))),e>=d.month){f.set("Month",h,e>=d.year?0:r*Math.floor(f.get("Month",h)/r));var n=f.get("FullYear",h)}e>=d.year&&f.set("FullYear",h,n-n%r),e===d.week&&(n=f.get("Day",h),f.set("Date",h,f.get("Date",h)-n+E+(n<E?-7:0))),n=f.get("FullYear",h),E=f.get("Month",h);var i=f.get("Date",h),c=f.get("Hours",h);for(S=h.getTime(),!f.variableTimezone&&f.useUTC||!V(P)||(M=P-S>4*d.month||f.getTimezoneOffset(S)!==f.getTimezoneOffset(P)),S=h.getTime(),h=1;S<P;)x.push(S),S=e===d.year?f.makeTime(n+h*r,0):e===d.month?f.makeTime(n,E+h*r):!M||e!==d.day&&e!==d.week?M&&e===d.hour&&1<r?f.makeTime(n,E,i,c+h*r):S+e*r:f.makeTime(n,E,i+h*r*(e===d.day?1:7)),h++;x.push(S),e<=d.hour&&1e4>x.length&&x.forEach(function(a){a%18e5==0&&f.dateFormat("%H%M%S%L",a)==="000000000"&&(l[a]="day")})}return x.info=J(v,{higherRanks:l,totalRange:e*r}),x},b.prototype.getDateFormat=function(v,S,P,E){var M=this.dateFormat("%m-%d %H:%M:%S.%L",S),f={millisecond:15,second:12,minute:9,hour:6,day:3},x="millisecond";for(l in d){if(v===d.week&&+this.dateFormat("%w",S)===P&&M.substr(6)==="00:00:00.000"){var l="week";break}if(d[l]>v){l=x;break}if(f[l]&&M.substr(f[l])!=="01-01 00:00:00.000".substr(f[l]))break;l!=="week"&&(x=l)}return this.resolveDTLFormat(E[l]).main},b}(),z}),B(st,"Core/Defaults.js",[st["Core/Chart/ChartDefaults.js"],st["Core/Color/Color.js"],st["Core/Globals.js"],st["Core/Color/Palettes.js"],st["Core/Time.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J){z=z.parse;var q=J.merge,W={colors:V.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:U,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:z("#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"}};W.chart.styledMode=!1;var D=new K(q(W.global,W.time));return{defaultOptions:W,defaultTime:D,getOptions:function(){return W},setOptions:function(O){return q(!0,W,O),(O.time||O.global)&&(X.time?X.time.update(q(W.global,W.time,O.global,O.time)):X.time=D),W}}}),B(st,"Core/Animation/Fx.js",[st["Core/Color/Color.js"],st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z,X){var V=U.parse,K=z.win,J=X.isNumber,q=X.objectEach;return function(){function W(D,O,w){this.pos=NaN,this.options=O,this.elem=D,this.prop=w}return W.prototype.dSetter=function(){var D=this.paths,O=D&&D[0];D=D&&D[1];var w=this.now||0,T=[];if(w!==1&&O&&D)if(O.length===D.length&&1>w)for(var d=0;d<D.length;d++){for(var u=O[d],g=D[d],b=[],v=0;v<g.length;v++){var S=u[v],P=g[v];J(S)&&J(P)&&(g[0]!=="A"||v!==4&&v!==5)?b[v]=S+w*(P-S):b[v]=P}T.push(b)}else T=D;else T=this.toD||[];this.elem.attr("d",T,void 0,!0)},W.prototype.update=function(){var D=this.elem,O=this.prop,w=this.now,T=this.options.step;this[O+"Setter"]?this[O+"Setter"]():D.attr?D.element&&D.attr(O,w,null,!0):D.style[O]=w+this.unit,T&&T.call(D,w,this)},W.prototype.run=function(D,O,w){var T=this,d=T.options,u=function(v){return!u.stopped&&T.step(v)},g=K.requestAnimationFrame||function(v){setTimeout(v,13)},b=function(){for(var v=0;v<W.timers.length;v++)W.timers[v]()||W.timers.splice(v--,1);W.timers.length&&g(b)};D!==O||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=D,this.end=O,this.unit=w,this.now=this.start,this.pos=0,u.elem=this.elem,u.prop=this.prop,u()&&W.timers.push(u)===1&&g(b)):(delete d.curAnim[this.prop],d.complete&&Object.keys(d.curAnim).length===0&&d.complete.call(this.elem))},W.prototype.step=function(D){var O=+new Date,w=this.options,T=this.elem,d=w.complete,u=w.duration,g=w.curAnim;if(T.attr&&!T.element)D=!1;else if(D||O>=u+this.startTime){this.now=this.end,this.pos=1,this.update();var b=g[this.prop]=!0;q(g,function(v){v!==!0&&(b=!1)}),b&&d&&d.call(T),D=!1}else this.pos=w.easing((O-this.startTime)/u),this.now=this.start+(this.end-this.start)*this.pos,this.update(),D=!0;return D},W.prototype.initPath=function(D,O,w){function T(M,f){for(;M.length<E;){var x=M[0],l=f[E-M.length];l&&x[0]==="M"&&(M[0]=l[0]==="C"?["C",x[1],x[2],x[1],x[2],x[1],x[2]]:["L",x[1],x[2]]),M.unshift(x),b&&(x=M.pop(),M.push(M[M.length-1],x))}}function d(M,f){for(;M.length<E;)if((f=M[Math.floor(M.length/v)-1].slice())[0]==="C"&&(f[1]=f[5],f[2]=f[6]),b){var x=M[Math.floor(M.length/v)].slice();M.splice(M.length/2,0,f,x)}else M.push(f)}var u=D.startX,g=D.endX;w=w.slice();var b=D.isArea,v=b?2:1;if(!(O=O&&O.slice()))return[w,w];if(u&&g&&g.length){for(D=0;D<u.length;D++){if(u[D]===g[0]){var S=D;break}if(u[0]===g[g.length-u.length+D]){S=D;var P=!0;break}if(u[u.length-1]===g[g.length-u.length+D]){S=u.length-D;break}}S===void 0&&(O=[])}if(O.length&&J(S)){var E=w.length+S*v;P?(T(O,w),d(w,O)):(T(w,O),d(O,w))}return[O,w]},W.prototype.fillSetter=function(){W.prototype.strokeSetter.apply(this,arguments)},W.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},W.timers=[],W}()}),B(st,"Core/Animation/AnimationUtilities.js",[st["Core/Animation/Fx.js"],st["Core/Utilities.js"]],function(U,z){function X(d){return D(d)?O({duration:500,defer:0},d):{duration:d?500:0,defer:0}}function V(d,u){for(var g=U.timers.length;g--;)U.timers[g].elem!==d||u&&u!==U.timers[g].prop||(U.timers[g].stopped=!0)}var K=z.defined,J=z.getStyle,q=z.isArray,W=z.isNumber,D=z.isObject,O=z.merge,w=z.objectEach,T=z.pick;return{animate:function(d,u,g){var b,v,S,P="";if(!D(g)){var E=arguments;g={duration:E[2],easing:E[3],complete:E[4]}}W(g.duration)||(g.duration=400),g.easing=typeof g.easing=="function"?g.easing:Math[g.easing]||Math.easeInOutSine,g.curAnim=O(u),w(u,function(M,f){V(d,f),S=new U(d,g,f),v=void 0,f==="d"&&q(u.d)?(S.paths=S.initPath(d,d.pathArray,u.d),S.toD=u.d,b=0,v=1):d.attr?b=d.attr(f):(b=parseFloat(J(d,f))||0,f!=="opacity"&&(P="px")),v||(v=M),typeof v=="string"&&v.match("px")&&(v=v.replace(/px/g,"")),S.run(b,v,P)})},animObject:X,getDeferredAnimation:function(d,u,g){var b=X(u),v=0,S=0;return(g?[g]:d.series).forEach(function(P){P=X(P.options.animation),v=u&&K(u.defer)?b.defer:Math.max(v,P.duration+P.defer),S=Math.min(b.duration,P.duration)}),d.renderer.forExport&&(v=0),{defer:Math.max(0,v-S),duration:Math.min(v,S)}},setAnimation:function(d,u){u.renderer.globalAnimation=T(d,u.options.chart.animation,!0)},stop:V}}),B(st,"Core/Renderer/HTML/AST.js",[st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z){var X=U.SVG_NS,V=z.attr,K=z.createElement,J=z.css,q=z.error,W=z.isFunction,D=z.isString,O=z.objectEach,w=z.splat,T=(z=U.win.trustedTypes)&&W(z.createPolicy)&&z.createPolicy("highcharts",{createHTML:function(g){return g}}),d=T?T.createHTML(""):"";try{var u=!!new DOMParser().parseFromString(d,"text/html")}catch(g){u=!1}return W=function(){function g(b){this.nodes=typeof b=="string"?this.parseMarkup(b):b}return g.filterUserAttributes=function(b){return O(b,function(v,S){var P=!0;g.allowedAttributes.indexOf(S)===-1&&(P=!1),["background","dynsrc","href","lowsrc","src"].indexOf(S)!==-1&&(P=D(v)&&g.allowedReferences.some(function(E){return v.indexOf(E)===0})),P||(q(33,!1,void 0,{"Invalid attribute in config":"".concat(S)}),delete b[S]),D(v)&&b[S]&&(b[S]=v.replace(/</g,"&lt;"))}),b},g.parseStyle=function(b){return b.split(";").reduce(function(v,S){S=S.split(":").map(function(E){return E.trim()});var P=S.shift();return P&&S.length&&(v[P.replace(/-([a-z])/g,function(E){return E[1].toUpperCase()})]=S.join(":")),v},{})},g.setElementHTML=function(b,v){b.innerHTML=g.emptyHTML,v&&new g(v).addToDOM(b)},g.prototype.addToDOM=function(b){return function v(S,P){var E;return w(S).forEach(function(M){var f=M.tagName,x=M.textContent?U.doc.createTextNode(M.textContent):void 0,l=g.bypassHTMLFiltering;if(f)if(f==="#text")var h=x;else if(g.allowedTags.indexOf(f)!==-1||l){f=U.doc.createElementNS(f==="svg"?X:P.namespaceURI||X,f);var e=M.attributes||{};O(M,function(r,n){n!=="tagName"&&n!=="attributes"&&n!=="children"&&n!=="style"&&n!=="textContent"&&(e[n]=r)}),V(f,l?e:g.filterUserAttributes(e)),M.style&&J(f,M.style),x&&f.appendChild(x),v(M.children||[],f),h=f}else q(33,!1,void 0,{"Invalid tagName in config":f});h&&P.appendChild(h),E=h}),E}(this.nodes,b)},g.prototype.parseMarkup=function(b){var v=[];if(b=b.trim().replace(/ style=(["'])/g," data-style=$1"),u)b=new DOMParser().parseFromString(T?T.createHTML(b):b,"text/html");else{var S=K("div");S.innerHTML=b,b={body:S}}var P=function(E,M){var f=E.nodeName.toLowerCase(),x={tagName:f};if(f==="#text"&&(x.textContent=E.textContent||""),f=E.attributes){var l={};[].forEach.call(f,function(e){e.name==="data-style"?x.style=g.parseStyle(e.value):l[e.name]=e.value}),x.attributes=l}if(E.childNodes.length){var h=[];[].forEach.call(E.childNodes,function(e){P(e,h)}),h.length&&(x.children=h)}M.push(x)};return[].forEach.call(b.body.childNodes,function(E){return P(E,v)}),v},g.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(" "),g.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),g.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(" "),g.emptyHTML=d,g.bypassHTMLFiltering=!1,g}(),W}),B(st,"Core/FormatUtilities.js",[st["Core/Defaults.js"],st["Core/Utilities.js"]],function(U,z){function X(O,w,T,d){O=+O||0,w=+w;var u=V.lang,g=(O.toString().split(".")[1]||"").split("e")[0].length,b=O.toString().split("e"),v=w;if(w===-1)w=Math.min(g,20);else if(q(w)){if(w&&b[1]&&0>b[1]){var S=w+ +b[1];0<=S?(b[0]=(+b[0]).toExponential(S).split("e")[0],w=S):(b[0]=b[0].split(".")[0]||0,O=20>w?(b[0]*Math.pow(10,b[1])).toFixed(w):0,b[1]=0)}}else w=2;S=(Math.abs(b[1]?b[0]:O)+Math.pow(10,-Math.max(w,g)-1)).toFixed(w);var P=3<(g=String(D(S))).length?g.length%3:0;return T=W(T,u.decimalPoint),d=W(d,u.thousandsSep),O=(0>O?"-":"")+(P?g.substr(0,P)+d:""),O=0>+b[1]&&!v?"0":O+g.substr(P).replace(/(\d{3})(?=\d)/g,"$1"+d),w&&(O+=T+S.slice(-w)),b[1]&&+O!=0&&(O+="e"+b[1]),O}var V=U.defaultOptions,K=U.defaultTime,J=z.getNestedProperty,q=z.isNumber,W=z.pick,D=z.pInt;return{dateFormat:function(O,w,T){return K.dateFormat(O,w,T)},format:function(O,w,T){var d="{",u=!1,g=/f$/,b=/\.([0-9])/,v=V.lang,S=T&&T.time||K;T=T&&T.numberFormatter||X;for(var P=[];O;){var E=O.indexOf(d);if(E===-1)break;var M=O.slice(0,E);if(u){if(M=M.split(":"),d=J(M.shift()||"",w),M.length&&typeof d=="number")if(M=M.join(":"),g.test(M)){var f=parseInt((M.match(b)||["","-1"])[1],10);d!==null&&(d=T(d,f,v.decimalPoint,-1<M.indexOf(",")?v.thousandsSep:""))}else d=S.dateFormat(M,d);P.push(d)}else P.push(M);O=O.slice(E+1),d=(u=!u)?"}":"{"}return P.push(O),P.join("")},numberFormat:X}}),B(st,"Core/Renderer/RendererUtilities.js",[st["Core/Utilities.js"]],function(U){var z,X=U.clamp,V=U.pick,K=U.stableSort;return function(J){J.distribute=function q(W,D,O){var w,T=W,d=T.reducedLen||D,u=function(P,E){return(E.rank||0)-(P.rank||0)},g=function(P,E){return P.target-E.target},b=!0,v=[],S=0;for(w=W.length;w--;)S+=W[w].size;if(S>d){for(K(W,u),S=w=0;S<=d;)S+=W[w].size,w++;v=W.splice(w-1,W.length)}for(K(W,g),W=W.map(function(P){return{size:P.size,targets:[P.target],align:V(P.align,.5)}});b;){for(w=W.length;w--;)d=W[w],u=(Math.min.apply(0,d.targets)+Math.max.apply(0,d.targets))/2,d.pos=X(u-d.size*d.align,0,D-d.size);for(w=W.length,b=!1;w--;)0<w&&W[w-1].pos+W[w-1].size>W[w].pos&&(W[w-1].size+=W[w].size,W[w-1].targets=W[w-1].targets.concat(W[w].targets),W[w-1].align=.5,W[w-1].pos+W[w-1].size>D&&(W[w-1].pos=D-W[w-1].size),W.splice(w,1),b=!0)}return T.push.apply(T,v),w=0,W.some(function(P){var E=0;return(P.targets||[]).some(function(){return T[w].pos=P.pos+E,O!==void 0&&Math.abs(T[w].pos-T[w].target)>O?(T.slice(0,w+1).forEach(function(M){return delete M.pos}),T.reducedLen=(T.reducedLen||D)-.1*D,T.reducedLen>.1*D&&q(T,D,O),!0):(E+=T[w].size,w++,!1)})}),K(T,g),T}}(z||(z={})),z}),B(st,"Core/Renderer/SVG/SVGElement.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Color/Color.js"],st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z,X,V){var K=U.animate,J=U.animObject,q=U.stop,W=X.deg2rad,D=X.doc,O=X.svg,w=X.SVG_NS,T=X.win,d=V.addEvent,u=V.attr,g=V.createElement,b=V.css,v=V.defined,S=V.erase,P=V.extend,E=V.fireEvent,M=V.isArray,f=V.isFunction,x=V.isString,l=V.merge,h=V.objectEach,e=V.pick,r=V.pInt,n=V.syncTimeout,i=V.uniqueKey;return U=function(){function c(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=w,this.symbolCustomAttribs="x y width height r start end innerR anchorX anchorY rounded".split(" ")}return c.prototype._defaultGetter=function(a){return a=e(this[a+"Value"],this[a],this.element?this.element.getAttribute(a):null,0),/^[\-0-9\.]+$/.test(a)&&(a=parseFloat(a)),a},c.prototype._defaultSetter=function(a,s,y){y.setAttribute(s,a)},c.prototype.add=function(a){var s=this.renderer,y=this.element;if(a&&(this.parentGroup=a),this.textStr!==void 0&&this.element.nodeName==="text"&&s.buildText(this),this.added=!0,!a||a.handleZ||this.zIndex)var A=this.zIndexSetter();return A||(a?a.element:s.box).appendChild(y),this.onAdd&&this.onAdd(),this},c.prototype.addClass=function(a,s){var y=s?"":this.attr("class")||"";return a=(a||"").split(/ /g).reduce(function(A,_){return y.indexOf(_)===-1&&A.push(_),A},y?[y]:[]).join(" "),a!==y&&this.attr("class",a),this},c.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},c.prototype.align=function(a,s,y){var A,_,p,C={},k=this.renderer,F=k.alignedObjects;a?(this.alignOptions=a,this.alignByTranslate=s,(!y||x(y))&&(this.alignTo=A=y||"renderer",S(F,this),F.push(this),y=void 0)):(a=this.alignOptions,s=this.alignByTranslate,A=this.alignTo),y=e(y,k[A],A==="scrollablePlotBox"?k.plotBox:void 0,k),A=a.align;var G=a.verticalAlign;return k=(y.x||0)+(a.x||0),F=(y.y||0)+(a.y||0),A==="right"?_=1:A==="center"&&(_=2),_&&(k+=(y.width-(a.width||0))/_),C[s?"translateX":"x"]=Math.round(k),G==="bottom"?p=1:G==="middle"&&(p=2),p&&(F+=(y.height-(a.height||0))/p),C[s?"translateY":"y"]=Math.round(F),this[this.placed?"animate":"attr"](C),this.placed=!0,this.alignAttr=C,this},c.prototype.alignSetter=function(a){var s={left:"start",center:"middle",right:"end"};s[a]&&(this.alignValue=a,this.element.setAttribute("text-anchor",s[a]))},c.prototype.animate=function(a,s,y){var A=this,_=J(e(s,this.renderer.globalAnimation,!0));return s=_.defer,e(D.hidden,D.msHidden,D.webkitHidden,!1)&&(_.duration=0),_.duration!==0?(y&&(_.complete=y),n(function(){A.element&&K(A,a,_)},s)):(this.attr(a,void 0,y||_.complete),h(a,function(p,C){_.step&&_.step.call(this,p,{prop:C,pos:1,elem:this})},this)),this},c.prototype.applyTextOutline=function(a){var s=this.element;a.indexOf("contrast")!==-1&&(a=a.replace(/contrast/g,this.renderer.getContrast(s.style.fill)));var y=a.split(" ");if(a=y[y.length-1],(y=y[0])&&y!=="none"&&X.svg){this.fakeTS=!0,y=y.replace(/(^[\d\.]+)(.*?)$/g,function(p,C,k){return 2*Number(C)+k}),this.removeTextOutline();var A=D.createElementNS(w,"tspan");u(A,{class:"highcharts-text-outline",fill:a,stroke:a,"stroke-width":y,"stroke-linejoin":"round"}),a=s.querySelector("textPath")||s,[].forEach.call(a.childNodes,function(p){var C=p.cloneNode(!0);C.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(k){return C.removeAttribute(k)}),A.appendChild(C)});var _=0;[].forEach.call(a.querySelectorAll("text tspan"),function(p){_+=Number(p.getAttribute("dy"))}),(y=D.createElementNS(w,"tspan")).textContent="​",u(y,{x:Number(s.getAttribute("x")),dy:-_}),A.appendChild(y),a.insertBefore(A,a.firstChild)}},c.prototype.attr=function(a,s,y,A){var _,p,C,k=this.element,F=this.symbolCustomAttribs,G=this;if(typeof a=="string"&&s!==void 0){var I=a;(a={})[I]=s}return typeof a=="string"?G=(this[a+"Getter"]||this._defaultGetter).call(this,a,k):(h(a,function(j,N){p=!1,A||q(this,N),this.symbolName&&F.indexOf(N)!==-1&&(_||(this.symbolAttr(a),_=!0),p=!0),!this.rotation||N!=="x"&&N!=="y"||(this.doTransform=!0),p||((C=this[N+"Setter"]||this._defaultSetter).call(this,j,N,k),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(N)&&this.updateShadows(N,j,C))},this),this.afterSetters()),y&&y.call(this),G},c.prototype.clip=function(a){return this.attr("clip-path",a?"url("+this.renderer.url+"#"+a.id+")":"none")},c.prototype.crisp=function(a,s){s=s||a.strokeWidth||0;var y=Math.round(s)%2/2;return a.x=Math.floor(a.x||this.x||0)+y,a.y=Math.floor(a.y||this.y||0)+y,a.width=Math.floor((a.width||this.width||0)-2*y),a.height=Math.floor((a.height||this.height||0)-2*y),v(a.strokeWidth)&&(a.strokeWidth=s),a},c.prototype.complexColor=function(a,s,y){var A,_,p,C,k,F,G,I,j,N,Z,$=this.renderer,Y=[];E(this.renderer,"complexColor",{args:arguments},function(){if(a.radialGradient?_="radialGradient":a.linearGradient&&(_="linearGradient"),_){if(p=a[_],k=$.gradients,F=a.stops,j=y.radialReference,M(p)&&(a[_]=p={x1:p[0],y1:p[1],x2:p[2],y2:p[3],gradientUnits:"userSpaceOnUse"}),_==="radialGradient"&&j&&!v(p.gradientUnits)&&(C=p,p=l(p,$.getRadialAttr(j,C),{gradientUnits:"userSpaceOnUse"})),h(p,function(rt,it){it!=="id"&&Y.push(it,rt)}),h(F,function(rt){Y.push(rt)}),Y=Y.join(","),k[Y])N=k[Y].attr("id");else{p.id=N=i();var et=k[Y]=$.createElement(_).attr(p).add($.defs);et.radAttr=C,et.stops=[],F.forEach(function(rt){rt[1].indexOf("rgba")===0?(A=z.parse(rt[1]),G=A.get("rgb"),I=A.get("a")):(G=rt[1],I=1),rt=$.createElement("stop").attr({offset:rt[0],"stop-color":G,"stop-opacity":I}).add(et),et.stops.push(rt)})}Z="url("+$.url+"#"+N+")",y.setAttribute(s,Z),y.gradient=Y,a.toString=function(){return Z}}})},c.prototype.css=function(a){var s=this.styles,y={},A=this.element,_=!s;if(a.color&&(a.fill=a.color),s&&h(a,function(k,F){s&&s[F]!==k&&(y[F]=k,_=!0)}),_){if(s&&(a=P(s,y)),a.width===null||a.width==="auto")delete this.textWidth;else if(A.nodeName.toLowerCase()==="text"&&a.width)var p=this.textWidth=r(a.width);this.styles=a,p&&!O&&this.renderer.forExport&&delete a.width;var C=l(a);A.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(k){return C&&delete C[k]}),b(A,C),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),a.textOutline&&this.applyTextOutline(a.textOutline))}return this},c.prototype.dashstyleSetter=function(a){var s=this["stroke-width"];if(s==="inherit"&&(s=1),a=a&&a.toLowerCase()){var y=a.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(a=y.length;a--;)y[a]=""+r(y[a])*e(s,NaN);a=y.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",a)}},c.prototype.destroy=function(){var a=this,s=a.element||{},y=a.renderer,A=s.ownerSVGElement,_=y.isSVG&&s.nodeName==="SPAN"&&a.parentGroup||void 0;if(s.onclick=s.onmouseout=s.onmouseover=s.onmousemove=s.point=null,q(a),a.clipPath&&A){var p=a.clipPath;[].forEach.call(A.querySelectorAll("[clip-path],[CLIP-PATH]"),function(C){-1<C.getAttribute("clip-path").indexOf(p.element.id)&&C.removeAttribute("clip-path")}),a.clipPath=p.destroy()}if(a.stops){for(A=0;A<a.stops.length;A++)a.stops[A].destroy();a.stops.length=0,a.stops=void 0}for(a.safeRemoveChild(s),y.styledMode||a.destroyShadows();_&&_.div&&_.div.childNodes.length===0;)s=_.parentGroup,a.safeRemoveChild(_.div),delete _.div,_=s;a.alignTo&&S(y.alignedObjects,a),h(a,function(C,k){a[k]&&a[k].parentGroup===a&&a[k].destroy&&a[k].destroy(),delete a[k]})},c.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(a){this.safeRemoveChild(a)},this),this.shadows=void 0},c.prototype.dSetter=function(a,s,y){M(a)&&(typeof a[0]=="string"&&(a=this.renderer.pathToSegments(a)),this.pathArray=a,a=a.reduce(function(A,_,p){return _&&_.join?(p?A+" ":"")+_.join(" "):(_||"").toString()},"")),/(NaN| {2}|^$)/.test(a)&&(a="M 0 0"),this[s]!==a&&(y.setAttribute(s,a),this[s]=a)},c.prototype.fadeOut=function(a){var s=this;s.animate({opacity:0},{duration:e(a,150),complete:function(){s.hide()}})},c.prototype.fillSetter=function(a,s,y){typeof a=="string"?y.setAttribute(s,a):a&&this.complexColor(a,s,y)},c.prototype.getBBox=function(a,s){var y=this.alignValue,A=this.element,_=this.renderer,p=this.styles,C=this.textStr,k=_.cache,F=_.cacheKeys,G=A.namespaceURI===this.SVG_NS;s=e(s,this.rotation,0);var I,j=_.styledMode?A&&c.prototype.getStyle.call(A,"font-size"):p&&p.fontSize;if(v(C)){var N=C.toString();N.indexOf("<")===-1&&(N=N.replace(/[0-9]/g,"0")),N+=["",s,j,this.textWidth,y,p&&p.textOverflow,p&&p.fontWeight].join()}if(N&&!a&&(I=k[N]),!I){if(G||_.forExport){try{var Z=this.fakeTS&&function(Y){var et=A.querySelector(".highcharts-text-outline");et&&b(et,{display:Y})};f(Z)&&Z("none"),I=A.getBBox?P({},A.getBBox()):{width:A.offsetWidth,height:A.offsetHeight,x:0,y:0},f(Z)&&Z("")}catch(Y){}(!I||0>I.width)&&(I={x:0,y:0,width:0,height:0})}else I=this.htmlGetBBox();if(_.isSVG&&(_=I.width,a=I.height,G&&(I.height=a={"11px,17":14,"13px,20":16}[""+(j||"")+",".concat(Math.round(a))]||a),s)){G=Number(A.getAttribute("y")||0)-I.y,y={right:1,center:.5}[y||0]||0,p=s*W,j=(s-90)*W;var $=_*Math.cos(p);s=_*Math.sin(p),Z=Math.cos(j),p=Math.sin(j),$=(Z=(j=(_=I.x+y*(_-$)+G*Z)+$)-a*Z)-$,s=(a=(y=(G=I.y+G-y*s+G*p)+s)-a*p)-s,I.x=Math.min(_,j,Z,$),I.y=Math.min(G,y,a,s),I.width=Math.max(_,j,Z,$)-I.x,I.height=Math.max(G,y,a,s)-I.y}if(N&&(C===""||0<I.height)){for(;250<F.length;)delete k[F.shift()];k[N]||F.push(N),k[N]=I}}return I},c.prototype.getStyle=function(a){return T.getComputedStyle(this.element||this,"").getPropertyValue(a)},c.prototype.hasClass=function(a){return(""+this.attr("class")).split(" ").indexOf(a)!==-1},c.prototype.hide=function(){return this.attr({visibility:"hidden"})},c.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},c.prototype.init=function(a,s){this.element=s==="span"?g(s):D.createElementNS(this.SVG_NS,s),this.renderer=a,E(this,"afterInit")},c.prototype.on=function(a,s){var y=this.onEvents;return y[a]&&y[a](),y[a]=d(this.element,a,s),this},c.prototype.opacitySetter=function(a,s,y){this.opacity=a=Number(Number(a).toFixed(3)),y.setAttribute(s,a)},c.prototype.removeClass=function(a){return this.attr("class",(""+this.attr("class")).replace(x(a)?new RegExp("(^| )".concat(a,"( |$)")):a," ").replace(/ +/g," ").trim())},c.prototype.removeTextOutline=function(){var a=this.element.querySelector("tspan.highcharts-text-outline");a&&this.safeRemoveChild(a)},c.prototype.safeRemoveChild=function(a){var s=a.parentNode;s&&s.removeChild(a)},c.prototype.setRadialReference=function(a){var s=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=a,s&&s.radAttr&&s.animate(this.renderer.getRadialAttr(a,s.radAttr)),this},c.prototype.setTextPath=function(a,s){var y=this;s=l(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},s);var A=this.renderer.url,_=this.text||this,p=_.textPath,C=s.attributes,k=s.enabled;return a=a||p&&p.path,p&&p.undo(),a&&k?(s=d(_,"afterModifyTree",function(F){if(a&&k){var G=a.attr("id");G||a.attr("id",G=i());var I={x:0,y:0};v(C.dx)&&(I.dx=C.dx,delete C.dx),v(C.dy)&&(I.dy=C.dy,delete C.dy),_.attr(I),y.attr({transform:""}),y.box&&(y.box=y.box.destroy()),I=F.nodes.slice(0),F.nodes.length=0,F.nodes[0]={tagName:"textPath",attributes:P(C,{"text-anchor":C.textAnchor,href:""+A+"#".concat(G)}),children:I}}}),_.textPath={path:a,undo:s}):(_.attr({dx:0,dy:0}),delete _.textPath),this.added&&(_.textCache="",this.renderer.buildText(_)),this},c.prototype.shadow=function(a,s,y){var A=[],_=this.element,p=this.oldShadowOptions,C=this.parentGroup,k=C&&C.rotation===90;C={color:"#000000",offsetX:k?-1:1,offsetY:k?-1:1,opacity:.15,width:3};var F,G=!1;if(a===!0?F=C:typeof a=="object"&&(F=P(C,a)),F&&(F&&p&&h(F,function(Z,$){Z!==p[$]&&(G=!0)}),G&&this.destroyShadows(),this.oldShadowOptions=F),F){if(!this.shadows){C=F.opacity/F.width;var I=k?"translate(".concat(F.offsetY,", ").concat(F.offsetX,")"):"translate(".concat(F.offsetX,", ").concat(F.offsetY,")");for(k=1;k<=F.width;k++){var j=_.cloneNode(!1),N=2*F.width+1-2*k;u(j,{stroke:a.color||"#000000","stroke-opacity":C*k,"stroke-width":N,transform:I,fill:"none"}),j.setAttribute("class",(j.getAttribute("class")||"")+" highcharts-shadow"),y&&(u(j,"height",Math.max(u(j,"height")-N,0)),j.cutHeight=N),s?s.element.appendChild(j):_.parentNode&&_.parentNode.insertBefore(j,_),A.push(j)}this.shadows=A}}else this.destroyShadows();return this},c.prototype.show=function(a){return a===void 0&&(a=!0),this.attr({visibility:a?"inherit":"visible"})},c.prototype["stroke-widthSetter"]=function(a,s,y){this[s]=a,y.setAttribute(s,a)},c.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var a=this.getStyle("stroke-width"),s=0;if(a.indexOf("px")===a.length-2)s=r(a);else if(a!==""){var y=D.createElementNS(w,"rect");u(y,{width:a,"stroke-width":0}),this.element.parentNode.appendChild(y),s=y.getBBox().width,y.parentNode.removeChild(y)}return s},c.prototype.symbolAttr=function(a){var s=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(y){s[y]=e(a[y],s[y])}),s.attr({d:s.renderer.symbols[s.symbolName](s.x,s.y,s.width,s.height,s)})},c.prototype.textSetter=function(a){a!==this.textStr&&(delete this.textPxLength,this.textStr=a,this.added&&this.renderer.buildText(this))},c.prototype.titleSetter=function(a){var s=this.element,y=s.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");s.insertBefore?s.insertBefore(y,s.firstChild):s.appendChild(y),y.textContent=String(e(a,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},c.prototype.toFront=function(){var a=this.element;return a.parentNode.appendChild(a),this},c.prototype.translate=function(a,s){return this.attr({translateX:a,translateY:s})},c.prototype.updateShadows=function(a,s,y){var A=this.shadows;if(A)for(var _=A.length;_--;)y.call(A[_],a==="height"?Math.max(s-(A[_].cutHeight||0),0):a==="d"?this.d:s,a,A[_])},c.prototype.updateTransform=function(){var a=this.element,s=this.matrix,y=this.rotation;y=y===void 0?0:y;var A=this.scaleX,_=this.scaleY,p=this.translateX,C=this.translateY;p=["translate("+(p===void 0?0:p)+","+(C===void 0?0:C)+")"],v(s)&&p.push("matrix("+s.join(",")+")"),y&&p.push("rotate("+y+" "+e(this.rotationOriginX,a.getAttribute("x"),0)+" "+e(this.rotationOriginY,a.getAttribute("y")||0)+")"),(v(A)||v(_))&&p.push("scale("+e(A,1)+" "+e(_,1)+")"),p.length&&!(this.text||this).textPath&&a.setAttribute("transform",p.join(" "))},c.prototype.visibilitySetter=function(a,s,y){a==="inherit"?y.removeAttribute(s):this[s]!==a&&y.setAttribute(s,a),this[s]=a},c.prototype.xGetter=function(a){return this.element.nodeName==="circle"&&(a==="x"?a="cx":a==="y"&&(a="cy")),this._defaultGetter(a)},c.prototype.zIndexSetter=function(a,s){var y=this.renderer,A=this.parentGroup,_=(A||y).element||y.box,p=this.element;y=_===y.box;var C,k=!1,F=this.added;if(v(a)?(p.setAttribute("data-z-index",a),a=+a,this[s]===a&&(F=!1)):v(this[s])&&p.removeAttribute("data-z-index"),this[s]=a,F){for((a=this.zIndex)&&A&&(A.handleZ=!0),C=(s=_.childNodes).length-1;0<=C&&!k;C--){F=(A=s[C]).getAttribute("data-z-index");var G=!v(F);A!==p&&(0>a&&G&&!y&&!C?(_.insertBefore(p,s[C]),k=!0):(r(F)<=a||G&&(!v(a)||0<=a))&&(_.insertBefore(p,s[C+1]||null),k=!0))}k||(_.insertBefore(p,s[y?3:0]||null),k=!0)}return k},c}(),U.prototype.strokeSetter=U.prototype.fillSetter,U.prototype.yGetter=U.prototype.xGetter,U.prototype.matrixSetter=U.prototype.rotationOriginXSetter=U.prototype.rotationOriginYSetter=U.prototype.rotationSetter=U.prototype.scaleXSetter=U.prototype.scaleYSetter=U.prototype.translateXSetter=U.prototype.translateYSetter=U.prototype.verticalAlignSetter=function(c,a){this[a]=c,this.doTransform=!0},U}),B(st,"Core/Renderer/RendererRegistry.js",[st["Core/Globals.js"]],function(U){var z;return function(X){var V;X.rendererTypes={},X.getRendererType=function(K){return K===void 0&&(K=V),X.rendererTypes[K]||X.rendererTypes[V]},X.registerRendererType=function(K,J,q){X.rendererTypes[K]=J,V&&!q||(V=K,U.Renderer=J)}}(z||(z={})),z}),B(st,"Core/Renderer/SVG/SVGLabel.js",[st["Core/Renderer/SVG/SVGElement.js"],st["Core/Utilities.js"]],function(U,z){var X=this&&this.__extends||function(){var O=function(w,T){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},O(w,T)};return function(w,T){function d(){this.constructor=w}O(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}}(),V=z.defined,K=z.extend,J=z.isNumber,q=z.merge,W=z.pick,D=z.removeEvent;return function(O){function w(T,d,u,g,b,v,S,P,E,M){var f,x=O.call(this)||this;return x.paddingLeftSetter=x.paddingSetter,x.paddingRightSetter=x.paddingSetter,x.init(T,"g"),x.textStr=d,x.x=u,x.y=g,x.anchorX=v,x.anchorY=S,x.baseline=E,x.className=M,x.addClass(M==="button"?"highcharts-no-tooltip":"highcharts-label"),M&&x.addClass("highcharts-"+M),x.text=T.text(void 0,0,0,P).attr({zIndex:1}),typeof b=="string"&&((f=/^url\((.*?)\)$/.test(b))||x.renderer.symbols[b])&&(x.symbolKey=b),x.bBox=w.emptyBBox,x.padding=3,x.baselineOffset=0,x.needsBox=T.styledMode||f,x.deferredAttr={},x.alignFactor=0,x}return X(w,O),w.prototype.alignSetter=function(T){(T={left:0,center:.5,right:1}[T])!==this.alignFactor&&(this.alignFactor=T,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))},w.prototype.anchorXSetter=function(T,d){this.anchorX=T,this.boxAttr(d,Math.round(T)-this.getCrispAdjust()-this.xSetting)},w.prototype.anchorYSetter=function(T,d){this.anchorY=T,this.boxAttr(d,T-this.ySetting)},w.prototype.boxAttr=function(T,d){this.box?this.box.attr(T,d):this.deferredAttr[T]=d},w.prototype.css=function(T){if(T){var d={};T=q(T),w.textProps.forEach(function(u){T[u]!==void 0&&(d[u]=T[u],delete T[u])}),this.text.css(d),"fontSize"in d||"fontWeight"in d?this.updateTextPadding():("width"in d||"textOverflow"in d)&&this.updateBoxSize()}return U.prototype.css.call(this,T)},w.prototype.destroy=function(){D(this.element,"mouseenter"),D(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),U.prototype.destroy.call(this)},w.prototype.fillSetter=function(T,d){T&&(this.needsBox=!0),this.fill=T,this.boxAttr(d,T)},w.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var T=this.padding,d=W(this.paddingLeft,T);return{width:this.width,height:this.height,x:this.bBox.x-d,y:this.bBox.y-T}},w.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},w.prototype.heightSetter=function(T){this.heightSetting=T},w.prototype.onAdd=function(){this.text.add(this),this.attr({text:W(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&V(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},w.prototype.paddingSetter=function(T,d){J(T)?T!==this[d]&&(this[d]=T,this.updateTextPadding()):this[d]=void 0},w.prototype.rSetter=function(T,d){this.boxAttr(d,T)},w.prototype.shadow=function(T){return T&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(T)),this},w.prototype.strokeSetter=function(T,d){this.stroke=T,this.boxAttr(d,T)},w.prototype["stroke-widthSetter"]=function(T,d){T&&(this.needsBox=!0),this["stroke-width"]=T,this.boxAttr(d,T)},w.prototype["text-alignSetter"]=function(T){this.textAlign=T},w.prototype.textSetter=function(T){T!==void 0&&this.text.attr({text:T}),this.updateTextPadding()},w.prototype.updateBoxSize=function(){var T=this.text,d=T.element.style,u={},g=this.padding,b=this.bBox=J(this.widthSetting)&&J(this.heightSetting)&&!this.textAlign||!V(T.textStr)?w.emptyBBox:T.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||b.height||0)+2*g,d=this.renderer.fontMetrics(d&&d.fontSize,T),this.baselineOffset=g+Math.min((this.text.firstLineMetrics||d).b,b.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2),this.needsBox&&!T.textPath&&(this.box||((T=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":"")),T.add(this)),T=this.getCrispAdjust(),u.x=T,u.y=(this.baseline?-this.baselineOffset:0)+T,u.width=Math.round(this.width),u.height=Math.round(this.height),this.box.attr(K(u,this.deferredAttr)),this.deferredAttr={})},w.prototype.updateTextPadding=function(){var T=this.text;if(!T.textPath){this.updateBoxSize();var d=this.baseline?0:this.baselineOffset,u=W(this.paddingLeft,this.padding);V(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(u+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),u===T.x&&d===T.y||(T.attr("x",u),T.hasBoxWidthChanged&&(this.bBox=T.getBBox(!0)),d!==void 0&&T.attr("y",d)),T.x=u,T.y=d}},w.prototype.widthSetter=function(T){this.widthSetting=J(T)?T:void 0},w.prototype.getPaddedWidth=function(){var T=this.padding,d=W(this.paddingLeft,T);return T=W(this.paddingRight,T),(this.widthSetting||this.bBox.width||0)+d+T},w.prototype.xSetter=function(T){this.x=T,this.alignFactor&&(T-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(T),this.attr("translateX",this.xSetting)},w.prototype.ySetter=function(T){this.ySetting=this.y=Math.round(T),this.attr("translateY",this.ySetting)},w.emptyBBox={width:0,height:0,x:0,y:0},w.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),w}(U)}),B(st,"Core/Renderer/SVG/Symbols.js",[st["Core/Utilities.js"]],function(U){function z(W,D,O,w,T){var d=[];if(T){var u=T.start||0,g=q(T.r,O);O=q(T.r,w||O);var b=(T.end||0)-.001;w=T.innerR;var v=q(T.open,.001>Math.abs((T.end||0)-u-2*Math.PI)),S=Math.cos(u),P=Math.sin(u),E=Math.cos(b),M=Math.sin(b);u=q(T.longArc,.001>b-u-Math.PI?0:1),d.push(["M",W+g*S,D+O*P],["A",g,O,0,u,q(T.clockwise,1),W+g*E,D+O*M]),K(w)&&d.push(v?["M",W+w*E,D+w*M]:["L",W+w*E,D+w*M],["A",w,w,0,u,K(T.clockwise)?1-T.clockwise:0,W+w*S,D+w*P]),v||d.push(["Z"])}return d}function X(W,D,O,w,T){return T&&T.r?V(W,D,O,w,T):[["M",W,D],["L",W+O,D],["L",W+O,D+w],["L",W,D+w],["Z"]]}function V(W,D,O,w,T){return[["M",W+(T=T&&T.r||0),D],["L",W+O-T,D],["C",W+O,D,W+O,D,W+O,D+T],["L",W+O,D+w-T],["C",W+O,D+w,W+O,D+w,W+O-T,D+w],["L",W+T,D+w],["C",W,D+w,W,D+w,W,D+w-T],["L",W,D+T],["C",W,D,W,D,W+T,D]]}var K=U.defined,J=U.isNumber,q=U.pick;return{arc:z,callout:function(W,D,O,w,T){var d=Math.min(T&&T.r||0,O,w),u=d+6,g=T&&T.anchorX;T=T&&T.anchorY||0;var b=V(W,D,O,w,{r:d});return J(g)&&(W+g>=O?T>D+u&&T<D+w-u?b.splice(3,1,["L",W+O,T-6],["L",W+O+6,T],["L",W+O,T+6],["L",W+O,D+w-d]):b.splice(3,1,["L",W+O,w/2],["L",g,T],["L",W+O,w/2],["L",W+O,D+w-d]):0>=W+g?T>D+u&&T<D+w-u?b.splice(7,1,["L",W,T+6],["L",W-6,T],["L",W,T-6],["L",W,D+d]):b.splice(7,1,["L",W,w/2],["L",g,T],["L",W,w/2],["L",W,D+d]):T&&T>w&&g>W+u&&g<W+O-u?b.splice(5,1,["L",g+6,D+w],["L",g,D+w+6],["L",g-6,D+w],["L",W+d,D+w]):T&&0>T&&g>W+u&&g<W+O-u&&b.splice(1,1,["L",g-6,D],["L",g,D-6],["L",g+6,D],["L",O-d,D])),b},circle:function(W,D,O,w){return z(W+O/2,D+w/2,O/2,w/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(W,D,O,w){return[["M",W+O/2,D],["L",W+O,D+w/2],["L",W+O/2,D+w],["L",W,D+w/2],["Z"]]},rect:X,roundedRect:V,square:X,triangle:function(W,D,O,w){return[["M",W+O/2,D],["L",W+O,D+w],["L",W,D+w],["Z"]]},"triangle-down":function(W,D,O,w){return[["M",W,D],["L",W+O,D],["L",W+O/2,D+w],["Z"]]}}}),B(st,"Core/Renderer/SVG/TextBuilder.js",[st["Core/Renderer/HTML/AST.js"],st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z,X){var V=z.doc,K=z.SVG_NS,J=z.win,q=X.attr,W=X.extend,D=X.fireEvent,O=X.isString,w=X.objectEach,T=X.pick;return function(){function d(u){var g=u.styles;this.renderer=u.renderer,this.svgElement=u,this.width=u.textWidth,this.textLineHeight=g&&g.lineHeight,this.textOutline=g&&g.textOutline,this.ellipsis=!(!g||g.textOverflow!=="ellipsis"),this.noWrap=!(!g||g.whiteSpace!=="nowrap"),this.fontSize=g&&g.fontSize}return d.prototype.buildSVG=function(){var u=this.svgElement,g=u.element,b=u.renderer,v=T(u.textStr,"").toString(),S=v.indexOf("<")!==-1,P=g.childNodes;b=this.width&&!u.added&&b.box;var E=[v,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join();if(E!==u.textCache){for(u.textCache=E,delete u.actualWidth,E=P.length;E--;)g.removeChild(P[E]);S||this.ellipsis||this.width||u.textPath||v.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(v))?v!==""&&(b&&b.appendChild(g),v=new U(v),this.modifyTree(v.nodes),v.addToDOM(g),this.modifyDOM(),this.ellipsis&&(g.textContent||"").indexOf("…")!==-1&&u.attr("title",this.unescapeEntities(u.textStr||"",["&lt;","&gt;"])),b&&b.removeChild(g)):g.appendChild(V.createTextNode(this.unescapeEntities(v))),O(this.textOutline)&&u.applyTextOutline&&u.applyTextOutline(this.textOutline)}},d.prototype.modifyDOM=function(){var u,g=this,b=this.svgElement,v=q(b.element,"x");for(b.firstLineMetrics=void 0;(u=b.element.firstChild)&&/^[\s\u200B]*$/.test(u.textContent||" ");)b.element.removeChild(u);[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(M,f){M.nextSibling&&M.previousSibling&&(f===0&&M.previousSibling.nodeType===1&&(b.firstLineMetrics=b.renderer.fontMetrics(void 0,M.previousSibling)),q(M,{dy:g.getLineHeight(M.nextSibling),x:v}))});var S=this.width||0;if(S){var P=function(M,f){var x=M.textContent||"",l=x.replace(/([^\^])-/g,"$1- ").split(" "),h=!g.noWrap&&(1<l.length||1<b.element.childNodes.length),e=g.getLineHeight(f),r=0,n=b.actualWidth;if(g.ellipsis)x&&g.truncate(M,x,void 0,0,Math.max(0,S-parseInt(g.fontSize||12,10)),function(i,c){return i.substring(0,c)+"…"});else if(h){for(x=[],h=[];f.firstChild&&f.firstChild!==M;)h.push(f.firstChild),f.removeChild(f.firstChild);for(;l.length;)l.length&&!g.noWrap&&0<r&&(x.push(M.textContent||""),M.textContent=l.join(" ").replace(/- /g,"-")),g.truncate(M,void 0,l,r===0&&n||0,S,function(i,c){return l.slice(0,c).join(" ").replace(/- /g,"-")}),n=b.actualWidth,r++;h.forEach(function(i){f.insertBefore(i,M)}),x.forEach(function(i){f.insertBefore(V.createTextNode(i),M),(i=V.createElementNS(K,"tspan")).textContent="​",q(i,{dy:e,x:v}),f.insertBefore(i,M)})}},E=function(M){[].slice.call(M.childNodes).forEach(function(f){f.nodeType===J.Node.TEXT_NODE?P(f,M):(f.className.baseVal.indexOf("highcharts-br")!==-1&&(b.actualWidth=0),E(f))})};E(b.element)}},d.prototype.getLineHeight=function(u){var g;return u=u.nodeType===J.Node.TEXT_NODE?u.parentElement:u,this.renderer.styledMode||(g=u&&/(px|em)$/.test(u.style.fontSize)?u.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(g,u||this.svgElement.element).h},d.prototype.modifyTree=function(u){var g=this,b=function(v,S){var P=v.attributes;P=P===void 0?{}:P;var E=v.children,M=v.style;M=M===void 0?{}:M;var f=v.tagName,x=g.renderer.styledMode;f==="b"||f==="strong"?x?P.class="highcharts-strong":M.fontWeight="bold":f!=="i"&&f!=="em"||(x?P.class="highcharts-emphasized":M.fontStyle="italic"),M&&M.color&&(M.fill=M.color),f==="br"?(P.class="highcharts-br",v.textContent="​",(S=u[S+1])&&S.textContent&&(S.textContent=S.textContent.replace(/^ +/gm,""))):f==="a"&&E&&E.some(function(l){return l.tagName==="#text"})&&(v.children=[{children:E,tagName:"tspan"}]),f!=="#text"&&f!=="a"&&(v.tagName="tspan"),W(v,{attributes:P,style:M}),E&&E.filter(function(l){return l.tagName!=="#text"}).forEach(b)};u.forEach(b),D(this.svgElement,"afterModifyTree",{nodes:u})},d.prototype.truncate=function(u,g,b,v,S,P){var E,M=this.svgElement,f=M.renderer,x=M.rotation,l=[],h=b?1:0,e=(g||b||"").length,r=e,n=function(c,a){a=a||c;var s=u.parentNode;if(s&&l[a]===void 0)if(s.getSubStringLength)try{l[a]=v+s.getSubStringLength(0,b?a+1:a)}catch(y){}else f.getSpanWidth&&(u.textContent=P(g||b,c),l[a]=v+f.getSpanWidth(M,u));return l[a]};M.rotation=0;var i=n(u.textContent.length);if(v+i>S){for(;h<=e;)r=Math.ceil((h+e)/2),b&&(E=P(b,r)),i=n(r,E&&E.length-1),h===e?h=e+1:i>S?e=r-1:h=r;e===0?u.textContent="":g&&e===g.length-1||(u.textContent=E||P(g||b,r))}b&&b.splice(0,r),M.actualWidth=i,M.rotation=x},d.prototype.unescapeEntities=function(u,g){return w(this.renderer.escapes,function(b,v){g&&g.indexOf(b)!==-1||(u=u.toString().replace(new RegExp(b,"g"),v))}),u},d}()}),B(st,"Core/Renderer/SVG/SVGRenderer.js",[st["Core/Renderer/HTML/AST.js"],st["Core/Color/Color.js"],st["Core/Globals.js"],st["Core/Renderer/RendererRegistry.js"],st["Core/Renderer/SVG/SVGElement.js"],st["Core/Renderer/SVG/SVGLabel.js"],st["Core/Renderer/SVG/Symbols.js"],st["Core/Renderer/SVG/TextBuilder.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D){var O,w=X.charts,T=X.deg2rad,d=X.doc,u=X.isFirefox,g=X.isMS,b=X.isWebKit,v=X.noop,S=X.SVG_NS,P=X.symbolSizes,E=X.win,M=D.addEvent,f=D.attr,x=D.createElement,l=D.css,h=D.defined,e=D.destroyObjectProperties,r=D.extend,n=D.isArray,i=D.isNumber,c=D.isObject,a=D.isString,s=D.merge,y=D.pick,A=D.pInt,_=D.uniqueKey;return X=function(){function p(C,k,F,G,I,j,N){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(C,k,F,G,I,j,N)}return p.prototype.init=function(C,k,F,G,I,j,N){var Z,$=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),Y=$.element;N||$.css(this.getStyle(G)),C.appendChild(Y),f(C,"dir","ltr"),C.innerHTML.indexOf("xmlns")===-1&&f(Y,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=Y,this.boxWrapper=$,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.3.3")),this.defs=this.createElement("defs").add(),this.allowHTML=j,this.forExport=I,this.styledMode=N,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(k,F,!1),u&&C.getBoundingClientRect&&((k=function(){l(C,{left:0,top:0}),Z=C.getBoundingClientRect(),l(C,{left:Math.ceil(Z.left)-Z.left+"px",top:Math.ceil(Z.top)-Z.top+"px"})})(),this.unSubPixelFix=M(E,"resize",k))},p.prototype.definition=function(C){return new U([C]).addToDOM(this.defs.element)},p.prototype.getReferenceURL=function(){if((u||b)&&d.getElementsByTagName("base").length){if(!h(O)){var C=_();C=new U([{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(d.body),l(C,{position:"fixed",top:0,left:0,zIndex:9e5});var k=d.elementFromPoint(6,6);O=(k&&k.id)==="hitme",d.body.removeChild(C)}if(O)return E.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},p.prototype.getStyle=function(C){return this.style=r({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},C)},p.prototype.setStyle=function(C){this.boxWrapper.css(this.getStyle(C))},p.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},p.prototype.destroy=function(){var C=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),e(this.gradients||{}),this.gradients=null,C&&(this.defs=C.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},p.prototype.createElement=function(C){var k=new this.Element;return k.init(this,C),k},p.prototype.getRadialAttr=function(C,k){return{cx:C[0]-C[2]/2+(k.cx||0)*C[2],cy:C[1]-C[2]/2+(k.cy||0)*C[2],r:(k.r||0)*C[2]}},p.prototype.buildText=function(C){new W(C).buildSVG()},p.prototype.getContrast=function(C){return 1.05/(.05+(C=.2126*(C=z.parse(C).rgba.map(function(k){return .03928>=(k/=255)?k/12.92:Math.pow((k+.055)/1.055,2.4)}))[0]+.7152*C[1]+.0722*C[2]))>(C+.05)/.05?"#FFFFFF":"#000000"},p.prototype.button=function(C,k,F,G,I,j,N,Z,$,Y){I===void 0&&(I={});var et=this.label(C,k,F,$,void 0,void 0,Y,void 0,"button"),rt=this.styledMode;C=I.states||{};var it=0;delete(I=s(I)).states;var ht=s({color:"#333333",cursor:"pointer",fontWeight:"normal"},I.style);delete I.style;var dt=U.filterUserAttributes(I);if(et.attr(s({padding:8,r:2},dt)),!rt){dt=s({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},dt);var bt=(j=s(dt,{fill:"#e6e6e6"},U.filterUserAttributes(j||C.hover||{}))).style;delete j.style;var xt=(N=s(dt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},U.filterUserAttributes(N||C.select||{}))).style;delete N.style;var St=(Z=s(dt,{style:{color:"#cccccc"}},U.filterUserAttributes(Z||C.disabled||{}))).style;delete Z.style}return M(et.element,g?"mouseover":"mouseenter",function(){it!==3&&et.setState(1)}),M(et.element,g?"mouseout":"mouseleave",function(){it!==3&&et.setState(it)}),et.setState=function(wt){wt!==1&&(et.state=it=wt),et.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][wt||0]),rt||(et.attr([dt,j,N,Z][wt||0]),c(wt=[ht,bt,xt,St][wt||0])&&et.css(wt))},rt||(et.attr(dt).css(r({cursor:"default"},ht)),Y&&et.text.css({pointerEvents:"none"})),et.on("touchstart",function(wt){return wt.stopPropagation()}).on("click",function(wt){it!==3&&G.call(et,wt)})},p.prototype.crispLine=function(C,k,F){F===void 0&&(F="round");var G=C[0],I=C[1];return h(G[1])&&G[1]===I[1]&&(G[1]=I[1]=Math[F](G[1])-k%2/2),h(G[2])&&G[2]===I[2]&&(G[2]=I[2]=Math[F](G[2])+k%2/2),C},p.prototype.path=function(C){var k=this.styledMode?{}:{fill:"none"};return n(C)?k.d=C:c(C)&&r(k,C),this.createElement("path").attr(k)},p.prototype.circle=function(C,k,F){return C=c(C)?C:C===void 0?{}:{x:C,y:k,r:F},(k=this.createElement("circle")).xSetter=k.ySetter=function(G,I,j){j.setAttribute("c"+I,G)},k.attr(C)},p.prototype.arc=function(C,k,F,G,I,j){return c(C)?(k=(G=C).y,F=G.r,C=G.x):G={innerR:G,start:I,end:j},(C=this.symbol("arc",C,k,F,F,G)).r=F,C},p.prototype.rect=function(C,k,F,G,I,j){I=c(C)?C.r:I;var N=this.createElement("rect");return C=c(C)?C:C===void 0?{}:{x:C,y:k,width:Math.max(F,0),height:Math.max(G,0)},this.styledMode||(j!==void 0&&(C["stroke-width"]=j,C=N.crisp(C)),C.fill="none"),I&&(C.r=I),N.rSetter=function(Z,$,Y){N.r=Z,f(Y,{rx:Z,ry:Z})},N.rGetter=function(){return N.r||0},N.attr(C)},p.prototype.setSize=function(C,k,F){this.width=C,this.height=k,this.boxWrapper.animate({width:C,height:k},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:y(F,!0)?void 0:0}),this.alignElements()},p.prototype.g=function(C){var k=this.createElement("g");return C?k.attr({class:"highcharts-"+C}):k},p.prototype.image=function(C,k,F,G,I,j){var N={preserveAspectRatio:"none"},Z=function(Y,et){Y.setAttributeNS?Y.setAttributeNS("http://www.w3.org/1999/xlink","href",et):Y.setAttribute("hc-svg-href",et)};i(k)&&(N.x=k),i(F)&&(N.y=F),i(G)&&(N.width=G),i(I)&&(N.height=I);var $=this.createElement("image").attr(N);return k=function(Y){Z($.element,C),j.call($,Y)},j?(Z($.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),F=new E.Image,M(F,"load",k),F.src=C,F.complete&&k({})):Z($.element,C),$},p.prototype.symbol=function(C,k,F,G,I,j){var N,Z=this,$=/^url\((.*?)\)$/,Y=$.test(C),et=!Y&&(this.symbols[C]?C:"circle"),rt=et&&this.symbols[et];if(rt){typeof k=="number"&&(N=rt.call(this.symbols,Math.round(k||0),Math.round(F||0),G||0,I||0,j));var it=this.path(N);Z.styledMode||it.attr("fill","none"),r(it,{symbolName:et||void 0,x:k,y:F,width:G,height:I}),j&&r(it,j)}else if(Y){var ht=C.match($)[1],dt=it=this.image(ht);dt.imgwidth=y(P[ht]&&P[ht].width,j&&j.width),dt.imgheight=y(P[ht]&&P[ht].height,j&&j.height);var bt=function(xt){return xt.attr({width:xt.width,height:xt.height})};["width","height"].forEach(function(xt){dt[xt+"Setter"]=function(St,wt){this[wt]=St,St=this.alignByTranslate;var mt=this.element,at=this.width,pt=this.height,vt=this.imgwidth,Ct=this.imgheight,Tt=this["img"+wt];if(h(Tt)){var At=1;j&&j.backgroundSize==="within"&&at&&pt?(At=Math.min(at/vt,pt/Ct),Tt=Math.round(Tt*At),f(mt,{width:Math.round(vt*At),height:Math.round(Ct*At)})):mt&&mt.setAttribute(wt,Tt),St||this.translate(((at||0)-Tt*At)/2,((pt||0)-Tt*At)/2)}}}),h(k)&&dt.attr({x:k,y:F}),dt.isImg=!0,h(dt.imgwidth)&&h(dt.imgheight)?bt(dt):(dt.attr({width:0,height:0}),x("img",{onload:function(){var xt=w[Z.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this)),P[ht]={width:this.width,height:this.height},dt.imgwidth=this.width,dt.imgheight=this.height,dt.element&&bt(dt),this.parentNode&&this.parentNode.removeChild(this),Z.imgCount--,Z.imgCount||!xt||xt.hasLoaded||xt.onload()},src:ht}),this.imgCount++)}return it},p.prototype.clipRect=function(C,k,F,G){var I=_()+"-",j=this.createElement("clipPath").attr({id:I}).add(this.defs);return(C=this.rect(C,k,F,G,0).add(j)).id=I,C.clipPath=j,C.count=0,C},p.prototype.text=function(C,k,F,G){var I={};return!G||!this.allowHTML&&this.forExport?(I.x=Math.round(k||0),F&&(I.y=Math.round(F)),h(C)&&(I.text=C),C=this.createElement("text").attr(I),(!G||this.forExport&&!this.allowHTML)&&(C.xSetter=function(j,N,Z){for(var $,Y=Z.getElementsByTagName("tspan"),et=Z.getAttribute(N),rt=0;rt<Y.length;rt++)($=Y[rt]).getAttribute(N)===et&&$.setAttribute(N,j);Z.setAttribute(N,j)}),C):this.html(C,k,F)},p.prototype.fontMetrics=function(C,k){return C=!this.styledMode&&/px/.test(C)||!E.getComputedStyle?C||k&&k.style&&k.style.fontSize||this.style&&this.style.fontSize:k&&K.prototype.getStyle.call(k,"font-size"),{h:k=24>(C=/px/.test(C)?A(C):12)?C+3:Math.round(1.2*C),b:Math.round(.8*k),f:C}},p.prototype.rotCorr=function(C,k,F){var G=C;return k&&F&&(G=Math.max(G*Math.cos(k*T),4)),{x:-C/3*Math.sin(k*T),y:G}},p.prototype.pathToSegments=function(C){for(var k=[],F=[],G={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},I=0;I<C.length;I++)a(F[0])&&i(C[I])&&F.length===G[F[0].toUpperCase()]&&C.splice(I,0,F[0].replace("M","L").replace("m","l")),typeof C[I]=="string"&&(F.length&&k.push(F.slice(0)),F.length=0),F.push(C[I]);return k.push(F.slice(0)),k},p.prototype.label=function(C,k,F,G,I,j,N,Z,$){return new J(this,C,k,F,G,I,j,N,Z,$)},p.prototype.alignElements=function(){this.alignedObjects.forEach(function(C){return C.align()})},p}(),r(X.prototype,{Element:K,SVG_NS:S,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:q,draw:v}),V.registerRendererType("svg",X,!0),X}),B(st,"Core/Renderer/HTML/HTMLElement.js",[st["Core/Globals.js"],st["Core/Renderer/SVG/SVGElement.js"],st["Core/Utilities.js"]],function(U,z,X){var V=this&&this.__extends||function(){var u=function(g,b){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var P in S)S.hasOwnProperty(P)&&(v[P]=S[P])},u(g,b)};return function(g,b){function v(){this.constructor=g}u(g,b),g.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}}(),K=U.isFirefox,J=U.isMS,q=U.isWebKit,W=U.win,D=X.css,O=X.defined,w=X.extend,T=X.pick,d=X.pInt;return function(u){function g(){return u!==null&&u.apply(this,arguments)||this}return V(g,u),g.compose=function(b){if(g.composedClasses.indexOf(b)===-1){g.composedClasses.push(b);var v=g.prototype,S=b.prototype;S.getSpanCorrection=v.getSpanCorrection,S.htmlCss=v.htmlCss,S.htmlGetBBox=v.htmlGetBBox,S.htmlUpdateTransform=v.htmlUpdateTransform,S.setSpanRotation=v.setSpanRotation}return b},g.prototype.getSpanCorrection=function(b,v,S){this.xCorr=-b*S,this.yCorr=-v},g.prototype.htmlCss=function(b){var v=this.element.tagName==="SPAN"&&b&&"width"in b,S=T(v&&b.width,void 0);if(v){delete b.width,this.textWidth=S;var P=!0}return b&&b.textOverflow==="ellipsis"&&(b.whiteSpace="nowrap",b.overflow="hidden"),this.styles=w(this.styles,b),D(this.element,b),P&&this.htmlUpdateTransform(),this},g.prototype.htmlGetBBox=function(){var b=this.element;return{x:b.offsetLeft,y:b.offsetTop,width:b.offsetWidth,height:b.offsetHeight}},g.prototype.htmlUpdateTransform=function(){if(this.added){var b=this.renderer,v=this.element,S=this.translateX||0,P=this.translateY||0,E=this.x||0,M=this.y||0,f=this.textAlign||"left",x={left:0,center:.5,right:1}[f],l=this.styles;if(l=l&&l.whiteSpace,D(v,{marginLeft:S,marginTop:P}),!b.styledMode&&this.shadows&&this.shadows.forEach(function(c){D(c,{marginLeft:S+1,marginTop:P+1})}),this.inverted&&[].forEach.call(v.childNodes,function(c){b.invertChild(c,v)}),v.tagName==="SPAN"){var h=this.rotation,e=this.textWidth&&d(this.textWidth),r=[h,f,v.innerHTML,this.textWidth,this.textAlign].join(),n=void 0;if(n=!1,e!==this.oldTextWidth){if(this.textPxLength)var i=this.textPxLength;else D(v,{width:"",whiteSpace:l||"nowrap"}),i=v.offsetWidth;(e>this.oldTextWidth||i>e)&&(/[ \-]/.test(v.textContent||v.innerText)||v.style.textOverflow==="ellipsis")&&(D(v,{width:i>e||h?e+"px":"auto",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=e,n=!0)}this.hasBoxWidthChanged=n,r!==this.cTT&&(n=b.fontMetrics(v.style.fontSize,v).b,!O(h)||h===(this.oldRotation||0)&&f===this.oldAlign||this.setSpanRotation(h,x,n),this.getSpanCorrection(!O(h)&&this.textPxLength||v.offsetWidth,n,x,h,f)),D(v,{left:E+(this.xCorr||0)+"px",top:M+(this.yCorr||0)+"px"}),this.cTT=r,this.oldRotation=h,this.oldAlign=f}}else this.alignOnAdd=!0},g.prototype.setSpanRotation=function(b,v,S){var P={},E=J&&!/Edge/.test(W.navigator.userAgent)?"-ms-transform":q?"-webkit-transform":K?"MozTransform":W.opera?"-o-transform":void 0;E&&(P[E]=P.transform="rotate("+b+"deg)",P[E+(K?"Origin":"-origin")]=P.transformOrigin=100*v+"% "+S+"px",D(this.element,P))},g.composedClasses=[],g}(z)}),B(st,"Core/Renderer/HTML/HTMLRenderer.js",[st["Core/Renderer/HTML/AST.js"],st["Core/Renderer/SVG/SVGElement.js"],st["Core/Renderer/SVG/SVGRenderer.js"],st["Core/Utilities.js"]],function(U,z,X,V){var K=this&&this.__extends||function(){var O=function(w,T){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},O(w,T)};return function(w,T){function d(){this.constructor=w}O(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}}(),J=V.attr,q=V.createElement,W=V.extend,D=V.pick;return function(O){function w(){return O!==null&&O.apply(this,arguments)||this}return K(w,O),w.compose=function(T){return w.composedClasses.indexOf(T)===-1&&(w.composedClasses.push(T),T.prototype.html=w.prototype.html),T},w.prototype.html=function(T,d,u){var g=this.createElement("span"),b=g.element,v=g.renderer,S=v.isSVG,P=function(E,M){["opacity","visibility"].forEach(function(f){E[f+"Setter"]=function(x,l,h){var e=E.div?E.div.style:M;z.prototype[f+"Setter"].call(this,x,l,h),e&&(e[l]=x)}}),E.addedSetters=!0};return g.textSetter=function(E){E!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,U.setElementHTML(this.element,D(E,"")),this.textStr=E,g.doTransform=!0)},S&&P(g,g.element.style),g.xSetter=g.ySetter=g.alignSetter=g.rotationSetter=function(E,M){M==="align"?g.alignValue=g.textAlign=E:g[M]=E,g.doTransform=!0},g.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},g.attr({text:T,x:Math.round(d),y:Math.round(u)}).css({position:"absolute"}),v.styledMode||g.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),b.style.whiteSpace="nowrap",g.css=g.htmlCss,S&&(g.add=function(E){var M=v.box.parentNode,f=[];if(this.parentGroup=E){var x=E.div;if(!x){for(;E;)f.push(E),E=E.parentGroup;f.reverse().forEach(function(l){function h(i,c){l[c]=i,c==="translateX"?n.left=i+"px":n.top=i+"px",l.doTransform=!0}var e=J(l.element,"class"),r=l.styles||{},n=(x=l.div=l.div||q("div",e?{className:e}:void 0,{position:"absolute",left:(l.translateX||0)+"px",top:(l.translateY||0)+"px",display:l.display,opacity:l.opacity,cursor:r.cursor,pointerEvents:r.pointerEvents,visibility:l.visibility},x||M)).style;W(l,{classSetter:function(i){return function(c){this.element.setAttribute("class",c),i.className=c}}(x),on:function(){return f[0].div&&g.on.apply({element:f[0].div,onEvents:l.onEvents},arguments),l},translateXSetter:h,translateYSetter:h}),l.addedSetters||P(l)})}}else x=M;return x.appendChild(b),g.added=!0,g.alignOnAdd&&g.htmlUpdateTransform(),g}),g},w.composedClasses=[],w}(X)}),B(st,"Core/Axis/AxisDefaults.js",[],function(){var U;return function(z){z.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"},z.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},z.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},z.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},z.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},z.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(U||(U={})),U}),B(st,"Core/Foundation.js",[st["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.isFunction,K=U.objectEach,J=U.removeEvent;return function(q){q.registerEventOptions=function(W,D){W.eventOptions=W.eventOptions||{},K(D.events,function(O,w){W.eventOptions[w]!==O&&(W.eventOptions[w]&&(J(W,w,W.eventOptions[w]),delete W.eventOptions[w]),V(O)&&(W.eventOptions[w]=O,X(W,w,O)))})}}(z||(z={})),z}),B(st,"Core/Axis/Tick.js",[st["Core/FormatUtilities.js"],st["Core/Globals.js"],st["Core/Utilities.js"]],function(U,z,X){var V=z.deg2rad,K=X.clamp,J=X.correctFloat,q=X.defined,W=X.destroyObjectProperties,D=X.extend,O=X.fireEvent,w=X.isNumber,T=X.merge,d=X.objectEach,u=X.pick;return z=function(){function g(b,v,S,P,E){this.isNewLabel=this.isNew=!0,this.axis=b,this.pos=v,this.type=S||"",this.parameters=E||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,O(this,"init"),S||P||this.addLabel()}return g.prototype.addLabel=function(){var b=this,v=b.axis,S=v.options,P=v.chart,E=v.categories,M=v.logarithmic,f=v.names,x=b.pos,l=u(b.options&&b.options.labels,S.labels),h=v.tickPositions,e=x===h[0],r=x===h[h.length-1],n=(!l.step||l.step===1)&&v.tickInterval===1;h=h.info;var i,c=b.label;if(E=this.parameters.category||(E?u(E[x],f[x],x):x),M&&w(E)&&(E=J(M.lin2log(E))),v.dateTime)if(h)var a=P.time.resolveDTLFormat(S.dateTimeLabelFormats[!S.grid&&h.higherRanks[x]||h.unitName]),s=a.main;else w(E)&&(s=v.dateTime.getXDateFormat(E,S.dateTimeLabelFormats||{}));b.isFirst=e,b.isLast=r;var y={axis:v,chart:P,dateTimeLabelFormat:s,isFirst:e,isLast:r,pos:x,tick:b,tickPositionInfo:h,value:E};O(this,"labelFormat",y);var A=function(p){return l.formatter?l.formatter.call(p,p):l.format?(p.text=v.defaultLabelFormatter.call(p,p),U.format(l.format,p,P)):v.defaultLabelFormatter.call(p,p)};S=A.call(y,y);var _=a&&a.list;b.shortenLabel=_?function(){for(i=0;i<_.length;i++)if(D(y,{dateTimeLabelFormat:_[i]}),c.attr({text:A.call(y,y)}),c.getBBox().width<v.getSlotWidth(b)-2*l.padding)return;c.attr({text:""})}:void 0,n&&v._addedPlotLB&&b.moveLabel(S,l),q(c)||b.movedLabel?c&&c.textStr!==S&&!n&&(!c.textWidth||l.style.width||c.styles.width||c.css({width:null}),c.attr({text:S}),c.textPxLength=c.getBBox().width):(b.label=c=b.createLabel({x:0,y:0},S,l),b.rotation=0)},g.prototype.createLabel=function(b,v,S){var P=this.axis,E=P.chart;return(b=q(v)&&S.enabled?E.renderer.text(v,b.x,b.y,S.useHTML).add(P.labelGroup):null)&&(E.styledMode||b.css(T(S.style)),b.textPxLength=b.getBBox().width),b},g.prototype.destroy=function(){W(this,this.axis)},g.prototype.getPosition=function(b,v,S,P){var E=this.axis,M=E.chart,f=P&&M.oldChartHeight||M.chartHeight;return(b={x:b?J(E.translate(v+S,void 0,void 0,P)+E.transB):E.left+E.offset+(E.opposite?(P&&M.oldChartWidth||M.chartWidth)-E.right-E.left:0),y:b?f-E.bottom+E.offset-(E.opposite?E.height:0):J(f-E.translate(v+S,void 0,void 0,P)-E.transB)}).y=K(b.y,-1e5,1e5),O(this,"afterGetPosition",{pos:b}),b},g.prototype.getLabelPosition=function(b,v,S,P,E,M,f,x){var l=this.axis,h=l.transA,e=l.isLinked&&l.linkedParent?l.linkedParent.reversed:l.reversed,r=l.staggerLines,n=l.tickRotCorr||{x:0,y:0},i=P||l.reserveSpaceDefault?0:-l.labelOffset*(l.labelAlign==="center"?.5:1),c={};return S=l.side===0?S.rotation?-8:-S.getBBox().height:l.side===2?n.y+8:Math.cos(S.rotation*V)*(n.y-S.getBBox(!1,0).height/2),q(E.y)&&(S=l.side===0&&l.horiz?E.y+S:E.y),b=b+E.x+i+n.x-(M&&P?M*h*(e?-1:1):0),v=v+S-(M&&!P?M*h*(e?1:-1):0),r&&(P=f/(x||1)%r,l.opposite&&(P=r-P-1),v+=l.labelOffset/r*P),c.x=b,c.y=Math.round(v),O(this,"afterGetLabelPosition",{pos:c,tickmarkOffset:M,index:f}),c},g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},g.prototype.getMarkPath=function(b,v,S,P,E,M){return M.crispLine([["M",b,v],["L",b+(E?0:-S),v+(E?S:0)]],P)},g.prototype.handleOverflow=function(b){var v=this.axis,S=v.options.labels,P=b.x,E=v.chart.chartWidth,M=v.chart.spacing,f=u(v.labelLeft,Math.min(v.pos,M[3]));M=u(v.labelRight,Math.max(v.isRadial?0:v.pos+v.len,E-M[1]));var x,l=this.label,h=this.rotation,e={left:0,center:.5,right:1}[v.labelAlign||l.attr("align")],r=l.getBBox().width,n=v.getSlotWidth(this),i={},c=n,a=1;h||S.overflow!=="justify"?0>h&&P-e*r<f?x=Math.round(P/Math.cos(h*V)-f):0<h&&P+e*r>M&&(x=Math.round((E-P)/Math.cos(h*V))):(E=P+(1-e)*r,P-e*r<f?c=b.x+c*(1-e)-f:E>M&&(c=M-b.x+c*e,a=-1),(c=Math.min(n,c))<n&&v.labelAlign==="center"&&(b.x+=a*(n-c-e*(n-Math.min(r,c)))),(r>c||v.autoRotation&&(l.styles||{}).width)&&(x=c)),x&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(x)+"px",(S.style||{}).textOverflow||(i.textOverflow="ellipsis"),l.css(i)))},g.prototype.moveLabel=function(b,v){var S=this,P=S.label,E=S.axis,M=E.reversed,f=!1;if(P&&P.textStr===b?(S.movedLabel=P,f=!0,delete S.label):d(E.ticks,function(l){f||l.isNew||l===S||!l.label||l.label.textStr!==b||(S.movedLabel=l.label,f=!0,l.labelPos=S.movedLabel.xy,delete l.label)}),!f&&(S.labelPos||P)){var x=S.labelPos||P.xy;P=E.horiz?M?0:E.width+E.left:x.x,E=E.horiz?x.y:M?E.width+E.left:0,S.movedLabel=S.createLabel({x:P,y:E},b,v),S.movedLabel&&S.movedLabel.attr({opacity:0})}},g.prototype.render=function(b,v,S){var P=this.axis,E=P.horiz,M=this.pos,f=u(this.tickmarkOffset,P.tickmarkOffset);f=(M=this.getPosition(E,M,f,v)).x;var x=M.y;P=E&&f===P.pos+P.len||!E&&x===P.pos?-1:1,E=u(S,this.label&&this.label.newOpacity,1),S=u(S,1),this.isActive=!0,this.renderGridLine(v,S,P),this.renderMark(M,S,P),this.renderLabel(M,v,E,b),this.isNew=!1,O(this,"afterRender")},g.prototype.renderGridLine=function(b,v,S){var P=this.axis,E=P.options,M={},f=this.pos,x=this.type,l=u(this.tickmarkOffset,P.tickmarkOffset),h=P.chart.renderer,e=this.gridLine,r=E.gridLineWidth,n=E.gridLineColor,i=E.gridLineDashStyle;this.type==="minor"&&(r=E.minorGridLineWidth,n=E.minorGridLineColor,i=E.minorGridLineDashStyle),e||(P.chart.styledMode||(M.stroke=n,M["stroke-width"]=r||0,M.dashstyle=i),x||(M.zIndex=1),b&&(v=0),this.gridLine=e=h.path().attr(M).addClass("highcharts-"+(x?x+"-":"")+"grid-line").add(P.gridGroup)),e&&(S=P.getPlotLinePath({value:f+l,lineWidth:e.strokeWidth()*S,force:"pass",old:b,acrossPanes:!1}))&&e[b||this.isNew?"attr":"animate"]({d:S,opacity:v})},g.prototype.renderMark=function(b,v,S){var P=this.axis,E=P.options,M=P.chart.renderer,f=this.type,x=P.tickSize(f?f+"Tick":"tick"),l=b.x;b=b.y;var h=u(E[f!=="minor"?"tickWidth":"minorTickWidth"],!f&&P.isXAxis?1:0);E=E[f!=="minor"?"tickColor":"minorTickColor"];var e=this.mark,r=!e;x&&(P.opposite&&(x[0]=-x[0]),e||(this.mark=e=M.path().addClass("highcharts-"+(f?f+"-":"")+"tick").add(P.axisGroup),P.chart.styledMode||e.attr({stroke:E,"stroke-width":h})),e[r?"attr":"animate"]({d:this.getMarkPath(l,b,x[0],e.strokeWidth()*S,P.horiz,M),opacity:v}))},g.prototype.renderLabel=function(b,v,S,P){var E=this.axis,M=E.horiz,f=E.options,x=this.label,l=f.labels,h=l.step;E=u(this.tickmarkOffset,E.tickmarkOffset);var e=b.x;b=b.y;var r=!0;x&&w(e)&&(x.xy=b=this.getLabelPosition(e,b,x,M,l,E,P,h),this.isFirst&&!this.isLast&&!f.showFirstLabel||this.isLast&&!this.isFirst&&!f.showLastLabel?r=!1:!M||l.step||l.rotation||v||S===0||this.handleOverflow(b),h&&P%h&&(r=!1),r&&w(b.y)?(b.opacity=S,x[this.isNewLabel?"attr":"animate"](b).show(!0),this.isNewLabel=!1):(x.hide(),this.isNewLabel=!0))},g.prototype.replaceMovedLabel=function(){var b=this.label,v=this.axis,S=v.reversed;if(b&&!this.isNew){var P=v.horiz?S?v.left:v.width+v.left:b.xy.x;S=v.horiz?b.xy.y:S?v.width+v.top:v.top,b.animate({x:P,y:S,opacity:0},void 0,b.destroy),delete this.label}v.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},g}(),z}),B(st,"Core/Axis/Axis.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Axis/AxisDefaults.js"],st["Core/Color/Color.js"],st["Core/Defaults.js"],st["Core/Foundation.js"],st["Core/Globals.js"],st["Core/Axis/Tick.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W){var D=U.animObject,O=V.defaultOptions,w=K.registerEventOptions,T=J.deg2rad,d=W.arrayMax,u=W.arrayMin,g=W.clamp,b=W.correctFloat,v=W.defined,S=W.destroyObjectProperties,P=W.erase,E=W.error,M=W.extend,f=W.fireEvent,x=W.isArray,l=W.isNumber,h=W.isString,e=W.merge,r=W.normalizeTickInterval,n=W.objectEach,i=W.pick,c=W.relativeLength,a=W.removeEvent,s=W.splat,y=W.syncTimeout,A=function(_,p){return r(p,void 0,void 0,i(_.options.allowDecimals,.5>p||_.tickAmount!==void 0),!!_.tickAmount)};return U=function(){function _(p,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(p,C)}return _.prototype.init=function(p,C){var k=C.isX;this.chart=p,this.horiz=p.inverted&&!this.isZAxis?!k:k,this.isXAxis=k,this.coll=this.coll||(k?"xAxis":"yAxis"),f(this,"init",{userOptions:C}),this.opposite=i(C.opposite,this.opposite),this.side=i(C.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(C);var F=this.options,G=F.labels,I=F.type;this.userOptions=C,this.minPixelPadding=0,this.reversed=i(F.reversed,this.reversed),this.visible=F.visible,this.zoomEnabled=F.zoomEnabled,this.hasNames=I==="category"||F.categories===!0,this.categories=F.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(F.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=F.minRange||F.maxZoom,this.range=F.range,this.offset=F.offset||0,this.min=this.max=null,C=i(F.crosshair,s(p.options.tooltip.crosshairs)[k?0:1]),this.crosshair=C===!0?{}:C,p.axes.indexOf(this)===-1&&(k?p.axes.splice(p.xAxis.length,0,this):p.axes.push(this),p[this.coll].push(this)),this.series=this.series||[],p.inverted&&!this.isZAxis&&k&&this.reversed===void 0&&(this.reversed=!0),this.labelRotation=l(G.rotation)?G.rotation:void 0,w(this,F),f(this,"afterInit")},_.prototype.setOptions=function(p){this.options=e(z.defaultXAxisOptions,this.coll==="yAxis"&&z.defaultYAxisOptions,[z.defaultTopAxisOptions,z.defaultRightAxisOptions,z.defaultBottomAxisOptions,z.defaultLeftAxisOptions][this.side],e(O[this.coll],p)),f(this,"afterSetOptions",{userOptions:p})},_.prototype.defaultLabelFormatter=function(p){var C=this.axis;p=this.chart.numberFormatter;var k=l(this.value)?this.value:NaN,F=C.chart.time,G=this.dateTimeLabelFormat,I=O.lang,j=I.numericSymbols;I=I.numericSymbolMagnitude||1e3;var N=C.logarithmic?Math.abs(k):C.tickInterval,Z=j&&j.length;if(C.categories)var $="".concat(this.value);else if(G)$=F.dateFormat(G,k);else if(Z&&1e3<=N)for(;Z--&&$===void 0;)N>=(C=Math.pow(I,Z+1))&&10*k%C==0&&j[Z]!==null&&k!==0&&($=p(k/C,-1)+j[Z]);return $===void 0&&($=1e4<=Math.abs(k)?p(k,-1):p(k,-1,void 0,"")),$},_.prototype.getSeriesExtremes=function(){var p,C=this,k=C.chart;f(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(F){if(F.visible||!k.options.chart.ignoreHiddenSeries){var G=F.options,I=G.threshold;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&0>=I&&(I=null),C.isXAxis){if((G=F.xData).length){G=C.logarithmic?G.filter(C.validatePositiveValue):G;var j=(p=F.getXExtremes(G)).min,N=p.max;l(j)||j instanceof Date||(G=G.filter(l),j=(p=F.getXExtremes(G)).min,N=p.max),G.length&&(C.dataMin=Math.min(i(C.dataMin,j),j),C.dataMax=Math.max(i(C.dataMax,N),N))}}else F=F.applyExtremes(),l(F.dataMin)&&(j=F.dataMin,C.dataMin=Math.min(i(C.dataMin,j),j)),l(F.dataMax)&&(N=F.dataMax,C.dataMax=Math.max(i(C.dataMax,N),N)),v(I)&&(C.threshold=I),(!G.softThreshold||C.positiveValuesOnly)&&(C.softThreshold=!1)}})}),f(this,"afterGetSeriesExtremes")},_.prototype.translate=function(p,C,k,F,G,I){var j=this.linkedParent||this,N=F&&j.old?j.old.min:j.min;if(!l(N))return NaN;var Z=j.minPixelPadding;G=(j.isOrdinal||j.brokenAxis&&j.brokenAxis.hasBreaks||j.logarithmic&&G)&&j.lin2val;var $=1,Y=0;return(F=F&&j.old?j.old.transA:j.transA)||(F=j.transA),k&&($*=-1,Y=j.len),j.reversed&&(Y-=($*=-1)*(j.sector||j.len)),C?(I=(p*$+Y-Z)/F+N,G&&(I=j.lin2val(I))):(G&&(p=j.val2lin(p)),p=$*(p-N)*F,I=(j.isRadial?p:b(p))+Y+$*Z+(l(I)?F*I:0)),I},_.prototype.toPixels=function(p,C){return this.translate(p,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},_.prototype.toValue=function(p,C){return this.translate(p-(C?0:this.pos),!0,!this.horiz,void 0,!0)},_.prototype.getPlotLinePath=function(p){function C(wt,mt,at){return St!=="pass"&&(wt<mt||wt>at)&&(St?wt=g(wt,mt,at):j=!0),wt}var k,F,G,I,j,N=this,Z=N.chart,$=N.left,Y=N.top,et=p.old,rt=p.value,it=p.lineWidth,ht=et&&Z.oldChartHeight||Z.chartHeight,dt=et&&Z.oldChartWidth||Z.chartWidth,bt=N.transB,xt=p.translatedValue,St=p.force;return p={value:rt,lineWidth:it,old:et,force:St,acrossPanes:p.acrossPanes,translatedValue:xt},f(this,"getPlotLinePath",p,function(wt){xt=i(xt,N.translate(rt,void 0,void 0,et)),xt=g(xt,-1e5,1e5),k=G=Math.round(xt+bt),F=I=Math.round(ht-xt-bt),l(xt)?N.horiz?(F=Y,I=ht-N.bottom,k=G=C(k,$,$+N.width)):(k=$,G=dt-N.right,F=I=C(F,Y,Y+N.height)):(j=!0,St=!1),wt.path=j&&!St?null:Z.renderer.crispLine([["M",k,F],["L",G,I]],it||1)}),p.path},_.prototype.getLinearTickPositions=function(p,C,k){var F=b(Math.floor(C/p)*p);k=b(Math.ceil(k/p)*p);var G,I=[];if(b(F+p)===F&&(G=20),this.single)return[C];for(C=F;C<=k&&(I.push(C),(C=b(C+p,G))!==j);)var j=C;return I},_.prototype.getMinorTickInterval=function(){var p=this.options;return p.minorTicks===!0?i(p.minorTickInterval,"auto"):p.minorTicks===!1?null:p.minorTickInterval},_.prototype.getMinorTickPositions=function(){var p=this.options,C=this.tickPositions,k=this.minorTickInterval,F=this.pointRangePadding||0,G=this.min-F,I=(F=this.max+F)-G,j=[];if(I&&I/k<this.len/3){var N=this.logarithmic;if(N)this.paddedTicks.forEach(function(Z,$,Y){$&&j.push.apply(j,N.getLogTickPositions(k,Y[$-1],Y[$],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")j=j.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(k),G,F,p.startOfWeek));else for(p=G+(C[0]-G)%k;p<=F&&p!==j[0];p+=k)j.push(p)}return j.length!==0&&this.trimTicks(j),j},_.prototype.adjustForMinRange=function(){var p,C,k,F,G=this.options,I=this.logarithmic,j=this.min,N=this.max,Z=0;if(this.isXAxis&&this.minRange===void 0&&!I&&(v(G.min)||v(G.max)||v(G.floor)||v(G.ceiling)?this.minRange=null:(this.series.forEach(function(rt){if(k=rt.xData,F=rt.xIncrement?1:k.length-1,1<k.length)for(p=F;0<p;p--)C=k[p]-k[p-1],(!Z||C<Z)&&(Z=C)}),this.minRange=Math.min(5*Z,this.dataMax-this.dataMin))),N-j<this.minRange){var $=this.dataMax-this.dataMin>=this.minRange,Y=this.minRange,et=(Y-N+j)/2;et=[j-et,i(G.min,j-et)],$&&(et[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),N=[(j=d(et))+Y,i(G.max,j+Y)],$&&(N[2]=I?I.log2lin(this.dataMax):this.dataMax),(N=u(N))-j<Y&&(et[0]=N-Y,et[1]=i(G.min,N-Y),j=d(et))}this.min=j,this.max=N},_.prototype.getClosest=function(){var p;return this.categories?p=1:this.series.forEach(function(C){var k=C.closestPointRange,F=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&v(k)&&F&&(p=v(p)?Math.min(p,k):k)}),p},_.prototype.nameToX=function(p){var C=x(this.options.categories),k=C?this.categories:this.names,F=p.options.x;if(p.series.requireSorting=!1,v(F)||(F=this.options.uniqueNames&&k?C?k.indexOf(p.name):i(k.keys[p.name],-1):p.series.autoIncrement()),F===-1){if(!C&&k)var G=k.length}else G=F;return G!==void 0?(this.names[G]=p.name,this.names.keys[p.name]=G):p.x&&(G=p.x),G},_.prototype.updateNames=function(){var p=this,C=this.names;0<C.length&&(Object.keys(C.keys).forEach(function(k){delete C.keys[k]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(k){k.xIncrement=null,k.points&&!k.isDirtyData||(p.max=Math.max(p.max,k.xData.length-1),k.processData(),k.generatePoints()),k.data.forEach(function(F,G){if(F&&F.options&&F.name!==void 0){var I=p.nameToX(F);I!==void 0&&I!==F.x&&(F.x=I,k.xData[G]=I)}})}))},_.prototype.setAxisTranslation=function(){var p=this,C=p.max-p.min,k=p.linkedParent,F=!!p.categories,G=p.isXAxis,I=p.axisPointRange||0,j=0,N=0,Z=p.transA;if(G||F||I){var $=p.getClosest();k?(j=k.minPointOffset,N=k.pointRangePadding):p.series.forEach(function(Y){var et=F?1:G?i(Y.options.pointRange,$,0):p.axisPointRange||0,rt=Y.options.pointPlacement;I=Math.max(I,et),p.single&&!F||(Y=Y.is("xrange")?!G:G,j=Math.max(j,Y&&h(rt)?0:et/2),N=Math.max(N,Y&&rt==="on"?0:et))}),k=p.ordinal&&p.ordinal.slope&&$?p.ordinal.slope/$:1,p.minPointOffset=j*=k,p.pointRangePadding=N*=k,p.pointRange=Math.min(I,p.single&&F?1:C),G&&(p.closestPointRange=$)}p.translationSlope=p.transA=Z=p.staticScale||p.len/(C+N||1),p.transB=p.horiz?p.left:p.bottom,p.minPixelPadding=Z*j,f(this,"afterSetAxisTranslation")},_.prototype.minFromRange=function(){return this.max-this.range},_.prototype.setTickInterval=function(p){var C=this.chart,k=this.logarithmic,F=this.options,G=this.isXAxis,I=this.isLinked,j=F.tickPixelInterval,N=this.categories,Z=this.softThreshold,$=F.maxPadding,Y=F.minPadding,et=l(F.tickInterval)&&0<=F.tickInterval?F.tickInterval:void 0,rt=l(this.threshold)?this.threshold:null;this.dateTime||N||I||this.getTickAmount();var it=i(this.userMin,F.min),ht=i(this.userMax,F.max);if(I){this.linkedParent=C[this.coll][F.linkedTo];var dt=this.linkedParent.getExtremes();this.min=i(dt.min,dt.dataMin),this.max=i(dt.max,dt.dataMax),F.type!==this.linkedParent.options.type&&E(11,1,C)}else{if(Z&&v(rt)){if(this.dataMin>=rt)dt=rt,Y=0;else if(this.dataMax<=rt){var bt=rt;$=0}}this.min=i(it,dt,this.dataMin),this.max=i(ht,bt,this.dataMax)}if(k&&(this.positiveValuesOnly&&!p&&0>=Math.min(this.min,i(this.dataMin,this.min))&&E(10,1,C),this.min=b(k.log2lin(this.min),16),this.max=b(k.log2lin(this.max),16)),this.range&&v(this.max)&&(this.userMin=this.min=it=Math.max(this.dataMin,this.minFromRange()),this.userMax=ht=this.max,this.range=null),f(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!(N||this.axisPointRange||this.stacking&&this.stacking.usePercentage||I)&&v(this.min)&&v(this.max)&&(C=this.max-this.min)&&(!v(it)&&Y&&(this.min-=C*Y),!v(ht)&&$&&(this.max+=C*$)),l(this.userMin)||(l(F.softMin)&&F.softMin<this.min&&(this.min=it=F.softMin),l(F.floor)&&(this.min=Math.max(this.min,F.floor))),l(this.userMax)||(l(F.softMax)&&F.softMax>this.max&&(this.max=ht=F.softMax),l(F.ceiling)&&(this.max=Math.min(this.max,F.ceiling))),Z&&v(this.dataMin)&&(rt=rt||0,!v(it)&&this.min<rt&&this.dataMin>=rt?this.min=this.options.minRange?Math.min(rt,this.max-this.minRange):rt:!v(ht)&&this.max>rt&&this.dataMax<=rt&&(this.max=this.options.minRange?Math.max(rt,this.min+this.minRange):rt)),l(this.min)&&l(this.max)&&!this.chart.polar&&this.min>this.max&&(v(this.options.min)?this.max=this.min:v(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||this.min===void 0||this.max===void 0?1:I&&this.linkedParent&&!et&&j===this.linkedParent.options.tickPixelInterval?et=this.linkedParent.tickInterval:i(et,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,N?1:(this.max-this.min)*j/Math.max(this.len,j)),G&&!p){var xt=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(St){St.forceCrop=St.forceCropping&&St.forceCropping(),St.processData(xt)}),f(this,"postProcessData",{hasExtremesChanged:xt})}this.setAxisTranslation(),f(this,"initialAxisTranslation"),this.pointRange&&!et&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),p=i(F.minTickInterval,this.dateTime&&!this.series.some(function(St){return St.noSharedTooltip})?this.closestPointRange:0),!et&&this.tickInterval<p&&(this.tickInterval=p),this.dateTime||this.logarithmic||et||(this.tickInterval=A(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()},_.prototype.setTickPositions=function(){var p,C=this.options,k=C.tickPositions,F=C.tickPositioner,G=this.getMinorTickInterval(),I=this.hasVerticalPanning(),j=this.coll==="colorAxis",N=(j||!I)&&C.startOnTick;if(I=(j||!I)&&C.endOnTick,j=[],this.tickmarkOffset=this.categories&&C.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=G==="auto"&&this.tickInterval?this.tickInterval/5:G,this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||C.allowDecimals!==!1),k)j=k.slice();else if(l(this.min)&&l(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)j=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)j=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(G=C=this.tickInterval;G<=2*C&&(j=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&j.length>this.tickAmount);)this.tickInterval=A(this,G*=1.1);else j=[this.min,this.max],E(19,!1,this.chart);j.length>this.len&&(j=[j[0],j[j.length-1]])[0]===j[1]&&(j.length=1),F&&(this.tickPositions=j,(p=F.apply(this,[this.min,this.max]))&&(j=p))}this.tickPositions=j,this.paddedTicks=j.slice(0),this.trimTicks(j,N,I),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&&2>j.length&&!this.categories&&!this.series.some(function(Z){return Z.is("heatmap")&&Z.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),k||p||this.adjustTickAmount()),f(this,"afterSetTickPositions")},_.prototype.trimTicks=function(p,C,k){var F=p[0],G=p[p.length-1],I=!this.isOrdinal&&this.minPointOffset||0;if(f(this,"trimTicks"),!this.isLinked){if(C&&F!==-1/0)this.min=F;else for(;this.min-I>p[0];)p.shift();if(k)this.max=G;else for(;this.max+I<p[p.length-1];)p.pop();p.length===0&&v(F)&&!this.options.tickPositions&&p.push((G+F)/2)}},_.prototype.alignToOthers=function(){var p,C=this,k=[this],F=C.options,G=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,I=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&F.alignTicks||G)&&F.startOnTick!==!1&&F.endOnTick!==!1&&!C.logarithmic){var j=function($){var Y=$.options;return[$.horiz?Y.left:Y.top,Y.width,Y.height,Y.pane].join()},N=j(this);this.chart[this.coll].forEach(function($){var Y=$.series;Y.length&&Y.some(function(et){return et.visible})&&$!==C&&j($)===N&&(p=!0,k.push($))})}if(p&&G){k.forEach(function($){$=$.getThresholdAlignment(C),l($)&&I.push($)});var Z=1<I.length?I.reduce(function($,Y){return $+Y},0)/I.length:void 0;k.forEach(function($){$.thresholdAlignment=Z})}return p},_.prototype.getThresholdAlignment=function(p){if((!l(this.dataMin)||this!==p&&this.series.some(function(C){return C.isDirty||C.isDirtyData}))&&this.getSeriesExtremes(),l(this.threshold))return p=g((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(p=1-p),p},_.prototype.getTickAmount=function(){var p=this.options,C=p.tickPixelInterval,k=p.tickAmount;!v(p.tickInterval)&&!k&&this.len<C&&!this.isRadial&&!this.logarithmic&&p.startOnTick&&p.endOnTick&&(k=2),!k&&this.alignToOthers()&&(k=Math.ceil(this.len/C)+1),4>k&&(this.finalTickAmt=k,k=5),this.tickAmount=k},_.prototype.adjustTickAmount=function(){var p=this,C=p.finalTickAmt,k=p.max,F=p.min,G=p.options,I=p.tickPositions,j=p.tickAmount,N=p.thresholdAlignment,Z=I&&I.length,$=i(p.threshold,p.softThreshold?0:null),Y=p.tickInterval;if(l(N)){var et=.5>N?Math.ceil(N*(j-1)):Math.floor(N*(j-1));G.reversed&&(et=j-1-et)}if(p.hasData()&&l(F)&&l(k)){if(N=function(){p.transA*=(Z-1)/(j-1),p.min=G.startOnTick?I[0]:Math.min(F,I[0]),p.max=G.endOnTick?I[I.length-1]:Math.max(k,I[I.length-1])},l(et)&&l(p.threshold)){for(;I[et]!==$||I.length!==j||I[0]>F||I[I.length-1]<k;){for(I.length=0,I.push(p.threshold);I.length<j;)I[et]===void 0||I[et]>p.threshold?I.unshift(b(I[0]-Y)):I.push(b(I[I.length-1]+Y));if(Y>8*p.tickInterval)break;Y*=2}N()}else if(Z<j){for(;I.length<j;)I.length%2||F===$?I.push(b(I[I.length-1]+Y)):I.unshift(b(I[0]-Y));N()}if(v(C)){for(Y=$=I.length;Y--;)(C===3&&Y%2==1||2>=C&&0<Y&&Y<$-1)&&I.splice(Y,1);p.finalTickAmt=void 0}}},_.prototype.setScale=function(){var p=!1,C=!1;this.series.forEach(function(F){p=p||F.isDirtyData||F.isDirty,C=C||F.xAxis&&F.xAxis.isDirty||!1}),this.setAxisSize();var k=this.len!==(this.old&&this.old.len);k||p||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=k||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),p&&this.panningState&&(this.panningState.isDirty=!0),f(this,"afterSetScale")},_.prototype.setExtremes=function(p,C,k,F,G){var I=this,j=I.chart;k=i(k,!0),I.series.forEach(function(N){delete N.kdTree}),G=M(G,{min:p,max:C}),f(I,"setExtremes",G,function(){I.userMin=p,I.userMax=C,I.eventArgs=G,k&&j.redraw(F)})},_.prototype.zoom=function(p,C){var k=this,F=this.dataMin,G=this.dataMax,I=this.options,j=Math.min(F,i(I.min,F)),N=Math.max(G,i(I.max,G));return f(this,"zoom",p={newMin:p,newMax:C},function(Z){var $=Z.newMin,Y=Z.newMax;$===k.min&&Y===k.max||(k.allowZoomOutside||(v(F)&&($<j&&($=j),$>N&&($=N)),v(G)&&(Y<j&&(Y=j),Y>N&&(Y=N))),k.displayBtn=$!==void 0||Y!==void 0,k.setExtremes($,Y,!1,void 0,{trigger:"zoom"})),Z.zoomed=!0}),p.zoomed},_.prototype.setAxisSize=function(){var p=this.chart,C=this.options,k=C.offsets||[0,0,0,0],F=this.horiz,G=this.width=Math.round(c(i(C.width,p.plotWidth-k[3]+k[1]),p.plotWidth)),I=this.height=Math.round(c(i(C.height,p.plotHeight-k[0]+k[2]),p.plotHeight)),j=this.top=Math.round(c(i(C.top,p.plotTop+k[0]),p.plotHeight,p.plotTop));C=this.left=Math.round(c(i(C.left,p.plotLeft+k[3]),p.plotWidth,p.plotLeft)),this.bottom=p.chartHeight-I-j,this.right=p.chartWidth-G-C,this.len=Math.max(F?G:I,0),this.pos=F?C:j},_.prototype.getExtremes=function(){var p=this.logarithmic;return{min:p?b(p.lin2log(this.min)):this.min,max:p?b(p.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},_.prototype.getThreshold=function(p){var C=this.logarithmic,k=C?C.lin2log(this.min):this.min;return C=C?C.lin2log(this.max):this.max,p===null||p===-1/0?p=k:p===1/0?p=C:k>p?p=k:C<p&&(p=C),this.translate(p,0,1,0,1)},_.prototype.autoLabelAlign=function(p){var C=(i(p,0)-90*this.side+720)%360;return f(this,"autoLabelAlign",p={align:"center"},function(k){15<C&&165>C?k.align="right":195<C&&345>C&&(k.align="left")}),p.align},_.prototype.tickSize=function(p){var C=this.options,k=i(C[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),F=C[p==="tick"?"tickLength":"minorTickLength"];if(k&&F){C[p+"Position"]==="inside"&&(F=-F);var G=[F,k]}return f(this,"afterTickSize",p={tickSize:G}),p.tickSize},_.prototype.labelMetrics=function(){var p=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[p]&&this.ticks[p].label)},_.prototype.unsquish=function(){var p=this.options.labels,C=this.horiz,k=this.tickInterval,F=this.len/(((this.categories?1:0)+this.max-this.min)/k),G=p.rotation,I=this.labelMetrics(),j=Math.max(this.max-this.min,0),N=function(bt){var xt=bt/(F||1);return(xt=1<xt?Math.ceil(xt):1)*k>j&&bt!==1/0&&F!==1/0&&j&&(xt=Math.ceil(j/k)),b(xt*k)},Z=k,$=Number.MAX_VALUE;if(C){if(!p.staggerLines)if(l(G))var Y=[G];else F<p.autoRotationLimit&&(Y=p.autoRotation);if(Y)for(var et=C=void 0,rt=0,it=Y;rt<it.length;rt++){var ht=it[rt];if((ht===G||ht&&-90<=ht&&90>=ht)&&(et=(C=N(Math.abs(I.h/Math.sin(T*ht))))+Math.abs(ht/360))<$){$=et;var dt=ht;Z=C}}}else Z=N(I.h);return this.autoRotation=Y,this.labelRotation=i(dt,l(G)?G:0),p.step?k:Z},_.prototype.getSlotWidth=function(p){var C=this.chart,k=this.horiz,F=this.options.labels,G=Math.max(this.tickPositions.length-(this.categories?0:1),1),I=C.margin[3];if(p&&l(p.slotWidth))return p.slotWidth;if(k&&2>F.step)return F.rotation?0:(this.staggerLines||1)*this.len/G;if(!k){if((p=F.style.width)!==void 0)return parseInt(String(p),10);if(I)return I-C.spacing[3]}return .33*C.chartWidth},_.prototype.renderUnsquish=function(){var p=this.chart,C=p.renderer,k=this.tickPositions,F=this.ticks,G=this.options.labels,I=G.style,j=this.horiz,N=this.getSlotWidth(),Z=Math.max(1,Math.round(N-2*G.padding)),$={},Y=this.labelMetrics(),et=I.textOverflow,rt=0;if(h(G.rotation)||($.rotation=G.rotation||0),k.forEach(function(bt){(bt=F[bt]).movedLabel&&bt.replaceMovedLabel(),bt&&bt.label&&bt.label.textPxLength>rt&&(rt=bt.label.textPxLength)}),this.maxLabelLength=rt,this.autoRotation)rt>Z&&rt>Y.h?$.rotation=this.labelRotation:this.labelRotation=0;else if(N){var it=Z;if(!et){var ht="clip";for(Z=k.length;!j&&Z--;){var dt=k[Z];(dt=F[dt].label)&&(dt.styles&&dt.styles.textOverflow==="ellipsis"?dt.css({textOverflow:"clip"}):dt.textPxLength>N&&dt.css({width:N+"px"}),dt.getBBox().height>this.len/k.length-(Y.h-Y.f)&&(dt.specificTextOverflow="ellipsis"))}}}$.rotation&&(it=rt>.5*p.chartHeight?.33*p.chartHeight:rt,et||(ht="ellipsis")),(this.labelAlign=G.align||this.autoLabelAlign(this.labelRotation))&&($.align=this.labelAlign),k.forEach(function(bt){var xt=(bt=F[bt])&&bt.label,St=I.width,wt={};xt&&(xt.attr($),bt.shortenLabel?bt.shortenLabel():it&&!St&&I.whiteSpace!=="nowrap"&&(it<xt.textPxLength||xt.element.tagName==="SPAN")?(wt.width=it+"px",et||(wt.textOverflow=xt.specificTextOverflow||ht),xt.css(wt)):xt.styles&&xt.styles.width&&!wt.width&&!St&&xt.css({width:null}),delete xt.specificTextOverflow,bt.rotation=$.rotation)},this),this.tickRotCorr=C.rotCorr(Y.b,this.labelRotation||0,this.side!==0)},_.prototype.hasData=function(){return this.series.some(function(p){return p.hasData()})||this.options.showEmpty&&v(this.min)&&v(this.max)},_.prototype.addTitle=function(p){var C,k=this.chart.renderer,F=this.horiz,G=this.opposite,I=this.options.title,j=this.chart.styledMode;this.axisTitle||((C=I.textAlign)||(C=(F?{low:"left",middle:"center",high:"right"}:{low:G?"right":"left",middle:"center",high:G?"left":"right"})[I.align]),this.axisTitle=k.text(I.text||"",0,0,I.useHTML).attr({zIndex:7,rotation:I.rotation,align:C}).addClass("highcharts-axis-title"),j||this.axisTitle.css(e(I.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),j||I.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[p?"show":"hide"](p)},_.prototype.generateTick=function(p){var C=this.ticks;C[p]?C[p].addLabel():C[p]=new q(this,p)},_.prototype.getOffset=function(){var p=this,C=this,k=C.chart,F=C.horiz,G=C.options,I=C.side,j=C.ticks,N=C.tickPositions,Z=C.coll,$=C.axisParent,Y=k.renderer,et=k.inverted&&!C.isZAxis?[1,0,3,2][I]:I,rt=C.hasData(),it=G.title,ht=G.labels,dt=k.axisOffset;k=k.clipOffset;var bt,xt=[-1,1,1,-1][I],St=G.className,wt=0,mt=0,at=0;if(C.showAxis=bt=rt||G.showEmpty,C.staggerLines=C.horiz&&ht.staggerLines||void 0,!C.axisGroup){var pt=function(Ct,Tt,At){return Y.g(Ct).attr({zIndex:At}).addClass("highcharts-".concat(Z.toLowerCase()).concat(Tt," ")+(p.isRadial?"highcharts-radial-axis".concat(Tt," "):"")+(St||"")).add($)};C.gridGroup=pt("grid","-grid",G.gridZIndex),C.axisGroup=pt("axis","",G.zIndex),C.labelGroup=pt("axis-labels","-labels",ht.zIndex)}if(rt||C.isLinked?(N.forEach(function(Ct){C.generateTick(Ct)}),C.renderUnsquish(),C.reserveSpaceDefault=I===0||I===2||{1:"left",3:"right"}[I]===C.labelAlign,i(ht.reserveSpace,C.labelAlign==="center"||null,C.reserveSpaceDefault)&&N.forEach(function(Ct){at=Math.max(j[Ct].getLabelSize(),at)}),C.staggerLines&&(at*=C.staggerLines),C.labelOffset=at*(C.opposite?-1:1)):n(j,function(Ct,Tt){Ct.destroy(),delete j[Tt]}),it&&it.text&&it.enabled!==!1&&(C.addTitle(bt),bt&&it.reserveSpace!==!1)){C.titleOffset=wt=C.axisTitle.getBBox()[F?"height":"width"];var vt=it.offset;mt=v(vt)?0:i(it.margin,F?5:10)}C.renderLine(),C.offset=xt*i(G.offset,dt[I]?dt[I]+(G.margin||0):0),C.tickRotCorr=C.tickRotCorr||{x:0,y:0},it=I===0?-C.labelMetrics().h:I===2?C.tickRotCorr.y:0,rt=Math.abs(at)+mt,at&&(rt=rt-it+xt*(F?i(ht.y,C.tickRotCorr.y+8*xt):ht.x)),C.axisTitleMargin=i(vt,rt),C.getMaxLabelDimensions&&(C.maxLabelDimensions=C.getMaxLabelDimensions(j,N)),Z!=="colorAxis"&&(F=this.tickSize("tick"),dt[I]=Math.max(dt[I],(C.axisTitleMargin||0)+wt+xt*C.offset,rt,N&&N.length&&F?F[0]+xt*C.offset:0),G=!C.axisLine||G.offset?0:2*Math.floor(C.axisLine.strokeWidth()/2),k[et]=Math.max(k[et],G)),f(this,"afterGetOffset")},_.prototype.getLinePath=function(p){var C=this.chart,k=this.opposite,F=this.offset,G=this.horiz,I=this.left+(k?this.width:0)+F;return F=C.chartHeight-this.bottom-(k?this.height:0)+F,k&&(p*=-1),C.renderer.crispLine([["M",G?this.left:I,G?F:this.top],["L",G?C.chartWidth-this.right:I,G?F:C.chartHeight-this.bottom]],p)},_.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}))},_.prototype.getTitlePosition=function(){var p=this.horiz,C=this.left,k=this.top,F=this.len,G=this.options.title,I=p?C:k,j=this.opposite,N=this.offset,Z=G.x,$=G.y,Y=this.axisTitle,et=this.chart.renderer.fontMetrics(G.style.fontSize,Y);return Y=Y?Math.max(Y.getBBox(!1,0).height-et.h-1,0):0,F={low:I+(p?0:F),middle:I+F/2,high:I+(p?F:0)}[G.align],C=(p?k+this.height:C)+(p?1:-1)*(j?-1:1)*(this.axisTitleMargin||0)+[-Y,Y,et.f,-Y][this.side],p={x:p?F+Z:C+(j?this.width:0)+N+Z,y:p?C+$-(j?this.height:0)+N:F+$},f(this,"afterGetTitlePosition",{titlePosition:p}),p},_.prototype.renderMinorTick=function(p,C){var k=this.minorTicks;k[p]||(k[p]=new q(this,p,"minor")),C&&k[p].isNew&&k[p].render(null,!0),k[p].render(null,!1,1)},_.prototype.renderTick=function(p,C,k){var F=this.ticks;(!this.isLinked||p>=this.min&&p<=this.max||this.grid&&this.grid.isColumn)&&(F[p]||(F[p]=new q(this,p)),k&&F[p].isNew&&F[p].render(C,!0,-1),F[p].render(C))},_.prototype.render=function(){var p,C,k=this,F=k.chart,G=k.logarithmic,I=k.options,j=k.isLinked,N=k.tickPositions,Z=k.axisTitle,$=k.ticks,Y=k.minorTicks,et=k.alternateBands,rt=I.stackLabels,it=I.alternateGridColor,ht=k.tickmarkOffset,dt=k.axisLine,bt=k.showAxis,xt=D(F.renderer.globalAnimation);if(k.labelEdge.length=0,k.overlap=!1,[$,Y,et].forEach(function(wt){n(wt,function(mt){mt.isActive=!1})}),k.hasData()||j){var St=k.chart.hasRendered&&k.old&&l(k.old.min);k.minorTickInterval&&!k.categories&&k.getMinorTickPositions().forEach(function(wt){k.renderMinorTick(wt,St)}),N.length&&(N.forEach(function(wt,mt){k.renderTick(wt,mt,St)}),ht&&(k.min===0||k.single)&&($[-1]||($[-1]=new q(k,-1,null,!0)),$[-1].render(-1))),it&&N.forEach(function(wt,mt){C=N[mt+1]!==void 0?N[mt+1]+ht:k.max-ht,mt%2==0&&wt<k.max&&C<=k.max+(F.polar?-ht:ht)&&(et[wt]||(et[wt]=new J.PlotLineOrBand(k)),p=wt+ht,et[wt].options={from:G?G.lin2log(p):p,to:G?G.lin2log(C):C,color:it,className:"highcharts-alternate-grid"},et[wt].render(),et[wt].isActive=!0)}),k._addedPlotLB||(k._addedPlotLB=!0,(I.plotLines||[]).concat(I.plotBands||[]).forEach(function(wt){k.addPlotBandOrLine(wt)}))}[$,Y,et].forEach(function(wt){var mt=[],at=xt.duration;n(wt,function(pt,vt){pt.isActive||(pt.render(vt,!1,0),pt.isActive=!1,mt.push(vt))}),y(function(){for(var pt=mt.length;pt--;)wt[mt[pt]]&&!wt[mt[pt]].isActive&&(wt[mt[pt]].destroy(),delete wt[mt[pt]])},wt!==et&&F.hasRendered&&at?at:0)}),dt&&(dt[dt.isPlaced?"animate":"attr"]({d:this.getLinePath(dt.strokeWidth())}),dt.isPlaced=!0,dt[bt?"show":"hide"](bt)),Z&&bt&&(I=k.getTitlePosition(),Z[Z.isNew?"attr":"animate"](I),Z.isNew=!1),rt&&rt.enabled&&k.stacking&&k.stacking.renderStackTotals(),k.old={len:k.len,max:k.max,min:k.min,transA:k.transA,userMax:k.userMax,userMin:k.userMin},k.isDirty=!1,f(this,"afterRender")},_.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(p){p.render()})),this.series.forEach(function(p){p.isDirty=!0})},_.prototype.getKeepProps=function(){return this.keepProps||_.keepProps},_.prototype.destroy=function(p){var C=this,k=C.plotLinesAndBands,F=this.eventOptions;if(f(this,"destroy",{keepEvents:p}),p||a(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(I){S(I)}),k)for(p=k.length;p--;)k[p].destroy();for(var G in"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(I){C[I]&&(C[I]=C[I].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[G]=C.plotLinesAndBandsGroups[G].destroy();n(C,function(I,j){C.getKeepProps().indexOf(j)===-1&&delete C[j]}),this.eventOptions=F},_.prototype.drawCrosshair=function(p,C){var k,F=this.crosshair,G=i(F&&F.snap,!0),I=this.chart,j=this.cross;if(f(this,"drawCrosshair",{e:p,point:C}),p||(p=this.cross&&this.cross.e),F&&(v(C)||!G)!==!1){if(G?v(C)&&(k=i(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):k=p&&(this.horiz?p.chartX-this.pos:this.len-p.chartY+this.pos),v(k)){var N={value:C&&(this.isXAxis?C.x:i(C.stackY,C.y)),translatedValue:k};I.polar&&M(N,{isCrosshair:!0,chartX:p&&p.chartX,chartY:p&&p.chartY,point:C}),N=this.getPlotLinePath(N)||null}if(!v(N))return void this.hideCrosshair();G=this.categories&&!this.isRadial,j||(this.cross=j=I.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(G?"category ":"thin ")+(F.className||"")).attr({zIndex:i(F.zIndex,2)}).add(),I.styledMode||(j.attr({stroke:F.color||(G?X.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":i(F.width,1)}).css({"pointer-events":"none"}),F.dashStyle&&j.attr({dashstyle:F.dashStyle}))),j.show().attr({d:N}),G&&!F.width&&j.attr({"stroke-width":this.transA}),this.cross.e=p}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:p,point:C})},_.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),f(this,"afterHideCrosshair")},_.prototype.hasVerticalPanning=function(){var p=this.chart.options.chart.panning;return!!(p&&p.enabled&&/y/.test(p.type))},_.prototype.validatePositiveValue=function(p){return l(p)&&0<p},_.prototype.update=function(p,C){var k=this.chart;p=e(this.userOptions,p),this.destroy(!0),this.init(k,p),k.isDirtyBox=!0,i(C,!0)&&k.redraw()},_.prototype.remove=function(p){for(var C=this.chart,k=this.coll,F=this.series,G=F.length;G--;)F[G]&&F[G].remove(!1);P(C.axes,this),P(C[k],this),C[k].forEach(function(I,j){I.options.index=I.userOptions.index=j}),this.destroy(),C.isDirtyBox=!0,i(p,!0)&&C.redraw()},_.prototype.setTitle=function(p,C){this.update({title:p},C)},_.prototype.setCategories=function(p,C){this.update({categories:p},C)},_.defaultOptions=z.defaultXAxisOptions,_.keepProps="extKey hcEvents names series userMax userMin".split(" "),_}(),U}),B(st,"Core/Axis/DateTimeAxis.js",[st["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.getMagnitude,K=U.normalizeTickInterval,J=U.timeUnits;return function(q){function W(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function D(T){T.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new w(this))}var O=[];q.compose=function(T){return O.indexOf(T)===-1&&(O.push(T),T.keepProps.push("dateTime"),T.prototype.getTimeTicks=W,X(T,"init",D)),T};var w=function(){function T(d){this.axis=d}return T.prototype.normalizeTimeTickInterval=function(d,u){var g=u||[["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=g[g.length-1];var b,v=J[u[0]],S=u[1];for(b=0;b<g.length&&(u=g[b],v=J[u[0]],S=u[1],!(g[b+1]&&d<=(v*S[S.length-1]+J[g[b+1][0]])/2));b++);return v===J.year&&d<5*v&&(S=[1,2,5]),{unitRange:v,count:d=K(d/v,S,u[0]==="year"?Math.max(V(d/v),1):1),unitName:u[0]}},T.prototype.getXDateFormat=function(d,u){var g=this.axis,b=g.chart.time;return g.closestPointRange?b.getDateFormat(g.closestPointRange,d,g.options.startOfWeek,u)||b.resolveDTLFormat(u.year).main:b.resolveDTLFormat(u.day).main},T}();q.Additions=w}(z||(z={})),z}),B(st,"Core/Axis/LogarithmicAxis.js",[st["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.normalizeTickInterval,K=U.pick;return function(J){function q(w){var T=this.logarithmic;w.userOptions.type!=="logarithmic"?this.logarithmic=void 0:T||(this.logarithmic=new O(this))}function W(){var w=this.logarithmic;w&&(this.lin2val=function(T){return w.lin2log(T)},this.val2lin=function(T){return w.log2lin(T)})}var D=[];J.compose=function(w){return D.indexOf(w)===-1&&(D.push(w),w.keepProps.push("logarithmic"),X(w,"init",q),X(w,"afterInit",W)),w};var O=function(){function w(T){this.axis=T}return w.prototype.getLogTickPositions=function(T,d,u,g){var b=this.axis,v=b.len,S=b.options,P=[];if(g||(this.minorAutoInterval=void 0),.5<=T)T=Math.round(T),P=b.getLinearTickPositions(T,d,u);else if(.08<=T){var E,M=Math.floor(d),f=S=void 0;for(v=.3<T?[1,2,4]:.15<T?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];M<u+1&&!f;M++){var x=v.length;for(E=0;E<x&&!f;E++){var l=this.log2lin(this.lin2log(M)*v[E]);l>d&&(!g||S<=u)&&S!==void 0&&P.push(S),S>u&&(f=!0),S=l}}}else d=this.lin2log(d),u=this.lin2log(u),T=g?b.getMinorTickInterval():S.tickInterval,T=K(T==="auto"?null:T,this.minorAutoInterval,S.tickPixelInterval/(g?5:1)*(u-d)/((g?v/b.tickPositions.length:v)||1)),T=V(T),P=b.getLinearTickPositions(T,d,u).map(this.log2lin),g||(this.minorAutoInterval=T/5);return g||(b.tickInterval=T),P},w.prototype.lin2log=function(T){return Math.pow(10,T)},w.prototype.log2lin=function(T){return Math.log(T)/Math.LN10},w}();J.Additions=O}(z||(z={})),z}),B(st,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[st["Core/Utilities.js"]],function(U){var z,X=U.erase,V=U.extend,K=U.isNumber;return function(J){var q,W=[];J.compose=function(O,w){return q||(q=O),W.indexOf(w)===-1&&(W.push(w),V(w.prototype,D.prototype)),w};var D=function(){function O(){}return O.prototype.getPlotBandPath=function(w,T,d){d===void 0&&(d=this.options);var u=this.getPlotLinePath({value:T,force:!0,acrossPanes:d.acrossPanes}),g=[],b=this.horiz;if(T=!K(this.min)||!K(this.max)||w<this.min&&T<this.min||w>this.max&&T>this.max,w=this.getPlotLinePath({value:w,force:!0,acrossPanes:d.acrossPanes}),d=1,w&&u){if(T){var v=w.toString()===u.toString();d=0}for(T=0;T<w.length;T+=2){var S=w[T],P=w[T+1],E=u[T],M=u[T+1];S[0]!=="M"&&S[0]!=="L"||P[0]!=="M"&&P[0]!=="L"||E[0]!=="M"&&E[0]!=="L"||M[0]!=="M"&&M[0]!=="L"||(b&&E[1]===S[1]?(E[1]+=d,M[1]+=d):b||E[2]!==S[2]||(E[2]+=d,M[2]+=d),g.push(["M",S[1],S[2]],["L",P[1],P[2]],["L",M[1],M[2]],["L",E[1],E[2]],["Z"])),g.isFlat=v}}return g},O.prototype.addPlotBand=function(w){return this.addPlotBandOrLine(w,"plotBands")},O.prototype.addPlotLine=function(w){return this.addPlotBandOrLine(w,"plotLines")},O.prototype.addPlotBandOrLine=function(w,T){var d=this,u=this.userOptions,g=new q(this,w);if(this.visible&&(g=g.render()),g){if(this._addedPlotLB||(this._addedPlotLB=!0,(u.plotLines||[]).concat(u.plotBands||[]).forEach(function(v){d.addPlotBandOrLine(v)})),T){var b=u[T]||[];b.push(w),u[T]=b}this.plotLinesAndBands.push(g)}return g},O.prototype.removePlotBandOrLine=function(w){var T=this.plotLinesAndBands,d=this.options,u=this.userOptions;if(T){for(var g=T.length;g--;)T[g].id===w&&T[g].destroy();[d.plotLines||[],u.plotLines||[],d.plotBands||[],u.plotBands||[]].forEach(function(b){for(g=b.length;g--;)(b[g]||{}).id===w&&X(b,b[g])})}},O.prototype.removePlotBand=function(w){this.removePlotBandOrLine(w)},O.prototype.removePlotLine=function(w){this.removePlotBandOrLine(w)},O}()}(z||(z={})),z}),B(st,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[st["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],st["Core/Utilities.js"]],function(U,z){var X=z.arrayMax,V=z.arrayMin,K=z.defined,J=z.destroyObjectProperties,q=z.erase,W=z.fireEvent,D=z.merge,O=z.objectEach,w=z.pick;return z=function(){function T(d,u){this.axis=d,u&&(this.options=u,this.id=u.id)}return T.compose=function(d){return U.compose(T,d)},T.prototype.render=function(){W(this,"render");var d=this,u=d.axis,g=u.horiz,b=u.logarithmic,v=d.options,S=v.color,P=w(v.zIndex,0),E=v.events,M={},f=u.chart.renderer,x=v.label,l=d.label,h=v.to,e=v.from,r=v.value,n=d.svgElem,i=[],c=K(e)&&K(h);i=K(r);var a=!n,s={class:"highcharts-plot-"+(c?"band ":"line ")+(v.className||"")},y=c?"bands":"lines";if(b&&(e=b.log2lin(e),h=b.log2lin(h),r=b.log2lin(r)),u.chart.styledMode||(i?(s.stroke=S||"#999999",s["stroke-width"]=w(v.width,1),v.dashStyle&&(s.dashstyle=v.dashStyle)):c&&(s.fill=S||"#e6ebf5",v.borderWidth&&(s.stroke=v.borderColor,s["stroke-width"]=v.borderWidth))),M.zIndex=P,y+="-"+P,(b=u.plotLinesAndBandsGroups[y])||(u.plotLinesAndBandsGroups[y]=b=f.g("plot-"+y).attr(M).add()),a&&(d.svgElem=n=f.path().attr(s).add(b)),i)i=u.getPlotLinePath({value:r,lineWidth:n.strokeWidth(),acrossPanes:v.acrossPanes});else{if(!c)return;i=u.getPlotBandPath(e,h,v)}return!d.eventsAdded&&E&&(O(E,function(A,_){n.on(_,function(p){E[_].apply(d,[p])})}),d.eventsAdded=!0),(a||!n.d)&&i&&i.length?n.attr({d:i}):n&&(i?(n.show(),n.animate({d:i})):n.d&&(n.hide(),l&&(d.label=l=l.destroy()))),x&&(K(x.text)||K(x.formatter))&&i&&i.length&&0<u.width&&0<u.height&&!i.isFlat?(x=D({align:g&&c&&"center",x:g?!c&&4:10,verticalAlign:!g&&c&&"middle",y:g?c?16:10:c?6:-4,rotation:g&&!c&&90},x),this.renderLabel(x,i,c,P)):l&&l.hide(),d},T.prototype.renderLabel=function(d,u,g,b){var v=this.axis,S=v.chart.renderer,P=this.label;P||(this.label=P=S.text(this.getLabelText(d),0,0,d.useHTML).attr({align:d.textAlign||d.align,rotation:d.rotation,class:"highcharts-plot-"+(g?"band":"line")+"-label "+(d.className||""),zIndex:b}).add(),v.chart.styledMode||P.css(D({textOverflow:"ellipsis"},d.style))),b=u.xBounds||[u[0][1],u[1][1],g?u[2][1]:u[0][1]],u=u.yBounds||[u[0][2],u[1][2],g?u[2][2]:u[0][2]],g=V(b),S=V(u),P.align(d,!1,{x:g,y:S,width:X(b)-g,height:X(u)-S}),P.alignValue&&P.alignValue!=="left"||(d=d.clip?v.width:v.chart.chartWidth,P.css({width:(P.rotation===90?v.height-(P.alignAttr.y-v.top):d-(P.alignAttr.x-v.left))+"px"})),P.show(!0)},T.prototype.getLabelText=function(d){return K(d.formatter)?d.formatter.call(this):d.text},T.prototype.destroy=function(){q(this.axis.plotLinesAndBands,this),delete this.axis,J(this)},T}(),z}),B(st,"Core/Tooltip.js",[st["Core/FormatUtilities.js"],st["Core/Globals.js"],st["Core/Renderer/RendererUtilities.js"],st["Core/Renderer/RendererRegistry.js"],st["Core/Utilities.js"]],function(U,z,X,V,K){var J=U.format,q=z.doc,W=X.distribute,D=K.clamp,O=K.css,w=K.discardElement,T=K.extend,d=K.fireEvent,u=K.isArray,g=K.isNumber,b=K.isString,v=K.merge,S=K.pick,P=K.splat,E=K.syncTimeout;return U=function(){function M(f,x){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=f,this.init(f,x)}return M.prototype.applyFilter=function(){var f=this.chart;f.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+f.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"}}]}]})},M.prototype.bodyFormatter=function(f){return f.map(function(x){var l=x.series.tooltipOptions;return(l[(x.point.formatPrefix||"point")+"Formatter"]||x.point.tooltipFormatter).call(x.point,l[(x.point.formatPrefix||"point")+"Format"]||"")})},M.prototype.cleanSplit=function(f){this.chart.series.forEach(function(x){var l=x&&x.tt;l&&(!l.isActive||f?x.tt=l.destroy():l.isActive=!1)})},M.prototype.defaultFormatter=function(f){var x=this.points||P(this),l=[f.tooltipFooterHeaderFormatter(x[0])];return(l=l.concat(f.bodyFormatter(x))).push(f.tooltipFooterHeaderFormatter(x[0],!0)),l},M.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(),w(this.container)),K.clearTimeout(this.hideTimer),K.clearTimeout(this.tooltipTimeout)},M.prototype.getAnchor=function(f,x){var l=this.chart,h=l.pointer,e=l.inverted,r=l.plotTop;if(l=l.plotLeft,(f=P(f))[0].series&&f[0].series.yAxis&&!f[0].series.yAxis.options.reversedStacks&&(f=f.slice().reverse()),this.followPointer&&x)x.chartX===void 0&&(x=h.normalize(x)),f=[x.chartX-l,x.chartY-r];else if(f[0].tooltipPos)f=f[0].tooltipPos;else{var n=0,i=0;f.forEach(function(c){(c=c.pos(!0))&&(n+=c[0],i+=c[1])}),n/=f.length,i/=f.length,this.shared&&1<f.length&&x&&(e?n=x.chartX:i=x.chartY),f=[n-l,i-r]}return f.map(Math.round)},M.prototype.getClassName=function(f,x,l){var h=f.series,e=h.options;return[this.options.className,"highcharts-label",l&&"highcharts-tooltip-header",x?"highcharts-tooltip-box":"highcharts-tooltip",!l&&"highcharts-color-"+S(f.colorIndex,h.colorIndex),e&&e.className].filter(b).join(" ")},M.prototype.getLabel=function(){var f,x=this,l=this.chart.styledMode,h=this.options,e=this.split&&this.allowShared,r=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),n=this.chart.renderer;if(x.label){var i=!x.label.hasClass("highcharts-label");(e&&!i||!e&&i)&&x.destroy()}if(!this.label){if(this.outside){i=this.chart.options.chart.style;var c=V.getRendererType();this.container=f=z.doc.createElement("div"),f.className="highcharts-tooltip-container",O(f,{position:"absolute",top:"1px",pointerEvents:r,zIndex:Math.max(this.options.style.zIndex||0,(i&&i.zIndex||0)+3)}),z.doc.body.appendChild(f),this.renderer=n=new c(f,0,0,i,void 0,void 0,n.styledMode)}if(e?this.label=n.g("tooltip"):(this.label=n.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),l||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:r}).shadow(h.shadow)),l&&h.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),x.outside&&!x.split){var a=this.label,s=a.xSetter,y=a.ySetter;a.xSetter=function(A){s.call(a,x.distance),f.style.left=A+"px"},a.ySetter=function(A){y.call(a,x.distance),f.style.top=A+"px"}}this.label.attr({zIndex:8}).add()}return this.label},M.prototype.getPosition=function(f,x,l){var h,e=this.chart,r=this.distance,n={},i=e.inverted&&l.h||0,c=this.outside,a=c?q.documentElement.clientWidth-2*r:e.chartWidth,s=c?Math.max(q.body.scrollHeight,q.documentElement.scrollHeight,q.body.offsetHeight,q.documentElement.offsetHeight,q.documentElement.clientHeight):e.chartHeight,y=e.pointer.getChartPosition(),A=function(j){var N=j==="x";return[j,N?a:s,N?f:x].concat(c?[N?f*y.scaleX:x*y.scaleY,N?y.left-r+(l.plotX+e.plotLeft)*y.scaleX:y.top-r+(l.plotY+e.plotTop)*y.scaleY,0,N?a:s]:[N?f:x,N?l.plotX+e.plotLeft:l.plotY+e.plotTop,N?e.plotLeft:e.plotTop,N?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},_=A("y"),p=A("x");A=!!l.negative,!e.polar&&e.hoverSeries&&e.hoverSeries.yAxis&&e.hoverSeries.yAxis.reversed&&(A=!A);var C=!this.followPointer&&S(l.ttBelow,!e.inverted===A),k=function(j,N,Z,$,Y,et,rt){var it=c?j==="y"?r*y.scaleY:r*y.scaleX:r,ht=(Z-$)/2,dt=$<Y-r,bt=Y+r+$<N,xt=Y-it-Z+ht;if(Y=Y+it-ht,C&&bt)n[j]=Y;else if(!C&&dt)n[j]=xt;else if(dt)n[j]=Math.min(rt-$,0>xt-i?xt:xt-i);else{if(!bt)return!1;n[j]=Math.max(et,Y+i+Z>N?Y:Y+i)}},F=function(j,N,Z,$,Y){var et;return Y<r||Y>N-r?et=!1:n[j]=Y<Z/2?1:Y>N-$/2?N-$-2:Y-Z/2,et},G=function(j){var N=_;_=p,p=N,h=j},I=function(){k.apply(0,_)!==!1?F.apply(0,p)!==!1||h||(G(!0),I()):h?n.x=n.y=0:(G(!0),I())};return(e.inverted||1<this.len)&&G(),I(),n},M.prototype.hide=function(f){var x=this;K.clearTimeout(this.hideTimer),f=S(f,this.options.hideDelay),this.isHidden||(this.hideTimer=E(function(){x.getLabel().fadeOut(f&&void 0),x.isHidden=!0},f))},M.prototype.init=function(f,x){this.chart=f,this.options=x,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=x.split&&!f.inverted&&!f.polar,this.shared=x.shared||this.split,this.outside=S(x.outside,!(!f.scrollablePixelsX&&!f.scrollablePixelsY))},M.prototype.shouldStickOnContact=function(f){return!(this.followPointer||!this.options.stickOnContact||f&&!this.chart.pointer.inClass(f.target,"highcharts-tooltip"))},M.prototype.move=function(f,x,l,h){var e=this,r=e.now,n=e.options.animation!==!1&&!e.isHidden&&(1<Math.abs(f-r.x)||1<Math.abs(x-r.y)),i=e.followPointer||1<e.len;T(r,{x:n?(2*r.x+f)/3:f,y:n?(r.y+x)/2:x,anchorX:i?void 0:n?(2*r.anchorX+l)/3:l,anchorY:i?void 0:n?(r.anchorY+h)/2:h}),e.getLabel().attr(r),e.drawTracker(),n&&(K.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(f,x,l,h)},32))},M.prototype.refresh=function(f,x){var l=this.chart,h=this.options,e=l.pointer,r=P(f),n=r[0],i=[],c=h.formatter||this.defaultFormatter,a=this.shared,s=l.styledMode,y={};if(h.enabled&&n.series){K.clearTimeout(this.hideTimer),this.allowShared=!(!u(f)&&f.series&&f.series.noSharedTooltip),this.followPointer=!this.split&&n.series.tooltipOptions.followPointer;var A=(f=this.getAnchor(f,x))[0],_=f[1];if(a&&this.allowShared?(e.applyInactiveState(r),r.forEach(function(k){k.setState("hover"),i.push(k.getLabelConfig())}),(y={x:n.category,y:n.y}).points=i):y=n.getLabelConfig(),this.len=i.length,c=c.call(y,this),a=n.series,this.distance=S(a.tooltipOptions.distance,16),c===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(c,r);else{var p=A,C=_;if(x&&e.isDirectTouch&&(p=x.chartX-l.plotLeft,C=x.chartY-l.plotTop),!l.polar&&a.options.clip!==!1&&!r.some(function(k){return e.isDirectTouch||k.series.shouldShowTooltip(p,C)}))return void this.hide();x=this.getLabel(),h.style.width&&!s||x.css({width:l.spacingBox.width+"px"}),x.attr({text:c&&c.join?c.join(""):c}),x.addClass(this.getClassName(n),!0),s||x.attr({stroke:h.borderColor||n.color||a.color||"#666666"}),this.updatePosition({plotX:A,plotY:_,negative:n.negative,ttBelow:n.ttBelow,h:f[2]||0})}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}d(this,"refresh")}},M.prototype.renderSplit=function(f,x){function l(bt,xt,St,wt,mt){return mt===void 0&&(mt=!0),St?(xt=$?0:it,bt=D(bt-wt/2,j.left,j.right-wt-(h.outside?Y:0))):(xt-=et,bt=D(bt=mt?bt-wt-F:bt+F,mt?bt:j.left,j.right)),{x:bt,y:xt}}var h=this,e=h.chart,r=h.chart,n=r.chartWidth,i=r.chartHeight,c=r.plotHeight,a=r.plotLeft,s=r.plotTop,y=r.pointer,A=r.scrollablePixelsY;A=A===void 0?0:A;var _=r.scrollablePixelsX,p=r.scrollingContainer,C=(p=p===void 0?{scrollLeft:0,scrollTop:0}:p).scrollLeft;p=p.scrollTop;var k=r.styledMode,F=h.distance,G=h.options,I=h.options.positioner,j=h.outside&&typeof _!="number"?q.documentElement.getBoundingClientRect():{left:C,right:C+n,top:p,bottom:p+i},N=h.getLabel(),Z=this.renderer||e.renderer,$=!(!e.xAxis[0]||!e.xAxis[0].opposite),Y=(e=y.getChartPosition()).left;e=e.top;var et=s+p,rt=0,it=c-A;b(f)&&(f=[!1,f]),f=f.slice(0,x.length+1).reduce(function(bt,xt,St){if(xt!==!1&&xt!==""){var wt=(St=x[St-1]||{isHeader:!0,plotX:x[0].plotX,plotY:c,series:{}}).isHeader,mt=wt?h:St.series;xt=xt.toString();var at=mt.tt,pt=St.isHeader,vt=St.series;at||(at={padding:G.padding,r:G.borderRadius},k||(at.fill=G.backgroundColor,at["stroke-width"]=G.borderWidth),at=Z.label("",0,0,G[pt?"headerShape":"shape"],void 0,void 0,G.useHTML).addClass(h.getClassName(St,!0,pt)).attr(at).add(N)),at.isActive=!0,at.attr({text:xt}),k||at.css(G.style).shadow(G.shadow).attr({stroke:G.borderColor||St.color||vt.color||"#333333"}),xt=(pt=(mt=mt.tt=at).getBBox()).width+mt.strokeWidth(),wt&&(rt=pt.height,it+=rt,$&&(et-=rt)),vt=(vt=St.plotX)===void 0?0:vt,at=(at=St.plotY)===void 0?0:at;var Ct=St.series;if(St.isHeader){vt=a+vt;var Tt=s+c/2}else{var At=Ct.xAxis,Lt=Ct.yAxis;vt=At.pos+D(vt,-F,At.len+F),Ct.shouldShowTooltip(0,Lt.pos-s+at,{ignoreX:!0})&&(Tt=Lt.pos+at)}vt=D(vt,j.left-F,j.right+F),typeof Tt=="number"?(pt=pt.height+1,at=I?I.call(h,xt,pt,St):l(vt,Tt,wt,xt),bt.push({align:I?0:void 0,anchorX:vt,anchorY:Tt,boxWidth:xt,point:St,rank:S(at.rank,wt?1:0),size:pt,target:at.y,tt:mt,x:at.x})):mt.isActive=!1}return bt},[]),!I&&f.some(function(bt){var xt=(h.outside?Y:0)+bt.anchorX;return xt<j.left&&xt+bt.boxWidth<j.right||xt<Y-j.left+bt.boxWidth&&j.right-xt>xt})&&(f=f.map(function(bt){var xt=l(bt.anchorX,bt.anchorY,bt.point.isHeader,bt.boxWidth,!1);return T(bt,{target:xt.y,x:xt.x})})),h.cleanSplit(),W(f,it);var ht=Y,dt=Y;f.forEach(function(bt){var xt=bt.x,St=bt.boxWidth;(bt=bt.isHeader)||(h.outside&&Y+xt<ht&&(ht=Y+xt),!bt&&h.outside&&ht+St>dt&&(dt=Y+xt))}),f.forEach(function(bt){var xt=bt.x,St=bt.anchorX,wt=bt.pos,mt=bt.point.isHeader;if(wt={visibility:wt===void 0?"hidden":"inherit",x:xt,y:(wt||0)+et,anchorX:St,anchorY:bt.anchorY},h.outside&&xt<St){var at=Y-ht;0<at&&(mt||(wt.x=xt+at,wt.anchorX=St+at),mt&&(wt.x=(dt-ht)/2,wt.anchorX=St+at))}bt.tt.attr(wt)}),f=h.container,A=h.renderer,h.outside&&f&&A&&(r=N.getBBox(),A.setSize(r.width+r.x,r.height+r.y,!1),f.style.left=ht+"px",f.style.top=e+"px")},M.prototype.drawTracker=function(){if(this.shouldStickOnContact()){var f=this.chart,x=this.label,l=this.shared?f.hoverPoints:f.hoverPoint;if(x&&l){var h={x:0,y:0,width:0,height:0};l=this.getAnchor(l);var e=x.getBBox();l[0]+=f.plotLeft-x.translateX,l[1]+=f.plotTop-x.translateY,h.x=Math.min(0,l[0]),h.y=Math.min(0,l[1]),h.width=0>l[0]?Math.max(Math.abs(l[0]),e.width-l[0]):Math.max(Math.abs(l[0]),e.width),h.height=0>l[1]?Math.max(Math.abs(l[1]),e.height-Math.abs(l[1])):Math.max(Math.abs(l[1]),e.height),this.tracker?this.tracker.attr(h):(this.tracker=x.renderer.rect(h).addClass("highcharts-tracker").add(x),f.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&this.tracker.destroy()},M.prototype.styledModeFormat=function(f){return f.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}"')},M.prototype.tooltipFooterHeaderFormatter=function(f,x){var l=f.series,h=l.tooltipOptions,e=l.xAxis,r=e&&e.dateTime;e={isFooter:x,labelConfig:f};var n=h.xDateFormat,i=h[x?"footerFormat":"headerFormat"];return d(this,"headerFormatter",e,function(c){r&&!n&&g(f.key)&&(n=r.getXDateFormat(f.key,h.dateTimeLabelFormats)),r&&n&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(a){i=i.replace("{point."+a+"}","{point."+a+":"+n+"}")}),l.chart.styledMode&&(i=this.styledModeFormat(i)),c.text=J(i,{point:f,series:l},this.chart)}),e.text},M.prototype.update=function(f){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,f),this.init(this.chart,v(!0,this.options,f))},M.prototype.updatePosition=function(f){var x=this.chart,l=this.distance,h=this.options,e=x.pointer,r=this.getLabel(),n=e.getChartPosition();e=n.left;var i=n.top,c=n.scaleX;n=n.scaleY;var a=(h.positioner||this.getPosition).call(this,r.width,r.height,f),s=(f.plotX||0)+x.plotLeft;f=(f.plotY||0)+x.plotTop,this.outside&&(h.positioner&&(a.x+=e-l,a.y+=i-l),l=h.borderWidth+2*l,this.renderer.setSize(r.width+l,r.height+l,!1),c===1&&n===1||(O(this.container,{transform:"scale(".concat(c,", ").concat(n,")")}),s*=c,f*=n),s+=e-a.x,f+=i-a.y),this.move(Math.round(a.x),Math.round(a.y||0),s,f)},M}(),U}),B(st,"Core/Series/Point.js",[st["Core/Renderer/HTML/AST.js"],st["Core/Animation/AnimationUtilities.js"],st["Core/Defaults.js"],st["Core/FormatUtilities.js"],st["Core/Utilities.js"]],function(U,z,X,V,K){var J=z.animObject,q=X.defaultOptions,W=V.format,D=K.addEvent,O=K.defined,w=K.erase,T=K.extend,d=K.fireEvent,u=K.getNestedProperty,g=K.isArray,b=K.isFunction,v=K.isNumber,S=K.isObject,P=K.merge,E=K.objectEach,M=K.pick,f=K.syncTimeout,x=K.removeEvent,l=K.uniqueKey;return z=function(){function h(){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 h.prototype.animateBeforeDestroy=function(){var e=this,r={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(i){e[i]=e[i].animate(i==="dataLabel"?{x:e[i].startXPos,y:e[i].startYPos,opacity:0}:r)}),n.plural.forEach(function(i){e[i].forEach(function(c){c.element&&c.animate(T({x:e.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})},h.prototype.applyOptions=function(e,r){var n=this.series,i=n.options.pointValKey||n.pointValKey;return e=h.prototype.optionsToObject.call(this,e),T(this,e),this.options=this.options?T(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,i&&(this.y=h.prototype.getNestedProperty.call(this,i)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&r===void 0&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),this.x===void 0&&n?this.x=r===void 0?n.autoIncrement():r:v(e.x)&&n.options.relativeXValue&&(this.x=n.autoIncrement(e.x)),this},h.prototype.destroy=function(){function e(){for(c in(r.graphic||r.graphics||r.dataLabel||r.dataLabels)&&(x(r),r.destroyElements()),r)r[c]=null}var r=this,n=r.series,i=n.chart;n=n.options.dataSorting;var c,a=i.hoverPoints,s=J(r.series.chart.renderer.globalAnimation);r.legendItem&&i.legend.destroyItem(r),a&&(r.setState(),w(a,r),a.length||(i.hoverPoints=null)),r===i.hoverPoint&&r.onMouseOut(),n&&n.enabled?(this.animateBeforeDestroy(),f(e,s.duration)):e(),i.pointCount--},h.prototype.destroyElements=function(e){var r=this;(e=r.getGraphicalProps(e)).singular.forEach(function(n){r[n]=r[n].destroy()}),e.plural.forEach(function(n){r[n].forEach(function(i){i&&i.element&&i.destroy()}),delete r[n]})},h.prototype.firePointEvent=function(e,r,n){var i=this,c=this.series.options;(c.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&i.importEvents(),e==="click"&&c.allowPointSelect&&(n=function(a){i.select&&i.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),d(i,e,r,n)},h.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",""):"")},h.prototype.getGraphicalProps=function(e){var r,n=this,i=[],c={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&i.push("graphic","shadowGroup"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),r=i.length;r--;){var a=i[r];n[a]&&c.singular.push(a)}return["graphic","dataLabel","connector"].forEach(function(s){var y=s+"s";e[s]&&n[y]&&c.plural.push(y)}),c},h.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}},h.prototype.getNestedProperty=function(e){if(e)return e.indexOf("custom.")===0?u(e,this.options):this[e]},h.prototype.getZone=function(){var e=this.series,r=e.zones;e=e.zoneAxis||"y";var n,i=0;for(n=r[i];this[e]>=n.value;)n=r[++i];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=n&&n.color&&!this.options.color?n.color:this.nonZonedColor,n},h.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(e,r,n){return this.series=e,this.applyOptions(r,n),this.id=O(this.id)?this.id:l(),this.resolveColor(),e.chart.pointCount++,d(this,"afterInit"),this},h.prototype.isValid=function(){return this.x!==null&&v(this.y)},h.prototype.optionsToObject=function(e){var r=this.series,n=r.options.keys,i=n||r.pointArrayMap||["y"],c=i.length,a={},s=0,y=0;if(v(e)||e===null)a[i[0]]=e;else if(g(e))for(!n&&e.length>c&&((r=typeof e[0])=="string"?a.name=e[0]:r==="number"&&(a.x=e[0]),s++);y<c;)n&&e[s]===void 0||(0<i[y].indexOf(".")?h.prototype.setNestedProperty(a,e[s],i[y]):a[i[y]]=e[s]),s++,y++;else typeof e=="object"&&(a=e,e.dataLabels&&(r._hasPointLabels=!0),e.marker&&(r._hasPointMarkers=!0));return a},h.prototype.pos=function(e,r){r===void 0&&(r=this.plotY);var n=this.plotX,i=this.series,c=i.chart,a=i.xAxis;i=i.yAxis;var s=0,y=0;if(v(n)&&v(r))return e&&(s=a?a.pos:c.plotLeft,y=i?i.pos:c.plotTop),c.inverted&&a&&i?[i.len-r+y,a.len-n+s]:[n+s,r+y]},h.prototype.resolveColor=function(){var e=this.series,r=e.chart.styledMode,n=e.chart.options.chart.colorCount;if(delete this.nonZonedColor,e.options.colorByPoint){if(!r){var i=(n=e.options.colors||e.chart.options.colors)[e.colorCounter];n=n.length}r=e.colorCounter,e.colorCounter++,e.colorCounter===n&&(e.colorCounter=0)}else r||(i=e.color),r=e.colorIndex;this.colorIndex=M(this.options.colorIndex,r),this.color=M(this.options.color,i)},h.prototype.setNestedProperty=function(e,r,n){return n.split(".").reduce(function(i,c,a,s){return i[c]=s.length-1===a?r:S(i[c],!0)?i[c]:{},i[c]},e),e},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(e){var r=this.series,n=r.tooltipOptions,i=M(n.valueDecimals,""),c=n.valuePrefix||"",a=n.valueSuffix||"";return r.chart.styledMode&&(e=r.chart.tooltip.styledModeFormat(e)),(r.pointArrayMap||["y"]).forEach(function(s){s="{point."+s,(c||a)&&(e=e.replace(RegExp(s+"}","g"),c+s+"}"+a)),e=e.replace(RegExp(s+"}","g"),s+":,."+i+"f}")}),W(e,{point:this,series:this.series},r.chart)},h.prototype.update=function(e,r,n,i){function c(){s.applyOptions(e);var C=A&&s.hasMockGraphic;C=s.y===null?!C:C,A&&C&&(s.graphic=A.destroy(),delete s.hasMockGraphic),S(e,!0)&&(A&&A.element&&e&&e.marker&&e.marker.symbol!==void 0&&(s.graphic=A.destroy()),e&&e.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),a=s.index,y.updateParallelArrays(s,a),p.data[a]=S(p.data[a],!0)||S(e,!0)?s.options:M(e,p.data[a]),y.isDirty=y.isDirtyData=!0,!y.fixedBox&&y.hasCartesianSeries&&(_.isDirtyBox=!0),p.legendType==="point"&&(_.isDirtyLegend=!0),r&&_.redraw(n)}var a,s=this,y=s.series,A=s.graphic,_=y.chart,p=y.options;r=M(r,!0),i===!1?c():s.firePointEvent("update",{options:e},c)},h.prototype.remove=function(e,r){this.series.removePoint(this.series.data.indexOf(this),e,r)},h.prototype.select=function(e,r){var n=this,i=n.series,c=i.chart;this.selectedStaging=e=M(e,!n.selected),n.firePointEvent(e?"select":"unselect",{accumulate:r},function(){n.selected=n.options.selected=e,i.options.data[i.data.indexOf(n)]=n.options,n.setState(e&&"select"),r||c.getSelectedPoints().forEach(function(a){var s=a.series;a.selected&&a!==n&&(a.selected=a.options.selected=!1,s.options.data[s.data.indexOf(a)]=a.options,a.setState(c.hoverPoints&&s.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(e){var r=this.series.chart,n=r.pointer;e=e?n.normalize(e):n.getChartCoordinatesFromPoint(this,r.inverted),n.runPointActions(e,this)},h.prototype.onMouseOut=function(){var e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(r){r.setState()}),e.hoverPoints=e.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var e=this,r=P(e.series.options.point,e.options).events;e.events=r,E(r,function(n,i){b(n)&&D(e,i,n)}),this.hasImportedEvents=!0}},h.prototype.setState=function(e,r){var n,i=this.series,c=this.state,a=i.options.states[e||"normal"]||{},s=q.plotOptions[i.type].marker&&i.options.marker,y=s&&s.enabled===!1,A=s&&s.states&&s.states[e||"normal"]||{},_=A.enabled===!1,p=this.marker||{},C=i.chart,k=s&&i.markerAttribs,F=i.halo,G=i.stateMarkerGraphic;if(!((e=e||"")===this.state&&!r||this.selected&&e!=="select"||a.enabled===!1||e&&(_||y&&A.enabled===!1)||e&&p.states&&p.states[e]&&p.states[e].enabled===!1)){if(this.state=e,k&&(n=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(c&&this.graphic.removeClass("highcharts-point-"+c),e&&this.graphic.addClass("highcharts-point-"+e),!C.styledMode){c=i.pointAttribs(this,e);var I=M(C.options.chart.animation,a.animation),j=c.opacity;i.options.inactiveOtherPoints&&v(j)&&((this.dataLabels||[]).forEach(function(N){N&&!N.hasClass("highcharts-data-label-hidden")&&N.animate({opacity:j},I)}),this.connector&&this.connector.animate({opacity:j},I)),this.graphic.animate(c,I)}n&&this.graphic.animate(n,M(C.options.chart.animation,A.animation,s.animation)),G&&G.hide()}else e&&A&&(s=p.symbol||i.symbol,G&&G.currentSymbol!==s&&(G=G.destroy()),n&&(G?G[r?"animate":"attr"]({x:n.x,y:n.y}):s&&(i.stateMarkerGraphic=G=C.renderer.symbol(s,n.x,n.y,n.width,n.height).add(i.markerGroup),G.currentSymbol=s)),!C.styledMode&&G&&this.state!=="inactive"&&G.attr(i.pointAttribs(this,e))),G&&(G[e&&this.isInside?"show":"hide"](),G.element.point=this,G.addClass(this.getClassName(),!0));a=a.halo,n=(G=this.graphic||G)&&G.visibility||"inherit",a&&a.size&&G&&n!=="hidden"&&!this.isCluster?(F||(i.halo=F=C.renderer.path().add(G.parentGroup)),F.show()[r?"animate":"attr"]({d:this.haloPath(a.size)}),F.attr({class:"highcharts-halo highcharts-color-"+M(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:n,zIndex:-1}),F.point=this,C.styledMode||F.attr(T({fill:this.color||i.color,"fill-opacity":a.opacity},U.filterUserAttributes(a.attributes||{})))):F&&F.point&&F.point.haloPath&&F.animate({d:F.point.haloPath(0)},null,F.hide),d(this,"afterSetState",{state:e})}},h.prototype.haloPath=function(e){var r=this.pos();return r?this.series.chart.renderer.symbols.circle(Math.floor(r[0])-e,r[1]-e,2*e,2*e):[]},h}(),z}),B(st,"Core/Pointer.js",[st["Core/Color/Color.js"],st["Core/Globals.js"],st["Core/Tooltip.js"],st["Core/Utilities.js"]],function(U,z,X,V){var K=U.parse,J=z.charts,q=z.noop,W=V.addEvent,D=V.attr,O=V.css,w=V.defined,T=V.extend,d=V.find,u=V.fireEvent,g=V.isNumber,b=V.isObject,v=V.objectEach,S=V.offset,P=V.pick,E=V.splat;return U=function(){function M(f,x){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=f,this.hasDragged=!1,this.options=x,this.init(f,x)}return M.prototype.applyInactiveState=function(f){var x,l=[];(f||[]).forEach(function(h){x=h.series,l.push(x),x.linkedParent&&l.push(x.linkedParent),x.linkedSeries&&(l=l.concat(x.linkedSeries)),x.navigatorSeries&&l.push(x.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},M.prototype.destroy=function(){var f=this;this.eventsToUnbind.forEach(function(x){return x()}),this.eventsToUnbind=[],z.chartCount||(M.unbindDocumentMouseUp&&(M.unbindDocumentMouseUp=M.unbindDocumentMouseUp()),M.unbindDocumentTouchEnd&&(M.unbindDocumentTouchEnd=M.unbindDocumentTouchEnd())),clearInterval(f.tooltipTimeout),v(f,function(x,l){f[l]=void 0})},M.prototype.getSelectionMarkerAttrs=function(f,x){var l=this,h={args:{chartX:f,chartY:x},attrs:{},shapeType:"rect"};return u(this,"getSelectionMarkerAttrs",h,function(e){var r=l.chart,n=l.mouseDownX;n=n===void 0?0:n;var i=l.mouseDownY;i=i===void 0?0:i;var c=l.zoomHor,a=l.zoomVert;(e=e.attrs).x=r.plotLeft,e.y=r.plotTop,e.width=c?1:r.plotWidth,e.height=a?1:r.plotHeight,c&&(r=f-n,e.width=Math.abs(r),e.x=(0<r?0:r)+n),a&&(r=x-i,e.height=Math.abs(r),e.y=(0<r?0:r)+i)}),h},M.prototype.drag=function(f){var x=this.chart,l=x.options.chart,h=x.plotLeft,e=x.plotTop,r=x.plotWidth,n=x.plotHeight,i=this.mouseDownX||0,c=this.mouseDownY||0,a=b(l.panning)?l.panning&&l.panning.enabled:l.panning,s=l.panKey&&f[l.panKey+"Key"],y=f.chartX,A=f.chartY,_=this.selectionMarker;_&&_.touch||(y<h?y=h:y>h+r&&(y=h+r),A<e?A=e:A>e+n&&(A=e+n),this.hasDragged=Math.sqrt(Math.pow(i-y,2)+Math.pow(c-A,2)),10<this.hasDragged&&(h=x.isInsidePlot(i-h,c-e,{visiblePlotOnly:!0}),y=(A=this.getSelectionMarkerAttrs(y,A)).shapeType,A=A.attrs,!x.hasCartesianSeries&&!x.mapView||!this.zoomX&&!this.zoomY||!h||s||_||(this.selectionMarker=_=x.renderer[y](),_.attr({class:"highcharts-selection-marker",zIndex:7}).add(),x.styledMode||_.attr({fill:l.selectionMarkerFill||K("#335cad").setOpacity(.25).get()})),_&&_.attr(A),h&&!_&&a&&x.pan(f,l.panning)))},M.prototype.dragStart=function(f){var x=this.chart;x.mouseIsDown=f.type,x.cancelClick=!1,x.mouseDownX=this.mouseDownX=f.chartX,x.mouseDownY=this.mouseDownY=f.chartY},M.prototype.getSelectionBox=function(f){var x={args:{marker:f},result:{}};return u(this,"getSelectionBox",x,function(l){l.result={x:f.attr?+f.attr("x"):f.x,y:f.attr?+f.attr("y"):f.y,width:f.attr?f.attr("width"):f.width,height:f.attr?f.attr("height"):f.height}}),x.result},M.prototype.drop=function(f){var x=this,l=this.chart,h=this.hasPinched;if(this.selectionMarker){var e=this.getSelectionBox(this.selectionMarker),r=e.x,n=e.y,i=e.width,c=e.height,a={originalEvent:f,xAxis:[],yAxis:[],x:r,y:n,width:i,height:c},s=!!l.mapView;(this.hasDragged||h)&&(l.axes.forEach(function(y){if(y.zoomEnabled&&w(y.min)&&(h||x[{xAxis:"zoomX",yAxis:"zoomY"}[y.coll]])&&g(r)&&g(n)&&g(i)&&g(c)){var A=y.horiz,_=f.type==="touchend"?y.minPixelPadding:0,p=y.toValue((A?r:n)+_);A=y.toValue((A?r+i:n+c)-_),a[y.coll].push({axis:y,min:Math.min(p,A),max:Math.max(p,A)}),s=!0}}),s&&u(l,"selection",a,function(y){l.zoom(T(y,h?{animation:!1}:null))})),g(l.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}l&&g(l.index)&&(O(l.container,{cursor:l._cursor}),l.cancelClick=10<this.hasDragged,l.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},M.prototype.findNearestKDPoint=function(f,x,l){var h;return f.forEach(function(e){var r=!(e.noSharedTooltip&&x)&&0>e.options.findNearestPointBy.indexOf("y");if(e=e.searchPoint(l,r),(r=b(e,!0)&&e.series)&&!(r=!b(h,!0))){r=h.distX-e.distX;var n=h.dist-e.dist,i=(e.series.group&&e.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);r=0<(r!==0&&x?r:n!==0?n:i!==0?i:h.series.index>e.series.index?-1:1)}r&&(h=e)}),h},M.prototype.getChartCoordinatesFromPoint=function(f,x){var l=f.series,h=l.xAxis;l=l.yAxis;var e=f.shapeArgs;if(h&&l){var r=P(f.clientX,f.plotX),n=f.plotY||0;return f.isNode&&e&&g(e.x)&&g(e.y)&&(r=e.x,n=e.y),x?{chartX:l.len+l.pos-n,chartY:h.len+h.pos-r}:{chartX:r+h.pos,chartY:n+l.pos}}if(e&&e.x&&e.y)return{chartX:e.x,chartY:e.y}},M.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var f=this.chart.container,x=S(f);this.chartPosition={left:x.left,top:x.top,scaleX:1,scaleY:1};var l=f.offsetWidth;return f=f.offsetHeight,2<l&&2<f&&(this.chartPosition.scaleX=x.width/l,this.chartPosition.scaleY=x.height/f),this.chartPosition},M.prototype.getCoordinates=function(f){var x={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(l){x[l.isXAxis?"xAxis":"yAxis"].push({axis:l,value:l.toValue(f[l.horiz?"chartX":"chartY"])})}),x},M.prototype.getHoverData=function(f,x,l,h,e,r){var n=[];h=!(!h||!f);var i=function(y){return y.visible&&!(!e&&y.directTouch)&&P(y.options.enableMouseTracking,!0)},c={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:e};u(this,"beforeGetHoverData",c);var a=x&&!x.stickyTracking?[x]:l.filter(function(y){return y.stickyTracking&&(c.filter||i)(y)}),s=h||!r?f:this.findNearestKDPoint(a,e,r);return x=s&&s.series,s&&(e&&!x.noSharedTooltip?(a=l.filter(function(y){return c.filter?c.filter(y):i(y)&&!y.noSharedTooltip}),a.forEach(function(y){var A=d(y.points,function(_){return _.x===s.x&&!_.isNull});b(A)&&(y.boosted&&y.boost&&(A=y.boost.getPoint(A)),n.push(A))})):n.push(s)),u(this,"afterGetHoverData",c={hoverPoint:s}),{hoverPoint:c.hoverPoint,hoverSeries:x,hoverPoints:n}},M.prototype.getPointFromEvent=function(f){f=f.target;for(var x;f&&!x;)x=f.point,f=f.parentNode;return x},M.prototype.onTrackerMouseOut=function(f){f=f.relatedTarget||f.toElement;var x=this.chart.hoverSeries;this.isDirectTouch=!1,!x||!f||x.stickyTracking||this.inClass(f,"highcharts-tooltip")||this.inClass(f,"highcharts-series-"+x.index)&&this.inClass(f,"highcharts-tracker")||x.onMouseOut()},M.prototype.inClass=function(f,x){for(var l;f;){if(l=D(f,"class")){if(l.indexOf(x)!==-1)return!0;if(l.indexOf("highcharts-container")!==-1)return!1}f=f.parentElement}},M.prototype.init=function(f,x){this.options=x,this.chart=f,this.runChartClick=!(!x.chart.events||!x.chart.events.click),this.pinchDown=[],this.lastValidTouch={},X&&(f.tooltip=new X(f,x.tooltip)),this.setDOMEvents()},M.prototype.normalize=function(f,x){var l=f.touches,h=l?l.length?l.item(0):P(l.changedTouches,f.changedTouches)[0]:f;return x||(x=this.getChartPosition()),l=h.pageX-x.left,h=h.pageY-x.top,l/=x.scaleX,h/=x.scaleY,T(f,{chartX:Math.round(l),chartY:Math.round(h)})},M.prototype.onContainerClick=function(f){var x=this.chart,l=x.hoverPoint;f=this.normalize(f);var h=x.plotLeft,e=x.plotTop;x.cancelClick||(l&&this.inClass(f.target,"highcharts-tracker")?(u(l.series,"click",T(f,{point:l})),x.hoverPoint&&l.firePointEvent("click",f)):(T(f,this.getCoordinates(f)),x.isInsidePlot(f.chartX-h,f.chartY-e,{visiblePlotOnly:!0})&&u(x,"click",f)))},M.prototype.onContainerMouseDown=function(f){var x=(1&(f.buttons||f.button))==1;f=this.normalize(f),z.isFirefox&&f.button!==0&&this.onContainerMouseMove(f),(f.button===void 0||x)&&(this.zoomOption(f),x&&f.preventDefault&&f.preventDefault(),this.dragStart(f))},M.prototype.onContainerMouseLeave=function(f){var x=J[P(M.hoverChartIndex,-1)],l=this.chart.tooltip;f=this.normalize(f),x&&(f.relatedTarget||f.toElement)&&(x.pointer.reset(),x.pointer.chartPosition=void 0),l&&!l.isHidden&&this.reset()},M.prototype.onContainerMouseEnter=function(f){delete this.chartPosition},M.prototype.onContainerMouseMove=function(f){var x=this.chart,l=x.tooltip;f=this.normalize(f),this.setHoverChartIndex(),f.preventDefault||(f.returnValue=!1),(x.mouseIsDown==="mousedown"||this.touchSelect(f))&&this.drag(f),x.openMenu||!this.inClass(f.target,"highcharts-tracker")&&!x.isInsidePlot(f.chartX-x.plotLeft,f.chartY-x.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(f)||(this.inClass(f.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(f))},M.prototype.onDocumentTouchEnd=function(f){var x=J[P(M.hoverChartIndex,-1)];x&&x.pointer.drop(f)},M.prototype.onContainerTouchMove=function(f){this.touchSelect(f)?this.onContainerMouseMove(f):this.touch(f)},M.prototype.onContainerTouchStart=function(f){this.touchSelect(f)?this.onContainerMouseDown(f):(this.zoomOption(f),this.touch(f,!0))},M.prototype.onDocumentMouseMove=function(f){var x=this.chart,l=x.tooltip,h=this.chartPosition;f=this.normalize(f,h),!h||x.isInsidePlot(f.chartX-x.plotLeft,f.chartY-x.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(f)||this.inClass(f.target,"highcharts-tracker")||this.reset()},M.prototype.onDocumentMouseUp=function(f){var x=J[P(M.hoverChartIndex,-1)];x&&x.pointer.drop(f)},M.prototype.pinch=function(f){var x=this,l=x.chart,h=x.pinchDown,e=f.touches||[],r=e.length,n=x.lastValidTouch,i=x.hasZoom,c={},a=r===1&&(x.inClass(f.target,"highcharts-tracker")&&l.runTrackerClick||x.runChartClick),s={},y=x.chart.tooltip;y=r===1&&P(y&&y.options.followTouchMove,!0);var A=x.selectionMarker;1<r?x.initiated=!0:y&&(x.initiated=!1),i&&x.initiated&&!a&&f.cancelable!==!1&&f.preventDefault(),[].map.call(e,function(_){return x.normalize(_)}),f.type==="touchstart"?([].forEach.call(e,function(_,p){h[p]={chartX:_.chartX,chartY:_.chartY}}),n.x=[h[0].chartX,h[1]&&h[1].chartX],n.y=[h[0].chartY,h[1]&&h[1].chartY],l.axes.forEach(function(_){if(_.zoomEnabled){var p=l.bounds[_.horiz?"h":"v"],C=_.minPixelPadding,k=_.toPixels(Math.min(P(_.options.min,_.dataMin),_.dataMin)),F=_.toPixels(Math.max(P(_.options.max,_.dataMax),_.dataMax)),G=Math.max(k,F);p.min=Math.min(_.pos,Math.min(k,F)-C),p.max=Math.max(_.pos+_.len,G+C)}}),x.res=!0):y?this.runPointActions(x.normalize(f)):h.length&&(u(l,"touchpan",{originalEvent:f},function(){A||(x.selectionMarker=A=T({destroy:q,touch:!0},l.plotBox)),x.pinchTranslate(h,e,c,A,s,n),x.hasPinched=i,x.scaleGroups(c,s)}),x.res&&(x.res=!1,this.reset(!1,0)))},M.prototype.pinchTranslate=function(f,x,l,h,e,r){this.zoomHor&&this.pinchTranslateDirection(!0,f,x,l,h,e,r),this.zoomVert&&this.pinchTranslateDirection(!1,f,x,l,h,e,r)},M.prototype.pinchTranslateDirection=function(f,x,l,h,e,r,n,i){var c=this.chart,a=f?"x":"y",s=f?"X":"Y",y="chart"+s,A=f?"width":"height",_=c["plot"+(f?"Left":"Top")],p=c.inverted,C=c.bounds[f?"h":"v"],k=x.length===1,F=x[0][y],G=!k&&x[1][y];x=function(){typeof $=="number"&&20<Math.abs(F-G)&&(N=i||Math.abs(Z-$)/Math.abs(F-G)),j=(_-Z)/N+F,I=c["plot"+(f?"Width":"Height")]/N};var I,j,N=i||1,Z=l[0][y],$=!k&&l[1][y];if(x(),(l=j)<C.min){l=C.min;var Y=!0}else l+I>C.max&&(l=C.max-I,Y=!0);Y?(Z-=.8*(Z-n[a][0]),typeof $=="number"&&($-=.8*($-n[a][1])),x()):n[a]=[Z,$],p||(r[a]=j-_,r[A]=I),r=p?1/N:N,e[A]=I,e[a]=l,h[p?f?"scaleY":"scaleX":"scale"+s]=N,h["translate"+s]=r*_+(Z-r*F)},M.prototype.reset=function(f,x){var l=this.chart,h=l.hoverSeries,e=l.hoverPoint,r=l.hoverPoints,n=l.tooltip,i=n&&n.shared?r:e;f&&i&&E(i).forEach(function(c){c.series.isCartesian&&c.plotX===void 0&&(f=!1)}),f?n&&i&&E(i).length&&(n.refresh(i),n.shared&&r?r.forEach(function(c){c.setState(c.state,!0),c.series.isCartesian&&(c.series.xAxis.crosshair&&c.series.xAxis.drawCrosshair(null,c),c.series.yAxis.crosshair&&c.series.yAxis.drawCrosshair(null,c))}):e&&(e.setState(e.state,!0),l.axes.forEach(function(c){c.crosshair&&e.series[c.coll]===c&&c.drawCrosshair(null,e)}))):(e&&e.onMouseOut(),r&&r.forEach(function(c){c.setState()}),h&&h.onMouseOut(),n&&n.hide(x),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),l.axes.forEach(function(c){c.hideCrosshair()}),this.hoverX=l.hoverPoints=l.hoverPoint=null)},M.prototype.runPointActions=function(f,x,l){var h=this.chart,e=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,r=!!e&&e.shared,n=x||h.hoverPoint,i=n&&n.series||h.hoverSeries;x=this.getHoverData(n,i,h.series,(!f||f.type!=="touchmove")&&(!!x||i&&i.directTouch&&this.isDirectTouch),r,f),n=x.hoverPoint,i=x.hoverSeries;var c=x.hoverPoints;x=i&&i.tooltipOptions.followPointer&&!i.tooltipOptions.split;var a=r&&i&&!i.noSharedTooltip;if(n&&(l||n!==h.hoverPoint||e&&e.isHidden)){if((h.hoverPoints||[]).forEach(function(s){c.indexOf(s)===-1&&s.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach(function(s){s.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!n.series)return;h.hoverPoints=c,h.hoverPoint=n,n.firePointEvent("mouseOver",void 0,function(){e&&n&&e.refresh(a?c:n,f)})}else x&&e&&!e.isHidden&&(l=e.getAnchor([{}],f),h.isInsidePlot(l[0],l[1],{visiblePlotOnly:!0})&&e.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=W(h.container.ownerDocument,"mousemove",function(s){var y=J[M.hoverChartIndex];y&&y.pointer.onDocumentMouseMove(s)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(s){var y,A=P((s.crosshair||{}).snap,!0);A&&((y=h.hoverPoint)&&y.series[s.coll]===s||(y=d(c,function(_){return _.series&&_.series[s.coll]===s}))),y||!A?s.drawCrosshair(f,y):s.hideCrosshair()})},M.prototype.scaleGroups=function(f,x){var l=this.chart;l.series.forEach(function(h){var e=f||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||l.mapView)&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(x?l.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))}),l.clipRect.attr(x||l.clipBox)},M.prototype.setDOMEvents=function(){var f=this,x=this.chart.container,l=x.ownerDocument;x.onmousedown=this.onContainerMouseDown.bind(this),x.onmousemove=this.onContainerMouseMove.bind(this),x.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(W(x,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(W(x,"mouseleave",this.onContainerMouseLeave.bind(this))),M.unbindDocumentMouseUp||(M.unbindDocumentMouseUp=W(l,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&h.tagName!=="BODY";)this.eventsToUnbind.push(W(h,"scroll",function(){delete f.chartPosition})),h=h.parentElement;z.hasTouch&&(this.eventsToUnbind.push(W(x,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(W(x,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),M.unbindDocumentTouchEnd||(M.unbindDocumentTouchEnd=W(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},M.prototype.setHoverChartIndex=function(){var f=this.chart,x=z.charts[P(M.hoverChartIndex,-1)];x&&x!==f&&x.pointer.onContainerMouseLeave({relatedTarget:f.container}),x&&x.mouseIsDown||(M.hoverChartIndex=f.index)},M.prototype.touch=function(f,x){var l=this.chart;if(this.setHoverChartIndex(),f.touches.length===1)if(f=this.normalize(f),l.isInsidePlot(f.chartX-l.plotLeft,f.chartY-l.plotTop,{visiblePlotOnly:!0})&&!l.openMenu){if(x&&this.runPointActions(f),f.type==="touchmove")var h=!!(x=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(x[0].chartX-f.chartX,2)+Math.pow(x[0].chartY-f.chartY,2));P(h,!0)&&this.pinch(f)}else x&&this.reset();else f.touches.length===2&&this.pinch(f)},M.prototype.touchSelect=function(f){return!(!this.chart.options.chart.zooming.singleTouch||!f.touches||f.touches.length!==1)},M.prototype.zoomOption=function(f){var x=this.chart,l=x.options.chart;x=x.inverted;var h=l.zooming.type||"";/touch/.test(f.type)&&(h=P(l.zooming.pinchType,h)),this.zoomX=f=/x/.test(h),this.zoomY=l=/y/.test(h),this.zoomHor=f&&!x||l&&x,this.zoomVert=l&&!x||f&&x,this.hasZoom=f||l},M}(),U}),B(st,"Core/MSPointer.js",[st["Core/Globals.js"],st["Core/Pointer.js"],st["Core/Utilities.js"]],function(U,z,X){function V(){var S=[];return S.item=function(P){return this[P]},d(b,function(P){S.push({pageX:P.pageX,pageY:P.pageY,target:P.target})}),S}function K(S,P,E,M){var f=q[z.hoverChartIndex||NaN];S.pointerType!=="touch"&&S.pointerType!==S.MSPOINTER_TYPE_TOUCH||!f||(f=f.pointer,M(S),f[P]({type:E,target:S.currentTarget,preventDefault:D,touches:V()}))}var J=this&&this.__extends||function(){var S=function(P,E){return S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,f){M.__proto__=f}||function(M,f){for(var x in f)f.hasOwnProperty(x)&&(M[x]=f[x])},S(P,E)};return function(P,E){function M(){this.constructor=P}S(P,E),P.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}}(),q=U.charts,W=U.doc,D=U.noop,O=U.win,w=X.addEvent,T=X.css,d=X.objectEach,u=X.pick,g=X.removeEvent,b={},v=!!O.PointerEvent;return function(S){function P(){return S!==null&&S.apply(this,arguments)||this}return J(P,S),P.isRequired=function(){return!(U.hasTouch||!O.PointerEvent&&!O.MSPointerEvent)},P.prototype.batchMSEvents=function(E){E(this.chart.container,v?"pointerdown":"MSPointerDown",this.onContainerPointerDown),E(this.chart.container,v?"pointermove":"MSPointerMove",this.onContainerPointerMove),E(W,v?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},P.prototype.destroy=function(){this.batchMSEvents(g),S.prototype.destroy.call(this)},P.prototype.init=function(E,M){S.prototype.init.call(this,E,M),this.hasZoom&&T(E.container,{"-ms-touch-action":"none","touch-action":"none"})},P.prototype.onContainerPointerDown=function(E){K(E,"onContainerTouchStart","touchstart",function(M){b[M.pointerId]={pageX:M.pageX,pageY:M.pageY,target:M.currentTarget}})},P.prototype.onContainerPointerMove=function(E){K(E,"onContainerTouchMove","touchmove",function(M){b[M.pointerId]={pageX:M.pageX,pageY:M.pageY},b[M.pointerId].target||(b[M.pointerId].target=M.currentTarget)})},P.prototype.onDocumentPointerUp=function(E){K(E,"onDocumentTouchEnd","touchend",function(M){delete b[M.pointerId]})},P.prototype.setDOMEvents=function(){var E=this.chart.tooltip;S.prototype.setDOMEvents.call(this),(this.hasZoom||u(E&&E.options.followTouchMove,!0))&&this.batchMSEvents(w)},P}(z)}),B(st,"Core/Legend/Legend.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/FormatUtilities.js"],st["Core/Globals.js"],st["Core/Series/Point.js"],st["Core/Renderer/RendererUtilities.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=U.animObject,W=U.setAnimation,D=z.format,O=X.marginNames,w=K.distribute,T=J.addEvent,d=J.createElement,u=J.css,g=J.defined,b=J.discardElement,v=J.find,S=J.fireEvent,P=J.isNumber,E=J.merge,M=J.pick,f=J.relativeLength,x=J.stableSort,l=J.syncTimeout;return U=function(){function h(e,r){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=e,this.init(e,r)}return h.prototype.init=function(e,r){this.chart=e,this.setOptions(r),r.enabled&&(this.render(),T(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=T(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(e){var r=M(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=E(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.itemMarginBottom=e.itemMarginBottom||0,this.padding=r,this.initialItemY=r-5,this.symbolWidth=M(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(e,r){var n=this.chart;this.setOptions(E(!0,this.options,e)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,M(r,!0)&&n.redraw(),S(this,"afterUpdate")},h.prototype.colorizeItem=function(e,r){var n=e.legendItem||{},i=n.group,c=n.label,a=n.line;if(n=n.symbol,i&&i[r?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var s=this.options;i=this.itemHiddenStyle.color,s=r?s.itemStyle.color:i;var y=r&&e.color||i,A=e.options&&e.options.marker,_={fill:y};c&&c.css({fill:s,color:s}),a&&a.attr({stroke:y}),n&&(A&&n.isMarker&&(_=e.pointAttribs(),r||(_.stroke=_.fill=i)),n.attr(_))}S(this,"afterColorizeItem",{item:e,visible:r})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(e){var r=this,n=e.legendItem||{},i=n.group,c=n.x;c=c===void 0?0:c,n=(n=n.y)===void 0?0:n;var a=this.options,s=a.symbolPadding,y=!a.rtl;a=e.checkbox,i&&i.element&&(s={translateX:y?c:this.legendWidth-c-2*s-4,translateY:n},i[g(i.translateY)?"animate":"attr"](s,void 0,function(){S(r,"afterPositionItem",{item:e})})),a&&(a.x=c,a.y=n)},h.prototype.destroyItem=function(e){for(var r=e.checkbox,n=e.legendItem||{},i=0,c=["group","label","line","symbol"];i<c.length;i++){var a=c[i];n[a]&&(n[a]=n[a].destroy())}r&&b(r),e.legendItem=void 0},h.prototype.destroy=function(){for(var e=0,r=this.getAllItems();e<r.length;e++)this.destroyItem(r[e]);for(e=0,r="clipRect up down pager nav box title group".split(" ");e<r.length;e++){var n=r[e];this[n]&&(this[n]=this[n].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var e=this.group&&this.group.alignAttr,r=this.clipHeight||this.legendHeight,n=this.titleHeight;if(e){var i=e.translateY;this.allItems.forEach(function(c){var a=c.checkbox;if(a){var s=i+n+a.y+(this.scrollOffset||0)+3;u(a,{left:e.translateX+c.checkboxOffset+a.x-20+"px",top:s+"px",display:this.proximate||s>i-6&&s<i+r-6?"":"none"})}},this)}},h.prototype.renderTitle=function(){var e=this.options,r=this.padding,n=e.title,i=0;n.text&&(this.title||(this.title=this.chart.renderer.label(n.text,r-3,r-4,void 0,void 0,void 0,e.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(n.style),this.title.add(this.group)),n.width||this.title.css({width:this.maxLegendWidth+"px"}),i=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:i})),this.titleHeight=i},h.prototype.setText=function(e){var r=this.options;e.legendItem.label.attr({text:r.labelFormat?D(r.labelFormat,e,this.chart):r.labelFormatter.call(e)})},h.prototype.renderItem=function(e){var r=e.legendItem=e.legendItem||{},n=this.chart,i=n.renderer,c=this.options,a=this.symbolWidth,s=c.symbolPadding||0,y=this.itemStyle,A=this.itemHiddenStyle,_=c.layout==="horizontal"?M(c.itemDistance,20):0,p=!c.rtl,C=!e.series,k=!C&&e.series.drawLegendSymbol?e.series:e,F=k.options,G=this.createCheckboxForItem&&F&&F.showCheckbox,I=c.useHTML,j=e.options.className,N=r.label;F=a+s+_+(G?20:0),N||(r.group=i.g("legend-item").addClass("highcharts-"+k.type+"-series highcharts-color-"+e.colorIndex+(j?" "+j:"")+(C?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),r.label=N=i.text("",p?a+s:-s,this.baseline||0,I),n.styledMode||N.css(E(e.visible?y:A)),N.attr({align:p?"left":"right",zIndex:2}).add(r.group),this.baseline||(this.fontMetrics=i.fontMetrics(n.styledMode?12:y.fontSize,N),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,N.attr("y",this.baseline),this.symbolHeight=c.symbolHeight||this.fontMetrics.f,c.squareSymbol&&(this.symbolWidth=M(c.symbolWidth,Math.max(this.symbolHeight,16)),F=this.symbolWidth+s+_+(G?20:0),p&&N.attr("x",this.symbolWidth+s))),k.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,N,I)),G&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!n.styledMode&&y.width||N.css({width:(c.itemWidth||this.widthOption||n.spacingBox.width)-F+"px"}),this.setText(e),n=N.getBBox(),i=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=c.itemWidth||r.labelWidth||n.width+F,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(r.labelHeight||(n.height>1.5*i?n.height:i))},h.prototype.layoutItem=function(e){var r=this.options,n=this.padding,i=r.layout==="horizontal",c=e.itemHeight,a=this.itemMarginBottom,s=this.itemMarginTop,y=i?M(r.itemDistance,20):0,A=this.maxLegendWidth;r=r.alignColumns&&this.totalItemWidth>A?this.maxItemWidth:e.itemWidth;var _=e.legendItem||{};i&&this.itemX-n+r>A&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=s+this.itemY+a,this.lastLineHeight=Math.max(c,this.lastLineHeight),_.x=this.itemX,_.y=this.itemY,i?this.itemX+=r:(this.itemY+=s+c+a,this.lastLineHeight=c),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-n-(e.checkbox?0:y):r)+n,this.offsetWidth)},h.prototype.getAllItems=function(){var e=[];return this.chart.series.forEach(function(r){var n=r&&r.options;r&&M(n.showInLegend,!g(n.linkedTo)&&void 0,!0)&&(e=e.concat((r.legendItem||{}).labels||(n.legendType==="point"?r.data:r)))}),S(this,"afterGetAllItems",{allItems:e}),e},h.prototype.getAlignment=function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},h.prototype.adjustMargins=function(e,r){var n=this.chart,i=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,s){a.test(c)&&!g(e[s])&&(n[O[s]]=Math.max(n[O[s]],n.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+M(i.margin,12)+r[s]+(n.titleOffset[s]||0)))})},h.prototype.proximatePositions=function(){var e=this.chart,r=[],n=this.options.align==="left";this.allItems.forEach(function(y){var A,_=n;if(y.yAxis){y.xAxis.options.reversed&&(_=!_),y.points&&(A=v(_?y.points:y.points.slice(0).reverse(),function(C){return P(C.plotY)})),_=this.itemMarginTop+y.legendItem.label.getBBox().height+this.itemMarginBottom;var p=y.yAxis.top-e.plotTop;y.visible?(A=A?A.plotY:y.yAxis.height,A+=p-.3*_):A=p+y.yAxis.height,r.push({target:A,size:_,item:y})}},this);for(var i,c=0,a=w(r,e.plotHeight);c<a.length;c++){var s=a[c];i=s.item.legendItem||{},P(s.pos)&&(i.y=e.plotTop-e.spacing[0]+s.pos)}},h.prototype.render=function(){var e=this.chart,r=e.renderer,n=this.options,i=this.padding,c=this.getAllItems(),a=this.group,s=this.box;this.itemX=i,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=f(n.width,e.spacingBox.width-i);var y=e.spacingBox.width-2*i-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(y/=2),this.maxLegendWidth=this.widthOption||y,a||(this.group=a=r.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=r.g().attr({zIndex:1}).add(a),this.scrollGroup=r.g().add(this.contentGroup)),this.renderTitle(),x(c,function(_,p){return(_.options&&_.options.legendIndex||0)-(p.options&&p.options.legendIndex||0)}),n.reversed&&c.reverse(),this.allItems=c,this.display=y=!!c.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,c.forEach(this.renderItem,this),c.forEach(this.layoutItem,this),c=(this.widthOption||this.offsetWidth)+i;var A=this.lastItemY+this.lastLineHeight+this.titleHeight;A=this.handleOverflow(A),A+=i,s||(this.box=s=r.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(a)),e.styledMode||s.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0<c&&0<A&&s[s.placed?"animate":"attr"](s.crisp.call({},{x:0,y:0,width:c,height:A},s.strokeWidth())),a[y?"show":"hide"](),e.styledMode&&a.getStyle("display")==="none"&&(c=A=0),this.legendWidth=c,this.legendHeight=A,y&&this.align(),this.proximate||this.positionItems(),S(this,"afterRender")},h.prototype.align=function(e){e===void 0&&(e=this.chart.spacingBox);var r=this.chart,n=this.options,i=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<r.titleOffset[0]?i+=r.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<r.titleOffset[2]&&(i-=r.titleOffset[2]),i!==e.y&&(e=E(e,{y:i})),r.hasRendered||(this.group.placed=!1),this.group.align(E(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)},h.prototype.handleOverflow=function(e){var r,n,i,c=this,a=this.chart,s=a.renderer,y=this.options,A=y.y,_=y.verticalAlign==="top",p=this.padding,C=y.maxHeight,k=y.navigation,F=M(k.animation,!0),G=k.arrowSize||12,I=this.pages,j=this.allItems,N=function(et){typeof et=="number"?Y.attr({height:et}):Y&&(c.clipRect=Y.destroy(),c.contentGroup.clip()),c.contentGroup.div&&(c.contentGroup.div.style.clip=et?"rect("+p+"px,9999px,"+(p+et)+"px,0)":"auto")},Z=function(et){return c[et]=s.circle(0,0,1.3*G).translate(G/2,G/2).add($),a.styledMode||c[et].attr("fill","rgba(0,0,0,0.0001)"),c[et]};A=a.spacingBox.height+(_?-A:A)-p;var $=this.nav,Y=this.clipRect;return y.layout!=="horizontal"||y.verticalAlign==="middle"||y.floating||(A/=2),C&&(A=Math.min(A,C)),I.length=0,e&&0<A&&e>A&&k.enabled!==!1?(this.clipHeight=r=Math.max(A-20-this.titleHeight-p,0),this.currentPage=M(this.currentPage,1),this.fullHeight=e,j.forEach(function(et,rt){et=(i=et.legendItem||{}).y||0;var it=Math.round(i.label.getBBox().height),ht=I.length;(!ht||et-I[ht-1]>r&&(n||et)!==I[ht-1])&&(I.push(n||et),ht++),i.pageIx=ht-1,n&&((j[rt-1].legendItem||{}).pageIx=ht-1),rt===j.length-1&&et+it-I[ht-1]>r&&it<=r&&(I.push(et),i.pageIx=ht),et!==n&&(n=et)}),Y||(Y=c.clipRect=s.clipRect(0,p,9999,0),c.contentGroup.clip(Y)),N(r),$||(this.nav=$=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,G,G).add($),Z("upTracker").on("click",function(){c.scroll(-1,F)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&k.style&&this.pager.css(k.style),this.pager.add($),this.down=s.symbol("triangle-down",0,0,G,G).add($),Z("downTracker").on("click",function(){c.scroll(1,F)})),c.scroll(0),e=A):$&&(N(),this.nav=$.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},h.prototype.scroll=function(e,r){var n=this,i=this.chart,c=this.pages,a=c.length,s=this.clipHeight,y=this.options.navigation,A=this.pager,_=this.padding,p=this.currentPage+e;p>a&&(p=a),0<p&&(r!==void 0&&W(r,i),this.nav.attr({translateX:_,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(C){C.attr({class:p===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),A.attr({text:p+"/"+a}),[this.down,this.downTracker].forEach(function(C){C.attr({x:18+this.pager.getBBox().width,class:p===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:p===1?y.inactiveColor:y.activeColor}),this.upTracker.css({cursor:p===1?"default":"pointer"}),this.down.attr({fill:p===a?y.inactiveColor:y.activeColor}),this.downTracker.css({cursor:p===a?"default":"pointer"})),this.scrollOffset=-c[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes(),e=q(M(r,i.renderer.globalAnimation,!0)),l(function(){S(n,"afterScroll",{currentPage:p})},e.duration))},h.prototype.setItemEvents=function(e,r,n){var i=this,c=e.legendItem||{},a=i.chart.renderer.boxWrapper,s=e instanceof V,y="highcharts-legend-"+(s?"point":"series")+"-active",A=i.chart.styledMode,_=function(C){i.allItems.forEach(function(k){e!==k&&[k].concat(k.linkedSeries||[]).forEach(function(F){F.setState(C,!s)})})},p=0;for(n=n?[r,c.symbol]:[c.group];p<n.length;p++)(c=n[p])&&c.on("mouseover",function(){e.visible&&_("inactive"),e.setState("hover"),e.visible&&a.addClass(y),A||r.css(i.options.itemHoverStyle)}).on("mouseout",function(){i.chart.styledMode||r.css(E(e.visible?i.itemStyle:i.itemHiddenStyle)),_(""),a.removeClass(y),e.setState()}).on("click",function(C){var k=function(){e.setVisible&&e.setVisible(),_(e.visible?"inactive":"")};a.removeClass(y),C={browserEvent:C},e.firePointEvent?e.firePointEvent("legendItemClick",C,k):S(e,"legendItemClick",C,k)})},h.prototype.createCheckboxForItem=function(e){e.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),T(e.checkbox,"click",function(r){S(e.series||e,"checkboxClick",{checked:r.target.checked,item:e},function(){e.select()})})},h}(),U}),B(st,"Core/Series/SeriesRegistry.js",[st["Core/Globals.js"],st["Core/Defaults.js"],st["Core/Series/Point.js"],st["Core/Utilities.js"]],function(U,z,X,V){var K,J=z.defaultOptions,q=V.extendClass,W=V.merge;return function(D){function O(w,T){var d=J.plotOptions||{},u=T.defaultOptions,g=T.prototype;g.type=w,g.pointClass||(g.pointClass=X),u&&(d[w]=u),D.seriesTypes[w]=T}D.seriesTypes=U.seriesTypes,D.registerSeriesType=O,D.seriesType=function(w,T,d,u,g){var b=J.plotOptions||{};return T=T||"",b[w]=W(b[T],d),O(w,q(D.seriesTypes[T]||function(){},u)),D.seriesTypes[w].prototype.type=w,g&&(D.seriesTypes[w].prototype.pointClass=q(X,g)),D.seriesTypes[w]}}(K||(K={})),K}),B(st,"Core/Chart/Chart.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Axis/Axis.js"],st["Core/Defaults.js"],st["Core/FormatUtilities.js"],st["Core/Foundation.js"],st["Core/Globals.js"],st["Core/Legend/Legend.js"],st["Core/MSPointer.js"],st["Core/Pointer.js"],st["Core/Renderer/RendererRegistry.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Renderer/SVG/SVGRenderer.js"],st["Core/Time.js"],st["Core/Utilities.js"],st["Core/Renderer/HTML/AST.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T,d,u,g){var b=U.animate,v=U.animObject,S=U.setAnimation,P=X.defaultOptions,E=X.defaultTime,M=V.numberFormat,f=K.registerEventOptions,x=J.charts,l=J.doc,h=J.marginNames,e=J.svg,r=J.win,n=w.seriesTypes,i=u.addEvent,c=u.attr,a=u.cleanRecursively,s=u.createElement,y=u.css,A=u.defined,_=u.discardElement,p=u.erase,C=u.error,k=u.extend,F=u.find,G=u.fireEvent,I=u.getStyle,j=u.isArray,N=u.isNumber,Z=u.isObject,$=u.isString,Y=u.merge,et=u.objectEach,rt=u.pick,it=u.pInt,ht=u.relativeLength,dt=u.removeEvent,bt=u.splat,xt=u.syncTimeout,St=u.uniqueKey;return U=function(){function wt(mt,at,pt){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(mt,at,pt)}return wt.chart=function(mt,at,pt){return new wt(mt,at,pt)},wt.prototype.getArgs=function(mt,at,pt){$(mt)||mt.nodeName?(this.renderTo=mt,this.init(at,pt)):this.init(mt,at)},wt.prototype.init=function(mt,at){var pt=mt.plotOptions||{};G(this,"init",{args:arguments},function(){var vt=Y(P,mt),Ct=vt.chart;et(vt.plotOptions,function(At,Lt){Z(At)&&(At.tooltip=pt[Lt]&&Y(pt[Lt].tooltip)||void 0)}),vt.tooltip.userOptions=mt.chart&&mt.chart.forExport&&mt.tooltip.userOptions||mt.tooltip,this.userOptions=mt,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=at,this.isResizing=0;var Tt=Ct.zooming=Ct.zooming||{};mt.chart&&!mt.chart.zooming&&(Tt.resetButton=Ct.resetZoomButton),Tt.key=rt(Tt.key,Ct.zoomKey),Tt.pinchType=rt(Tt.pinchType,Ct.pinchType),Tt.singleTouch=rt(Tt.singleTouch,Ct.zoomBySingleTouch),Tt.type=rt(Tt.type,Ct.zoomType),this.options=vt,this.axes=[],this.series=[],this.time=mt.time&&Object.keys(mt.time).length?new d(mt.time):J.time,this.numberFormatter=Ct.numberFormatter||M,this.styledMode=Ct.styledMode,this.hasCartesianSeries=Ct.showAxes,this.index=x.length,x.push(this),J.chartCount++,f(this,Ct),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,G(this,"afterInit"),this.firstRender()})},wt.prototype.initSeries=function(mt){var at=this.options.chart;at=mt.type||at.type||at.defaultSeriesType;var pt=n[at];return pt||C(17,!0,this,{missingModuleFor:at}),typeof(at=new pt).init=="function"&&at.init(this,mt),at},wt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(mt){mt.points||mt.data||!mt.enabledDataSorting||mt.setData(mt.options.data,!1)})},wt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(mt,at){return mt.linkedSeries.length||at.linkedSeries.length?at.linkedSeries.length-mt.linkedSeries.length:0})},wt.prototype.orderSeries=function(mt){var at=this.series;mt=mt||0;for(var pt=at.length;mt<pt;++mt)at[mt]&&(at[mt].index=mt,at[mt].name=at[mt].getName())},wt.prototype.isInsidePlot=function(mt,at,pt){pt===void 0&&(pt={});var vt=this.inverted,Ct=this.plotBox,Tt=this.plotLeft,At=this.plotTop,Lt=this.scrollablePlotBox,Ot=0,_t=0;pt.visiblePlotOnly&&this.scrollingContainer&&(Ot=(_t=this.scrollingContainer).scrollLeft,_t=_t.scrollTop);var It=pt.series;if(Ct=pt.visiblePlotOnly&&Lt||Ct,mt={x:Lt=pt.inverted?at:mt,y:at=pt.inverted?mt:at,isInsidePlot:!0,options:pt},!pt.ignoreX){var zt=It&&(vt&&!this.polar?It.yAxis:It.xAxis)||{pos:Tt,len:1/0};(Lt=pt.paneCoordinates?zt.pos+Lt:Tt+Lt)>=Math.max(Ot+Tt,zt.pos)&&Lt<=Math.min(Ot+Tt+Ct.width,zt.pos+zt.len)||(mt.isInsidePlot=!1)}return!pt.ignoreY&&mt.isInsidePlot&&(vt=pt.axis&&!pt.axis.isXAxis&&pt.axis||It&&(vt?It.xAxis:It.yAxis)||{pos:At,len:1/0},(pt=pt.paneCoordinates?vt.pos+at:At+at)>=Math.max(_t+At,vt.pos)&&pt<=Math.min(_t+At+Ct.height,vt.pos+vt.len)||(mt.isInsidePlot=!1)),G(this,"afterIsInsidePlot",mt),mt.isInsidePlot},wt.prototype.redraw=function(mt){G(this,"beforeRedraw");var at=this.hasCartesianSeries?this.axes:this.colorAxis||[],pt=this.series,vt=this.pointer,Ct=this.legend,Tt=this.userOptions.legend,At=this.renderer,Lt=At.isHidden(),Ot=[],_t=this.isDirtyBox,It=this.isDirtyLegend;for(this.setResponsive&&this.setResponsive(!1),S(!!this.hasRendered&&mt,this),Lt&&this.temporaryDisplay(),this.layOutTitles(),mt=pt.length;mt--;){var zt=pt[mt];if(zt.options.stacking||zt.options.centerInCategory){var Rt=!0;if(zt.isDirty){var Ut=!0;break}}}if(Ut)for(mt=pt.length;mt--;)(zt=pt[mt]).options.stacking&&(zt.isDirty=!0);pt.forEach(function(Xt){Xt.isDirty&&(Xt.options.legendType==="point"?(typeof Xt.updateTotals=="function"&&Xt.updateTotals(),It=!0):Tt&&(Tt.labelFormatter||Tt.labelFormat)&&(It=!0)),Xt.isDirtyData&&G(Xt,"updatedData")}),It&&Ct&&Ct.options.enabled&&(Ct.render(),this.isDirtyLegend=!1),Rt&&this.getStacks(),at.forEach(function(Xt){Xt.updateNames(),Xt.setScale()}),this.getMargins(),at.forEach(function(Xt){Xt.isDirty&&(_t=!0)}),at.forEach(function(Xt){var Ht=Xt.min+","+Xt.max;Xt.extKey!==Ht&&(Xt.extKey=Ht,Ot.push(function(){G(Xt,"afterSetExtremes",k(Xt.eventArgs,Xt.getExtremes())),delete Xt.eventArgs})),(_t||Rt)&&Xt.redraw()}),_t&&this.drawChartBox(),G(this,"predraw"),pt.forEach(function(Xt){(_t||Xt.isDirty)&&Xt.visible&&Xt.redraw(),Xt.isDirtyData=!1}),vt&&vt.reset(!0),At.draw(),G(this,"redraw"),G(this,"render"),Lt&&this.temporaryDisplay(!0),Ot.forEach(function(Xt){Xt.call()})},wt.prototype.get=function(mt){function at(Tt){return Tt.id===mt||Tt.options&&Tt.options.id===mt}for(var pt=this.series,vt=F(this.axes,at)||F(this.series,at),Ct=0;!vt&&Ct<pt.length;Ct++)vt=F(pt[Ct].points||[],at);return vt},wt.prototype.getAxes=function(){var mt=this,at=this.options,pt=at.xAxis=bt(at.xAxis||{});at=at.yAxis=bt(at.yAxis||{}),G(this,"getAxes"),pt.forEach(function(vt,Ct){vt.index=Ct,vt.isX=!0}),at.forEach(function(vt,Ct){vt.index=Ct}),pt.concat(at).forEach(function(vt){new z(mt,vt)}),G(this,"afterGetAxes")},wt.prototype.getSelectedPoints=function(){return this.series.reduce(function(mt,at){return at.getPointsCollection().forEach(function(pt){rt(pt.selectedStaging,pt.selected)&&mt.push(pt)}),mt},[])},wt.prototype.getSelectedSeries=function(){return this.series.filter(function(mt){return mt.selected})},wt.prototype.setTitle=function(mt,at,pt){this.applyDescription("title",mt),this.applyDescription("subtitle",at),this.applyDescription("caption",void 0),this.layOutTitles(pt)},wt.prototype.applyDescription=function(mt,at){var pt=this,vt=mt==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};vt=this.options[mt]=Y(!this.styledMode&&{style:vt},this.options[mt],at);var Ct=this[mt];Ct&&at&&(this[mt]=Ct=Ct.destroy()),vt&&!Ct&&((Ct=this.renderer.text(vt.text,0,0,vt.useHTML).attr({align:vt.align,class:"highcharts-"+mt,zIndex:vt.zIndex||4}).add()).update=function(Tt){pt[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[mt]](Tt)},this.styledMode||Ct.css(vt.style),this[mt]=Ct)},wt.prototype.layOutTitles=function(mt){var at=[0,0,0],pt=this.renderer,vt=this.spacingBox;["title","subtitle","caption"].forEach(function(Tt){var At,Lt=this[Tt],Ot=this.options[Tt],_t=Ot.verticalAlign||"top";if(Tt=Tt==="title"?_t==="top"?-3:0:_t==="top"?at[0]+2:0,Lt){this.styledMode||(At=Ot.style&&Ot.style.fontSize),At=pt.fontMetrics(At,Lt).b,Lt.css({width:(Ot.width||vt.width+(Ot.widthAdjust||0))+"px"});var It=Math.round(Lt.getBBox(Ot.useHTML).height);Lt.align(k({y:_t==="bottom"?At:Tt+At,height:It},Ot),!1,"spacingBox"),Ot.floating||(_t==="top"?at[0]=Math.ceil(at[0]+It):_t==="bottom"&&(at[2]=Math.ceil(at[2]+It)))}},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,G(this,"afterLayOutTitles"),!this.isDirtyBox&&Ct&&(this.isDirtyBox=this.isDirtyLegend=Ct,this.hasRendered&&rt(mt,!0)&&this.isDirtyBox&&this.redraw())},wt.prototype.getChartSize=function(){var mt=this.options.chart,at=mt.width;mt=mt.height;var pt=this.renderTo;A(at)||(this.containerWidth=I(pt,"width")),A(mt)||(this.containerHeight=I(pt,"height")),this.chartWidth=Math.max(0,at||this.containerWidth||600),this.chartHeight=Math.max(0,ht(mt,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},wt.prototype.temporaryDisplay=function(mt){var at=this.renderTo;if(mt)for(;at&&at.style;)at.hcOrigStyle&&(y(at,at.hcOrigStyle),delete at.hcOrigStyle),at.hcOrigDetached&&(l.body.removeChild(at),at.hcOrigDetached=!1),at=at.parentNode;else for(;at&&at.style&&(l.body.contains(at)||at.parentNode||(at.hcOrigDetached=!0,l.body.appendChild(at)),(I(at,"display",!1)==="none"||at.hcOricDetached)&&(at.hcOrigStyle={display:at.style.display,height:at.style.height,overflow:at.style.overflow},mt={display:"block",overflow:"hidden"},at!==this.renderTo&&(mt.height=0),y(at,mt),at.offsetWidth||at.style.setProperty("display","block","important")),(at=at.parentNode)!==l.body););},wt.prototype.setClassName=function(mt){this.container.className="highcharts-container "+(mt||"")},wt.prototype.getContainer=function(){var mt,at=this.options,pt=at.chart,vt=St(),Ct=this.renderTo;Ct||(this.renderTo=Ct=pt.renderTo),$(Ct)&&(this.renderTo=Ct=l.getElementById(Ct)),Ct||C(13,!0,this);var Tt=it(c(Ct,"data-highcharts-chart"));N(Tt)&&x[Tt]&&x[Tt].hasRendered&&x[Tt].destroy(),c(Ct,"data-highcharts-chart",this.index),Ct.innerHTML=g.emptyHTML,pt.skipClone||Ct.offsetWidth||this.temporaryDisplay(),this.getChartSize(),Tt=this.chartWidth;var At=this.chartHeight;if(y(Ct,{overflow:"hidden"}),this.styledMode||(mt=k({position:"relative",overflow:"hidden",width:Tt+"px",height:At+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},pt.style||{})),this.container=vt=s("div",{id:vt},mt,Ct),this._cursor=vt.style.cursor,this.renderer=new(pt.renderer||!e?O.getRendererType(pt.renderer):T)(vt,Tt,At,void 0,pt.forExport,at.exporting&&at.exporting.allowHTML,this.styledMode),S(void 0,this),this.setClassName(pt.className),this.styledMode)for(var Lt in at.defs)this.renderer.definition(at.defs[Lt]);else this.renderer.setStyle(pt.style);this.renderer.chartIndex=this.index,G(this,"afterGetContainer")},wt.prototype.getMargins=function(mt){var at=this.spacing,pt=this.margin,vt=this.titleOffset;this.resetMargins(),vt[0]&&!A(pt[0])&&(this.plotTop=Math.max(this.plotTop,vt[0]+at[0])),vt[2]&&!A(pt[2])&&(this.marginBottom=Math.max(this.marginBottom,vt[2]+at[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(pt,at),G(this,"getMargins"),mt||this.getAxisMargins()},wt.prototype.getAxisMargins=function(){var mt=this,at=mt.axisOffset=[0,0,0,0],pt=mt.colorAxis,vt=mt.margin,Ct=function(Tt){Tt.forEach(function(At){At.visible&&At.getOffset()})};mt.hasCartesianSeries?Ct(mt.axes):pt&&pt.length&&Ct(pt),h.forEach(function(Tt,At){A(vt[At])||(mt[Tt]+=at[At])}),mt.setChartSize()},wt.prototype.reflow=function(mt){var at=this,pt=at.options.chart,vt=at.renderTo,Ct=A(pt.width)&&A(pt.height),Tt=pt.width||I(vt,"width");pt=pt.height||I(vt,"height"),vt=mt?mt.target:r,delete at.pointer.chartPosition,Ct||at.isPrinting||!Tt||!pt||vt!==r&&vt!==l||(Tt===at.containerWidth&&pt===at.containerHeight||(u.clearTimeout(at.reflowTimeout),at.reflowTimeout=xt(function(){at.container&&at.setSize(void 0,void 0,!1)},mt?100:0)),at.containerWidth=Tt,at.containerHeight=pt)},wt.prototype.setReflow=function(mt){var at=this;mt===!1||this.unbindReflow?mt===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=i(r,"resize",function(pt){at.options&&at.reflow(pt)}),i(this,"destroy",this.unbindReflow))},wt.prototype.setSize=function(mt,at,pt){var vt=this,Ct=vt.renderer;vt.isResizing+=1,S(pt,vt),pt=Ct.globalAnimation,vt.oldChartHeight=vt.chartHeight,vt.oldChartWidth=vt.chartWidth,mt!==void 0&&(vt.options.chart.width=mt),at!==void 0&&(vt.options.chart.height=at),vt.getChartSize(),vt.styledMode||(pt?b:y)(vt.container,{width:vt.chartWidth+"px",height:vt.chartHeight+"px"},pt),vt.setChartSize(!0),Ct.setSize(vt.chartWidth,vt.chartHeight,pt),vt.axes.forEach(function(Tt){Tt.isDirty=!0,Tt.setScale()}),vt.isDirtyLegend=!0,vt.isDirtyBox=!0,vt.layOutTitles(),vt.getMargins(),vt.redraw(pt),vt.oldChartHeight=null,G(vt,"resize"),xt(function(){vt&&G(vt,"endResize",null,function(){--vt.isResizing})},v(pt).duration)},wt.prototype.setChartSize=function(mt){var at,pt,vt,Ct,Tt=this.inverted,At=this.renderer,Lt=this.chartWidth,Ot=this.chartHeight,_t=this.options.chart,It=this.spacing,zt=this.clipOffset;this.plotLeft=at=Math.round(this.plotLeft),this.plotTop=pt=Math.round(this.plotTop),this.plotWidth=vt=Math.max(0,Math.round(Lt-at-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(Ot-pt-this.marginBottom)),this.plotSizeX=Tt?Ct:vt,this.plotSizeY=Tt?vt:Ct,this.plotBorderWidth=_t.plotBorderWidth||0,this.spacingBox=At.spacingBox={x:It[3],y:It[0],width:Lt-It[3]-It[1],height:Ot-It[0]-It[2]},this.plotBox=At.plotBox={x:at,y:pt,width:vt,height:Ct},Tt=2*Math.floor(this.plotBorderWidth/2),Lt=Math.ceil(Math.max(Tt,zt[3])/2),Ot=Math.ceil(Math.max(Tt,zt[0])/2),this.clipBox={x:Lt,y:Ot,width:Math.floor(this.plotSizeX-Math.max(Tt,zt[1])/2-Lt),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(Tt,zt[2])/2-Ot))},mt||(this.axes.forEach(function(Rt){Rt.setAxisSize(),Rt.setAxisTranslation()}),At.alignElements()),G(this,"afterSetChartSize",{skipAxes:mt})},wt.prototype.resetMargins=function(){G(this,"resetMargins");var mt=this,at=mt.options.chart;["margin","spacing"].forEach(function(pt){var vt=at[pt],Ct=Z(vt)?vt:[vt,vt,vt,vt];["Top","Right","Bottom","Left"].forEach(function(Tt,At){mt[pt][At]=rt(at[pt+Tt],Ct[At])})}),h.forEach(function(pt,vt){mt[pt]=rt(mt.margin[vt],mt.spacing[vt])}),mt.axisOffset=[0,0,0,0],mt.clipOffset=[0,0,0,0]},wt.prototype.drawChartBox=function(){var mt,at=this.options.chart,pt=this.renderer,vt=this.chartWidth,Ct=this.chartHeight,Tt=this.styledMode,At=this.plotBGImage,Lt=at.backgroundColor,Ot=at.plotBackgroundColor,_t=at.plotBackgroundImage,It=this.plotLeft,zt=this.plotTop,Rt=this.plotWidth,Ut=this.plotHeight,Xt=this.plotBox,Ht=this.clipRect,qt=this.clipBox,Kt=this.chartBackground,fe=this.plotBackground,Qt=this.plotBorder,oe="animate";if(Kt||(this.chartBackground=Kt=pt.rect().addClass("highcharts-background").add(),oe="attr"),Tt)var xe=mt=Kt.strokeWidth();else mt=(xe=at.borderWidth||0)+(at.shadow?8:0),Lt={fill:Lt||"none"},(xe||Kt["stroke-width"])&&(Lt.stroke=at.borderColor,Lt["stroke-width"]=xe),Kt.attr(Lt).shadow(at.shadow);Kt[oe]({x:mt/2,y:mt/2,width:vt-mt-xe%2,height:Ct-mt-xe%2,r:at.borderRadius}),oe="animate",fe||(oe="attr",this.plotBackground=fe=pt.rect().addClass("highcharts-plot-background").add()),fe[oe](Xt),Tt||(fe.attr({fill:Ot||"none"}).shadow(at.plotShadow),_t&&(At?(_t!==At.attr("href")&&At.attr("href",_t),At.animate(Xt)):this.plotBGImage=pt.image(_t,It,zt,Rt,Ut).add())),Ht?Ht.animate({width:qt.width,height:qt.height}):this.clipRect=pt.clipRect(qt),oe="animate",Qt||(oe="attr",this.plotBorder=Qt=pt.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Tt||Qt.attr({stroke:at.plotBorderColor,"stroke-width":at.plotBorderWidth||0,fill:"none"}),Qt[oe](Qt.crisp({x:It,y:zt,width:Rt,height:Ut},-Qt.strokeWidth())),this.isDirtyBox=!1,G(this,"afterDrawChartBox")},wt.prototype.propFromSeries=function(){var mt,at,pt,vt=this,Ct=vt.options.chart,Tt=vt.options.series;["inverted","angular","polar"].forEach(function(At){for(at=n[Ct.type||Ct.defaultSeriesType],pt=Ct[At]||at&&at.prototype[At],mt=Tt&&Tt.length;!pt&&mt--;)(at=n[Tt[mt].type])&&at.prototype[At]&&(pt=!0);vt[At]=pt})},wt.prototype.linkSeries=function(){var mt=this,at=mt.series;at.forEach(function(pt){pt.linkedSeries.length=0}),at.forEach(function(pt){var vt=pt.options.linkedTo;$(vt)&&(vt=vt===":previous"?mt.series[pt.index-1]:mt.get(vt))&&vt.linkedParent!==pt&&(vt.linkedSeries.push(pt),pt.linkedParent=vt,vt.enabledDataSorting&&pt.setDataSortingOptions(),pt.visible=rt(pt.options.visible,vt.options.visible,pt.visible))}),G(this,"afterLinkSeries")},wt.prototype.renderSeries=function(){this.series.forEach(function(mt){mt.translate(),mt.render()})},wt.prototype.renderLabels=function(){var mt=this,at=mt.options.labels;at.items&&at.items.forEach(function(pt){var vt=k(at.style,pt.style),Ct=it(vt.left)+mt.plotLeft,Tt=it(vt.top)+mt.plotTop+12;delete vt.left,delete vt.top,mt.renderer.text(pt.html,Ct,Tt).attr({zIndex:2}).css(vt).add()})},wt.prototype.render=function(){var mt=this.axes,at=this.colorAxis,pt=this.renderer,vt=this.options,Ct=function(_t){_t.forEach(function(It){It.visible&&It.render()})},Tt=0;this.setTitle(),this.legend=new q(this,vt.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),vt=this.plotWidth,mt.some(function(_t){if(_t.horiz&&_t.visible&&_t.options.labels.enabled&&_t.series.length)return Tt=21,!0});var At=this.plotHeight=Math.max(this.plotHeight-Tt,0);mt.forEach(function(_t){_t.setScale()}),this.getAxisMargins();var Lt=1.1<vt/this.plotWidth,Ot=1.05<At/this.plotHeight;(Lt||Ot)&&(mt.forEach(function(_t){(_t.horiz&&Lt||!_t.horiz&&Ot)&&_t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?Ct(mt):at&&at.length&&Ct(at),this.seriesGroup||(this.seriesGroup=pt.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0},wt.prototype.addCredits=function(mt){var at=this,pt=Y(!0,this.options.credits,mt);pt.enabled&&!this.credits&&(this.credits=this.renderer.text(pt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){pt.href&&(r.location.href=pt.href)}).attr({align:pt.position.align,zIndex:8}),at.styledMode||this.credits.css(pt.style),this.credits.add().align(pt.position),this.credits.update=function(vt){at.credits=at.credits.destroy(),at.addCredits(vt)})},wt.prototype.destroy=function(){var mt,at=this,pt=at.axes,vt=at.series,Ct=at.container,Tt=Ct&&Ct.parentNode;for(G(at,"destroy"),at.renderer.forExport?p(x,at):x[at.index]=void 0,J.chartCount--,at.renderTo.removeAttribute("data-highcharts-chart"),dt(at),mt=pt.length;mt--;)pt[mt]=pt[mt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),mt=vt.length;mt--;)vt[mt]=vt[mt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(At){var Lt=at[At];Lt&&Lt.destroy&&(at[At]=Lt.destroy())}),Ct&&(Ct.innerHTML=g.emptyHTML,dt(Ct),Tt&&_(Ct)),et(at,function(At,Lt){delete at[Lt]})},wt.prototype.firstRender=function(){var mt=this,at=mt.options;mt.isReadyToRender&&!mt.isReadyToRender()||(mt.getContainer(),mt.resetMargins(),mt.setChartSize(),mt.propFromSeries(),mt.getAxes(),(j(at.series)?at.series:[]).forEach(function(pt){mt.initSeries(pt)}),mt.linkSeries(),mt.setSeriesData(),G(mt,"beforeRender"),D&&(W.isRequired()?mt.pointer=new W(mt,at):mt.pointer=new D(mt,at)),mt.render(),mt.pointer.getChartPosition(),mt.renderer.imgCount||mt.hasLoaded||mt.onload(),mt.temporaryDisplay(!0))},wt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(mt){mt&&this.index!==void 0&&mt.apply(this,[this])},this),G(this,"load"),G(this,"render"),A(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},wt.prototype.warnIfA11yModuleNotLoaded=function(){var mt=this.options,at=this.title;mt&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(at&&at.element.textContent||"").replace(/</g,"&lt;")}),mt.accessibility&&mt.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))},wt.prototype.addSeries=function(mt,at,pt){var vt,Ct=this;return mt&&(at=rt(at,!0),G(Ct,"addSeries",{options:mt},function(){vt=Ct.initSeries(mt),Ct.isDirtyLegend=!0,Ct.linkSeries(),vt.enabledDataSorting&&vt.setData(mt.data,!1),G(Ct,"afterAddSeries",{series:vt}),at&&Ct.redraw(pt)})),vt},wt.prototype.addAxis=function(mt,at,pt,vt){return this.createAxis(at?"xAxis":"yAxis",{axis:mt,redraw:pt,animation:vt})},wt.prototype.addColorAxis=function(mt,at,pt){return this.createAxis("colorAxis",{axis:mt,redraw:at,animation:pt})},wt.prototype.createAxis=function(mt,at){return mt=new z(this,Y(at.axis,{index:this[mt].length,isX:mt==="xAxis"})),rt(at.redraw,!0)&&this.redraw(at.animation),mt},wt.prototype.showLoading=function(mt){var at=this,pt=at.options,vt=pt.loading,Ct=function(){Tt&&y(Tt,{left:at.plotLeft+"px",top:at.plotTop+"px",width:at.plotWidth+"px",height:at.plotHeight+"px"})},Tt=at.loadingDiv,At=at.loadingSpan;Tt||(at.loadingDiv=Tt=s("div",{className:"highcharts-loading highcharts-loading-hidden"},null,at.container)),At||(at.loadingSpan=At=s("span",{className:"highcharts-loading-inner"},null,Tt),i(at,"redraw",Ct)),Tt.className="highcharts-loading",g.setElementHTML(At,rt(mt,pt.lang.loading,"")),at.styledMode||(y(Tt,k(vt.style,{zIndex:10})),y(At,vt.labelStyle),at.loadingShown||(y(Tt,{opacity:0,display:""}),b(Tt,{opacity:vt.style.opacity||.5},{duration:vt.showDuration||0}))),at.loadingShown=!0,Ct()},wt.prototype.hideLoading=function(){var mt=this.options,at=this.loadingDiv;at&&(at.className="highcharts-loading highcharts-loading-hidden",this.styledMode||b(at,{opacity:0},{duration:mt.loading.hideDuration||100,complete:function(){y(at,{display:"none"})}})),this.loadingShown=!1},wt.prototype.update=function(mt,at,pt,vt){var Ct,Tt,At=this,Lt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},Ot=mt.isResponsiveOptions,_t=[];G(At,"update",{options:mt}),Ot||At.setResponsive(!1,!0),mt=a(mt,At.options),At.userOptions=Y(At.userOptions,mt);var It=mt.chart;if(It){if(Y(!0,At.options.chart,It),"className"in It&&At.setClassName(It.className),"reflow"in It&&At.setReflow(It.reflow),"inverted"in It||"polar"in It||"type"in It){At.propFromSeries();var zt=!0}"alignTicks"in It&&(zt=!0),"events"in It&&f(this,It),et(It,function(Rt,Ut){At.propsRequireUpdateSeries.indexOf("chart."+Ut)!==-1&&(Ct=!0),At.propsRequireDirtyBox.indexOf(Ut)!==-1&&(At.isDirtyBox=!0),At.propsRequireReflow.indexOf(Ut)!==-1&&(Ot?At.isDirtyBox=!0:Tt=!0)}),!At.styledMode&&It.style&&At.renderer.setStyle(At.options.chart.style||{})}!At.styledMode&&mt.colors&&(this.options.colors=mt.colors),mt.time&&(this.time===E&&(this.time=new d(mt.time)),Y(!0,At.options.time,mt.time)),et(mt,function(Rt,Ut){At[Ut]&&typeof At[Ut].update=="function"?At[Ut].update(Rt,!1):typeof At[Lt[Ut]]=="function"?At[Lt[Ut]](Rt):Ut!=="colors"&&At.collectionsWithUpdate.indexOf(Ut)===-1&&Y(!0,At.options[Ut],mt[Ut]),Ut!=="chart"&&At.propsRequireUpdateSeries.indexOf(Ut)!==-1&&(Ct=!0)}),this.collectionsWithUpdate.forEach(function(Rt){if(mt[Rt]){var Ut=[];At[Rt].forEach(function(Xt,Ht){Xt.options.isInternal||Ut.push(rt(Xt.options.index,Ht))}),bt(mt[Rt]).forEach(function(Xt,Ht){var qt,Kt=A(Xt.id);Kt&&(qt=At.get(Xt.id)),!qt&&At[Rt]&&(qt=At[Rt][Ut?Ut[Ht]:Ht])&&Kt&&A(qt.options.id)&&(qt=void 0),qt&&qt.coll===Rt&&(qt.update(Xt,!1),pt&&(qt.touched=!0)),!qt&&pt&&At.collectionsWithInit[Rt]&&(At.collectionsWithInit[Rt][0].apply(At,[Xt].concat(At.collectionsWithInit[Rt][1]||[]).concat([!1])).touched=!0)}),pt&&At[Rt].forEach(function(Xt){Xt.touched||Xt.options.isInternal?delete Xt.touched:_t.push(Xt)})}}),_t.forEach(function(Rt){Rt.chart&&Rt.remove&&Rt.remove(!1)}),zt&&At.axes.forEach(function(Rt){Rt.update({},!1)}),Ct&&At.getSeriesOrderByLinks().forEach(function(Rt){Rt.chart&&Rt.update({},!1)},this),zt=It&&It.width,It=It&&($(It.height)?ht(It.height,zt||At.chartWidth):It.height),Tt||N(zt)&&zt!==At.chartWidth||N(It)&&It!==At.chartHeight?At.setSize(zt,It,vt):rt(at,!0)&&At.redraw(vt),G(At,"afterUpdate",{options:mt,redraw:at,animation:vt})},wt.prototype.setSubtitle=function(mt,at){this.applyDescription("subtitle",mt),this.layOutTitles(at)},wt.prototype.setCaption=function(mt,at){this.applyDescription("caption",mt),this.layOutTitles(at)},wt.prototype.showResetZoom=function(){function mt(){at.zoomOut()}var at=this,pt=P.lang,vt=at.options.chart.zooming.resetButton,Ct=vt.theme,Tt=vt.relativeTo==="chart"||vt.relativeTo==="spacingBox"?null:"scrollablePlotBox";G(this,"beforeShowResetZoom",null,function(){at.resetZoomButton=at.renderer.button(pt.resetZoom,null,null,mt,Ct).attr({align:vt.position.align,title:pt.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(vt.position,!1,Tt)}),G(this,"afterShowResetZoom")},wt.prototype.zoomOut=function(){G(this,"selection",{resetSelection:!0},this.zoom)},wt.prototype.zoom=function(mt){var at,pt=this,vt=pt.pointer,Ct=!1;!mt||mt.resetSelection?(pt.axes.forEach(function(At){at=At.zoom()}),vt.initiated=!1):mt.xAxis.concat(mt.yAxis).forEach(function(At){var Lt=At.axis;(vt[Lt.isXAxis?"zoomX":"zoomY"]&&A(vt.mouseDownX)&&A(vt.mouseDownY)&&pt.isInsidePlot(vt.mouseDownX-pt.plotLeft,vt.mouseDownY-pt.plotTop,{axis:Lt})||!A(pt.inverted?vt.mouseDownX:vt.mouseDownY))&&(at=Lt.zoom(At.min,At.max),Lt.displayBtn&&(Ct=!0))});var Tt=pt.resetZoomButton;Ct&&!Tt?pt.showResetZoom():!Ct&&Z(Tt)&&(pt.resetZoomButton=Tt.destroy()),at&&pt.redraw(rt(pt.options.chart.animation,mt&&mt.animation,100>pt.pointCount))},wt.prototype.pan=function(mt,at){var pt=this,vt=pt.hoverPoints;at=typeof at=="object"?at:{enabled:at,type:"x"};var Ct=pt.options.chart;Ct&&Ct.panning&&(Ct.panning=at);var Tt,At=at.type;G(this,"pan",{originalEvent:mt},function(){vt&&vt.forEach(function(_t){_t.setState()});var Lt=pt.xAxis;At==="xy"?Lt=Lt.concat(pt.yAxis):At==="y"&&(Lt=pt.yAxis);var Ot={};Lt.forEach(function(_t){if(_t.options.panningEnabled&&!_t.options.isInternal){var It=_t.horiz,zt=mt[It?"chartX":"chartY"],Rt=pt[It=It?"mouseDownX":"mouseDownY"],Ut=_t.minPointOffset||0,Xt=_t.reversed&&!pt.inverted||!_t.reversed&&pt.inverted?-1:1,Ht=_t.getExtremes(),qt=_t.toValue(Rt-zt,!0)+Ut*Xt,Kt=_t.toValue(Rt+_t.len-zt,!0)-(Ut*Xt||_t.isXAxis&&_t.pointRangePadding||0),fe=Kt<qt;Xt=_t.hasVerticalPanning(),Rt=fe?Kt:qt,qt=fe?qt:Kt;var Qt=_t.panningState;!Xt||_t.isXAxis||Qt&&!Qt.isDirty||_t.series.forEach(function(oe){var xe=oe.getProcessedData(!0);xe=oe.getExtremes(xe.yData,!0),Qt||(Qt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),N(xe.dataMin)&&N(xe.dataMax)&&(Qt.startMin=Math.min(rt(oe.options.threshold,1/0),xe.dataMin,Qt.startMin),Qt.startMax=Math.max(rt(oe.options.threshold,-1/0),xe.dataMax,Qt.startMax))}),Xt=Math.min(rt(Qt&&Qt.startMin,Ht.dataMin),Ut?Ht.min:_t.toValue(_t.toPixels(Ht.min)-_t.minPixelPadding)),Kt=Math.max(rt(Qt&&Qt.startMax,Ht.dataMax),Ut?Ht.max:_t.toValue(_t.toPixels(Ht.max)+_t.minPixelPadding)),_t.panningState=Qt,_t.isOrdinal||(0<(Ut=Xt-Rt)&&(qt+=Ut,Rt=Xt),0<(Ut=qt-Kt)&&(qt=Kt,Rt-=Ut),_t.series.length&&Rt!==Ht.min&&qt!==Ht.max&&Rt>=Xt&&qt<=Kt&&(_t.setExtremes(Rt,qt,!1,!1,{trigger:"pan"}),!pt.resetZoomButton&&Rt!==Xt&&qt!==Kt&&At.match("y")&&(pt.showResetZoom(),_t.displayBtn=!1),Tt=!0),Ot[It]=zt)}}),et(Ot,function(_t,It){pt[It]=_t}),Tt&&pt.redraw(!1),y(pt.container,{cursor:"move"})})},wt}(),k(U.prototype,{callbacks:[],collectionsWithInit:{xAxis:[U.prototype.addAxis,[!0]],yAxis:[U.prototype.addAxis,[!1]],series:[U.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(" ")}),U}),B(st,"Core/Legend/LegendSymbol.js",[st["Core/Utilities.js"]],function(U){var z,X=U.extend,V=U.merge,K=U.pick;return function(J){J.drawLineMarker=function(q){var W=this.legendItem=this.legendItem||{},D=this.options,O=q.symbolWidth,w=q.symbolHeight,T=w/2,d=this.chart.renderer,u=W.group;q=q.baseline-Math.round(.3*q.fontMetrics.b);var g={},b=D.marker,v=0;this.chart.styledMode||(g={"stroke-width":Math.min(D.lineWidth||0,24)},D.dashStyle?g.dashstyle=D.dashStyle:D.linecap!=="square"&&(g["stroke-linecap"]="round")),W.line=d.path().addClass("highcharts-graph").attr(g).add(u),g["stroke-linecap"]&&(v=Math.min(W.line.strokeWidth(),O)/2),W.line.attr({d:[["M",v,q],["L",O-v,q]]}),b&&b.enabled!==!1&&O&&(D=Math.min(K(b.radius,T),T),this.symbol.indexOf("url")===0&&(b=V(b,{width:w,height:w}),D=0),W.symbol=W=d.symbol(this.symbol,O/2-D,q-D,2*D,2*D,X({context:"legend"},b)).addClass("highcharts-point").add(u),W.isMarker=!0)},J.drawRectangle=function(q,W){W=W.legendItem||{};var D=q.symbolHeight,O=q.options.squareSymbol;W.symbol=this.chart.renderer.rect(O?(q.symbolWidth-D)/2:0,q.baseline-D+1,O?D:q.symbolWidth,D,K(q.options.symbolRadius,D/2)).addClass("highcharts-point").attr({zIndex:3}).add(W.group)}}(z||(z={})),z}),B(st,"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 U=this.series.chart.numberFormatter;return typeof this.y!="number"?"":U(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"}}),B(st,"Core/Series/Series.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Defaults.js"],st["Core/Foundation.js"],st["Core/Globals.js"],st["Core/Legend/LegendSymbol.js"],st["Core/Series/Point.js"],st["Core/Series/SeriesDefaults.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Renderer/SVG/SVGElement.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O){var w=U.animObject,T=U.setAnimation,d=z.defaultOptions,u=X.registerEventOptions,g=V.hasTouch,b=V.svg,v=V.win,S=W.seriesTypes,P=O.arrayMax,E=O.arrayMin,M=O.clamp,f=O.cleanRecursively,x=O.correctFloat,l=O.defined,h=O.erase,e=O.error,r=O.extend,n=O.find,i=O.fireEvent,c=O.getNestedProperty,a=O.isArray,s=O.isNumber,y=O.isString,A=O.merge,_=O.objectEach,p=O.pick,C=O.removeEvent,k=O.splat,F=O.syncTimeout;return U=function(){function G(){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 G.prototype.init=function(I,j){i(this,"init",{options:j});var N=this,Z=I.series;this.eventsToUnbind=[],N.chart=I,N.options=N.setOptions(j),j=N.options,N.linkedSeries=[],N.bindAxes(),r(N,{name:j.name,state:"",visible:j.visible!==!1,selected:j.selected===!0}),u(this,j);var $,Y=j.events;(Y&&Y.click||j.point&&j.point.events&&j.point.events.click||j.allowPointSelect)&&(I.runTrackerClick=!0),N.getColor(),N.getSymbol(),N.parallelArrays.forEach(function(et){N[et+"Data"]||(N[et+"Data"]=[])}),N.isCartesian&&(I.hasCartesianSeries=!0),Z.length&&($=Z[Z.length-1]),N._i=p($&&$._i,-1)+1,N.opacity=N.options.opacity,I.orderSeries(this.insert(Z)),j.dataSorting&&j.dataSorting.enabled?N.setDataSortingOptions():N.points||N.data||N.setData(j.data,!1),i(this,"afterInit")},G.prototype.is=function(I){return S[I]&&this instanceof S[I]},G.prototype.insert=function(I){var j,N=this.options.index;if(s(N)){for(j=I.length;j--;)if(N>=p(I[j].options.index,I[j]._i)){I.splice(j+1,0,this);break}j===-1&&I.unshift(this),j+=1}else I.push(this);return p(j,I.length-1)},G.prototype.bindAxes=function(){var I,j=this,N=j.options,Z=j.chart;i(this,"bindAxes",null,function(){(j.axisTypes||[]).forEach(function($){var Y=0;Z[$].forEach(function(et){I=et.options,(N[$]===Y&&!I.isInternal||N[$]!==void 0&&N[$]===I.id||N[$]===void 0&&I.index===0)&&(j.insert(et.series),j[$]=et,et.isDirty=!0),I.isInternal||Y++}),j[$]||j.optionalAxis===$||e(18,!0,Z)})}),i(this,"afterBindAxes")},G.prototype.updateParallelArrays=function(I,j){var N=I.series,Z=arguments,$=s(j)?function(Y){var et=Y==="y"&&N.toYData?N.toYData(I):I[Y];N[Y+"Data"][j]=et}:function(Y){Array.prototype[j].apply(N[Y+"Data"],Array.prototype.slice.call(Z,2))};N.parallelArrays.forEach($)},G.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&0<this.yData.length},G.prototype.autoIncrement=function(I){var j,N=this.options,Z=N.pointIntervalUnit,$=N.relativeXValue,Y=this.chart.time,et=this.xIncrement;return et=p(et,N.pointStart,0),this.pointInterval=j=p(this.pointInterval,N.pointInterval,1),$&&s(I)&&(j*=I),Z&&(N=new Y.Date(et),Z==="day"?Y.set("Date",N,Y.get("Date",N)+j):Z==="month"?Y.set("Month",N,Y.get("Month",N)+j):Z==="year"&&Y.set("FullYear",N,Y.get("FullYear",N)+j),j=N.getTime()-et),$&&s(I)?et+j:(this.xIncrement=et+j,et)},G.prototype.setDataSortingOptions=function(){var I=this.options;r(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(I.pointRange)||(I.pointRange=1)},G.prototype.setOptions=function(I){var j=this.chart,N=j.options,Z=N.plotOptions,$=j.userOptions||{};I=A(I),j=j.styledMode;var Y={plotOptions:Z,userOptions:I};i(this,"setOptions",Y);var et=Y.plotOptions[this.type],rt=$.plotOptions||{};return this.userOptions=Y.userOptions,$=A(et,Z.series,$.plotOptions&&$.plotOptions[this.type],I),this.tooltipOptions=A(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,N.tooltip.userOptions,Z.series&&Z.series.tooltip,Z[this.type].tooltip,I.tooltip),this.stickyTracking=p(I.stickyTracking,rt[this.type]&&rt[this.type].stickyTracking,rt.series&&rt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||$.stickyTracking),et.marker===null&&delete $.marker,this.zoneAxis=$.zoneAxis,Z=this.zones=($.zones||[]).slice(),!$.negativeColor&&!$.negativeFillColor||$.zones||(N={value:$[this.zoneAxis+"Threshold"]||$.threshold||0,className:"highcharts-negative"},j||(N.color=$.negativeColor,N.fillColor=$.negativeFillColor),Z.push(N)),Z.length&&l(Z[Z.length-1].value)&&Z.push(j?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:$}),$},G.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))},G.prototype.getCyclic=function(I,j,N){var Z=this.chart,$=this.userOptions,Y=I+"Index",et=I+"Counter",rt=N?N.length:p(Z.options.chart[I+"Count"],Z[I+"Count"]);if(!j){var it=p($[Y],$["_"+Y]);l(it)||(Z.series.length||(Z[et]=0),$["_"+Y]=it=Z[et]%rt,Z[et]+=1),N&&(j=N[it])}it!==void 0&&(this[Y]=it),this[I]=j},G.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)},G.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},G.prototype.getSymbol=function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},G.prototype.findPointIndex=function(I,j){var N,Z,$=I.id,Y=I.x,et=this.points,rt=this.options.dataSorting;if($)(rt=this.chart.get($))instanceof J&&(N=rt);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(N=function(ht){return!ht.touched&&ht.index===I.index},rt&&rt.matchByName?N=function(ht){return!ht.touched&&ht.name===I.name}:this.options.relativeXValue&&(N=function(ht){return!ht.touched&&ht.options.x===I.x}),!(N=n(et,N))))return;if(N){var it=N&&N.index;it!==void 0&&(Z=!0)}return it===void 0&&s(Y)&&(it=this.xData.indexOf(Y,j)),it!==-1&&it!==void 0&&this.cropped&&(it=it>=this.cropStart?it-this.cropStart:it),!Z&&s(it)&&et[it]&&et[it].touched&&(it=void 0),it},G.prototype.updateData=function(I,j){var N,Z,$,Y=this.options,et=Y.dataSorting,rt=this.points,it=[],ht=this.requireSorting,dt=I.length===rt.length,bt=!0;if(this.xIncrement=null,I.forEach(function(xt,St){var wt=l(xt)&&this.pointClass.prototype.optionsToObject.call({series:this},xt)||{},mt=wt.x;wt.id||s(mt)?((wt=this.findPointIndex(wt,$))===-1||wt===void 0?it.push(xt):rt[wt]&&xt!==Y.data[wt]?(rt[wt].update(xt,!1,null,!1),rt[wt].touched=!0,ht&&($=wt+1)):rt[wt]&&(rt[wt].touched=!0),(!dt||St!==wt||et&&et.enabled||this.hasDerivedData)&&(N=!0)):it.push(xt)},this),N)for(I=rt.length;I--;)(Z=rt[I])&&!Z.touched&&Z.remove&&Z.remove(!1,j);else!dt||et&&et.enabled?bt=!1:(I.forEach(function(xt,St){xt!==rt[St].y&&rt[St].update&&rt[St].update(xt,!1,null,!1)}),it.length=0);return rt.forEach(function(xt){xt&&(xt.touched=!1)}),!!bt&&(it.forEach(function(xt){this.addPoint(xt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0)},G.prototype.setData=function(I,j,N,Z){j===void 0&&(j=!0);var $=this,Y=$.points,et=Y&&Y.length||0,rt=$.options,it=$.chart,ht=rt.dataSorting,dt=$.xAxis,bt=rt.turboThreshold,xt=this.xData,St=this.yData,wt=$.pointArrayMap;wt=wt&&wt.length;var mt,at=rt.keys,pt=0,vt=1,Ct=null;if(!it.options.chart.allowMutatingData){rt.data&&delete $.options.data,$.userOptions.data&&delete $.userOptions.data;var Tt=A(!0,I)}if(Tt=(I=Tt||I||[]).length,ht&&ht.enabled&&(I=this.sortData(I)),it.options.chart.allowMutatingData&&Z!==!1&&Tt&&et&&!$.cropped&&!$.hasGroupedData&&$.visible&&!$.boosted&&(mt=this.updateData(I,N)),!mt){if($.xIncrement=null,$.colorCounter=0,this.parallelArrays.forEach(function(At){$[At+"Data"].length=0}),bt&&Tt>bt)if(Ct=$.getFirstValidPoint(I),s(Ct))for(N=0;N<Tt;N++)xt[N]=this.autoIncrement(),St[N]=I[N];else if(a(Ct))if(wt)if(Ct.length===wt)for(N=0;N<Tt;N++)xt[N]=this.autoIncrement(),St[N]=I[N];else for(N=0;N<Tt;N++)Z=I[N],xt[N]=Z[0],St[N]=Z.slice(1,wt+1);else if(at&&(pt=0<=(pt=at.indexOf("x"))?pt:0,vt=0<=(vt=at.indexOf("y"))?vt:1),Ct.length===1&&(vt=0),pt===vt)for(N=0;N<Tt;N++)xt[N]=this.autoIncrement(),St[N]=I[N][vt];else for(N=0;N<Tt;N++)Z=I[N],xt[N]=Z[pt],St[N]=Z[vt];else e(12,!1,it);else for(N=0;N<Tt;N++)I[N]!==void 0&&(Z={series:$},$.pointClass.prototype.applyOptions.apply(Z,[I[N]]),$.updateParallelArrays(Z,N));for(St&&y(St[0])&&e(14,!0,it),$.data=[],$.options.data=$.userOptions.data=I,N=et;N--;)Y[N]&&Y[N].destroy&&Y[N].destroy();dt&&(dt.minRange=dt.userMinRange),$.isDirty=it.isDirtyBox=!0,$.isDirtyData=!!Y,N=!1}rt.legendType==="point"&&(this.processData(),this.generatePoints()),j&&it.redraw(N)},G.prototype.sortData=function(I){var j=this,N=j.options.dataSorting.sortKey||"y",Z=function($,Y){return l(Y)&&$.pointClass.prototype.optionsToObject.call({series:$},Y)||{}};return I.forEach(function($,Y){I[Y]=Z(j,$),I[Y].index=Y},this),I.concat().sort(function($,Y){return $=c(N,$),(Y=c(N,Y))<$?-1:Y>$?1:0}).forEach(function($,Y){$.x=Y},this),j.linkedSeries&&j.linkedSeries.forEach(function($){var Y=$.options,et=Y.data;Y.dataSorting&&Y.dataSorting.enabled||!et||(et.forEach(function(rt,it){et[it]=Z($,rt),I[it]&&(et[it].x=I[it].x,et[it].index=it)}),$.setData(et,!1))}),I},G.prototype.getProcessedData=function(I){var j=this.xAxis,N=this.options,Z=N.cropThreshold,$=I||this.getExtremesFromAll||N.getExtremesFromAll,Y=this.isCartesian;I=j&&j.val2lin,N=!(!j||!j.logarithmic);var et=0,rt=this.xData,it=this.yData,ht=this.requireSorting,dt=!1,bt=rt.length;if(j){var xt=(dt=j.getExtremes()).min,St=dt.max;dt=!(!j.categories||j.names.length)}if(Y&&this.sorted&&!$&&(!Z||bt>Z||this.forceCrop)){if(rt[bt-1]<xt||rt[0]>St)rt=[],it=[];else if(this.yData&&(rt[0]<xt||rt[bt-1]>St)){var wt=this.cropData(this.xData,this.yData,xt,St);rt=wt.xData,it=wt.yData,et=wt.start,wt=!0}}for(Z=rt.length||1;--Z;)if(0<(j=N?I(rt[Z])-I(rt[Z-1]):rt[Z]-rt[Z-1])&&(mt===void 0||j<mt))var mt=j;else 0>j&&ht&&!dt&&(e(15,!1,this.chart),ht=!1);return{xData:rt,yData:it,cropped:wt,cropStart:et,closestPointRange:mt}},G.prototype.processData=function(I){var j=this.xAxis;if(this.isCartesian&&!this.isDirty&&!j.isDirty&&!this.yAxis.isDirty&&!I)return!1;I=this.getProcessedData(),this.cropped=I.cropped,this.cropStart=I.cropStart,this.processedXData=I.xData,this.processedYData=I.yData,this.closestPointRange=this.basePointRange=I.closestPointRange,i(this,"afterProcessData")},G.prototype.cropData=function(I,j,N,Z,$){var Y,et=I.length,rt=0,it=et;for($=p($,this.cropShoulder),Y=0;Y<et;Y++)if(I[Y]>=N){rt=Math.max(0,Y-$);break}for(N=Y;N<et;N++)if(I[N]>Z){it=N+$;break}return{xData:I.slice(rt,it),yData:j.slice(rt,it),start:rt,end:it}},G.prototype.generatePoints=function(){var I=this.options,j=this.processedData||I.data,N=this.processedXData,Z=this.processedYData,$=this.pointClass,Y=N.length,et=this.cropStart||0,rt=this.hasGroupedData,it=I.keys,ht=[];I=I.dataGrouping&&I.dataGrouping.groupAll?et:0;var dt,bt,xt=this.data;if(!xt&&!rt){var St=[];St.length=j.length,xt=this.data=St}for(it&&rt&&(this.options.keys=!1),bt=0;bt<Y;bt++){if(St=et+bt,rt){var wt=new $().init(this,[N[bt]].concat(k(Z[bt])));wt.dataGroup=this.groupMap[I+bt],wt.dataGroup.options&&(wt.options=wt.dataGroup.options,r(wt,wt.dataGroup.options),delete wt.dataLabels)}else(wt=xt[St])||j[St]===void 0||(xt[St]=wt=new $().init(this,j[St],N[bt]));wt&&(wt.index=rt?I+bt:St,ht[bt]=wt)}if(this.options.keys=it,xt&&(Y!==(dt=xt.length)||rt))for(bt=0;bt<dt;bt++)bt!==et||rt||(bt+=Y),xt[bt]&&(xt[bt].destroyElements(),xt[bt].plotX=void 0);this.data=xt,this.points=ht,i(this,"afterGeneratePoints")},G.prototype.getXExtremes=function(I){return{min:E(I),max:P(I)}},G.prototype.getExtremes=function(I,j){var N=this.xAxis,Z=this.yAxis,$=this.processedXData||this.xData,Y=[],et=this.requireSorting?this.cropShoulder:0;Z=!!Z&&Z.positiveValuesOnly;var rt,it=0,ht=0,dt=0,bt=(I=I||this.stackedYData||this.processedYData||[]).length;if(N){var xt=N.getExtremes();it=xt.min,ht=xt.max}for(rt=0;rt<bt;rt++){var St=$[rt];xt=I[rt];var wt=(s(xt)||a(xt))&&(xt.length||0<xt||!Z);if(St=j||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!N||($[rt+et]||St)>=it&&($[rt-et]||St)<=ht,wt&&St)if(wt=xt.length)for(;wt--;)s(xt[wt])&&(Y[dt++]=xt[wt]);else Y[dt++]=xt}return I={activeYData:Y,dataMin:E(Y),dataMax:P(Y)},i(this,"afterGetExtremes",{dataExtremes:I}),I},G.prototype.applyExtremes=function(){var I=this.getExtremes();return this.dataMin=I.dataMin,this.dataMax=I.dataMax,I},G.prototype.getFirstValidPoint=function(I){for(var j=I.length,N=0,Z=null;Z===null&&N<j;)Z=I[N],N++;return Z},G.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var I,j,N=this.options,Z=N.stacking,$=this.xAxis,Y=$.categories,et=this.enabledDataSorting,rt=this.yAxis,it=this.points,ht=it.length,dt=this.pointPlacementToXValue(),bt=!!dt,xt=N.threshold,St=N.startFromThreshold?xt:0,wt=this.zoneAxis||"y",mt=Number.MAX_VALUE;for(I=0;I<ht;I++){var at=it[I],pt=at.x,vt=void 0,Ct=void 0,Tt=at.y,At=at.low,Lt=Z&&rt.stacking&&rt.stacking.stacks[(this.negStacks&&Tt<(St?0:xt)?"-":"")+this.stackKey];if((rt.positiveValuesOnly&&!rt.validatePositiveValue(Tt)||$.positiveValuesOnly&&!$.validatePositiveValue(pt))&&(at.isNull=!0),at.plotX=j=x(M($.translate(pt,0,0,0,1,dt,this.type==="flags"),-1e5,1e5)),Z&&this.visible&&Lt&&Lt[pt]){var Ot=this.getStackIndicator(Ot,pt,this.index);!at.isNull&&Ot.key&&(Ct=(vt=Lt[pt]).points[Ot.key]),vt&&a(Ct)&&(At=Ct[0],Tt=Ct[1],At===St&&Ot.key===Lt[pt].base&&(At=p(s(xt)?xt:rt.min)),rt.positiveValuesOnly&&l(At)&&0>=At&&(At=void 0),at.total=at.stackTotal=p(vt.total),at.percentage=l(at.y)&&vt.total?at.y/vt.total*100:void 0,at.stackY=Tt,this.irregularWidths||vt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))}if(at.yBottom=l(At)?M(rt.translate(At,0,1,0,1),-1e5,1e5):void 0,this.dataModify&&(Tt=this.dataModify.modifyValue(Tt,I)),at.plotY=void 0,s(Tt)&&(vt=rt.translate(Tt,!1,!0,!1,!0))!==void 0&&(at.plotY=M(vt,-1e5,1e5)),at.isInside=this.isPointInside(at),at.clientX=bt?x($.translate(pt,0,0,0,1,dt)):j,at.negative=at[wt]<(N[wt+"Threshold"]||xt||0),at.category=p(Y&&Y[at.x],at.x),!at.isNull&&at.visible!==!1){_t!==void 0&&(mt=Math.min(mt,Math.abs(j-_t)));var _t=j}at.zone=this.zones.length?at.getZone():void 0,!at.graphic&&this.group&&et&&(at.isNew=!0)}this.closestPointRangePx=mt,i(this,"afterTranslate")},G.prototype.getValidPoints=function(I,j,N){var Z=this.chart;return(I||this.points||[]).filter(function($){return!(j&&!Z.isInsidePlot($.plotX,$.plotY,{inverted:Z.inverted}))&&$.visible!==!1&&(N||!$.isNull)})},G.prototype.getClipBox=function(){var I=this.chart,j=this.xAxis,N=this.yAxis,Z=A(I.clipBox);return j&&j.len!==I.plotSizeX&&(Z.width=j.len),N&&N.len!==I.plotSizeY&&(Z.height=N.len),Z},G.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)},G.prototype.setClip=function(){var I=this.chart,j=this.group,N=this.markerGroup,Z=I.sharedClips;I=I.renderer;var $=this.getClipBox(),Y=this.getSharedClipKey(),et=Z[Y];et?et.animate($):Z[Y]=et=I.clipRect($),j&&j.clip(this.options.clip===!1?void 0:et),N&&N.clip()},G.prototype.animate=function(I){var j=this.chart,N=this.group,Z=this.markerGroup,$=j.inverted,Y=w(this.options.animation),et=[this.getSharedClipKey(),Y.duration,Y.easing,Y.defer].join(),rt=j.sharedClips[et],it=j.sharedClips[et+"m"];if(I&&N)Y=this.getClipBox(),rt?rt.attr("height",Y.height):(Y.width=0,$&&(Y.x=j.plotHeight),rt=j.renderer.clipRect(Y),j.sharedClips[et]=rt,it=j.renderer.clipRect({x:-99,y:-99,width:$?j.plotWidth+199:99,height:$?99:j.plotHeight+199}),j.sharedClips[et+"m"]=it),N.clip(rt),Z&&Z.clip(it);else if(rt&&!rt.hasClass("highcharts-animating")){j=this.getClipBox();var ht=Y.step;Z&&Z.element.childNodes.length&&(Y.step=function(dt,bt){ht&&ht.apply(bt,arguments),bt.prop==="width"&&it&&it.element&&it.attr($?"height":"width",dt+99)}),rt.addClass("highcharts-animating").animate(j,Y)}},G.prototype.afterAnimate=function(){var I=this;this.setClip(),_(this.chart.sharedClips,function(j,N,Z){j&&!I.chart.container.querySelector('[clip-path="url(#'.concat(j.id,')"]'))&&(j.destroy(),delete Z[N])}),this.finishedAnimating=!0,i(this,"afterAnimate")},G.prototype.drawPoints=function(I){I===void 0&&(I=this.points);var j,N,Z=this.chart,$=Z.styledMode,Y=this.colorAxis,et=this.options.marker,rt=this[this.specialGroup||"markerGroup"],it=this.xAxis,ht=p(et.enabled,!(it&&!it.isRadial)||null,this.closestPointRangePx>=et.enabledThreshold*et.radius);if(et.enabled!==!1||this._hasPointMarkers)for(j=0;j<I.length;j++){var dt=I[j],bt=(N=dt.graphic)?"animate":"attr",xt=dt.marker||{},St=!!dt.marker;if((ht&&xt.enabled===void 0||xt.enabled)&&!dt.isNull&&dt.visible!==!1){var wt=p(xt.symbol,this.symbol,"rect"),mt=this.markerAttribs(dt,dt.selected&&"select");this.enabledDataSorting&&(dt.startXPos=it.reversed?-(mt.width||0):it.width);var at=dt.isInside!==!1;!N&&at&&(0<(mt.width||0)||dt.hasImage)&&(dt.graphic=N=Z.renderer.symbol(wt,mt.x,mt.y,mt.width,mt.height,St?xt:et).add(rt),this.enabledDataSorting&&Z.hasRendered&&(N.attr({x:dt.startXPos}),bt="animate")),N&&bt==="animate"&&N[at?"show":"hide"](at).animate(mt),N&&(xt=this.pointAttribs(dt,$||!dt.selected?void 0:"select"),$?Y&&N.css({fill:xt.fill}):N[bt](xt)),N&&N.addClass(dt.getClassName(),!0)}else N&&(dt.graphic=N.destroy())}},G.prototype.markerAttribs=function(I,j){var N=this.options,Z=N.marker,$=I.marker||{},Y=$.symbol||Z.symbol,et={},rt=p($.radius,Z&&Z.radius);return j&&(Z=Z.states[j],j=$.states&&$.states[j],rt=p(j&&j.radius,Z&&Z.radius,rt&&rt+(Z&&Z.radiusPlus||0))),I.hasImage=Y&&Y.indexOf("url")===0,I.hasImage&&(rt=0),I=I.pos(),s(rt)&&I&&(et.x=I[0]-rt,et.y=I[1]-rt,N.crisp&&(et.x=Math.floor(et.x))),rt&&(et.width=et.height=2*rt),et},G.prototype.pointAttribs=function(I,j){var N=this.options.marker,Z=I&&I.options,$=Z&&Z.marker||{},Y=Z&&Z.color,et=I&&I.color,rt=I&&I.zone&&I.zone.color,it=this.color;return I=p($.lineWidth,N.lineWidth),Z=1,it=Y||rt||et||it,Y=$.fillColor||N.fillColor||it,et=$.lineColor||N.lineColor||it,j=j||"normal",N=N.states[j]||{},j=$.states&&$.states[j]||{},I=p(j.lineWidth,N.lineWidth,I+p(j.lineWidthPlus,N.lineWidthPlus,0)),Y=j.fillColor||N.fillColor||Y,{stroke:et=j.lineColor||N.lineColor||et,"stroke-width":I,fill:Y,opacity:Z=p(j.opacity,N.opacity,Z)}},G.prototype.destroy=function(I){var j,N,Z,$=this,Y=$.chart,et=/AppleWebKit\/533/.test(v.navigator.userAgent),rt=$.data||[];for(i($,"destroy",{keepEventsForUpdate:I}),this.removeEvents(I),($.axisTypes||[]).forEach(function(it){(Z=$[it])&&Z.series&&(h(Z.series,$),Z.isDirty=Z.forceRedraw=!0)}),$.legendItem&&$.chart.legend.destroyItem($),j=rt.length;j--;)(N=rt[j])&&N.destroy&&N.destroy();$.clips&&$.clips.forEach(function(it){return it.destroy()}),O.clearTimeout($.animationTimeout),_($,function(it,ht){it instanceof D&&!it.survive&&it[et&&ht==="group"?"hide":"destroy"]()}),Y.hoverSeries===$&&(Y.hoverSeries=void 0),h(Y.series,$),Y.orderSeries(),_($,function(it,ht){I&&ht==="hcEvents"||delete $[ht]})},G.prototype.applyZones=function(){var I,j,N,Z,$,Y,et,rt,it=this,ht=this.chart,dt=ht.renderer,bt=this.zones,xt=this.clips||[],St=this.graph,wt=this.area,mt=Math.max(ht.plotWidth,ht.plotHeight),at=this[(this.zoneAxis||"y")+"Axis"],pt=ht.inverted,vt=!1;if(bt.length&&(St||wt)&&at&&at.min!==void 0){var Ct=at.reversed,Tt=at.horiz;St&&!this.showLine&&St.hide(),wt&&wt.hide();var At=at.getExtremes();bt.forEach(function(Lt,Ot){I=Ct?Tt?ht.plotWidth:0:Tt?0:at.toPixels(At.min)||0,I=M(p(j,I),0,mt),j=M(Math.round(at.toPixels(p(Lt.value,At.max),!0)||0),0,mt),vt&&(I=j=at.toPixels(At.max)),Z=Math.abs(I-j),$=Math.min(I,j),Y=Math.max(I,j),at.isXAxis?(N={x:pt?Y:$,y:0,width:Z,height:mt},Tt||(N.x=ht.plotHeight-N.x)):(N={x:0,y:pt?Y:$,width:mt,height:Z},Tt&&(N.y=ht.plotWidth-N.y)),pt&&dt.isVML&&(N=at.isXAxis?{x:0,y:Ct?$:Y,height:N.width,width:ht.chartWidth}:{x:N.y-ht.plotLeft-ht.spacingBox.x,y:0,width:N.height,height:ht.chartHeight}),xt[Ot]?xt[Ot].animate(N):xt[Ot]=dt.clipRect(N),et=it["zone-area-"+Ot],rt=it["zone-graph-"+Ot],St&&rt&&rt.clip(xt[Ot]),wt&&et&&et.clip(xt[Ot]),vt=Lt.value>At.max,it.resetZones&&j===0&&(j=void 0)}),this.clips=xt}else it.visible&&(St&&St.show(),wt&&wt.show())},G.prototype.plotGroup=function(I,j,N,Z,$){var Y=this[I],et=!Y;return N={visibility:N,zIndex:Z||.1},this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(N.opacity=this.opacity),et&&(this[I]=Y=this.chart.renderer.g().add($)),Y.addClass("highcharts-"+j+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(Y.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),Y.attr(N)[et?"attr":"animate"](this.getPlotBox(j)),Y},G.prototype.getPlotBox=function(I){var j=this.xAxis,N=this.yAxis,Z=this.chart;return I=Z.inverted&&!Z.polar&&j&&this.invertible!==!1&&I==="series",Z.inverted&&(j=N,N=this.xAxis),{translateX:j?j.left:Z.plotLeft,translateY:N?N.top:Z.plotTop,rotation:I?90:0,rotationOriginX:I?(j.len-N.len)/2:0,rotationOriginY:I?(j.len+N.len)/2:0,scaleX:I?-1:1,scaleY:1}},G.prototype.removeEvents=function(I){I||C(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(j){j()}),this.eventsToUnbind.length=0)},G.prototype.render=function(){var I=this,j=I.chart,N=I.options,Z=w(N.animation),$=I.visible?"inherit":"hidden",Y=N.zIndex,et=I.hasRendered,rt=j.seriesGroup;j=!I.finishedAnimating&&j.renderer.isSVG?Z.duration:0,i(this,"render"),I.plotGroup("group","series",$,Y,rt),I.markerGroup=I.plotGroup("markerGroup","markers",$,Y,rt),N.clip!==!1&&I.setClip(),I.animate&&j&&I.animate(!0),I.drawGraph&&(I.drawGraph(),I.applyZones()),I.visible&&I.drawPoints(),I.drawDataLabels&&I.drawDataLabels(),I.redrawPoints&&I.redrawPoints(),I.drawTracker&&I.options.enableMouseTracking!==!1&&I.drawTracker(),I.animate&&j&&I.animate(),et||(j&&Z.defer&&(j+=Z.defer),I.animationTimeout=F(function(){I.afterAnimate()},j||0)),I.isDirty=!1,I.hasRendered=!0,i(I,"afterRender")},G.prototype.redraw=function(){var I=this.isDirty||this.isDirtyData;this.translate(),this.render(),I&&delete this.kdTree},G.prototype.searchPoint=function(I,j){var N=this.xAxis,Z=this.yAxis,$=this.chart.inverted;return this.searchKDTree({clientX:$?N.len-I.chartY+N.pos:I.chartX-N.pos,plotY:$?Z.len-I.chartX+Z.pos:I.chartY-Z.pos},j,I)},G.prototype.buildKDTree=function(I){function j($,Y,et){var rt=$&&$.length;if(rt){var it=N.kdAxisArray[Y%et];return $.sort(function(ht,dt){return ht[it]-dt[it]}),{point:$[rt=Math.floor(rt/2)],left:j($.slice(0,rt),Y+1,et),right:j($.slice(rt+1),Y+1,et)}}}this.buildingKdTree=!0;var N=this,Z=-1<N.options.findNearestPointBy.indexOf("y")?2:1;delete N.kdTree,F(function(){N.kdTree=j(N.getValidPoints(null,!N.directTouch),Z,Z),N.buildingKdTree=!1},N.options.kdNow||I&&I.type==="touchstart"?0:1)},G.prototype.searchKDTree=function(I,j,N){var Z=this,$=this.kdAxisArray[0],Y=this.kdAxisArray[1],et=j?"distX":"dist";if(j=-1<Z.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(N),this.kdTree)return function rt(it,ht,dt,bt){var xt=ht.point,St=Z.kdAxisArray[dt%bt],wt=xt,mt=l(it[$])&&l(xt[$])?Math.pow(it[$]-xt[$],2):null,at=l(it[Y])&&l(xt[Y])?Math.pow(it[Y]-xt[Y],2):null;return at=(mt||0)+(at||0),xt.dist=l(at)?Math.sqrt(at):Number.MAX_VALUE,xt.distX=l(mt)?Math.sqrt(mt):Number.MAX_VALUE,mt=0>(St=it[St]-xt[St])?"right":"left",ht[at=0>St?"left":"right"]&&(wt=(at=rt(it,ht[at],dt+1,bt))[et]<wt[et]?at:xt),ht[mt]&&Math.sqrt(St*St)<wt[et]&&(wt=(it=rt(it,ht[mt],dt+1,bt))[et]<wt[et]?it:wt),wt}(I,this.kdTree,j,j)},G.prototype.pointPlacementToXValue=function(){var I=this.options,j=I.pointRange,N=this.xAxis;return(I=I.pointPlacement)==="between"&&(I=N.reversed?-.5:.5),s(I)?I*(j||N.pointRange):0},G.prototype.isPointInside=function(I){var j=this.chart,N=this.xAxis,Z=this.yAxis;return I.plotY!==void 0&&I.plotX!==void 0&&0<=I.plotY&&I.plotY<=(Z?Z.len:j.plotHeight)&&0<=I.plotX&&I.plotX<=(N?N.len:j.plotWidth)},G.prototype.drawTracker=function(){var I=this,j=I.options,N=j.trackByArea,Z=[].concat(N?I.areaPath:I.graphPath),$=I.chart,Y=$.pointer,et=$.renderer,rt=$.options.tooltip.snap,it=I.tracker,ht=function(bt){$.hoverSeries!==I&&I.onMouseOver()},dt="rgba(192,192,192,"+(b?1e-4:.002)+")";it?it.attr({d:Z}):I.graph&&(I.tracker=et.path(Z).attr({visibility:I.visible?"inherit":"hidden",zIndex:2}).addClass(N?"highcharts-tracker-area":"highcharts-tracker-line").add(I.group),$.styledMode||I.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:dt,fill:N?dt:"none","stroke-width":I.graph.strokeWidth()+(N?0:2*rt)}),[I.tracker,I.markerGroup,I.dataLabelsGroup].forEach(function(bt){bt&&(bt.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(xt){Y.onTrackerMouseOut(xt)}),j.cursor&&!$.styledMode&&bt.css({cursor:j.cursor}),g)&&bt.on("touchstart",ht)})),i(this,"afterDrawTracker")},G.prototype.addPoint=function(I,j,N,Z,$){var Y=this.options,et=this.data,rt=this.chart,it=this.xAxis;it=it&&it.hasNames&&it.names;var ht,dt=Y.data,bt=this.xData;j=p(j,!0);var xt={series:this};this.pointClass.prototype.applyOptions.apply(xt,[I]);var St=xt.x,wt=bt.length;if(this.requireSorting&&St<bt[wt-1])for(ht=!0;wt&&bt[wt-1]>St;)wt--;this.updateParallelArrays(xt,"splice",wt,0,0),this.updateParallelArrays(xt,wt),it&&xt.name&&(it[St]=xt.name),dt.splice(wt,0,I),(ht||this.processedData)&&(this.data.splice(wt,0,null),this.processData()),Y.legendType==="point"&&this.generatePoints(),N&&(et[0]&&et[0].remove?et[0].remove(!1):(et.shift(),this.updateParallelArrays(xt,"shift"),dt.shift())),$!==!1&&i(this,"addPoint",{point:xt}),this.isDirtyData=this.isDirty=!0,j&&rt.redraw(Z)},G.prototype.removePoint=function(I,j,N){var Z=this,$=Z.data,Y=$[I],et=Z.points,rt=Z.chart,it=function(){et&&et.length===$.length&&et.splice(I,1),$.splice(I,1),Z.options.data.splice(I,1),Z.updateParallelArrays(Y||{series:Z},"splice",I,1),Y&&Y.destroy(),Z.isDirty=!0,Z.isDirtyData=!0,j&&rt.redraw()};T(N,rt),j=p(j,!0),Y?Y.firePointEvent("remove",null,it):it()},G.prototype.remove=function(I,j,N,Z){function $(){Y.destroy(Z),et.isDirtyLegend=et.isDirtyBox=!0,et.linkSeries(),p(I,!0)&&et.redraw(j)}var Y=this,et=Y.chart;N!==!1?i(Y,"remove",null,$):$()},G.prototype.update=function(I,j){I=f(I,this.userOptions),i(this,"update",{options:I});var N=this,Z=N.chart,$=N.userOptions,Y=N.initialType||N.type,et=Z.options.plotOptions,rt=S[Y].prototype,it=N.finishedAnimating&&{animation:!1},ht={},dt=["eventOptions","navigatorSeries","baseSeries"],bt=I.type||$.type||Z.options.chart.type,xt=!(this.hasDerivedData||bt&&bt!==this.type||I.pointStart!==void 0||I.pointInterval!==void 0||I.relativeXValue!==void 0||I.joinBy||I.mapData||N.hasOptionChanged("dataGrouping")||N.hasOptionChanged("pointStart")||N.hasOptionChanged("pointInterval")||N.hasOptionChanged("pointIntervalUnit")||N.hasOptionChanged("keys"));if(bt=bt||Y,xt&&(dt.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),I.visible!==!1&&dt.push("area","graph"),N.parallelArrays.forEach(function(wt){dt.push(wt+"Data")}),I.data&&(I.dataSorting&&r(N.options.dataSorting,I.dataSorting),this.setData(I.data,!1))),I=A($,it,{index:$.index===void 0?N.index:$.index,pointStart:p(et&&et.series&&et.series.pointStart,$.pointStart,N.xData[0])},!xt&&{data:N.options.data},I),xt&&I.data&&(I.data=N.options.data),(dt=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(dt)).forEach(function(wt){dt[wt]=N[wt],delete N[wt]}),et=!1,S[bt]){if(et=bt!==N.type,N.remove(!1,!1,!1,!0),et)if(Object.setPrototypeOf)Object.setPrototypeOf(N,S[bt].prototype);else{for(St in it=Object.hasOwnProperty.call(N,"hcEvents")&&N.hcEvents,rt)N[St]=void 0;r(N,S[bt].prototype),it?N.hcEvents=it:delete N.hcEvents}}else e(17,!0,Z,{missingModuleFor:bt});if(dt.forEach(function(wt){N[wt]=dt[wt]}),N.init(Z,I),xt&&this.points){if((I=N.options).visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!N._hasPointLabels){rt=I.marker;var St=I.dataLabels;$=$.marker||{},!rt||rt.enabled!==!1&&$.symbol===rt.symbol&&$.height===rt.height&&$.width===rt.width||(ht.graphic=1),St&&St.enabled===!1&&(ht.dataLabel=1)}for($=0,rt=this.points;$<rt.length;$++)(St=rt[$])&&St.series&&(St.resolveColor(),Object.keys(ht).length&&St.destroyElements(ht),I.showInLegend===!1&&St.legendItem&&Z.legend.destroyItem(St))}N.initialType=Y,Z.linkSeries(),et&&N.linkedSeries.length&&(N.isDirtyData=!0),i(this,"afterUpdate"),p(j,!0)&&Z.redraw(!!xt&&void 0)},G.prototype.setName=function(I){this.name=this.options.name=this.userOptions.name=I,this.chart.isDirtyLegend=!0},G.prototype.hasOptionChanged=function(I){var j=this.options[I],N=this.chart.options.plotOptions,Z=this.userOptions[I];return Z?j!==Z:j!==p(N&&N[this.type]&&N[this.type][I],N&&N.series&&N.series[I],j)},G.prototype.onMouseOver=function(){var I=this.chart,j=I.hoverSeries;I.pointer.setHoverChartIndex(),j&&j!==this&&j.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),I.hoverSeries=this},G.prototype.onMouseOut=function(){var I=this.options,j=this.chart,N=j.tooltip,Z=j.hoverPoint;j.hoverSeries=null,Z&&Z.onMouseOut(),this&&I.events.mouseOut&&i(this,"mouseOut"),!N||this.stickyTracking||N.shared&&!this.noSharedTooltip||N.hide(),j.series.forEach(function($){$.setState("",!0)})},G.prototype.setState=function(I,j){var N=this,Z=N.options,$=N.graph,Y=Z.inactiveOtherPoints,et=Z.states,rt=p(et[I||"normal"]&&et[I||"normal"].animation,N.chart.options.chart.animation),it=Z.lineWidth,ht=0,dt=Z.opacity;if(I=I||"",N.state!==I&&([N.group,N.markerGroup,N.dataLabelsGroup].forEach(function(bt){bt&&(N.state&&bt.removeClass("highcharts-series-"+N.state),I&&bt.addClass("highcharts-series-"+I))}),N.state=I,!N.chart.styledMode)){if(et[I]&&et[I].enabled===!1)return;if(I&&(it=et[I].lineWidth||it+(et[I].lineWidthPlus||0),dt=p(et[I].opacity,dt)),$&&!$.dashstyle&&s(it))for(Z={"stroke-width":it},$.animate(Z,rt);N["zone-graph-"+ht];)N["zone-graph-"+ht].animate(Z,rt),ht+=1;Y||[N.group,N.markerGroup,N.dataLabelsGroup,N.labelBySeries].forEach(function(bt){bt&&bt.animate({opacity:dt},rt)})}j&&Y&&N.points&&N.setAllPointsToState(I||void 0)},G.prototype.setAllPointsToState=function(I){this.points.forEach(function(j){j.setState&&j.setState(I)})},G.prototype.setVisible=function(I,j){var N=this,Z=N.chart,$=Z.options.chart.ignoreHiddenSeries,Y=N.visible,et=(N.visible=I=N.options.visible=N.userOptions.visible=I===void 0?!Y:I)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(rt){N[rt]&&N[rt][et]()}),Z.hoverSeries!==N&&(Z.hoverPoint&&Z.hoverPoint.series)!==N||N.onMouseOut(),N.legendItem&&Z.legend.colorizeItem(N,I),N.isDirty=!0,N.options.stacking&&Z.series.forEach(function(rt){rt.options.stacking&&rt.visible&&(rt.isDirty=!0)}),N.linkedSeries.forEach(function(rt){rt.setVisible(I,!1)}),$&&(Z.isDirtyBox=!0),i(N,et),j!==!1&&Z.redraw()},G.prototype.show=function(){this.setVisible(!0)},G.prototype.hide=function(){this.setVisible(!1)},G.prototype.select=function(I){this.selected=I=this.options.selected=I===void 0?!this.selected:I,this.checkbox&&(this.checkbox.checked=I),i(this,I?"select":"unselect")},G.prototype.shouldShowTooltip=function(I,j,N){return N===void 0&&(N={}),N.series=this,N.visiblePlotOnly=!0,this.chart.isInsidePlot(I,j,N)},G.defaultOptions=q,G.types=W.seriesTypes,G.registerType=W.registerSeriesType,G}(),r(U.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:K.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:J,requireSorting:!0,sorted:!0}),W.series=U,U}),B(st,"Extensions/ScrollablePlotArea.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Axis/Axis.js"],st["Core/Chart/Chart.js"],st["Core/Series/Series.js"],st["Core/Renderer/RendererRegistry.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=U.stop,W=J.addEvent,D=J.createElement,O=J.defined,w=J.merge,T=J.pick;W(X,"afterSetChartSize",function(d){var u=this.options.chart.scrollablePlotArea,g=u&&u.minWidth;if(u=u&&u.minHeight,!this.renderer.forExport){if(g){if(this.scrollablePixelsX=g=Math.max(0,g-this.chartWidth)){this.scrollablePlotBox=this.renderer.scrollablePlotBox=w(this.plotBox),this.plotBox.width=this.plotWidth+=g,this.inverted?this.clipBox.height+=g:this.clipBox.width+=g;var b={1:{name:"right",value:g}}}}else u&&(this.scrollablePixelsY=g=Math.max(0,u-this.chartHeight),O(g)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=w(this.plotBox),this.plotBox.height=this.plotHeight+=g,this.inverted?this.clipBox.width+=g:this.clipBox.height+=g,b={2:{name:"bottom",value:g}}));b&&!d.skipAxes&&this.axes.forEach(function(v){b[v.side]?v.getPlotLinePath=function(){var S=b[v.side].name,P=this[S];this[S]=P-b[v.side].value;var E=z.prototype.getPlotLinePath.apply(this,arguments);return this[S]=P,E}:(v.setAxisSize(),v.setAxisTranslation())})}}),W(X,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),X.prototype.setUpScrolling=function(){var d,u=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto"),this.scrollablePixelsY&&(g.overflowY="auto"),this.scrollingParent=D("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=D("div",{className:"highcharts-scrolling"},g,this.scrollingParent),W(this.scrollingContainer,"scroll",function(){u.pointer&&(delete u.pointer.chartPosition,u.hoverPoint&&(d=u.hoverPoint),u.pointer.runPointActions(void 0,d,!0))}),this.innerContainer=D("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},X.prototype.moveFixedElements=function(){var d,u=this.container,g=this.fixedRenderer,b=".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?d=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?d=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(d=".highcharts-yaxis"),d&&b.push(d+":not(.highcharts-radial-axis)",d+"-labels:not(.highcharts-radial-axis-labels)"),b.forEach(function(v){[].forEach.call(u.querySelectorAll(v),function(S){(S.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(S),S.style.pointerEvents="auto"})})},X.prototype.applyFixed=function(){var d=!this.fixedDiv,u=this.options.chart,g=u.scrollablePlotArea,b=K.getRendererType();d?(this.fixedDiv=D("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=u=new b(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=u.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":T(g.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),W(this,"afterShowResetZoom",this.moveFixedElements),W(this,"afterApplyDrilldown",this.moveFixedElements),W(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||d)&&(this.scrollableDirty=!1,this.moveFixedElements()),u=this.chartWidth+(this.scrollablePixelsX||0),b=this.chartHeight+(this.scrollablePixelsY||0),q(this.container),this.container.style.width=u+"px",this.container.style.height=b+"px",this.renderer.boxWrapper.attr({width:u,height:b,viewBox:[0,0,u,b].join(" ")}),this.chartBackground.attr({width:u,height:b}),this.scrollingContainer.style.height=this.chartHeight+"px",d&&(g.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*g.scrollPositionX),g.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*g.scrollPositionY)),b=this.axisOffset,d=this.plotTop-b[0]-1,g=this.plotLeft-b[3]-1,u=this.plotTop+this.plotHeight+b[2]+1,b=this.plotLeft+this.plotWidth+b[1]+1;var v=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),S=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);d=this.scrollablePixelsX?[["M",0,d],["L",this.plotLeft-1,d],["L",this.plotLeft-1,u],["L",0,u],["Z"],["M",v,d],["L",this.chartWidth,d],["L",this.chartWidth,u],["L",v,u],["Z"]]:this.scrollablePixelsY?[["M",g,0],["L",g,this.plotTop-1],["L",b,this.plotTop-1],["L",b,0],["Z"],["M",g,S],["L",g,this.chartHeight],["L",b,this.chartHeight],["L",b,S],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d})},W(z,"afterInit",function(){this.chart.scrollableDirty=!0}),W(V,"show",function(){this.chart.scrollableDirty=!0})}),B(st,"Core/Axis/Stacking/StackItem.js",[st["Core/FormatUtilities.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X){var V=U.format,K=z.series,J=X.destroyObjectProperties,q=X.pick,W=X.isNumber;return U=function(){function D(O,w,T,d,u){var g=O.chart.inverted,b=O.reversed;this.axis=O,O=this.isNegative=!!T!=!!b,this.options=w=w||{},this.x=d,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=u,this.rightCliff=this.leftCliff=0,this.alignOptions={align:w.align||(g?O?"left":"right":"center"),verticalAlign:w.verticalAlign||(g?"middle":O?"bottom":"top"),y:w.y,x:w.x},this.textAlign=w.textAlign||(g?O?"right":"left":"center")}return D.prototype.destroy=function(){J(this,this.axis)},D.prototype.render=function(O){var w=this.axis.chart,T=this.options,d=T.format;d=d?V(d,this,w):T.formatter.call(this),this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=w.renderer.label(d,null,void 0,T.shape,void 0,void 0,T.useHTML,!1,"stack-labels"),d={r:T.borderRadius||0,text:d,padding:q(T.padding,5),visibility:"hidden"},w.styledMode||(d.fill=T.backgroundColor,d.stroke=T.borderColor,d["stroke-width"]=T.borderWidth,this.label.css(T.style||{})),this.label.attr(d),this.label.added||this.label.add(O)),this.label.labelrank=w.plotSizeY},D.prototype.setOffset=function(O,w,T,d,u,g){var b=this.alignOptions,v=this.axis,S=this.label,P=this.options,E=this.textAlign,M=v.chart;O=this.getStackBox({xOffset:O,width:w,boxBottom:T,boxTop:d,defaultX:u,xAxis:g}),u=b.verticalAlign,S&&O&&(w=S.getBBox(),T=S.padding,d=q(P.overflow,"justify")==="justify",b.x=P.x||0,b.y=P.y||0,E=(u=this.adjustStackPosition({labelBox:w,verticalAlign:u,textAlign:E})).x,u=u.y,O.x-=E,O.y-=u,S.align(b,!1,O),(E=M.isInsidePlot(S.alignAttr.x+b.x+E,S.alignAttr.y+b.y+u))||(d=!1),d&&K.prototype.justifyDataLabel.call(v,S,b,S.alignAttr,w,O),S.attr({x:S.alignAttr.x,y:S.alignAttr.y,rotation:P.rotation,rotationOriginX:w.width/2,rotationOriginY:w.height/2}),q(!d&&P.crop,!0)&&(E=W(S.x)&&W(S.y)&&M.isInsidePlot(S.x-T+S.width,S.y)&&M.isInsidePlot(S.x+T,S.y)),S[E?"show":"hide"]())},D.prototype.adjustStackPosition=function(O){var w=O.labelBox,T={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:w.width/2+w.width/2*T[O.textAlign],y:w.height/2*T[O.verticalAlign]}},D.prototype.getStackBox=function(O){var w=this.axis,T=w.chart,d=O.boxTop,u=O.defaultX,g=O.xOffset,b=O.width,v=O.boxBottom;return d=w.stacking.usePercentage?100:q(d,this.total,0),d=w.toPixels(d),O=q(u,(O.xAxis||T.xAxis[0]).toPixels(this.x))+g,w=w.toPixels(v||0),w=Math.abs(d-w),v=this.isNegative,T.inverted?{x:(v?d:d-w)-T.plotLeft,y:O-T.plotTop,width:w,height:b}:{x:O-T.plotLeft,y:(v?d-w:d)-T.plotTop,width:b,height:w}},D}(),U}),B(st,"Core/Axis/Stacking/StackingAxis.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Axis/Axis.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Axis/Stacking/StackItem.js"],st["Core/Utilities.js"]],function(U,z,X,V,K){function J(){var r=this,n=r.inverted;r.yAxis.forEach(function(i){i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),r.series.forEach(function(i){var c=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&r.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,h(i.options.stack,""),n?c.top:c.left,n?c.height:c.width].join())})}function q(){var r=this.stacking;if(r){var n=r.stacks;l(n,function(i,c){E(i),n[c]=null}),r&&r.stackTotalGroup&&r.stackTotalGroup.destroy()}}function W(){this.coll!=="yAxis"||this.stacking||(this.stacking=new e(this))}function D(r,n,i,c){return!P(r)||r.x!==n||c&&r.stackKey!==c?r={x:n,index:0,key:c,stackKey:c}:r.index++,r.key=[i,n,r.index].join(),r}function O(){var r,n=this,i=n.stackKey,c=n.yAxis.stacking.stacks,a=n.processedXData,s=n[n.options.stacking+"Stacker"];s&&[i,"-"+i].forEach(function(y){for(var A,_,p=a.length;p--;)A=a[p],r=n.getStackIndicator(r,A,n.index,y),(_=(A=c[y]&&c[y][A])&&A.points[r.key])&&s.call(n,_,A,p)})}function w(r,n,i){n=n.total?100/n.total:0,r[0]=S(r[0]*n),r[1]=S(r[1]*n),this.stackedYData[i]=r[1]}function T(){var r=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?b.setStackedPoints.call(this,"group"):r&&l(r.stacks,function(n,i){i.slice(-5)==="group"&&(l(n,function(c){return c.destroy()}),delete r.stacks[i])})}function d(r){var n=this.chart,i=r||this.options.stacking;if(i&&(this.visible===!0||n.options.chart.ignoreHiddenSeries===!1)){var c=this.processedXData,a=this.processedYData,s=[],y=a.length,A=this.options,_=A.threshold,p=h(A.startFromThreshold&&_,0);A=A.stack;var C,k,F="-"+(r=r?""+this.type+",".concat(i):this.stackKey),G=this.negStacks,I=(n=i==="group"?n.yAxis[0]:this.yAxis).stacking.stacks,j=n.stacking.oldStacks;for(n.stacking.stacksTouched+=1,k=0;k<y;k++){var N=c[k],Z=a[k],$=this.getStackIndicator($,N,this.index),Y=$.key,et=(C=G&&Z<(p?0:_))?F:r;I[et]||(I[et]={}),I[et][N]||(j[et]&&j[et][N]?(I[et][N]=j[et][N],I[et][N].total=null):I[et][N]=new V(n,n.options.stackLabels,!!C,N,A)),et=I[et][N],Z!==null?(et.points[Y]=et.points[this.index]=[h(et.cumulative,p)],P(et.cumulative)||(et.base=Y),et.touched=n.stacking.stacksTouched,0<$.index&&this.singleStacks===!1&&(et.points[Y][0]=et.points[this.index+","+N+",0"][0])):et.points[Y]=et.points[this.index]=null,i==="percent"?(C=C?r:F,G&&I[C]&&I[C][N]?(C=I[C][N],et.total=C.total=Math.max(C.total,et.total)+Math.abs(Z)||0):et.total=S(et.total+(Math.abs(Z)||0))):i==="group"?(f(Z)&&(Z=Z[0]),Z!==null&&(et.total=(et.total||0)+1)):et.total=S(et.total+(Z||0)),et.cumulative=i==="group"?(et.total||1)-1:h(et.cumulative,p)+(Z||0),Z!==null&&(et.points[Y].push(et.cumulative),s[k]=et.cumulative,et.hasValidPoints=!0)}i==="percent"&&(n.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=s),n.stacking.oldStacks={}}}var u,g=U.getDeferredAnimation,b=X.series.prototype,v=K.addEvent,S=K.correctFloat,P=K.defined,E=K.destroyObjectProperties,M=K.fireEvent,f=K.isArray,x=K.isNumber,l=K.objectEach,h=K.pick,e=function(){function r(n){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=n}return r.prototype.buildStacks=function(){var n,i=this.axis,c=i.series,a=i.options.reversedStacks,s=c.length;for(this.usePercentage=!1,n=s;n--;){var y=c[a?n:s-n-1];y.setStackedPoints(),y.setGroupedPoints()}for(n=0;n<s;n++)c[n].modifyStacks();M(i,"afterBuildStacks")},r.prototype.cleanStacks=function(){if(this.oldStacks)var n=this.stacks=this.oldStacks;l(n,function(i){l(i,function(c){c.cumulative=c.total})})},r.prototype.resetStacks=function(){var n=this;l(this.stacks,function(i){l(i,function(c,a){x(c.touched)&&c.touched<n.stacksTouched?(c.destroy(),delete i[a]):(c.total=null,c.cumulative=null)})})},r.prototype.renderStackTotals=function(){var n=this.axis,i=n.chart,c=i.renderer,a=this.stacks;n=g(i,n.options.stackLabels&&n.options.stackLabels.animation||!1);var s=this.stackTotalGroup=this.stackTotalGroup||c.g("stack-labels").attr({zIndex:6,opacity:0}).add();s.translate(i.plotLeft,i.plotTop),l(a,function(y){l(y,function(A){A.render(s)})}),s.animate({opacity:1},n)},r}();return function(r){var n=[];r.compose=function(i,c,a){n.indexOf(i)===-1&&(n.push(i),v(i,"init",W),v(i,"destroy",q)),n.indexOf(c)===-1&&(n.push(c),c.prototype.getStacks=J),n.indexOf(a)===-1&&(n.push(a),(i=a.prototype).getStackIndicator=D,i.modifyStacks=O,i.percentStacker=w,i.setGroupedPoints=T,i.setStackedPoints=d)}}(u||(u={})),u}),B(st,"Series/Line/LineSeries.js",[st["Core/Series/Series.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X){var V=this&&this.__extends||function(){var q=function(W,D){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(W,D)};return function(W,D){function O(){this.constructor=W}q(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}}(),K=X.defined,J=X.merge;return X=function(q){function W(){var D=q!==null&&q.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return V(W,q),W.prototype.drawGraph=function(){var D=this,O=this.options,w=(this.gappedPath||this.getGraphPath).call(this),T=this.chart.styledMode,d=[["graph","highcharts-graph"]];T||d[0].push(O.lineColor||this.color||"#cccccc",O.dashStyle),(d=D.getZonesGraphs(d)).forEach(function(u,g){var b=u[0],v=D[b],S=v?"animate":"attr";v?(v.endX=D.preventGraphAnimation?null:w.xMap,v.animate({d:w})):w.length&&(D[b]=v=D.chart.renderer.path(w).addClass(u[1]).attr({zIndex:1}).add(D.group)),v&&!T&&(b={stroke:u[2],"stroke-width":O.lineWidth||0,fill:D.fillGraph&&D.color||"none"},u[3]?b.dashstyle=u[3]:O.linecap!=="square"&&(b["stroke-linecap"]=b["stroke-linejoin"]="round"),v[S](b).shadow(2>g&&O.shadow)),v&&(v.startX=w.xMap,v.isArea=w.isArea)})},W.prototype.getGraphPath=function(D,O,w){var T,d=this,u=d.options,g=[],b=[],v=u.step,S=(D=D||d.points).reversed;return S&&D.reverse(),(v={right:1,center:2}[v]||v&&3)&&S&&(v=4-v),(D=this.getValidPoints(D,!1,!(u.connectNulls&&!O&&!w))).forEach(function(P,E){var M=P.plotX,f=P.plotY,x=D[E-1];(P.leftCliff||x&&x.rightCliff)&&!w&&(T=!0),P.isNull&&!K(O)&&0<E?T=!u.connectNulls:P.isNull&&!O?T=!0:(E===0||T?E=[["M",P.plotX,P.plotY]]:d.getPointSpline?E=[d.getPointSpline(D,P,E)]:v?(E=v===1?[["L",x.plotX,f]]:v===2?[["L",(x.plotX+M)/2,x.plotY],["L",(x.plotX+M)/2,f]]:[["L",M,x.plotY]]).push(["L",M,f]):E=[["L",M,f]],b.push(P.x),v&&(b.push(P.x),v===2&&b.push(P.x)),g.push.apply(g,E),T=!1)}),g.xMap=b,d.graphPath=g},W.prototype.getZonesGraphs=function(D){return this.zones.forEach(function(O,w){w=["zone-graph-"+w,"highcharts-graph highcharts-zone-graph-"+w+" "+(O.className||"")],this.chart.styledMode||w.push(O.color||this.color,O.dashStyle||this.options.dashStyle),D.push(w)},this),D},W.defaultOptions=J(U.defaultOptions,{}),W}(U),z.registerSeriesType("line",X),X}),B(st,"Series/Area/AreaSeries.js",[st["Core/Color/Color.js"],st["Core/Legend/LegendSymbol.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X,V){var K=this&&this.__extends||function(){var w=function(T,d){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var b in g)g.hasOwnProperty(b)&&(u[b]=g[b])},w(T,d)};return function(T,d){function u(){this.constructor=T}w(T,d),T.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}}(),J=U.parse,q=X.seriesTypes.line;U=V.extend;var W=V.merge,D=V.objectEach,O=V.pick;return V=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.data=void 0,d.options=void 0,d.points=void 0,d}return K(T,w),T.prototype.drawGraph=function(){this.areaPath=[],w.prototype.drawGraph.apply(this);var d=this,u=this.areaPath,g=this.options,b=[["area","highcharts-area",this.color,g.fillColor]];this.zones.forEach(function(v,S){b.push(["zone-area-"+S,"highcharts-area highcharts-zone-area-"+S+" "+v.className,v.color||d.color,v.fillColor||g.fillColor])}),b.forEach(function(v){var S=v[0],P={},E=d[S],M=E?"animate":"attr";E?(E.endX=d.preventGraphAnimation?null:u.xMap,E.animate({d:u})):(P.zIndex=0,(E=d[S]=d.chart.renderer.path(u).addClass(v[1]).add(d.group)).isArea=!0),d.chart.styledMode||(P.fill=O(v[3],J(v[2]).setOpacity(O(g.fillOpacity,.75)).get())),E[M](P),E.startX=u.xMap,E.shiftUnit=g.step?2:1})},T.prototype.getGraphPath=function(d){var u=q.prototype.getGraphPath,g=this.options,b=g.stacking,v=this.yAxis,S=[],P=[],E=this.index,M=v.stacking.stacks[this.stackKey],f=g.threshold,x=Math.round(v.getThreshold(g.threshold));g=O(g.connectNulls,b==="percent");var l=function(c,a,s){var y=d[c];c=b&&M[y.x].points[E];var A=y[s+"Null"]||0;if(s=y[s+"Cliff"]||0,y=!0,s||A){var _=(A?c[0]:c[1])+s,p=c[0]+s;y=!!A}else!b&&d[a]&&d[a].isNull&&(_=p=f);_!==void 0&&(P.push({plotX:n,plotY:_===null?x:v.getThreshold(_),isNull:y,isCliff:!0}),S.push({plotX:n,plotY:p===null?x:v.getThreshold(p),doCurve:!1}))};d=d||this.points,b&&(d=this.getStackPoints(d));for(var h=0,e=d.length;h<e;++h){b||(d[h].leftCliff=d[h].rightCliff=d[h].leftNull=d[h].rightNull=void 0);var r=d[h].isNull,n=O(d[h].rectPlotX,d[h].plotX),i=b?O(d[h].yBottom,x):x;r&&!g||(g||l(h,h-1,"left"),r&&!b&&g||(P.push(d[h]),S.push({x:h,plotX:n,plotY:i})),g||l(h,h+1,"right"))}return l=u.call(this,P,!0,!0),S.reversed=!0,(i=(r=u.call(this,S,!0,!0))[0])&&i[0]==="M"&&(r[0]=["L",i[1],i[2]]),(r=l.concat(r)).length&&r.push(["Z"]),u=u.call(this,P,!1,g),r.xMap=l.xMap,this.areaPath=r,u},T.prototype.getStackPoints=function(d){var u=this,g=[],b=[],v=this.xAxis,S=this.yAxis,P=S.stacking.stacks[this.stackKey],E={},M=S.series,f=M.length,x=S.options.reversedStacks?1:-1,l=M.indexOf(u);if(d=d||this.points,this.options.stacking){for(var h=0;h<d.length;h++)d[h].leftNull=d[h].rightNull=void 0,E[d[h].x]=d[h];D(P,function(r,n){r.total!==null&&b.push(n)}),b.sort(function(r,n){return r-n});var e=M.map(function(r){return r.visible});b.forEach(function(r,n){var i,c,a=0;if(E[r]&&!E[r].isNull)g.push(E[r]),[-1,1].forEach(function(y){var A=y===1?"rightNull":"leftNull",_=P[b[n+y]],p=0;if(_)for(var C=l;0<=C&&C<f;){var k=M[C].index;(i=_.points[k])||(k===u.index?E[r][A]=!0:e[C]&&(c=P[r].points[k])&&(p-=c[1]-c[0])),C+=x}E[r][y===1?"rightCliff":"leftCliff"]=p});else{for(var s=l;0<=s&&s<f;){if(i=P[r].points[M[s].index]){a=i[1];break}s+=x}a=O(a,0),a=S.translate(a,0,1,0,1),g.push({isNull:!0,plotX:v.translate(r,0,0,0,1),x:r,plotY:a,yBottom:a})}})}return g},T.defaultOptions=W(q.defaultOptions,{threshold:0}),T}(q),U(V.prototype,{singleStacks:!1,drawLegendSymbol:z.drawRectangle}),X.registerSeriesType("area",V),V}),B(st,"Series/Spline/SplineSeries.js",[st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z){var X=this&&this.__extends||function(){var q=function(W,D){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(W,D)};return function(W,D){function O(){this.constructor=W}q(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}}(),V=U.seriesTypes.line,K=z.merge,J=z.pick;return z=function(q){function W(){var D=q!==null&&q.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return X(W,q),W.prototype.getPointSpline=function(D,O,w){var T=O.plotX||0,d=O.plotY||0,u=D[w-1];if(w=D[w+1],u&&!u.isNull&&u.doCurve!==!1&&!O.isCliff&&w&&!w.isNull&&w.doCurve!==!1&&!O.isCliff){D=u.plotY||0;var g=w.plotX||0;w=w.plotY||0;var b=0,v=(1.5*T+(u.plotX||0))/2.5,S=(1.5*d+D)/2.5,P=(1.5*d+w)/2.5;(g=(1.5*T+g)/2.5)!==v&&(b=(P-S)*(g-T)/(g-v)+d-P),P+=b,(S+=b)>D&&S>d?P=2*d-(S=Math.max(D,d)):S<D&&S<d&&(P=2*d-(S=Math.min(D,d))),P>w&&P>d?S=2*d-(P=Math.max(w,d)):P<w&&P<d&&(S=2*d-(P=Math.min(w,d))),O.rightContX=g,O.rightContY=P}return O=["C",J(u.rightContX,u.plotX,0),J(u.rightContY,u.plotY,0),J(v,T,0),J(S,d,0),T,d],u.rightContX=u.rightContY=void 0,O},W.defaultOptions=K(V.defaultOptions),W}(V),U.registerSeriesType("spline",z),z}),B(st,"Series/AreaSpline/AreaSplineSeries.js",[st["Series/Spline/SplineSeries.js"],st["Core/Legend/LegendSymbol.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X,V){var K=this&&this.__extends||function(){var O=function(w,T){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},O(w,T)};return function(w,T){function d(){this.constructor=w}O(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}}(),J=X.seriesTypes,q=J.area;J=J.area.prototype;var W=V.extend,D=V.merge;return V=function(O){function w(){var T=O!==null&&O.apply(this,arguments)||this;return T.data=void 0,T.points=void 0,T.options=void 0,T}return K(w,O),w.defaultOptions=D(U.defaultOptions,q.defaultOptions),w}(U),W(V.prototype,{getGraphPath:J.getGraphPath,getStackPoints:J.getStackPoints,drawGraph:J.drawGraph,drawLegendSymbol:z.drawRectangle}),X.registerSeriesType("areaspline",V),V}),B(st,"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"}}),B(st,"Series/Column/ColumnSeries.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Color/Color.js"],st["Series/Column/ColumnSeriesDefaults.js"],st["Core/Globals.js"],st["Core/Legend/LegendSymbol.js"],st["Core/Series/Series.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W){var D=this&&this.__extends||function(){var f=function(x,l){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,e){h.__proto__=e}||function(h,e){for(var r in e)e.hasOwnProperty(r)&&(h[r]=e[r])},f(x,l)};return function(x,l){function h(){this.constructor=x}f(x,l),x.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}}(),O=U.animObject,w=z.parse,T=V.hasTouch;U=V.noop;var d=W.clamp,u=W.defined,g=W.extend,b=W.fireEvent,v=W.isArray,S=W.isNumber,P=W.merge,E=W.pick,M=W.objectEach;return W=function(f){function x(){var l=f!==null&&f.apply(this,arguments)||this;return l.borderWidth=void 0,l.data=void 0,l.group=void 0,l.options=void 0,l.points=void 0,l}return D(x,f),x.prototype.animate=function(l){var h=this,e=this.yAxis,r=h.options,n=this.chart.inverted,i={},c=n?"translateX":"translateY";if(l)i.scaleY=.001,l=d(e.toPixels(r.threshold),e.pos,e.pos+e.len),n?i.translateX=l-e.len:i.translateY=l,h.clipBox&&h.setClip(),h.group.attr(i);else{var a=Number(h.group.attr(c));h.group.animate({scaleY:1},g(O(h.options.animation),{step:function(s,y){h.group&&(i[c]=a+y.pos*(e.pos-a),h.group.attr(i))}}))}},x.prototype.init=function(l,h){f.prototype.init.apply(this,arguments);var e=this;(l=e.chart).hasRendered&&l.series.forEach(function(r){r.type===e.type&&(r.isDirty=!0)})},x.prototype.getColumnMetrics=function(){var l=this,h=l.options,e=l.xAxis,r=l.yAxis,n=e.options.reversedStacks;n=e.reversed&&!n||!e.reversed&&n;var i,c={},a=0;h.grouping===!1?a=1:l.chart.series.forEach(function(_){var p=_.yAxis,C=_.options;if(_.type===l.type&&(_.visible||!l.chart.options.chart.ignoreHiddenSeries)&&r.len===p.len&&r.pos===p.pos){if(C.stacking&&C.stacking!=="group"){i=_.stackKey,c[i]===void 0&&(c[i]=a++);var k=c[i]}else C.grouping!==!1&&(k=a++);_.columnIndex=k}});var s=Math.min(Math.abs(e.transA)*(e.ordinal&&e.ordinal.slope||h.pointRange||e.closestPointRange||e.tickInterval||1),e.len),y=s*h.groupPadding,A=(s-2*y)/(a||1);return h=Math.min(h.maxPointWidth||e.len,E(h.pointWidth,A*(1-2*h.pointPadding))),l.columnMetrics={width:h,offset:(A-h)/2+(y+((l.columnIndex||0)+(n?1:0))*A-s/2)*(n?-1:1),paddedWidth:A,columnCount:a},l.columnMetrics},x.prototype.crispCol=function(l,h,e,r){var n=this.chart,i=this.borderWidth,c=-(i%2?.5:0);return i=i%2?.5:1,n.inverted&&n.renderer.isVML&&(i+=1),this.options.crisp&&(e=Math.round(l+e)+c,e-=l=Math.round(l)+c),r=Math.round(h+r)+i,c=.5>=Math.abs(h)&&.5<r,r-=h=Math.round(h)+i,c&&r&&(--h,r+=1),{x:l,y:h,width:e,height:r}},x.prototype.adjustForMissingColumns=function(l,h,e,r){var n=this,i=this.options.stacking;if(!e.isNull&&1<r.columnCount){var c=this.yAxis.options.reversedStacks,a=0,s=c?0:-r.columnCount;M(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(y){if(typeof e.x=="number"){var A=y[e.x.toString()];A&&(y=A.points[n.index],i?(y&&(a=s),A.hasValidPoints&&(c?s++:s--)):v(y)&&(y=Object.keys(A.points).filter(function(_){return!_.match(",")&&A.points[_]&&1<A.points[_].length}).map(parseFloat).sort(function(_,p){return p-_}),a=y.indexOf(n.index),s=y.length))}}),l=(e.plotX||0)+((s-1)*r.paddedWidth+h)/2-h-a*r.paddedWidth}return l},x.prototype.translate=function(){var l=this,h=l.chart,e=l.options,r=l.dense=2>l.closestPointRange*l.xAxis.transA;r=l.borderWidth=E(e.borderWidth,r?0:1);var n=l.xAxis,i=l.yAxis,c=e.threshold,a=l.translatedThreshold=i.getThreshold(c),s=E(e.minPointLength,5),y=l.getColumnMetrics(),A=y.width,_=l.pointXOffset=y.offset,p=l.dataMin,C=l.dataMax,k=l.barW=Math.max(A,1+2*r);h.inverted&&(a-=.5),e.pointPadding&&(k=Math.ceil(k)),J.prototype.translate.apply(l),l.points.forEach(function(F){var G=E(F.yBottom,a),I=999+Math.abs(G),j=F.plotX||0;I=d(F.plotY,-I,i.len+I);var N=Math.min(I,G),Z=Math.max(I,G)-N,$=A,Y=j+_,et=k;s&&Math.abs(Z)<s&&(Z=s,j=!i.reversed&&!F.negative||i.reversed&&F.negative,S(c)&&S(C)&&F.y===c&&C<=c&&(i.min||0)<c&&(p!==C||(i.max||0)<=c)&&(j=!j),N=Math.abs(N-a)>s?G-s:a-(j?s:0)),u(F.options.pointWidth)&&($=et=Math.ceil(F.options.pointWidth),Y-=Math.round(($-A)/2)),e.centerInCategory&&(Y=l.adjustForMissingColumns(Y,$,F,y)),F.barX=Y,F.pointWidth=$,F.tooltipPos=h.inverted?[d(i.len+i.pos-h.plotLeft-I,i.pos-h.plotLeft,i.len+i.pos-h.plotLeft),n.len+n.pos-h.plotTop-Y-et/2,Z]:[n.left-h.plotLeft+Y+et/2,d(I+i.pos-h.plotTop,i.pos-h.plotTop,i.len+i.pos-h.plotTop),Z],F.shapeType=l.pointClass.prototype.shapeType||"rect",F.shapeArgs=l.crispCol.apply(l,F.isNull?[Y,a,et,0]:[Y,N,et,Z])})},x.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},x.prototype.pointAttribs=function(l,h){var e=this.options,r=this.pointAttrToOptions||{},n=r.stroke||"borderColor",i=r["stroke-width"]||"borderWidth",c=l&&l.color||this.color,a=l&&l[n]||e[n]||c;r=l&&l.options.dashStyle||e.dashStyle;var s=l&&l[i]||e[i]||this[i]||0,y=E(l&&l.opacity,e.opacity,1);if(l&&this.zones.length){var A=l.getZone();c=l.options.color||A&&(A.color||l.nonZonedColor)||this.color,A&&(a=A.borderColor||a,r=A.dashStyle||r,s=A.borderWidth||s)}return h&&l&&(h=(l=P(e.states[h],l.options.states&&l.options.states[h]||{})).brightness,c=l.color||h!==void 0&&w(c).brighten(l.brightness).get()||c,a=l[n]||a,s=l[i]||s,r=l.dashStyle||r,y=E(l.opacity,y)),n={fill:c,stroke:a,"stroke-width":s,opacity:y},r&&(n.dashstyle=r),n},x.prototype.drawPoints=function(l){l===void 0&&(l=this.points);var h,e=this,r=this.chart,n=e.options,i=r.renderer,c=n.animationLimit||250;l.forEach(function(a){var s=a.graphic,y=!!s,A=s&&r.pointCount<c?"animate":"attr";S(a.plotY)&&a.y!==null?(h=a.shapeArgs,s&&a.hasNewShapeType()&&(s=s.destroy()),e.enabledDataSorting&&(a.startXPos=e.xAxis.reversed?-(h&&h.width||0):e.xAxis.width),s||(a.graphic=s=i[a.shapeType](h).add(a.group||e.group))&&e.enabledDataSorting&&r.hasRendered&&r.pointCount<c&&(s.attr({x:a.startXPos}),y=!0,A="animate"),s&&y&&s[A](P(h)),n.borderRadius&&s[A]({r:n.borderRadius}),r.styledMode||s[A](e.pointAttribs(a,a.selected&&"select")).shadow(a.allowShadow!==!1&&n.shadow,null,n.stacking&&!n.borderRadius),s&&(s.addClass(a.getClassName(),!0),s.attr({visibility:a.visible?"inherit":"hidden"}))):s&&(a.graphic=s.destroy())})},x.prototype.drawTracker=function(l){l===void 0&&(l=this.points);var h,e=this,r=e.chart,n=r.pointer,i=function(c){var a=n.getPointFromEvent(c);a!==void 0&&(n.isDirectTouch=!0,a.onMouseOver(c))};l.forEach(function(c){h=v(c.dataLabels)?c.dataLabels:c.dataLabel?[c.dataLabel]:[],c.graphic&&(c.graphic.element.point=c),h.forEach(function(a){a.div?a.div.point=c:a.element.point=c})}),e._hasTracking||(e.trackerGroups.forEach(function(c){e[c]&&(e[c].addClass("highcharts-tracker").on("mouseover",i).on("mouseout",function(a){n.onTrackerMouseOut(a)}),T&&e[c].on("touchstart",i),!r.styledMode&&e.options.cursor&&e[c].css({cursor:e.options.cursor}))}),e._hasTracking=!0),b(this,"afterDrawTracker")},x.prototype.remove=function(){var l=this,h=l.chart;h.hasRendered&&h.series.forEach(function(e){e.type===l.type&&(e.isDirty=!0)}),J.prototype.remove.apply(l,arguments)},x.defaultOptions=P(J.defaultOptions,X),x}(J),g(W.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:K.drawRectangle,getSymbol:U,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),q.registerSeriesType("column",W),W}),B(st,"Core/Series/DataLabel.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/FormatUtilities.js"],st["Core/Utilities.js"]],function(U,z,X){var V,K=U.getDeferredAnimation,J=z.format,q=X.defined,W=X.extend,D=X.fireEvent,O=X.isArray,w=X.isString,T=X.merge,d=X.objectEach,u=X.pick,g=X.splat;return function(b){function v(x,l,h,e,r){var n=this,i=this.chart,c=this.isCartesian&&i.inverted,a=this.enabledDataSorting,s=x.plotX,y=x.plotY,A=h.rotation,_=h.align,p=q(s)&&q(y)&&i.isInsidePlot(s,Math.round(y),{inverted:c,paneCoordinates:!0,series:n});y=function(G){a&&n.xAxis&&!C&&n.setDataLabelStartPos(x,l,r,p,G)};var C=u(h.overflow,a?"none":"justify")==="justify";if(s=this.visible&&x.visible!==!1&&q(s)&&(x.series.forceDL||a&&!C||p||u(h.inside,!!this.options.stacking)&&e&&i.isInsidePlot(s,c?e.x+1:e.y+e.height-1,{inverted:c,paneCoordinates:!0,series:n})),c=x.pos(),s&&c){A&&l.attr({align:_}),_=l.getBBox(!0);var k=[0,0],F=i.renderer.fontMetrics(i.styledMode?void 0:h.style.fontSize,l).b;e=W({x:c[0],y:Math.round(c[1]),width:0,height:0},e),W(h,{width:_.width,height:_.height}),A?(C=!1,k=i.renderer.rotCorr(F,A),F={x:e.x+(h.x||0)+e.width/2+k.x,y:e.y+(h.y||0)+{top:0,middle:.5,bottom:1}[h.verticalAlign]*e.height},k=[_.x-Number(l.attr("x")),_.y-Number(l.attr("y"))],y(F),l[r?"attr":"animate"](F)):(y(e),l.align(h,void 0,e),F=l.alignAttr),C&&0<=e.height?this.justifyDataLabel(l,h,F,_,e,r):u(h.crop,!0)&&(e=F.x,y=F.y,e+=k[0],y+=k[1],s=i.isInsidePlot(e,y,{paneCoordinates:!0,series:n})&&i.isInsidePlot(e+_.width,y+_.height,{paneCoordinates:!0,series:n})),h.shape&&!A&&l[r?"attr":"animate"]({anchorX:c[0],anchorY:c[1]})}r&&a&&(l.placed=!1),s||a&&!C?l.show():(l.hide(),l.placed=!1)}function S(x){x===void 0&&(x=this.points);var l=this,h=l.chart,e=l.options,r=l.hasRendered||0,n=h.renderer,i=h.options.chart,c=i.backgroundColor;i=i.plotBackgroundColor;var a=n.getContrast(w(i)&&i||w(c)&&c||"#000000"),s=e.dataLabels;if(c=s.animation,c=s.defer?K(h,c,l):{defer:0,duration:0},s=E(E(h.options.plotOptions&&h.options.plotOptions.series&&h.options.plotOptions.series.dataLabels,h.options.plotOptions&&h.options.plotOptions[l.type]&&h.options.plotOptions[l.type].dataLabels),s),D(this,"drawDataLabels"),O(s)||s.enabled||l._hasPointLabels){var y=l.plotGroup("dataLabelsGroup","data-labels",r?"inherit":"hidden",s.zIndex||6);y.attr({opacity:+r}),!r&&(r=l.dataLabelsGroup)&&(l.visible&&y.show(),r[e.animation?"animate":"attr"]({opacity:1},c)),x.forEach(function(A){g(E(s,A.dlOptions||A.options&&A.options.dataLabels)).forEach(function(_,p){var C=_.enabled&&(!A.isNull||A.dataLabelOnNull)&&function(et,rt){var it=rt.filter;return!it||(rt=it.operator,et=et[it.property],it=it.value,rt===">"&&et>it||rt==="<"&&et<it||rt===">="&&et>=it||rt==="<="&&et<=it||rt==="=="&&et==it||rt==="==="&&et===it)}(A,_),k=A.connectors?A.connectors[p]:A.connector,F=A.dataLabels?A.dataLabels[p]:A.dataLabel,G=!F,I=u(_.distance,A.labelDistance);if(C){var j=A.getLabelConfig(),N=u(_[A.formatPrefix+"Format"],_.format);j=q(N)?J(N,j,h):(_[A.formatPrefix+"Formatter"]||_.formatter).call(j,_),N=_.style;var Z=_.rotation;h.styledMode||(N.color=u(_.color,N.color,l.color,"#000000"),N.color==="contrast"?(A.contrastColor=n.getContrast(A.color||l.color),N.color=!q(I)&&_.inside||0>I||e.stacking?A.contrastColor:a):delete A.contrastColor,e.cursor&&(N.cursor=e.cursor));var $={r:_.borderRadius||0,rotation:Z,padding:_.padding,zIndex:1};if(!h.styledMode){I=_.backgroundColor;var Y=_.borderColor;$.fill=I==="auto"?A.color:I,$.stroke=Y==="auto"?A.color:Y,$["stroke-width"]=_.borderWidth}d($,function(et,rt){et===void 0&&delete $[rt]})}!F||C&&q(j)&&!!F.div==!!_.useHTML&&(F.rotation&&_.rotation||F.rotation===_.rotation)||(G=!0,A.dataLabel=F=A.dataLabel&&A.dataLabel.destroy(),A.dataLabels&&(A.dataLabels.length===1?delete A.dataLabels:delete A.dataLabels[p]),p||delete A.dataLabel,k&&(A.connector=A.connector.destroy(),A.connectors&&(A.connectors.length===1?delete A.connectors:delete A.connectors[p]))),C&&q(j)?(F?$.text=j:(A.dataLabels=A.dataLabels||[],F=A.dataLabels[p]=Z?n.text(j,0,0,_.useHTML).addClass("highcharts-data-label"):n.label(j,0,0,_.shape,null,null,_.useHTML,null,"data-label"),p||(A.dataLabel=F),F.addClass(" highcharts-data-label-color-"+A.colorIndex+" "+(_.className||"")+(_.useHTML?" highcharts-tracker":""))),F.options=_,F.attr($),h.styledMode||F.css(N).shadow(_.shadow),(p=_[A.formatPrefix+"TextPath"]||_.textPath)&&!_.useHTML&&(F.setTextPath(A.getDataLabelPath&&A.getDataLabelPath(F)||A.graphic,p),A.dataLabelPath&&!p.enabled&&(A.dataLabelPath=A.dataLabelPath.destroy())),F.added||F.add(y),l.alignDataLabel(A,F,_,null,G)):F&&F.hide()})})}D(this,"afterDrawDataLabels")}function P(x,l,h,e,r,n){var i=this.chart,c=l.align,a=l.verticalAlign,s=x.box?0:x.padding||0,y=l.x;y=y===void 0?0:y;var A=l.y;A=A===void 0?0:A;var _=(h.x||0)+s;if(0>_){c==="right"&&0<=y?(l.align="left",l.inside=!0):y-=_;var p=!0}return(_=(h.x||0)+e.width-s)>i.plotWidth&&(c==="left"&&0>=y?(l.align="right",l.inside=!0):y+=i.plotWidth-_,p=!0),0>(_=h.y+s)&&(a==="bottom"&&0<=A?(l.verticalAlign="top",l.inside=!0):A-=_,p=!0),(_=(h.y||0)+e.height-s)>i.plotHeight&&(a==="top"&&0>=A?(l.verticalAlign="bottom",l.inside=!0):A+=i.plotHeight-_,p=!0),p&&(l.x=y,l.y=A,x.placed=!n,x.align(l,void 0,r)),p}function E(x,l){var h,e=[];if(O(x)&&!O(l))e=x.map(function(r){return T(r,l)});else if(O(l)&&!O(x))e=l.map(function(r){return T(x,r)});else if(O(x)||O(l))for(h=Math.max(x.length,l.length);h--;)e[h]=T(x[h],l[h]);else e=T(x,l);return e}function M(x,l,h,e,r){var n=this.chart,i=n.inverted,c=this.xAxis,a=c.reversed,s=i?l.height/2:l.width/2;x=(x=x.pointWidth)?x/2:0,l.startXPos=i?r.x:a?-s-x:c.width-s+x,l.startYPos=i?a?this.yAxis.height-s+x:-s-x:r.y,e?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),n.hasRendered&&(h&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}var f=[];b.compose=function(x){if(f.indexOf(x)===-1){var l=x.prototype;f.push(x),l.alignDataLabel=v,l.drawDataLabels=S,l.justifyDataLabel=P,l.setDataLabelStartPos=M}}}(V||(V={})),V}),B(st,"Series/Column/ColumnDataLabel.js",[st["Core/Series/DataLabel.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X){var V,K=z.series,J=X.merge,q=X.pick;return function(W){function D(w,T,d,u,g){var b=this.chart.inverted,v=w.series,S=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var P=w.dlBox||w.shapeArgs,E=q(w.below,w.plotY>q(this.translatedThreshold,v)),M=q(d.inside,!!this.options.stacking);P&&(0>(u=J(P)).y&&(u.height+=u.y,u.y=0),0<(P=u.y+u.height-v)&&P<u.height&&(u.height-=P),b&&(u={x:v-u.y-u.height,y:S-u.x-u.width,width:u.height,height:u.width}),M||(b?(u.x+=E?0:u.width,u.width=0):(u.y+=E?u.height:0,u.height=0))),d.align=q(d.align,!b||M?"center":E?"right":"left"),d.verticalAlign=q(d.verticalAlign,b||M?"middle":E?"top":"bottom"),K.prototype.alignDataLabel.call(this,w,T,d,u,g),d.inside&&w.contrastColor&&T.css({color:w.contrastColor})}var O=[];W.compose=function(w){U.compose(K),O.indexOf(w)===-1&&(O.push(w),w.prototype.alignDataLabel=D)}}(V||(V={})),V}),B(st,"Series/Bar/BarSeries.js",[st["Series/Column/ColumnSeries.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X){var V=this&&this.__extends||function(){var q=function(W,D){return(q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])})(W,D)};return function(W,D){function O(){this.constructor=W}q(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}}(),K=X.extend,J=X.merge;return X=function(q){function W(){var D=q!==null&&q.apply(this,arguments)||this;return D.data=void 0,D.options=void 0,D.points=void 0,D}return V(W,q),W.defaultOptions=J(U.defaultOptions,{}),W}(U),K(X.prototype,{inverted:!0}),z.registerSeriesType("bar",X),X}),B(st,"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/>"}}}),B(st,"Series/Scatter/ScatterSeries.js",[st["Series/Scatter/ScatterSeriesDefaults.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X){var V=this&&this.__extends||function(){var O=function(w,T){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},O(w,T)};return function(w,T){function d(){this.constructor=w}O(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}}(),K=z.seriesTypes,J=K.column,q=K.line;K=X.addEvent;var W=X.extend,D=X.merge;return X=function(O){function w(){var T=O!==null&&O.apply(this,arguments)||this;return T.data=void 0,T.options=void 0,T.points=void 0,T}return V(w,O),w.prototype.applyJitter=function(){var T=this,d=this.options.jitter,u=this.points.length;d&&this.points.forEach(function(g,b){["x","y"].forEach(function(v,S){var P="plot"+v.toUpperCase();if(d[v]&&!g.isNull){var E=T[v+"Axis"],M=d[v]*E.transA;if(E&&!E.isLog){var f=Math.max(0,g[P]-M);E=Math.min(E.len,g[P]+M),S=1e4*Math.sin(b+S*u),g[P]=f+(E-f)*(S-Math.floor(S)),v==="x"&&(g.clientX=g.plotX)}}})})},w.prototype.drawGraph=function(){this.options.lineWidth?O.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},w.defaultOptions=D(q.defaultOptions,U),w}(q),W(X.prototype,{drawTracker:J.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),K(X,"afterTranslate",function(){this.applyJitter()}),z.registerSeriesType("scatter",X),X}),B(st,"Series/CenteredUtilities.js",[st["Core/Globals.js"],st["Core/Series/Series.js"],st["Core/Utilities.js"]],function(U,z,X){var V,K=U.deg2rad,J=X.fireEvent,q=X.isNumber,W=X.pick,D=X.relativeLength;return function(O){O.getCenter=function(){var w=this.options,T=this.chart,d=2*(w.slicedOffset||0),u=T.plotWidth-2*d,g=T.plotHeight-2*d,b=w.center,v=Math.min(u,g),S=w.thickness,P=w.size,E=w.innerSize||0;for(typeof P=="string"&&(P=parseFloat(P)),typeof E=="string"&&(E=parseFloat(E)),w=[W(b[0],"50%"),W(b[1],"50%"),W(P&&0>P?void 0:w.size,"100%"),W(E&&0>E?void 0:w.innerSize||0,"0%")],!T.angular||this instanceof z||(w[3]=0),b=0;4>b;++b)P=w[b],T=2>b||b===2&&/%$/.test(P),w[b]=D(P,[u,g,v,w[2]][b])+(T?d:0);return w[3]>w[2]&&(w[3]=w[2]),q(S)&&2*S<w[2]&&0<S&&(w[3]=w[2]-2*S),J(this,"afterGetCenter",{positions:w}),w},O.getStartAndEndRadians=function(w,T){return w=q(w)?w:0,T=q(T)&&T>w&&360>T-w?T:w+360,{start:K*(w+-90),end:K*(T+-90)}}}(V||(V={})),V}),B(st,"Series/Pie/PiePoint.js",[st["Core/Animation/AnimationUtilities.js"],st["Core/Series/Point.js"],st["Core/Utilities.js"]],function(U,z,X){var V=this&&this.__extends||function(){var w=function(T,d){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var b in g)g.hasOwnProperty(b)&&(u[b]=g[b])},w(T,d)};return function(T,d){function u(){this.constructor=T}w(T,d),T.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}}(),K=U.setAnimation,J=X.addEvent,q=X.defined;U=X.extend;var W=X.isNumber,D=X.pick,O=X.relativeLength;return z=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.labelDistance=void 0,d.options=void 0,d.series=void 0,d}return V(T,w),T.prototype.getConnectorPath=function(){var d=this.labelPosition,u=this.series.options.dataLabels,g=this.connectorShapes,b=u.connectorShape;return g[b]&&(b=g[b]),b.call(this,{x:d.final.x,y:d.final.y,alignment:d.alignment},d.connectorPosition,u)},T.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},T.prototype.haloPath=function(d){var u=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(u.x,u.y,u.r+d,u.r+d,{innerR:u.r-1,start:u.start,end:u.end})},T.prototype.init=function(){var d=this;w.prototype.init.apply(this,arguments),this.name=D(this.name,"Slice");var u=function(g){d.slice(g.type==="select")};return J(this,"select",u),J(this,"unselect",u),this},T.prototype.isValid=function(){return W(this.y)&&0<=this.y},T.prototype.setVisible=function(d,u){var g=this,b=this.series,v=b.chart,S=b.options.ignoreHiddenPoint;u=D(u,S),d!==this.visible&&(this.visible=this.options.visible=d=d===void 0?!this.visible:d,b.options.data[b.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(P){g[P]&&g[P][d?"show":"hide"](d)}),this.legendItem&&v.legend.colorizeItem(this,d),d||this.state!=="hover"||this.setState(""),S&&(b.isDirty=!0),u&&v.redraw())},T.prototype.slice=function(d,u,g){var b=this.series;K(g,b.chart),D(u,!0),this.sliced=this.options.sliced=q(d)?d:!this.sliced,b.options.data[b.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},T}(z),U(z.prototype,{connectorShapes:{fixedOffset:function(w,T,d){var u=T.breakAt;return T=T.touchingSliceAt,[["M",w.x,w.y],d.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*u.x-T.x,2*u.y-T.y,u.x,u.y]:["L",u.x,u.y],["L",T.x,T.y]]},straight:function(w,T){return T=T.touchingSliceAt,[["M",w.x,w.y],["L",T.x,T.y]]},crookedLine:function(w,T,d){T=T.touchingSliceAt;var u=this.series,g=u.center[0],b=u.chart.plotWidth,v=u.chart.plotLeft;u=w.alignment;var S=this.shapeArgs.r;return d=O(d.crookDistance,1),d=["L",b=u==="left"?g+S+(b+v-g-S)*(1-d):v+(g-S)*d,w.y],g=!0,(u==="left"?b>w.x||b<T.x:b<w.x||b>T.x)&&(g=!1),w=[["M",w.x,w.y]],g&&w.push(d),w.push(["L",T.x,T.y]),w}}}),z}),B(st,"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}}}}),B(st,"Series/Pie/PieSeries.js",[st["Series/CenteredUtilities.js"],st["Series/Column/ColumnSeries.js"],st["Core/Globals.js"],st["Core/Legend/LegendSymbol.js"],st["Series/Pie/PiePoint.js"],st["Series/Pie/PieSeriesDefaults.js"],st["Core/Series/Series.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Renderer/SVG/Symbols.js"],st["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O){var w=this&&this.__extends||function(){var P=function(E,M){return P=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(f,x){f.__proto__=x}||function(f,x){for(var l in x)x.hasOwnProperty(l)&&(f[l]=x[l])},P(E,M)};return function(E,M){function f(){this.constructor=E}P(E,M),E.prototype=M===null?Object.create(M):(f.prototype=M.prototype,new f)}}(),T=U.getStartAndEndRadians;X=X.noop;var d=O.clamp,u=O.extend,g=O.fireEvent,b=O.merge,v=O.pick,S=O.relativeLength;return O=function(P){function E(){var M=P!==null&&P.apply(this,arguments)||this;return M.center=void 0,M.data=void 0,M.maxLabelDistance=void 0,M.options=void 0,M.points=void 0,M}return w(E,P),E.prototype.animate=function(M){var f=this,x=f.points,l=f.startAngleRad;M||x.forEach(function(h){var e=h.graphic,r=h.shapeArgs;e&&r&&(e.attr({r:v(h.startR,f.center&&f.center[3]/2),start:l,end:l}),e.animate({r:r.r,start:r.start,end:r.end},f.options.animation))})},E.prototype.drawEmpty=function(){var M=this.startAngleRad,f=this.endAngleRad,x=this.options;if(this.total===0&&this.center){var l=this.center[0],h=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(l,h,this.center[1]/2,0,M,f).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:D.arc(l,h,this.center[2]/2,0,{start:M,end:f,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":x.borderWidth,fill:x.fillColor||"none",stroke:x.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},E.prototype.drawPoints=function(){var M=this.chart.renderer;this.points.forEach(function(f){f.graphic&&f.hasNewShapeType()&&(f.graphic=f.graphic.destroy()),f.graphic||(f.graphic=M[f.shapeType](f.shapeArgs).add(f.series.group),f.delayedRendering=!0)})},E.prototype.generatePoints=function(){P.prototype.generatePoints.call(this),this.updateTotals()},E.prototype.getX=function(M,f,x){var l=this.center,h=this.radii?this.radii[x.index]||0:l[2]/2;return M=Math.asin(d((M-l[1])/(h+x.labelDistance),-1,1)),l[0]+(f?-1:1)*Math.cos(M)*(h+x.labelDistance)+(0<x.labelDistance?(f?-1:1)*this.options.dataLabels.padding:0)},E.prototype.hasData=function(){return!!this.processedXData.length},E.prototype.redrawPoints=function(){var M,f,x,l,h=this,e=h.chart,r=e.renderer,n=h.options.shadow;this.drawEmpty(),!n||h.shadowGroup||e.styledMode||(h.shadowGroup=r.g("shadow").attr({zIndex:-1}).add(h.group)),h.points.forEach(function(i){var c={};if(f=i.graphic,!i.isNull&&f){var a=void 0;l=i.shapeArgs,M=i.getTranslate(),e.styledMode||(a=i.shadowGroup,n&&!a&&(a=i.shadowGroup=r.g("shadow").add(h.shadowGroup)),a&&a.attr(M),x=h.pointAttribs(i,i.selected&&"select")),i.delayedRendering?(f.setRadialReference(h.center).attr(l).attr(M),e.styledMode||f.attr(x).attr({"stroke-linejoin":"round"}).shadow(n,a),i.delayedRendering=!1):(f.setRadialReference(h.center),e.styledMode||b(!0,c,x),b(!0,c,l,M),f.animate(c)),f.attr({visibility:i.visible?"inherit":"hidden"}),f.addClass(i.getClassName(),!0)}else f&&(i.graphic=f.destroy())})},E.prototype.sortByAngle=function(M,f){M.sort(function(x,l){return x.angle!==void 0&&(l.angle-x.angle)*f})},E.prototype.translate=function(M){g(this,"translate"),this.generatePoints();var f=this.options,x=f.slicedOffset,l=x+(f.borderWidth||0),h=T(f.startAngle,f.endAngle),e=this.startAngleRad=h.start;h=(this.endAngleRad=h.end)-e;var r=this.points,n=f.dataLabels.distance;f=f.ignoreHiddenPoint;var i,c=r.length,a=0;for(M||(this.center=M=this.getCenter()),i=0;i<c;i++){var s=r[i],y=e+a*h;!s.isValid()||f&&!s.visible||(a+=s.percentage/100);var A=e+a*h,_={x:M[0],y:M[1],r:M[2]/2,innerR:M[3]/2,start:Math.round(1e3*y)/1e3,end:Math.round(1e3*A)/1e3};s.shapeType="arc",s.shapeArgs=_,s.labelDistance=v(s.options.dataLabels&&s.options.dataLabels.distance,n),s.labelDistance=S(s.labelDistance,_.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,s.labelDistance),(A=(A+y)/2)>1.5*Math.PI?A-=2*Math.PI:A<-Math.PI/2&&(A+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(A)*x),translateY:Math.round(Math.sin(A)*x)},_=Math.cos(A)*M[2]/2;var p=Math.sin(A)*M[2]/2;s.tooltipPos=[M[0]+.7*_,M[1]+.7*p],s.half=A<-Math.PI/2||A>Math.PI/2?1:0,s.angle=A,y=Math.min(l,s.labelDistance/5),s.labelPosition={natural:{x:M[0]+_+Math.cos(A)*s.labelDistance,y:M[1]+p+Math.sin(A)*s.labelDistance},final:{},alignment:0>s.labelDistance?"center":s.half?"right":"left",connectorPosition:{breakAt:{x:M[0]+_+Math.cos(A)*y,y:M[1]+p+Math.sin(A)*y},touchingSliceAt:{x:M[0]+_,y:M[1]+p}}}}g(this,"afterTranslate")},E.prototype.updateTotals=function(){var M,f=this.points,x=f.length,l=this.options.ignoreHiddenPoint,h=0;for(M=0;M<x;M++){var e=f[M];!e.isValid()||l&&!e.visible||(h+=e.y)}for(this.total=h,M=0;M<x;M++)(e=f[M]).percentage=0<h&&(e.visible||!l)?e.y/h*100:0,e.total=h},E.defaultOptions=b(q.defaultOptions,J),E}(q),u(O.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:z.prototype.drawTracker,getCenter:U.getCenter,getSymbol:X,isCartesian:!1,noSharedTooltip:!0,pointAttribs:z.prototype.pointAttribs,pointClass:K,requireSorting:!1,searchPoint:X,trackerGroups:["group","dataLabelsGroup"]}),W.registerSeriesType("pie",O),O}),B(st,"Series/Pie/PieDataLabel.js",[st["Core/Series/DataLabel.js"],st["Core/Globals.js"],st["Core/Renderer/RendererUtilities.js"],st["Core/Series/SeriesRegistry.js"],st["Core/Utilities.js"]],function(U,z,X,V,K){var J,q=z.noop,W=X.distribute,D=V.series,O=K.arrayMax,w=K.clamp,T=K.defined,d=K.merge,u=K.pick,g=K.relativeLength;return function(b){function v(){var f,x,l,h,e,r,n,i,c,a,s,y,A=this,_=A.data,p=A.chart,C=A.options.dataLabels||{},k=C.connectorPadding,F=p.plotWidth,G=p.plotHeight,I=p.plotLeft,j=Math.round(p.chartWidth/3),N=A.center,Z=N[2]/2,$=N[1],Y=[[],[]],et=[0,0,0,0],rt=A.dataLabelPositioners;A.visible&&(C.enabled||A._hasPointLabels)&&(_.forEach(function(it){it.dataLabel&&it.visible&&it.dataLabel.shortened&&(it.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),it.dataLabel.shortened=!1)}),D.prototype.drawDataLabels.apply(A),_.forEach(function(it){it.dataLabel&&(it.visible?(Y[it.half].push(it),it.dataLabel._pos=null,!T(C.style.width)&&!T(it.options.dataLabels&&it.options.dataLabels.style&&it.options.dataLabels.style.width)&&it.dataLabel.getBBox().width>j&&(it.dataLabel.css({width:Math.round(.7*j)+"px"}),it.dataLabel.shortened=!0)):(it.dataLabel=it.dataLabel.destroy(),it.dataLabels&&it.dataLabels.length===1&&delete it.dataLabels))}),Y.forEach(function(it,ht){var dt,bt=it.length,xt=[];if(bt){if(A.sortByAngle(it,ht-.5),0<A.maxLabelDistance){var St=Math.max(0,$-Z-A.maxLabelDistance),wt=Math.min($+Z+A.maxLabelDistance,p.plotHeight);it.forEach(function(mt){0<mt.labelDistance&&mt.dataLabel&&(mt.top=Math.max(0,$-Z-mt.labelDistance),mt.bottom=Math.min($+Z+mt.labelDistance,p.plotHeight),dt=mt.dataLabel.getBBox().height||21,mt.distributeBox={target:mt.labelPosition.natural.y-mt.top+dt/2,size:dt,rank:mt.y},xt.push(mt.distributeBox))}),W(xt,St=wt+dt-St,St/5)}for(s=0;s<bt;s++){if(f=it[s],r=f.labelPosition,h=f.dataLabel,a=f.visible===!1?"hidden":"inherit",c=St=r.natural.y,xt&&T(f.distributeBox)&&(f.distributeBox.pos===void 0?a="hidden":(n=f.distributeBox.size,c=rt.radialDistributionY(f))),delete f.positionIndex,C.justify)i=rt.justify(f,Z,N);else switch(C.alignTo){case"connectors":i=rt.alignToConnectors(it,ht,F,I);break;case"plotEdges":i=rt.alignToPlotEdges(h,ht,F,I);break;default:i=rt.radialDistributionX(A,f,c,St)}h._attr={visibility:a,align:r.alignment},y=f.options.dataLabels||{},h._pos={x:i+u(y.x,C.x)+({left:k,right:-k}[r.alignment]||0),y:c+u(y.y,C.y)-10},r.final.x=i,r.final.y=c,u(C.crop,!0)&&(e=h.getBBox().width,St=null,i-e<k&&ht===1?(St=Math.round(e-i+k),et[3]=Math.max(St,et[3])):i+e>F-k&&ht===0&&(St=Math.round(i+e-F+k),et[1]=Math.max(St,et[1])),0>c-n/2?et[0]=Math.max(Math.round(n/2-c),et[0]):c+n/2>G&&(et[2]=Math.max(Math.round(c+n/2-G),et[2])),h.sideOverflow=St)}}}),O(et)===0||this.verifyDataLabelOverflow(et))&&(this.placeDataLabels(),this.points.forEach(function(it){var ht;y=d(C,it.options.dataLabels),(x=u(y.connectorWidth,1))&&(l=it.connector,(h=it.dataLabel)&&h._pos&&it.visible&&0<it.labelDistance?(a=h._attr.visibility,(ht=!l)&&(it.connector=l=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+it.colorIndex+(it.className?" "+it.className:"")).add(A.dataLabelsGroup),p.styledMode||l.attr({"stroke-width":x,stroke:y.connectorColor||it.color||"#666666"})),l[ht?"attr":"animate"]({d:it.getConnectorPath()}),l.attr("visibility",a)):l&&(it.connector=l.destroy()))}))}function S(){this.points.forEach(function(f){var x,l=f.dataLabel;l&&f.visible&&((x=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](x),l.moved=!0):l&&l.attr({y:-9999})),delete f.distributeBox},this)}function P(f){var x=this.center,l=this.options,h=l.center,e=l.minSize||80,r=l.size!==null;if(!r){if(h[0]!==null)var n=Math.max(x[2]-Math.max(f[1],f[3]),e);else n=Math.max(x[2]-f[1]-f[3],e),x[0]+=(f[3]-f[1])/2;h[1]!==null?n=w(n,e,x[2]-Math.max(f[0],f[2])):(n=w(n,e,x[2]-f[0]-f[2]),x[1]+=(f[0]-f[2])/2),n<x[2]?(x[2]=n,x[3]=Math.min(l.thickness?Math.max(0,n-2*l.thickness):Math.max(0,g(l.innerSize||0,n)),n),this.translate(x),this.drawDataLabels&&this.drawDataLabels()):r=!0}return r}var E=[],M={radialDistributionY:function(f){return f.top+f.distributeBox.pos},radialDistributionX:function(f,x,l,h){return f.getX(l<x.top+2||l>x.bottom-2?h:l,x.half,x)},justify:function(f,x,l){return l[0]+(f.half?-1:1)*(x+f.labelDistance)},alignToPlotEdges:function(f,x,l,h){return f=f.getBBox().width,x?f+h:l-f-h},alignToConnectors:function(f,x,l,h){var e,r=0;return f.forEach(function(n){(e=n.dataLabel.getBBox().width)>r&&(r=e)}),x?r+h:l-r-h}};b.compose=function(f){U.compose(D),E.indexOf(f)===-1&&(E.push(f),(f=f.prototype).dataLabelPositioners=M,f.alignDataLabel=q,f.drawDataLabels=v,f.placeDataLabels=S,f.verifyDataLabelOverflow=P)}}(J||(J={})),J}),B(st,"Extensions/OverlappingDataLabels.js",[st["Core/Chart/Chart.js"],st["Core/Utilities.js"]],function(U,z){function X(O,w){var T=!1;if(O){var d=O.newOpacity;O.oldOpacity!==d&&(O.alignAttr&&O.placed?(O[d?"removeClass":"addClass"]("highcharts-data-label-hidden"),T=!0,O.alignAttr.opacity=d,O[O.isOld?"animate":"attr"](O.alignAttr,null,function(){w.styledMode||O.css({pointerEvents:d?"auto":"none"})}),K(w,"afterHideOverlappingLabel")):O.attr({opacity:d})),O.isOld=!0}return T}var V=z.addEvent,K=z.fireEvent,J=z.isArray,q=z.isNumber,W=z.objectEach,D=z.pick;V(U,"render",function(){var O=this,w=[];(this.labelCollectors||[]).forEach(function(T){w=w.concat(T())}),(this.yAxis||[]).forEach(function(T){T.stacking&&T.options.stackLabels&&!T.options.stackLabels.allowOverlap&&W(T.stacking.stacks,function(d){W(d,function(u){u.label&&w.push(u.label)})})}),(this.series||[]).forEach(function(T){var d=T.options.dataLabels;T.visible&&(d.enabled!==!1||T._hasPointLabels)&&(d=function(u){return u.forEach(function(g){g.visible&&(J(g.dataLabels)?g.dataLabels:g.dataLabel?[g.dataLabel]:[]).forEach(function(b){var v=b.options;b.labelrank=D(v.labelrank,g.labelrank,g.shapeArgs&&g.shapeArgs.height),v.allowOverlap?(b.oldOpacity=b.opacity,b.newOpacity=1,X(b,O)):w.push(b)})})},d(T.nodes||[]),d(T.points))}),this.hideOverlappingLabels(w)}),U.prototype.hideOverlappingLabels=function(O){var w,T,d,u=this,g=O.length,b=u.renderer,v=!1,S=function(M){var f,x,l=M.box?0:M.padding||0,h=f=0;if(M&&(!M.alignAttr||M.placed)){var e=M.alignAttr||{x:M.attr("x"),y:M.attr("y")},r=M.parentGroup;M.width||(f=M.getBBox(),M.width=f.width,M.height=f.height,f=b.fontMetrics(null,M.element).h);var n=M.width-2*l;return(x={left:"0",center:"0.5",right:"1"}[M.alignValue])?h=+x*n:q(M.x)&&Math.round(M.x)!==M.translateX&&(h=M.x-M.translateX),{x:e.x+(r.translateX||0)+l-(h||0),y:e.y+(r.translateY||0)+l-f,width:M.width-2*l,height:M.height-2*l}}};for(T=0;T<g;T++)(w=O[T])&&(w.oldOpacity=w.opacity,w.newOpacity=1,w.absoluteBox=S(w));for(O.sort(function(M,f){return(f.labelrank||0)-(M.labelrank||0)}),T=0;T<g;T++){var P=(S=O[T])&&S.absoluteBox;for(w=T+1;w<g;++w){var E=(d=O[w])&&d.absoluteBox;!P||!E||S===d||S.newOpacity===0||d.newOpacity===0||S.visibility==="hidden"||d.visibility==="hidden"||E.x>=P.x+P.width||E.x+E.width<=P.x||E.y>=P.y+P.height||E.y+E.height<=P.y||((S.labelrank<d.labelrank?S:d).newOpacity=0)}}O.forEach(function(M){X(M,u)&&(v=!0)}),v&&K(u,"afterHideAllOverlappingLabels")}}),B(st,"Core/Responsive.js",[st["Core/Utilities.js"]],function(U){var z,X=U.extend,V=U.find,K=U.isArray,J=U.isObject,q=U.merge,W=U.objectEach,D=U.pick,O=U.splat,w=U.uniqueKey;return function(T){var d=[];T.compose=function(g){return d.indexOf(g)===-1&&(d.push(g),X(g.prototype,u.prototype)),g};var u=function(){function g(){}return g.prototype.currentOptions=function(b){var v=this,S={};return function P(E,M,f,x){var l;W(E,function(h,e){if(!x&&-1<v.collectionsWithUpdate.indexOf(e)&&M[e])for(h=O(h),f[e]=[],l=0;l<Math.max(h.length,M[e].length);l++)M[e][l]&&(h[l]===void 0?f[e][l]=M[e][l]:(f[e][l]={},P(h[l],M[e][l],f[e][l],x+1)));else J(h)?(f[e]=K(h)?[]:{},P(h,M[e]||{},f[e],x+1)):f[e]=M[e]===void 0?null:M[e]})}(b,this.options,S,0),S},g.prototype.matchResponsiveRule=function(b,v){var S=b.condition;(S.callback||function(){return this.chartWidth<=D(S.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=D(S.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=D(S.minWidth,0)&&this.chartHeight>=D(S.minHeight,0)}).call(this)&&v.push(b._id)},g.prototype.setResponsive=function(b,v){var S=this,P=this.options.responsive,E=this.currentResponsive,M=[];!v&&P&&P.rules&&P.rules.forEach(function(f){f._id===void 0&&(f._id=w()),S.matchResponsiveRule(f,M)},this),v=q.apply(void 0,M.map(function(f){return V((P||{}).rules||[],function(x){return x._id===f})}).map(function(f){return f&&f.chartOptions})),v.isResponsiveOptions=!0,(M=M.toString()||void 0)!==(E&&E.ruleIds)&&(E&&this.update(E.undoOptions,b,!0),M?((E=this.currentOptions(v)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:M,mergedOptions:v,undoOptions:E},this.update(v,b,!0)):this.currentResponsive=void 0)},g}()}(z||(z={})),z}),B(st,"masters/highcharts.src.js",[st["Core/Globals.js"],st["Core/Utilities.js"],st["Core/Defaults.js"],st["Core/Animation/Fx.js"],st["Core/Animation/AnimationUtilities.js"],st["Core/Renderer/HTML/AST.js"],st["Core/FormatUtilities.js"],st["Core/Renderer/RendererUtilities.js"],st["Core/Renderer/SVG/SVGElement.js"],st["Core/Renderer/SVG/SVGRenderer.js"],st["Core/Renderer/HTML/HTMLElement.js"],st["Core/Renderer/HTML/HTMLRenderer.js"],st["Core/Axis/Axis.js"],st["Core/Axis/DateTimeAxis.js"],st["Core/Axis/LogarithmicAxis.js"],st["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],st["Core/Axis/Tick.js"],st["Core/Tooltip.js"],st["Core/Series/Point.js"],st["Core/Pointer.js"],st["Core/MSPointer.js"],st["Core/Legend/Legend.js"],st["Core/Chart/Chart.js"],st["Core/Axis/Stacking/StackingAxis.js"],st["Core/Axis/Stacking/StackItem.js"],st["Core/Series/Series.js"],st["Core/Series/SeriesRegistry.js"],st["Series/Column/ColumnSeries.js"],st["Series/Column/ColumnDataLabel.js"],st["Series/Pie/PieSeries.js"],st["Series/Pie/PieDataLabel.js"],st["Core/Series/DataLabel.js"],st["Core/Responsive.js"],st["Core/Color/Color.js"],st["Core/Time.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T,d,u,g,b,v,S,P,E,M,f,x,l,h,e,r,n,i,c,a,s,y,A,_){return U.animate=K.animate,U.animObject=K.animObject,U.getDeferredAnimation=K.getDeferredAnimation,U.setAnimation=K.setAnimation,U.stop=K.stop,U.timers=V.timers,U.AST=J,U.Axis=d,U.Chart=x,U.chart=x.chart,U.Fx=V,U.Legend=f,U.PlotLineOrBand=b,U.Point=P,U.Pointer=M.isRequired()?M:E,U.Series=e,U.StackItem=h,U.SVGElement=D,U.SVGRenderer=O,U.Tick=v,U.Time=_,U.Tooltip=S,U.Color=A,U.color=A.parse,T.compose(O),w.compose(D),U.defaultOptions=X.defaultOptions,U.getOptions=X.getOptions,U.time=X.defaultTime,U.setOptions=X.setOptions,U.dateFormat=q.dateFormat,U.format=q.format,U.numberFormat=q.numberFormat,U.addEvent=z.addEvent,U.arrayMax=z.arrayMax,U.arrayMin=z.arrayMin,U.attr=z.attr,U.clearTimeout=z.clearTimeout,U.correctFloat=z.correctFloat,U.createElement=z.createElement,U.css=z.css,U.defined=z.defined,U.destroyObjectProperties=z.destroyObjectProperties,U.discardElement=z.discardElement,U.distribute=W.distribute,U.erase=z.erase,U.error=z.error,U.extend=z.extend,U.extendClass=z.extendClass,U.find=z.find,U.fireEvent=z.fireEvent,U.getMagnitude=z.getMagnitude,U.getStyle=z.getStyle,U.inArray=z.inArray,U.isArray=z.isArray,U.isClass=z.isClass,U.isDOMElement=z.isDOMElement,U.isFunction=z.isFunction,U.isNumber=z.isNumber,U.isObject=z.isObject,U.isString=z.isString,U.keys=z.keys,U.merge=z.merge,U.normalizeTickInterval=z.normalizeTickInterval,U.objectEach=z.objectEach,U.offset=z.offset,U.pad=z.pad,U.pick=z.pick,U.pInt=z.pInt,U.relativeLength=z.relativeLength,U.removeEvent=z.removeEvent,U.seriesType=r.seriesType,U.splat=z.splat,U.stableSort=z.stableSort,U.syncTimeout=z.syncTimeout,U.timeUnits=z.timeUnits,U.uniqueKey=z.uniqueKey,U.useSerialIds=z.useSerialIds,U.wrap=z.wrap,i.compose(n),s.compose(e),u.compose(d),g.compose(d),a.compose(c),b.compose(d),y.compose(x),l.compose(d,x,e),U}),st["masters/highcharts.src.js"]._modules=st,st["masters/highcharts.src.js"]},tt.exports?(ft.default=ft,tt.exports=ut.document?ft(ut):ft):(ct=function(){return ft(ut)}.call(ot,lt,ot,tt))===void 0||(tt.exports=ct)},3491:function(tt,ot,lt){var ct,ut,ft;ut=typeof window!="undefined"?window:this,ft=function(yt){var B={};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&yt.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}return st(B,"Core/Globals.js",[],function(){var U;return function(z){z.SVG_NS="http://www.w3.org/2000/svg",z.product="Highcharts",z.version="10.3.3",z.win=yt!==void 0?yt:{},z.doc=z.win.document,z.svg=z.doc&&z.doc.createElementNS&&!!z.doc.createElementNS(z.SVG_NS,"svg").createSVGRect,z.userAgent=z.win.navigator&&z.win.navigator.userAgent||"",z.isChrome=z.userAgent.indexOf("Chrome")!==-1,z.isFirefox=z.userAgent.indexOf("Firefox")!==-1,z.isMS=/(edge|msie|trident)/i.test(z.userAgent)&&!z.win.opera,z.isSafari=!z.isChrome&&z.userAgent.indexOf("Safari")!==-1,z.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(z.userAgent),z.isWebKit=z.userAgent.indexOf("AppleWebKit")!==-1,z.deg2rad=2*Math.PI/360,z.hasBidiBug=z.isFirefox&&parseInt(z.userAgent.split("Firefox/")[1],10)<4,z.hasTouch=!!z.win.TouchEvent,z.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],z.noop=function(){},z.supportsPassiveEvents=function(){var X=!1;if(!z.isMS){var V=Object.defineProperty({},"passive",{get:function(){X=!0}});z.win.addEventListener&&z.win.removeEventListener&&(z.win.addEventListener("testPassive",z.noop,V),z.win.removeEventListener("testPassive",z.noop,V))}return X}(),z.charts=[],z.dateFormats={},z.seriesTypes={},z.symbolSizes={},z.chartCount=0}(U||(U={})),U}),st(B,"Core/Utilities.js",[B["Core/Globals.js"]],function(U){var z=U.charts,X=U.doc,V=U.win;function K(i,c,a,s){var y=c?"Highcharts error":"Highcharts warning";i===32&&(i=y+": Deprecated member");var A=T(i),_=A?y+" #"+i+": www.highcharts.com/errors/"+i+"/":i.toString();if(s!==void 0){var p="";A&&(_+="?"),f(s,function(C,k){p+=`
128
+ - `.concat(k,": ").concat(C),A&&(_+=encodeURI(k)+"="+encodeURI(C))}),_+=p}l(U,"displayError",{chart:a,code:i,message:_,params:s},function(){if(c)throw new Error(_);V.console&&K.messages.indexOf(_)===-1&&console.warn(_)}),K.messages.push(_)}function J(i,c){return parseInt(i,c||10)}function q(i){return typeof i=="string"}function W(i){var c=Object.prototype.toString.call(i);return c==="[object Array]"||c==="[object Array Iterator]"}function D(i,c){return!(!i||typeof i!="object"||c&&W(i))}function O(i){return D(i)&&typeof i.nodeType=="number"}function w(i){var c=i&&i.constructor;return!(!D(i,!0)||O(i)||!c||!c.name||c.name==="Object")}function T(i){return typeof i=="number"&&!isNaN(i)&&i<1/0&&i>-1/0}function d(i){return i!=null}function u(i,c,a){var s,y=q(c)&&!d(a),A=function(_,p){d(_)?i.setAttribute(p,_):y?(s=i.getAttribute(p))||p!=="class"||(s=i.getAttribute(p+"Name")):i.removeAttribute(p)};return q(c)?A(a,c):f(c,A),s}function g(i,c){var a;for(a in i||(i={}),c)i[a]=c[a];return i}function b(){for(var i=arguments,c=i.length,a=0;a<c;a++){var s=i[a];if(s!=null)return s}}function v(i,c){U.isMS&&!U.svg&&c&&d(c.opacity)&&(c.filter="alpha(opacity=".concat(100*c.opacity,")")),g(i.style,c)}function S(i){return Math.pow(10,Math.floor(Math.log(i)/Math.LN10))}function P(i,c){return i>1e14?i:parseFloat(i.toPrecision(c||14))}(function(i){i.messages=[]})(K||(K={})),Math.easeInOutSine=function(i){return-.5*(Math.cos(Math.PI*i)-1)};var E,M=Array.prototype.find?function(i,c){return i.find(c)}:function(i,c){var a,s=i.length;for(a=0;a<s;a++)if(c(i[a],a))return i[a]};function f(i,c,a){for(var s in i)Object.hasOwnProperty.call(i,s)&&c.call(a||i[s],i[s],s,i)}function x(i,c,a){function s(C,k){var F=i.removeEventListener||U.removeEventListenerPolyfill;F&&F.call(i,C,k,!1)}function y(C){var k,F;i.nodeName&&(c?(k={})[c]=!0:k=C,f(k,function(G,I){if(C[I])for(F=C[I].length;F--;)s(I,C[I][F].fn)}))}var A=typeof i=="function"&&i.prototype||i;if(Object.hasOwnProperty.call(A,"hcEvents")){var _=A.hcEvents;if(c){var p=_[c]||[];a?(_[c]=p.filter(function(C){return a!==C.fn}),s(c,a)):(y(_),_[c]=[])}else y(_),delete A.hcEvents}}function l(i,c,a,s){var y;if(a=a||{},X.createEvent&&(i.dispatchEvent||i.fireEvent&&i!==U))(y=X.createEvent("Events")).initEvent(c,!0,!0),a=g(y,a),i.dispatchEvent?i.dispatchEvent(a):i.fireEvent(c,a);else if(i.hcEvents){a.target||g(a,{preventDefault:function(){a.defaultPrevented=!0},target:i,type:c});for(var A=[],_=i,p=!1;_.hcEvents;)Object.hasOwnProperty.call(_,"hcEvents")&&_.hcEvents[c]&&(A.length&&(p=!0),A.unshift.apply(A,_.hcEvents[c])),_=Object.getPrototypeOf(_);p&&A.sort(function(C,k){return C.order-k.order}),A.forEach(function(C){C.fn.call(i,a)===!1&&a.preventDefault()})}s&&!a.defaultPrevented&&s.call(i,a)}f({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(i,c){U[c]=function(a){var s;return K(32,!1,void 0,((s={})["Highcharts.".concat(c)]="use Array.".concat(i),s)),Array.prototype[i].apply(a,[].slice.call(arguments,1))}});var h,e,r=(h=Math.random().toString(36).substring(2,9)+"-",e=0,function(){return"highcharts-"+(E?"":h)+e++});V.jQuery;var n={addEvent:function(i,c,a,s){s===void 0&&(s={});var y=typeof i=="function"&&i.prototype||i;Object.hasOwnProperty.call(y,"hcEvents")||(y.hcEvents={});var A=y.hcEvents;U.Point&&i instanceof U.Point&&i.series&&i.series.chart&&(i.series.chart.runTrackerClick=!0);var _=i.addEventListener||U.addEventListenerPolyfill;_&&_.call(i,c,a,!!U.supportsPassiveEvents&&{passive:s.passive===void 0?c.indexOf("touch")!==-1:s.passive,capture:!1}),A[c]||(A[c]=[]);var p={fn:a,order:typeof s.order=="number"?s.order:1/0};return A[c].push(p),A[c].sort(function(C,k){return C.order-k.order}),function(){x(i,c,a)}},arrayMax:function(i){for(var c=i.length,a=i[0];c--;)i[c]>a&&(a=i[c]);return a},arrayMin:function(i){for(var c=i.length,a=i[0];c--;)i[c]<a&&(a=i[c]);return a},attr:u,clamp:function(i,c,a){return i>c?i<a?i:a:c},cleanRecursively:function i(c,a){var s={};return f(c,function(y,A){var _;D(c[A],!0)&&!c.nodeType&&a[A]?(_=i(c[A],a[A]),Object.keys(_).length&&(s[A]=_)):(D(c[A])||c[A]!==a[A]||A in c&&!(A in a))&&(s[A]=c[A])}),s},clearTimeout:function(i){d(i)&&clearTimeout(i)},correctFloat:P,createElement:function(i,c,a,s,y){var A=X.createElement(i);return c&&g(A,c),y&&v(A,{padding:"0",border:"none",margin:"0"}),a&&v(A,a),s&&s.appendChild(A),A},css:v,defined:d,destroyObjectProperties:function(i,c){f(i,function(a,s){a&&a!==c&&a.destroy&&a.destroy(),delete i[s]})},discardElement:function(i){i&&i.parentElement&&i.parentElement.removeChild(i)},erase:function(i,c){for(var a=i.length;a--;)if(i[a]===c){i.splice(a,1);break}},error:K,extend:g,extendClass:function(i,c){var a=function(){};return g(a.prototype=new i,c),a},find:M,fireEvent:l,getMagnitude:S,getNestedProperty:function(i,c){for(var a=i.split(".");a.length&&d(c);){var s=a.shift();if(s===void 0||s==="__proto__")return;var y=c[s];if(!d(y)||typeof y=="function"||typeof y.nodeType=="number"||y===V)return;c=y}return c},getStyle:function i(c,a,s){var y,A=U.getStyle||i;if(a==="width"){var _=Math.min(c.offsetWidth,c.scrollWidth),p=c.getBoundingClientRect&&c.getBoundingClientRect().width;return p<_&&p>=_-1&&(_=Math.floor(p)),Math.max(0,_-(A(c,"padding-left",!0)||0)-(A(c,"padding-right",!0)||0))}if(a==="height")return Math.max(0,Math.min(c.offsetHeight,c.scrollHeight)-(A(c,"padding-top",!0)||0)-(A(c,"padding-bottom",!0)||0));V.getComputedStyle||K(27,!0);var C=V.getComputedStyle(c,void 0);return C&&(y=C.getPropertyValue(a),b(s,a!=="opacity")&&(y=J(y))),y},inArray:function(i,c,a){return K(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),c.indexOf(i,a)},isArray:W,isClass:w,isDOMElement:O,isFunction:function(i){return typeof i=="function"},isNumber:T,isObject:D,isString:q,keys:function(i){return K(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(i)},merge:function(){var i,c=arguments,a={},s=function(A,_){return typeof A!="object"&&(A={}),f(_,function(p,C){C!=="__proto__"&&C!=="constructor"&&(!D(p,!0)||w(p)||O(p)?A[C]=_[C]:A[C]=s(A[C]||{},p))}),A};c[0]===!0&&(a=c[1],c=Array.prototype.slice.call(c,2));var y=c.length;for(i=0;i<y;i++)a=s(a,c[i]);return a},normalizeTickInterval:function(i,c,a,s,y){var A,_=i,p=i/(a=b(a,S(i)));for(c||(c=y?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],s===!1&&(a===1?c=c.filter(function(C){return C%1==0}):a<=.1&&(c=[1/a]))),A=0;A<c.length&&(_=c[A],!(y&&_*a>=i||!y&&p<=(c[A]+(c[A+1]||c[A]))/2));A++);return P(_*a,-Math.round(Math.log(.001)/Math.LN10))},objectEach:f,offset:function(i){var c=X.documentElement,a=i.parentElement||i.parentNode?i.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:a.top+(V.pageYOffset||c.scrollTop)-(c.clientTop||0),left:a.left+(V.pageXOffset||c.scrollLeft)-(c.clientLeft||0),width:a.width,height:a.height}},pad:function(i,c,a){return new Array((c||2)+1-String(i).replace("-","").length).join(a||"0")+i},pick:b,pInt:J,relativeLength:function(i,c,a){return/%$/.test(i)?c*parseFloat(i)/100+(a||0):parseFloat(i)},removeEvent:x,splat:function(i){return W(i)?i:[i]},stableSort:function(i,c){var a,s,y=i.length;for(s=0;s<y;s++)i[s].safeI=s;for(i.sort(function(A,_){return(a=c(A,_))===0?A.safeI-_.safeI:a}),s=0;s<y;s++)delete i[s].safeI},syncTimeout:function(i,c,a){return c>0?setTimeout(i,c,a):(i.call(0,a),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:r,useSerialIds:function(i){return E=b(i,E)},wrap:function(i,c,a){var s=i[c];i[c]=function(){var y=arguments,A=this;return a.apply(this,[function(){return s.apply(A,arguments.length?arguments:y)}].concat([].slice.call(arguments)))}}};return n}),st(B,"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"}}),st(B,"Core/Color/Color.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=z.isNumber,V=z.merge,K=z.pInt;return function(){function J(q){this.rgba=[NaN,NaN,NaN,NaN],this.input=q;var W=U.Color;return W&&W!==J?new W(q):this instanceof J?void this.init(q):new J(q)}return J.parse=function(q){return q?new J(q):J.None},J.prototype.init=function(q){var W,D,O,w;if(typeof q=="object"&&q.stops!==void 0)this.stops=q.stops.map(function(u){return new J(u[1])});else if(typeof q=="string"){if(this.input=q=J.names[q.toLowerCase()]||q,q.charAt(0)==="#"){var T=q.length,d=parseInt(q.substr(1),16);T===7?D=[(16711680&d)>>16,(65280&d)>>8,255&d,1]:T===4&&(D=[(3840&d)>>4|(3840&d)>>8,(240&d)>>4|240&d,(15&d)<<4|15&d,1])}if(!D)for(O=J.parsers.length;O--&&!D;)(W=(w=J.parsers[O]).regex.exec(q))&&(D=w.parse(W))}D&&(this.rgba=D)},J.prototype.get=function(q){var W=this.input,D=this.rgba;if(typeof W=="object"&&this.stops!==void 0){var O=V(W);return O.stops=[].slice.call(O.stops),this.stops.forEach(function(w,T){O.stops[T]=[O.stops[T][0],w.get(q)]}),O}return D&&X(D[0])?q==="rgb"||!q&&D[3]===1?"rgb("+D[0]+","+D[1]+","+D[2]+")":q==="a"?"".concat(D[3]):"rgba("+D.join(",")+")":W},J.prototype.brighten=function(q){var W=this.rgba;if(this.stops)this.stops.forEach(function(O){O.brighten(q)});else if(X(q)&&q!==0)for(var D=0;D<3;D++)W[D]+=K(255*q),W[D]<0&&(W[D]=0),W[D]>255&&(W[D]=255);return this},J.prototype.setOpacity=function(q){return this.rgba[3]=q,this},J.prototype.tweenTo=function(q,W){var D=this.rgba,O=q.rgba;if(!X(D[0])||!X(O[0]))return q.input||"none";var w=O[3]!==1||D[3]!==1;return(w?"rgba(":"rgb(")+Math.round(O[0]+(D[0]-O[0])*(1-W))+","+Math.round(O[1]+(D[1]-O[1])*(1-W))+","+Math.round(O[2]+(D[2]-O[2])*(1-W))+(w?","+(O[3]+(D[3]-O[3])*(1-W)):"")+")"},J.names={white:"#ffffff",black:"#000000"},J.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(q){return[K(q[1]),K(q[2]),K(q[3]),parseFloat(q[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(q){return[K(q[1]),K(q[2]),K(q[3]),1]}}],J.None=new J(""),J}()}),st(B,"Core/Color/Palettes.js",[],function(){return{colors:["#7cb5ec","#434348","#90ed7d","#f7a35c","#8085e9","#f15c80","#e4d354","#2b908f","#f45b5b","#91e8e1"]}}),st(B,"Core/Time.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=U.win,V=z.defined,K=z.error,J=z.extend,q=z.isObject,W=z.merge,D=z.objectEach,O=z.pad,w=z.pick,T=z.splat,d=z.timeUnits,u=U.isSafari&&X.Intl&&X.Intl.DateTimeFormat.prototype.formatRange,g=U.isSafari&&X.Intl&&!X.Intl.DateTimeFormat.prototype.formatRange,b=function(){function v(S){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=X.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(S)}return v.prototype.get=function(S,P){if(this.variableTimezone||this.timezoneOffset){var E=P.getTime(),M=E-this.getTimezoneOffset(P);P.setTime(M);var f=P["getUTC"+S]();return P.setTime(E),f}return this.useUTC?P["getUTC"+S]():P["get"+S]()},v.prototype.set=function(S,P,E){if(this.variableTimezone||this.timezoneOffset){if(S==="Milliseconds"||S==="Seconds"||S==="Minutes"&&this.getTimezoneOffset(P)%36e5==0)return P["setUTC"+S](E);var M=this.getTimezoneOffset(P),f=P.getTime()-M;P.setTime(f),P["setUTC"+S](E);var x=this.getTimezoneOffset(P);return f=P.getTime()+x,P.setTime(f)}return this.useUTC||u&&S==="FullYear"?P["setUTC"+S](E):P["set"+S](E)},v.prototype.update=function(S){S===void 0&&(S={});var P=w(S.useUTC,!0);this.options=S=W(!0,this.options,S),this.Date=S.Date||X.Date||Date,this.useUTC=P,this.timezoneOffset=P&&S.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=P&&!(!S.getTimezoneOffset&&!S.timezone)},v.prototype.makeTime=function(S,P,E,M,f,x){var l,h,e;return this.useUTC?(l=this.Date.UTC.apply(0,arguments),l+=h=this.getTimezoneOffset(l),h!==(e=this.getTimezoneOffset(l))?l+=e-h:h-36e5!==this.getTimezoneOffset(l-36e5)||g||(l-=36e5)):l=new this.Date(S,P,w(E,1),w(M,0),w(f,0),w(x,0)).getTime(),l},v.prototype.timezoneOffsetFunction=function(){var S=this,P=this.options,E=P.getTimezoneOffset,M=P.moment||X.moment;if(!this.useUTC)return function(f){return 6e4*new Date(f.toString()).getTimezoneOffset()};if(P.timezone){if(M)return function(f){return 6e4*-M.tz(f,P.timezone).utcOffset()};K(25)}return this.useUTC&&E?function(f){return 6e4*E(f.valueOf())}:function(){return 6e4*(S.timezoneOffset||0)}},v.prototype.dateFormat=function(S,P,E){if(!V(P)||isNaN(P))return U.defaultOptions.lang&&U.defaultOptions.lang.invalidDate||"";S=w(S,"%Y-%m-%d %H:%M:%S");var M=this,f=new this.Date(P),x=this.get("Hours",f),l=this.get("Day",f),h=this.get("Date",f),e=this.get("Month",f),r=this.get("FullYear",f),n=U.defaultOptions.lang,i=n&&n.weekdays,c=n&&n.shortWeekdays,a=J({a:c?c[l]:i[l].substr(0,3),A:i[l],d:O(h),e:O(h,2," "),w:l,b:n.shortMonths[e],B:n.months[e],m:O(e+1),o:e+1,y:r.toString().substr(2,2),Y:r,H:O(x),k:x,I:O(x%12||12),l:x%12||12,M:O(this.get("Minutes",f)),p:x<12?"AM":"PM",P:x<12?"am":"pm",S:O(f.getSeconds()),L:O(Math.floor(P%1e3),3)},U.dateFormats);return D(a,function(s,y){for(;S.indexOf("%"+y)!==-1;)S=S.replace("%"+y,typeof s=="function"?s.call(M,P):s)}),E?S.substr(0,1).toUpperCase()+S.substr(1):S},v.prototype.resolveDTLFormat=function(S){return q(S,!0)?S:{main:(S=T(S))[0],from:S[1],to:S[2]}},v.prototype.getTimeTicks=function(S,P,E,M){var f,x,l,h,e=this,r=e.Date,n=[],i={},c=new r(P),a=S.unitRange,s=S.count||1;if(M=w(M,1),V(P)){e.set("Milliseconds",c,a>=d.second?0:s*Math.floor(e.get("Milliseconds",c)/s)),a>=d.second&&e.set("Seconds",c,a>=d.minute?0:s*Math.floor(e.get("Seconds",c)/s)),a>=d.minute&&e.set("Minutes",c,a>=d.hour?0:s*Math.floor(e.get("Minutes",c)/s)),a>=d.hour&&e.set("Hours",c,a>=d.day?0:s*Math.floor(e.get("Hours",c)/s)),a>=d.day&&e.set("Date",c,a>=d.month?1:Math.max(1,s*Math.floor(e.get("Date",c)/s))),a>=d.month&&(e.set("Month",c,a>=d.year?0:s*Math.floor(e.get("Month",c)/s)),x=e.get("FullYear",c)),a>=d.year&&(x-=x%s,e.set("FullYear",c,x)),a===d.week&&(h=e.get("Day",c),e.set("Date",c,e.get("Date",c)-h+M+(h<M?-7:0))),x=e.get("FullYear",c);var y=e.get("Month",c),A=e.get("Date",c),_=e.get("Hours",c);P=c.getTime(),!e.variableTimezone&&e.useUTC||!V(E)||(l=E-P>4*d.month||e.getTimezoneOffset(P)!==e.getTimezoneOffset(E));var p=c.getTime();for(f=1;p<E;)n.push(p),a===d.year?p=e.makeTime(x+f*s,0):a===d.month?p=e.makeTime(x,y+f*s):!l||a!==d.day&&a!==d.week?l&&a===d.hour&&s>1?p=e.makeTime(x,y,A,_+f*s):p+=a*s:p=e.makeTime(x,y,A+f*s*(a===d.day?1:7)),f++;n.push(p),a<=d.hour&&n.length<1e4&&n.forEach(function(C){C%18e5==0&&e.dateFormat("%H%M%S%L",C)==="000000000"&&(i[C]="day")})}return n.info=J(S,{higherRanks:i,totalRange:a*s}),n},v.prototype.getDateFormat=function(S,P,E,M){var f=this.dateFormat("%m-%d %H:%M:%S.%L",P),x="01-01 00:00:00.000",l={millisecond:15,second:12,minute:9,hour:6,day:3},h="millisecond",e=h;for(h in d){if(S===d.week&&+this.dateFormat("%w",P)===E&&f.substr(6)===x.substr(6)){h="week";break}if(d[h]>S){h=e;break}if(l[h]&&f.substr(l[h])!==x.substr(l[h]))break;h!=="week"&&(e=h)}return this.resolveDTLFormat(M[h]).main},v}();return b}),st(B,"Core/Defaults.js",[B["Core/Chart/ChartDefaults.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Color/Palettes.js"],B["Core/Time.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=z.parse,W=X.isTouchDevice,D=X.svg,O=J.merge,w={colors:V.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:U,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:D,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:W?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:q("#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"}};w.chart.styledMode=!1;var T=new K(O(w.global,w.time));return{defaultOptions:w,defaultTime:T,getOptions:function(){return w},setOptions:function(d){return O(!0,w,d),(d.time||d.global)&&(X.time?X.time.update(O(w.global,w.time,d.global,d.time)):X.time=T),w}}}),st(B,"Core/Animation/Fx.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X){var V=U.parse,K=z.win,J=X.isNumber,q=X.objectEach,W=function(){function D(O,w,T){this.pos=NaN,this.options=w,this.elem=O,this.prop=T}return D.prototype.dSetter=function(){var O=this.paths,w=O&&O[0],T=O&&O[1],d=this.now||0,u=[];if(d!==1&&w&&T)if(w.length===T.length&&d<1)for(var g=0;g<T.length;g++){for(var b=w[g],v=T[g],S=[],P=0;P<v.length;P++){var E=b[P],M=v[P];J(E)&&J(M)&&(v[0]!=="A"||P!==4&&P!==5)?S[P]=E+d*(M-E):S[P]=M}u.push(S)}else u=T;else u=this.toD||[];this.elem.attr("d",u,void 0,!0)},D.prototype.update=function(){var O=this.elem,w=this.prop,T=this.now,d=this.options.step;this[w+"Setter"]?this[w+"Setter"]():O.attr?O.element&&O.attr(w,T,null,!0):O.style[w]=T+this.unit,d&&d.call(O,T,this)},D.prototype.run=function(O,w,T){var d=this,u=d.options,g=function(S){return!g.stopped&&d.step(S)},b=K.requestAnimationFrame||function(S){setTimeout(S,13)},v=function(){for(var S=0;S<D.timers.length;S++)D.timers[S]()||D.timers.splice(S--,1);D.timers.length&&b(v)};O!==w||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=O,this.end=w,this.unit=T,this.now=this.start,this.pos=0,g.elem=this.elem,g.prop=this.prop,g()&&D.timers.push(g)===1&&b(v)):(delete u.curAnim[this.prop],u.complete&&Object.keys(u.curAnim).length===0&&u.complete.call(this.elem))},D.prototype.step=function(O){var w,T,d=+new Date,u=this.options,g=this.elem,b=u.complete,v=u.duration,S=u.curAnim;return g.attr&&!g.element?w=!1:O||d>=v+this.startTime?(this.now=this.end,this.pos=1,this.update(),S[this.prop]=!0,T=!0,q(S,function(P){P!==!0&&(T=!1)}),T&&b&&b.call(g),w=!1):(this.pos=u.easing((d-this.startTime)/v),this.now=this.start+(this.end-this.start)*this.pos,this.update(),w=!0),w},D.prototype.initPath=function(O,w,T){var d,u,g,b,v=O.startX,S=O.endX,P=T.slice(),E=O.isArea,M=E?2:1,f=w&&w.slice();if(!f)return[P,P];function x(h,e){for(;h.length<u;){var r=h[0],n=e[u-h.length];if(n&&r[0]==="M"&&(n[0]==="C"?h[0]=["C",r[1],r[2],r[1],r[2],r[1],r[2]]:h[0]=["L",r[1],r[2]]),h.unshift(r),E){var i=h.pop();h.push(h[h.length-1],i)}}}function l(h,e){for(;h.length<u;){var r=h[Math.floor(h.length/M)-1].slice();if(r[0]==="C"&&(r[1]=r[5],r[2]=r[6]),E){var n=h[Math.floor(h.length/M)].slice();h.splice(h.length/2,0,r,n)}else h.push(r)}}if(v&&S&&S.length){for(g=0;g<v.length;g++){if(v[g]===S[0]){d=g;break}if(v[0]===S[S.length-v.length+g]){d=g,b=!0;break}if(v[v.length-1]===S[S.length-v.length+g]){d=v.length-g;break}}d===void 0&&(f=[])}return f.length&&J(d)&&(u=P.length+d*M,b?(x(f,P),l(P)):(x(P,f),l(f))),[f,P]},D.prototype.fillSetter=function(){D.prototype.strokeSetter.apply(this,arguments)},D.prototype.strokeSetter=function(){this.elem.attr(this.prop,V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)},D.timers=[],D}();return W}),st(B,"Core/Animation/AnimationUtilities.js",[B["Core/Animation/Fx.js"],B["Core/Utilities.js"]],function(U,z){var X=z.defined,V=z.getStyle,K=z.isArray,J=z.isNumber,q=z.isObject,W=z.merge,D=z.objectEach,O=z.pick;function w(u){return q(u)?W({duration:500,defer:0},u):{duration:u?500:0,defer:0}}function T(u,g){for(var b=U.timers.length;b--;)U.timers[b].elem!==u||g&&g!==U.timers[b].prop||(U.timers[b].stopped=!0)}var d={animate:function(u,g,b){var v,S,P,E,M="";q(b)||(b={duration:(E=arguments)[2],easing:E[3],complete:E[4]}),J(b.duration)||(b.duration=400),b.easing=typeof b.easing=="function"?b.easing:Math[b.easing]||Math.easeInOutSine,b.curAnim=W(g),D(g,function(f,x){T(u,x),P=new U(u,b,x),S=void 0,x==="d"&&K(g.d)?(P.paths=P.initPath(u,u.pathArray,g.d),P.toD=g.d,v=0,S=1):u.attr?v=u.attr(x):(v=parseFloat(V(u,x))||0,x!=="opacity"&&(M="px")),S||(S=f),typeof S=="string"&&S.match("px")&&(S=S.replace(/px/g,"")),P.run(v,S,M)})},animObject:w,getDeferredAnimation:function(u,g,b){var v=w(g),S=b?[b]:u.series,P=0,E=0;return S.forEach(function(M){var f=w(M.options.animation);P=g&&X(g.defer)?v.defer:Math.max(P,f.duration+f.defer),E=Math.min(v.duration,f.duration)}),u.renderer.forExport&&(P=0),{defer:Math.max(0,P-E),duration:Math.min(P,E)}},setAnimation:function(u,g){g.renderer.globalAnimation=O(u,g.options.chart.animation,!0)},stop:T};return d}),st(B,"Core/Renderer/HTML/AST.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=U.SVG_NS,V=U.win,K=z.attr,J=z.createElement,q=z.css,W=z.error,D=z.isFunction,O=z.isString,w=z.objectEach,T=z.splat,d=V.trustedTypes,u=d&&D(d.createPolicy)&&d.createPolicy("highcharts",{createHTML:function(v){return v}}),g=u?u.createHTML(""):"",b=function(){try{return!!new DOMParser().parseFromString(g,"text/html")}catch(v){return!1}}();return function(){function v(S){this.nodes=typeof S=="string"?this.parseMarkup(S):S}return v.filterUserAttributes=function(S){return w(S,function(P,E){var M=!0;v.allowedAttributes.indexOf(E)===-1&&(M=!1),["background","dynsrc","href","lowsrc","src"].indexOf(E)!==-1&&(M=O(P)&&v.allowedReferences.some(function(f){return P.indexOf(f)===0})),M||(W(33,!1,void 0,{"Invalid attribute in config":"".concat(E)}),delete S[E]),O(P)&&S[E]&&(S[E]=P.replace(/</g,"&lt;"))}),S},v.parseStyle=function(S){return S.split(";").reduce(function(P,E){var M=E.split(":").map(function(x){return x.trim()}),f=M.shift();return f&&M.length&&(P[f.replace(/-([a-z])/g,function(x){return x[1].toUpperCase()})]=M.join(":")),P},{})},v.setElementHTML=function(S,P){S.innerHTML=v.emptyHTML,P&&new v(P).addToDOM(S)},v.prototype.addToDOM=function(S){return function P(E,M){var f;return T(E).forEach(function(x){var l,h=x.tagName,e=x.textContent?U.doc.createTextNode(x.textContent):void 0,r=v.bypassHTMLFiltering;if(h)if(h==="#text")l=e;else if(v.allowedTags.indexOf(h)!==-1||r){var n=h==="svg"?X:M.namespaceURI||X,i=U.doc.createElementNS(n,h),c=x.attributes||{};w(x,function(a,s){s!=="tagName"&&s!=="attributes"&&s!=="children"&&s!=="style"&&s!=="textContent"&&(c[s]=a)}),K(i,r?c:v.filterUserAttributes(c)),x.style&&q(i,x.style),e&&i.appendChild(e),P(x.children||[],i),l=i}else W(33,!1,void 0,{"Invalid tagName in config":h});l&&M.appendChild(l),f=l}),f}(this.nodes,S)},v.prototype.parseMarkup=function(S){var P,E=[];if(S=S.trim().replace(/ style=(["'])/g," data-style=$1"),b)P=new DOMParser().parseFromString(u?u.createHTML(S):S,"text/html");else{var M=J("div");M.innerHTML=S,P={body:M}}var f=function(x,l){var h=x.nodeName.toLowerCase(),e={tagName:h};h==="#text"&&(e.textContent=x.textContent||"");var r=x.attributes;if(r){var n={};[].forEach.call(r,function(c){c.name==="data-style"?e.style=v.parseStyle(c.value):n[c.name]=c.value}),e.attributes=n}if(x.childNodes.length){var i=[];[].forEach.call(x.childNodes,function(c){f(c,i)}),i.length&&(e.children=i)}l.push(e)};return[].forEach.call(P.body.childNodes,function(x){return f(x,E)}),E},v.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"],v.allowedReferences=["https://","http://","mailto:","/","../","./","#"],v.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"],v.emptyHTML=g,v.bypassHTMLFiltering=!1,v}()}),st(B,"Core/FormatUtilities.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(U,z){var X=U.defaultOptions,V=U.defaultTime,K=z.getNestedProperty,J=z.isNumber,q=z.pick,W=z.pInt;function D(O,w,T,d){var u,g;O=+O||0,w=+w;var b=X.lang,v=(O.toString().split(".")[1]||"").split("e")[0].length,S=O.toString().split("e"),P=w;w===-1?w=Math.min(v,20):J(w)?w&&S[1]&&S[1]<0&&((g=w+ +S[1])>=0?(S[0]=(+S[0]).toExponential(g).split("e")[0],w=g):(S[0]=S[0].split(".")[0]||0,O=w<20?(S[0]*Math.pow(10,S[1])).toFixed(w):0,S[1]=0)):w=2;var E=(Math.abs(S[1]?S[0]:O)+Math.pow(10,-Math.max(w,v)-1)).toFixed(w),M=String(W(E)),f=M.length>3?M.length%3:0;return T=q(T,b.decimalPoint),d=q(d,b.thousandsSep),u=O<0?"-":"",u+=f?M.substr(0,f)+d:"",+S[1]<0&&!P?u="0":u+=M.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+d),w&&(u+=T+E.slice(-w)),S[1]&&+u!=0&&(u+="e"+S[1]),u}return{dateFormat:function(O,w,T){return V.dateFormat(O,w,T)},format:function(O,w,T){for(var d,u,g,b,v="{",S=!1,P=/f$/,E=/\.([0-9])/,M=X.lang,f=T&&T.time||V,x=T&&T.numberFormatter||D,l=[];O&&(b=O.indexOf(v))!==-1;){if(d=O.slice(0,b),S){if(u=d.split(":"),g=K(u.shift()||"",w),u.length&&typeof g=="number")if(d=u.join(":"),P.test(d)){var h=parseInt((d.match(E)||["","-1"])[1],10);g!==null&&(g=x(g,h,M.decimalPoint,d.indexOf(",")>-1?M.thousandsSep:""))}else g=f.dateFormat(d,g);l.push(g)}else l.push(d);O=O.slice(b+1),v=(S=!S)?"}":"{"}return l.push(O),l.join("")},numberFormat:D}}),st(B,"Core/Renderer/RendererUtilities.js",[B["Core/Utilities.js"]],function(U){var z,X=U.clamp,V=U.pick,K=U.stableSort;return function(J){J.distribute=function q(W,D,O){var w,T,d,u=W,g=u.reducedLen||D,b=function(E,M){return E.target-M.target},v=!0,S=[],P=0;for(w=W.length;w--;)P+=W[w].size;if(P>g){for(K(W,function(E,M){return(M.rank||0)-(E.rank||0)}),w=0,P=0;P<=g;)P+=W[w].size,w++;S=W.splice(w-1,W.length)}for(K(W,b),W=W.map(function(E){return{size:E.size,targets:[E.target],align:V(E.align,.5)}});v;){for(w=W.length;w--;)T=W[w],d=(Math.min.apply(0,T.targets)+Math.max.apply(0,T.targets))/2,T.pos=X(d-T.size*T.align,0,D-T.size);for(w=W.length,v=!1;w--;)w>0&&W[w-1].pos+W[w-1].size>W[w].pos&&(W[w-1].size+=W[w].size,W[w-1].targets=W[w-1].targets.concat(W[w].targets),W[w-1].align=.5,W[w-1].pos+W[w-1].size>D&&(W[w-1].pos=D-W[w-1].size),W.splice(w,1),v=!0)}return u.push.apply(u,S),w=0,W.some(function(E){var M=0;return(E.targets||[]).some(function(){return u[w].pos=E.pos+M,O!==void 0&&Math.abs(u[w].pos-u[w].target)>O?(u.slice(0,w+1).forEach(function(f){return delete f.pos}),u.reducedLen=(u.reducedLen||D)-.1*D,u.reducedLen>.1*D&&q(u,D,O),!0):(M+=u[w].size,w++,!1)})}),K(u,b),u}}(z||(z={})),z}),st(B,"Core/Renderer/SVG/SVGElement.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=U.animate,J=U.animObject,q=U.stop,W=X.deg2rad,D=X.doc,O=X.svg,w=X.SVG_NS,T=X.win,d=V.addEvent,u=V.attr,g=V.createElement,b=V.css,v=V.defined,S=V.erase,P=V.extend,E=V.fireEvent,M=V.isArray,f=V.isFunction,x=V.isString,l=V.merge,h=V.objectEach,e=V.pick,r=V.pInt,n=V.syncTimeout,i=V.uniqueKey,c=function(){function a(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=w,this.symbolCustomAttribs=["x","y","width","height","r","start","end","innerR","anchorX","anchorY","rounded"]}return a.prototype._defaultGetter=function(s){var y=e(this[s+"Value"],this[s],this.element?this.element.getAttribute(s):null,0);return/^[\-0-9\.]+$/.test(y)&&(y=parseFloat(y)),y},a.prototype._defaultSetter=function(s,y,A){A.setAttribute(y,s)},a.prototype.add=function(s){var y,A=this.renderer,_=this.element;return s&&(this.parentGroup=s),this.textStr!==void 0&&this.element.nodeName==="text"&&A.buildText(this),this.added=!0,(!s||s.handleZ||this.zIndex)&&(y=this.zIndexSetter()),y||(s?s.element:A.box).appendChild(_),this.onAdd&&this.onAdd(),this},a.prototype.addClass=function(s,y){var A=y?"":this.attr("class")||"";return(s=(s||"").split(/ /g).reduce(function(_,p){return A.indexOf(p)===-1&&_.push(p),_},A?[A]:[]).join(" "))!==A&&this.attr("class",s),this},a.prototype.afterSetters=function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},a.prototype.align=function(s,y,A){var _,p,C,k,F,G={},I=this.renderer,j=I.alignedObjects;s?(this.alignOptions=s,this.alignByTranslate=y,A&&!x(A)||(this.alignTo=C=A||"renderer",S(j,this),j.push(this),A=void 0)):(s=this.alignOptions,y=this.alignByTranslate,C=this.alignTo),A=e(A,I[C],C==="scrollablePlotBox"?I.plotBox:void 0,I);var N=s.align,Z=s.verticalAlign;return _=(A.x||0)+(s.x||0),p=(A.y||0)+(s.y||0),N==="right"?k=1:N==="center"&&(k=2),k&&(_+=(A.width-(s.width||0))/k),G[y?"translateX":"x"]=Math.round(_),Z==="bottom"?F=1:Z==="middle"&&(F=2),F&&(p+=(A.height-(s.height||0))/F),G[y?"translateY":"y"]=Math.round(p),this[this.placed?"animate":"attr"](G),this.placed=!0,this.alignAttr=G,this},a.prototype.alignSetter=function(s){var y={left:"start",center:"middle",right:"end"};y[s]&&(this.alignValue=s,this.element.setAttribute("text-anchor",y[s]))},a.prototype.animate=function(s,y,A){var _=this,p=J(e(y,this.renderer.globalAnimation,!0)),C=p.defer;return e(D.hidden,D.msHidden,D.webkitHidden,!1)&&(p.duration=0),p.duration!==0?(A&&(p.complete=A),n(function(){_.element&&K(_,s,p)},C)):(this.attr(s,void 0,A||p.complete),h(s,function(k,F){p.step&&p.step.call(this,k,{prop:F,pos:1,elem:this})},this)),this},a.prototype.applyTextOutline=function(s){var y=this.element;s.indexOf("contrast")!==-1&&(s=s.replace(/contrast/g,this.renderer.getContrast(y.style.fill)));var A=s.split(" "),_=A[A.length-1],p=A[0];if(p&&p!=="none"&&X.svg){this.fakeTS=!0,p=p.replace(/(^[\d\.]+)(.*?)$/g,function(I,j,N){return 2*Number(j)+N}),this.removeTextOutline();var C=D.createElementNS(w,"tspan");u(C,{class:"highcharts-text-outline",fill:_,stroke:_,"stroke-width":p,"stroke-linejoin":"round"});var k=y.querySelector("textPath")||y;[].forEach.call(k.childNodes,function(I){var j=I.cloneNode(!0);j.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(function(N){return j.removeAttribute(N)}),C.appendChild(j)});var F=0;[].forEach.call(k.querySelectorAll("text tspan"),function(I){F+=Number(I.getAttribute("dy"))});var G=D.createElementNS(w,"tspan");G.textContent="​",u(G,{x:Number(y.getAttribute("x")),dy:-F}),C.appendChild(G),k.insertBefore(C,k.firstChild)}},a.prototype.attr=function(s,y,A,_){var p,C,k,F,G=this.element,I=this.symbolCustomAttribs,j=this;return typeof s=="string"&&y!==void 0&&(p=s,(s={})[p]=y),typeof s=="string"?j=(this[s+"Getter"]||this._defaultGetter).call(this,s,G):(h(s,function(N,Z){k=!1,_||q(this,Z),this.symbolName&&I.indexOf(Z)!==-1&&(C||(this.symbolAttr(s),C=!0),k=!0),!this.rotation||Z!=="x"&&Z!=="y"||(this.doTransform=!0),k||((F=this[Z+"Setter"]||this._defaultSetter).call(this,N,Z,G),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(Z)&&this.updateShadows(Z,N,F))},this),this.afterSetters()),A&&A.call(this),j},a.prototype.clip=function(s){return this.attr("clip-path",s?"url("+this.renderer.url+"#"+s.id+")":"none")},a.prototype.crisp=function(s,y){var A=this;y=y||s.strokeWidth||0;var _=Math.round(y)%2/2;return s.x=Math.floor(s.x||A.x||0)+_,s.y=Math.floor(s.y||A.y||0)+_,s.width=Math.floor((s.width||A.width||0)-2*_),s.height=Math.floor((s.height||A.height||0)-2*_),v(s.strokeWidth)&&(s.strokeWidth=y),s},a.prototype.complexColor=function(s,y,A){var _,p,C,k,F,G,I,j,N,Z,$,Y=this.renderer,et=[];E(this.renderer,"complexColor",{args:arguments},function(){if(s.radialGradient?p="radialGradient":s.linearGradient&&(p="linearGradient"),p){if(C=s[p],F=Y.gradients,G=s.stops,N=A.radialReference,M(C)&&(s[p]=C={x1:C[0],y1:C[1],x2:C[2],y2:C[3],gradientUnits:"userSpaceOnUse"}),p==="radialGradient"&&N&&!v(C.gradientUnits)&&(k=C,C=l(C,Y.getRadialAttr(N,k),{gradientUnits:"userSpaceOnUse"})),h(C,function(it,ht){ht!=="id"&&et.push(ht,it)}),h(G,function(it){et.push(it)}),et=et.join(","),F[et])Z=F[et].attr("id");else{C.id=Z=i();var rt=F[et]=Y.createElement(p).attr(C).add(Y.defs);rt.radAttr=k,rt.stops=[],G.forEach(function(it){it[1].indexOf("rgba")===0?(_=z.parse(it[1]),I=_.get("rgb"),j=_.get("a")):(I=it[1],j=1);var ht=Y.createElement("stop").attr({offset:it[0],"stop-color":I,"stop-opacity":j}).add(rt);rt.stops.push(ht)})}$="url("+Y.url+"#"+Z+")",A.setAttribute(y,$),A.gradient=et,s.toString=function(){return $}}})},a.prototype.css=function(s){var y,A=this.styles,_={},p=this.element,C=!A;if(s.color&&(s.fill=s.color),A&&h(s,function(F,G){A&&A[G]!==F&&(_[G]=F,C=!0)}),C){A&&(s=P(A,_)),s.width===null||s.width==="auto"?delete this.textWidth:p.nodeName.toLowerCase()==="text"&&s.width&&(y=this.textWidth=r(s.width)),this.styles=s,y&&!O&&this.renderer.forExport&&delete s.width;var k=l(s);p.namespaceURI===this.SVG_NS&&["textOutline","textOverflow","width"].forEach(function(F){return k&&delete k[F]}),b(p,k),this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),s.textOutline&&this.applyTextOutline(s.textOutline))}return this},a.prototype.dashstyleSetter=function(s){var y,A=this["stroke-width"];if(A==="inherit"&&(A=1),s=s&&s.toLowerCase()){var _=s.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(y=_.length;y--;)_[y]=""+r(_[y])*e(A,NaN);s=_.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",s)}},a.prototype.destroy=function(){var s,y,A=this,_=A.element||{},p=A.renderer,C=_.ownerSVGElement,k=p.isSVG&&_.nodeName==="SPAN"&&A.parentGroup||void 0;if(_.onclick=_.onmouseout=_.onmouseover=_.onmousemove=_.point=null,q(A),A.clipPath&&C){var F=A.clipPath;[].forEach.call(C.querySelectorAll("[clip-path],[CLIP-PATH]"),function(G){G.getAttribute("clip-path").indexOf(F.element.id)>-1&&G.removeAttribute("clip-path")}),A.clipPath=F.destroy()}if(A.stops){for(y=0;y<A.stops.length;y++)A.stops[y].destroy();A.stops.length=0,A.stops=void 0}for(A.safeRemoveChild(_),p.styledMode||A.destroyShadows();k&&k.div&&k.div.childNodes.length===0;)s=k.parentGroup,A.safeRemoveChild(k.div),delete k.div,k=s;A.alignTo&&S(p.alignedObjects,A),h(A,function(G,I){A[I]&&A[I].parentGroup===A&&A[I].destroy&&A[I].destroy(),delete A[I]})},a.prototype.destroyShadows=function(){(this.shadows||[]).forEach(function(s){this.safeRemoveChild(s)},this),this.shadows=void 0},a.prototype.dSetter=function(s,y,A){M(s)&&(typeof s[0]=="string"&&(s=this.renderer.pathToSegments(s)),this.pathArray=s,s=s.reduce(function(_,p,C){return p&&p.join?(C?_+" ":"")+p.join(" "):(p||"").toString()},"")),/(NaN| {2}|^$)/.test(s)&&(s="M 0 0"),this[y]!==s&&(A.setAttribute(y,s),this[y]=s)},a.prototype.fadeOut=function(s){var y=this;y.animate({opacity:0},{duration:e(s,150),complete:function(){y.hide()}})},a.prototype.fillSetter=function(s,y,A){typeof s=="string"?A.setAttribute(y,s):s&&this.complexColor(s,y,A)},a.prototype.getBBox=function(s,y){var A,_,p,C,k,F=this,G=F.alignValue,I=F.element,j=F.renderer,N=F.styles,Z=F.textStr,$=j.cache,Y=j.cacheKeys,et=I.namespaceURI===F.SVG_NS,rt=e(y,F.rotation,0),it=j.styledMode?I&&a.prototype.getStyle.call(I,"font-size"):N&&N.fontSize;if(v(Z)&&((k=Z.toString()).indexOf("<")===-1&&(k=k.replace(/[0-9]/g,"0")),k+=["",rt,it,F.textWidth,G,N&&N.textOverflow,N&&N.fontWeight].join(",")),k&&!s&&(A=$[k]),!A){if(et||j.forExport){try{C=this.fakeTS&&function(It){var zt=I.querySelector(".highcharts-text-outline");zt&&b(zt,{display:It})},f(C)&&C("none"),A=I.getBBox?P({},I.getBBox()):{width:I.offsetWidth,height:I.offsetHeight,x:0,y:0},f(C)&&C("")}catch(It){}(!A||A.width<0)&&(A={x:0,y:0,width:0,height:0})}else A=F.htmlGetBBox();if(j.isSVG&&(_=A.width,p=A.height,et&&(A.height=p={"11px,17":14,"13px,20":16}[""+(it||"")+",".concat(Math.round(p))]||p),rt)){var ht=Number(I.getAttribute("y")||0)-A.y,dt={right:1,center:.5}[G||0]||0,bt=rt*W,xt=(rt-90)*W,St=_*Math.cos(bt),wt=_*Math.sin(bt),mt=Math.cos(xt),at=Math.sin(xt),pt=A.x+dt*(_-St)+ht*mt,vt=pt+St,Ct=vt-p*mt,Tt=Ct-St,At=A.y+ht-dt*wt+ht*at,Lt=At+wt,Ot=Lt-p*at,_t=Ot-wt;A.x=Math.min(pt,vt,Ct,Tt),A.y=Math.min(At,Lt,Ot,_t),A.width=Math.max(pt,vt,Ct,Tt)-A.x,A.height=Math.max(At,Lt,Ot,_t)-A.y}if(k&&(Z===""||A.height>0)){for(;Y.length>250;)delete $[Y.shift()];$[k]||Y.push(k),$[k]=A}}return A},a.prototype.getStyle=function(s){return T.getComputedStyle(this.element||this,"").getPropertyValue(s)},a.prototype.hasClass=function(s){return(""+this.attr("class")).split(" ").indexOf(s)!==-1},a.prototype.hide=function(){return this.attr({visibility:"hidden"})},a.prototype.htmlGetBBox=function(){return{height:0,width:0,x:0,y:0}},a.prototype.init=function(s,y){this.element=y==="span"?g(y):D.createElementNS(this.SVG_NS,y),this.renderer=s,E(this,"afterInit")},a.prototype.on=function(s,y){var A=this.onEvents;return A[s]&&A[s](),A[s]=d(this.element,s,y),this},a.prototype.opacitySetter=function(s,y,A){var _=Number(Number(s).toFixed(3));this.opacity=_,A.setAttribute(y,_)},a.prototype.removeClass=function(s){return this.attr("class",(""+this.attr("class")).replace(x(s)?new RegExp("(^| )".concat(s,"( |$)")):s," ").replace(/ +/g," ").trim())},a.prototype.removeTextOutline=function(){var s=this.element.querySelector("tspan.highcharts-text-outline");s&&this.safeRemoveChild(s)},a.prototype.safeRemoveChild=function(s){var y=s.parentNode;y&&y.removeChild(s)},a.prototype.setRadialReference=function(s){var y=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=s,y&&y.radAttr&&y.animate(this.renderer.getRadialAttr(s,y.radAttr)),this},a.prototype.setTextPath=function(s,y){var A=this;y=l(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},y);var _=this.renderer.url,p=this.text||this,C=p.textPath,k=y.attributes,F=y.enabled;if(s=s||C&&C.path,C&&C.undo(),s&&F){var G=d(p,"afterModifyTree",function(I){if(s&&F){var j=s.attr("id");j||s.attr("id",j=i());var N={x:0,y:0};v(k.dx)&&(N.dx=k.dx,delete k.dx),v(k.dy)&&(N.dy=k.dy,delete k.dy),p.attr(N),A.attr({transform:""}),A.box&&(A.box=A.box.destroy());var Z=I.nodes.slice(0);I.nodes.length=0,I.nodes[0]={tagName:"textPath",attributes:P(k,{"text-anchor":k.textAnchor,href:""+_+"#".concat(j)}),children:Z}}});p.textPath={path:s,undo:G}}else p.attr({dx:0,dy:0}),delete p.textPath;return this.added&&(p.textCache="",this.renderer.buildText(p)),this},a.prototype.shadow=function(s,y,A){var _,p,C,k,F,G,I=[],j=this,N=j.element,Z=j.oldShadowOptions,$=j.parentGroup,Y=$&&$.rotation===90,et={color:"#000000",offsetX:Y?-1:1,offsetY:Y?-1:1,opacity:.15,width:3},rt=!1;if(s===!0?G=et:typeof s=="object"&&(G=P(et,s)),G&&(G&&Z&&h(G,function(it,ht){it!==Z[ht]&&(rt=!0)}),rt&&this.destroyShadows(),this.oldShadowOptions=G),G){if(!this.shadows){for(k=G.opacity/G.width,F=Y?"translate(".concat(G.offsetY,", ").concat(G.offsetX,")"):"translate(".concat(G.offsetX,", ").concat(G.offsetY,")"),_=1;_<=G.width;_++)p=N.cloneNode(!1),C=2*G.width+1-2*_,u(p,{stroke:s.color||"#000000","stroke-opacity":k*_,"stroke-width":C,transform:F,fill:"none"}),p.setAttribute("class",(p.getAttribute("class")||"")+" highcharts-shadow"),A&&(u(p,"height",Math.max(u(p,"height")-C,0)),p.cutHeight=C),y?y.element.appendChild(p):N.parentNode&&N.parentNode.insertBefore(p,N),I.push(p);this.shadows=I}}else this.destroyShadows();return this},a.prototype.show=function(s){return s===void 0&&(s=!0),this.attr({visibility:s?"inherit":"visible"})},a.prototype["stroke-widthSetter"]=function(s,y,A){this[y]=s,A.setAttribute(y,s)},a.prototype.strokeWidth=function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var s,y=this.getStyle("stroke-width"),A=0;return y.indexOf("px")===y.length-2?A=r(y):y!==""&&(s=D.createElementNS(w,"rect"),u(s,{width:y,"stroke-width":0}),this.element.parentNode.appendChild(s),A=s.getBBox().width,s.parentNode.removeChild(s)),A},a.prototype.symbolAttr=function(s){var y=this;["x","y","r","start","end","width","height","innerR","anchorX","anchorY","clockwise"].forEach(function(A){y[A]=e(s[A],y[A])}),y.attr({d:y.renderer.symbols[y.symbolName](y.x,y.y,y.width,y.height,y)})},a.prototype.textSetter=function(s){s!==this.textStr&&(delete this.textPxLength,this.textStr=s,this.added&&this.renderer.buildText(this))},a.prototype.titleSetter=function(s){var y=this.element,A=y.getElementsByTagName("title")[0]||D.createElementNS(this.SVG_NS,"title");y.insertBefore?y.insertBefore(A,y.firstChild):y.appendChild(A),A.textContent=String(e(s,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")},a.prototype.toFront=function(){var s=this.element;return s.parentNode.appendChild(s),this},a.prototype.translate=function(s,y){return this.attr({translateX:s,translateY:y})},a.prototype.updateShadows=function(s,y,A){var _=this.shadows;if(_)for(var p=_.length;p--;)A.call(_[p],s==="height"?Math.max(y-(_[p].cutHeight||0),0):s==="d"?this.d:y,s,_[p])},a.prototype.updateTransform=function(){var s=this,y=s.element,A=s.matrix,_=s.rotation,p=_===void 0?0:_,C=s.scaleX,k=s.scaleY,F=s.translateX,G=F===void 0?0:F,I=s.translateY,j=["translate("+G+","+(I===void 0?0:I)+")"];v(A)&&j.push("matrix("+A.join(",")+")"),p&&j.push("rotate("+p+" "+e(this.rotationOriginX,y.getAttribute("x"),0)+" "+e(this.rotationOriginY,y.getAttribute("y")||0)+")"),(v(C)||v(k))&&j.push("scale("+e(C,1)+" "+e(k,1)+")"),j.length&&!(this.text||this).textPath&&y.setAttribute("transform",j.join(" "))},a.prototype.visibilitySetter=function(s,y,A){s==="inherit"?A.removeAttribute(y):this[y]!==s&&A.setAttribute(y,s),this[y]=s},a.prototype.xGetter=function(s){return this.element.nodeName==="circle"&&(s==="x"?s="cx":s==="y"&&(s="cy")),this._defaultGetter(s)},a.prototype.zIndexSetter=function(s,y){var A,_,p,C,k,F=this.renderer,G=this.parentGroup,I=(G||F).element||F.box,j=this.element,N=I===F.box,Z=!1,$=this.added;if(v(s)?(j.setAttribute("data-z-index",s),s=+s,this[y]===s&&($=!1)):v(this[y])&&j.removeAttribute("data-z-index"),this[y]=s,$){for((s=this.zIndex)&&G&&(G.handleZ=!0),k=(A=I.childNodes).length-1;k>=0&&!Z;k--)p=(_=A[k]).getAttribute("data-z-index"),C=!v(p),_!==j&&(s<0&&C&&!N&&!k?(I.insertBefore(j,A[k]),Z=!0):(r(p)<=s||C&&(!v(s)||s>=0))&&(I.insertBefore(j,A[k+1]||null),Z=!0));Z||(I.insertBefore(j,A[N?3:0]||null),Z=!0)}return Z},a}();return c.prototype.strokeSetter=c.prototype.fillSetter,c.prototype.yGetter=c.prototype.xGetter,c.prototype.matrixSetter=c.prototype.rotationOriginXSetter=c.prototype.rotationOriginYSetter=c.prototype.rotationSetter=c.prototype.scaleXSetter=c.prototype.scaleYSetter=c.prototype.translateXSetter=c.prototype.translateYSetter=c.prototype.verticalAlignSetter=function(a,s){this[s]=a,this.doTransform=!0},c}),st(B,"Core/Renderer/RendererRegistry.js",[B["Core/Globals.js"]],function(U){var z;return function(X){var V;X.rendererTypes={},X.getRendererType=function(K){return K===void 0&&(K=V),X.rendererTypes[K]||X.rendererTypes[V]},X.registerRendererType=function(K,J,q){X.rendererTypes[K]=J,V&&!q||(V=K,U.Renderer=J)}}(z||(z={})),z}),st(B,"Core/Renderer/SVG/SVGLabel.js",[B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(w,T){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},X(w,T)},function(w,T){function d(){this.constructor=w}X(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),K=z.defined,J=z.extend,q=z.isNumber,W=z.merge,D=z.pick,O=z.removeEvent;return function(w){function T(d,u,g,b,v,S,P,E,M,f){var x,l=w.call(this)||this;return l.paddingLeftSetter=l.paddingSetter,l.paddingRightSetter=l.paddingSetter,l.init(d,"g"),l.textStr=u,l.x=g,l.y=b,l.anchorX=S,l.anchorY=P,l.baseline=M,l.className=f,l.addClass(f==="button"?"highcharts-no-tooltip":"highcharts-label"),f&&l.addClass("highcharts-"+f),l.text=d.text(void 0,0,0,E).attr({zIndex:1}),typeof v=="string"&&((x=/^url\((.*?)\)$/.test(v))||l.renderer.symbols[v])&&(l.symbolKey=v),l.bBox=T.emptyBBox,l.padding=3,l.baselineOffset=0,l.needsBox=d.styledMode||x,l.deferredAttr={},l.alignFactor=0,l}return V(T,w),T.prototype.alignSetter=function(d){var u={left:0,center:.5,right:1}[d];u!==this.alignFactor&&(this.alignFactor=u,this.bBox&&q(this.xSetting)&&this.attr({x:this.xSetting}))},T.prototype.anchorXSetter=function(d,u){this.anchorX=d,this.boxAttr(u,Math.round(d)-this.getCrispAdjust()-this.xSetting)},T.prototype.anchorYSetter=function(d,u){this.anchorY=d,this.boxAttr(u,d-this.ySetting)},T.prototype.boxAttr=function(d,u){this.box?this.box.attr(d,u):this.deferredAttr[d]=u},T.prototype.css=function(d){if(d){var u={};d=W(d),T.textProps.forEach(function(g){d[g]!==void 0&&(u[g]=d[g],delete d[g])}),this.text.css(u),"fontSize"in u||"fontWeight"in u?this.updateTextPadding():("width"in u||"textOverflow"in u)&&this.updateBoxSize()}return U.prototype.css.call(this,d)},T.prototype.destroy=function(){O(this.element,"mouseenter"),O(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),U.prototype.destroy.call(this)},T.prototype.fillSetter=function(d,u){d&&(this.needsBox=!0),this.fill=d,this.boxAttr(u,d)},T.prototype.getBBox=function(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();var d=this.padding,u=D(this.paddingLeft,d);return{width:this.width,height:this.height,x:this.bBox.x-u,y:this.bBox.y-d}},T.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},T.prototype.heightSetter=function(d){this.heightSetting=d},T.prototype.onAdd=function(){this.text.add(this),this.attr({text:D(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&K(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},T.prototype.paddingSetter=function(d,u){q(d)?d!==this[u]&&(this[u]=d,this.updateTextPadding()):this[u]=void 0},T.prototype.rSetter=function(d,u){this.boxAttr(u,d)},T.prototype.shadow=function(d){return d&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(d)),this},T.prototype.strokeSetter=function(d,u){this.stroke=d,this.boxAttr(u,d)},T.prototype["stroke-widthSetter"]=function(d,u){d&&(this.needsBox=!0),this["stroke-width"]=d,this.boxAttr(u,d)},T.prototype["text-alignSetter"]=function(d){this.textAlign=d},T.prototype.textSetter=function(d){d!==void 0&&this.text.attr({text:d}),this.updateTextPadding()},T.prototype.updateBoxSize=function(){var d,u=this.text,g=u.element.style,b={},v=this.padding,S=this.bBox=q(this.widthSetting)&&q(this.heightSetting)&&!this.textAlign||!K(u.textStr)?T.emptyBBox:u.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||S.height||0)+2*v;var P=this.renderer.fontMetrics(g&&g.fontSize,u);if(this.baselineOffset=v+Math.min((this.text.firstLineMetrics||P).b,S.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-P.h)/2),this.needsBox&&!u.textPath){if(!this.box){var E=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();E.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),E.add(this)}d=this.getCrispAdjust(),b.x=d,b.y=(this.baseline?-this.baselineOffset:0)+d,b.width=Math.round(this.width),b.height=Math.round(this.height),this.box.attr(J(b,this.deferredAttr)),this.deferredAttr={}}},T.prototype.updateTextPadding=function(){var d=this.text;if(!d.textPath){this.updateBoxSize();var u=this.baseline?0:this.baselineOffset,g=D(this.paddingLeft,this.padding);K(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(g+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),g===d.x&&u===d.y||(d.attr("x",g),d.hasBoxWidthChanged&&(this.bBox=d.getBBox(!0)),u!==void 0&&d.attr("y",u)),d.x=g,d.y=u}},T.prototype.widthSetter=function(d){this.widthSetting=q(d)?d:void 0},T.prototype.getPaddedWidth=function(){var d=this.padding,u=D(this.paddingLeft,d),g=D(this.paddingRight,d);return(this.widthSetting||this.bBox.width||0)+u+g},T.prototype.xSetter=function(d){this.x=d,this.alignFactor&&(d-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(d),this.attr("translateX",this.xSetting)},T.prototype.ySetter=function(d){this.ySetting=this.y=Math.round(d),this.attr("translateY",this.ySetting)},T.emptyBBox={width:0,height:0,x:0,y:0},T.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","width"],T}(U)}),st(B,"Core/Renderer/SVG/Symbols.js",[B["Core/Utilities.js"]],function(U){var z=U.defined,X=U.isNumber,V=U.pick;function K(W,D,O,w,T){var d=[];if(T){var u=T.start||0,g=V(T.r,O),b=V(T.r,w||O),v=.001,S=Math.abs((T.end||0)-u-2*Math.PI)<v,P=(T.end||0)-v,E=T.innerR,M=V(T.open,S),f=Math.cos(u),x=Math.sin(u),l=Math.cos(P),h=Math.sin(P),e=V(T.longArc,P-u-Math.PI<v?0:1);d.push(["M",W+g*f,D+b*x],["A",g,b,0,e,V(T.clockwise,1),W+g*l,D+b*h]),z(E)&&d.push(M?["M",W+E*l,D+E*h]:["L",W+E*l,D+E*h],["A",E,E,0,e,z(T.clockwise)?1-T.clockwise:0,W+E*f,D+E*x]),M||d.push(["Z"])}return d}function J(W,D,O,w,T){return T&&T.r?q(W,D,O,w,T):[["M",W,D],["L",W+O,D],["L",W+O,D+w],["L",W,D+w],["Z"]]}function q(W,D,O,w,T){var d=T&&T.r||0;return[["M",W+d,D],["L",W+O-d,D],["C",W+O,D,W+O,D,W+O,D+d],["L",W+O,D+w-d],["C",W+O,D+w,W+O,D+w,W+O-d,D+w],["L",W+d,D+w],["C",W,D+w,W,D+w,W,D+w-d],["L",W,D+d],["C",W,D,W,D,W+d,D]]}return{arc:K,callout:function(W,D,O,w,T){var d=Math.min(T&&T.r||0,O,w),u=d+6,g=T&&T.anchorX,b=T&&T.anchorY||0,v=q(W,D,O,w,{r:d});return X(g)&&(W+g>=O?b>D+u&&b<D+w-u?v.splice(3,1,["L",W+O,b-6],["L",W+O+6,b],["L",W+O,b+6],["L",W+O,D+w-d]):v.splice(3,1,["L",W+O,w/2],["L",g,b],["L",W+O,w/2],["L",W+O,D+w-d]):W+g<=0?b>D+u&&b<D+w-u?v.splice(7,1,["L",W,b+6],["L",W-6,b],["L",W,b-6],["L",W,D+d]):v.splice(7,1,["L",W,w/2],["L",g,b],["L",W,w/2],["L",W,D+d]):b&&b>w&&g>W+u&&g<W+O-u?v.splice(5,1,["L",g+6,D+w],["L",g,D+w+6],["L",g-6,D+w],["L",W+d,D+w]):b&&b<0&&g>W+u&&g<W+O-u&&v.splice(1,1,["L",g-6,D],["L",g,D-6],["L",g+6,D],["L",O-d,D])),v},circle:function(W,D,O,w){return K(W+O/2,D+w/2,O/2,w/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(W,D,O,w){return[["M",W+O/2,D],["L",W+O,D+w/2],["L",W+O/2,D+w],["L",W,D+w/2],["Z"]]},rect:J,roundedRect:q,square:J,triangle:function(W,D,O,w){return[["M",W+O/2,D],["L",W+O,D+w],["L",W,D+w],["Z"]]},"triangle-down":function(W,D,O,w){return[["M",W,D],["L",W+O,D],["L",W+O/2,D+w],["Z"]]}}}),st(B,"Core/Renderer/SVG/TextBuilder.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X){var V=z.doc,K=z.SVG_NS,J=z.win,q=X.attr,W=X.extend,D=X.fireEvent,O=X.isString,w=X.objectEach,T=X.pick;return function(){function d(u){var g=u.styles;this.renderer=u.renderer,this.svgElement=u,this.width=u.textWidth,this.textLineHeight=g&&g.lineHeight,this.textOutline=g&&g.textOutline,this.ellipsis=!!(g&&g.textOverflow==="ellipsis"),this.noWrap=!!(g&&g.whiteSpace==="nowrap"),this.fontSize=g&&g.fontSize}return d.prototype.buildSVG=function(){var u=this.svgElement,g=u.element,b=u.renderer,v=T(u.textStr,"").toString(),S=v.indexOf("<")!==-1,P=g.childNodes,E=this.width&&!u.added&&b.box,M=[v,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,this.fontSize,this.width].join(",");if(M!==u.textCache){u.textCache=M,delete u.actualWidth;for(var f=P.length;f--;)g.removeChild(P[f]);if(S||this.ellipsis||this.width||u.textPath||v.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(v))){if(v!==""){E&&E.appendChild(g);var x=new U(v);this.modifyTree(x.nodes),x.addToDOM(g),this.modifyDOM(),this.ellipsis&&(g.textContent||"").indexOf("…")!==-1&&u.attr("title",this.unescapeEntities(u.textStr||"",["&lt;","&gt;"])),E&&E.removeChild(g)}}else g.appendChild(V.createTextNode(this.unescapeEntities(v)));O(this.textOutline)&&u.applyTextOutline&&u.applyTextOutline(this.textOutline)}},d.prototype.modifyDOM=function(){var u,g=this,b=this.svgElement,v=q(b.element,"x");for(b.firstLineMetrics=void 0;(u=b.element.firstChild)&&/^[\s\u200B]*$/.test(u.textContent||" ");)b.element.removeChild(u);[].forEach.call(b.element.querySelectorAll("tspan.highcharts-br"),function(E,M){E.nextSibling&&E.previousSibling&&(M===0&&E.previousSibling.nodeType===1&&(b.firstLineMetrics=b.renderer.fontMetrics(void 0,E.previousSibling)),q(E,{dy:g.getLineHeight(E.nextSibling),x:v}))});var S=this.width||0;if(S){var P=function(E){[].slice.call(E.childNodes).forEach(function(M){M.nodeType===J.Node.TEXT_NODE?function(f,x){var l=f.textContent||"",h=l.replace(/([^\^])-/g,"$1- ").split(" "),e=!g.noWrap&&(h.length>1||b.element.childNodes.length>1),r=g.getLineHeight(x),n=0,i=b.actualWidth;if(g.ellipsis)l&&g.truncate(f,l,void 0,0,Math.max(0,S-parseInt(g.fontSize||12,10)),function(s,y){return s.substring(0,y)+"…"});else if(e){for(var c=[],a=[];x.firstChild&&x.firstChild!==f;)a.push(x.firstChild),x.removeChild(x.firstChild);for(;h.length;)h.length&&!g.noWrap&&n>0&&(c.push(f.textContent||""),f.textContent=h.join(" ").replace(/- /g,"-")),g.truncate(f,void 0,h,n===0&&i||0,S,function(s,y){return h.slice(0,y).join(" ").replace(/- /g,"-")}),i=b.actualWidth,n++;a.forEach(function(s){x.insertBefore(s,f)}),c.forEach(function(s){x.insertBefore(V.createTextNode(s),f);var y=V.createElementNS(K,"tspan");y.textContent="​",q(y,{dy:r,x:v}),x.insertBefore(y,f)})}}(M,E):(M.className.baseVal.indexOf("highcharts-br")!==-1&&(b.actualWidth=0),P(M))})};P(b.element)}},d.prototype.getLineHeight=function(u){var g,b=u.nodeType===J.Node.TEXT_NODE?u.parentElement:u;return this.renderer.styledMode||(g=b&&/(px|em)$/.test(b.style.fontSize)?b.style.fontSize:this.fontSize||this.renderer.style.fontSize||12),this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(g,b||this.svgElement.element).h},d.prototype.modifyTree=function(u){var g=this,b=function(v,S){var P=v.attributes,E=P===void 0?{}:P,M=v.children,f=v.style,x=f===void 0?{}:f,l=v.tagName,h=g.renderer.styledMode;if(l==="b"||l==="strong"?h?E.class="highcharts-strong":x.fontWeight="bold":l!=="i"&&l!=="em"||(h?E.class="highcharts-emphasized":x.fontStyle="italic"),x&&x.color&&(x.fill=x.color),l==="br"){E.class="highcharts-br",v.textContent="​";var e=u[S+1];e&&e.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else l==="a"&&M&&M.some(function(r){return r.tagName==="#text"})&&(v.children=[{children:M,tagName:"tspan"}]);l!=="#text"&&l!=="a"&&(v.tagName="tspan"),W(v,{attributes:E,style:x}),M&&M.filter(function(r){return r.tagName!=="#text"}).forEach(b)};u.forEach(b),D(this.svgElement,"afterModifyTree",{nodes:u})},d.prototype.truncate=function(u,g,b,v,S,P){var E,M,f=this.svgElement,x=f.renderer,l=f.rotation,h=[],e=b?1:0,r=(g||b||"").length,n=r,i=function(c,a){var s=a||c,y=u.parentNode;if(y&&h[s]===void 0)if(y.getSubStringLength)try{h[s]=v+y.getSubStringLength(0,b?s+1:s)}catch(A){}else x.getSpanWidth&&(u.textContent=P(g||b,c),h[s]=v+x.getSpanWidth(f,u));return h[s]};if(f.rotation=0,M=i(u.textContent.length),v+M>S){for(;e<=r;)n=Math.ceil((e+r)/2),b&&(E=P(b,n)),M=i(n,E&&E.length-1),e===r?e=r+1:M>S?r=n-1:e=n;r===0?u.textContent="":g&&r===g.length-1||(u.textContent=E||P(g||b,n))}b&&b.splice(0,n),f.actualWidth=M,f.rotation=l},d.prototype.unescapeEntities=function(u,g){return w(this.renderer.escapes,function(b,v){g&&g.indexOf(b)!==-1||(u=u.toString().replace(new RegExp(b,"g"),v))}),u},d}()}),st(B,"Core/Renderer/SVG/SVGRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Renderer/SVG/TextBuilder.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D){var O,w=X.charts,T=X.deg2rad,d=X.doc,u=X.isFirefox,g=X.isMS,b=X.isWebKit,v=X.noop,S=X.SVG_NS,P=X.symbolSizes,E=X.win,M=D.addEvent,f=D.attr,x=D.createElement,l=D.css,h=D.defined,e=D.destroyObjectProperties,r=D.extend,n=D.isArray,i=D.isNumber,c=D.isObject,a=D.isString,s=D.merge,y=D.pick,A=D.pInt,_=D.uniqueKey,p=function(){function C(k,F,G,I,j,N,Z){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(k,F,G,I,j,N,Z)}return C.prototype.init=function(k,F,G,I,j,N,Z){var $,Y,et=this,rt=et.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),it=rt.element;Z||rt.css(this.getStyle(I)),k.appendChild(it),f(k,"dir","ltr"),k.innerHTML.indexOf("xmlns")===-1&&f(it,"xmlns",this.SVG_NS),et.isSVG=!0,this.box=it,this.boxWrapper=rt,et.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(d.createTextNode("Created with Highcharts 10.3.3")),et.defs=this.createElement("defs").add(),et.allowHTML=N,et.forExport=j,et.styledMode=Z,et.gradients={},et.cache={},et.cacheKeys=[],et.imgCount=0,et.setSize(F,G,!1),u&&k.getBoundingClientRect&&(($=function(){l(k,{left:0,top:0}),Y=k.getBoundingClientRect(),l(k,{left:Math.ceil(Y.left)-Y.left+"px",top:Math.ceil(Y.top)-Y.top+"px"})})(),et.unSubPixelFix=M(E,"resize",$))},C.prototype.definition=function(k){return new U([k]).addToDOM(this.defs.element)},C.prototype.getReferenceURL=function(){if((u||b)&&d.getElementsByTagName("base").length){if(!h(O)){var k=_(),F=new U([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:k},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(k,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(d.body);l(F,{position:"fixed",top:0,left:0,zIndex:9e5});var G=d.elementFromPoint(6,6);O=(G&&G.id)==="hitme",d.body.removeChild(F)}if(O)return E.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""},C.prototype.getStyle=function(k){return this.style=r({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},k),this.style},C.prototype.setStyle=function(k){this.boxWrapper.css(this.getStyle(k))},C.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},C.prototype.destroy=function(){var k=this,F=k.defs;return k.box=null,k.boxWrapper=k.boxWrapper.destroy(),e(k.gradients||{}),k.gradients=null,F&&(k.defs=F.destroy()),k.unSubPixelFix&&k.unSubPixelFix(),k.alignedObjects=null,null},C.prototype.createElement=function(k){var F=new this.Element;return F.init(this,k),F},C.prototype.getRadialAttr=function(k,F){return{cx:k[0]-k[2]/2+(F.cx||0)*k[2],cy:k[1]-k[2]/2+(F.cy||0)*k[2],r:(F.r||0)*k[2]}},C.prototype.buildText=function(k){new W(k).buildSVG()},C.prototype.getContrast=function(k){var F=z.parse(k).rgba.map(function(I){var j=I/255;return j<=.03928?j/12.92:Math.pow((j+.055)/1.055,2.4)}),G=.2126*F[0]+.7152*F[1]+.0722*F[2];return 1.05/(G+.05)>(G+.05)/.05?"#FFFFFF":"#000000"},C.prototype.button=function(k,F,G,I,j,N,Z,$,Y,et){j===void 0&&(j={});var rt=this.label(k,F,G,Y,void 0,void 0,et,void 0,"button"),it=this.styledMode,ht=j.states||{},dt=0;delete(j=s(j)).states;var bt=s({color:"#333333",cursor:"pointer",fontWeight:"normal"},j.style);delete j.style;var xt,St,wt,mt=U.filterUserAttributes(j);return rt.attr(s({padding:8,r:2},mt)),it||(mt=s({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},mt),N=s(mt,{fill:"#e6e6e6"},U.filterUserAttributes(N||ht.hover||{})),xt=N.style,delete N.style,Z=s(mt,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},U.filterUserAttributes(Z||ht.select||{})),St=Z.style,delete Z.style,$=s(mt,{style:{color:"#cccccc"}},U.filterUserAttributes($||ht.disabled||{})),wt=$.style,delete $.style),M(rt.element,g?"mouseover":"mouseenter",function(){dt!==3&&rt.setState(1)}),M(rt.element,g?"mouseout":"mouseleave",function(){dt!==3&&rt.setState(dt)}),rt.setState=function(at){if(at!==1&&(rt.state=dt=at),rt.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][at||0]),!it){rt.attr([mt,N,Z,$][at||0]);var pt=[bt,xt,St,wt][at||0];c(pt)&&rt.css(pt)}},it||(rt.attr(mt).css(r({cursor:"default"},bt)),et&&rt.text.css({pointerEvents:"none"})),rt.on("touchstart",function(at){return at.stopPropagation()}).on("click",function(at){dt!==3&&I.call(rt,at)})},C.prototype.crispLine=function(k,F,G){G===void 0&&(G="round");var I=k[0],j=k[1];return h(I[1])&&I[1]===j[1]&&(I[1]=j[1]=Math[G](I[1])-F%2/2),h(I[2])&&I[2]===j[2]&&(I[2]=j[2]=Math[G](I[2])+F%2/2),k},C.prototype.path=function(k){var F=this.styledMode?{}:{fill:"none"};return n(k)?F.d=k:c(k)&&r(F,k),this.createElement("path").attr(F)},C.prototype.circle=function(k,F,G){var I=c(k)?k:k===void 0?{}:{x:k,y:F,r:G},j=this.createElement("circle");return j.xSetter=j.ySetter=function(N,Z,$){$.setAttribute("c"+Z,N)},j.attr(I)},C.prototype.arc=function(k,F,G,I,j,N){var Z;c(k)?(F=(Z=k).y,G=Z.r,I=Z.innerR,j=Z.start,N=Z.end,k=Z.x):Z={innerR:I,start:j,end:N};var $=this.symbol("arc",k,F,G,G,Z);return $.r=G,$},C.prototype.rect=function(k,F,G,I,j,N){j=c(k)?k.r:j;var Z=this.createElement("rect"),$=c(k)?k:k===void 0?{}:{x:k,y:F,width:Math.max(G,0),height:Math.max(I,0)};return this.styledMode||(N!==void 0&&($["stroke-width"]=N,$=Z.crisp($)),$.fill="none"),j&&($.r=j),Z.rSetter=function(Y,et,rt){Z.r=Y,f(rt,{rx:Y,ry:Y})},Z.rGetter=function(){return Z.r||0},Z.attr($)},C.prototype.setSize=function(k,F,G){var I=this;I.width=k,I.height=F,I.boxWrapper.animate({width:k,height:F},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:y(G,!0)?void 0:0}),I.alignElements()},C.prototype.g=function(k){var F=this.createElement("g");return k?F.attr({class:"highcharts-"+k}):F},C.prototype.image=function(k,F,G,I,j,N){var Z={preserveAspectRatio:"none"},$=function(it,ht){it.setAttributeNS?it.setAttributeNS("http://www.w3.org/1999/xlink","href",ht):it.setAttribute("hc-svg-href",ht)};i(F)&&(Z.x=F),i(G)&&(Z.y=G),i(I)&&(Z.width=I),i(j)&&(Z.height=j);var Y=this.createElement("image").attr(Z),et=function(it){$(Y.element,k),N.call(Y,it)};if(N){$(Y.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==");var rt=new E.Image;M(rt,"load",et),rt.src=k,rt.complete&&et({})}else $(Y.element,k);return Y},C.prototype.symbol=function(k,F,G,I,j,N){var Z,$,Y,et,rt=this,it=/^url\((.*?)\)$/,ht=it.test(k),dt=!ht&&(this.symbols[k]?k:"circle"),bt=dt&&this.symbols[dt];if(bt)typeof F=="number"&&($=bt.call(this.symbols,Math.round(F||0),Math.round(G||0),I||0,j||0,N)),Z=this.path($),rt.styledMode||Z.attr("fill","none"),r(Z,{symbolName:dt||void 0,x:F,y:G,width:I,height:j}),N&&r(Z,N);else if(ht){Y=k.match(it)[1];var xt=Z=this.image(Y);xt.imgwidth=y(P[Y]&&P[Y].width,N&&N.width),xt.imgheight=y(P[Y]&&P[Y].height,N&&N.height),et=function(St){return St.attr({width:St.width,height:St.height})},["width","height"].forEach(function(St){xt[St+"Setter"]=function(wt,mt){this[mt]=wt;var at=this,pt=at.alignByTranslate,vt=at.element,Ct=at.width,Tt=at.height,At=at.imgwidth,Lt=at.imgheight,Ot=this["img"+mt];if(h(Ot)){var _t=1;N&&N.backgroundSize==="within"&&Ct&&Tt?(_t=Math.min(Ct/At,Tt/Lt),Ot=Math.round(Ot*_t),f(vt,{width:Math.round(At*_t),height:Math.round(Lt*_t)})):vt&&vt.setAttribute(mt,Ot),pt||this.translate(((Ct||0)-Ot*_t)/2,((Tt||0)-Ot*_t)/2)}}}),h(F)&&xt.attr({x:F,y:G}),xt.isImg=!0,h(xt.imgwidth)&&h(xt.imgheight)?et(xt):(xt.attr({width:0,height:0}),x("img",{onload:function(){var St=w[rt.chartIndex];this.width===0&&(l(this,{position:"absolute",top:"-999em"}),d.body.appendChild(this)),P[Y]={width:this.width,height:this.height},xt.imgwidth=this.width,xt.imgheight=this.height,xt.element&&et(xt),this.parentNode&&this.parentNode.removeChild(this),rt.imgCount--,rt.imgCount||!St||St.hasLoaded||St.onload()},src:Y}),this.imgCount++)}return Z},C.prototype.clipRect=function(k,F,G,I){var j=_()+"-",N=this.createElement("clipPath").attr({id:j}).add(this.defs),Z=this.rect(k,F,G,I,0).add(N);return Z.id=j,Z.clipPath=N,Z.count=0,Z},C.prototype.text=function(k,F,G,I){var j=this,N={};if(I&&(j.allowHTML||!j.forExport))return j.html(k,F,G);N.x=Math.round(F||0),G&&(N.y=Math.round(G)),h(k)&&(N.text=k);var Z=j.createElement("text").attr(N);return(!I||j.forExport&&!j.allowHTML)&&(Z.xSetter=function($,Y,et){for(var rt=et.getElementsByTagName("tspan"),it=et.getAttribute(Y),ht=0,dt=void 0;ht<rt.length;ht++)(dt=rt[ht]).getAttribute(Y)===it&&dt.setAttribute(Y,$);et.setAttribute(Y,$)}),Z},C.prototype.fontMetrics=function(k,F){k=!this.styledMode&&/px/.test(k)||!E.getComputedStyle?k||F&&F.style&&F.style.fontSize||this.style&&this.style.fontSize:F&&K.prototype.getStyle.call(F,"font-size");var G=(k=/px/.test(k)?A(k):12)<24?k+3:Math.round(1.2*k);return{h:G,b:Math.round(.8*G),f:k}},C.prototype.rotCorr=function(k,F,G){var I=k;return F&&G&&(I=Math.max(I*Math.cos(F*T),4)),{x:-k/3*Math.sin(F*T),y:I}},C.prototype.pathToSegments=function(k){for(var F=[],G=[],I={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},j=0;j<k.length;j++)a(G[0])&&i(k[j])&&G.length===I[G[0].toUpperCase()]&&k.splice(j,0,G[0].replace("M","L").replace("m","l")),typeof k[j]=="string"&&(G.length&&F.push(G.slice(0)),G.length=0),G.push(k[j]);return F.push(G.slice(0)),F},C.prototype.label=function(k,F,G,I,j,N,Z,$,Y){return new J(this,k,F,G,I,j,N,Z,$,Y)},C.prototype.alignElements=function(){this.alignedObjects.forEach(function(k){return k.align()})},C}();return r(p.prototype,{Element:K,SVG_NS:S,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:q,draw:v}),V.registerRendererType("svg",p,!0),p}),st(B,"Core/Renderer/HTML/HTMLElement.js",[B["Core/Globals.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(b,v){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,P){S.__proto__=P}||function(S,P){for(var E in P)P.hasOwnProperty(E)&&(S[E]=P[E])},V(b,v)},function(b,v){function S(){this.constructor=b}V(b,v),b.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)}),J=U.isFirefox,q=U.isMS,W=U.isWebKit,D=U.win,O=X.css,w=X.defined,T=X.extend,d=X.pick,u=X.pInt,g=function(b){function v(){return b!==null&&b.apply(this,arguments)||this}return K(v,b),v.compose=function(S){if(v.composedClasses.indexOf(S)===-1){v.composedClasses.push(S);var P=v.prototype,E=S.prototype;E.getSpanCorrection=P.getSpanCorrection,E.htmlCss=P.htmlCss,E.htmlGetBBox=P.htmlGetBBox,E.htmlUpdateTransform=P.htmlUpdateTransform,E.setSpanRotation=P.setSpanRotation}return S},v.prototype.getSpanCorrection=function(S,P,E){this.xCorr=-S*E,this.yCorr=-P},v.prototype.htmlCss=function(S){var P,E=this,M=E.element.tagName==="SPAN"&&S&&"width"in S,f=d(M&&S.width,void 0);return M&&(delete S.width,E.textWidth=f,P=!0),S&&S.textOverflow==="ellipsis"&&(S.whiteSpace="nowrap",S.overflow="hidden"),E.styles=T(E.styles,S),O(E.element,S),P&&E.htmlUpdateTransform(),E},v.prototype.htmlGetBBox=function(){var S=this.element;return{x:S.offsetLeft,y:S.offsetTop,width:S.offsetWidth,height:S.offsetHeight}},v.prototype.htmlUpdateTransform=function(){if(this.added){var S=this,P=S.renderer,E=S.element,M=S.translateX||0,f=S.translateY||0,x=S.x||0,l=S.y||0,h=S.textAlign||"left",e={left:0,center:.5,right:1}[h],r=S.styles,n=r&&r.whiteSpace;if(O(E,{marginLeft:M,marginTop:f}),!P.styledMode&&S.shadows&&S.shadows.forEach(function(_){O(_,{marginLeft:M+1,marginTop:f+1})}),S.inverted&&[].forEach.call(E.childNodes,function(_){P.invertChild(_,E)}),E.tagName==="SPAN"){var i=S.rotation,c=S.textWidth&&u(S.textWidth),a=[i,h,E.innerHTML,S.textWidth,S.textAlign].join(","),s=void 0,y=!1;if(c!==S.oldTextWidth){var A=S.textPxLength?S.textPxLength:(O(E,{width:"",whiteSpace:n||"nowrap"}),E.offsetWidth);(c>S.oldTextWidth||A>c)&&(/[ \-]/.test(E.textContent||E.innerText)||E.style.textOverflow==="ellipsis")&&(O(E,{width:A>c||i?c+"px":"auto",display:"block",whiteSpace:n||"normal"}),S.oldTextWidth=c,y=!0)}S.hasBoxWidthChanged=y,a!==S.cTT&&(s=P.fontMetrics(E.style.fontSize,E).b,!w(i)||i===(S.oldRotation||0)&&h===S.oldAlign||S.setSpanRotation(i,e,s),S.getSpanCorrection(!w(i)&&S.textPxLength||E.offsetWidth,s,e,i,h)),O(E,{left:x+(S.xCorr||0)+"px",top:l+(S.yCorr||0)+"px"}),S.cTT=a,S.oldRotation=i,S.oldAlign=h}}else this.alignOnAdd=!0},v.prototype.setSpanRotation=function(S,P,E){var M={},f=q&&!/Edge/.test(D.navigator.userAgent)?"-ms-transform":W?"-webkit-transform":J?"MozTransform":D.opera?"-o-transform":void 0;f&&(M[f]=M.transform="rotate("+S+"deg)",M[f+(J?"Origin":"-origin")]=M.transformOrigin=100*P+"% "+E+"px",O(this.element,M))},v.composedClasses=[],v}(z);return g}),st(B,"Core/Renderer/HTML/HTMLRenderer.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(T,d){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(u,g){u.__proto__=g}||function(u,g){for(var b in g)g.hasOwnProperty(b)&&(u[b]=g[b])},K(T,d)},function(T,d){function u(){this.constructor=T}K(T,d),T.prototype=d===null?Object.create(d):(u.prototype=d.prototype,new u)}),q=V.attr,W=V.createElement,D=V.extend,O=V.pick,w=function(T){function d(){return T!==null&&T.apply(this,arguments)||this}return J(d,T),d.compose=function(u){if(d.composedClasses.indexOf(u)===-1){d.composedClasses.push(u);var g=d.prototype;u.prototype.html=g.html}return u},d.prototype.html=function(u,g,b){var v=this.createElement("span"),S=v.element,P=v.renderer,E=P.isSVG,M=function(f,x){["opacity","visibility"].forEach(function(l){f[l+"Setter"]=function(h,e,r){var n=f.div?f.div.style:x;z.prototype[l+"Setter"].call(this,h,e,r),n&&(n[e]=h)}}),f.addedSetters=!0};return v.textSetter=function(f){f!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,U.setElementHTML(this.element,O(f,"")),this.textStr=f,v.doTransform=!0)},E&&M(v,v.element.style),v.xSetter=v.ySetter=v.alignSetter=v.rotationSetter=function(f,x){x==="align"?v.alignValue=v.textAlign=f:v[x]=f,v.doTransform=!0},v.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},v.attr({text:u,x:Math.round(g),y:Math.round(b)}).css({position:"absolute"}),P.styledMode||v.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),S.style.whiteSpace="nowrap",v.css=v.htmlCss,E&&(v.add=function(f){var x,l,h=P.box.parentNode,e=[];if(this.parentGroup=f,f){if(!(x=f.div)){for(l=f;l;)e.push(l),l=l.parentGroup;e.reverse().forEach(function(r){var n=q(r.element,"class");function i(s,y){r[y]=s,y==="translateX"?a.left=s+"px":a.top=s+"px",r.doTransform=!0}var c=r.styles||{},a=(x=r.div=r.div||W("div",n?{className:n}:void 0,{position:"absolute",left:(r.translateX||0)+"px",top:(r.translateY||0)+"px",display:r.display,opacity:r.opacity,cursor:c.cursor,pointerEvents:c.pointerEvents,visibility:r.visibility},x||h)).style;D(r,{classSetter:function(s){return function(y){this.element.setAttribute("class",y),s.className=y}}(x),on:function(){return e[0].div&&v.on.apply({element:e[0].div,onEvents:r.onEvents},arguments),r},translateXSetter:i,translateYSetter:i}),r.addedSetters||M(r)})}}else x=h;return x.appendChild(S),v.added=!0,v.alignOnAdd&&v.htmlUpdateTransform(),v}),v},d.composedClasses=[],d}(X);return w}),st(B,"Core/Axis/AxisDefaults.js",[],function(){var U;return function(z){z.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"},z.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},z.defaultLeftAxisOptions={labels:{x:-15},title:{rotation:270}},z.defaultRightAxisOptions={labels:{x:15},title:{rotation:90}},z.defaultBottomAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},z.defaultTopAxisOptions={labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}}}(U||(U={})),U}),st(B,"Core/Foundation.js",[B["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.isFunction,K=U.objectEach,J=U.removeEvent;return function(q){q.registerEventOptions=function(W,D){W.eventOptions=W.eventOptions||{},K(D.events,function(O,w){W.eventOptions[w]!==O&&(W.eventOptions[w]&&(J(W,w,W.eventOptions[w]),delete W.eventOptions[w]),V(O)&&(W.eventOptions[w]=O,X(W,w,O)))})}}(z||(z={})),z}),st(B,"Core/Axis/Tick.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X){var V=z.deg2rad,K=X.clamp,J=X.correctFloat,q=X.defined,W=X.destroyObjectProperties,D=X.extend,O=X.fireEvent,w=X.isNumber,T=X.merge,d=X.objectEach,u=X.pick;return function(){function g(b,v,S,P,E){this.isNew=!0,this.isNewLabel=!0,this.axis=b,this.pos=v,this.type=S||"",this.parameters=E||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,O(this,"init"),S||P||this.addLabel()}return g.prototype.addLabel=function(){var b,v,S,P=this,E=P.axis,M=E.options,f=E.chart,x=E.categories,l=E.logarithmic,h=E.names,e=P.pos,r=u(P.options&&P.options.labels,M.labels),n=E.tickPositions,i=e===n[0],c=e===n[n.length-1],a=(!r.step||r.step===1)&&E.tickInterval===1,s=n.info,y=P.label,A=this.parameters.category||(x?u(x[e],h[e],e):e);l&&w(A)&&(A=J(l.lin2log(A))),E.dateTime&&(s?b=(v=f.time.resolveDTLFormat(M.dateTimeLabelFormats[!M.grid&&s.higherRanks[e]||s.unitName])).main:w(A)&&(b=E.dateTime.getXDateFormat(A,M.dateTimeLabelFormats||{}))),P.isFirst=i,P.isLast=c;var _={axis:E,chart:f,dateTimeLabelFormat:b,isFirst:i,isLast:c,pos:e,tick:P,tickPositionInfo:s,value:A};O(this,"labelFormat",_);var p=function(F){return r.formatter?r.formatter.call(F,F):r.format?(F.text=E.defaultLabelFormatter.call(F,F),U.format(r.format,F,f)):E.defaultLabelFormatter.call(F,F)},C=p.call(_,_),k=v&&v.list;P.shortenLabel=k?function(){for(S=0;S<k.length;S++)if(D(_,{dateTimeLabelFormat:k[S]}),y.attr({text:p.call(_,_)}),y.getBBox().width<E.getSlotWidth(P)-2*r.padding)return;y.attr({text:""})}:void 0,a&&E._addedPlotLB&&P.moveLabel(C,r),q(y)||P.movedLabel?y&&y.textStr!==C&&!a&&(!y.textWidth||r.style.width||y.styles.width||y.css({width:null}),y.attr({text:C}),y.textPxLength=y.getBBox().width):(P.label=y=P.createLabel({x:0,y:0},C,r),P.rotation=0)},g.prototype.createLabel=function(b,v,S){var P=this.axis,E=P.chart,M=q(v)&&S.enabled?E.renderer.text(v,b.x,b.y,S.useHTML).add(P.labelGroup):null;return M&&(E.styledMode||M.css(T(S.style)),M.textPxLength=M.getBBox().width),M},g.prototype.destroy=function(){W(this,this.axis)},g.prototype.getPosition=function(b,v,S,P){var E=this.axis,M=E.chart,f=P&&M.oldChartHeight||M.chartHeight,x={x:b?J(E.translate(v+S,void 0,void 0,P)+E.transB):E.left+E.offset+(E.opposite?(P&&M.oldChartWidth||M.chartWidth)-E.right-E.left:0),y:b?f-E.bottom+E.offset-(E.opposite?E.height:0):J(f-E.translate(v+S,void 0,void 0,P)-E.transB)};return x.y=K(x.y,-1e5,1e5),O(this,"afterGetPosition",{pos:x}),x},g.prototype.getLabelPosition=function(b,v,S,P,E,M,f,x){var l,h,e=this.axis,r=e.transA,n=e.isLinked&&e.linkedParent?e.linkedParent.reversed:e.reversed,i=e.staggerLines,c=e.tickRotCorr||{x:0,y:0},a=P||e.reserveSpaceDefault?0:-e.labelOffset*(e.labelAlign==="center"?.5:1),s={};return l=e.side===0?S.rotation?-8:-S.getBBox().height:e.side===2?c.y+8:Math.cos(S.rotation*V)*(c.y-S.getBBox(!1,0).height/2),q(E.y)&&(l=e.side===0&&e.horiz?E.y+l:E.y),b=b+E.x+a+c.x-(M&&P?M*r*(n?-1:1):0),v=v+l-(M&&!P?M*r*(n?1:-1):0),i&&(h=f/(x||1)%i,e.opposite&&(h=i-h-1),v+=h*(e.labelOffset/i)),s.x=b,s.y=Math.round(v),O(this,"afterGetLabelPosition",{pos:s,tickmarkOffset:M,index:f}),s},g.prototype.getLabelSize=function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},g.prototype.getMarkPath=function(b,v,S,P,E,M){return M.crispLine([["M",b,v],["L",b+(E?0:-S),v+(E?S:0)]],P)},g.prototype.handleOverflow=function(b){var v,S,P=this,E=this.axis,M=E.options.labels,f=b.x,x=E.chart.chartWidth,l=E.chart.spacing,h=u(E.labelLeft,Math.min(E.pos,l[3])),e=u(E.labelRight,Math.max(E.isRadial?0:E.pos+E.len,x-l[1])),r=this.label,n=this.rotation,i={left:0,center:.5,right:1}[E.labelAlign||r.attr("align")],c=r.getBBox().width,a=E.getSlotWidth(P),s=i,y={},A=a,_=1;n||M.overflow!=="justify"?n<0&&f-i*c<h?S=Math.round(f/Math.cos(n*V)-h):n>0&&f+i*c>e&&(S=Math.round((x-f)/Math.cos(n*V))):(v=f+(1-i)*c,f-i*c<h?A=b.x+A*(1-i)-h:v>e&&(A=e-b.x+A*i,_=-1),(A=Math.min(a,A))<a&&E.labelAlign==="center"&&(b.x+=_*(a-A-s*(a-Math.min(c,A)))),(c>A||E.autoRotation&&(r.styles||{}).width)&&(S=A)),S&&(P.shortenLabel?P.shortenLabel():(y.width=Math.floor(S)+"px",(M.style||{}).textOverflow||(y.textOverflow="ellipsis"),r.css(y)))},g.prototype.moveLabel=function(b,v){var S,P,E,M=this,f=M.label,x=M.axis,l=x.reversed,h=!1;f&&f.textStr===b?(M.movedLabel=f,h=!0,delete M.label):d(x.ticks,function(e){h||e.isNew||e===M||!e.label||e.label.textStr!==b||(M.movedLabel=e.label,h=!0,e.labelPos=M.movedLabel.xy,delete e.label)}),h||!M.labelPos&&!f||(S=M.labelPos||f.xy,P=x.horiz?l?0:x.width+x.left:S.x,E=x.horiz?S.y:l?x.width+x.left:0,M.movedLabel=M.createLabel({x:P,y:E},b,v),M.movedLabel&&M.movedLabel.attr({opacity:0}))},g.prototype.render=function(b,v,S){var P=this,E=P.axis,M=E.horiz,f=P.pos,x=u(P.tickmarkOffset,E.tickmarkOffset),l=P.getPosition(M,f,x,v),h=l.x,e=l.y,r=M&&h===E.pos+E.len||!M&&e===E.pos?-1:1,n=u(S,P.label&&P.label.newOpacity,1);S=u(S,1),this.isActive=!0,this.renderGridLine(v,S,r),this.renderMark(l,S,r),this.renderLabel(l,v,n,b),P.isNew=!1,O(this,"afterRender")},g.prototype.renderGridLine=function(b,v,S){var P,E=this,M=E.axis,f=M.options,x={},l=E.pos,h=E.type,e=u(E.tickmarkOffset,M.tickmarkOffset),r=M.chart.renderer,n=E.gridLine,i=f.gridLineWidth,c=f.gridLineColor,a=f.gridLineDashStyle;E.type==="minor"&&(i=f.minorGridLineWidth,c=f.minorGridLineColor,a=f.minorGridLineDashStyle),n||(M.chart.styledMode||(x.stroke=c,x["stroke-width"]=i||0,x.dashstyle=a),h||(x.zIndex=1),b&&(v=0),E.gridLine=n=r.path().attr(x).addClass("highcharts-"+(h?h+"-":"")+"grid-line").add(M.gridGroup)),n&&(P=M.getPlotLinePath({value:l+e,lineWidth:n.strokeWidth()*S,force:"pass",old:b,acrossPanes:!1}))&&n[b||E.isNew?"attr":"animate"]({d:P,opacity:v})},g.prototype.renderMark=function(b,v,S){var P=this,E=P.axis,M=E.options,f=E.chart.renderer,x=P.type,l=E.tickSize(x?x+"Tick":"tick"),h=b.x,e=b.y,r=u(M[x!=="minor"?"tickWidth":"minorTickWidth"],!x&&E.isXAxis?1:0),n=M[x!=="minor"?"tickColor":"minorTickColor"],i=P.mark,c=!i;l&&(E.opposite&&(l[0]=-l[0]),i||(P.mark=i=f.path().addClass("highcharts-"+(x?x+"-":"")+"tick").add(E.axisGroup),E.chart.styledMode||i.attr({stroke:n,"stroke-width":r})),i[c?"attr":"animate"]({d:P.getMarkPath(h,e,l[0],i.strokeWidth()*S,E.horiz,f),opacity:v}))},g.prototype.renderLabel=function(b,v,S,P){var E=this,M=E.axis,f=M.horiz,x=M.options,l=E.label,h=x.labels,e=h.step,r=u(E.tickmarkOffset,M.tickmarkOffset),n=b.x,i=b.y,c=!0;l&&w(n)&&(l.xy=b=E.getLabelPosition(n,i,l,f,h,r,P,e),E.isFirst&&!E.isLast&&!x.showFirstLabel||E.isLast&&!E.isFirst&&!x.showLastLabel?c=!1:!f||h.step||h.rotation||v||S===0||E.handleOverflow(b),e&&P%e&&(c=!1),c&&w(b.y)?(b.opacity=S,l[E.isNewLabel?"attr":"animate"](b).show(!0),E.isNewLabel=!1):(l.hide(),E.isNewLabel=!0))},g.prototype.replaceMovedLabel=function(){var b,v,S=this,P=S.label,E=S.axis,M=E.reversed;P&&!S.isNew&&(b=E.horiz?M?E.left:E.width+E.left:P.xy.x,v=E.horiz?P.xy.y:M?E.width+E.top:E.top,P.animate({x:b,y:v,opacity:0},void 0,P.destroy),delete S.label),E.isDirty=!0,S.label=S.movedLabel,delete S.movedLabel},g}()}),st(B,"Core/Axis/Axis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/AxisDefaults.js"],B["Core/Color/Color.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W){var D=U.animObject,O=V.defaultOptions,w=K.registerEventOptions,T=J.deg2rad,d=W.arrayMax,u=W.arrayMin,g=W.clamp,b=W.correctFloat,v=W.defined,S=W.destroyObjectProperties,P=W.erase,E=W.error,M=W.extend,f=W.fireEvent,x=W.isArray,l=W.isNumber,h=W.isString,e=W.merge,r=W.normalizeTickInterval,n=W.objectEach,i=W.pick,c=W.relativeLength,a=W.removeEvent,s=W.splat,y=W.syncTimeout,A=function(_,p){return r(p,void 0,void 0,i(_.options.allowDecimals,p<.5||_.tickAmount!==void 0),!!_.tickAmount)};return function(){function _(p,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(p,C)}return _.prototype.init=function(p,C){var k=C.isX,F=this;F.chart=p,F.horiz=p.inverted&&!F.isZAxis?!k:k,F.isXAxis=k,F.coll=F.coll||(k?"xAxis":"yAxis"),f(this,"init",{userOptions:C}),F.opposite=i(C.opposite,F.opposite),F.side=i(C.side,F.side,F.horiz?F.opposite?0:2:F.opposite?1:3),F.setOptions(C);var G=this.options,I=G.labels,j=G.type;F.userOptions=C,F.minPixelPadding=0,F.reversed=i(G.reversed,F.reversed),F.visible=G.visible,F.zoomEnabled=G.zoomEnabled,F.hasNames=j==="category"||G.categories===!0,F.categories=G.categories||(F.hasNames?[]:void 0),F.names||(F.names=[],F.names.keys={}),F.plotLinesAndBandsGroups={},F.positiveValuesOnly=!!F.logarithmic,F.isLinked=v(G.linkedTo),F.ticks={},F.labelEdge=[],F.minorTicks={},F.plotLinesAndBands=[],F.alternateBands={},F.len=0,F.minRange=F.userMinRange=G.minRange||G.maxZoom,F.range=G.range,F.offset=G.offset||0,F.max=null,F.min=null;var N=i(G.crosshair,s(p.options.tooltip.crosshairs)[k?0:1]);F.crosshair=N===!0?{}:N,p.axes.indexOf(F)===-1&&(k?p.axes.splice(p.xAxis.length,0,F):p.axes.push(F),p[F.coll].push(F)),F.series=F.series||[],p.inverted&&!F.isZAxis&&k&&F.reversed===void 0&&(F.reversed=!0),F.labelRotation=l(I.rotation)?I.rotation:void 0,w(F,G),f(this,"afterInit")},_.prototype.setOptions=function(p){this.options=e(z.defaultXAxisOptions,this.coll==="yAxis"&&z.defaultYAxisOptions,[z.defaultTopAxisOptions,z.defaultRightAxisOptions,z.defaultBottomAxisOptions,z.defaultLeftAxisOptions][this.side],e(O[this.coll],p)),f(this,"afterSetOptions",{userOptions:p})},_.prototype.defaultLabelFormatter=function(p){var C,k,F=this.axis,G=this.chart.numberFormatter,I=l(this.value)?this.value:NaN,j=F.chart.time,N=F.categories,Z=this.dateTimeLabelFormat,$=O.lang,Y=$.numericSymbols,et=$.numericSymbolMagnitude||1e3,rt=F.logarithmic?Math.abs(I):F.tickInterval,it=Y&&Y.length;if(N)k="".concat(this.value);else if(Z)k=j.dateFormat(Z,I);else if(it&&rt>=1e3)for(;it--&&k===void 0;)rt>=(C=Math.pow(et,it+1))&&10*I%C==0&&Y[it]!==null&&I!==0&&(k=G(I/C,-1)+Y[it]);return k===void 0&&(k=Math.abs(I)>=1e4?G(I,-1):G(I,-1,void 0,"")),k},_.prototype.getSeriesExtremes=function(){var p,C=this,k=C.chart;f(this,"getSeriesExtremes",null,function(){C.hasVisibleSeries=!1,C.dataMin=C.dataMax=C.threshold=null,C.softThreshold=!C.isXAxis,C.series.forEach(function(F){if(F.visible||!k.options.chart.ignoreHiddenSeries){var G=F.options,I=void 0,j=G.threshold,N=void 0,Z=void 0;if(C.hasVisibleSeries=!0,C.positiveValuesOnly&&j<=0&&(j=null),C.isXAxis)(I=F.xData).length&&(I=C.logarithmic?I.filter(C.validatePositiveValue):I,N=(p=F.getXExtremes(I)).min,Z=p.max,l(N)||N instanceof Date||(I=I.filter(l),N=(p=F.getXExtremes(I)).min,Z=p.max),I.length&&(C.dataMin=Math.min(i(C.dataMin,N),N),C.dataMax=Math.max(i(C.dataMax,Z),Z)));else{var $=F.applyExtremes();l($.dataMin)&&(N=$.dataMin,C.dataMin=Math.min(i(C.dataMin,N),N)),l($.dataMax)&&(Z=$.dataMax,C.dataMax=Math.max(i(C.dataMax,Z),Z)),v(j)&&(C.threshold=j),G.softThreshold&&!C.positiveValuesOnly||(C.softThreshold=!1)}}})}),f(this,"afterGetSeriesExtremes")},_.prototype.translate=function(p,C,k,F,G,I){var j=this.linkedParent||this,N=F&&j.old?j.old.min:j.min;if(!l(N))return NaN;var Z=j.minPixelPadding,$=(j.isOrdinal||j.brokenAxis&&j.brokenAxis.hasBreaks||j.logarithmic&&G)&&j.lin2val,Y=1,et=0,rt=F&&j.old?j.old.transA:j.transA,it=0;if(rt||(rt=j.transA),k&&(Y*=-1,et=j.len),j.reversed&&(et-=(Y*=-1)*(j.sector||j.len)),C)p=p*Y+et,it=(p-=Z)/rt+N,$&&(it=j.lin2val(it));else{$&&(p=j.val2lin(p));var ht=Y*(p-N)*rt;it=(j.isRadial?ht:b(ht))+et+Y*Z+(l(I)?rt*I:0)}return it},_.prototype.toPixels=function(p,C){return this.translate(p,!1,!this.horiz,void 0,!0)+(C?0:this.pos)},_.prototype.toValue=function(p,C){return this.translate(p-(C?0:this.pos),!0,!this.horiz,void 0,!0)},_.prototype.getPlotLinePath=function(p){var C,k,F,G,I,j=this,N=j.chart,Z=j.left,$=j.top,Y=p.old,et=p.value,rt=p.lineWidth,it=Y&&N.oldChartHeight||N.chartHeight,ht=Y&&N.oldChartWidth||N.chartWidth,dt=j.transB,bt=p.translatedValue,xt=p.force;function St(mt,at,pt){return xt!=="pass"&&(mt<at||mt>pt)&&(xt?mt=g(mt,at,pt):I=!0),mt}var wt={value:et,lineWidth:rt,old:Y,force:xt,acrossPanes:p.acrossPanes,translatedValue:bt};return f(this,"getPlotLinePath",wt,function(mt){bt=i(bt,j.translate(et,void 0,void 0,Y)),bt=g(bt,-1e5,1e5),C=F=Math.round(bt+dt),k=G=Math.round(it-bt-dt),l(bt)?j.horiz?(k=$,G=it-j.bottom,C=F=St(C,Z,Z+j.width)):(C=Z,F=ht-j.right,k=G=St(k,$,$+j.height)):(I=!0,xt=!1),mt.path=I&&!xt?null:N.renderer.crispLine([["M",C,k],["L",F,G]],rt||1)}),wt.path},_.prototype.getLinearTickPositions=function(p,C,k){var F,G,I,j=b(Math.floor(C/p)*p),N=b(Math.ceil(k/p)*p),Z=[];if(b(j+p)===j&&(I=20),this.single)return[C];for(F=j;F<=N&&(Z.push(F),(F=b(F+p,I))!==G);)G=F;return Z},_.prototype.getMinorTickInterval=function(){var p=this.options;return p.minorTicks===!0?i(p.minorTickInterval,"auto"):p.minorTicks===!1?null:p.minorTickInterval},_.prototype.getMinorTickPositions=function(){var p,C=this,k=C.options,F=C.tickPositions,G=C.minorTickInterval,I=C.pointRangePadding||0,j=C.min-I,N=C.max+I,Z=N-j,$=[];if(Z&&Z/G<C.len/3){var Y=C.logarithmic;if(Y)this.paddedTicks.forEach(function(et,rt,it){rt&&$.push.apply($,Y.getLogTickPositions(G,it[rt-1],it[rt],!0))});else if(C.dateTime&&this.getMinorTickInterval()==="auto")$=$.concat(C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(G),j,N,k.startOfWeek));else for(p=j+(F[0]-j)%G;p<=N&&p!==$[0];p+=G)$.push(p)}return $.length!==0&&C.trimTicks($),$},_.prototype.adjustForMinRange=function(){var p,C,k,F,G,I,j,N,Z,$=this,Y=$.options,et=$.logarithmic,rt=$.min,it=$.max,ht=0;$.isXAxis&&$.minRange===void 0&&!et&&(v(Y.min)||v(Y.max)||v(Y.floor)||v(Y.ceiling)?$.minRange=null:($.series.forEach(function(dt){if(G=dt.xData,I=dt.xIncrement?1:G.length-1,G.length>1)for(k=I;k>0;k--)F=G[k]-G[k-1],(!ht||F<ht)&&(ht=F)}),$.minRange=Math.min(5*ht,$.dataMax-$.dataMin))),it-rt<$.minRange&&(C=$.dataMax-$.dataMin>=$.minRange,j=[rt-(p=((Z=$.minRange)-it+rt)/2),i(Y.min,rt-p)],C&&(j[2]=$.logarithmic?$.logarithmic.log2lin($.dataMin):$.dataMin),N=[(rt=d(j))+Z,i(Y.max,rt+Z)],C&&(N[2]=et?et.log2lin($.dataMax):$.dataMax),(it=u(N))-rt<Z&&(j[0]=it-Z,j[1]=i(Y.min,it-Z),rt=d(j))),$.min=rt,$.max=it},_.prototype.getClosest=function(){var p;return this.categories?p=1:this.series.forEach(function(C){var k=C.closestPointRange,F=C.visible||!C.chart.options.chart.ignoreHiddenSeries;!C.noSharedTooltip&&v(k)&&F&&(p=v(p)?Math.min(p,k):k)}),p},_.prototype.nameToX=function(p){var C,k=x(this.options.categories),F=k?this.categories:this.names,G=p.options.x;return p.series.requireSorting=!1,v(G)||(G=this.options.uniqueNames&&F?k?F.indexOf(p.name):i(F.keys[p.name],-1):p.series.autoIncrement()),G===-1?!k&&F&&(C=F.length):C=G,C!==void 0?(this.names[C]=p.name,this.names.keys[p.name]=C):p.x&&(C=p.x),C},_.prototype.updateNames=function(){var p=this,C=this.names;C.length>0&&(Object.keys(C.keys).forEach(function(k){delete C.keys[k]}),C.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(k){k.xIncrement=null,k.points&&!k.isDirtyData||(p.max=Math.max(p.max,k.xData.length-1),k.processData(),k.generatePoints()),k.data.forEach(function(F,G){var I;F&&F.options&&F.name!==void 0&&(I=p.nameToX(F))!==void 0&&I!==F.x&&(F.x=I,k.xData[G]=I)})}))},_.prototype.setAxisTranslation=function(){var p,C,k=this,F=k.max-k.min,G=k.linkedParent,I=!!k.categories,j=k.isXAxis,N=k.axisPointRange||0,Z=0,$=0,Y=k.transA;(j||I||N)&&(p=k.getClosest(),G?(Z=G.minPointOffset,$=G.pointRangePadding):k.series.forEach(function(et){var rt=I?1:j?i(et.options.pointRange,p,0):k.axisPointRange||0,it=et.options.pointPlacement;if(N=Math.max(N,rt),!k.single||I){var ht=et.is("xrange")?!j:j;Z=Math.max(Z,ht&&h(it)?0:rt/2),$=Math.max($,ht&&it==="on"?0:rt)}}),C=k.ordinal&&k.ordinal.slope&&p?k.ordinal.slope/p:1,k.minPointOffset=Z*=C,k.pointRangePadding=$*=C,k.pointRange=Math.min(N,k.single&&I?1:F),j&&(k.closestPointRange=p)),k.translationSlope=k.transA=Y=k.staticScale||k.len/(F+$||1),k.transB=k.horiz?k.left:k.bottom,k.minPixelPadding=Y*Z,f(this,"afterSetAxisTranslation")},_.prototype.minFromRange=function(){return this.max-this.range},_.prototype.setTickInterval=function(p){var C,k,F,G,I,j,N=this,Z=N.chart,$=N.logarithmic,Y=N.options,et=N.isXAxis,rt=N.isLinked,it=Y.tickPixelInterval,ht=N.categories,dt=N.softThreshold,bt=Y.maxPadding,xt=Y.minPadding,St=l(Y.tickInterval)&&Y.tickInterval>=0?Y.tickInterval:void 0,wt=l(N.threshold)?N.threshold:null;if(N.dateTime||ht||rt||this.getTickAmount(),I=i(N.userMin,Y.min),j=i(N.userMax,Y.max),rt?(N.linkedParent=Z[N.coll][Y.linkedTo],k=N.linkedParent.getExtremes(),N.min=i(k.min,k.dataMin),N.max=i(k.max,k.dataMax),Y.type!==N.linkedParent.options.type&&E(11,1,Z)):(dt&&v(wt)&&(N.dataMin>=wt?(F=wt,xt=0):N.dataMax<=wt&&(G=wt,bt=0)),N.min=i(I,F,N.dataMin),N.max=i(j,G,N.dataMax)),$&&(N.positiveValuesOnly&&!p&&Math.min(N.min,i(N.dataMin,N.min))<=0&&E(10,1,Z),N.min=b($.log2lin(N.min),16),N.max=b($.log2lin(N.max),16)),N.range&&v(N.max)&&(N.userMin=N.min=I=Math.max(N.dataMin,N.minFromRange()),N.userMax=j=N.max,N.range=null),f(N,"foundExtremes"),N.beforePadding&&N.beforePadding(),N.adjustForMinRange(),ht||N.axisPointRange||N.stacking&&N.stacking.usePercentage||rt||!v(N.min)||!v(N.max)||(C=N.max-N.min)&&(!v(I)&&xt&&(N.min-=C*xt),!v(j)&&bt&&(N.max+=C*bt)),l(N.userMin)||(l(Y.softMin)&&Y.softMin<N.min&&(N.min=I=Y.softMin),l(Y.floor)&&(N.min=Math.max(N.min,Y.floor))),l(N.userMax)||(l(Y.softMax)&&Y.softMax>N.max&&(N.max=j=Y.softMax),l(Y.ceiling)&&(N.max=Math.min(N.max,Y.ceiling))),dt&&v(N.dataMin)&&(wt=wt||0,!v(I)&&N.min<wt&&N.dataMin>=wt?N.min=N.options.minRange?Math.min(wt,N.max-N.minRange):wt:!v(j)&&N.max>wt&&N.dataMax<=wt&&(N.max=N.options.minRange?Math.max(wt,N.min+N.minRange):wt)),l(N.min)&&l(N.max)&&!this.chart.polar&&N.min>N.max&&(v(N.options.min)?N.max=N.min:v(N.options.max)&&(N.min=N.max)),N.min===N.max||N.min===void 0||N.max===void 0?N.tickInterval=1:rt&&N.linkedParent&&!St&&it===N.linkedParent.options.tickPixelInterval?N.tickInterval=St=N.linkedParent.tickInterval:N.tickInterval=i(St,this.tickAmount?(N.max-N.min)/Math.max(this.tickAmount-1,1):void 0,ht?1:(N.max-N.min)*it/Math.max(N.len,it)),et&&!p){var mt=N.min!==(N.old&&N.old.min)||N.max!==(N.old&&N.old.max);N.series.forEach(function(pt){pt.forceCrop=pt.forceCropping&&pt.forceCropping(),pt.processData(mt)}),f(this,"postProcessData",{hasExtremesChanged:mt})}N.setAxisTranslation(),f(this,"initialAxisTranslation"),N.pointRange&&!St&&(N.tickInterval=Math.max(N.pointRange,N.tickInterval));var at=i(Y.minTickInterval,N.dateTime&&!N.series.some(function(pt){return pt.noSharedTooltip})?N.closestPointRange:0);!St&&N.tickInterval<at&&(N.tickInterval=at),N.dateTime||N.logarithmic||St||(N.tickInterval=A(N,N.tickInterval)),this.tickAmount||(N.tickInterval=N.unsquish()),this.setTickPositions()},_.prototype.setTickPositions=function(){var p,C=this,k=this.options,F=k.tickPositions,G=k.tickPositioner,I=this.getMinorTickInterval(),j=this.hasVerticalPanning(),N=this.coll==="colorAxis",Z=(N||!j)&&k.startOnTick,$=(N||!j)&&k.endOnTick,Y=[];if(this.tickmarkOffset=this.categories&&k.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=I==="auto"&&this.tickInterval?this.tickInterval/5:I,this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||k.allowDecimals!==!1),F)Y=F.slice();else if(l(this.min)&&l(this.max)){if(C.ordinal&&C.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(C.dateTime)Y=C.getTimeTicks(C.dateTime.normalizeTimeTickInterval(this.tickInterval,k.units),this.min,this.max,k.startOfWeek,C.ordinal&&C.ordinal.positions,this.closestPointRange,!0);else if(C.logarithmic)Y=C.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(var et=this.tickInterval,rt=et;rt<=2*et&&(Y=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&Y.length>this.tickAmount);)this.tickInterval=A(this,rt*=1.1);else Y=[this.min,this.max],E(19,!1,this.chart);Y.length>this.len&&(Y=[Y[0],Y[Y.length-1]])[0]===Y[1]&&(Y.length=1),G&&(this.tickPositions=Y,(p=G.apply(C,[this.min,this.max]))&&(Y=p))}this.tickPositions=Y,this.paddedTicks=Y.slice(0),this.trimTicks(Y,Z,$),!this.isLinked&&l(this.min)&&l(this.max)&&(this.single&&Y.length<2&&!this.categories&&!this.series.some(function(it){return it.is("heatmap")&&it.options.pointPlacement==="between"})&&(this.min-=.5,this.max+=.5),F||p||this.adjustTickAmount()),f(this,"afterSetTickPositions")},_.prototype.trimTicks=function(p,C,k){var F=p[0],G=p[p.length-1],I=!this.isOrdinal&&this.minPointOffset||0;if(f(this,"trimTicks"),!this.isLinked){if(C&&F!==-1/0)this.min=F;else for(;this.min-I>p[0];)p.shift();if(k)this.max=G;else for(;this.max+I<p[p.length-1];)p.pop();p.length===0&&v(F)&&!this.options.tickPositions&&p.push((G+F)/2)}},_.prototype.alignToOthers=function(){var p,C=this,k=[this],F=C.options,G=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,I=[];if(C.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&F.alignTicks||G)&&F.startOnTick!==!1&&F.endOnTick!==!1&&!C.logarithmic){var j=function($){var Y=$.horiz,et=$.options;return[Y?et.left:et.top,et.width,et.height,et.pane].join(",")},N=j(this);this.chart[this.coll].forEach(function($){var Y=$.series;Y.length&&Y.some(function(et){return et.visible})&&$!==C&&j($)===N&&(p=!0,k.push($))})}if(p&&G){k.forEach(function($){var Y=$.getThresholdAlignment(C);l(Y)&&I.push(Y)});var Z=I.length>1?I.reduce(function($,Y){return $+Y},0)/I.length:void 0;k.forEach(function($){$.thresholdAlignment=Z})}return p},_.prototype.getThresholdAlignment=function(p){if((!l(this.dataMin)||this!==p&&this.series.some(function(k){return k.isDirty||k.isDirtyData}))&&this.getSeriesExtremes(),l(this.threshold)){var C=g((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(C=1-C),C}},_.prototype.getTickAmount=function(){var p=this.options,C=p.tickPixelInterval,k=p.tickAmount;!v(p.tickInterval)&&!k&&this.len<C&&!this.isRadial&&!this.logarithmic&&p.startOnTick&&p.endOnTick&&(k=2),!k&&this.alignToOthers()&&(k=Math.ceil(this.len/C)+1),k<4&&(this.finalTickAmt=k,k=5),this.tickAmount=k},_.prototype.adjustTickAmount=function(){var p,C,k,F=this,G=F.finalTickAmt,I=F.max,j=F.min,N=F.options,Z=F.tickPositions,$=F.tickAmount,Y=F.thresholdAlignment,et=Z&&Z.length,rt=i(F.threshold,F.softThreshold?0:null),it=F.tickInterval,ht=function(){return Z.push(b(Z[Z.length-1]+it))},dt=function(){return Z.unshift(b(Z[0]-it))};if(l(Y)&&(k=Y<.5?Math.ceil(Y*($-1)):Math.floor(Y*($-1)),N.reversed&&(k=$-1-k)),F.hasData()&&l(j)&&l(I)){var bt=function(){F.transA*=(et-1)/($-1),F.min=N.startOnTick?Z[0]:Math.min(j,Z[0]),F.max=N.endOnTick?Z[Z.length-1]:Math.max(I,Z[Z.length-1])};if(l(k)&&l(F.threshold)){for(;Z[k]!==rt||Z.length!==$||Z[0]>j||Z[Z.length-1]<I;){for(Z.length=0,Z.push(F.threshold);Z.length<$;)Z[k]===void 0||Z[k]>F.threshold?dt():ht();if(it>8*F.tickInterval)break;it*=2}bt()}else if(et<$){for(;Z.length<$;)Z.length%2||j===rt?ht():dt();bt()}if(v(G)){for(C=p=Z.length;C--;)(G===3&&C%2==1||G<=2&&C>0&&C<p-1)&&Z.splice(C,1);F.finalTickAmt=void 0}}},_.prototype.setScale=function(){var p=this,C=!1,k=!1;p.series.forEach(function(G){C=C||G.isDirtyData||G.isDirty,k=k||G.xAxis&&G.xAxis.isDirty||!1}),p.setAxisSize();var F=p.len!==(p.old&&p.old.len);F||C||k||p.isLinked||p.forceRedraw||p.userMin!==(p.old&&p.old.userMin)||p.userMax!==(p.old&&p.old.userMax)||p.alignToOthers()?(p.stacking&&(p.stacking.resetStacks(),p.stacking.buildStacks()),p.forceRedraw=!1,p.getSeriesExtremes(),p.setTickInterval(),p.isDirty||(p.isDirty=F||p.min!==(p.old&&p.old.min)||p.max!==(p.old&&p.old.max))):p.stacking&&p.stacking.cleanStacks(),C&&p.panningState&&(p.panningState.isDirty=!0),f(this,"afterSetScale")},_.prototype.setExtremes=function(p,C,k,F,G){var I=this,j=I.chart;k=i(k,!0),I.series.forEach(function(N){delete N.kdTree}),G=M(G,{min:p,max:C}),f(I,"setExtremes",G,function(){I.userMin=p,I.userMax=C,I.eventArgs=G,k&&j.redraw(F)})},_.prototype.zoom=function(p,C){var k=this,F=this.dataMin,G=this.dataMax,I=this.options,j=Math.min(F,i(I.min,F)),N=Math.max(G,i(I.max,G)),Z={newMin:p,newMax:C};return f(this,"zoom",Z,function($){var Y=$.newMin,et=$.newMax;Y===k.min&&et===k.max||(k.allowZoomOutside||(v(F)&&(Y<j&&(Y=j),Y>N&&(Y=N)),v(G)&&(et<j&&(et=j),et>N&&(et=N))),k.displayBtn=Y!==void 0||et!==void 0,k.setExtremes(Y,et,!1,void 0,{trigger:"zoom"})),$.zoomed=!0}),Z.zoomed},_.prototype.setAxisSize=function(){var p=this.chart,C=this.options,k=C.offsets||[0,0,0,0],F=this.horiz,G=this.width=Math.round(c(i(C.width,p.plotWidth-k[3]+k[1]),p.plotWidth)),I=this.height=Math.round(c(i(C.height,p.plotHeight-k[0]+k[2]),p.plotHeight)),j=this.top=Math.round(c(i(C.top,p.plotTop+k[0]),p.plotHeight,p.plotTop)),N=this.left=Math.round(c(i(C.left,p.plotLeft+k[3]),p.plotWidth,p.plotLeft));this.bottom=p.chartHeight-I-j,this.right=p.chartWidth-G-N,this.len=Math.max(F?G:I,0),this.pos=F?N:j},_.prototype.getExtremes=function(){var p=this,C=p.logarithmic;return{min:C?b(C.lin2log(p.min)):p.min,max:C?b(C.lin2log(p.max)):p.max,dataMin:p.dataMin,dataMax:p.dataMax,userMin:p.userMin,userMax:p.userMax}},_.prototype.getThreshold=function(p){var C=this,k=C.logarithmic,F=k?k.lin2log(C.min):C.min,G=k?k.lin2log(C.max):C.max;return p===null||p===-1/0?p=F:p===1/0?p=G:F>p?p=F:G<p&&(p=G),C.translate(p,0,1,0,1)},_.prototype.autoLabelAlign=function(p){var C=(i(p,0)-90*this.side+720)%360,k={align:"center"};return f(this,"autoLabelAlign",k,function(F){C>15&&C<165?F.align="right":C>195&&C<345&&(F.align="left")}),k.align},_.prototype.tickSize=function(p){var C,k=this.options,F=i(k[p==="tick"?"tickWidth":"minorTickWidth"],p==="tick"&&this.isXAxis&&!this.categories?1:0),G=k[p==="tick"?"tickLength":"minorTickLength"];F&&G&&(k[p+"Position"]==="inside"&&(G=-G),C=[G,F]);var I={tickSize:C};return f(this,"afterTickSize",I),I.tickSize},_.prototype.labelMetrics=function(){var p=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style.fontSize,this.ticks[p]&&this.ticks[p].label)},_.prototype.unsquish=function(){var p,C,k=this.options.labels,F=this.horiz,G=this.tickInterval,I=this.len/(((this.categories?1:0)+this.max-this.min)/G),j=k.rotation,N=this.labelMetrics(),Z=Math.max(this.max-this.min,0),$=function(xt){var St=xt/(I||1);return(St=St>1?Math.ceil(St):1)*G>Z&&xt!==1/0&&I!==1/0&&Z&&(St=Math.ceil(Z/G)),b(St*G)},Y=G,et=Number.MAX_VALUE;if(F){if(k.staggerLines||(l(j)?C=[j]:I<k.autoRotationLimit&&(C=k.autoRotation)),C)for(var rt=void 0,it=void 0,ht=0,dt=C;ht<dt.length;ht++){var bt=dt[ht];(bt===j||bt&&bt>=-90&&bt<=90)&&(it=(rt=$(Math.abs(N.h/Math.sin(T*bt))))+Math.abs(bt/360))<et&&(et=it,p=bt,Y=rt)}}else Y=$(N.h);return this.autoRotation=C,this.labelRotation=i(p,l(j)?j:0),k.step?G:Y},_.prototype.getSlotWidth=function(p){var C=this.chart,k=this.horiz,F=this.options.labels,G=Math.max(this.tickPositions.length-(this.categories?0:1),1),I=C.margin[3];if(p&&l(p.slotWidth))return p.slotWidth;if(k&&F.step<2)return F.rotation?0:(this.staggerLines||1)*this.len/G;if(!k){var j=F.style.width;if(j!==void 0)return parseInt(String(j),10);if(I)return I-C.spacing[3]}return .33*C.chartWidth},_.prototype.renderUnsquish=function(){var p,C,k,F,G,I=this.chart,j=I.renderer,N=this.tickPositions,Z=this.ticks,$=this.options.labels,Y=$.style,et=this.horiz,rt=this.getSlotWidth(),it=Math.max(1,Math.round(rt-2*$.padding)),ht={},dt=this.labelMetrics(),bt=Y.textOverflow,xt=0;if(h($.rotation)||(ht.rotation=$.rotation||0),N.forEach(function(St){var wt=Z[St];wt.movedLabel&&wt.replaceMovedLabel(),wt&&wt.label&&wt.label.textPxLength>xt&&(xt=wt.label.textPxLength)}),this.maxLabelLength=xt,this.autoRotation)xt>it&&xt>dt.h?ht.rotation=this.labelRotation:this.labelRotation=0;else if(rt&&(p=it,!bt))for(C="clip",F=N.length;!et&&F--;)G=N[F],(k=Z[G].label)&&(k.styles&&k.styles.textOverflow==="ellipsis"?k.css({textOverflow:"clip"}):k.textPxLength>rt&&k.css({width:rt+"px"}),k.getBBox().height>this.len/N.length-(dt.h-dt.f)&&(k.specificTextOverflow="ellipsis"));ht.rotation&&(p=xt>.5*I.chartHeight?.33*I.chartHeight:xt,bt||(C="ellipsis")),this.labelAlign=$.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(ht.align=this.labelAlign),N.forEach(function(St){var wt=Z[St],mt=wt&&wt.label,at=Y.width,pt={};mt&&(mt.attr(ht),wt.shortenLabel?wt.shortenLabel():p&&!at&&Y.whiteSpace!=="nowrap"&&(p<mt.textPxLength||mt.element.tagName==="SPAN")?(pt.width=p+"px",bt||(pt.textOverflow=mt.specificTextOverflow||C),mt.css(pt)):mt.styles&&mt.styles.width&&!pt.width&&!at&&mt.css({width:null}),delete mt.specificTextOverflow,wt.rotation=ht.rotation)},this),this.tickRotCorr=j.rotCorr(dt.b,this.labelRotation||0,this.side!==0)},_.prototype.hasData=function(){return this.series.some(function(p){return p.hasData()})||this.options.showEmpty&&v(this.min)&&v(this.max)},_.prototype.addTitle=function(p){var C,k=this,F=k.chart.renderer,G=k.horiz,I=k.opposite,j=k.options.title,N=k.chart.styledMode;k.axisTitle||((C=j.textAlign)||(C=(G?{low:"left",middle:"center",high:"right"}:{low:I?"right":"left",middle:"center",high:I?"left":"right"})[j.align]),k.axisTitle=F.text(j.text||"",0,0,j.useHTML).attr({zIndex:7,rotation:j.rotation,align:C}).addClass("highcharts-axis-title"),N||k.axisTitle.css(e(j.style)),k.axisTitle.add(k.axisGroup),k.axisTitle.isNew=!0),N||j.style.width||k.isRadial||k.axisTitle.css({width:k.len+"px"}),k.axisTitle[p?"show":"hide"](p)},_.prototype.generateTick=function(p){var C=this.ticks;C[p]?C[p].addLabel():C[p]=new q(this,p)},_.prototype.getOffset=function(){var p,C,k,F,G=this,I=this,j=I.chart,N=I.horiz,Z=I.options,$=I.side,Y=I.ticks,et=I.tickPositions,rt=I.coll,it=I.axisParent,ht=j.renderer,dt=j.inverted&&!I.isZAxis?[1,0,3,2][$]:$,bt=I.hasData(),xt=Z.title,St=Z.labels,wt=j.axisOffset,mt=j.clipOffset,at=[-1,1,1,-1][$],pt=Z.className,vt=0,Ct=0,Tt=0;if(I.showAxis=p=bt||Z.showEmpty,I.staggerLines=I.horiz&&St.staggerLines||void 0,!I.axisGroup){var At=function(_t,It,zt){return ht.g(_t).attr({zIndex:zt}).addClass("highcharts-".concat(rt.toLowerCase()).concat(It," ")+(G.isRadial?"highcharts-radial-axis".concat(It," "):"")+(pt||"")).add(it)};I.gridGroup=At("grid","-grid",Z.gridZIndex),I.axisGroup=At("axis","",Z.zIndex),I.labelGroup=At("axis-labels","-labels",St.zIndex)}if(bt||I.isLinked?(et.forEach(function(_t){I.generateTick(_t)}),I.renderUnsquish(),I.reserveSpaceDefault=$===0||$===2||{1:"left",3:"right"}[$]===I.labelAlign,i(St.reserveSpace,I.labelAlign==="center"||null,I.reserveSpaceDefault)&&et.forEach(function(_t){Tt=Math.max(Y[_t].getLabelSize(),Tt)}),I.staggerLines&&(Tt*=I.staggerLines),I.labelOffset=Tt*(I.opposite?-1:1)):n(Y,function(_t,It){_t.destroy(),delete Y[It]}),xt&&xt.text&&xt.enabled!==!1&&(I.addTitle(p),p&&xt.reserveSpace!==!1&&(I.titleOffset=vt=I.axisTitle.getBBox()[N?"height":"width"],C=xt.offset,Ct=v(C)?0:i(xt.margin,N?5:10))),I.renderLine(),I.offset=at*i(Z.offset,wt[$]?wt[$]+(Z.margin||0):0),I.tickRotCorr=I.tickRotCorr||{x:0,y:0},F=$===0?-I.labelMetrics().h:$===2?I.tickRotCorr.y:0,k=Math.abs(Tt)+Ct,Tt&&(k-=F,k+=at*(N?i(St.y,I.tickRotCorr.y+8*at):St.x)),I.axisTitleMargin=i(C,k),I.getMaxLabelDimensions&&(I.maxLabelDimensions=I.getMaxLabelDimensions(Y,et)),rt!=="colorAxis"){var Lt=this.tickSize("tick");wt[$]=Math.max(wt[$],(I.axisTitleMargin||0)+vt+at*I.offset,k,et&&et.length&&Lt?Lt[0]+at*I.offset:0);var Ot=!I.axisLine||Z.offset?0:2*Math.floor(I.axisLine.strokeWidth()/2);mt[dt]=Math.max(mt[dt],Ot)}f(this,"afterGetOffset")},_.prototype.getLinePath=function(p){var C=this.chart,k=this.opposite,F=this.offset,G=this.horiz,I=this.left+(k?this.width:0)+F,j=C.chartHeight-this.bottom-(k?this.height:0)+F;return k&&(p*=-1),C.renderer.crispLine([["M",G?this.left:I,G?j:this.top],["L",G?C.chartWidth-this.right:I,G?j:C.chartHeight-this.bottom]],p)},_.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}))},_.prototype.getTitlePosition=function(){var p=this.horiz,C=this.left,k=this.top,F=this.len,G=this.options.title,I=p?C:k,j=this.opposite,N=this.offset,Z=G.x,$=G.y,Y=this.axisTitle,et=this.chart.renderer.fontMetrics(G.style.fontSize,Y),rt=Y?Math.max(Y.getBBox(!1,0).height-et.h-1,0):0,it={low:I+(p?0:F),middle:I+F/2,high:I+(p?F:0)}[G.align],ht=(p?k+this.height:C)+(p?1:-1)*(j?-1:1)*(this.axisTitleMargin||0)+[-rt,rt,et.f,-rt][this.side],dt={x:p?it+Z:ht+(j?this.width:0)+N+Z,y:p?ht+$-(j?this.height:0)+N:it+$};return f(this,"afterGetTitlePosition",{titlePosition:dt}),dt},_.prototype.renderMinorTick=function(p,C){var k=this.minorTicks;k[p]||(k[p]=new q(this,p,"minor")),C&&k[p].isNew&&k[p].render(null,!0),k[p].render(null,!1,1)},_.prototype.renderTick=function(p,C,k){var F=this,G=F.isLinked,I=F.ticks;(!G||p>=F.min&&p<=F.max||F.grid&&F.grid.isColumn)&&(I[p]||(I[p]=new q(F,p)),k&&I[p].isNew&&I[p].render(C,!0,-1),I[p].render(C))},_.prototype.render=function(){var p,C,k=this,F=k.chart,G=k.logarithmic,I=F.renderer,j=k.options,N=k.isLinked,Z=k.tickPositions,$=k.axisTitle,Y=k.ticks,et=k.minorTicks,rt=k.alternateBands,it=j.stackLabels,ht=j.alternateGridColor,dt=k.tickmarkOffset,bt=k.axisLine,xt=k.showAxis,St=D(I.globalAnimation);if(k.labelEdge.length=0,k.overlap=!1,[Y,et,rt].forEach(function(at){n(at,function(pt){pt.isActive=!1})}),k.hasData()||N){var wt=k.chart.hasRendered&&k.old&&l(k.old.min);k.minorTickInterval&&!k.categories&&k.getMinorTickPositions().forEach(function(at){k.renderMinorTick(at,wt)}),Z.length&&(Z.forEach(function(at,pt){k.renderTick(at,pt,wt)}),dt&&(k.min===0||k.single)&&(Y[-1]||(Y[-1]=new q(k,-1,null,!0)),Y[-1].render(-1))),ht&&Z.forEach(function(at,pt){C=Z[pt+1]!==void 0?Z[pt+1]+dt:k.max-dt,pt%2==0&&at<k.max&&C<=k.max+(F.polar?-dt:dt)&&(rt[at]||(rt[at]=new J.PlotLineOrBand(k)),p=at+dt,rt[at].options={from:G?G.lin2log(p):p,to:G?G.lin2log(C):C,color:ht,className:"highcharts-alternate-grid"},rt[at].render(),rt[at].isActive=!0)}),k._addedPlotLB||(k._addedPlotLB=!0,(j.plotLines||[]).concat(j.plotBands||[]).forEach(function(at){k.addPlotBandOrLine(at)}))}if([Y,et,rt].forEach(function(at){var pt=[],vt=St.duration;n(at,function(Ct,Tt){Ct.isActive||(Ct.render(Tt,!1,0),Ct.isActive=!1,pt.push(Tt))}),y(function(){for(var Ct=pt.length;Ct--;)at[pt[Ct]]&&!at[pt[Ct]].isActive&&(at[pt[Ct]].destroy(),delete at[pt[Ct]])},at!==rt&&F.hasRendered&&vt?vt:0)}),bt&&(bt[bt.isPlaced?"animate":"attr"]({d:this.getLinePath(bt.strokeWidth())}),bt.isPlaced=!0,bt[xt?"show":"hide"](xt)),$&&xt){var mt=k.getTitlePosition();$[$.isNew?"attr":"animate"](mt),$.isNew=!1}it&&it.enabled&&k.stacking&&k.stacking.renderStackTotals(),k.old={len:k.len,max:k.max,min:k.min,transA:k.transA,userMax:k.userMax,userMin:k.userMin},k.isDirty=!1,f(this,"afterRender")},_.prototype.redraw=function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(p){p.render()})),this.series.forEach(function(p){p.isDirty=!0})},_.prototype.getKeepProps=function(){return this.keepProps||_.keepProps},_.prototype.destroy=function(p){var C=this,k=C.plotLinesAndBands,F=this.eventOptions;if(f(this,"destroy",{keepEvents:p}),p||a(C),[C.ticks,C.minorTicks,C.alternateBands].forEach(function(j){S(j)}),k)for(var G=k.length;G--;)k[G].destroy();for(var I in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(j){C[j]&&(C[j]=C[j].destroy())}),C.plotLinesAndBandsGroups)C.plotLinesAndBandsGroups[I]=C.plotLinesAndBandsGroups[I].destroy();n(C,function(j,N){C.getKeepProps().indexOf(N)===-1&&delete C[N]}),this.eventOptions=F},_.prototype.drawCrosshair=function(p,C){var k,F,G,I,j=this.crosshair,N=i(j&&j.snap,!0),Z=this.chart,$=this.cross;if(f(this,"drawCrosshair",{e:p,point:C}),p||(p=this.cross&&this.cross.e),j&&(v(C)||!N)!==!1){if(N?v(C)&&(F=i(this.coll!=="colorAxis"?C.crosshairPos:null,this.isXAxis?C.plotX:this.len-C.plotY)):F=p&&(this.horiz?p.chartX-this.pos:this.len-p.chartY+this.pos),v(F)&&(I={value:C&&(this.isXAxis?C.x:i(C.stackY,C.y)),translatedValue:F},Z.polar&&M(I,{isCrosshair:!0,chartX:p&&p.chartX,chartY:p&&p.chartY,point:C}),k=this.getPlotLinePath(I)||null),!v(k))return void this.hideCrosshair();G=this.categories&&!this.isRadial,$||(this.cross=$=Z.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(G?"category ":"thin ")+(j.className||"")).attr({zIndex:i(j.zIndex,2)}).add(),Z.styledMode||($.attr({stroke:j.color||(G?X.parse("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":i(j.width,1)}).css({"pointer-events":"none"}),j.dashStyle&&$.attr({dashstyle:j.dashStyle}))),$.show().attr({d:k}),G&&!j.width&&$.attr({"stroke-width":this.transA}),this.cross.e=p}else this.hideCrosshair();f(this,"afterDrawCrosshair",{e:p,point:C})},_.prototype.hideCrosshair=function(){this.cross&&this.cross.hide(),f(this,"afterHideCrosshair")},_.prototype.hasVerticalPanning=function(){var p=this.chart.options.chart.panning;return!!(p&&p.enabled&&/y/.test(p.type))},_.prototype.validatePositiveValue=function(p){return l(p)&&p>0},_.prototype.update=function(p,C){var k=this.chart;p=e(this.userOptions,p),this.destroy(!0),this.init(k,p),k.isDirtyBox=!0,i(C,!0)&&k.redraw()},_.prototype.remove=function(p){for(var C=this.chart,k=this.coll,F=this.series,G=F.length;G--;)F[G]&&F[G].remove(!1);P(C.axes,this),P(C[k],this),C[k].forEach(function(I,j){I.options.index=I.userOptions.index=j}),this.destroy(),C.isDirtyBox=!0,i(p,!0)&&C.redraw()},_.prototype.setTitle=function(p,C){this.update({title:p},C)},_.prototype.setCategories=function(p,C){this.update({categories:p},C)},_.defaultOptions=z.defaultXAxisOptions,_.keepProps=["extKey","hcEvents","names","series","userMax","userMin"],_}()}),st(B,"Core/Axis/DateTimeAxis.js",[B["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.getMagnitude,K=U.normalizeTickInterval,J=U.timeUnits;return function(q){var W=[];function D(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function O(T){var d=this;T.userOptions.type==="datetime"?d.dateTime||(d.dateTime=new w(d)):d.dateTime=void 0}q.compose=function(T){return W.indexOf(T)===-1&&(W.push(T),T.keepProps.push("dateTime"),T.prototype.getTimeTicks=D,X(T,"init",O)),T};var w=function(){function T(d){this.axis=d}return T.prototype.normalizeTimeTickInterval=function(d,u){var g,b=u||[["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]],v=b[b.length-1],S=J[v[0]],P=v[1];for(g=0;g<b.length&&(v=b[g],S=J[v[0]],P=v[1],!(b[g+1]&&d<=(S*P[P.length-1]+J[b[g+1][0]])/2));g++);return S===J.year&&d<5*S&&(P=[1,2,5]),{unitRange:S,count:K(d/S,P,v[0]==="year"?Math.max(V(d/S),1):1),unitName:v[0]}},T.prototype.getXDateFormat=function(d,u){var g=this.axis,b=g.chart.time;return g.closestPointRange?b.getDateFormat(g.closestPointRange,d,g.options.startOfWeek,u)||b.resolveDTLFormat(u.year).main:b.resolveDTLFormat(u.day).main},T}();q.Additions=w}(z||(z={})),z}),st(B,"Core/Axis/LogarithmicAxis.js",[B["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.normalizeTickInterval,K=U.pick;return function(J){var q=[];function W(w){var T=this,d=w.userOptions,u=T.logarithmic;d.type!=="logarithmic"?T.logarithmic=void 0:u||(u=T.logarithmic=new O(T))}function D(){var w=this,T=w.logarithmic;T&&(w.lin2val=function(d){return T.lin2log(d)},w.val2lin=function(d){return T.log2lin(d)})}J.compose=function(w){return q.indexOf(w)===-1&&(q.push(w),w.keepProps.push("logarithmic"),X(w,"init",W),X(w,"afterInit",D)),w};var O=function(){function w(T){this.axis=T}return w.prototype.getLogTickPositions=function(T,d,u,g){var b=this,v=b.axis,S=v.len,P=v.options,E=[];if(g||(b.minorAutoInterval=void 0),T>=.5)T=Math.round(T),E=v.getLinearTickPositions(T,d,u);else if(T>=.08){var M,f=void 0,x=void 0,l=void 0,h=void 0,e=void 0,r=void 0;for(M=T>.3?[1,2,4]:T>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],f=Math.floor(d);f<u+1&&!r;f++)for(l=M.length,x=0;x<l&&!r;x++)(h=b.log2lin(b.lin2log(f)*M[x]))>d&&(!g||e<=u)&&e!==void 0&&E.push(e),e>u&&(r=!0),e=h}else{var n=b.lin2log(d),i=b.lin2log(u),c=g?v.getMinorTickInterval():P.tickInterval,a=c==="auto"?null:c,s=P.tickPixelInterval/(g?5:1),y=g?S/v.tickPositions.length:S;T=K(a,b.minorAutoInterval,(i-n)*s/(y||1)),T=V(T),E=v.getLinearTickPositions(T,n,i).map(b.log2lin),g||(b.minorAutoInterval=T/5)}return g||(v.tickInterval=T),E},w.prototype.lin2log=function(T){return Math.pow(10,T)},w.prototype.log2lin=function(T){return Math.log(T)/Math.LN10},w}();J.Additions=O}(z||(z={})),z}),st(B,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[B["Core/Utilities.js"]],function(U){var z,X=U.erase,V=U.extend,K=U.isNumber;return function(J){var q,W=[];J.compose=function(O,w){return q||(q=O),W.indexOf(w)===-1&&(W.push(w),V(w.prototype,D.prototype)),w};var D=function(){function O(){}return O.prototype.getPlotBandPath=function(w,T,d){d===void 0&&(d=this.options);var u,g,b=this.getPlotLinePath({value:T,force:!0,acrossPanes:d.acrossPanes}),v=[],S=this.horiz,P=!K(this.min)||!K(this.max)||w<this.min&&T<this.min||w>this.max&&T>this.max,E=this.getPlotLinePath({value:w,force:!0,acrossPanes:d.acrossPanes}),M=1;if(E&&b)for(P&&(g=E.toString()===b.toString(),M=0),u=0;u<E.length;u+=2){var f=E[u],x=E[u+1],l=b[u],h=b[u+1];f[0]!=="M"&&f[0]!=="L"||x[0]!=="M"&&x[0]!=="L"||l[0]!=="M"&&l[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||(S&&l[1]===f[1]?(l[1]+=M,h[1]+=M):S||l[2]!==f[2]||(l[2]+=M,h[2]+=M),v.push(["M",f[1],f[2]],["L",x[1],x[2]],["L",h[1],h[2]],["L",l[1],l[2]],["Z"])),v.isFlat=g}else E=null;return v},O.prototype.addPlotBand=function(w){return this.addPlotBandOrLine(w,"plotBands")},O.prototype.addPlotLine=function(w){return this.addPlotBandOrLine(w,"plotLines")},O.prototype.addPlotBandOrLine=function(w,T){var d=this,u=this.userOptions,g=new q(this,w);if(this.visible&&(g=g.render()),g){if(this._addedPlotLB||(this._addedPlotLB=!0,(u.plotLines||[]).concat(u.plotBands||[]).forEach(function(v){d.addPlotBandOrLine(v)})),T){var b=u[T]||[];b.push(w),u[T]=b}this.plotLinesAndBands.push(g)}return g},O.prototype.removePlotBandOrLine=function(w){var T=this.plotLinesAndBands,d=this.options,u=this.userOptions;if(T){for(var g=T.length;g--;)T[g].id===w&&T[g].destroy();[d.plotLines||[],u.plotLines||[],d.plotBands||[],u.plotBands||[]].forEach(function(b){for(g=b.length;g--;)(b[g]||{}).id===w&&X(b,b[g])})}},O.prototype.removePlotBand=function(w){this.removePlotBandOrLine(w)},O.prototype.removePlotLine=function(w){this.removePlotBandOrLine(w)},O}()}(z||(z={})),z}),st(B,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[B["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],B["Core/Utilities.js"]],function(U,z){var X=z.arrayMax,V=z.arrayMin,K=z.defined,J=z.destroyObjectProperties,q=z.erase,W=z.fireEvent,D=z.merge,O=z.objectEach,w=z.pick;return function(){function T(d,u){this.axis=d,u&&(this.options=u,this.id=u.id)}return T.compose=function(d){return U.compose(T,d)},T.prototype.render=function(){W(this,"render");var d,u=this,g=u.axis,b=g.horiz,v=g.logarithmic,S=u.options,P=S.color,E=w(S.zIndex,0),M=S.events,f={},x=g.chart.renderer,l=S.label,h=u.label,e=S.to,r=S.from,n=S.value,i=u.svgElem,c=[],a=K(r)&&K(e),s=K(n),y=!i,A={class:"highcharts-plot-"+(a?"band ":"line ")+(S.className||"")},_=a?"bands":"lines";if(v&&(r=v.log2lin(r),e=v.log2lin(e),n=v.log2lin(n)),g.chart.styledMode||(s?(A.stroke=P||"#999999",A["stroke-width"]=w(S.width,1),S.dashStyle&&(A.dashstyle=S.dashStyle)):a&&(A.fill=P||"#e6ebf5",S.borderWidth&&(A.stroke=S.borderColor,A["stroke-width"]=S.borderWidth))),f.zIndex=E,_+="-"+E,(d=g.plotLinesAndBandsGroups[_])||(g.plotLinesAndBandsGroups[_]=d=x.g("plot-"+_).attr(f).add()),y&&(u.svgElem=i=x.path().attr(A).add(d)),s)c=g.getPlotLinePath({value:n,lineWidth:i.strokeWidth(),acrossPanes:S.acrossPanes});else{if(!a)return;c=g.getPlotBandPath(r,e,S)}return!u.eventsAdded&&M&&(O(M,function(p,C){i.on(C,function(k){M[C].apply(u,[k])})}),u.eventsAdded=!0),(y||!i.d)&&c&&c.length?i.attr({d:c}):i&&(c?(i.show(),i.animate({d:c})):i.d&&(i.hide(),h&&(u.label=h=h.destroy()))),l&&(K(l.text)||K(l.formatter))&&c&&c.length&&g.width>0&&g.height>0&&!c.isFlat?(l=D({align:b&&a&&"center",x:b?!a&&4:10,verticalAlign:!b&&a&&"middle",y:b?a?16:10:a?6:-4,rotation:b&&!a&&90},l),this.renderLabel(l,c,a,E)):h&&h.hide(),u},T.prototype.renderLabel=function(d,u,g,b){var v=this,S=v.axis,P=S.chart.renderer,E=v.label;E||(v.label=E=P.text(this.getLabelText(d),0,0,d.useHTML).attr({align:d.textAlign||d.align,rotation:d.rotation,class:"highcharts-plot-"+(g?"band":"line")+"-label "+(d.className||""),zIndex:b}).add(),S.chart.styledMode||E.css(D({textOverflow:"ellipsis"},d.style)));var M=u.xBounds||[u[0][1],u[1][1],g?u[2][1]:u[0][1]],f=u.yBounds||[u[0][2],u[1][2],g?u[2][2]:u[0][2]],x=V(M),l=V(f);if(E.align(d,!1,{x,y:l,width:X(M)-x,height:X(f)-l}),!E.alignValue||E.alignValue==="left"){var h=d.clip?S.width:S.chart.chartWidth;E.css({width:(E.rotation===90?S.height-(E.alignAttr.y-S.top):h-(E.alignAttr.x-S.left))+"px"})}E.show(!0)},T.prototype.getLabelText=function(d){return K(d.formatter)?d.formatter.call(this):d.text},T.prototype.destroy=function(){q(this.axis.plotLinesAndBands,this),delete this.axis,J(this)},T}()}),st(B,"Core/Tooltip.js",[B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=U.format,q=z.doc,W=X.distribute,D=K.clamp,O=K.css,w=K.discardElement,T=K.extend,d=K.fireEvent,u=K.isArray,g=K.isNumber,b=K.isString,v=K.merge,S=K.pick,P=K.splat,E=K.syncTimeout;return function(){function M(f,x){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=f,this.init(f,x)}return M.prototype.applyFilter=function(){var f=this.chart;f.renderer.definition({tagName:"filter",attributes:{id:"drop-shadow-"+f.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"}}]}]})},M.prototype.bodyFormatter=function(f){return f.map(function(x){var l=x.series.tooltipOptions;return(l[(x.point.formatPrefix||"point")+"Formatter"]||x.point.tooltipFormatter).call(x.point,l[(x.point.formatPrefix||"point")+"Format"]||"")})},M.prototype.cleanSplit=function(f){this.chart.series.forEach(function(x){var l=x&&x.tt;l&&(!l.isActive||f?x.tt=l.destroy():l.isActive=!1)})},M.prototype.defaultFormatter=function(f){var x,l=this.points||P(this);return(x=(x=[f.tooltipFooterHeaderFormatter(l[0])]).concat(f.bodyFormatter(l))).push(f.tooltipFooterHeaderFormatter(l[0],!0)),x},M.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(),w(this.container)),K.clearTimeout(this.hideTimer),K.clearTimeout(this.tooltipTimeout)},M.prototype.getAnchor=function(f,x){var l,h=this.chart,e=h.pointer,r=h.inverted,n=h.plotTop,i=h.plotLeft;if((f=P(f))[0].series&&f[0].series.yAxis&&!f[0].series.yAxis.options.reversedStacks&&(f=f.slice().reverse()),this.followPointer&&x)x.chartX===void 0&&(x=e.normalize(x)),l=[x.chartX-i,x.chartY-n];else if(f[0].tooltipPos)l=f[0].tooltipPos;else{var c=0,a=0;f.forEach(function(s){var y=s.pos(!0);y&&(c+=y[0],a+=y[1])}),c/=f.length,a/=f.length,this.shared&&f.length>1&&x&&(r?c=x.chartX:a=x.chartY),l=[c-i,a-n]}return l.map(Math.round)},M.prototype.getClassName=function(f,x,l){var h=this.options,e=f.series,r=e.options;return[h.className,"highcharts-label",l&&"highcharts-tooltip-header",x?"highcharts-tooltip-box":"highcharts-tooltip",!l&&"highcharts-color-"+S(f.colorIndex,e.colorIndex),r&&r.className].filter(b).join(" ")},M.prototype.getLabel=function(){var f,x=this,l=this.chart.styledMode,h=this.options,e=this.split&&this.allowShared,r=h.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none"),n=this.chart.renderer;if(x.label){var i=!x.label.hasClass("highcharts-label");(e&&!i||!e&&i)&&x.destroy()}if(!this.label){if(this.outside){var c=this.chart.options.chart.style,a=V.getRendererType();this.container=f=z.doc.createElement("div"),f.className="highcharts-tooltip-container",O(f,{position:"absolute",top:"1px",pointerEvents:r,zIndex:Math.max(this.options.style.zIndex||0,(c&&c.zIndex||0)+3)}),z.doc.body.appendChild(f),this.renderer=n=new a(f,0,0,c,void 0,void 0,n.styledMode)}if(e?this.label=n.g("tooltip"):(this.label=n.label("",0,0,h.shape,void 0,void 0,h.useHTML,void 0,"tooltip").attr({padding:h.padding,r:h.borderRadius}),l||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:r}).shadow(h.shadow)),l&&h.shadow&&(this.applyFilter(),this.label.attr({filter:"url(#drop-shadow-"+this.chart.index+")"})),x.outside&&!x.split){var s=this.label,y=s.xSetter,A=s.ySetter;s.xSetter=function(_){y.call(s,x.distance),f.style.left=_+"px"},s.ySetter=function(_){A.call(s,x.distance),f.style.top=_+"px"}}this.label.attr({zIndex:8}).add()}return this.label},M.prototype.getPosition=function(f,x,l){var h,e=this.chart,r=this.distance,n={},i=e.inverted&&l.h||0,c=this.outside,a=c?q.documentElement.clientWidth-2*r:e.chartWidth,s=c?Math.max(q.body.scrollHeight,q.documentElement.scrollHeight,q.body.offsetHeight,q.documentElement.offsetHeight,q.documentElement.clientHeight):e.chartHeight,y=e.pointer.getChartPosition(),A=function($){return $*y.scaleX},_=function($){return $*y.scaleY},p=function($){var Y=$==="x";return[$,Y?a:s,Y?f:x].concat(c?[Y?A(f):_(x),Y?y.left-r+A(l.plotX+e.plotLeft):y.top-r+_(l.plotY+e.plotTop),0,Y?a:s]:[Y?f:x,Y?l.plotX+e.plotLeft:l.plotY+e.plotTop,Y?e.plotLeft:e.plotTop,Y?e.plotLeft+e.plotWidth:e.plotTop+e.plotHeight])},C=p("y"),k=p("x"),F=!!l.negative;!e.polar&&e.hoverSeries&&e.hoverSeries.yAxis&&e.hoverSeries.yAxis.reversed&&(F=!F);var G=!this.followPointer&&S(l.ttBelow,!e.inverted===F),I=function($,Y,et,rt,it,ht,dt){var bt=c?$==="y"?_(r):A(r):r,xt=(et-rt)/2,St=rt<it-r,wt=it+r+rt<Y,mt=it-bt-et+xt,at=it+bt-xt;if(G&&wt)n[$]=at;else if(!G&&St)n[$]=mt;else if(St)n[$]=Math.min(dt-rt,mt-i<0?mt:mt-i);else{if(!wt)return!1;n[$]=Math.max(ht,at+i+et>Y?at:at+i)}},j=function($,Y,et,rt,it){var ht;return it<r||it>Y-r?ht=!1:n[$]=it<et/2?1:it>Y-rt/2?Y-rt-2:it-et/2,ht},N=function($){var Y=C;C=k,k=Y,h=$},Z=function(){I.apply(0,C)!==!1?j.apply(0,k)!==!1||h||(N(!0),Z()):h?n.x=n.y=0:(N(!0),Z())};return(e.inverted||this.len>1)&&N(),Z(),n},M.prototype.hide=function(f){var x=this;K.clearTimeout(this.hideTimer),f=S(f,this.options.hideDelay),this.isHidden||(this.hideTimer=E(function(){x.getLabel().fadeOut(f&&void 0),x.isHidden=!0},f))},M.prototype.init=function(f,x){this.chart=f,this.options=x,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=x.split&&!f.inverted&&!f.polar,this.shared=x.shared||this.split,this.outside=S(x.outside,!!(f.scrollablePixelsX||f.scrollablePixelsY))},M.prototype.shouldStickOnContact=function(f){return!(this.followPointer||!this.options.stickOnContact||f&&!this.chart.pointer.inClass(f.target,"highcharts-tooltip"))},M.prototype.move=function(f,x,l,h){var e=this,r=e.now,n=e.options.animation!==!1&&!e.isHidden&&(Math.abs(f-r.x)>1||Math.abs(x-r.y)>1),i=e.followPointer||e.len>1;T(r,{x:n?(2*r.x+f)/3:f,y:n?(r.y+x)/2:x,anchorX:i?void 0:n?(2*r.anchorX+l)/3:l,anchorY:i?void 0:n?(r.anchorY+h)/2:h}),e.getLabel().attr(r),e.drawTracker(),n&&(K.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){e&&e.move(f,x,l,h)},32))},M.prototype.refresh=function(f,x){var l=this,h=this.chart,e=l.options,r=h.pointer,n=P(f),i=n[0],c=[],a=e.formatter||l.defaultFormatter,s=l.shared,y=h.styledMode,A={};if(e.enabled&&i.series){K.clearTimeout(this.hideTimer),l.allowShared=!(!u(f)&&f.series&&f.series.noSharedTooltip),l.followPointer=!l.split&&i.series.tooltipOptions.followPointer;var _=l.getAnchor(f,x),p=_[0],C=_[1];s&&l.allowShared?(r.applyInactiveState(n),n.forEach(function(N){N.setState("hover"),c.push(N.getLabelConfig())}),(A={x:i.category,y:i.y}).points=c):A=i.getLabelConfig(),this.len=c.length;var k=a.call(A,l),F=i.series;if(this.distance=S(F.tooltipOptions.distance,16),k===!1)this.hide();else{if(l.split&&l.allowShared)this.renderSplit(k,n);else{var G=p,I=C;if(x&&r.isDirectTouch&&(G=x.chartX-h.plotLeft,I=x.chartY-h.plotTop),!h.polar&&F.options.clip!==!1&&!n.some(function(N){return r.isDirectTouch||N.series.shouldShowTooltip(G,I)}))return void l.hide();var j=l.getLabel();e.style.width&&!y||j.css({width:h.spacingBox.width+"px"}),j.attr({text:k&&k.join?k.join(""):k}),j.addClass(l.getClassName(i),!0),y||j.attr({stroke:e.borderColor||i.color||F.color||"#666666"}),l.updatePosition({plotX:p,plotY:C,negative:i.negative,ttBelow:i.ttBelow,h:_[2]||0})}l.isHidden&&l.label&&l.label.attr({opacity:1}).show(),l.isHidden=!1}d(this,"refresh")}},M.prototype.renderSplit=function(f,x){var l=this,h=l.chart,e=l.chart,r=e.chartWidth,n=e.chartHeight,i=e.plotHeight,c=e.plotLeft,a=e.plotTop,s=e.pointer,y=e.scrollablePixelsY,A=y===void 0?0:y,_=e.scrollablePixelsX,p=e.scrollingContainer,C=p===void 0?{scrollLeft:0,scrollTop:0}:p,k=C.scrollLeft,F=C.scrollTop,G=e.styledMode,I=l.distance,j=l.options,N=l.options.positioner,Z=l.outside&&typeof _!="number"?q.documentElement.getBoundingClientRect():{left:k,right:k+r,top:F,bottom:F+n},$=l.getLabel(),Y=this.renderer||h.renderer,et=!!(h.xAxis[0]&&h.xAxis[0].opposite),rt=s.getChartPosition(),it=rt.left,ht=rt.top,dt=a+F,bt=0,xt=i-A;function St(_t,It,zt,Rt,Ut){var Xt,Ht;return Ut===void 0&&(Ut=!0),zt?(Xt=et?0:xt,Ht=D(_t-Rt/2,Z.left,Z.right-Rt-(l.outside?it:0))):(Xt=It-dt,Ht=D(Ht=Ut?_t-Rt-I:_t+I,Ut?Ht:Z.left,Z.right)),{x:Ht,y:Xt}}b(f)&&(f=[!1,f]);var wt=f.slice(0,x.length+1).reduce(function(_t,It,zt){if(It!==!1&&It!==""){var Rt=x[zt-1]||{isHeader:!0,plotX:x[0].plotX,plotY:i,series:{}},Ut=Rt.isHeader,Xt=Ut?l:Rt.series,Ht=Xt.tt=function(ce,Me,ii){var Gt=ce,ee=Me.isHeader,he=Me.series;if(!Gt){var pe={padding:j.padding,r:j.borderRadius};G||(pe.fill=j.backgroundColor,pe["stroke-width"]=j.borderWidth),Gt=Y.label("",0,0,j[ee?"headerShape":"shape"],void 0,void 0,j.useHTML).addClass(l.getClassName(Me,!0,ee)).attr(pe).add($)}return Gt.isActive=!0,Gt.attr({text:ii}),G||Gt.css(j.style).shadow(j.shadow).attr({stroke:j.borderColor||Me.color||he.color||"#333333"}),Gt}(Xt.tt,Rt,It.toString()),qt=Ht.getBBox(),Kt=qt.width+Ht.strokeWidth();Ut&&(bt=qt.height,xt+=bt,et&&(dt-=bt));var fe=function(ce){var Me,ii,Gt=ce.isHeader,ee=ce.plotX,he=ee===void 0?0:ee,pe=ce.plotY,Ve=pe===void 0?0:pe,Ue=ce.series;if(Gt)Me=c+he,ii=a+i/2;else{var We=Ue.xAxis,Te=Ue.yAxis;Me=We.pos+D(he,-I,We.len+I),Ue.shouldShowTooltip(0,Te.pos-a+Ve,{ignoreX:!0})&&(ii=Te.pos+Ve)}return{anchorX:Me=D(Me,Z.left-I,Z.right+I),anchorY:ii}}(Rt),Qt=fe.anchorX,oe=fe.anchorY;if(typeof oe=="number"){var xe=qt.height+1,Qe=N?N.call(l,Kt,xe,Rt):St(Qt,oe,Ut,Kt);_t.push({align:N?0:void 0,anchorX:Qt,anchorY:oe,boxWidth:Kt,point:Rt,rank:S(Qe.rank,Ut?1:0),size:xe,target:Qe.y,tt:Ht,x:Qe.x})}else Ht.isActive=!1}return _t},[]);!N&&wt.some(function(_t){var It=(l.outside?it:0)+_t.anchorX;return It<Z.left&&It+_t.boxWidth<Z.right||It<it-Z.left+_t.boxWidth&&Z.right-It>It})&&(wt=wt.map(function(_t){var It=St(_t.anchorX,_t.anchorY,_t.point.isHeader,_t.boxWidth,!1),zt=It.x,Rt=It.y;return T(_t,{target:Rt,x:zt})})),l.cleanSplit(),W(wt,xt);var mt={left:it,right:it};wt.forEach(function(_t){var It=_t.x,zt=_t.boxWidth,Rt=_t.isHeader;Rt||(l.outside&&it+It<mt.left&&(mt.left=it+It),!Rt&&l.outside&&mt.left+zt>mt.right&&(mt.right=it+It))}),wt.forEach(function(_t){var It=_t.x,zt=_t.anchorX,Rt=_t.anchorY,Ut=_t.pos,Xt=_t.point.isHeader,Ht={visibility:Ut===void 0?"hidden":"inherit",x:It,y:(Ut||0)+dt,anchorX:zt,anchorY:Rt};if(l.outside&&It<zt){var qt=it-mt.left;qt>0&&(Xt||(Ht.x=It+qt,Ht.anchorX=zt+qt),Xt&&(Ht.x=(mt.right-mt.left)/2,Ht.anchorX=zt+qt))}_t.tt.attr(Ht)});var at=l.container,pt=l.outside,vt=l.renderer;if(pt&&at&&vt){var Ct=$.getBBox(),Tt=Ct.width,At=Ct.height,Lt=Ct.x,Ot=Ct.y;vt.setSize(Tt+Lt,At+Ot,!1),at.style.left=mt.left+"px",at.style.top=ht+"px"}},M.prototype.drawTracker=function(){var f=this;if(this.shouldStickOnContact()){var x=f.chart,l=f.label,h=f.shared?x.hoverPoints:x.hoverPoint;if(l&&h){var e={x:0,y:0,width:0,height:0},r=this.getAnchor(h),n=l.getBBox();r[0]+=x.plotLeft-l.translateX,r[1]+=x.plotTop-l.translateY,e.x=Math.min(0,r[0]),e.y=Math.min(0,r[1]),e.width=r[0]<0?Math.max(Math.abs(r[0]),n.width-r[0]):Math.max(Math.abs(r[0]),n.width),e.height=r[1]<0?Math.max(Math.abs(r[1]),n.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),n.height),f.tracker?f.tracker.attr(e):(f.tracker=l.renderer.rect(e).addClass("highcharts-tracker").add(l),x.styledMode||f.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else f.tracker&&f.tracker.destroy()},M.prototype.styledModeFormat=function(f){return f.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}"')},M.prototype.tooltipFooterHeaderFormatter=function(f,x){var l=f.series,h=l.tooltipOptions,e=l.xAxis,r=e&&e.dateTime,n={isFooter:x,labelConfig:f},i=h.xDateFormat,c=h[x?"footerFormat":"headerFormat"];return d(this,"headerFormatter",n,function(a){r&&!i&&g(f.key)&&(i=r.getXDateFormat(f.key,h.dateTimeLabelFormats)),r&&i&&(f.point&&f.point.tooltipDateKeys||["key"]).forEach(function(s){c=c.replace("{point."+s+"}","{point."+s+":"+i+"}")}),l.chart.styledMode&&(c=this.styledModeFormat(c)),a.text=J(c,{point:f,series:l},this.chart)}),n.text},M.prototype.update=function(f){this.destroy(),v(!0,this.chart.options.tooltip.userOptions,f),this.init(this.chart,v(!0,this.options,f))},M.prototype.updatePosition=function(f){var x,l=this,h=l.chart,e=l.distance,r=l.options,n=h.pointer,i=this.getLabel(),c=n.getChartPosition(),a=c.left,s=c.top,y=c.scaleX,A=c.scaleY,_=(r.positioner||this.getPosition).call(this,i.width,i.height,f),p=(f.plotX||0)+h.plotLeft,C=(f.plotY||0)+h.plotTop;this.outside&&(r.positioner&&(_.x+=a-e,_.y+=s-e),x=r.borderWidth+2*e,this.renderer.setSize(i.width+x,i.height+x,!1),y===1&&A===1||(O(this.container,{transform:"scale(".concat(y,", ").concat(A,")")}),p*=y,C*=A),p+=a-_.x,C+=s-_.y),this.move(Math.round(_.x),Math.round(_.y||0),p,C)},M}()}),st(B,"Core/Series/Point.js",[B["Core/Renderer/HTML/AST.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=z.animObject,q=X.defaultOptions,W=V.format,D=K.addEvent,O=K.defined,w=K.erase,T=K.extend,d=K.fireEvent,u=K.getNestedProperty,g=K.isArray,b=K.isFunction,v=K.isNumber,S=K.isObject,P=K.merge,E=K.objectEach,M=K.pick,f=K.syncTimeout,x=K.removeEvent,l=K.uniqueKey;return function(){function h(){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 h.prototype.animateBeforeDestroy=function(){var e=this,r={x:e.startXPos,opacity:0},n=e.getGraphicalProps();n.singular.forEach(function(i){var c=i==="dataLabel";e[i]=e[i].animate(c?{x:e[i].startXPos,y:e[i].startYPos,opacity:0}:r)}),n.plural.forEach(function(i){e[i].forEach(function(c){c.element&&c.animate(T({x:e.startXPos},c.startYPos?{x:c.startXPos,y:c.startYPos}:{}))})})},h.prototype.applyOptions=function(e,r){var n=this,i=n.series,c=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),T(n,e),n.options=n.options?T(n.options,e):e,e.group&&delete n.group,e.dataLabels&&delete n.dataLabels,c&&(n.y=h.prototype.getNestedProperty.call(n,c)),n.isNull=this.isValid&&!this.isValid(),n.formatPrefix=n.isNull?"null":"point",n.selected&&(n.state="select"),"name"in n&&r===void 0&&i.xAxis&&i.xAxis.hasNames&&(n.x=i.xAxis.nameToX(n)),n.x===void 0&&i?n.x=r===void 0?i.autoIncrement():r:v(e.x)&&i.options.relativeXValue&&(n.x=i.autoIncrement(e.x)),n},h.prototype.destroy=function(){var e,r=this,n=r.series,i=n.chart,c=n.options.dataSorting,a=i.hoverPoints,s=r.series.chart.renderer.globalAnimation,y=J(s);function A(){for(e in(r.graphic||r.graphics||r.dataLabel||r.dataLabels)&&(x(r),r.destroyElements()),r)r[e]=null}r.legendItem&&i.legend.destroyItem(r),a&&(r.setState(),w(a,r),a.length||(i.hoverPoints=null)),r===i.hoverPoint&&r.onMouseOut(),c&&c.enabled?(this.animateBeforeDestroy(),f(A,y.duration)):A(),i.pointCount--},h.prototype.destroyElements=function(e){var r=this,n=r.getGraphicalProps(e);n.singular.forEach(function(i){r[i]=r[i].destroy()}),n.plural.forEach(function(i){r[i].forEach(function(c){c&&c.element&&c.destroy()}),delete r[i]})},h.prototype.firePointEvent=function(e,r,n){var i=this,c=this.series.options;(c.point.events[e]||i.options&&i.options.events&&i.options.events[e])&&i.importEvents(),e==="click"&&c.allowPointSelect&&(n=function(a){i.select&&i.select(null,a.ctrlKey||a.metaKey||a.shiftKey)}),d(i,e,r,n)},h.prototype.getClassName=function(){var e=this;return"highcharts-point"+(e.selected?" highcharts-point-select":"")+(e.negative?" highcharts-negative":"")+(e.isNull?" highcharts-null-point":"")+(e.colorIndex!==void 0?" highcharts-color-"+e.colorIndex:"")+(e.options.className?" "+e.options.className:"")+(e.zone&&e.zone.className?" "+e.zone.className.replace("highcharts-negative",""):"")},h.prototype.getGraphicalProps=function(e){var r,n,i=this,c=[],a={singular:[],plural:[]};for((e=e||{graphic:1,dataLabel:1}).graphic&&c.push("graphic","shadowGroup"),e.dataLabel&&c.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),n=c.length;n--;)r=c[n],i[r]&&a.singular.push(r);return["graphic","dataLabel","connector"].forEach(function(s){var y=s+"s";e[s]&&i[y]&&a.plural.push(y)}),a},h.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}},h.prototype.getNestedProperty=function(e){if(e)return e.indexOf("custom.")===0?u(e,this.options):this[e]},h.prototype.getZone=function(){var e,r=this.series,n=r.zones,i=r.zoneAxis||"y",c=0;for(e=n[c];this[i]>=e.value;)e=n[++c];return this.nonZonedColor||(this.nonZonedColor=this.color),e&&e.color&&!this.options.color?this.color=e.color:this.color=this.nonZonedColor,e},h.prototype.hasNewShapeType=function(){var e=this;return(e.graphic&&(e.graphic.symbolName||e.graphic.element.nodeName))!==this.shapeType},h.prototype.init=function(e,r,n){return this.series=e,this.applyOptions(r,n),this.id=O(this.id)?this.id:l(),this.resolveColor(),e.chart.pointCount++,d(this,"afterInit"),this},h.prototype.isValid=function(){return this.x!==null&&v(this.y)},h.prototype.optionsToObject=function(e){var r,n=this.series,i=n.options.keys,c=i||n.pointArrayMap||["y"],a=c.length,s={},y=0,A=0;if(v(e)||e===null)s[c[0]]=e;else if(g(e))for(!i&&e.length>a&&((r=typeof e[0])=="string"?s.name=e[0]:r==="number"&&(s.x=e[0]),y++);A<a;)i&&e[y]===void 0||(c[A].indexOf(".")>0?h.prototype.setNestedProperty(s,e[y],c[A]):s[c[A]]=e[y]),y++,A++;else typeof e=="object"&&(s=e,e.dataLabels&&(n._hasPointLabels=!0),e.marker&&(n._hasPointMarkers=!0));return s},h.prototype.pos=function(e,r){r===void 0&&(r=this.plotY);var n=this.plotX,i=this.series,c=i.chart,a=i.xAxis,s=i.yAxis,y=0,A=0;if(v(n)&&v(r))return e&&(y=a?a.pos:c.plotLeft,A=s?s.pos:c.plotTop),c.inverted&&a&&s?[s.len-r+A,a.len-n+y]:[n+y,r+A]},h.prototype.resolveColor=function(){var e,r,n,i=this.series,c=i.chart.options.chart,a=i.chart.styledMode,s=c.colorCount;delete this.nonZonedColor,i.options.colorByPoint?(a||(e=(r=i.options.colors||i.chart.options.colors)[i.colorCounter],s=r.length),n=i.colorCounter,i.colorCounter++,i.colorCounter===s&&(i.colorCounter=0)):(a||(e=i.color),n=i.colorIndex),this.colorIndex=M(this.options.colorIndex,n),this.color=M(this.options.color,e)},h.prototype.setNestedProperty=function(e,r,n){return n.split(".").reduce(function(i,c,a,s){var y=s.length-1===a;return i[c]=y?r:S(i[c],!0)?i[c]:{},i[c]},e),e},h.prototype.shouldDraw=function(){return!this.isNull},h.prototype.tooltipFormatter=function(e){var r=this.series,n=r.tooltipOptions,i=M(n.valueDecimals,""),c=n.valuePrefix||"",a=n.valueSuffix||"";return r.chart.styledMode&&(e=r.chart.tooltip.styledModeFormat(e)),(r.pointArrayMap||["y"]).forEach(function(s){s="{point."+s,(c||a)&&(e=e.replace(RegExp(s+"}","g"),c+s+"}"+a)),e=e.replace(RegExp(s+"}","g"),s+":,."+i+"f}")}),W(e,{point:this,series:this.series},r.chart)},h.prototype.update=function(e,r,n,i){var c,a=this,s=a.series,y=a.graphic,A=s.chart,_=s.options;function p(){a.applyOptions(e);var C=y&&a.hasMockGraphic,k=a.y===null?!C:C;y&&k&&(a.graphic=y.destroy(),delete a.hasMockGraphic),S(e,!0)&&(y&&y.element&&e&&e.marker&&e.marker.symbol!==void 0&&(a.graphic=y.destroy()),e&&e.dataLabels&&a.dataLabel&&(a.dataLabel=a.dataLabel.destroy()),a.connector&&(a.connector=a.connector.destroy())),c=a.index,s.updateParallelArrays(a,c),_.data[c]=S(_.data[c],!0)||S(e,!0)?a.options:M(e,_.data[c]),s.isDirty=s.isDirtyData=!0,!s.fixedBox&&s.hasCartesianSeries&&(A.isDirtyBox=!0),_.legendType==="point"&&(A.isDirtyLegend=!0),r&&A.redraw(n)}r=M(r,!0),i===!1?p():a.firePointEvent("update",{options:e},p)},h.prototype.remove=function(e,r){this.series.removePoint(this.series.data.indexOf(this),e,r)},h.prototype.select=function(e,r){var n=this,i=n.series,c=i.chart;e=M(e,!n.selected),this.selectedStaging=e,n.firePointEvent(e?"select":"unselect",{accumulate:r},function(){n.selected=n.options.selected=e,i.options.data[i.data.indexOf(n)]=n.options,n.setState(e&&"select"),r||c.getSelectedPoints().forEach(function(a){var s=a.series;a.selected&&a!==n&&(a.selected=a.options.selected=!1,s.options.data[s.data.indexOf(a)]=a.options,a.setState(c.hoverPoints&&s.options.inactiveOtherPoints?"inactive":""),a.firePointEvent("unselect"))})}),delete this.selectedStaging},h.prototype.onMouseOver=function(e){var r=this,n=r.series.chart,i=n.pointer;e=e?i.normalize(e):i.getChartCoordinatesFromPoint(r,n.inverted),i.runPointActions(e,r)},h.prototype.onMouseOut=function(){var e=this,r=e.series.chart;e.firePointEvent("mouseOut"),e.series.options.inactiveOtherPoints||(r.hoverPoints||[]).forEach(function(n){n.setState()}),r.hoverPoints=r.hoverPoint=null},h.prototype.importEvents=function(){if(!this.hasImportedEvents){var e=this,r=P(e.series.options.point,e.options).events;e.events=r,E(r,function(n,i){b(n)&&D(e,i,n)}),this.hasImportedEvents=!0}},h.prototype.setState=function(e,r){var n,i,c,a,s=this,y=s.series,A=s.state,_=y.options.states[e||"normal"]||{},p=q.plotOptions[y.type].marker&&y.options.marker,C=p&&p.enabled===!1,k=p&&p.states&&p.states[e||"normal"]||{},F=k.enabled===!1,G=s.marker||{},I=y.chart,j=p&&y.markerAttribs,N=y.halo,Z=y.stateMarkerGraphic;if(!((e=e||"")===s.state&&!r||s.selected&&e!=="select"||_.enabled===!1||e&&(F||C&&k.enabled===!1)||e&&G.states&&G.states[e]&&G.states[e].enabled===!1)){if(s.state=e,j&&(n=y.markerAttribs(s,e)),s.graphic&&!s.hasMockGraphic){if(A&&s.graphic.removeClass("highcharts-point-"+A),e&&s.graphic.addClass("highcharts-point-"+e),!I.styledMode){i=y.pointAttribs(s,e),c=M(I.options.chart.animation,_.animation);var $=i.opacity;y.options.inactiveOtherPoints&&v($)&&((s.dataLabels||[]).forEach(function(it){it&&!it.hasClass("highcharts-data-label-hidden")&&it.animate({opacity:$},c)}),s.connector&&s.connector.animate({opacity:$},c)),s.graphic.animate(i,c)}n&&s.graphic.animate(n,M(I.options.chart.animation,k.animation,p.animation)),Z&&Z.hide()}else e&&k&&(a=G.symbol||y.symbol,Z&&Z.currentSymbol!==a&&(Z=Z.destroy()),n&&(Z?Z[r?"animate":"attr"]({x:n.x,y:n.y}):a&&(y.stateMarkerGraphic=Z=I.renderer.symbol(a,n.x,n.y,n.width,n.height).add(y.markerGroup),Z.currentSymbol=a)),!I.styledMode&&Z&&s.state!=="inactive"&&Z.attr(y.pointAttribs(s,e))),Z&&(Z[e&&s.isInside?"show":"hide"](),Z.element.point=s,Z.addClass(s.getClassName(),!0));var Y=_.halo,et=s.graphic||Z,rt=et&&et.visibility||"inherit";Y&&Y.size&&et&&rt!=="hidden"&&!s.isCluster?(N||(y.halo=N=I.renderer.path().add(et.parentGroup)),N.show()[r?"animate":"attr"]({d:s.haloPath(Y.size)}),N.attr({class:"highcharts-halo highcharts-color-"+M(s.colorIndex,y.colorIndex)+(s.className?" "+s.className:""),visibility:rt,zIndex:-1}),N.point=s,I.styledMode||N.attr(T({fill:s.color||y.color,"fill-opacity":Y.opacity},U.filterUserAttributes(Y.attributes||{})))):N&&N.point&&N.point.haloPath&&N.animate({d:N.point.haloPath(0)},null,N.hide),d(s,"afterSetState",{state:e})}},h.prototype.haloPath=function(e){var r=this.pos();return r?this.series.chart.renderer.symbols.circle(Math.floor(r[0])-e,r[1]-e,2*e,2*e):[]},h}()}),st(B,"Core/Pointer.js",[B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Tooltip.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=U.parse,J=z.charts,q=z.noop,W=V.addEvent,D=V.attr,O=V.css,w=V.defined,T=V.extend,d=V.find,u=V.fireEvent,g=V.isNumber,b=V.isObject,v=V.objectEach,S=V.offset,P=V.pick,E=V.splat;return function(){function M(f,x){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=f,this.hasDragged=!1,this.options=x,this.init(f,x)}return M.prototype.applyInactiveState=function(f){var x,l=[];(f||[]).forEach(function(h){x=h.series,l.push(x),x.linkedParent&&l.push(x.linkedParent),x.linkedSeries&&(l=l.concat(x.linkedSeries)),x.navigatorSeries&&l.push(x.navigatorSeries)}),this.chart.series.forEach(function(h){l.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})},M.prototype.destroy=function(){var f=this;this.eventsToUnbind.forEach(function(x){return x()}),this.eventsToUnbind=[],z.chartCount||(M.unbindDocumentMouseUp&&(M.unbindDocumentMouseUp=M.unbindDocumentMouseUp()),M.unbindDocumentTouchEnd&&(M.unbindDocumentTouchEnd=M.unbindDocumentTouchEnd())),clearInterval(f.tooltipTimeout),v(f,function(x,l){f[l]=void 0})},M.prototype.getSelectionMarkerAttrs=function(f,x){var l=this,h={args:{chartX:f,chartY:x},attrs:{},shapeType:"rect"};return u(this,"getSelectionMarkerAttrs",h,function(e){var r,n=l,i=n.chart,c=n.mouseDownX,a=c===void 0?0:c,s=n.mouseDownY,y=s===void 0?0:s,A=n.zoomHor,_=n.zoomVert,p=e.attrs;p.x=i.plotLeft,p.y=i.plotTop,p.width=A?1:i.plotWidth,p.height=_?1:i.plotHeight,A&&(r=f-a,p.width=Math.abs(r),p.x=(r>0?0:r)+a),_&&(r=x-y,p.height=Math.abs(r),p.y=(r>0?0:r)+y)}),h},M.prototype.drag=function(f){var x,l=this.chart,h=l.options.chart,e=l.plotLeft,r=l.plotTop,n=l.plotWidth,i=l.plotHeight,c=this.mouseDownX||0,a=this.mouseDownY||0,s=b(h.panning)?h.panning&&h.panning.enabled:h.panning,y=h.panKey&&f[h.panKey+"Key"],A=f.chartX,_=f.chartY,p=this.selectionMarker;if((!p||!p.touch)&&(A<e?A=e:A>e+n&&(A=e+n),_<r?_=r:_>r+i&&(_=r+i),this.hasDragged=Math.sqrt(Math.pow(c-A,2)+Math.pow(a-_,2)),this.hasDragged>10)){x=l.isInsidePlot(c-e,a-r,{visiblePlotOnly:!0});var C=this.getSelectionMarkerAttrs(A,_),k=C.shapeType,F=C.attrs;(l.hasCartesianSeries||l.mapView)&&(this.zoomX||this.zoomY)&&x&&!y&&(p||(this.selectionMarker=p=l.renderer[k](),p.attr({class:"highcharts-selection-marker",zIndex:7}).add(),l.styledMode||p.attr({fill:h.selectionMarkerFill||K("#335cad").setOpacity(.25).get()}))),p&&p.attr(F),x&&!p&&s&&l.pan(f,h.panning)}},M.prototype.dragStart=function(f){var x=this.chart;x.mouseIsDown=f.type,x.cancelClick=!1,x.mouseDownX=this.mouseDownX=f.chartX,x.mouseDownY=this.mouseDownY=f.chartY},M.prototype.getSelectionBox=function(f){var x={args:{marker:f},result:{}};return u(this,"getSelectionBox",x,function(l){l.result={x:f.attr?+f.attr("x"):f.x,y:f.attr?+f.attr("y"):f.y,width:f.attr?f.attr("width"):f.width,height:f.attr?f.attr("height"):f.height}}),x.result},M.prototype.drop=function(f){var x=this,l=this.chart,h=this.hasPinched;if(this.selectionMarker){var e=this.getSelectionBox(this.selectionMarker),r=e.x,n=e.y,i=e.width,c=e.height,a={originalEvent:f,xAxis:[],yAxis:[],x:r,y:n,width:i,height:c},s=!!l.mapView;(this.hasDragged||h)&&(l.axes.forEach(function(y){if(y.zoomEnabled&&w(y.min)&&(h||x[{xAxis:"zoomX",yAxis:"zoomY"}[y.coll]])&&g(r)&&g(n)&&g(i)&&g(c)){var A=y.horiz,_=f.type==="touchend"?y.minPixelPadding:0,p=y.toValue((A?r:n)+_),C=y.toValue((A?r+i:n+c)-_);a[y.coll].push({axis:y,min:Math.min(p,C),max:Math.max(p,C)}),s=!0}}),s&&u(l,"selection",a,function(y){l.zoom(T(y,h?{animation:!1}:null))})),g(l.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}l&&g(l.index)&&(O(l.container,{cursor:l._cursor}),l.cancelClick=this.hasDragged>10,l.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},M.prototype.findNearestKDPoint=function(f,x,l){var h;return f.forEach(function(e){var r,n,i,c,a,s=!(e.noSharedTooltip&&x)&&e.options.findNearestPointBy.indexOf("y")<0,y=e.searchPoint(l,s);b(y,!0)&&y.series&&(!b(h,!0)||(n=y,i=(r=h).distX-n.distX,c=r.dist-n.dist,a=(n.series.group&&n.series.group.zIndex)-(r.series.group&&r.series.group.zIndex),(i!==0&&x?i:c!==0?c:a!==0?a:r.series.index>n.series.index?-1:1)>0))&&(h=y)}),h},M.prototype.getChartCoordinatesFromPoint=function(f,x){var l=f.series,h=l.xAxis,e=l.yAxis,r=f.shapeArgs;if(h&&e){var n=P(f.clientX,f.plotX),i=f.plotY||0;return f.isNode&&r&&g(r.x)&&g(r.y)&&(n=r.x,i=r.y),x?{chartX:e.len+e.pos-i,chartY:h.len+h.pos-n}:{chartX:n+h.pos,chartY:i+e.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}},M.prototype.getChartPosition=function(){if(this.chartPosition)return this.chartPosition;var f=this.chart.container,x=S(f);this.chartPosition={left:x.left,top:x.top,scaleX:1,scaleY:1};var l=f.offsetWidth,h=f.offsetHeight;return l>2&&h>2&&(this.chartPosition.scaleX=x.width/l,this.chartPosition.scaleY=x.height/h),this.chartPosition},M.prototype.getCoordinates=function(f){var x={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(l){x[l.isXAxis?"xAxis":"yAxis"].push({axis:l,value:l.toValue(f[l.horiz?"chartX":"chartY"])})}),x},M.prototype.getHoverData=function(f,x,l,h,e,r){var n,i=[],c=!(!h||!f),a=function(_){return _.visible&&!(!e&&_.directTouch)&&P(_.options.enableMouseTracking,!0)},s=x,y={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:e};u(this,"beforeGetHoverData",y),n=s&&!s.stickyTracking?[s]:l.filter(function(_){return _.stickyTracking&&(y.filter||a)(_)});var A=c||!r?f:this.findNearestKDPoint(n,e,r);return s=A&&A.series,A&&(e&&!s.noSharedTooltip?(n=l.filter(function(_){return y.filter?y.filter(_):a(_)&&!_.noSharedTooltip})).forEach(function(_){var p=d(_.points,function(C){return C.x===A.x&&!C.isNull});b(p)&&(_.boosted&&_.boost&&(p=_.boost.getPoint(p)),i.push(p))}):i.push(A)),u(this,"afterGetHoverData",y={hoverPoint:A}),{hoverPoint:y.hoverPoint,hoverSeries:s,hoverPoints:i}},M.prototype.getPointFromEvent=function(f){for(var x,l=f.target;l&&!x;)x=l.point,l=l.parentNode;return x},M.prototype.onTrackerMouseOut=function(f){var x=this.chart,l=f.relatedTarget||f.toElement,h=x.hoverSeries;this.isDirectTouch=!1,!h||!l||h.stickyTracking||this.inClass(l,"highcharts-tooltip")||this.inClass(l,"highcharts-series-"+h.index)&&this.inClass(l,"highcharts-tracker")||h.onMouseOut()},M.prototype.inClass=function(f,x){for(var l,h=f;h;){if(l=D(h,"class")){if(l.indexOf(x)!==-1)return!0;if(l.indexOf("highcharts-container")!==-1)return!1}h=h.parentElement}},M.prototype.init=function(f,x){this.options=x,this.chart=f,this.runChartClick=!!(x.chart.events&&x.chart.events.click),this.pinchDown=[],this.lastValidTouch={},X&&(f.tooltip=new X(f,x.tooltip)),this.setDOMEvents()},M.prototype.normalize=function(f,x){var l=f.touches,h=l?l.length?l.item(0):P(l.changedTouches,f.changedTouches)[0]:f;x||(x=this.getChartPosition());var e=h.pageX-x.left,r=h.pageY-x.top;return e/=x.scaleX,r/=x.scaleY,T(f,{chartX:Math.round(e),chartY:Math.round(r)})},M.prototype.onContainerClick=function(f){var x=this.chart,l=x.hoverPoint,h=this.normalize(f),e=x.plotLeft,r=x.plotTop;x.cancelClick||(l&&this.inClass(h.target,"highcharts-tracker")?(u(l.series,"click",T(h,{point:l})),x.hoverPoint&&l.firePointEvent("click",h)):(T(h,this.getCoordinates(h)),x.isInsidePlot(h.chartX-e,h.chartY-r,{visiblePlotOnly:!0})&&u(x,"click",h)))},M.prototype.onContainerMouseDown=function(f){var x=(1&(f.buttons||f.button))==1;f=this.normalize(f),z.isFirefox&&f.button!==0&&this.onContainerMouseMove(f),(f.button===void 0||x)&&(this.zoomOption(f),x&&f.preventDefault&&f.preventDefault(),this.dragStart(f))},M.prototype.onContainerMouseLeave=function(f){var x=J[P(M.hoverChartIndex,-1)],l=this.chart.tooltip;f=this.normalize(f),x&&(f.relatedTarget||f.toElement)&&(x.pointer.reset(),x.pointer.chartPosition=void 0),l&&!l.isHidden&&this.reset()},M.prototype.onContainerMouseEnter=function(f){delete this.chartPosition},M.prototype.onContainerMouseMove=function(f){var x=this.chart,l=x.tooltip,h=this.normalize(f);this.setHoverChartIndex(),h.preventDefault||(h.returnValue=!1),(x.mouseIsDown==="mousedown"||this.touchSelect(h))&&this.drag(h),x.openMenu||!this.inClass(h.target,"highcharts-tracker")&&!x.isInsidePlot(h.chartX-x.plotLeft,h.chartY-x.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(h)||(this.inClass(h.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(h))},M.prototype.onDocumentTouchEnd=function(f){var x=J[P(M.hoverChartIndex,-1)];x&&x.pointer.drop(f)},M.prototype.onContainerTouchMove=function(f){this.touchSelect(f)?this.onContainerMouseMove(f):this.touch(f)},M.prototype.onContainerTouchStart=function(f){this.touchSelect(f)?this.onContainerMouseDown(f):(this.zoomOption(f),this.touch(f,!0))},M.prototype.onDocumentMouseMove=function(f){var x=this.chart,l=x.tooltip,h=this.chartPosition,e=this.normalize(f,h);!h||x.isInsidePlot(e.chartX-x.plotLeft,e.chartY-x.plotTop,{visiblePlotOnly:!0})||l&&l.shouldStickOnContact(e)||this.inClass(e.target,"highcharts-tracker")||this.reset()},M.prototype.onDocumentMouseUp=function(f){var x=J[P(M.hoverChartIndex,-1)];x&&x.pointer.drop(f)},M.prototype.pinch=function(f){var x=this,l=x.chart,h=x.pinchDown,e=f.touches||[],r=e.length,n=x.lastValidTouch,i=x.hasZoom,c={},a=r===1&&(x.inClass(f.target,"highcharts-tracker")&&l.runTrackerClick||x.runChartClick),s={},y=x.chart.tooltip,A=r===1&&P(y&&y.options.followTouchMove,!0),_=x.selectionMarker;r>1?x.initiated=!0:A&&(x.initiated=!1),i&&x.initiated&&!a&&f.cancelable!==!1&&f.preventDefault(),[].map.call(e,function(p){return x.normalize(p)}),f.type==="touchstart"?([].forEach.call(e,function(p,C){h[C]={chartX:p.chartX,chartY:p.chartY}}),n.x=[h[0].chartX,h[1]&&h[1].chartX],n.y=[h[0].chartY,h[1]&&h[1].chartY],l.axes.forEach(function(p){if(p.zoomEnabled){var C=l.bounds[p.horiz?"h":"v"],k=p.minPixelPadding,F=p.toPixels(Math.min(P(p.options.min,p.dataMin),p.dataMin)),G=p.toPixels(Math.max(P(p.options.max,p.dataMax),p.dataMax)),I=Math.min(F,G),j=Math.max(F,G);C.min=Math.min(p.pos,I-k),C.max=Math.max(p.pos+p.len,j+k)}}),x.res=!0):A?this.runPointActions(x.normalize(f)):h.length&&(u(l,"touchpan",{originalEvent:f},function(){_||(x.selectionMarker=_=T({destroy:q,touch:!0},l.plotBox)),x.pinchTranslate(h,e,c,_,s,n),x.hasPinched=i,x.scaleGroups(c,s)}),x.res&&(x.res=!1,this.reset(!1,0)))},M.prototype.pinchTranslate=function(f,x,l,h,e,r){this.zoomHor&&this.pinchTranslateDirection(!0,f,x,l,h,e,r),this.zoomVert&&this.pinchTranslateDirection(!1,f,x,l,h,e,r)},M.prototype.pinchTranslateDirection=function(f,x,l,h,e,r,n,i){var c,a,s,y,A=this.chart,_=f?"x":"y",p=f?"X":"Y",C="chart"+p,k=f?"width":"height",F=A["plot"+(f?"Left":"Top")],G=A.inverted,I=A.bounds[f?"h":"v"],j=x.length===1,N=x[0][C],Z=!j&&x[1][C],$=function(){typeof rt=="number"&&Math.abs(N-Z)>20&&(Y=i||Math.abs(et-rt)/Math.abs(N-Z)),s=(F-et)/Y+N,c=A["plot"+(f?"Width":"Height")]/Y},Y=i||1,et=l[0][C],rt=!j&&l[1][C];$(),(a=s)<I.min?(a=I.min,y=!0):a+c>I.max&&(a=I.max-c,y=!0),y?(et-=.8*(et-n[_][0]),typeof rt=="number"&&(rt-=.8*(rt-n[_][1])),$()):n[_]=[et,rt],G||(r[_]=s-F,r[k]=c);var it=G?f?"scaleY":"scaleX":"scale"+p,ht=G?1/Y:Y;e[k]=c,e[_]=a,h[it]=Y,h["translate"+p]=ht*F+(et-ht*N)},M.prototype.reset=function(f,x){var l=this,h=l.chart,e=h.hoverSeries,r=h.hoverPoint,n=h.hoverPoints,i=h.tooltip,c=i&&i.shared?n:r;f&&c&&E(c).forEach(function(a){a.series.isCartesian&&a.plotX===void 0&&(f=!1)}),f?i&&c&&E(c).length&&(i.refresh(c),i.shared&&n?n.forEach(function(a){a.setState(a.state,!0),a.series.isCartesian&&(a.series.xAxis.crosshair&&a.series.xAxis.drawCrosshair(null,a),a.series.yAxis.crosshair&&a.series.yAxis.drawCrosshair(null,a))}):r&&(r.setState(r.state,!0),h.axes.forEach(function(a){a.crosshair&&r.series[a.coll]===a&&a.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),n&&n.forEach(function(a){a.setState()}),e&&e.onMouseOut(),i&&i.hide(x),l.unDocMouseMove&&(l.unDocMouseMove=l.unDocMouseMove()),h.axes.forEach(function(a){a.hideCrosshair()}),l.hoverX=h.hoverPoints=h.hoverPoint=null)},M.prototype.runPointActions=function(f,x,l){var h=this,e=h.chart,r=e.series,n=e.tooltip&&e.tooltip.options.enabled?e.tooltip:void 0,i=!!n&&n.shared,c=x||e.hoverPoint,a=c&&c.series||e.hoverSeries,s=(!f||f.type!=="touchmove")&&(!!x||a&&a.directTouch&&h.isDirectTouch),y=this.getHoverData(c,a,r,s,i,f);c=y.hoverPoint,a=y.hoverSeries;var A=y.hoverPoints,_=a&&a.tooltipOptions.followPointer&&!a.tooltipOptions.split,p=i&&a&&!a.noSharedTooltip;if(c&&(l||c!==e.hoverPoint||n&&n.isHidden)){if((e.hoverPoints||[]).forEach(function(k){A.indexOf(k)===-1&&k.setState()}),e.hoverSeries!==a&&a.onMouseOver(),h.applyInactiveState(A),(A||[]).forEach(function(k){k.setState("hover")}),e.hoverPoint&&e.hoverPoint.firePointEvent("mouseOut"),!c.series)return;e.hoverPoints=A,e.hoverPoint=c,c.firePointEvent("mouseOver",void 0,function(){n&&c&&n.refresh(p?A:c,f)})}else if(_&&n&&!n.isHidden){var C=n.getAnchor([{}],f);e.isInsidePlot(C[0],C[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:C[0],plotY:C[1]})}h.unDocMouseMove||(h.unDocMouseMove=W(e.container.ownerDocument,"mousemove",function(k){var F=J[M.hoverChartIndex];F&&F.pointer.onDocumentMouseMove(k)}),h.eventsToUnbind.push(h.unDocMouseMove)),e.axes.forEach(function(k){var F,G=P((k.crosshair||{}).snap,!0);G&&((F=e.hoverPoint)&&F.series[k.coll]===k||(F=d(A,function(I){return I.series&&I.series[k.coll]===k}))),F||!G?k.drawCrosshair(f,F):k.hideCrosshair()})},M.prototype.scaleGroups=function(f,x){var l=this.chart;l.series.forEach(function(h){var e=f||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||l.mapView)&&(h.group.attr(e),h.markerGroup&&(h.markerGroup.attr(e),h.markerGroup.clip(x?l.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(e))}),l.clipRect.attr(x||l.clipBox)},M.prototype.setDOMEvents=function(){var f=this,x=this.chart.container,l=x.ownerDocument;x.onmousedown=this.onContainerMouseDown.bind(this),x.onmousemove=this.onContainerMouseMove.bind(this),x.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(W(x,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(W(x,"mouseleave",this.onContainerMouseLeave.bind(this))),M.unbindDocumentMouseUp||(M.unbindDocumentMouseUp=W(l,"mouseup",this.onDocumentMouseUp.bind(this)));for(var h=this.chart.renderTo.parentElement;h&&h.tagName!=="BODY";)this.eventsToUnbind.push(W(h,"scroll",function(){delete f.chartPosition})),h=h.parentElement;z.hasTouch&&(this.eventsToUnbind.push(W(x,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(W(x,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),M.unbindDocumentTouchEnd||(M.unbindDocumentTouchEnd=W(l,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))},M.prototype.setHoverChartIndex=function(){var f=this.chart,x=z.charts[P(M.hoverChartIndex,-1)];x&&x!==f&&x.pointer.onContainerMouseLeave({relatedTarget:f.container}),x&&x.mouseIsDown||(M.hoverChartIndex=f.index)},M.prototype.touch=function(f,x){var l,h,e=this.chart;this.setHoverChartIndex(),f.touches.length===1?(f=this.normalize(f),e.isInsidePlot(f.chartX-e.plotLeft,f.chartY-e.plotTop,{visiblePlotOnly:!0})&&!e.openMenu?(x&&this.runPointActions(f),f.type==="touchmove"&&(l=!!(h=this.pinchDown)[0]&&Math.sqrt(Math.pow(h[0].chartX-f.chartX,2)+Math.pow(h[0].chartY-f.chartY,2))>=4),P(l,!0)&&this.pinch(f)):x&&this.reset()):f.touches.length===2&&this.pinch(f)},M.prototype.touchSelect=function(f){return!!(this.chart.options.chart.zooming.singleTouch&&f.touches&&f.touches.length===1)},M.prototype.zoomOption=function(f){var x,l,h=this.chart,e=h.options.chart,r=h.inverted,n=e.zooming.type||"";/touch/.test(f.type)&&(n=P(e.zooming.pinchType,n)),this.zoomX=x=/x/.test(n),this.zoomY=l=/y/.test(n),this.zoomHor=x&&!r||l&&r,this.zoomVert=l&&!r||x&&r,this.hasZoom=x||l},M}()}),st(B,"Core/MSPointer.js",[B["Core/Globals.js"],B["Core/Pointer.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(P,E){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,f){M.__proto__=f}||function(M,f){for(var x in f)f.hasOwnProperty(x)&&(M[x]=f[x])},V(P,E)},function(P,E){function M(){this.constructor=P}V(P,E),P.prototype=E===null?Object.create(E):(M.prototype=E.prototype,new M)}),J=U.charts,q=U.doc,W=U.noop,D=U.win,O=X.addEvent,w=X.css,T=X.objectEach,d=X.pick,u=X.removeEvent,g={},b=!!D.PointerEvent;function v(P,E,M,f){var x,l=J[z.hoverChartIndex||NaN];if((P.pointerType==="touch"||P.pointerType===P.MSPOINTER_TYPE_TOUCH)&&l){var h=l.pointer;f(P),h[E]({type:M,target:P.currentTarget,preventDefault:W,touches:(x=[],x.item=function(e){return this[e]},T(g,function(e){x.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),x)})}}var S=function(P){function E(){return P!==null&&P.apply(this,arguments)||this}return K(E,P),E.isRequired=function(){return!(U.hasTouch||!D.PointerEvent&&!D.MSPointerEvent)},E.prototype.batchMSEvents=function(M){M(this.chart.container,b?"pointerdown":"MSPointerDown",this.onContainerPointerDown),M(this.chart.container,b?"pointermove":"MSPointerMove",this.onContainerPointerMove),M(q,b?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},E.prototype.destroy=function(){this.batchMSEvents(u),P.prototype.destroy.call(this)},E.prototype.init=function(M,f){P.prototype.init.call(this,M,f),this.hasZoom&&w(M.container,{"-ms-touch-action":"none","touch-action":"none"})},E.prototype.onContainerPointerDown=function(M){v(M,"onContainerTouchStart","touchstart",function(f){g[f.pointerId]={pageX:f.pageX,pageY:f.pageY,target:f.currentTarget}})},E.prototype.onContainerPointerMove=function(M){v(M,"onContainerTouchMove","touchmove",function(f){g[f.pointerId]={pageX:f.pageX,pageY:f.pageY},g[f.pointerId].target||(g[f.pointerId].target=f.currentTarget)})},E.prototype.onDocumentPointerUp=function(M){v(M,"onDocumentTouchEnd","touchend",function(f){delete g[f.pointerId]})},E.prototype.setDOMEvents=function(){var M=this.chart.tooltip;P.prototype.setDOMEvents.call(this),(this.hasZoom||d(M&&M.options.followTouchMove,!0))&&this.batchMSEvents(O)},E}(z);return S}),st(B,"Core/Legend/Legend.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Series/Point.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=U.animObject,W=U.setAnimation,D=z.format,O=X.marginNames,w=K.distribute,T=J.addEvent,d=J.createElement,u=J.css,g=J.defined,b=J.discardElement,v=J.find,S=J.fireEvent,P=J.isNumber,E=J.merge,M=J.pick,f=J.relativeLength,x=J.stableSort,l=J.syncTimeout;return function(){function h(e,r){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=e,this.init(e,r)}return h.prototype.init=function(e,r){this.chart=e,this.setOptions(r),r.enabled&&(this.render(),T(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=T(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},h.prototype.setOptions=function(e){var r=M(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=E(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop||0,this.itemMarginBottom=e.itemMarginBottom||0,this.padding=r,this.initialItemY=r-5,this.symbolWidth=M(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0},h.prototype.update=function(e,r){var n=this.chart;this.setOptions(E(!0,this.options,e)),this.destroy(),n.isDirtyLegend=n.isDirtyBox=!0,M(r,!0)&&n.redraw(),S(this,"afterUpdate")},h.prototype.colorizeItem=function(e,r){var n=e.legendItem||{},i=n.group,c=n.label,a=n.line,s=n.symbol;if(i&&i[r?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var y=this.options,A=this.itemHiddenStyle.color,_=r?y.itemStyle.color:A,p=r&&e.color||A,C=e.options&&e.options.marker,k={fill:p};c&&c.css({fill:_,color:_}),a&&a.attr({stroke:p}),s&&(C&&s.isMarker&&(k=e.pointAttribs(),r||(k.stroke=k.fill=A)),s.attr(k))}S(this,"afterColorizeItem",{item:e,visible:r})},h.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},h.prototype.positionItem=function(e){var r=this,n=e.legendItem||{},i=n.group,c=n.x,a=c===void 0?0:c,s=n.y,y=s===void 0?0:s,A=this.options,_=A.symbolPadding,p=!A.rtl,C=e.checkbox;if(i&&i.element){var k={translateX:p?a:this.legendWidth-a-2*_-4,translateY:y};i[g(i.translateY)?"animate":"attr"](k,void 0,function(){S(r,"afterPositionItem",{item:e})})}C&&(C.x=a,C.y=y)},h.prototype.destroyItem=function(e){for(var r=e.checkbox,n=e.legendItem||{},i=0,c=["group","label","line","symbol"];i<c.length;i++){var a=c[i];n[a]&&(n[a]=n[a].destroy())}r&&b(r),e.legendItem=void 0},h.prototype.destroy=function(){for(var e=this,r=0,n=this.getAllItems();r<n.length;r++){var i=n[r];this.destroyItem(i)}for(var c=0,a=["clipRect","up","down","pager","nav","box","title","group"];c<a.length;c++){var s=a[c];e[s]&&(e[s]=e[s].destroy())}this.display=null},h.prototype.positionCheckboxes=function(){var e,r=this.group&&this.group.alignAttr,n=this.clipHeight||this.legendHeight,i=this.titleHeight;r&&(e=r.translateY,this.allItems.forEach(function(c){var a,s=c.checkbox;s&&(a=e+i+s.y+(this.scrollOffset||0)+3,u(s,{left:r.translateX+c.checkboxOffset+s.x-20+"px",top:a+"px",display:this.proximate||a>e-6&&a<e+n-6?"":"none"}))},this))},h.prototype.renderTitle=function(){var e,r=this.options,n=this.padding,i=r.title,c=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,n-3,n-4,void 0,void 0,void 0,r.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),c=(e=this.title.getBBox()).height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:c})),this.titleHeight=c},h.prototype.setText=function(e){var r=this.options;e.legendItem.label.attr({text:r.labelFormat?D(r.labelFormat,e,this.chart):r.labelFormatter.call(e)})},h.prototype.renderItem=function(e){var r=this,n=e.legendItem=e.legendItem||{},i=r.chart,c=i.renderer,a=r.options,s=a.layout==="horizontal",y=r.symbolWidth,A=a.symbolPadding||0,_=r.itemStyle,p=r.itemHiddenStyle,C=s?M(a.itemDistance,20):0,k=!a.rtl,F=!e.series,G=!F&&e.series.drawLegendSymbol?e.series:e,I=G.options,j=r.createCheckboxForItem&&I&&I.showCheckbox,N=a.useHTML,Z=e.options.className,$=n.label,Y=y+A+C+(j?20:0);$||(n.group=c.g("legend-item").addClass("highcharts-"+G.type+"-series highcharts-color-"+e.colorIndex+(Z?" "+Z:"")+(F?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(r.scrollGroup),n.label=$=c.text("",k?y+A:-A,r.baseline||0,N),i.styledMode||$.css(E(e.visible?_:p)),$.attr({align:k?"left":"right",zIndex:2}).add(n.group),r.baseline||(r.fontMetrics=c.fontMetrics(i.styledMode?12:_.fontSize,$),r.baseline=r.fontMetrics.f+3+r.itemMarginTop,$.attr("y",r.baseline),r.symbolHeight=a.symbolHeight||r.fontMetrics.f,a.squareSymbol&&(r.symbolWidth=M(a.symbolWidth,Math.max(r.symbolHeight,16)),Y=r.symbolWidth+A+C+(j?20:0),k&&$.attr("x",r.symbolWidth+A))),G.drawLegendSymbol(r,e),r.setItemEvents&&r.setItemEvents(e,$,N)),j&&!e.checkbox&&r.createCheckboxForItem&&r.createCheckboxForItem(e),r.colorizeItem(e,e.visible),!i.styledMode&&_.width||$.css({width:(a.itemWidth||r.widthOption||i.spacingBox.width)-Y+"px"}),r.setText(e);var et=$.getBBox(),rt=r.fontMetrics&&r.fontMetrics.h||0;e.itemWidth=e.checkboxOffset=a.itemWidth||n.labelWidth||et.width+Y,r.maxItemWidth=Math.max(r.maxItemWidth,e.itemWidth),r.totalItemWidth+=e.itemWidth,r.itemHeight=e.itemHeight=Math.round(n.labelHeight||(et.height>1.5*rt?et.height:rt))},h.prototype.layoutItem=function(e){var r=this.options,n=this.padding,i=r.layout==="horizontal",c=e.itemHeight,a=this.itemMarginBottom,s=this.itemMarginTop,y=i?M(r.itemDistance,20):0,A=this.maxLegendWidth,_=r.alignColumns&&this.totalItemWidth>A?this.maxItemWidth:e.itemWidth,p=e.legendItem||{};i&&this.itemX-n+_>A&&(this.itemX=n,this.lastLineHeight&&(this.itemY+=s+this.lastLineHeight+a),this.lastLineHeight=0),this.lastItemY=s+this.itemY+a,this.lastLineHeight=Math.max(c,this.lastLineHeight),p.x=this.itemX,p.y=this.itemY,i?this.itemX+=_:(this.itemY+=s+c+a,this.lastLineHeight=c),this.offsetWidth=this.widthOption||Math.max((i?this.itemX-n-(e.checkbox?0:y):_)+n,this.offsetWidth)},h.prototype.getAllItems=function(){var e=[];return this.chart.series.forEach(function(r){var n=r&&r.options;r&&M(n.showInLegend,!g(n.linkedTo)&&void 0,!0)&&(e=e.concat((r.legendItem||{}).labels||(n.legendType==="point"?r.data:r)))}),S(this,"afterGetAllItems",{allItems:e}),e},h.prototype.getAlignment=function(){var e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)},h.prototype.adjustMargins=function(e,r){var n=this.chart,i=this.options,c=this.getAlignment();c&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,s){a.test(c)&&!g(e[s])&&(n[O[s]]=Math.max(n[O[s]],n.legend[(s+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][s]*i[s%2?"x":"y"]+M(i.margin,12)+r[s]+(n.titleOffset[s]||0)))})},h.prototype.proximatePositions=function(){var e,r=this.chart,n=[],i=this.options.align==="left";this.allItems.forEach(function(y){var A,_,p,C,k=i;y.yAxis&&(y.xAxis.options.reversed&&(k=!k),y.points&&(A=v(k?y.points:y.points.slice(0).reverse(),function(F){return P(F.plotY)})),_=this.itemMarginTop+y.legendItem.label.getBBox().height+this.itemMarginBottom,C=y.yAxis.top-r.plotTop,y.visible?(p=A?A.plotY:y.yAxis.height,p+=C-.3*_):p=C+y.yAxis.height,n.push({target:p,size:_,item:y}))},this);for(var c=0,a=w(n,r.plotHeight);c<a.length;c++){var s=a[c];e=s.item.legendItem||{},P(s.pos)&&(e.y=r.plotTop-r.spacing[0]+s.pos)}},h.prototype.render=function(){var e,r,n,i,c=this,a=c.chart,s=a.renderer,y=c.options,A=c.padding,_=c.getAllItems(),p=c.group,C=c.box;c.itemX=A,c.itemY=c.initialItemY,c.offsetWidth=0,c.lastItemY=0,c.widthOption=f(y.width,a.spacingBox.width-A),i=a.spacingBox.width-2*A-y.x,["rm","lm"].indexOf(c.getAlignment().substring(0,2))>-1&&(i/=2),c.maxLegendWidth=c.widthOption||i,p||(c.group=p=s.g("legend").addClass(y.className||"").attr({zIndex:7}).add(),c.contentGroup=s.g().attr({zIndex:1}).add(p),c.scrollGroup=s.g().add(c.contentGroup)),c.renderTitle(),x(_,function(k,F){return(k.options&&k.options.legendIndex||0)-(F.options&&F.options.legendIndex||0)}),y.reversed&&_.reverse(),c.allItems=_,c.display=e=!!_.length,c.lastLineHeight=0,c.maxItemWidth=0,c.totalItemWidth=0,c.itemHeight=0,_.forEach(c.renderItem,c),_.forEach(c.layoutItem,c),r=(c.widthOption||c.offsetWidth)+A,n=c.lastItemY+c.lastLineHeight+c.titleHeight,n=c.handleOverflow(n),n+=A,C||(c.box=C=s.rect().addClass("highcharts-legend-box").attr({r:y.borderRadius}).add(p)),a.styledMode||C.attr({stroke:y.borderColor,"stroke-width":y.borderWidth||0,fill:y.backgroundColor||"none"}).shadow(y.shadow),r>0&&n>0&&C[C.placed?"animate":"attr"](C.crisp.call({},{x:0,y:0,width:r,height:n},C.strokeWidth())),p[e?"show":"hide"](),a.styledMode&&p.getStyle("display")==="none"&&(r=n=0),c.legendWidth=r,c.legendHeight=n,e&&c.align(),this.proximate||this.positionItems(),S(this,"afterRender")},h.prototype.align=function(e){e===void 0&&(e=this.chart.spacingBox);var r=this.chart,n=this.options,i=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&r.titleOffset[0]>0?i+=r.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&r.titleOffset[2]>0&&(i-=r.titleOffset[2]),i!==e.y&&(e=E(e,{y:i})),r.hasRendered||(this.group.placed=!1),this.group.align(E(n,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":n.verticalAlign}),!0,e)},h.prototype.handleOverflow=function(e){var r,n,i,c=this,a=this.chart,s=a.renderer,y=this.options,A=y.y,_=y.verticalAlign==="top",p=this.padding,C=y.maxHeight,k=y.navigation,F=M(k.animation,!0),G=k.arrowSize||12,I=this.pages,j=this.allItems,N=function(rt){typeof rt=="number"?et.attr({height:rt}):et&&(c.clipRect=et.destroy(),c.contentGroup.clip()),c.contentGroup.div&&(c.contentGroup.div.style.clip=rt?"rect("+p+"px,9999px,"+(p+rt)+"px,0)":"auto")},Z=function(rt){return c[rt]=s.circle(0,0,1.3*G).translate(G/2,G/2).add(Y),a.styledMode||c[rt].attr("fill","rgba(0,0,0,0.0001)"),c[rt]},$=a.spacingBox.height+(_?-A:A)-p,Y=this.nav,et=this.clipRect;return y.layout!=="horizontal"||y.verticalAlign==="middle"||y.floating||($/=2),C&&($=Math.min($,C)),I.length=0,e&&$>0&&e>$&&k.enabled!==!1?(this.clipHeight=r=Math.max($-20-this.titleHeight-p,0),this.currentPage=M(this.currentPage,1),this.fullHeight=e,j.forEach(function(rt,it){var ht=(i=rt.legendItem||{}).y||0,dt=Math.round(i.label.getBBox().height),bt=I.length;(!bt||ht-I[bt-1]>r&&(n||ht)!==I[bt-1])&&(I.push(n||ht),bt++),i.pageIx=bt-1,n&&((j[it-1].legendItem||{}).pageIx=bt-1),it===j.length-1&&ht+dt-I[bt-1]>r&&dt<=r&&(I.push(ht),i.pageIx=bt),ht!==n&&(n=ht)}),et||(et=c.clipRect=s.clipRect(0,p,9999,0),c.contentGroup.clip(et)),N(r),Y||(this.nav=Y=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,G,G).add(Y),Z("upTracker").on("click",function(){c.scroll(-1,F)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!a.styledMode&&k.style&&this.pager.css(k.style),this.pager.add(Y),this.down=s.symbol("triangle-down",0,0,G,G).add(Y),Z("downTracker").on("click",function(){c.scroll(1,F)})),c.scroll(0),e=$):Y&&(N(),this.nav=Y.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e},h.prototype.scroll=function(e,r){var n=this,i=this.chart,c=this.pages,a=c.length,s=this.clipHeight,y=this.options.navigation,A=this.pager,_=this.padding,p=this.currentPage+e;if(p>a&&(p=a),p>0){r!==void 0&&W(r,i),this.nav.attr({translateX:_,translateY:s+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(k){k.attr({class:p===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),A.attr({text:p+"/"+a}),[this.down,this.downTracker].forEach(function(k){k.attr({x:18+this.pager.getBBox().width,class:p===a?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:p===1?y.inactiveColor:y.activeColor}),this.upTracker.css({cursor:p===1?"default":"pointer"}),this.down.attr({fill:p===a?y.inactiveColor:y.activeColor}),this.downTracker.css({cursor:p===a?"default":"pointer"})),this.scrollOffset=-c[p-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=p,this.positionCheckboxes();var C=q(M(r,i.renderer.globalAnimation,!0));l(function(){S(n,"afterScroll",{currentPage:p})},C.duration)}},h.prototype.setItemEvents=function(e,r,n){for(var i=this,c=e.legendItem||{},a=i.chart.renderer.boxWrapper,s=e instanceof V,y="highcharts-legend-"+(s?"point":"series")+"-active",A=i.chart.styledMode,_=n?[r,c.symbol]:[c.group],p=function(G){i.allItems.forEach(function(I){e!==I&&[I].concat(I.linkedSeries||[]).forEach(function(j){j.setState(G,!s)})})},C=0,k=_;C<k.length;C++){var F=k[C];F&&F.on("mouseover",function(){e.visible&&p("inactive"),e.setState("hover"),e.visible&&a.addClass(y),A||r.css(i.options.itemHoverStyle)}).on("mouseout",function(){i.chart.styledMode||r.css(E(e.visible?i.itemStyle:i.itemHiddenStyle)),p(""),a.removeClass(y),e.setState()}).on("click",function(G){var I="legendItemClick",j=function(){e.setVisible&&e.setVisible(),p(e.visible?"inactive":"")};a.removeClass(y),G={browserEvent:G},e.firePointEvent?e.firePointEvent(I,G,j):S(e,I,G,j)})}},h.prototype.createCheckboxForItem=function(e){e.checkbox=d("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),T(e.checkbox,"click",function(r){var n=r.target;S(e.series||e,"checkboxClick",{checked:n.checked,item:e},function(){e.select()})})},h}()}),st(B,"Core/Series/SeriesRegistry.js",[B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=z.defaultOptions,q=V.extendClass,W=V.merge;return function(D){function O(w,T){var d=J.plotOptions||{},u=T.defaultOptions,g=T.prototype;g.type=w,g.pointClass||(g.pointClass=X),u&&(d[w]=u),D.seriesTypes[w]=T}D.seriesTypes=U.seriesTypes,D.registerSeriesType=O,D.seriesType=function(w,T,d,u,g){var b=J.plotOptions||{};return T=T||"",b[w]=W(b[T],d),O(w,q(D.seriesTypes[T]||function(){},u)),D.seriesTypes[w].prototype.type=w,g&&(D.seriesTypes[w].prototype.pointClass=q(X,g)),D.seriesTypes[w]}}(K||(K={})),K}),st(B,"Core/Chart/Chart.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/FormatUtilities.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/MSPointer.js"],B["Core/Pointer.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Time.js"],B["Core/Utilities.js"],B["Core/Renderer/HTML/AST.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T,d,u,g){var b=U.animate,v=U.animObject,S=U.setAnimation,P=X.defaultOptions,E=X.defaultTime,M=V.numberFormat,f=K.registerEventOptions,x=J.charts,l=J.doc,h=J.marginNames,e=J.svg,r=J.win,n=w.seriesTypes,i=u.addEvent,c=u.attr,a=u.cleanRecursively,s=u.createElement,y=u.css,A=u.defined,_=u.discardElement,p=u.erase,C=u.error,k=u.extend,F=u.find,G=u.fireEvent,I=u.getStyle,j=u.isArray,N=u.isNumber,Z=u.isObject,$=u.isString,Y=u.merge,et=u.objectEach,rt=u.pick,it=u.pInt,ht=u.relativeLength,dt=u.removeEvent,bt=u.splat,xt=u.syncTimeout,St=u.uniqueKey,wt=function(){function mt(at,pt,vt){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(at,pt,vt)}return mt.chart=function(at,pt,vt){return new mt(at,pt,vt)},mt.prototype.getArgs=function(at,pt,vt){$(at)||at.nodeName?(this.renderTo=at,this.init(pt,vt)):this.init(at,pt)},mt.prototype.init=function(at,pt){var vt=at.plotOptions||{};G(this,"init",{args:arguments},function(){var Ct=Y(P,at),Tt=Ct.chart;et(Ct.plotOptions,function(Ot,_t){Z(Ot)&&(Ot.tooltip=vt[_t]&&Y(vt[_t].tooltip)||void 0)}),Ct.tooltip.userOptions=at.chart&&at.chart.forExport&&at.tooltip.userOptions||at.tooltip,this.userOptions=at,this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=pt,this.isResizing=0;var At=Tt.zooming=Tt.zooming||{};at.chart&&!at.chart.zooming&&(At.resetButton=Tt.resetZoomButton),At.key=rt(At.key,Tt.zoomKey),At.pinchType=rt(At.pinchType,Tt.pinchType),At.singleTouch=rt(At.singleTouch,Tt.zoomBySingleTouch),At.type=rt(At.type,Tt.zoomType),this.options=Ct,this.axes=[],this.series=[],this.time=at.time&&Object.keys(at.time).length?new d(at.time):J.time,this.numberFormatter=Tt.numberFormatter||M,this.styledMode=Tt.styledMode,this.hasCartesianSeries=Tt.showAxes;var Lt=this;Lt.index=x.length,x.push(Lt),J.chartCount++,f(this,Tt),Lt.xAxis=[],Lt.yAxis=[],Lt.pointCount=Lt.colorCounter=Lt.symbolCounter=0,G(Lt,"afterInit"),Lt.firstRender()})},mt.prototype.initSeries=function(at){var pt=this,vt=pt.options.chart,Ct=at.type||vt.type||vt.defaultSeriesType,Tt=n[Ct];Tt||C(17,!0,pt,{missingModuleFor:Ct});var At=new Tt;return typeof At.init=="function"&&At.init(pt,at),At},mt.prototype.setSeriesData=function(){this.getSeriesOrderByLinks().forEach(function(at){at.points||at.data||!at.enabledDataSorting||at.setData(at.options.data,!1)})},mt.prototype.getSeriesOrderByLinks=function(){return this.series.concat().sort(function(at,pt){return at.linkedSeries.length||pt.linkedSeries.length?pt.linkedSeries.length-at.linkedSeries.length:0})},mt.prototype.orderSeries=function(at){for(var pt=this.series,vt=at||0,Ct=pt.length;vt<Ct;++vt)pt[vt]&&(pt[vt].index=vt,pt[vt].name=pt[vt].getName())},mt.prototype.isInsidePlot=function(at,pt,vt){var Ct;vt===void 0&&(vt={});var Tt=this,At=Tt.inverted,Lt=Tt.plotBox,Ot=Tt.plotLeft,_t=Tt.plotTop,It=Tt.scrollablePlotBox,zt=0,Rt=0;vt.visiblePlotOnly&&this.scrollingContainer&&(zt=(Ct=this.scrollingContainer).scrollLeft,Rt=Ct.scrollTop);var Ut=vt.series,Xt=vt.visiblePlotOnly&&It||Lt,Ht=vt.inverted?pt:at,qt=vt.inverted?at:pt,Kt={x:Ht,y:qt,isInsidePlot:!0,options:vt};if(!vt.ignoreX){var fe=Ut&&(At&&!this.polar?Ut.yAxis:Ut.xAxis)||{pos:Ot,len:1/0},Qt=vt.paneCoordinates?fe.pos+Ht:Ot+Ht;Qt>=Math.max(zt+Ot,fe.pos)&&Qt<=Math.min(zt+Ot+Xt.width,fe.pos+fe.len)||(Kt.isInsidePlot=!1)}if(!vt.ignoreY&&Kt.isInsidePlot){var oe=vt.axis&&!vt.axis.isXAxis&&vt.axis||Ut&&(At?Ut.xAxis:Ut.yAxis)||{pos:_t,len:1/0},xe=vt.paneCoordinates?oe.pos+qt:_t+qt;xe>=Math.max(Rt+_t,oe.pos)&&xe<=Math.min(Rt+_t+Xt.height,oe.pos+oe.len)||(Kt.isInsidePlot=!1)}return G(this,"afterIsInsidePlot",Kt),Kt.isInsidePlot},mt.prototype.redraw=function(at){G(this,"beforeRedraw");var pt,vt,Ct,Tt,At=this,Lt=At.hasCartesianSeries?At.axes:At.colorAxis||[],Ot=At.series,_t=At.pointer,It=At.legend,zt=At.userOptions.legend,Rt=At.renderer,Ut=Rt.isHidden(),Xt=[],Ht=At.isDirtyBox,qt=At.isDirtyLegend;for(At.setResponsive&&At.setResponsive(!1),S(!!At.hasRendered&&at,At),Ut&&At.temporaryDisplay(),At.layOutTitles(),Ct=Ot.length;Ct--;)if(((Tt=Ot[Ct]).options.stacking||Tt.options.centerInCategory)&&(vt=!0,Tt.isDirty)){pt=!0;break}if(pt)for(Ct=Ot.length;Ct--;)(Tt=Ot[Ct]).options.stacking&&(Tt.isDirty=!0);Ot.forEach(function(Kt){Kt.isDirty&&(Kt.options.legendType==="point"?(typeof Kt.updateTotals=="function"&&Kt.updateTotals(),qt=!0):zt&&(zt.labelFormatter||zt.labelFormat)&&(qt=!0)),Kt.isDirtyData&&G(Kt,"updatedData")}),qt&&It&&It.options.enabled&&(It.render(),At.isDirtyLegend=!1),vt&&At.getStacks(),Lt.forEach(function(Kt){Kt.updateNames(),Kt.setScale()}),At.getMargins(),Lt.forEach(function(Kt){Kt.isDirty&&(Ht=!0)}),Lt.forEach(function(Kt){var fe=Kt.min+","+Kt.max;Kt.extKey!==fe&&(Kt.extKey=fe,Xt.push(function(){G(Kt,"afterSetExtremes",k(Kt.eventArgs,Kt.getExtremes())),delete Kt.eventArgs})),(Ht||vt)&&Kt.redraw()}),Ht&&At.drawChartBox(),G(At,"predraw"),Ot.forEach(function(Kt){(Ht||Kt.isDirty)&&Kt.visible&&Kt.redraw(),Kt.isDirtyData=!1}),_t&&_t.reset(!0),Rt.draw(),G(At,"redraw"),G(At,"render"),Ut&&At.temporaryDisplay(!0),Xt.forEach(function(Kt){Kt.call()})},mt.prototype.get=function(at){var pt=this.series;function vt(At){return At.id===at||At.options&&At.options.id===at}for(var Ct=F(this.axes,vt)||F(this.series,vt),Tt=0;!Ct&&Tt<pt.length;Tt++)Ct=F(pt[Tt].points||[],vt);return Ct},mt.prototype.getAxes=function(){var at=this,pt=this.options,vt=pt.xAxis=bt(pt.xAxis||{}),Ct=pt.yAxis=bt(pt.yAxis||{});G(this,"getAxes"),vt.forEach(function(Tt,At){Tt.index=At,Tt.isX=!0}),Ct.forEach(function(Tt,At){Tt.index=At}),vt.concat(Ct).forEach(function(Tt){new z(at,Tt)}),G(this,"afterGetAxes")},mt.prototype.getSelectedPoints=function(){return this.series.reduce(function(at,pt){return pt.getPointsCollection().forEach(function(vt){rt(vt.selectedStaging,vt.selected)&&at.push(vt)}),at},[])},mt.prototype.getSelectedSeries=function(){return this.series.filter(function(at){return at.selected})},mt.prototype.setTitle=function(at,pt,vt){this.applyDescription("title",at),this.applyDescription("subtitle",pt),this.applyDescription("caption",void 0),this.layOutTitles(vt)},mt.prototype.applyDescription=function(at,pt){var vt=this,Ct=at==="title"?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"},Tt=this.options[at]=Y(!this.styledMode&&{style:Ct},this.options[at],pt),At=this[at];At&&pt&&(this[at]=At=At.destroy()),Tt&&!At&&((At=this.renderer.text(Tt.text,0,0,Tt.useHTML).attr({align:Tt.align,class:"highcharts-"+at,zIndex:Tt.zIndex||4}).add()).update=function(Lt){vt[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[at]](Lt)},this.styledMode||At.css(Tt.style),this[at]=At)},mt.prototype.layOutTitles=function(at){var pt=[0,0,0],vt=this.renderer,Ct=this.spacingBox;["title","subtitle","caption"].forEach(function(At){var Lt,Ot,_t=this[At],It=this.options[At],zt=It.verticalAlign||"top",Rt=At==="title"?zt==="top"?-3:0:zt==="top"?pt[0]+2:0;_t&&(this.styledMode||(Lt=It.style&&It.style.fontSize),Lt=vt.fontMetrics(Lt,_t).b,_t.css({width:(It.width||Ct.width+(It.widthAdjust||0))+"px"}),Ot=Math.round(_t.getBBox(It.useHTML).height),_t.align(k({y:zt==="bottom"?Lt:Rt+Lt,height:Ot},It),!1,"spacingBox"),It.floating||(zt==="top"?pt[0]=Math.ceil(pt[0]+Ot):zt==="bottom"&&(pt[2]=Math.ceil(pt[2]+Ot))))},this),pt[0]&&(this.options.title.verticalAlign||"top")==="top"&&(pt[0]+=this.options.title.margin),pt[2]&&this.options.caption.verticalAlign==="bottom"&&(pt[2]+=this.options.caption.margin);var Tt=!this.titleOffset||this.titleOffset.join(",")!==pt.join(",");this.titleOffset=pt,G(this,"afterLayOutTitles"),!this.isDirtyBox&&Tt&&(this.isDirtyBox=this.isDirtyLegend=Tt,this.hasRendered&&rt(at,!0)&&this.isDirtyBox&&this.redraw())},mt.prototype.getChartSize=function(){var at=this,pt=at.options.chart,vt=pt.width,Ct=pt.height,Tt=at.renderTo;A(vt)||(at.containerWidth=I(Tt,"width")),A(Ct)||(at.containerHeight=I(Tt,"height")),at.chartWidth=Math.max(0,vt||at.containerWidth||600),at.chartHeight=Math.max(0,ht(Ct,at.chartWidth)||(at.containerHeight>1?at.containerHeight:400))},mt.prototype.temporaryDisplay=function(at){var pt,vt=this.renderTo;if(at)for(;vt&&vt.style;)vt.hcOrigStyle&&(y(vt,vt.hcOrigStyle),delete vt.hcOrigStyle),vt.hcOrigDetached&&(l.body.removeChild(vt),vt.hcOrigDetached=!1),vt=vt.parentNode;else for(;vt&&vt.style&&(l.body.contains(vt)||vt.parentNode||(vt.hcOrigDetached=!0,l.body.appendChild(vt)),(I(vt,"display",!1)==="none"||vt.hcOricDetached)&&(vt.hcOrigStyle={display:vt.style.display,height:vt.style.height,overflow:vt.style.overflow},pt={display:"block",overflow:"hidden"},vt!==this.renderTo&&(pt.height=0),y(vt,pt),vt.offsetWidth||vt.style.setProperty("display","block","important")),(vt=vt.parentNode)!==l.body););},mt.prototype.setClassName=function(at){this.container.className="highcharts-container "+(at||"")},mt.prototype.getContainer=function(){var at,pt=this,vt=pt.options,Ct=vt.chart,Tt="data-highcharts-chart",At=St(),Lt=pt.renderTo;Lt||(pt.renderTo=Lt=Ct.renderTo),$(Lt)&&(pt.renderTo=Lt=l.getElementById(Lt)),Lt||C(13,!0,pt);var Ot=it(c(Lt,Tt));N(Ot)&&x[Ot]&&x[Ot].hasRendered&&x[Ot].destroy(),c(Lt,Tt,pt.index),Lt.innerHTML=g.emptyHTML,Ct.skipClone||Lt.offsetWidth||pt.temporaryDisplay(),pt.getChartSize();var _t=pt.chartWidth,It=pt.chartHeight;y(Lt,{overflow:"hidden"}),pt.styledMode||(at=k({position:"relative",overflow:"hidden",width:_t+"px",height:It+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},Ct.style||{}));var zt=s("div",{id:At},at,Lt);pt.container=zt,pt._cursor=zt.style.cursor;var Rt=Ct.renderer||!e?O.getRendererType(Ct.renderer):T;if(pt.renderer=new Rt(zt,_t,It,void 0,Ct.forExport,vt.exporting&&vt.exporting.allowHTML,pt.styledMode),S(void 0,pt),pt.setClassName(Ct.className),pt.styledMode)for(var Ut in vt.defs)this.renderer.definition(vt.defs[Ut]);else pt.renderer.setStyle(Ct.style);pt.renderer.chartIndex=pt.index,G(this,"afterGetContainer")},mt.prototype.getMargins=function(at){var pt=this,vt=pt.spacing,Ct=pt.margin,Tt=pt.titleOffset;this.resetMargins(),Tt[0]&&!A(Ct[0])&&(this.plotTop=Math.max(this.plotTop,Tt[0]+vt[0])),Tt[2]&&!A(Ct[2])&&(this.marginBottom=Math.max(this.marginBottom,Tt[2]+vt[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Ct,vt),G(this,"getMargins"),at||this.getAxisMargins()},mt.prototype.getAxisMargins=function(){var at=this,pt=at.axisOffset=[0,0,0,0],vt=at.colorAxis,Ct=at.margin,Tt=function(At){At.forEach(function(Lt){Lt.visible&&Lt.getOffset()})};at.hasCartesianSeries?Tt(at.axes):vt&&vt.length&&Tt(vt),h.forEach(function(At,Lt){A(Ct[Lt])||(at[At]+=pt[Lt])}),at.setChartSize()},mt.prototype.reflow=function(at){var pt=this,vt=pt.options.chart,Ct=pt.renderTo,Tt=A(vt.width)&&A(vt.height),At=vt.width||I(Ct,"width"),Lt=vt.height||I(Ct,"height"),Ot=at?at.target:r;delete pt.pointer.chartPosition,Tt||pt.isPrinting||!At||!Lt||Ot!==r&&Ot!==l||(At===pt.containerWidth&&Lt===pt.containerHeight||(u.clearTimeout(pt.reflowTimeout),pt.reflowTimeout=xt(function(){pt.container&&pt.setSize(void 0,void 0,!1)},at?100:0)),pt.containerWidth=At,pt.containerHeight=Lt)},mt.prototype.setReflow=function(at){var pt=this;at===!1||this.unbindReflow?at===!1&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=i(r,"resize",function(vt){pt.options&&pt.reflow(vt)}),i(this,"destroy",this.unbindReflow))},mt.prototype.setSize=function(at,pt,vt){var Ct=this,Tt=Ct.renderer;Ct.isResizing+=1,S(vt,Ct);var At=Tt.globalAnimation;Ct.oldChartHeight=Ct.chartHeight,Ct.oldChartWidth=Ct.chartWidth,at!==void 0&&(Ct.options.chart.width=at),pt!==void 0&&(Ct.options.chart.height=pt),Ct.getChartSize(),Ct.styledMode||(At?b:y)(Ct.container,{width:Ct.chartWidth+"px",height:Ct.chartHeight+"px"},At),Ct.setChartSize(!0),Tt.setSize(Ct.chartWidth,Ct.chartHeight,At),Ct.axes.forEach(function(Lt){Lt.isDirty=!0,Lt.setScale()}),Ct.isDirtyLegend=!0,Ct.isDirtyBox=!0,Ct.layOutTitles(),Ct.getMargins(),Ct.redraw(At),Ct.oldChartHeight=null,G(Ct,"resize"),xt(function(){Ct&&G(Ct,"endResize",null,function(){Ct.isResizing-=1})},v(At).duration)},mt.prototype.setChartSize=function(at){var pt,vt,Ct,Tt,At=this,Lt=At.inverted,Ot=At.renderer,_t=At.chartWidth,It=At.chartHeight,zt=At.options.chart,Rt=At.spacing,Ut=At.clipOffset;At.plotLeft=pt=Math.round(At.plotLeft),At.plotTop=vt=Math.round(At.plotTop),At.plotWidth=Ct=Math.max(0,Math.round(_t-pt-At.marginRight)),At.plotHeight=Tt=Math.max(0,Math.round(It-vt-At.marginBottom)),At.plotSizeX=Lt?Tt:Ct,At.plotSizeY=Lt?Ct:Tt,At.plotBorderWidth=zt.plotBorderWidth||0,At.spacingBox=Ot.spacingBox={x:Rt[3],y:Rt[0],width:_t-Rt[3]-Rt[1],height:It-Rt[0]-Rt[2]},At.plotBox=Ot.plotBox={x:pt,y:vt,width:Ct,height:Tt};var Xt=2*Math.floor(At.plotBorderWidth/2),Ht=Math.ceil(Math.max(Xt,Ut[3])/2),qt=Math.ceil(Math.max(Xt,Ut[0])/2);At.clipBox={x:Ht,y:qt,width:Math.floor(At.plotSizeX-Math.max(Xt,Ut[1])/2-Ht),height:Math.max(0,Math.floor(At.plotSizeY-Math.max(Xt,Ut[2])/2-qt))},at||(At.axes.forEach(function(Kt){Kt.setAxisSize(),Kt.setAxisTranslation()}),Ot.alignElements()),G(At,"afterSetChartSize",{skipAxes:at})},mt.prototype.resetMargins=function(){G(this,"resetMargins");var at=this,pt=at.options.chart;["margin","spacing"].forEach(function(vt){var Ct=pt[vt],Tt=Z(Ct)?Ct:[Ct,Ct,Ct,Ct];["Top","Right","Bottom","Left"].forEach(function(At,Lt){at[vt][Lt]=rt(pt[vt+At],Tt[Lt])})}),h.forEach(function(vt,Ct){at[vt]=rt(at.margin[Ct],at.spacing[Ct])}),at.axisOffset=[0,0,0,0],at.clipOffset=[0,0,0,0]},mt.prototype.drawChartBox=function(){var at,pt,vt,Ct=this,Tt=Ct.options.chart,At=Ct.renderer,Lt=Ct.chartWidth,Ot=Ct.chartHeight,_t=Ct.styledMode,It=Ct.plotBGImage,zt=Tt.backgroundColor,Rt=Tt.plotBackgroundColor,Ut=Tt.plotBackgroundImage,Xt=Ct.plotLeft,Ht=Ct.plotTop,qt=Ct.plotWidth,Kt=Ct.plotHeight,fe=Ct.plotBox,Qt=Ct.clipRect,oe=Ct.clipBox,xe=Ct.chartBackground,Qe=Ct.plotBackground,ce=Ct.plotBorder,Me="animate";xe||(Ct.chartBackground=xe=At.rect().addClass("highcharts-background").add(),Me="attr"),_t?at=pt=xe.strokeWidth():(pt=(at=Tt.borderWidth||0)+(Tt.shadow?8:0),vt={fill:zt||"none"},(at||xe["stroke-width"])&&(vt.stroke=Tt.borderColor,vt["stroke-width"]=at),xe.attr(vt).shadow(Tt.shadow)),xe[Me]({x:pt/2,y:pt/2,width:Lt-pt-at%2,height:Ot-pt-at%2,r:Tt.borderRadius}),Me="animate",Qe||(Me="attr",Ct.plotBackground=Qe=At.rect().addClass("highcharts-plot-background").add()),Qe[Me](fe),_t||(Qe.attr({fill:Rt||"none"}).shadow(Tt.plotShadow),Ut&&(It?(Ut!==It.attr("href")&&It.attr("href",Ut),It.animate(fe)):Ct.plotBGImage=At.image(Ut,Xt,Ht,qt,Kt).add())),Qt?Qt.animate({width:oe.width,height:oe.height}):Ct.clipRect=At.clipRect(oe),Me="animate",ce||(Me="attr",Ct.plotBorder=ce=At.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),_t||ce.attr({stroke:Tt.plotBorderColor,"stroke-width":Tt.plotBorderWidth||0,fill:"none"}),ce[Me](ce.crisp({x:Xt,y:Ht,width:qt,height:Kt},-ce.strokeWidth())),Ct.isDirtyBox=!1,G(this,"afterDrawChartBox")},mt.prototype.propFromSeries=function(){var at,pt,vt,Ct=this,Tt=Ct.options.chart,At=Ct.options.series;["inverted","angular","polar"].forEach(function(Lt){for(pt=n[Tt.type||Tt.defaultSeriesType],vt=Tt[Lt]||pt&&pt.prototype[Lt],at=At&&At.length;!vt&&at--;)(pt=n[At[at].type])&&pt.prototype[Lt]&&(vt=!0);Ct[Lt]=vt})},mt.prototype.linkSeries=function(){var at=this,pt=at.series;pt.forEach(function(vt){vt.linkedSeries.length=0}),pt.forEach(function(vt){var Ct=vt.options.linkedTo;$(Ct)&&(Ct=Ct===":previous"?at.series[vt.index-1]:at.get(Ct))&&Ct.linkedParent!==vt&&(Ct.linkedSeries.push(vt),vt.linkedParent=Ct,Ct.enabledDataSorting&&vt.setDataSortingOptions(),vt.visible=rt(vt.options.visible,Ct.options.visible,vt.visible))}),G(this,"afterLinkSeries")},mt.prototype.renderSeries=function(){this.series.forEach(function(at){at.translate(),at.render()})},mt.prototype.renderLabels=function(){var at=this,pt=at.options.labels;pt.items&&pt.items.forEach(function(vt){var Ct=k(pt.style,vt.style),Tt=it(Ct.left)+at.plotLeft,At=it(Ct.top)+at.plotTop+12;delete Ct.left,delete Ct.top,at.renderer.text(vt.html,Tt,At).attr({zIndex:2}).css(Ct).add()})},mt.prototype.render=function(){var at=this,pt=at.axes,vt=at.colorAxis,Ct=at.renderer,Tt=at.options,At=function(Rt){Rt.forEach(function(Ut){Ut.visible&&Ut.render()})},Lt=0;at.setTitle(),at.legend=new q(at,Tt.legend),at.getStacks&&at.getStacks(),at.getMargins(!0),at.setChartSize();var Ot=at.plotWidth;pt.some(function(Rt){if(Rt.horiz&&Rt.visible&&Rt.options.labels.enabled&&Rt.series.length)return Lt=21,!0}),at.plotHeight=Math.max(at.plotHeight-Lt,0);var _t=at.plotHeight;pt.forEach(function(Rt){Rt.setScale()}),at.getAxisMargins();var It=Ot/at.plotWidth>1.1,zt=_t/at.plotHeight>1.05;(It||zt)&&(pt.forEach(function(Rt){(Rt.horiz&&It||!Rt.horiz&&zt)&&Rt.setTickInterval(!0)}),at.getMargins()),at.drawChartBox(),at.hasCartesianSeries?At(pt):vt&&vt.length&&At(vt),at.seriesGroup||(at.seriesGroup=Ct.g("series-group").attr({zIndex:3}).add()),at.renderSeries(),at.renderLabels(),at.addCredits(),at.setResponsive&&at.setResponsive(),at.hasRendered=!0},mt.prototype.addCredits=function(at){var pt=this,vt=Y(!0,this.options.credits,at);vt.enabled&&!this.credits&&(this.credits=this.renderer.text(vt.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){vt.href&&(r.location.href=vt.href)}).attr({align:vt.position.align,zIndex:8}),pt.styledMode||this.credits.css(vt.style),this.credits.add().align(vt.position),this.credits.update=function(Ct){pt.credits=pt.credits.destroy(),pt.addCredits(Ct)})},mt.prototype.destroy=function(){var at,pt=this,vt=pt.axes,Ct=pt.series,Tt=pt.container,At=Tt&&Tt.parentNode;for(G(pt,"destroy"),pt.renderer.forExport?p(x,pt):x[pt.index]=void 0,J.chartCount--,pt.renderTo.removeAttribute("data-highcharts-chart"),dt(pt),at=vt.length;at--;)vt[at]=vt[at].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),at=Ct.length;at--;)Ct[at]=Ct[at].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(function(Lt){var Ot=pt[Lt];Ot&&Ot.destroy&&(pt[Lt]=Ot.destroy())}),Tt&&(Tt.innerHTML=g.emptyHTML,dt(Tt),At&&_(Tt)),et(pt,function(Lt,Ot){delete pt[Ot]})},mt.prototype.firstRender=function(){var at=this,pt=at.options;at.isReadyToRender&&!at.isReadyToRender()||(at.getContainer(),at.resetMargins(),at.setChartSize(),at.propFromSeries(),at.getAxes(),(j(pt.series)?pt.series:[]).forEach(function(vt){at.initSeries(vt)}),at.linkSeries(),at.setSeriesData(),G(at,"beforeRender"),D&&(W.isRequired()?at.pointer=new W(at,pt):at.pointer=new D(at,pt)),at.render(),at.pointer.getChartPosition(),at.renderer.imgCount||at.hasLoaded||at.onload(),at.temporaryDisplay(!0))},mt.prototype.onload=function(){this.callbacks.concat([this.callback]).forEach(function(at){at&&this.index!==void 0&&at.apply(this,[this])},this),G(this,"load"),G(this,"render"),A(this.index)&&this.setReflow(this.options.chart.reflow),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0},mt.prototype.warnIfA11yModuleNotLoaded=function(){var at=this.options,pt=this.title;at&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(pt&&pt.element.textContent||"").replace(/</g,"&lt;")}),at.accessibility&&at.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))},mt.prototype.addSeries=function(at,pt,vt){var Ct,Tt=this;return at&&(pt=rt(pt,!0),G(Tt,"addSeries",{options:at},function(){Ct=Tt.initSeries(at),Tt.isDirtyLegend=!0,Tt.linkSeries(),Ct.enabledDataSorting&&Ct.setData(at.data,!1),G(Tt,"afterAddSeries",{series:Ct}),pt&&Tt.redraw(vt)})),Ct},mt.prototype.addAxis=function(at,pt,vt,Ct){return this.createAxis(pt?"xAxis":"yAxis",{axis:at,redraw:vt,animation:Ct})},mt.prototype.addColorAxis=function(at,pt,vt){return this.createAxis("colorAxis",{axis:at,redraw:pt,animation:vt})},mt.prototype.createAxis=function(at,pt){var vt=new z(this,Y(pt.axis,{index:this[at].length,isX:at==="xAxis"}));return rt(pt.redraw,!0)&&this.redraw(pt.animation),vt},mt.prototype.showLoading=function(at){var pt=this,vt=pt.options,Ct=vt.loading,Tt=function(){At&&y(At,{left:pt.plotLeft+"px",top:pt.plotTop+"px",width:pt.plotWidth+"px",height:pt.plotHeight+"px"})},At=pt.loadingDiv,Lt=pt.loadingSpan;At||(pt.loadingDiv=At=s("div",{className:"highcharts-loading highcharts-loading-hidden"},null,pt.container)),Lt||(pt.loadingSpan=Lt=s("span",{className:"highcharts-loading-inner"},null,At),i(pt,"redraw",Tt)),At.className="highcharts-loading",g.setElementHTML(Lt,rt(at,vt.lang.loading,"")),pt.styledMode||(y(At,k(Ct.style,{zIndex:10})),y(Lt,Ct.labelStyle),pt.loadingShown||(y(At,{opacity:0,display:""}),b(At,{opacity:Ct.style.opacity||.5},{duration:Ct.showDuration||0}))),pt.loadingShown=!0,Tt()},mt.prototype.hideLoading=function(){var at=this.options,pt=this.loadingDiv;pt&&(pt.className="highcharts-loading highcharts-loading-hidden",this.styledMode||b(pt,{opacity:0},{duration:at.loading.hideDuration||100,complete:function(){y(pt,{display:"none"})}})),this.loadingShown=!1},mt.prototype.update=function(at,pt,vt,Ct){var Tt,At,Lt,Ot=this,_t={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},It=at.isResponsiveOptions,zt=[];G(Ot,"update",{options:at}),It||Ot.setResponsive(!1,!0),at=a(at,Ot.options),Ot.userOptions=Y(Ot.userOptions,at);var Rt=at.chart;Rt&&(Y(!0,Ot.options.chart,Rt),"className"in Rt&&Ot.setClassName(Rt.className),"reflow"in Rt&&Ot.setReflow(Rt.reflow),("inverted"in Rt||"polar"in Rt||"type"in Rt)&&(Ot.propFromSeries(),Tt=!0),"alignTicks"in Rt&&(Tt=!0),"events"in Rt&&f(this,Rt),et(Rt,function(Ht,qt){Ot.propsRequireUpdateSeries.indexOf("chart."+qt)!==-1&&(At=!0),Ot.propsRequireDirtyBox.indexOf(qt)!==-1&&(Ot.isDirtyBox=!0),Ot.propsRequireReflow.indexOf(qt)!==-1&&(It?Ot.isDirtyBox=!0:Lt=!0)}),!Ot.styledMode&&Rt.style&&Ot.renderer.setStyle(Ot.options.chart.style||{})),!Ot.styledMode&&at.colors&&(this.options.colors=at.colors),at.time&&(this.time===E&&(this.time=new d(at.time)),Y(!0,Ot.options.time,at.time)),et(at,function(Ht,qt){Ot[qt]&&typeof Ot[qt].update=="function"?Ot[qt].update(Ht,!1):typeof Ot[_t[qt]]=="function"?Ot[_t[qt]](Ht):qt!=="colors"&&Ot.collectionsWithUpdate.indexOf(qt)===-1&&Y(!0,Ot.options[qt],at[qt]),qt!=="chart"&&Ot.propsRequireUpdateSeries.indexOf(qt)!==-1&&(At=!0)}),this.collectionsWithUpdate.forEach(function(Ht){var qt;at[Ht]&&(qt=[],Ot[Ht].forEach(function(Kt,fe){Kt.options.isInternal||qt.push(rt(Kt.options.index,fe))}),bt(at[Ht]).forEach(function(Kt,fe){var Qt,oe=A(Kt.id);oe&&(Qt=Ot.get(Kt.id)),!Qt&&Ot[Ht]&&(Qt=Ot[Ht][qt?qt[fe]:fe])&&oe&&A(Qt.options.id)&&(Qt=void 0),Qt&&Qt.coll===Ht&&(Qt.update(Kt,!1),vt&&(Qt.touched=!0)),!Qt&&vt&&Ot.collectionsWithInit[Ht]&&(Ot.collectionsWithInit[Ht][0].apply(Ot,[Kt].concat(Ot.collectionsWithInit[Ht][1]||[]).concat([!1])).touched=!0)}),vt&&Ot[Ht].forEach(function(Kt){Kt.touched||Kt.options.isInternal?delete Kt.touched:zt.push(Kt)}))}),zt.forEach(function(Ht){Ht.chart&&Ht.remove&&Ht.remove(!1)}),Tt&&Ot.axes.forEach(function(Ht){Ht.update({},!1)}),At&&Ot.getSeriesOrderByLinks().forEach(function(Ht){Ht.chart&&Ht.update({},!1)},this);var Ut=Rt&&Rt.width,Xt=Rt&&($(Rt.height)?ht(Rt.height,Ut||Ot.chartWidth):Rt.height);Lt||N(Ut)&&Ut!==Ot.chartWidth||N(Xt)&&Xt!==Ot.chartHeight?Ot.setSize(Ut,Xt,Ct):rt(pt,!0)&&Ot.redraw(Ct),G(Ot,"afterUpdate",{options:at,redraw:pt,animation:Ct})},mt.prototype.setSubtitle=function(at,pt){this.applyDescription("subtitle",at),this.layOutTitles(pt)},mt.prototype.setCaption=function(at,pt){this.applyDescription("caption",at),this.layOutTitles(pt)},mt.prototype.showResetZoom=function(){var at=this,pt=P.lang,vt=at.options.chart.zooming.resetButton,Ct=vt.theme,Tt=vt.relativeTo==="chart"||vt.relativeTo==="spacingBox"?null:"scrollablePlotBox";function At(){at.zoomOut()}G(this,"beforeShowResetZoom",null,function(){at.resetZoomButton=at.renderer.button(pt.resetZoom,null,null,At,Ct).attr({align:vt.position.align,title:pt.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(vt.position,!1,Tt)}),G(this,"afterShowResetZoom")},mt.prototype.zoomOut=function(){G(this,"selection",{resetSelection:!0},this.zoom)},mt.prototype.zoom=function(at){var pt,vt=this,Ct=vt.pointer,Tt=!1;!at||at.resetSelection?(vt.axes.forEach(function(Lt){pt=Lt.zoom()}),Ct.initiated=!1):at.xAxis.concat(at.yAxis).forEach(function(Lt){var Ot=Lt.axis,_t=Ot.isXAxis;(Ct[_t?"zoomX":"zoomY"]&&A(Ct.mouseDownX)&&A(Ct.mouseDownY)&&vt.isInsidePlot(Ct.mouseDownX-vt.plotLeft,Ct.mouseDownY-vt.plotTop,{axis:Ot})||!A(vt.inverted?Ct.mouseDownX:Ct.mouseDownY))&&(pt=Ot.zoom(Lt.min,Lt.max),Ot.displayBtn&&(Tt=!0))});var At=vt.resetZoomButton;Tt&&!At?vt.showResetZoom():!Tt&&Z(At)&&(vt.resetZoomButton=At.destroy()),pt&&vt.redraw(rt(vt.options.chart.animation,at&&at.animation,vt.pointCount<100))},mt.prototype.pan=function(at,pt){var vt=this,Ct=vt.hoverPoints,Tt=typeof pt=="object"?pt:{enabled:pt,type:"x"},At=vt.options.chart;At&&At.panning&&(At.panning=Tt);var Lt,Ot=Tt.type;G(this,"pan",{originalEvent:at},function(){Ct&&Ct.forEach(function(zt){zt.setState()});var _t=vt.xAxis;Ot==="xy"?_t=_t.concat(vt.yAxis):Ot==="y"&&(_t=vt.yAxis);var It={};_t.forEach(function(zt){if(zt.options.panningEnabled&&!zt.options.isInternal){var Rt,Ut=zt.horiz,Xt=at[Ut?"chartX":"chartY"],Ht=Ut?"mouseDownX":"mouseDownY",qt=vt[Ht],Kt=zt.minPointOffset||0,fe=zt.reversed&&!vt.inverted||!zt.reversed&&vt.inverted?-1:1,Qt=zt.getExtremes(),oe=zt.toValue(qt-Xt,!0)+Kt*fe,xe=zt.toValue(qt+zt.len-Xt,!0)-(Kt*fe||zt.isXAxis&&zt.pointRangePadding||0),Qe=xe<oe,ce=zt.hasVerticalPanning(),Me=Qe?xe:oe,ii=Qe?oe:xe,Gt=zt.panningState;!ce||zt.isXAxis||Gt&&!Gt.isDirty||zt.series.forEach(function(pe){var Ve=pe.getProcessedData(!0),Ue=pe.getExtremes(Ve.yData,!0);Gt||(Gt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),N(Ue.dataMin)&&N(Ue.dataMax)&&(Gt.startMin=Math.min(rt(pe.options.threshold,1/0),Ue.dataMin,Gt.startMin),Gt.startMax=Math.max(rt(pe.options.threshold,-1/0),Ue.dataMax,Gt.startMax))});var ee=Math.min(rt(Gt&&Gt.startMin,Qt.dataMin),Kt?Qt.min:zt.toValue(zt.toPixels(Qt.min)-zt.minPixelPadding)),he=Math.max(rt(Gt&&Gt.startMax,Qt.dataMax),Kt?Qt.max:zt.toValue(zt.toPixels(Qt.max)+zt.minPixelPadding));zt.panningState=Gt,zt.isOrdinal||((Rt=ee-Me)>0&&(ii+=Rt,Me=ee),(Rt=ii-he)>0&&(ii=he,Me-=Rt),zt.series.length&&Me!==Qt.min&&ii!==Qt.max&&Me>=ee&&ii<=he&&(zt.setExtremes(Me,ii,!1,!1,{trigger:"pan"}),!vt.resetZoomButton&&Me!==ee&&ii!==he&&Ot.match("y")&&(vt.showResetZoom(),zt.displayBtn=!1),Lt=!0),It[Ht]=Xt)}}),et(It,function(zt,Rt){vt[Rt]=zt}),Lt&&vt.redraw(!1),y(vt.container,{cursor:"move"})})},mt}();return k(wt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[wt.prototype.addAxis,[!0]],yAxis:[wt.prototype.addAxis,[!1]],series:[wt.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"]}),wt}),st(B,"Core/Legend/LegendSymbol.js",[B["Core/Utilities.js"]],function(U){var z,X=U.extend,V=U.merge,K=U.pick;return function(J){J.drawLineMarker=function(q){var W,D=this.legendItem=this.legendItem||{},O=this.options,w=q.symbolWidth,T=q.symbolHeight,d=T/2,u=this.chart.renderer,g=D.group,b=q.baseline-Math.round(.3*q.fontMetrics.b),v={},S=O.marker,P=0;if(this.chart.styledMode||(v={"stroke-width":Math.min(O.lineWidth||0,24)},O.dashStyle?v.dashstyle=O.dashStyle:O.linecap!=="square"&&(v["stroke-linecap"]="round")),D.line=u.path().addClass("highcharts-graph").attr(v).add(g),v["stroke-linecap"]&&(P=Math.min(D.line.strokeWidth(),w)/2),D.line.attr({d:[["M",P,b],["L",w-P,b]]}),S&&S.enabled!==!1&&w){var E=Math.min(K(S.radius,d),d);this.symbol.indexOf("url")===0&&(S=V(S,{width:T,height:T}),E=0),D.symbol=W=u.symbol(this.symbol,w/2-E,b-E,2*E,2*E,X({context:"legend"},S)).addClass("highcharts-point").add(g),W.isMarker=!0}},J.drawRectangle=function(q,W){var D=W.legendItem||{},O=q.options,w=q.symbolHeight,T=O.squareSymbol,d=T?w:q.symbolWidth;D.symbol=this.chart.renderer.rect(T?(q.symbolWidth-w)/2:0,q.baseline-w+1,d,w,K(q.options.symbolRadius,w/2)).addClass("highcharts-point").attr({zIndex:3}).add(D.group)}}(z||(z={})),z}),st(B,"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 U=this.series.chart.numberFormatter;return typeof this.y!="number"?"":U(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"}}),st(B,"Core/Series/Series.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Defaults.js"],B["Core/Foundation.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O){var w=U.animObject,T=U.setAnimation,d=z.defaultOptions,u=X.registerEventOptions,g=V.hasTouch,b=V.svg,v=V.win,S=W.seriesTypes,P=O.arrayMax,E=O.arrayMin,M=O.clamp,f=O.cleanRecursively,x=O.correctFloat,l=O.defined,h=O.erase,e=O.error,r=O.extend,n=O.find,i=O.fireEvent,c=O.getNestedProperty,a=O.isArray,s=O.isNumber,y=O.isString,A=O.merge,_=O.objectEach,p=O.pick,C=O.removeEvent,k=O.splat,F=O.syncTimeout,G=function(){function I(){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 I.prototype.init=function(j,N){i(this,"init",{options:N});var Z=this,$=j.series;this.eventsToUnbind=[],Z.chart=j,Z.options=Z.setOptions(N);var Y=Z.options;Z.linkedSeries=[],Z.bindAxes(),r(Z,{name:Y.name,state:"",visible:Y.visible!==!1,selected:Y.selected===!0}),u(this,Y);var et,rt=Y.events;(rt&&rt.click||Y.point&&Y.point.events&&Y.point.events.click||Y.allowPointSelect)&&(j.runTrackerClick=!0),Z.getColor(),Z.getSymbol(),Z.parallelArrays.forEach(function(it){Z[it+"Data"]||(Z[it+"Data"]=[])}),Z.isCartesian&&(j.hasCartesianSeries=!0),$.length&&(et=$[$.length-1]),Z._i=p(et&&et._i,-1)+1,Z.opacity=Z.options.opacity,j.orderSeries(this.insert($)),Y.dataSorting&&Y.dataSorting.enabled?Z.setDataSortingOptions():Z.points||Z.data||Z.setData(Y.data,!1),i(this,"afterInit")},I.prototype.is=function(j){return S[j]&&this instanceof S[j]},I.prototype.insert=function(j){var N,Z=this.options.index;if(s(Z)){for(N=j.length;N--;)if(Z>=p(j[N].options.index,j[N]._i)){j.splice(N+1,0,this);break}N===-1&&j.unshift(this),N+=1}else j.push(this);return p(N,j.length-1)},I.prototype.bindAxes=function(){var j,N=this,Z=N.options,$=N.chart;i(this,"bindAxes",null,function(){(N.axisTypes||[]).forEach(function(Y){var et=0;$[Y].forEach(function(rt){j=rt.options,(Z[Y]===et&&!j.isInternal||Z[Y]!==void 0&&Z[Y]===j.id||Z[Y]===void 0&&j.index===0)&&(N.insert(rt.series),N[Y]=rt,rt.isDirty=!0),j.isInternal||et++}),N[Y]||N.optionalAxis===Y||e(18,!0,$)})}),i(this,"afterBindAxes")},I.prototype.updateParallelArrays=function(j,N){var Z=j.series,$=arguments,Y=s(N)?function(et){var rt=et==="y"&&Z.toYData?Z.toYData(j):j[et];Z[et+"Data"][N]=rt}:function(et){Array.prototype[N].apply(Z[et+"Data"],Array.prototype.slice.call($,2))};Z.parallelArrays.forEach(Y)},I.prototype.hasData=function(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.yData&&this.yData.length>0},I.prototype.autoIncrement=function(j){var N,Z,$=this.options,Y=$.pointIntervalUnit,et=$.relativeXValue,rt=this.chart.time,it=this.xIncrement;return it=p(it,$.pointStart,0),this.pointInterval=Z=p(this.pointInterval,$.pointInterval,1),et&&s(j)&&(Z*=j),Y&&(N=new rt.Date(it),Y==="day"?rt.set("Date",N,rt.get("Date",N)+Z):Y==="month"?rt.set("Month",N,rt.get("Month",N)+Z):Y==="year"&&rt.set("FullYear",N,rt.get("FullYear",N)+Z),Z=N.getTime()-it),et&&s(j)?it+Z:(this.xIncrement=it+Z,it)},I.prototype.setDataSortingOptions=function(){var j=this.options;r(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),l(j.pointRange)||(j.pointRange=1)},I.prototype.setOptions=function(j){var N,Z=this.chart,$=Z.options,Y=$.plotOptions,et=Z.userOptions||{},rt=A(j),it=Z.styledMode,ht={plotOptions:Y,userOptions:rt};i(this,"setOptions",ht);var dt=ht.plotOptions[this.type],bt=et.plotOptions||{};this.userOptions=ht.userOptions;var xt=A(dt,Y.series,et.plotOptions&&et.plotOptions[this.type],rt);this.tooltipOptions=A(d.tooltip,d.plotOptions.series&&d.plotOptions.series.tooltip,d.plotOptions[this.type].tooltip,$.tooltip.userOptions,Y.series&&Y.series.tooltip,Y[this.type].tooltip,rt.tooltip),this.stickyTracking=p(rt.stickyTracking,bt[this.type]&&bt[this.type].stickyTracking,bt.series&&bt.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||xt.stickyTracking),dt.marker===null&&delete xt.marker,this.zoneAxis=xt.zoneAxis;var St=this.zones=(xt.zones||[]).slice();return!xt.negativeColor&&!xt.negativeFillColor||xt.zones||(N={value:xt[this.zoneAxis+"Threshold"]||xt.threshold||0,className:"highcharts-negative"},it||(N.color=xt.negativeColor,N.fillColor=xt.negativeFillColor),St.push(N)),St.length&&l(St[St.length-1].value)&&St.push(it?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:xt}),xt},I.prototype.getName=function(){return p(this.options.name,"Series "+(this.index+1))},I.prototype.getCyclic=function(j,N,Z){var $,Y,et=this.chart,rt=this.userOptions,it=j+"Index",ht=j+"Counter",dt=Z?Z.length:p(et.options.chart[j+"Count"],et[j+"Count"]);N||(Y=p(rt[it],rt["_"+it]),l(Y)?$=Y:(et.series.length||(et[ht]=0),rt["_"+it]=$=et[ht]%dt,et[ht]+=1),Z&&(N=Z[$])),$!==void 0&&(this[it]=$),this[j]=N},I.prototype.getColor=function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||d.plotOptions[this.type].color,this.chart.options.colors)},I.prototype.getPointsCollection=function(){return(this.hasGroupedData?this.points:this.data)||[]},I.prototype.getSymbol=function(){var j=this.options.marker;this.getCyclic("symbol",j.symbol,this.chart.options.symbols)},I.prototype.findPointIndex=function(j,N){var Z,$,Y,et=j.id,rt=j.x,it=this.points,ht=this.options.dataSorting;if(et){var dt=this.chart.get(et);dt instanceof J&&(Z=dt)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){var bt=function(xt){return!xt.touched&&xt.index===j.index};if(ht&&ht.matchByName?bt=function(xt){return!xt.touched&&xt.name===j.name}:this.options.relativeXValue&&(bt=function(xt){return!xt.touched&&xt.options.x===j.x}),!(Z=n(it,bt)))return}return Z&&(Y=Z&&Z.index)!==void 0&&($=!0),Y===void 0&&s(rt)&&(Y=this.xData.indexOf(rt,N)),Y!==-1&&Y!==void 0&&this.cropped&&(Y=Y>=this.cropStart?Y-this.cropStart:Y),!$&&s(Y)&&it[Y]&&it[Y].touched&&(Y=void 0),Y},I.prototype.updateData=function(j,N){var Z,$,Y,et,rt=this.options,it=rt.dataSorting,ht=this.points,dt=[],bt=this.requireSorting,xt=j.length===ht.length,St=!0;if(this.xIncrement=null,j.forEach(function(wt,mt){var at,pt=l(wt)&&this.pointClass.prototype.optionsToObject.call({series:this},wt)||{},vt=pt.x;pt.id||s(vt)?((at=this.findPointIndex(pt,et))===-1||at===void 0?dt.push(wt):ht[at]&&wt!==rt.data[at]?(ht[at].update(wt,!1,null,!1),ht[at].touched=!0,bt&&(et=at+1)):ht[at]&&(ht[at].touched=!0),(!xt||mt!==at||it&&it.enabled||this.hasDerivedData)&&(Z=!0)):dt.push(wt)},this),Z)for($=ht.length;$--;)(Y=ht[$])&&!Y.touched&&Y.remove&&Y.remove(!1,N);else!xt||it&&it.enabled?St=!1:(j.forEach(function(wt,mt){wt!==ht[mt].y&&ht[mt].update&&ht[mt].update(wt,!1,null,!1)}),dt.length=0);return ht.forEach(function(wt){wt&&(wt.touched=!1)}),!!St&&(dt.forEach(function(wt){this.addPoint(wt,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=P(this.xData),this.autoIncrement()),!0)},I.prototype.setData=function(j,N,Z,$){N===void 0&&(N=!0);var Y,et,rt,it,ht=this,dt=ht.points,bt=dt&&dt.length||0,xt=ht.options,St=ht.chart,wt=xt.dataSorting,mt=ht.xAxis,at=xt.turboThreshold,pt=this.xData,vt=this.yData,Ct=ht.pointArrayMap,Tt=Ct&&Ct.length,At=xt.keys,Lt=0,Ot=1,_t=null;St.options.chart.allowMutatingData||(xt.data&&delete ht.options.data,ht.userOptions.data&&delete ht.userOptions.data,it=A(!0,j));var It=(j=it||j||[]).length;if(wt&&wt.enabled&&(j=this.sortData(j)),St.options.chart.allowMutatingData&&$!==!1&&It&&bt&&!ht.cropped&&!ht.hasGroupedData&&ht.visible&&!ht.boosted&&(rt=this.updateData(j,Z)),!rt){if(ht.xIncrement=null,ht.colorCounter=0,this.parallelArrays.forEach(function(zt){ht[zt+"Data"].length=0}),at&&It>at)if(_t=ht.getFirstValidPoint(j),s(_t))for(Y=0;Y<It;Y++)pt[Y]=this.autoIncrement(),vt[Y]=j[Y];else if(a(_t))if(Tt)if(_t.length===Tt)for(Y=0;Y<It;Y++)pt[Y]=this.autoIncrement(),vt[Y]=j[Y];else for(Y=0;Y<It;Y++)et=j[Y],pt[Y]=et[0],vt[Y]=et.slice(1,Tt+1);else if(At&&(Lt=(Lt=At.indexOf("x"))>=0?Lt:0,Ot=(Ot=At.indexOf("y"))>=0?Ot:1),_t.length===1&&(Ot=0),Lt===Ot)for(Y=0;Y<It;Y++)pt[Y]=this.autoIncrement(),vt[Y]=j[Y][Ot];else for(Y=0;Y<It;Y++)et=j[Y],pt[Y]=et[Lt],vt[Y]=et[Ot];else e(12,!1,St);else for(Y=0;Y<It;Y++)j[Y]!==void 0&&(et={series:ht},ht.pointClass.prototype.applyOptions.apply(et,[j[Y]]),ht.updateParallelArrays(et,Y));for(vt&&y(vt[0])&&e(14,!0,St),ht.data=[],ht.options.data=ht.userOptions.data=j,Y=bt;Y--;)dt[Y]&&dt[Y].destroy&&dt[Y].destroy();mt&&(mt.minRange=mt.userMinRange),ht.isDirty=St.isDirtyBox=!0,ht.isDirtyData=!!dt,Z=!1}xt.legendType==="point"&&(this.processData(),this.generatePoints()),N&&St.redraw(Z)},I.prototype.sortData=function(j){var N=this,Z=N.options.dataSorting.sortKey||"y",$=function(Y,et){return l(et)&&Y.pointClass.prototype.optionsToObject.call({series:Y},et)||{}};return j.forEach(function(Y,et){j[et]=$(N,Y),j[et].index=et},this),j.concat().sort(function(Y,et){var rt=c(Z,Y),it=c(Z,et);return it<rt?-1:it>rt?1:0}).forEach(function(Y,et){Y.x=et},this),N.linkedSeries&&N.linkedSeries.forEach(function(Y){var et=Y.options,rt=et.data;et.dataSorting&&et.dataSorting.enabled||!rt||(rt.forEach(function(it,ht){rt[ht]=$(Y,it),j[ht]&&(rt[ht].x=j[ht].x,rt[ht].index=ht)}),Y.setData(rt,!1))}),j},I.prototype.getProcessedData=function(j){var N,Z,$,Y,et,rt,it,ht,dt=this,bt=dt.xAxis,xt=dt.options,St=xt.cropThreshold,wt=j||dt.getExtremesFromAll||xt.getExtremesFromAll,mt=dt.isCartesian,at=bt&&bt.val2lin,pt=!(!bt||!bt.logarithmic),vt=0,Ct=dt.xData,Tt=dt.yData,At=dt.requireSorting,Lt=!1,Ot=Ct.length;for(bt&&(it=(rt=bt.getExtremes()).min,ht=rt.max,Lt=!(!bt.categories||bt.names.length)),mt&&dt.sorted&&!wt&&(!St||Ot>St||dt.forceCrop)&&(Ct[Ot-1]<it||Ct[0]>ht?(Ct=[],Tt=[]):dt.yData&&(Ct[0]<it||Ct[Ot-1]>ht)&&(Ct=(N=this.cropData(dt.xData,dt.yData,it,ht)).xData,Tt=N.yData,vt=N.start,Z=!0)),et=Ct.length||1;--et;)($=pt?at(Ct[et])-at(Ct[et-1]):Ct[et]-Ct[et-1])>0&&(Y===void 0||$<Y)?Y=$:$<0&&At&&!Lt&&(e(15,!1,dt.chart),At=!1);return{xData:Ct,yData:Tt,cropped:Z,cropStart:vt,closestPointRange:Y}},I.prototype.processData=function(j){var N=this,Z=N.xAxis;if(N.isCartesian&&!N.isDirty&&!Z.isDirty&&!N.yAxis.isDirty&&!j)return!1;var $=N.getProcessedData();N.cropped=$.cropped,N.cropStart=$.cropStart,N.processedXData=$.xData,N.processedYData=$.yData,N.closestPointRange=N.basePointRange=$.closestPointRange,i(N,"afterProcessData")},I.prototype.cropData=function(j,N,Z,$,Y){var et,rt,it=j.length,ht=0,dt=it;for(Y=p(Y,this.cropShoulder),et=0;et<it;et++)if(j[et]>=Z){ht=Math.max(0,et-Y);break}for(rt=et;rt<it;rt++)if(j[rt]>$){dt=rt+Y;break}return{xData:j.slice(ht,dt),yData:N.slice(ht,dt),start:ht,end:dt}},I.prototype.generatePoints=function(){var j,N,Z,$,Y=this,et=Y.options,rt=Y.processedData||et.data,it=Y.processedXData,ht=Y.processedYData,dt=Y.pointClass,bt=it.length,xt=Y.cropStart||0,St=Y.hasGroupedData,wt=et.keys,mt=[],at=et.dataGrouping&&et.dataGrouping.groupAll?xt:0,pt=Y.data;if(!pt&&!St){var vt=[];vt.length=rt.length,pt=Y.data=vt}for(wt&&St&&(Y.options.keys=!1),$=0;$<bt;$++)N=xt+$,St?((Z=new dt().init(Y,[it[$]].concat(k(ht[$])))).dataGroup=Y.groupMap[at+$],Z.dataGroup.options&&(Z.options=Z.dataGroup.options,r(Z,Z.dataGroup.options),delete Z.dataLabels)):(Z=pt[N])||rt[N]===void 0||(pt[N]=Z=new dt().init(Y,rt[N],it[$])),Z&&(Z.index=St?at+$:N,mt[$]=Z);if(Y.options.keys=wt,pt&&(bt!==(j=pt.length)||St))for($=0;$<j;$++)$!==xt||St||($+=bt),pt[$]&&(pt[$].destroyElements(),pt[$].plotX=void 0);Y.data=pt,Y.points=mt,i(this,"afterGeneratePoints")},I.prototype.getXExtremes=function(j){return{min:E(j),max:P(j)}},I.prototype.getExtremes=function(j,N){var Z,$,Y,et,rt,it,ht,dt=this.xAxis,bt=this.yAxis,xt=this.processedXData||this.xData,St=[],wt=this.requireSorting?this.cropShoulder:0,mt=!!bt&&bt.positiveValuesOnly,at=0,pt=0,vt=0,Ct=(j=j||this.stackedYData||this.processedYData||[]).length;for(dt&&(at=(Z=dt.getExtremes()).min,pt=Z.max),it=0;it<Ct;it++)if(et=xt[it],rt=j[it],$=(s(rt)||a(rt))&&(rt.length||rt>0||!mt),Y=N||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!dt||(xt[it+wt]||et)>=at&&(xt[it-wt]||et)<=pt,$&&Y)if(ht=rt.length)for(;ht--;)s(rt[ht])&&(St[vt++]=rt[ht]);else St[vt++]=rt;var Tt={activeYData:St,dataMin:E(St),dataMax:P(St)};return i(this,"afterGetExtremes",{dataExtremes:Tt}),Tt},I.prototype.applyExtremes=function(){var j=this.getExtremes();return this.dataMin=j.dataMin,this.dataMax=j.dataMax,j},I.prototype.getFirstValidPoint=function(j){for(var N=j.length,Z=0,$=null;$===null&&Z<N;)$=j[Z],Z++;return $},I.prototype.translate=function(){this.processedXData||this.processData(),this.generatePoints();var j,N,Z,$,Y=this,et=Y.options,rt=et.stacking,it=Y.xAxis,ht=it.categories,dt=Y.enabledDataSorting,bt=Y.yAxis,xt=Y.points,St=xt.length,wt=Y.pointPlacementToXValue(),mt=!!wt,at=et.threshold,pt=et.startFromThreshold?at:0,vt=this.zoneAxis||"y",Ct=Number.MAX_VALUE;function Tt(Xt){return M(Xt,-1e5,1e5)}for(j=0;j<St;j++){var At=xt[j],Lt=At.x,Ot=void 0,_t=void 0,It=At.y,zt=At.low,Rt=rt&&bt.stacking&&bt.stacking.stacks[(Y.negStacks&&It<(pt?0:at)?"-":"")+Y.stackKey];if((bt.positiveValuesOnly&&!bt.validatePositiveValue(It)||it.positiveValuesOnly&&!it.validatePositiveValue(Lt))&&(At.isNull=!0),At.plotX=N=x(Tt(it.translate(Lt,0,0,0,1,wt,this.type==="flags"))),rt&&Y.visible&&Rt&&Rt[Lt]&&($=Y.getStackIndicator($,Lt,Y.index),!At.isNull&&$.key&&(_t=(Ot=Rt[Lt]).points[$.key]),Ot&&a(_t)&&(zt=_t[0],It=_t[1],zt===pt&&$.key===Rt[Lt].base&&(zt=p(s(at)?at:bt.min)),bt.positiveValuesOnly&&l(zt)&&zt<=0&&(zt=void 0),At.total=At.stackTotal=p(Ot.total),At.percentage=l(At.y)&&Ot.total?At.y/Ot.total*100:void 0,At.stackY=It,Y.irregularWidths||Ot.setOffset(Y.pointXOffset||0,Y.barW||0,void 0,void 0,void 0,Y.xAxis))),At.yBottom=l(zt)?Tt(bt.translate(zt,0,1,0,1)):void 0,Y.dataModify&&(It=Y.dataModify.modifyValue(It,j)),At.plotY=void 0,s(It)){var Ut=bt.translate(It,!1,!0,!1,!0);Ut!==void 0&&(At.plotY=Tt(Ut))}At.isInside=this.isPointInside(At),At.clientX=mt?x(it.translate(Lt,0,0,0,1,wt)):N,At.negative=At[vt]<(et[vt+"Threshold"]||at||0),At.category=p(ht&&ht[At.x],At.x),At.isNull||At.visible===!1||(Z!==void 0&&(Ct=Math.min(Ct,Math.abs(N-Z))),Z=N),At.zone=this.zones.length?At.getZone():void 0,!At.graphic&&Y.group&&dt&&(At.isNew=!0)}Y.closestPointRangePx=Ct,i(this,"afterTranslate")},I.prototype.getValidPoints=function(j,N,Z){var $=this.chart;return(j||this.points||[]).filter(function(Y){return!(N&&!$.isInsidePlot(Y.plotX,Y.plotY,{inverted:$.inverted}))&&Y.visible!==!1&&(Z||!Y.isNull)})},I.prototype.getClipBox=function(){var j=this,N=j.chart,Z=j.xAxis,$=j.yAxis,Y=A(N.clipBox);return Z&&Z.len!==N.plotSizeX&&(Y.width=Z.len),$&&$.len!==N.plotSizeY&&(Y.height=$.len),Y},I.prototype.getSharedClipKey=function(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey},I.prototype.setClip=function(){var j=this,N=j.chart,Z=j.group,$=j.markerGroup,Y=N.sharedClips,et=N.renderer,rt=this.getClipBox(),it=this.getSharedClipKey(),ht=Y[it];ht?ht.animate(rt):Y[it]=ht=et.clipRect(rt),Z&&Z.clip(this.options.clip===!1?void 0:ht),$&&$.clip()},I.prototype.animate=function(j){var N=this,Z=N.chart,$=N.group,Y=N.markerGroup,et=Z.inverted,rt=w(this.options.animation),it=[this.getSharedClipKey(),rt.duration,rt.easing,rt.defer].join(","),ht=Z.sharedClips[it],dt=Z.sharedClips[it+"m"];if(j&&$){var bt=this.getClipBox();if(ht)ht.attr("height",bt.height);else{bt.width=0,et&&(bt.x=Z.plotHeight),ht=Z.renderer.clipRect(bt),Z.sharedClips[it]=ht;var xt={x:-99,y:-99,width:et?Z.plotWidth+199:99,height:et?99:Z.plotHeight+199};dt=Z.renderer.clipRect(xt),Z.sharedClips[it+"m"]=dt}$.clip(ht),Y&&Y.clip(dt)}else if(ht&&!ht.hasClass("highcharts-animating")){var St=this.getClipBox(),wt=rt.step;Y&&Y.element.childNodes.length&&(rt.step=function(mt,at){wt&&wt.apply(at,arguments),at.prop==="width"&&dt&&dt.element&&dt.attr(et?"height":"width",mt+99)}),ht.addClass("highcharts-animating").animate(St,rt)}},I.prototype.afterAnimate=function(){var j=this;this.setClip(),_(this.chart.sharedClips,function(N,Z,$){N&&!j.chart.container.querySelector('[clip-path="url(#'.concat(N.id,')"]'))&&(N.destroy(),delete $[Z])}),this.finishedAnimating=!0,i(this,"afterAnimate")},I.prototype.drawPoints=function(j){j===void 0&&(j=this.points);var N,Z,$,Y,et,rt,it,ht=this,dt=ht.chart,bt=dt.styledMode,xt=ht.colorAxis,St=ht.options.marker,wt=ht[ht.specialGroup||"markerGroup"],mt=ht.xAxis,at=p(St.enabled,!(mt&&!mt.isRadial)||null,ht.closestPointRangePx>=St.enabledThreshold*St.radius);if(St.enabled!==!1||ht._hasPointMarkers)for(N=0;N<j.length;N++)if(Y=($=(Z=j[N]).graphic)?"animate":"attr",et=Z.marker||{},rt=!!Z.marker,(at&&et.enabled===void 0||et.enabled)&&!Z.isNull&&Z.visible!==!1){var pt=p(et.symbol,ht.symbol,"rect");it=ht.markerAttribs(Z,Z.selected&&"select"),ht.enabledDataSorting&&(Z.startXPos=mt.reversed?-(it.width||0):mt.width);var vt=Z.isInside!==!1;if(!$&&vt&&((it.width||0)>0||Z.hasImage)&&(Z.graphic=$=dt.renderer.symbol(pt,it.x,it.y,it.width,it.height,rt?et:St).add(wt),ht.enabledDataSorting&&dt.hasRendered&&($.attr({x:Z.startXPos}),Y="animate")),$&&Y==="animate"&&$[vt?"show":"hide"](vt).animate(it),$){var Ct=ht.pointAttribs(Z,bt||!Z.selected?void 0:"select");bt?xt&&$.css({fill:Ct.fill}):$[Y](Ct)}$&&$.addClass(Z.getClassName(),!0)}else $&&(Z.graphic=$.destroy())},I.prototype.markerAttribs=function(j,N){var Z,$,Y=this.options,et=Y.marker,rt=j.marker||{},it=rt.symbol||et.symbol,ht={},dt=p(rt.radius,et&&et.radius);N&&(Z=et.states[N],$=rt.states&&rt.states[N],dt=p($&&$.radius,Z&&Z.radius,dt&&dt+(Z&&Z.radiusPlus||0))),j.hasImage=it&&it.indexOf("url")===0,j.hasImage&&(dt=0);var bt=j.pos();return s(dt)&&bt&&(ht.x=bt[0]-dt,ht.y=bt[1]-dt,Y.crisp&&(ht.x=Math.floor(ht.x))),dt&&(ht.width=ht.height=2*dt),ht},I.prototype.pointAttribs=function(j,N){var Z,$,Y,et,rt=this.options.marker,it=j&&j.options,ht=it&&it.marker||{},dt=it&&it.color,bt=j&&j.color,xt=j&&j.zone&&j.zone.color,St=this.color,wt=p(ht.lineWidth,rt.lineWidth),mt=1;return St=dt||xt||bt||St,Y=ht.fillColor||rt.fillColor||St,et=ht.lineColor||rt.lineColor||St,(N=N||"normal")&&(Z=rt.states[N]||{},$=ht.states&&ht.states[N]||{},wt=p($.lineWidth,Z.lineWidth,wt+p($.lineWidthPlus,Z.lineWidthPlus,0)),Y=$.fillColor||Z.fillColor||Y,et=$.lineColor||Z.lineColor||et,mt=p($.opacity,Z.opacity,mt)),{stroke:et,"stroke-width":wt,fill:Y,opacity:mt}},I.prototype.destroy=function(j){var N,Z,$,Y=this,et=Y.chart,rt=/AppleWebKit\/533/.test(v.navigator.userAgent),it=Y.data||[];for(i(Y,"destroy",{keepEventsForUpdate:j}),this.removeEvents(j),(Y.axisTypes||[]).forEach(function(ht){($=Y[ht])&&$.series&&(h($.series,Y),$.isDirty=$.forceRedraw=!0)}),Y.legendItem&&Y.chart.legend.destroyItem(Y),N=it.length;N--;)(Z=it[N])&&Z.destroy&&Z.destroy();Y.clips&&Y.clips.forEach(function(ht){return ht.destroy()}),O.clearTimeout(Y.animationTimeout),_(Y,function(ht,dt){ht instanceof D&&!ht.survive&&ht[rt&&dt==="group"?"hide":"destroy"]()}),et.hoverSeries===Y&&(et.hoverSeries=void 0),h(et.series,Y),et.orderSeries(),_(Y,function(ht,dt){j&&dt==="hcEvents"||delete Y[dt]})},I.prototype.applyZones=function(){var j,N,Z,$,Y,et,rt,it,ht,dt,bt,xt=this,St=this.chart,wt=St.renderer,mt=this.zones,at=this.clips||[],pt=this.graph,vt=this.area,Ct=Math.max(St.plotWidth,St.plotHeight),Tt=this[(this.zoneAxis||"y")+"Axis"],At=St.inverted,Lt=!1;mt.length&&(pt||vt)&&Tt&&Tt.min!==void 0?(Y=Tt.reversed,et=Tt.horiz,pt&&!this.showLine&&pt.hide(),vt&&vt.hide(),$=Tt.getExtremes(),mt.forEach(function(Ot,_t){j=Y?et?St.plotWidth:0:et?0:Tt.toPixels($.min)||0,j=M(p(N,j),0,Ct),N=M(Math.round(Tt.toPixels(p(Ot.value,$.max),!0)||0),0,Ct),Lt&&(j=N=Tt.toPixels($.max)),rt=Math.abs(j-N),it=Math.min(j,N),ht=Math.max(j,N),Tt.isXAxis?(Z={x:At?ht:it,y:0,width:rt,height:Ct},et||(Z.x=St.plotHeight-Z.x)):(Z={x:0,y:At?ht:it,width:Ct,height:rt},et&&(Z.y=St.plotWidth-Z.y)),At&&wt.isVML&&(Z=Tt.isXAxis?{x:0,y:Y?it:ht,height:Z.width,width:St.chartWidth}:{x:Z.y-St.plotLeft-St.spacingBox.x,y:0,width:Z.height,height:St.chartHeight}),at[_t]?at[_t].animate(Z):at[_t]=wt.clipRect(Z),dt=xt["zone-area-"+_t],bt=xt["zone-graph-"+_t],pt&&bt&&bt.clip(at[_t]),vt&&dt&&dt.clip(at[_t]),Lt=Ot.value>$.max,xt.resetZones&&N===0&&(N=void 0)}),this.clips=at):xt.visible&&(pt&&pt.show(),vt&&vt.show())},I.prototype.plotGroup=function(j,N,Z,$,Y){var et=this[j],rt=!et,it={visibility:Z,zIndex:$||.1};return this.opacity===void 0||this.chart.styledMode||this.state==="inactive"||(it.opacity=this.opacity),rt&&(this[j]=et=this.chart.renderer.g().add(Y)),et.addClass("highcharts-"+N+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(l(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(et.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),et.attr(it)[rt?"attr":"animate"](this.getPlotBox(N)),et},I.prototype.getPlotBox=function(j){var N=this.xAxis,Z=this.yAxis,$=this.chart,Y=$.inverted&&!$.polar&&N&&this.invertible!==!1&&j==="series";return $.inverted&&(N=Z,Z=this.xAxis),{translateX:N?N.left:$.plotLeft,translateY:Z?Z.top:$.plotTop,rotation:Y?90:0,rotationOriginX:Y?(N.len-Z.len)/2:0,rotationOriginY:Y?(N.len+Z.len)/2:0,scaleX:Y?-1:1,scaleY:1}},I.prototype.removeEvents=function(j){var N=this;j||C(N),N.eventsToUnbind.length&&(N.eventsToUnbind.forEach(function(Z){Z()}),N.eventsToUnbind.length=0)},I.prototype.render=function(){var j=this,N=j.chart,Z=j.options,$=w(Z.animation),Y=j.visible?"inherit":"hidden",et=Z.zIndex,rt=j.hasRendered,it=N.seriesGroup,ht=!j.finishedAnimating&&N.renderer.isSVG?$.duration:0;i(this,"render"),j.plotGroup("group","series",Y,et,it),j.markerGroup=j.plotGroup("markerGroup","markers",Y,et,it),Z.clip!==!1&&j.setClip(),j.animate&&ht&&j.animate(!0),j.drawGraph&&(j.drawGraph(),j.applyZones()),j.visible&&j.drawPoints(),j.drawDataLabels&&j.drawDataLabels(),j.redrawPoints&&j.redrawPoints(),j.drawTracker&&j.options.enableMouseTracking!==!1&&j.drawTracker(),j.animate&&ht&&j.animate(),rt||(ht&&$.defer&&(ht+=$.defer),j.animationTimeout=F(function(){j.afterAnimate()},ht||0)),j.isDirty=!1,j.hasRendered=!0,i(j,"afterRender")},I.prototype.redraw=function(){var j=this.isDirty||this.isDirtyData;this.translate(),this.render(),j&&delete this.kdTree},I.prototype.searchPoint=function(j,N){var Z=this,$=Z.xAxis,Y=Z.yAxis,et=Z.chart.inverted;return this.searchKDTree({clientX:et?$.len-j.chartY+$.pos:j.chartX-$.pos,plotY:et?Y.len-j.chartX+Y.pos:j.chartY-Y.pos},N,j)},I.prototype.buildKDTree=function(j){this.buildingKdTree=!0;var N=this,Z=N.options.findNearestPointBy.indexOf("y")>-1?2:1;function $(Y,et,rt){var it,ht,dt=Y&&Y.length;if(dt)return it=N.kdAxisArray[et%rt],Y.sort(function(bt,xt){return bt[it]-xt[it]}),{point:Y[ht=Math.floor(dt/2)],left:$(Y.slice(0,ht),et+1,rt),right:$(Y.slice(ht+1),et+1,rt)}}delete N.kdTree,F(function(){N.kdTree=$(N.getValidPoints(null,!N.directTouch),Z,Z),N.buildingKdTree=!1},N.options.kdNow||j&&j.type==="touchstart"?0:1)},I.prototype.searchKDTree=function(j,N,Z){var $=this,Y=this.kdAxisArray[0],et=this.kdAxisArray[1],rt=N?"distX":"dist",it=$.options.findNearestPointBy.indexOf("y")>-1?2:1;if(this.kdTree||this.buildingKdTree||this.buildKDTree(Z),this.kdTree)return function ht(dt,bt,xt,St){var wt,mt,at,pt,vt,Ct,Tt=bt.point,At=$.kdAxisArray[xt%St],Lt=Tt;pt=Tt,Ct=((vt=l((at=dt)[Y])&&l(pt[Y])?Math.pow(at[Y]-pt[Y],2):null)||0)+((l(at[et])&&l(pt[et])?Math.pow(at[et]-pt[et],2):null)||0),pt.dist=l(Ct)?Math.sqrt(Ct):Number.MAX_VALUE,pt.distX=l(vt)?Math.sqrt(vt):Number.MAX_VALUE;var Ot=dt[At]-Tt[At],_t=Ot<0?"left":"right",It=Ot<0?"right":"left";return bt[_t]&&(Lt=(wt=ht(dt,bt[_t],xt+1,St))[rt]<Lt[rt]?wt:Tt),bt[It]&&Math.sqrt(Ot*Ot)<Lt[rt]&&(Lt=(mt=ht(dt,bt[It],xt+1,St))[rt]<Lt[rt]?mt:Lt),Lt}(j,this.kdTree,it,it)},I.prototype.pointPlacementToXValue=function(){var j=this.options,N=j.pointPlacement,Z=j.pointRange,$=this.xAxis,Y=N;return Y==="between"&&(Y=$.reversed?-.5:.5),s(Y)?Y*(Z||$.pointRange):0},I.prototype.isPointInside=function(j){var N=this,Z=N.chart,$=N.xAxis,Y=N.yAxis;return j.plotY!==void 0&&j.plotX!==void 0&&j.plotY>=0&&j.plotY<=(Y?Y.len:Z.plotHeight)&&j.plotX>=0&&j.plotX<=($?$.len:Z.plotWidth)},I.prototype.drawTracker=function(){var j=this,N=j.options,Z=N.trackByArea,$=[].concat(Z?j.areaPath:j.graphPath),Y=j.chart,et=Y.pointer,rt=Y.renderer,it=Y.options.tooltip.snap,ht=j.tracker,dt=function(xt){Y.hoverSeries!==j&&j.onMouseOver()},bt="rgba(192,192,192,"+(b?1e-4:.002)+")";ht?ht.attr({d:$}):j.graph&&(j.tracker=rt.path($).attr({visibility:j.visible?"inherit":"hidden",zIndex:2}).addClass(Z?"highcharts-tracker-area":"highcharts-tracker-line").add(j.group),Y.styledMode||j.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:bt,fill:Z?bt:"none","stroke-width":j.graph.strokeWidth()+(Z?0:2*it)}),[j.tracker,j.markerGroup,j.dataLabelsGroup].forEach(function(xt){xt&&(xt.addClass("highcharts-tracker").on("mouseover",dt).on("mouseout",function(St){et.onTrackerMouseOut(St)}),N.cursor&&!Y.styledMode&&xt.css({cursor:N.cursor}),g&&xt.on("touchstart",dt))})),i(this,"afterDrawTracker")},I.prototype.addPoint=function(j,N,Z,$,Y){var et,rt,it=this,ht=it.options,dt=it.data,bt=it.chart,xt=it.xAxis,St=xt&&xt.hasNames&&xt.names,wt=ht.data,mt=it.xData;N=p(N,!0);var at={series:it};it.pointClass.prototype.applyOptions.apply(at,[j]);var pt=at.x;if(rt=mt.length,it.requireSorting&&pt<mt[rt-1])for(et=!0;rt&&mt[rt-1]>pt;)rt--;it.updateParallelArrays(at,"splice",rt,0,0),it.updateParallelArrays(at,rt),St&&at.name&&(St[pt]=at.name),wt.splice(rt,0,j),(et||it.processedData)&&(it.data.splice(rt,0,null),it.processData()),ht.legendType==="point"&&it.generatePoints(),Z&&(dt[0]&&dt[0].remove?dt[0].remove(!1):(dt.shift(),it.updateParallelArrays(at,"shift"),wt.shift())),Y!==!1&&i(it,"addPoint",{point:at}),it.isDirty=!0,it.isDirtyData=!0,N&&bt.redraw($)},I.prototype.removePoint=function(j,N,Z){var $=this,Y=$.data,et=Y[j],rt=$.points,it=$.chart,ht=function(){rt&&rt.length===Y.length&&rt.splice(j,1),Y.splice(j,1),$.options.data.splice(j,1),$.updateParallelArrays(et||{series:$},"splice",j,1),et&&et.destroy(),$.isDirty=!0,$.isDirtyData=!0,N&&it.redraw()};T(Z,it),N=p(N,!0),et?et.firePointEvent("remove",null,ht):ht()},I.prototype.remove=function(j,N,Z,$){var Y=this,et=Y.chart;function rt(){Y.destroy($),et.isDirtyLegend=et.isDirtyBox=!0,et.linkSeries(),p(j,!0)&&et.redraw(N)}Z!==!1?i(Y,"remove",null,rt):rt()},I.prototype.update=function(j,N){j=f(j,this.userOptions),i(this,"update",{options:j});var Z,$,Y=this,et=Y.chart,rt=Y.userOptions,it=Y.initialType||Y.type,ht=et.options.plotOptions,dt=S[it].prototype,bt=Y.finishedAnimating&&{animation:!1},xt={},St=["eventOptions","navigatorSeries","baseSeries"],wt=j.type||rt.type||et.options.chart.type,mt=!(this.hasDerivedData||wt&&wt!==this.type||j.pointStart!==void 0||j.pointInterval!==void 0||j.relativeXValue!==void 0||j.joinBy||j.mapData||Y.hasOptionChanged("dataGrouping")||Y.hasOptionChanged("pointStart")||Y.hasOptionChanged("pointInterval")||Y.hasOptionChanged("pointIntervalUnit")||Y.hasOptionChanged("keys"));wt=wt||it,mt&&(St.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),j.visible!==!1&&St.push("area","graph"),Y.parallelArrays.forEach(function(_t){St.push(_t+"Data")}),j.data&&(j.dataSorting&&r(Y.options.dataSorting,j.dataSorting),this.setData(j.data,!1))),j=A(rt,bt,{index:rt.index===void 0?Y.index:rt.index,pointStart:p(ht&&ht.series&&ht.series.pointStart,rt.pointStart,Y.xData[0])},!mt&&{data:Y.options.data},j),mt&&j.data&&(j.data=Y.options.data),(St=["group","markerGroup","dataLabelsGroup","transformGroup","shadowGroup"].concat(St)).forEach(function(_t){St[_t]=Y[_t],delete Y[_t]});var at=!1;if(S[wt]){if(at=wt!==Y.type,Y.remove(!1,!1,!1,!0),at)if(Object.setPrototypeOf)Object.setPrototypeOf(Y,S[wt].prototype);else{var pt=Object.hasOwnProperty.call(Y,"hcEvents")&&Y.hcEvents;for($ in dt)Y[$]=void 0;r(Y,S[wt].prototype),pt?Y.hcEvents=pt:delete Y.hcEvents}}else e(17,!0,et,{missingModuleFor:wt});if(St.forEach(function(_t){Y[_t]=St[_t]}),Y.init(et,j),mt&&this.points){if((Z=Y.options).visible===!1)xt.graphic=1,xt.dataLabel=1;else if(!Y._hasPointLabels){var vt=Z.marker,Ct=Z.dataLabels,Tt=rt.marker||{};!vt||vt.enabled!==!1&&Tt.symbol===vt.symbol&&Tt.height===vt.height&&Tt.width===vt.width||(xt.graphic=1),Ct&&Ct.enabled===!1&&(xt.dataLabel=1)}for(var At=0,Lt=this.points;At<Lt.length;At++){var Ot=Lt[At];Ot&&Ot.series&&(Ot.resolveColor(),Object.keys(xt).length&&Ot.destroyElements(xt),Z.showInLegend===!1&&Ot.legendItem&&et.legend.destroyItem(Ot))}}Y.initialType=it,et.linkSeries(),at&&Y.linkedSeries.length&&(Y.isDirtyData=!0),i(this,"afterUpdate"),p(N,!0)&&et.redraw(!!mt&&void 0)},I.prototype.setName=function(j){this.name=this.options.name=this.userOptions.name=j,this.chart.isDirtyLegend=!0},I.prototype.hasOptionChanged=function(j){var N=this.chart,Z=this.options[j],$=N.options.plotOptions,Y=this.userOptions[j];return Y?Z!==Y:Z!==p($&&$[this.type]&&$[this.type][j],$&&$.series&&$.series[j],Z)},I.prototype.onMouseOver=function(){var j=this,N=j.chart,Z=N.hoverSeries;N.pointer.setHoverChartIndex(),Z&&Z!==j&&Z.onMouseOut(),j.options.events.mouseOver&&i(j,"mouseOver"),j.setState("hover"),N.hoverSeries=j},I.prototype.onMouseOut=function(){var j=this,N=j.options,Z=j.chart,$=Z.tooltip,Y=Z.hoverPoint;Z.hoverSeries=null,Y&&Y.onMouseOut(),j&&N.events.mouseOut&&i(j,"mouseOut"),!$||j.stickyTracking||$.shared&&!j.noSharedTooltip||$.hide(),Z.series.forEach(function(et){et.setState("",!0)})},I.prototype.setState=function(j,N){var Z,$=this,Y=$.options,et=$.graph,rt=Y.inactiveOtherPoints,it=Y.states,ht=p(it[j||"normal"]&&it[j||"normal"].animation,$.chart.options.chart.animation),dt=Y.lineWidth,bt=0,xt=Y.opacity;if(j=j||"",$.state!==j&&([$.group,$.markerGroup,$.dataLabelsGroup].forEach(function(St){St&&($.state&&St.removeClass("highcharts-series-"+$.state),j&&St.addClass("highcharts-series-"+j))}),$.state=j,!$.chart.styledMode)){if(it[j]&&it[j].enabled===!1)return;if(j&&(dt=it[j].lineWidth||dt+(it[j].lineWidthPlus||0),xt=p(it[j].opacity,xt)),et&&!et.dashstyle&&s(dt))for(Z={"stroke-width":dt},et.animate(Z,ht);$["zone-graph-"+bt];)$["zone-graph-"+bt].animate(Z,ht),bt+=1;rt||[$.group,$.markerGroup,$.dataLabelsGroup,$.labelBySeries].forEach(function(St){St&&St.animate({opacity:xt},ht)})}N&&rt&&$.points&&$.setAllPointsToState(j||void 0)},I.prototype.setAllPointsToState=function(j){this.points.forEach(function(N){N.setState&&N.setState(j)})},I.prototype.setVisible=function(j,N){var Z=this,$=Z.chart,Y=$.options.chart.ignoreHiddenSeries,et=Z.visible;Z.visible=j=Z.options.visible=Z.userOptions.visible=j===void 0?!et:j;var rt=j?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(it){Z[it]&&Z[it][rt]()}),$.hoverSeries!==Z&&($.hoverPoint&&$.hoverPoint.series)!==Z||Z.onMouseOut(),Z.legendItem&&$.legend.colorizeItem(Z,j),Z.isDirty=!0,Z.options.stacking&&$.series.forEach(function(it){it.options.stacking&&it.visible&&(it.isDirty=!0)}),Z.linkedSeries.forEach(function(it){it.setVisible(j,!1)}),Y&&($.isDirtyBox=!0),i(Z,rt),N!==!1&&$.redraw()},I.prototype.show=function(){this.setVisible(!0)},I.prototype.hide=function(){this.setVisible(!1)},I.prototype.select=function(j){var N=this;N.selected=j=this.options.selected=j===void 0?!N.selected:j,N.checkbox&&(N.checkbox.checked=j),i(N,j?"select":"unselect")},I.prototype.shouldShowTooltip=function(j,N,Z){return Z===void 0&&(Z={}),Z.series=this,Z.visiblePlotOnly=!0,this.chart.isInsidePlot(j,N,Z)},I.defaultOptions=q,I.types=W.seriesTypes,I.registerType=W.registerSeriesType,I}();return r(G.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,drawLegendSymbol:K.drawLineMarker,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:J,requireSorting:!0,sorted:!0}),W.series=G,G}),st(B,"Extensions/ScrollablePlotArea.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Series/Series.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=U.stop,W=J.addEvent,D=J.createElement,O=J.defined,w=J.merge,T=J.pick;W(X,"afterSetChartSize",function(d){var u,g,b,v=this.options.chart.scrollablePlotArea,S=v&&v.minWidth,P=v&&v.minHeight;this.renderer.forExport||(S?(this.scrollablePixelsX=u=Math.max(0,S-this.chartWidth),u&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=w(this.plotBox),this.plotBox.width=this.plotWidth+=u,this.inverted?this.clipBox.height+=u:this.clipBox.width+=u,b={1:{name:"right",value:u}})):P&&(this.scrollablePixelsY=g=Math.max(0,P-this.chartHeight),O(g)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=w(this.plotBox),this.plotBox.height=this.plotHeight+=g,this.inverted?this.clipBox.width+=g:this.clipBox.height+=g,b={2:{name:"bottom",value:g}})),b&&!d.skipAxes&&this.axes.forEach(function(E){b[E.side]?E.getPlotLinePath=function(){var M,f=b[E.side].name,x=b[E.side].value,l=this[f];return this[f]=l-x,M=z.prototype.getPlotLinePath.apply(this,arguments),this[f]=l,M}:(E.setAxisSize(),E.setAxisTranslation())}))}),W(X,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),X.prototype.setUpScrolling=function(){var d,u=this,g={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(g.overflowX="auto"),this.scrollablePixelsY&&(g.overflowY="auto"),this.scrollingParent=D("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=D("div",{className:"highcharts-scrolling"},g,this.scrollingParent),W(this.scrollingContainer,"scroll",function(){u.pointer&&(delete u.pointer.chartPosition,u.hoverPoint&&(d=u.hoverPoint),u.pointer.runPointActions(void 0,d,!0))}),this.innerContainer=D("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},X.prototype.moveFixedElements=function(){var d,u=this.container,g=this.fixedRenderer,b=[".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?d=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?d=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(d=".highcharts-yaxis"),d&&b.push(d+":not(.highcharts-radial-axis)",d+"-labels:not(.highcharts-radial-axis-labels)"),b.forEach(function(v){[].forEach.call(u.querySelectorAll(v),function(S){(S.namespaceURI===g.SVG_NS?g.box:g.box.parentNode).appendChild(S),S.style.pointerEvents="auto"})})},X.prototype.applyFixed=function(){var d,u,g,b=!this.fixedDiv,v=this.options.chart,S=v.scrollablePlotArea,P=K.getRendererType();b?(this.fixedDiv=D("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(v.style&&v.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=d=new P(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=d.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":T(S.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),W(this,"afterShowResetZoom",this.moveFixedElements),W(this,"afterApplyDrilldown",this.moveFixedElements),W(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||b)&&(this.scrollableDirty=!1,this.moveFixedElements()),u=this.chartWidth+(this.scrollablePixelsX||0),g=this.chartHeight+(this.scrollablePixelsY||0),q(this.container),this.container.style.width=u+"px",this.container.style.height=g+"px",this.renderer.boxWrapper.attr({width:u,height:g,viewBox:[0,0,u,g].join(" ")}),this.chartBackground.attr({width:u,height:g}),this.scrollingContainer.style.height=this.chartHeight+"px",b&&(S.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*S.scrollPositionX),S.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*S.scrollPositionY));var E,M=this.axisOffset,f=this.plotTop-M[0]-1,x=this.plotLeft-M[3]-1,l=this.plotTop+this.plotHeight+M[2]+1,h=this.plotLeft+this.plotWidth+M[1]+1,e=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),r=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);E=this.scrollablePixelsX?[["M",0,f],["L",this.plotLeft-1,f],["L",this.plotLeft-1,l],["L",0,l],["Z"],["M",e,f],["L",this.chartWidth,f],["L",this.chartWidth,l],["L",e,l],["Z"]]:this.scrollablePixelsY?[["M",x,0],["L",x,this.plotTop-1],["L",h,this.plotTop-1],["L",h,0],["Z"],["M",x,r],["L",x,this.chartHeight],["L",h,this.chartHeight],["L",h,r],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:E})},W(z,"afterInit",function(){this.chart.scrollableDirty=!0}),W(V,"show",function(){this.chart.scrollableDirty=!0})}),st(B,"Core/Axis/Stacking/StackItem.js",[B["Core/FormatUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V=U.format,K=z.series,J=X.destroyObjectProperties,q=X.pick,W=X.isNumber;return function(){function D(O,w,T,d,u){var g=O.chart.inverted,b=O.reversed;this.axis=O;var v=this.isNegative=!!T!=!!b;this.options=w=w||{},this.x=d,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=u,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:w.align||(g?v?"left":"right":"center"),verticalAlign:w.verticalAlign||(g?"middle":v?"bottom":"top"),y:w.y,x:w.x},this.textAlign=w.textAlign||(g?v?"right":"left":"center")}return D.prototype.destroy=function(){J(this,this.axis)},D.prototype.render=function(O){var w=this.axis.chart,T=this.options,d=T.format,u=d?V(d,this,w):T.formatter.call(this);if(this.label)this.label.attr({text:u,visibility:"hidden"});else{this.label=w.renderer.label(u,null,void 0,T.shape,void 0,void 0,T.useHTML,!1,"stack-labels");var g={r:T.borderRadius||0,text:u,padding:q(T.padding,5),visibility:"hidden"};w.styledMode||(g.fill=T.backgroundColor,g.stroke=T.borderColor,g["stroke-width"]=T.borderWidth,this.label.css(T.style||{})),this.label.attr(g),this.label.added||this.label.add(O)}this.label.labelrank=w.plotSizeY},D.prototype.setOffset=function(O,w,T,d,u,g){var b=this,v=b.alignOptions,S=b.axis,P=b.label,E=b.options,M=b.textAlign,f=S.chart,x=this.getStackBox({xOffset:O,width:w,boxBottom:T,boxTop:d,defaultX:u,xAxis:g}),l=v.verticalAlign;if(P&&x){var h=P.getBBox(),e=P.padding,r=q(E.overflow,"justify")==="justify",n=void 0;v.x=E.x||0,v.y=E.y||0;var i=this.adjustStackPosition({labelBox:h,verticalAlign:l,textAlign:M}),c=i.x,a=i.y;x.x-=c,x.y-=a,P.align(v,!1,x),(n=f.isInsidePlot(P.alignAttr.x+v.x+c,P.alignAttr.y+v.y+a))||(r=!1),r&&K.prototype.justifyDataLabel.call(S,P,v,P.alignAttr,h,x),P.attr({x:P.alignAttr.x,y:P.alignAttr.y,rotation:E.rotation,rotationOriginX:h.width/2,rotationOriginY:h.height/2}),q(!r&&E.crop,!0)&&(n=W(P.x)&&W(P.y)&&f.isInsidePlot(P.x-e+P.width,P.y)&&f.isInsidePlot(P.x+e,P.y)),P[n?"show":"hide"]()}},D.prototype.adjustStackPosition=function(O){var w=O.labelBox,T=O.verticalAlign,d=O.textAlign,u={bottom:0,middle:1,top:2,right:1,center:0,left:-1},g=u[T],b=u[d];return{x:w.width/2+w.width/2*b,y:w.height/2*g}},D.prototype.getStackBox=function(O){var w=this.axis,T=w.chart,d=O.boxTop,u=O.defaultX,g=O.xOffset,b=O.width,v=O.boxBottom,S=w.stacking.usePercentage?100:q(d,this.total,0),P=w.toPixels(S),E=O.xAxis||T.xAxis[0],M=q(u,E.toPixels(this.x))+g,f=w.toPixels(v||0),x=Math.abs(P-f),l=T.inverted,h=this.isNegative;return l?{x:(h?P:P-x)-T.plotLeft,y:M-T.plotTop,width:x,height:b}:{x:M-T.plotLeft,y:(h?P-x:P)-T.plotTop,width:b,height:x}},D}()}),st(B,"Core/Axis/Stacking/StackingAxis.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=U.getDeferredAnimation,q=X.series.prototype,W=K.addEvent,D=K.correctFloat,O=K.defined,w=K.destroyObjectProperties,T=K.fireEvent,d=K.isArray,u=K.isNumber,g=K.objectEach,b=K.pick;function v(){var r=this,n=r.inverted;r.yAxis.forEach(function(i){i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),r.series.forEach(function(i){var c=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&r.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,b(i.options.stack,""),n?c.top:c.left,n?c.height:c.width].join(","))})}function S(){var r=this.stacking;if(r){var n=r.stacks;g(n,function(i,c){w(i),n[c]=null}),r&&r.stackTotalGroup&&r.stackTotalGroup.destroy()}}function P(){this.coll!=="yAxis"||this.stacking||(this.stacking=new e(this))}function E(r,n,i,c){return!O(r)||r.x!==n||c&&r.stackKey!==c?r={x:n,index:0,key:c,stackKey:c}:r.index++,r.key=[i,n,r.index].join(","),r}function M(){var r,n=this,i=n.yAxis,c=n.stackKey,a=i.stacking.stacks,s=n.processedXData,y=n.options.stacking,A=n[y+"Stacker"];A&&[c,"-"+c].forEach(function(_){for(var p,C,k,F=s.length;F--;)p=s[F],r=n.getStackIndicator(r,p,n.index,_),(k=(C=a[_]&&a[_][p])&&C.points[r.key])&&A.call(n,k,C,F)})}function f(r,n,i){var c=n.total?100/n.total:0;r[0]=D(r[0]*c),r[1]=D(r[1]*c),this.stackedYData[i]=r[1]}function x(){var r=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&this.chart.series.length>1?q.setStackedPoints.call(this,"group"):r&&g(r.stacks,function(n,i){i.slice(-5)==="group"&&(g(n,function(c){return c.destroy()}),delete r.stacks[i])})}function l(r){var n=this.chart,i=r||this.options.stacking;if(i&&(this.visible===!0||n.options.chart.ignoreHiddenSeries===!1)){var c,a,s,y,A,_,p,C,k,F=this,G=F.processedXData,I=F.processedYData,j=[],N=I.length,Z=F.options,$=Z.threshold,Y=b(Z.startFromThreshold&&$,0),et=Z.stack,rt=r?""+F.type+",".concat(i):F.stackKey,it="-"+rt,ht=F.negStacks,dt=i==="group"?n.yAxis[0]:F.yAxis,bt=dt.stacking.stacks,xt=dt.stacking.oldStacks;for(dt.stacking.stacksTouched+=1,p=0;p<N;p++)C=G[p],k=I[p],_=(c=F.getStackIndicator(c,C,F.index)).key,bt[A=(a=ht&&k<(Y?0:$))?it:rt]||(bt[A]={}),bt[A][C]||(xt[A]&&xt[A][C]?(bt[A][C]=xt[A][C],bt[A][C].total=null):bt[A][C]=new V(dt,dt.options.stackLabels,!!a,C,et)),s=bt[A][C],k!==null?(s.points[_]=s.points[F.index]=[b(s.cumulative,Y)],O(s.cumulative)||(s.base=_),s.touched=dt.stacking.stacksTouched,c.index>0&&F.singleStacks===!1&&(s.points[_][0]=s.points[F.index+","+C+",0"][0])):s.points[_]=s.points[F.index]=null,i==="percent"?(y=a?rt:it,ht&&bt[y]&&bt[y][C]?(y=bt[y][C],s.total=y.total=Math.max(y.total,s.total)+Math.abs(k)||0):s.total=D(s.total+(Math.abs(k)||0))):i==="group"?(d(k)&&(k=k[0]),k!==null&&(s.total=(s.total||0)+1)):s.total=D(s.total+(k||0)),s.cumulative=i==="group"?(s.total||1)-1:b(s.cumulative,Y)+(k||0),k!==null&&(s.points[_].push(s.cumulative),j[p]=s.cumulative,s.hasValidPoints=!0);i==="percent"&&(dt.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=j),dt.stacking.oldStacks={}}}var h,e=function(){function r(n){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=n}return r.prototype.buildStacks=function(){var n,i,c=this.axis,a=c.series,s=c.options.reversedStacks,y=a.length;for(this.usePercentage=!1,i=y;i--;)(n=a[s?i:y-i-1]).setStackedPoints(),n.setGroupedPoints();for(i=0;i<y;i++)a[i].modifyStacks();T(c,"afterBuildStacks")},r.prototype.cleanStacks=function(){var n,i=this;i.oldStacks&&(n=i.stacks=i.oldStacks),g(n,function(c){g(c,function(a){a.cumulative=a.total})})},r.prototype.resetStacks=function(){var n=this;g(this.stacks,function(i){g(i,function(c,a){u(c.touched)&&c.touched<n.stacksTouched?(c.destroy(),delete i[a]):(c.total=null,c.cumulative=null)})})},r.prototype.renderStackTotals=function(){var n=this,i=n.axis,c=i.chart,a=c.renderer,s=n.stacks,y=i.options.stackLabels&&i.options.stackLabels.animation,A=J(c,y||!1),_=n.stackTotalGroup=n.stackTotalGroup||a.g("stack-labels").attr({zIndex:6,opacity:0}).add();_.translate(c.plotLeft,c.plotTop),g(s,function(p){g(p,function(C){C.render(_)})}),_.animate({opacity:1},A)},r}();return function(r){var n=[];r.compose=function(i,c,a){if(n.indexOf(i)===-1&&(n.push(i),W(i,"init",P),W(i,"destroy",S)),n.indexOf(c)===-1&&(n.push(c),c.prototype.getStacks=v),n.indexOf(a)===-1){n.push(a);var s=a.prototype;s.getStackIndicator=E,s.modifyStacks=M,s.percentStacker=f,s.setGroupedPoints=x,s.setStackedPoints=l}}}(h||(h={})),h}),st(B,"Series/Line/LineSeries.js",[B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(D,O){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var d in T)T.hasOwnProperty(d)&&(w[d]=T[d])},V(D,O)},function(D,O){function w(){this.constructor=D}V(D,O),D.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),J=X.defined,q=X.merge,W=function(D){function O(){var w=D!==null&&D.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return K(O,D),O.prototype.drawGraph=function(){var w=this,T=this.options,d=(this.gappedPath||this.getGraphPath).call(this),u=this.chart.styledMode,g=[["graph","highcharts-graph"]];u||g[0].push(T.lineColor||this.color||"#cccccc",T.dashStyle),(g=w.getZonesGraphs(g)).forEach(function(b,v){var S,P=b[0],E=w[P],M=E?"animate":"attr";E?(E.endX=w.preventGraphAnimation?null:d.xMap,E.animate({d})):d.length&&(w[P]=E=w.chart.renderer.path(d).addClass(b[1]).attr({zIndex:1}).add(w.group)),E&&!u&&(S={stroke:b[2],"stroke-width":T.lineWidth||0,fill:w.fillGraph&&w.color||"none"},b[3]?S.dashstyle=b[3]:T.linecap!=="square"&&(S["stroke-linecap"]=S["stroke-linejoin"]="round"),E[M](S).shadow(v<2&&T.shadow)),E&&(E.startX=d.xMap,E.isArea=d.isArea)})},O.prototype.getGraphPath=function(w,T,d){var u,g=this,b=g.options,v=[],S=[],P=b.step,E=(w=w||g.points).reversed;return E&&w.reverse(),(P={right:1,center:2}[P]||P&&3)&&E&&(P=4-P),(w=this.getValidPoints(w,!1,!(b.connectNulls&&!T&&!d))).forEach(function(M,f){var x,l=M.plotX,h=M.plotY,e=w[f-1];(M.leftCliff||e&&e.rightCliff)&&!d&&(u=!0),M.isNull&&!J(T)&&f>0?u=!b.connectNulls:M.isNull&&!T?u=!0:(f===0||u?x=[["M",M.plotX,M.plotY]]:g.getPointSpline?x=[g.getPointSpline(w,M,f)]:P?(x=P===1?[["L",e.plotX,h]]:P===2?[["L",(e.plotX+l)/2,e.plotY],["L",(e.plotX+l)/2,h]]:[["L",l,e.plotY]]).push(["L",l,h]):x=[["L",l,h]],S.push(M.x),P&&(S.push(M.x),P===2&&S.push(M.x)),v.push.apply(v,x),u=!1)}),v.xMap=S,g.graphPath=v,v},O.prototype.getZonesGraphs=function(w){return this.zones.forEach(function(T,d){var u=["zone-graph-"+d,"highcharts-graph highcharts-zone-graph-"+d+" "+(T.className||"")];this.chart.styledMode||u.push(T.color||this.color,T.dashStyle||this.options.dashStyle),w.push(u)},this),w},O.defaultOptions=q(U.defaultOptions,{}),O}(U);return z.registerSeriesType("line",W),W}),st(B,"Series/Area/AreaSeries.js",[B["Core/Color/Color.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(u,g){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var S in v)v.hasOwnProperty(S)&&(b[S]=v[S])},K(u,g)},function(u,g){function b(){this.constructor=u}K(u,g),u.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}),q=U.parse,W=X.seriesTypes.line,D=V.extend,O=V.merge,w=V.objectEach,T=V.pick,d=function(u){function g(){var b=u!==null&&u.apply(this,arguments)||this;return b.data=void 0,b.options=void 0,b.points=void 0,b}return J(g,u),g.prototype.drawGraph=function(){this.areaPath=[],u.prototype.drawGraph.apply(this);var b=this,v=this.areaPath,S=this.options,P=this.zones,E=[["area","highcharts-area",this.color,S.fillColor]];P.forEach(function(M,f){E.push(["zone-area-"+f,"highcharts-area highcharts-zone-area-"+f+" "+M.className,M.color||b.color,M.fillColor||S.fillColor])}),E.forEach(function(M){var f=M[0],x={},l=b[f],h=l?"animate":"attr";l?(l.endX=b.preventGraphAnimation?null:v.xMap,l.animate({d:v})):(x.zIndex=0,(l=b[f]=b.chart.renderer.path(v).addClass(M[1]).add(b.group)).isArea=!0),b.chart.styledMode||(x.fill=T(M[3],q(M[2]).setOpacity(T(S.fillOpacity,.75)).get())),l[h](x),l.startX=v.xMap,l.shiftUnit=S.step?2:1})},g.prototype.getGraphPath=function(b){var v,S,P,E=W.prototype.getGraphPath,M=this.options,f=M.stacking,x=this.yAxis,l=[],h=[],e=this.index,r=x.stacking.stacks[this.stackKey],n=M.threshold,i=Math.round(x.getThreshold(M.threshold)),c=T(M.connectNulls,f==="percent"),a=function(F,G,I){var j,N,Z=b[F],$=f&&r[Z.x].points[e],Y=Z[I+"Null"]||0,et=Z[I+"Cliff"]||0,rt=!0;et||Y?(j=(Y?$[0]:$[1])+et,N=$[0]+et,rt=!!Y):!f&&b[G]&&b[G].isNull&&(j=N=n),j!==void 0&&(h.push({plotX:v,plotY:j===null?i:x.getThreshold(j),isNull:rt,isCliff:!0}),l.push({plotX:v,plotY:N===null?i:x.getThreshold(N),doCurve:!1}))};b=b||this.points,f&&(b=this.getStackPoints(b));for(var s=0,y=b.length;s<y;++s)f||(b[s].leftCliff=b[s].rightCliff=b[s].leftNull=b[s].rightNull=void 0),S=b[s].isNull,v=T(b[s].rectPlotX,b[s].plotX),P=f?T(b[s].yBottom,i):i,S&&!c||(c||a(s,s-1,"left"),S&&!f&&c||(h.push(b[s]),l.push({x:s,plotX:v,plotY:P})),c||a(s,s+1,"right"));var A=E.call(this,h,!0,!0);l.reversed=!0;var _=E.call(this,l,!0,!0),p=_[0];p&&p[0]==="M"&&(_[0]=["L",p[1],p[2]]);var C=A.concat(_);C.length&&C.push(["Z"]);var k=E.call(this,h,!1,c);return C.xMap=A.xMap,this.areaPath=C,k},g.prototype.getStackPoints=function(b){var v=this,S=[],P=[],E=this.xAxis,M=this.yAxis,f=M.stacking.stacks[this.stackKey],x={},l=M.series,h=l.length,e=M.options.reversedStacks?1:-1,r=l.indexOf(v);if(b=b||this.points,this.options.stacking){for(var n=0;n<b.length;n++)b[n].leftNull=b[n].rightNull=void 0,x[b[n].x]=b[n];w(f,function(c,a){c.total!==null&&P.push(a)}),P.sort(function(c,a){return c-a});var i=l.map(function(c){return c.visible});P.forEach(function(c,a){var s,y,A=0;if(x[c]&&!x[c].isNull)S.push(x[c]),[-1,1].forEach(function(C){var k=C===1?"rightNull":"leftNull",F=C===1?"rightCliff":"leftCliff",G=f[P[a+C]],I=0;if(G)for(var j=r;j>=0&&j<h;){var N=l[j].index;(s=G.points[N])||(N===v.index?x[c][k]=!0:i[j]&&(y=f[c].points[N])&&(I-=y[1]-y[0])),j+=e}x[c][F]=I});else{for(var _=r;_>=0&&_<h;){var p=l[_].index;if(s=f[c].points[p]){A=s[1];break}_+=e}A=T(A,0),A=M.translate(A,0,1,0,1),S.push({isNull:!0,plotX:E.translate(c,0,0,0,1),x:c,plotY:A,yBottom:A})}})}return S},g.defaultOptions=O(W.defaultOptions,{threshold:0}),g}(W);return D(d.prototype,{singleStacks:!1,drawLegendSymbol:z.drawRectangle}),X.registerSeriesType("area",d),d}),st(B,"Series/Spline/SplineSeries.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(D,O){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var d in T)T.hasOwnProperty(d)&&(w[d]=T[d])},X(D,O)},function(D,O){function w(){this.constructor=D}X(D,O),D.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),K=U.seriesTypes.line,J=z.merge,q=z.pick,W=function(D){function O(){var w=D!==null&&D.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return V(O,D),O.prototype.getPointSpline=function(w,T,d){var u,g,b,v,S=1.5,P=2.5,E=T.plotX||0,M=T.plotY||0,f=w[d-1],x=w[d+1];function l(a){return a&&!a.isNull&&a.doCurve!==!1&&!T.isCliff}if(l(f)&&l(x)){var h=f.plotX||0,e=f.plotY||0,r=x.plotX||0,n=x.plotY||0,i=0;g=(S*M+e)/P,v=(S*M+n)/P,(b=(S*E+r)/P)!=(u=(S*E+h)/P)&&(i=(v-g)*(b-E)/(b-u)+M-v),v+=i,(g+=i)>e&&g>M?v=2*M-(g=Math.max(e,M)):g<e&&g<M&&(v=2*M-(g=Math.min(e,M))),v>n&&v>M?g=2*M-(v=Math.max(n,M)):v<n&&v<M&&(g=2*M-(v=Math.min(n,M))),T.rightContX=b,T.rightContY=v}var c=["C",q(f.rightContX,f.plotX,0),q(f.rightContY,f.plotY,0),q(u,E,0),q(g,M,0),E,M];return f.rightContX=f.rightContY=void 0,c},O.defaultOptions=J(K.defaultOptions),O}(K);return U.registerSeriesType("spline",W),W}),st(B,"Series/AreaSpline/AreaSplineSeries.js",[B["Series/Spline/SplineSeries.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(d,u){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},K(d,u)},function(d,u){function g(){this.constructor=d}K(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),q=X.seriesTypes,W=q.area,D=q.area.prototype,O=V.extend,w=V.merge,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.data=void 0,g.points=void 0,g.options=void 0,g}return J(u,d),u.defaultOptions=w(U.defaultOptions,W.defaultOptions),u}(U);return O(T.prototype,{getGraphPath:D.getGraphPath,getStackPoints:D.getStackPoints,drawGraph:D.drawGraph,drawLegendSymbol:z.drawRectangle}),X.registerSeriesType("areaspline",T),T}),st(B,"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"}}),st(B,"Series/Column/ColumnSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeriesDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W){var D,O=this&&this.__extends||(D=function(h,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},D(h,e)},function(h,e){function r(){this.constructor=h}D(h,e),h.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),w=U.animObject,T=z.parse,d=V.hasTouch,u=V.noop,g=W.clamp,b=W.defined,v=W.extend,S=W.fireEvent,P=W.isArray,E=W.isNumber,M=W.merge,f=W.pick,x=W.objectEach,l=function(h){function e(){var r=h!==null&&h.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 O(e,h),e.prototype.animate=function(r){var n,i,c=this,a=this.yAxis,s=c.options,y=this.chart.inverted,A={},_=y?"translateX":"translateY";r?(A.scaleY=.001,i=g(a.toPixels(s.threshold),a.pos,a.pos+a.len),y?A.translateX=i-a.len:A.translateY=i,c.clipBox&&c.setClip(),c.group.attr(A)):(n=Number(c.group.attr(_)),c.group.animate({scaleY:1},v(w(c.options.animation),{step:function(p,C){c.group&&(A[_]=n+C.pos*(a.pos-n),c.group.attr(A))}})))},e.prototype.init=function(r,n){h.prototype.init.apply(this,arguments);var i=this;(r=i.chart).hasRendered&&r.series.forEach(function(c){c.type===i.type&&(c.isDirty=!0)})},e.prototype.getColumnMetrics=function(){var r,n=this,i=n.options,c=n.xAxis,a=n.yAxis,s=c.options.reversedStacks,y=c.reversed&&!s||!c.reversed&&s,A={},_=0;i.grouping===!1?_=1:n.chart.series.forEach(function(I){var j,N=I.yAxis,Z=I.options;I.type!==n.type||!I.visible&&n.chart.options.chart.ignoreHiddenSeries||a.len!==N.len||a.pos!==N.pos||(Z.stacking&&Z.stacking!=="group"?(r=I.stackKey,A[r]===void 0&&(A[r]=_++),j=A[r]):Z.grouping!==!1&&(j=_++),I.columnIndex=j)});var p=Math.min(Math.abs(c.transA)*(c.ordinal&&c.ordinal.slope||i.pointRange||c.closestPointRange||c.tickInterval||1),c.len),C=p*i.groupPadding,k=(p-2*C)/(_||1),F=Math.min(i.maxPointWidth||c.len,f(i.pointWidth,k*(1-2*i.pointPadding))),G=(k-F)/2+(C+((n.columnIndex||0)+(y?1:0))*k-p/2)*(y?-1:1);return n.columnMetrics={width:F,offset:G,paddedWidth:k,columnCount:_},n.columnMetrics},e.prototype.crispCol=function(r,n,i,c){var a=this.chart,s=this.borderWidth,y=-(s%2?.5:0),A=s%2?.5:1;a.inverted&&a.renderer.isVML&&(A+=1),this.options.crisp&&(i=Math.round(r+i)+y-(r=Math.round(r)+y));var _=Math.round(n+c)+A,p=Math.abs(n)<=.5&&_>.5;return c=_-(n=Math.round(n)+A),p&&c&&(n-=1,c+=1),{x:r,y:n,width:i,height:c}},e.prototype.adjustForMissingColumns=function(r,n,i,c){var a=this,s=this.options.stacking;if(!i.isNull&&c.columnCount>1){var y=this.yAxis.options.reversedStacks,A=0,_=y?0:-c.columnCount;x(this.yAxis.stacking&&this.yAxis.stacking.stacks,function(C){if(typeof i.x=="number"){var k=C[i.x.toString()];if(k){var F=k.points[a.index];if(s)F&&(A=_),k.hasValidPoints&&(y?_++:_--);else if(P(F)){var G=Object.keys(k.points).filter(function(I){return!I.match(",")&&k.points[I]&&k.points[I].length>1}).map(parseFloat).sort(function(I,j){return j-I});A=G.indexOf(a.index),_=G.length}}}});var p=(_-1)*c.paddedWidth+n;r=(i.plotX||0)+p/2-n-A*c.paddedWidth}return r},e.prototype.translate=function(){var r=this,n=r.chart,i=r.options,c=r.dense=r.closestPointRange*r.xAxis.transA<2,a=r.borderWidth=f(i.borderWidth,c?0:1),s=r.xAxis,y=r.yAxis,A=i.threshold,_=r.translatedThreshold=y.getThreshold(A),p=f(i.minPointLength,5),C=r.getColumnMetrics(),k=C.width,F=r.pointXOffset=C.offset,G=r.dataMin,I=r.dataMax,j=r.barW=Math.max(k,1+2*a);n.inverted&&(_-=.5),i.pointPadding&&(j=Math.ceil(j)),J.prototype.translate.apply(r),r.points.forEach(function(N){var Z,$=f(N.yBottom,_),Y=999+Math.abs($),et=N.plotX||0,rt=g(N.plotY,-Y,y.len+Y),it=Math.min(rt,$),ht=Math.max(rt,$)-it,dt=k,bt=et+F,xt=j;p&&Math.abs(ht)<p&&(ht=p,Z=!y.reversed&&!N.negative||y.reversed&&N.negative,E(A)&&E(I)&&N.y===A&&I<=A&&(y.min||0)<A&&(G!==I||(y.max||0)<=A)&&(Z=!Z),it=Math.abs(it-_)>p?$-p:_-(Z?p:0)),b(N.options.pointWidth)&&(dt=xt=Math.ceil(N.options.pointWidth),bt-=Math.round((dt-k)/2)),i.centerInCategory&&(bt=r.adjustForMissingColumns(bt,dt,N,C)),N.barX=bt,N.pointWidth=dt,N.tooltipPos=n.inverted?[g(y.len+y.pos-n.plotLeft-rt,y.pos-n.plotLeft,y.len+y.pos-n.plotLeft),s.len+s.pos-n.plotTop-bt-xt/2,ht]:[s.left-n.plotLeft+bt+xt/2,g(rt+y.pos-n.plotTop,y.pos-n.plotTop,y.len+y.pos-n.plotTop),ht],N.shapeType=r.pointClass.prototype.shapeType||"rect",N.shapeArgs=r.crispCol.apply(r,N.isNull?[bt,_,xt,0]:[bt,it,xt,ht])})},e.prototype.drawGraph=function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},e.prototype.pointAttribs=function(r,n){var i,c,a,s=this.options,y=this.pointAttrToOptions||{},A=y.stroke||"borderColor",_=y["stroke-width"]||"borderWidth",p=r&&r.color||this.color,C=r&&r[A]||s[A]||p,k=r&&r.options.dashStyle||s.dashStyle,F=r&&r[_]||s[_]||this[_]||0,G=f(r&&r.opacity,s.opacity,1);r&&this.zones.length&&(c=r.getZone(),p=r.options.color||c&&(c.color||r.nonZonedColor)||this.color,c&&(C=c.borderColor||C,k=c.dashStyle||k,F=c.borderWidth||F)),n&&r&&(a=(i=M(s.states[n],r.options.states&&r.options.states[n]||{})).brightness,p=i.color||a!==void 0&&T(p).brighten(i.brightness).get()||p,C=i[A]||C,F=i[_]||F,k=i.dashStyle||k,G=f(i.opacity,G));var I={fill:p,stroke:C,"stroke-width":F,opacity:G};return k&&(I.dashstyle=k),I},e.prototype.drawPoints=function(r){r===void 0&&(r=this.points);var n,i=this,c=this.chart,a=i.options,s=c.renderer,y=a.animationLimit||250;r.forEach(function(A){var _=A.plotY,p=A.graphic,C=!!p,k=p&&c.pointCount<y?"animate":"attr";E(_)&&A.y!==null?(n=A.shapeArgs,p&&A.hasNewShapeType()&&(p=p.destroy()),i.enabledDataSorting&&(A.startXPos=i.xAxis.reversed?-(n&&n.width||0):i.xAxis.width),p||(A.graphic=p=s[A.shapeType](n).add(A.group||i.group),p&&i.enabledDataSorting&&c.hasRendered&&c.pointCount<y&&(p.attr({x:A.startXPos}),C=!0,k="animate")),p&&C&&p[k](M(n)),a.borderRadius&&p[k]({r:a.borderRadius}),c.styledMode||p[k](i.pointAttribs(A,A.selected&&"select")).shadow(A.allowShadow!==!1&&a.shadow,null,a.stacking&&!a.borderRadius),p&&(p.addClass(A.getClassName(),!0),p.attr({visibility:A.visible?"inherit":"hidden"}))):p&&(A.graphic=p.destroy())})},e.prototype.drawTracker=function(r){r===void 0&&(r=this.points);var n,i=this,c=i.chart,a=c.pointer,s=function(y){var A=a.getPointFromEvent(y);A!==void 0&&(a.isDirectTouch=!0,A.onMouseOver(y))};r.forEach(function(y){n=P(y.dataLabels)?y.dataLabels:y.dataLabel?[y.dataLabel]:[],y.graphic&&(y.graphic.element.point=y),n.forEach(function(A){A.div?A.div.point=y:A.element.point=y})}),i._hasTracking||(i.trackerGroups.forEach(function(y){i[y]&&(i[y].addClass("highcharts-tracker").on("mouseover",s).on("mouseout",function(A){a.onTrackerMouseOut(A)}),d&&i[y].on("touchstart",s),!c.styledMode&&i.options.cursor&&i[y].css({cursor:i.options.cursor}))}),i._hasTracking=!0),S(this,"afterDrawTracker")},e.prototype.remove=function(){var r=this,n=r.chart;n.hasRendered&&n.series.forEach(function(i){i.type===r.type&&(i.isDirty=!0)}),J.prototype.remove.apply(r,arguments)},e.defaultOptions=M(J.defaultOptions,X),e}(J);return v(l.prototype,{cropShoulder:0,directTouch:!0,drawLegendSymbol:K.drawRectangle,getSymbol:u,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),q.registerSeriesType("column",l),l}),st(B,"Core/Series/DataLabel.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=U.getDeferredAnimation,J=z.format,q=X.defined,W=X.extend,D=X.fireEvent,O=X.isArray,w=X.isString,T=X.merge,d=X.objectEach,u=X.pick,g=X.splat;return function(b){var v=[];function S(x,l,h,e,r){var n,i,c,a=this,s=this.chart,y=this.isCartesian&&s.inverted,A=this.enabledDataSorting,_=x.plotX,p=x.plotY,C=h.rotation,k=h.align,F=q(_)&&q(p)&&s.isInsidePlot(_,Math.round(p),{inverted:y,paneCoordinates:!0,series:a}),G=function(rt){A&&a.xAxis&&!I&&a.setDataLabelStartPos(x,l,r,F,rt)},I=u(h.overflow,A?"none":"justify")==="justify",j=this.visible&&x.visible!==!1&&q(_)&&(x.series.forceDL||A&&!I||F||u(h.inside,!!this.options.stacking)&&e&&s.isInsidePlot(_,y?e.x+1:e.y+e.height-1,{inverted:y,paneCoordinates:!0,series:a})),N=x.pos();if(j&&N){C&&l.attr({align:k});var Z=l.getBBox(!0),$=[0,0];if(n=s.renderer.fontMetrics(s.styledMode?void 0:h.style.fontSize,l).b,e=W({x:N[0],y:Math.round(N[1]),width:0,height:0},e),W(h,{width:Z.width,height:Z.height}),C?(I=!1,i=s.renderer.rotCorr(n,C),c={x:e.x+(h.x||0)+e.width/2+i.x,y:e.y+(h.y||0)+{top:0,middle:.5,bottom:1}[h.verticalAlign]*e.height},$=[Z.x-Number(l.attr("x")),Z.y-Number(l.attr("y"))],G(c),l[r?"attr":"animate"](c)):(G(e),l.align(h,void 0,e),c=l.alignAttr),I&&e.height>=0)this.justifyDataLabel(l,h,c,Z,e,r);else if(u(h.crop,!0)){var Y=c.x,et=c.y;Y+=$[0],et+=$[1],j=s.isInsidePlot(Y,et,{paneCoordinates:!0,series:a})&&s.isInsidePlot(Y+Z.width,et+Z.height,{paneCoordinates:!0,series:a})}h.shape&&!C&&l[r?"attr":"animate"]({anchorX:N[0],anchorY:N[1]})}r&&A&&(l.placed=!1),j||A&&!I?l.show():(l.hide(),l.placed=!1)}function P(x){x===void 0&&(x=this.points);var l,h=this,e=h.chart,r=h.options,n=h.hasRendered||0,i=e.renderer,c=e.options.chart,a=c.backgroundColor,s=c.plotBackgroundColor,y=i.getContrast(w(s)&&s||w(a)&&a||"#000000"),A=r.dataLabels,_=A.animation,p=A.defer?K(e,_,h):{defer:0,duration:0};if(A=M(M(e.options.plotOptions&&e.options.plotOptions.series&&e.options.plotOptions.series.dataLabels,e.options.plotOptions&&e.options.plotOptions[h.type]&&e.options.plotOptions[h.type].dataLabels),A),D(this,"drawDataLabels"),O(A)||A.enabled||h._hasPointLabels){if((l=h.plotGroup("dataLabelsGroup","data-labels",n?"inherit":"hidden",A.zIndex||6)).attr({opacity:+n}),!n){var C=h.dataLabelsGroup;C&&(h.visible&&l.show(),C[r.animation?"animate":"attr"]({opacity:1},p))}x.forEach(function(k){g(M(A,k.dlOptions||k.options&&k.options.dataLabels)).forEach(function(F,G){var I,j,N,Z,$,Y,et=F.enabled&&(!k.isNull||k.dataLabelOnNull)&&function(wt,mt){var at=mt.filter;if(at){var pt=at.operator,vt=wt[at.property],Ct=at.value;return pt===">"&&vt>Ct||pt==="<"&&vt<Ct||pt===">="&&vt>=Ct||pt==="<="&&vt<=Ct||pt==="=="&&vt==Ct||pt==="==="&&vt===Ct}return!0}(k,F),rt=k.connectors?k.connectors[G]:k.connector,it=k.dataLabels?k.dataLabels[G]:k.dataLabel,ht=!it,dt=u(F.distance,k.labelDistance);if(et){if(I=k.getLabelConfig(),j=u(F[k.formatPrefix+"Format"],F.format),N=q(j)?J(j,I,e):(F[k.formatPrefix+"Formatter"]||F.formatter).call(I,F),Z=F.style,$=F.rotation,e.styledMode||(Z.color=u(F.color,Z.color,h.color,"#000000"),Z.color==="contrast"?(k.contrastColor=i.getContrast(k.color||h.color),Z.color=!q(dt)&&F.inside||dt<0||r.stacking?k.contrastColor:y):delete k.contrastColor,r.cursor&&(Z.cursor=r.cursor)),Y={r:F.borderRadius||0,rotation:$,padding:F.padding,zIndex:1},!e.styledMode){var bt=F.backgroundColor,xt=F.borderColor;Y.fill=bt==="auto"?k.color:bt,Y.stroke=xt==="auto"?k.color:xt,Y["stroke-width"]=F.borderWidth}d(Y,function(wt,mt){wt===void 0&&delete Y[mt]})}if(!it||et&&q(N)&&!!it.div==!!F.useHTML&&(it.rotation&&F.rotation||it.rotation===F.rotation)||(ht=!0,k.dataLabel=it=k.dataLabel&&k.dataLabel.destroy(),k.dataLabels&&(k.dataLabels.length===1?delete k.dataLabels:delete k.dataLabels[G]),G||delete k.dataLabel,rt&&(k.connector=k.connector.destroy(),k.connectors&&(k.connectors.length===1?delete k.connectors:delete k.connectors[G]))),et&&q(N)){it?Y.text=N:(k.dataLabels=k.dataLabels||[],it=k.dataLabels[G]=$?i.text(N,0,0,F.useHTML).addClass("highcharts-data-label"):i.label(N,0,0,F.shape,null,null,F.useHTML,null,"data-label"),G||(k.dataLabel=it),it.addClass(" highcharts-data-label-color-"+k.colorIndex+" "+(F.className||"")+(F.useHTML?" highcharts-tracker":""))),it.options=F,it.attr(Y),e.styledMode||it.css(Z).shadow(F.shadow);var St=F[k.formatPrefix+"TextPath"]||F.textPath;St&&!F.useHTML&&(it.setTextPath(k.getDataLabelPath&&k.getDataLabelPath(it)||k.graphic,St),k.dataLabelPath&&!St.enabled&&(k.dataLabelPath=k.dataLabelPath.destroy())),it.added||it.add(l),h.alignDataLabel(k,it,F,null,ht)}else it&&it.hide()})})}D(this,"afterDrawDataLabels")}function E(x,l,h,e,r,n){var i,c,a=this.chart,s=l.align,y=l.verticalAlign,A=x.box?0:x.padding||0,_=l.x,p=_===void 0?0:_,C=l.y,k=C===void 0?0:C;return(i=(h.x||0)+A)<0&&(s==="right"&&p>=0?(l.align="left",l.inside=!0):p-=i,c=!0),(i=(h.x||0)+e.width-A)>a.plotWidth&&(s==="left"&&p<=0?(l.align="right",l.inside=!0):p+=a.plotWidth-i,c=!0),(i=h.y+A)<0&&(y==="bottom"&&k>=0?(l.verticalAlign="top",l.inside=!0):k-=i,c=!0),(i=(h.y||0)+e.height-A)>a.plotHeight&&(y==="top"&&k<=0?(l.verticalAlign="bottom",l.inside=!0):k+=a.plotHeight-i,c=!0),c&&(l.x=p,l.y=k,x.placed=!n,x.align(l,void 0,r)),c}function M(x,l){var h,e=[];if(O(x)&&!O(l))e=x.map(function(r){return T(r,l)});else if(O(l)&&!O(x))e=l.map(function(r){return T(x,r)});else if(O(x)||O(l))for(h=Math.max(x.length,l.length);h--;)e[h]=T(x[h],l[h]);else e=T(x,l);return e}function f(x,l,h,e,r){var n=this.chart,i=n.inverted,c=this.xAxis,a=c.reversed,s=i?l.height/2:l.width/2,y=x.pointWidth,A=y?y/2:0;l.startXPos=i?r.x:a?-s-A:c.width-s+A,l.startYPos=i?a?this.yAxis.height-s+A:-s-A:r.y,e?l.visibility==="hidden"&&(l.show(),l.attr({opacity:0}).animate({opacity:1})):l.attr({opacity:1}).animate({opacity:0},void 0,l.hide),n.hasRendered&&(h&&l.attr({x:l.startXPos,y:l.startYPos}),l.placed=!0)}b.compose=function(x){if(v.indexOf(x)===-1){var l=x.prototype;v.push(x),l.alignDataLabel=S,l.drawDataLabels=P,l.justifyDataLabel=E,l.setDataLabelStartPos=f}}}(V||(V={})),V}),st(B,"Series/Column/ColumnDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=z.series,J=X.merge,q=X.pick;return function(W){var D=[];function O(w,T,d,u,g){var b,v=this.chart.inverted,S=w.series,P=(S.xAxis?S.xAxis.len:this.chart.plotSizeX)||0,E=(S.yAxis?S.yAxis.len:this.chart.plotSizeY)||0,M=w.dlBox||w.shapeArgs,f=q(w.below,w.plotY>q(this.translatedThreshold,E)),x=q(d.inside,!!this.options.stacking);M&&((u=J(M)).y<0&&(u.height+=u.y,u.y=0),(b=u.y+u.height-E)>0&&b<u.height&&(u.height-=b),v&&(u={x:E-u.y-u.height,y:P-u.x-u.width,width:u.height,height:u.width}),x||(v?(u.x+=f?0:u.width,u.width=0):(u.y+=f?u.height:0,u.height=0))),d.align=q(d.align,!v||x?"center":f?"right":"left"),d.verticalAlign=q(d.verticalAlign,v||x?"middle":f?"top":"bottom"),K.prototype.alignDataLabel.call(this,w,T,d,u,g),d.inside&&w.contrastColor&&T.css({color:w.contrastColor})}W.compose=function(w){U.compose(K),D.indexOf(w)===-1&&(D.push(w),w.prototype.alignDataLabel=O)}}(V||(V={})),V}),st(B,"Series/Bar/BarSeries.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(D,O){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var d in T)T.hasOwnProperty(d)&&(w[d]=T[d])},V(D,O)},function(D,O){function w(){this.constructor=D}V(D,O),D.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),J=X.extend,q=X.merge,W=function(D){function O(){var w=D!==null&&D.apply(this,arguments)||this;return w.data=void 0,w.options=void 0,w.points=void 0,w}return K(O,D),O.defaultOptions=q(U.defaultOptions,{}),O}(U);return J(W.prototype,{inverted:!0}),z.registerSeriesType("bar",W),W}),st(B,"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/>"}}}),st(B,"Series/Scatter/ScatterSeries.js",[B["Series/Scatter/ScatterSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(d,u){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},V(d,u)},function(d,u){function g(){this.constructor=d}V(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),J=z.seriesTypes,q=J.column,W=J.line,D=X.addEvent,O=X.extend,w=X.merge,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return K(u,d),u.prototype.applyJitter=function(){var g=this,b=this.options.jitter,v=this.points.length;b&&this.points.forEach(function(S,P){["x","y"].forEach(function(E,M){var f,x,l,h,e,r,n="plot"+E.toUpperCase();b[E]&&!S.isNull&&(f=g[E+"Axis"],h=b[E]*f.transA,f&&!f.isLog&&(x=Math.max(0,S[n]-h),l=Math.min(f.len,S[n]+h),S[n]=x+(l-x)*(e=P+M*v,(r=1e4*Math.sin(e))-Math.floor(r)),E==="x"&&(S.clientX=S.plotX)))})})},u.prototype.drawGraph=function(){this.options.lineWidth?d.prototype.drawGraph.call(this):this.graph&&(this.graph=this.graph.destroy())},u.defaultOptions=w(W.defaultOptions,U),u}(W);return O(T.prototype,{drawTracker:q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),D(T,"afterTranslate",function(){this.applyJitter()}),z.registerSeriesType("scatter",T),T}),st(B,"Series/CenteredUtilities.js",[B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=U.deg2rad,J=X.fireEvent,q=X.isNumber,W=X.pick,D=X.relativeLength;return function(O){O.getCenter=function(){var w,T,d,u=this.options,g=this.chart,b=2*(u.slicedOffset||0),v=g.plotWidth-2*b,S=g.plotHeight-2*b,P=u.center,E=Math.min(v,S),M=u.thickness,f=u.size,x=u.innerSize||0;typeof f=="string"&&(f=parseFloat(f)),typeof x=="string"&&(x=parseFloat(x));var l=[W(P[0],"50%"),W(P[1],"50%"),W(f&&f<0?void 0:u.size,"100%"),W(x&&x<0?void 0:u.innerSize||0,"0%")];for(!g.angular||this instanceof z||(l[3]=0),T=0;T<4;++T)d=l[T],w=T<2||T===2&&/%$/.test(d),l[T]=D(d,[v,S,E,l[2]][T])+(w?b:0);return l[3]>l[2]&&(l[3]=l[2]),q(M)&&2*M<l[2]&&M>0&&(l[3]=l[2]-2*M),J(this,"afterGetCenter",{positions:l}),l},O.getStartAndEndRadians=function(w,T){var d=q(w)?w:0,u=q(T)&&T>d&&T-d<360?T:d+360;return{start:K*(d+-90),end:K*(u+-90)}}}(V||(V={})),V}),st(B,"Series/Pie/PiePoint.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Series/Point.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(u,g){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var S in v)v.hasOwnProperty(S)&&(b[S]=v[S])},V(u,g)},function(u,g){function b(){this.constructor=u}V(u,g),u.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}),J=U.setAnimation,q=X.addEvent,W=X.defined,D=X.extend,O=X.isNumber,w=X.pick,T=X.relativeLength,d=function(u){function g(){var b=u!==null&&u.apply(this,arguments)||this;return b.labelDistance=void 0,b.options=void 0,b.series=void 0,b}return K(g,u),g.prototype.getConnectorPath=function(){var b=this.labelPosition,v=this.series.options.dataLabels,S=this.connectorShapes,P=v.connectorShape;return S[P]&&(P=S[P]),P.call(this,{x:b.final.x,y:b.final.y,alignment:b.alignment},b.connectorPosition,v)},g.prototype.getTranslate=function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},g.prototype.haloPath=function(b){var v=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(v.x,v.y,v.r+b,v.r+b,{innerR:v.r-1,start:v.start,end:v.end})},g.prototype.init=function(){var b=this;u.prototype.init.apply(this,arguments),this.name=w(this.name,"Slice");var v=function(S){b.slice(S.type==="select")};return q(this,"select",v),q(this,"unselect",v),this},g.prototype.isValid=function(){return O(this.y)&&this.y>=0},g.prototype.setVisible=function(b,v){var S=this,P=this.series,E=P.chart,M=P.options.ignoreHiddenPoint;v=w(v,M),b!==this.visible&&(this.visible=this.options.visible=b=b===void 0?!this.visible:b,P.options.data[P.data.indexOf(this)]=this.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(f){S[f]&&S[f][b?"show":"hide"](b)}),this.legendItem&&E.legend.colorizeItem(this,b),b||this.state!=="hover"||this.setState(""),M&&(P.isDirty=!0),v&&E.redraw())},g.prototype.slice=function(b,v,S){var P=this.series,E=P.chart;J(S,E),v=w(v,!0),this.sliced=this.options.sliced=b=W(b)?b:!this.sliced,P.options.data[P.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},g}(z);return D(d.prototype,{connectorShapes:{fixedOffset:function(u,g,b){var v=g.breakAt,S=g.touchingSliceAt,P=b.softConnector?["C",u.x+(u.alignment==="left"?-5:5),u.y,2*v.x-S.x,2*v.y-S.y,v.x,v.y]:["L",v.x,v.y];return[["M",u.x,u.y],P,["L",S.x,S.y]]},straight:function(u,g){var b=g.touchingSliceAt;return[["M",u.x,u.y],["L",b.x,b.y]]},crookedLine:function(u,g,b){var v=g.touchingSliceAt,S=this.series,P=S.center[0],E=S.chart.plotWidth,M=S.chart.plotLeft,f=u.alignment,x=this.shapeArgs.r,l=T(b.crookDistance,1),h=f==="left"?P+x+(E+M-P-x)*(1-l):M+(P-x)*l,e=["L",h,u.y],r=!0;(f==="left"?h>u.x||h<v.x:h<u.x||h>v.x)&&(r=!1);var n=[["M",u.x,u.y]];return r&&n.push(e),n.push(["L",v.x,v.y]),n}}}),d}),st(B,"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}}}}),st(B,"Series/Pie/PieSeries.js",[B["Series/CenteredUtilities.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Series/Pie/PiePoint.js"],B["Series/Pie/PieSeriesDefaults.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/Symbols.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O){var w,T=this&&this.__extends||(w=function(f,x){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var e in h)h.hasOwnProperty(e)&&(l[e]=h[e])},w(f,x)},function(f,x){function l(){this.constructor=f}w(f,x),f.prototype=x===null?Object.create(x):(l.prototype=x.prototype,new l)}),d=U.getStartAndEndRadians,u=X.noop,g=O.clamp,b=O.extend,v=O.fireEvent,S=O.merge,P=O.pick,E=O.relativeLength,M=function(f){function x(){var l=f!==null&&f.apply(this,arguments)||this;return l.center=void 0,l.data=void 0,l.maxLabelDistance=void 0,l.options=void 0,l.points=void 0,l}return T(x,f),x.prototype.animate=function(l){var h=this,e=h.points,r=h.startAngleRad;l||e.forEach(function(n){var i=n.graphic,c=n.shapeArgs;i&&c&&(i.attr({r:P(n.startR,h.center&&h.center[3]/2),start:r,end:r}),i.animate({r:c.r,start:c.start,end:c.end},h.options.animation))})},x.prototype.drawEmpty=function(){var l,h,e=this.startAngleRad,r=this.endAngleRad,n=this.options;this.total===0&&this.center?(l=this.center[0],h=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(l,h,this.center[1]/2,0,e,r).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:D.arc(l,h,this.center[2]/2,0,{start:e,end:r,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":n.borderWidth,fill:n.fillColor||"none",stroke:n.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())},x.prototype.drawPoints=function(){var l=this.chart.renderer;this.points.forEach(function(h){h.graphic&&h.hasNewShapeType()&&(h.graphic=h.graphic.destroy()),h.graphic||(h.graphic=l[h.shapeType](h.shapeArgs).add(h.series.group),h.delayedRendering=!0)})},x.prototype.generatePoints=function(){f.prototype.generatePoints.call(this),this.updateTotals()},x.prototype.getX=function(l,h,e){var r=this.center,n=this.radii?this.radii[e.index]||0:r[2]/2,i=Math.asin(g((l-r[1])/(n+e.labelDistance),-1,1));return r[0]+(h?-1:1)*(Math.cos(i)*(n+e.labelDistance))+(e.labelDistance>0?(h?-1:1)*this.options.dataLabels.padding:0)},x.prototype.hasData=function(){return!!this.processedXData.length},x.prototype.redrawPoints=function(){var l,h,e,r,n=this,i=n.chart,c=i.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||i.styledMode||(n.shadowGroup=c.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach(function(s){var y={};if(h=s.graphic,!s.isNull&&h){var A=void 0;r=s.shapeArgs,l=s.getTranslate(),i.styledMode||(A=s.shadowGroup,a&&!A&&(A=s.shadowGroup=c.g("shadow").add(n.shadowGroup)),A&&A.attr(l),e=n.pointAttribs(s,s.selected&&"select")),s.delayedRendering?(h.setRadialReference(n.center).attr(r).attr(l),i.styledMode||h.attr(e).attr({"stroke-linejoin":"round"}).shadow(a,A),s.delayedRendering=!1):(h.setRadialReference(n.center),i.styledMode||S(!0,y,e),S(!0,y,r,l),h.animate(y)),h.attr({visibility:s.visible?"inherit":"hidden"}),h.addClass(s.getClassName(),!0)}else h&&(s.graphic=h.destroy())})},x.prototype.sortByAngle=function(l,h){l.sort(function(e,r){return e.angle!==void 0&&(r.angle-e.angle)*h})},x.prototype.translate=function(l){v(this,"translate"),this.generatePoints();var h,e,r,n,i,c,a,s,y=this,A=1e3,_=y.options,p=_.slicedOffset,C=p+(_.borderWidth||0),k=d(_.startAngle,_.endAngle),F=y.startAngleRad=k.start,G=(y.endAngleRad=k.end)-F,I=y.points,j=_.dataLabels.distance,N=_.ignoreHiddenPoint,Z=I.length,$=0;for(l||(y.center=l=y.getCenter()),a=0;a<Z;a++){e=F+$*G,!(s=I[a]).isValid()||N&&!s.visible||($+=s.percentage/100),r=F+$*G;var Y={x:l[0],y:l[1],r:l[2]/2,innerR:l[3]/2,start:Math.round(e*A)/A,end:Math.round(r*A)/A};s.shapeType="arc",s.shapeArgs=Y,s.labelDistance=P(s.options.dataLabels&&s.options.dataLabels.distance,j),s.labelDistance=E(s.labelDistance,Y.r),y.maxLabelDistance=Math.max(y.maxLabelDistance||0,s.labelDistance),(n=(r+e)/2)>1.5*Math.PI?n-=2*Math.PI:n<-Math.PI/2&&(n+=2*Math.PI),s.slicedTranslation={translateX:Math.round(Math.cos(n)*p),translateY:Math.round(Math.sin(n)*p)},i=Math.cos(n)*l[2]/2,c=Math.sin(n)*l[2]/2,s.tooltipPos=[l[0]+.7*i,l[1]+.7*c],s.half=n<-Math.PI/2||n>Math.PI/2?1:0,s.angle=n,h=Math.min(C,s.labelDistance/5),s.labelPosition={natural:{x:l[0]+i+Math.cos(n)*s.labelDistance,y:l[1]+c+Math.sin(n)*s.labelDistance},final:{},alignment:s.labelDistance<0?"center":s.half?"right":"left",connectorPosition:{breakAt:{x:l[0]+i+Math.cos(n)*h,y:l[1]+c+Math.sin(n)*h},touchingSliceAt:{x:l[0]+i,y:l[1]+c}}}}v(y,"afterTranslate")},x.prototype.updateTotals=function(){var l,h,e=this.points,r=e.length,n=this.options.ignoreHiddenPoint,i=0;for(l=0;l<r;l++)!(h=e[l]).isValid()||n&&!h.visible||(i+=h.y);for(this.total=i,l=0;l<r;l++)(h=e[l]).percentage=i>0&&(h.visible||!n)?h.y/i*100:0,h.total=i},x.defaultOptions=S(q.defaultOptions,J),x}(q);return b(M.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawLegendSymbol:V.drawRectangle,drawTracker:z.prototype.drawTracker,getCenter:U.getCenter,getSymbol:u,isCartesian:!1,noSharedTooltip:!0,pointAttribs:z.prototype.pointAttribs,pointClass:K,requireSorting:!1,searchPoint:u,trackerGroups:["group","dataLabelsGroup"]}),W.registerSeriesType("pie",M),M}),st(B,"Series/Pie/PieDataLabel.js",[B["Core/Series/DataLabel.js"],B["Core/Globals.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J,q=z.noop,W=X.distribute,D=V.series,O=K.arrayMax,w=K.clamp,T=K.defined,d=K.merge,u=K.pick,g=K.relativeLength;return function(b){var v=[],S={radialDistributionY:function(f){return f.top+f.distributeBox.pos},radialDistributionX:function(f,x,l,h){return f.getX(l<x.top+2||l>x.bottom-2?h:l,x.half,x)},justify:function(f,x,l){return l[0]+(f.half?-1:1)*(x+f.labelDistance)},alignToPlotEdges:function(f,x,l,h){var e=f.getBBox().width;return x?e+h:l-e-h},alignToConnectors:function(f,x,l,h){var e,r=0;return f.forEach(function(n){(e=n.dataLabel.getBBox().width)>r&&(r=e)}),x?r+h:l-r-h}};function P(){var f,x,l,h,e,r,n,i,c,a,s,y,A=this,_=A.data,p=A.chart,C=A.options.dataLabels||{},k=C.connectorPadding,F=p.plotWidth,G=p.plotHeight,I=p.plotLeft,j=Math.round(p.chartWidth/3),N=A.center,Z=N[2]/2,$=N[1],Y=[[],[]],et=[0,0,0,0],rt=A.dataLabelPositioners;A.visible&&(C.enabled||A._hasPointLabels)&&(_.forEach(function(it){it.dataLabel&&it.visible&&it.dataLabel.shortened&&(it.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),it.dataLabel.shortened=!1)}),D.prototype.drawDataLabels.apply(A),_.forEach(function(it){it.dataLabel&&(it.visible?(Y[it.half].push(it),it.dataLabel._pos=null,T(C.style.width)||T(it.options.dataLabels&&it.options.dataLabels.style&&it.options.dataLabels.style.width)||it.dataLabel.getBBox().width>j&&(it.dataLabel.css({width:Math.round(.7*j)+"px"}),it.dataLabel.shortened=!0)):(it.dataLabel=it.dataLabel.destroy(),it.dataLabels&&it.dataLabels.length===1&&delete it.dataLabels))}),Y.forEach(function(it,ht){var dt,bt,xt,St,wt,mt,at=it.length,pt=[];if(at)for(A.sortByAngle(it,ht-.5),A.maxLabelDistance>0&&(dt=Math.max(0,$-Z-A.maxLabelDistance),bt=Math.min($+Z+A.maxLabelDistance,p.plotHeight),it.forEach(function(vt){vt.labelDistance>0&&vt.dataLabel&&(vt.top=Math.max(0,$-Z-vt.labelDistance),vt.bottom=Math.min($+Z+vt.labelDistance,p.plotHeight),wt=vt.dataLabel.getBBox().height||21,vt.distributeBox={target:vt.labelPosition.natural.y-vt.top+wt/2,size:wt,rank:vt.y},pt.push(vt.distributeBox))}),W(pt,mt=bt+wt-dt,mt/5)),s=0;s<at;s++){if(f=it[s],r=f.labelPosition,h=f.dataLabel,a=f.visible===!1?"hidden":"inherit",xt=r.natural.y,c=xt,pt&&T(f.distributeBox)&&(f.distributeBox.pos===void 0?a="hidden":(n=f.distributeBox.size,c=rt.radialDistributionY(f))),delete f.positionIndex,C.justify)i=rt.justify(f,Z,N);else switch(C.alignTo){case"connectors":i=rt.alignToConnectors(it,ht,F,I);break;case"plotEdges":i=rt.alignToPlotEdges(h,ht,F,I);break;default:i=rt.radialDistributionX(A,f,c,xt)}h._attr={visibility:a,align:r.alignment},y=f.options.dataLabels||{},h._pos={x:i+u(y.x,C.x)+({left:k,right:-k}[r.alignment]||0),y:c+u(y.y,C.y)-10},r.final.x=i,r.final.y=c,u(C.crop,!0)&&(e=h.getBBox().width,St=null,i-e<k&&ht===1?(St=Math.round(e-i+k),et[3]=Math.max(St,et[3])):i+e>F-k&&ht===0&&(St=Math.round(i+e-F+k),et[1]=Math.max(St,et[1])),c-n/2<0?et[0]=Math.max(Math.round(n/2-c),et[0]):c+n/2>G&&(et[2]=Math.max(Math.round(c+n/2-G),et[2])),h.sideOverflow=St)}}),(O(et)===0||this.verifyDataLabelOverflow(et))&&(this.placeDataLabels(),this.points.forEach(function(it){if(y=d(C,it.options.dataLabels),x=u(y.connectorWidth,1)){var ht=void 0;l=it.connector,(h=it.dataLabel)&&h._pos&&it.visible&&it.labelDistance>0?(a=h._attr.visibility,(ht=!l)&&(it.connector=l=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+it.colorIndex+(it.className?" "+it.className:"")).add(A.dataLabelsGroup),p.styledMode||l.attr({"stroke-width":x,stroke:y.connectorColor||it.color||"#666666"})),l[ht?"attr":"animate"]({d:it.getConnectorPath()}),l.attr("visibility",a)):l&&(it.connector=l.destroy())}})))}function E(){this.points.forEach(function(f){var x,l=f.dataLabel;l&&f.visible&&((x=l._pos)?(l.sideOverflow&&(l._attr.width=Math.max(l.getBBox().width-l.sideOverflow,0),l.css({width:l._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),l.shortened=!0),l.attr(l._attr),l[l.moved?"animate":"attr"](x),l.moved=!0):l&&l.attr({y:-9999})),delete f.distributeBox},this)}function M(f){var x=this.center,l=this.options,h=l.center,e=l.minSize||80,r=e,n=l.size!==null;return n||(h[0]!==null?r=Math.max(x[2]-Math.max(f[1],f[3]),e):(r=Math.max(x[2]-f[1]-f[3],e),x[0]+=(f[3]-f[1])/2),h[1]!==null?r=w(r,e,x[2]-Math.max(f[0],f[2])):(r=w(r,e,x[2]-f[0]-f[2]),x[1]+=(f[0]-f[2])/2),r<x[2]?(x[2]=r,x[3]=Math.min(l.thickness?Math.max(0,r-2*l.thickness):Math.max(0,g(l.innerSize||0,r)),r),this.translate(x),this.drawDataLabels&&this.drawDataLabels()):n=!0),n}b.compose=function(f){if(U.compose(D),v.indexOf(f)===-1){v.push(f);var x=f.prototype;x.dataLabelPositioners=S,x.alignDataLabel=q,x.drawDataLabels=P,x.placeDataLabels=E,x.verifyDataLabelOverflow=M}}}(J||(J={})),J}),st(B,"Extensions/OverlappingDataLabels.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"]],function(U,z){var X=z.addEvent,V=z.fireEvent,K=z.isArray,J=z.isNumber,q=z.objectEach,W=z.pick;function D(O,w){var T,d,u=!1;return O&&(d=O.newOpacity,O.oldOpacity!==d&&(O.alignAttr&&O.placed?(O[d?"removeClass":"addClass"]("highcharts-data-label-hidden"),T=function(){w.styledMode||O.css({pointerEvents:d?"auto":"none"})},u=!0,O.alignAttr.opacity=d,O[O.isOld?"animate":"attr"](O.alignAttr,null,T),V(w,"afterHideOverlappingLabel")):O.attr({opacity:d})),O.isOld=!0),u}X(U,"render",function(){var O=this,w=[];(this.labelCollectors||[]).forEach(function(T){w=w.concat(T())}),(this.yAxis||[]).forEach(function(T){T.stacking&&T.options.stackLabels&&!T.options.stackLabels.allowOverlap&&q(T.stacking.stacks,function(d){q(d,function(u){u.label&&w.push(u.label)})})}),(this.series||[]).forEach(function(T){var d=T.options.dataLabels;if(T.visible&&(d.enabled!==!1||T._hasPointLabels)){var u=function(g){return g.forEach(function(b){b.visible&&(K(b.dataLabels)?b.dataLabels:b.dataLabel?[b.dataLabel]:[]).forEach(function(v){var S=v.options;v.labelrank=W(S.labelrank,b.labelrank,b.shapeArgs&&b.shapeArgs.height),S.allowOverlap?(v.oldOpacity=v.opacity,v.newOpacity=1,D(v,O)):w.push(v)})})};u(T.nodes||[]),u(T.points)}}),this.hideOverlappingLabels(w)}),U.prototype.hideOverlappingLabels=function(O){var w,T,d,u,g,b,v,S=this,P=O.length,E=S.renderer,M=!1,f=function(l,h){return!(h.x>=l.x+l.width||h.x+h.width<=l.x||h.y>=l.y+l.height||h.y+h.height<=l.y)},x=function(l){var h,e,r,n,i,c=l.box?0:l.padding||0,a=0,s=0;if(l&&(!l.alignAttr||l.placed))return h=l.alignAttr||{x:l.attr("x"),y:l.attr("y")},e=l.parentGroup,l.width||(r=l.getBBox(),l.width=r.width,l.height=r.height,a=E.fontMetrics(null,l.element).h),n=l.width-2*c,(i={left:"0",center:"0.5",right:"1"}[l.alignValue])?s=+i*n:J(l.x)&&Math.round(l.x)!==l.translateX&&(s=l.x-l.translateX),{x:h.x+(e.translateX||0)+c-(s||0),y:h.y+(e.translateY||0)+c-a,width:l.width-2*c,height:l.height-2*c}};for(T=0;T<P;T++)(w=O[T])&&(w.oldOpacity=w.opacity,w.newOpacity=1,w.absoluteBox=x(w));for(O.sort(function(l,h){return(h.labelrank||0)-(l.labelrank||0)}),T=0;T<P;T++)for(b=(u=O[T])&&u.absoluteBox,d=T+1;d<P;++d)v=(g=O[d])&&g.absoluteBox,b&&v&&u!==g&&u.newOpacity!==0&&g.newOpacity!==0&&u.visibility!=="hidden"&&g.visibility!=="hidden"&&f(b,v)&&((u.labelrank<g.labelrank?u:g).newOpacity=0);O.forEach(function(l){D(l,S)&&(M=!0)}),M&&V(S,"afterHideAllOverlappingLabels")}}),st(B,"Core/Responsive.js",[B["Core/Utilities.js"]],function(U){var z,X=U.extend,V=U.find,K=U.isArray,J=U.isObject,q=U.merge,W=U.objectEach,D=U.pick,O=U.splat,w=U.uniqueKey;return function(T){var d=[];T.compose=function(g){return d.indexOf(g)===-1&&(d.push(g),X(g.prototype,u.prototype)),g};var u=function(){function g(){}return g.prototype.currentOptions=function(b){var v=this,S={};return function P(E,M,f,x){var l;W(E,function(h,e){if(!x&&v.collectionsWithUpdate.indexOf(e)>-1&&M[e])for(h=O(h),f[e]=[],l=0;l<Math.max(h.length,M[e].length);l++)M[e][l]&&(h[l]===void 0?f[e][l]=M[e][l]:(f[e][l]={},P(h[l],M[e][l],f[e][l],x+1)));else J(h)?(f[e]=K(h)?[]:{},P(h,M[e]||{},f[e],x+1)):M[e]===void 0?f[e]=null:f[e]=M[e]})}(b,this.options,S,0),S},g.prototype.matchResponsiveRule=function(b,v){var S=b.condition;(S.callback||function(){return this.chartWidth<=D(S.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=D(S.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=D(S.minWidth,0)&&this.chartHeight>=D(S.minHeight,0)}).call(this)&&v.push(b._id)},g.prototype.setResponsive=function(b,v){var S,P=this,E=this.options.responsive,M=this.currentResponsive,f=[];!v&&E&&E.rules&&E.rules.forEach(function(h){h._id===void 0&&(h._id=w()),P.matchResponsiveRule(h,f)},this);var x=q.apply(void 0,f.map(function(h){return V((E||{}).rules||[],function(e){return e._id===h})}).map(function(h){return h&&h.chartOptions}));x.isResponsiveOptions=!0,f=f.toString()||void 0;var l=M&&M.ruleIds;f!==l&&(M&&this.update(M.undoOptions,b,!0),f?((S=this.currentOptions(x)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:f,mergedOptions:x,undoOptions:S},this.update(x,b,!0)):this.currentResponsive=void 0)},g}()}(z||(z={})),z}),st(B,"masters/highcharts.src.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/Defaults.js"],B["Core/Animation/Fx.js"],B["Core/Animation/AnimationUtilities.js"],B["Core/Renderer/HTML/AST.js"],B["Core/FormatUtilities.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Renderer/HTML/HTMLElement.js"],B["Core/Renderer/HTML/HTMLRenderer.js"],B["Core/Axis/Axis.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Axis/LogarithmicAxis.js"],B["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],B["Core/Axis/Tick.js"],B["Core/Tooltip.js"],B["Core/Series/Point.js"],B["Core/Pointer.js"],B["Core/MSPointer.js"],B["Core/Legend/Legend.js"],B["Core/Chart/Chart.js"],B["Core/Axis/Stacking/StackingAxis.js"],B["Core/Axis/Stacking/StackItem.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Column/ColumnSeries.js"],B["Series/Column/ColumnDataLabel.js"],B["Series/Pie/PieSeries.js"],B["Series/Pie/PieDataLabel.js"],B["Core/Series/DataLabel.js"],B["Core/Responsive.js"],B["Core/Color/Color.js"],B["Core/Time.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T,d,u,g,b,v,S,P,E,M,f,x,l,h,e,r,n,i,c,a,s,y,A,_){var p=U;return p.animate=K.animate,p.animObject=K.animObject,p.getDeferredAnimation=K.getDeferredAnimation,p.setAnimation=K.setAnimation,p.stop=K.stop,p.timers=V.timers,p.AST=J,p.Axis=d,p.Chart=x,p.chart=x.chart,p.Fx=V,p.Legend=f,p.PlotLineOrBand=b,p.Point=P,p.Pointer=M.isRequired()?M:E,p.Series=e,p.StackItem=h,p.SVGElement=D,p.SVGRenderer=O,p.Tick=v,p.Time=_,p.Tooltip=S,p.Color=A,p.color=A.parse,T.compose(O),w.compose(D),p.defaultOptions=X.defaultOptions,p.getOptions=X.getOptions,p.time=X.defaultTime,p.setOptions=X.setOptions,p.dateFormat=q.dateFormat,p.format=q.format,p.numberFormat=q.numberFormat,p.addEvent=z.addEvent,p.arrayMax=z.arrayMax,p.arrayMin=z.arrayMin,p.attr=z.attr,p.clearTimeout=z.clearTimeout,p.correctFloat=z.correctFloat,p.createElement=z.createElement,p.css=z.css,p.defined=z.defined,p.destroyObjectProperties=z.destroyObjectProperties,p.discardElement=z.discardElement,p.distribute=W.distribute,p.erase=z.erase,p.error=z.error,p.extend=z.extend,p.extendClass=z.extendClass,p.find=z.find,p.fireEvent=z.fireEvent,p.getMagnitude=z.getMagnitude,p.getStyle=z.getStyle,p.inArray=z.inArray,p.isArray=z.isArray,p.isClass=z.isClass,p.isDOMElement=z.isDOMElement,p.isFunction=z.isFunction,p.isNumber=z.isNumber,p.isObject=z.isObject,p.isString=z.isString,p.keys=z.keys,p.merge=z.merge,p.normalizeTickInterval=z.normalizeTickInterval,p.objectEach=z.objectEach,p.offset=z.offset,p.pad=z.pad,p.pick=z.pick,p.pInt=z.pInt,p.relativeLength=z.relativeLength,p.removeEvent=z.removeEvent,p.seriesType=r.seriesType,p.splat=z.splat,p.stableSort=z.stableSort,p.syncTimeout=z.syncTimeout,p.timeUnits=z.timeUnits,p.uniqueKey=z.uniqueKey,p.useSerialIds=z.useSerialIds,p.wrap=z.wrap,i.compose(n),s.compose(e),u.compose(d),g.compose(d),a.compose(c),b.compose(d),y.compose(x),l.compose(d,x,e),p}),st(B,"Core/Axis/BrokenAxis.js",[B["Core/Axis/Stacking/StackItem.js"],B["Core/Utilities.js"]],function(U,z){var X,V=z.addEvent,K=z.find,J=z.fireEvent,q=z.isArray,W=z.isNumber,D=z.pick;return function(O){var w=[];function T(){this.brokenAxis!==void 0&&this.brokenAxis.setBreaks(this.options.breaks,!1)}function d(){var M=this;M.brokenAxis&&M.brokenAxis.hasBreaks&&(M.options.ordinal=!1)}function u(){var M=this,f=M.brokenAxis;if(f&&f.hasBreaks){for(var x=M.tickPositions,l=M.tickPositions.info,h=[],e=0;e<x.length;e++)f.isInAnyBreak(x[e])||h.push(x[e]);M.tickPositions=h,M.tickPositions.info=l}}function g(){var M=this;M.brokenAxis||(M.brokenAxis=new E(M))}function b(){var M=this,f=M.isDirty,x=M.options.connectNulls,l=M.points,h=M.xAxis,e=M.yAxis;if(f)for(var r=l.length;r--;){var n=l[r],i=!(n.y===null&&x===!1)&&(h&&h.brokenAxis&&h.brokenAxis.isInAnyBreak(n.x,!0)||e&&e.brokenAxis&&e.brokenAxis.isInAnyBreak(n.y,!0));n.visible=!i&&n.options.visible!==!1}}function v(){this.drawBreaks(this.xAxis,["x"]),this.drawBreaks(this.yAxis,D(this.pointArrayMap,["y"]))}function S(M,f){var x,l,h,e,r=this,n=r.points;if(M&&M.brokenAxis&&M.brokenAxis.hasBreaks){var i=M.brokenAxis;f.forEach(function(c){x=i&&i.breakArray||[],l=M.isXAxis?M.min:D(r.options.threshold,M.min),n.forEach(function(a){e=D(a["stack"+c.toUpperCase()],a[c]),x.forEach(function(s){W(l)&&W(e)&&(h=!1,l<s.from&&e>s.to||l>s.from&&e<s.from?h="pointBreak":(l<s.from&&e>s.from&&e<s.to||l>s.from&&e>s.to&&e<s.from)&&(h="pointInBreak"),h&&J(M,h,{point:a,brk:s}))})})})}}function P(){var M=this.currentDataGrouping,f=M&&M.gapSize,x=this.points.slice(),l=this.yAxis,h=this.options.gapSize,e=x.length-1;if(h&&e>0){this.options.gapUnit!=="value"&&(h*=this.basePointRange),f&&f>h&&f>=this.basePointRange&&(h=f);for(var r=void 0,n=void 0;e--;)if(n&&n.visible!==!1||(n=x[e+1]),r=x[e],n.visible!==!1&&r.visible!==!1){if(n.x-r.x>h){var i=(r.x+n.x)/2;x.splice(e+1,0,{isNull:!0,x:i}),l.stacking&&this.options.stacking&&((l.stacking.stacks[this.stackKey][i]=new U(l,l.options.stackLabels,!1,i,this.stack)).total=0)}n=r}}return this.getGraphPath(x)}O.compose=function(M,f){if(w.indexOf(M)===-1&&(w.push(M),M.keepProps.push("brokenAxis"),V(M,"init",g),V(M,"afterInit",T),V(M,"afterSetTickPositions",u),V(M,"afterSetOptions",d)),w.indexOf(f)===-1){w.push(f);var x=f.prototype;x.drawBreaks=S,x.gappedPath=P,V(f,"afterGeneratePoints",b),V(f,"afterRender",v)}return M};var E=function(){function M(f){this.hasBreaks=!1,this.axis=f}return M.isInBreak=function(f,x){var l=f.repeat||1/0,h=f.from,e=f.to-f.from,r=x>=h?(x-h)%l:l-(h-x)%l;return f.inclusive?r<=e:r<e&&r!==0},M.lin2Val=function(f){var x=this.brokenAxis,l=x&&x.breakArray;if(!l||!W(f))return f;var h,e,r=f;for(e=0;e<l.length&&!((h=l[e]).from>=r);e++)(h.to<r||M.isInBreak(h,r))&&(r+=h.len);return r},M.val2Lin=function(f){var x=this.brokenAxis,l=x&&x.breakArray;if(!l||!W(f))return f;var h,e,r=f;for(e=0;e<l.length;e++)if((h=l[e]).to<=f)r-=h.len;else{if(h.from>=f)break;if(M.isInBreak(h,f)){r-=f-h.from;break}}return r},M.prototype.findBreakAt=function(f,x){return K(x,function(l){return l.from<f&&f<l.to})},M.prototype.isInAnyBreak=function(f,x){var l,h,e,r=this.axis,n=r.options.breaks||[],i=n.length;if(i&&W(f)){for(;i--;)M.isInBreak(n[i],f)&&(l=!0,h||(h=D(n[i].showPoints,!r.isXAxis)));e=l&&x?l&&!h:l}return e},M.prototype.setBreaks=function(f,x){var l=this,h=l.axis,e=q(f)&&!!f.length;h.isDirty=l.hasBreaks!==e,l.hasBreaks=e,h.options.breaks=h.userOptions.breaks=f,h.forceRedraw=!0,h.series.forEach(function(r){r.isDirty=!0}),e||h.val2lin!==M.val2Lin||(delete h.val2lin,delete h.lin2val),e&&(h.userOptions.ordinal=!1,h.lin2val=M.lin2Val,h.val2lin=M.val2Lin,h.setExtremes=function(r,n,i,c,a){if(l.hasBreaks){for(var s=this.options.breaks||[],y=void 0;y=l.findBreakAt(r,s);)r=y.to;for(;y=l.findBreakAt(n,s);)n=y.from;n<r&&(n=r)}h.constructor.prototype.setExtremes.call(this,r,n,i,c,a)},h.setAxisTranslation=function(){if(h.constructor.prototype.setAxisTranslation.call(this),l.unitLength=void 0,l.hasBreaks){var r,n,i,c,a=h.options.breaks||[],s=[],y=[],A=D(h.pointRangePadding,0),_=0,p=h.userMin||h.min,C=h.userMax||h.max;a.forEach(function(k){n=k.repeat||1/0,W(p)&&W(C)&&(M.isInBreak(k,p)&&(p+=k.to%n-p%n),M.isInBreak(k,C)&&(C-=C%n-k.from%n))}),a.forEach(function(k){if(i=k.from,n=k.repeat||1/0,W(p)&&W(C)){for(;i-n>p;)i-=n;for(;i<p;)i+=n;for(c=i;c<C;c+=n)s.push({value:c,move:"in"}),s.push({value:c+k.to-k.from,move:"out",size:k.breakSize})}}),s.sort(function(k,F){return k.value===F.value?(k.move==="in"?0:1)-(F.move==="in"?0:1):k.value-F.value}),r=0,i=p,s.forEach(function(k){(r+=k.move==="in"?1:-1)===1&&k.move==="in"&&(i=k.value),r===0&&W(i)&&(y.push({from:i,to:k.value,len:k.value-i-(k.size||0)}),_+=k.value-i-(k.size||0))}),l.breakArray=y,W(p)&&W(C)&&W(h.min)&&(l.unitLength=C-p-_+A,J(h,"afterBreaks"),h.staticScale?h.transA=h.staticScale:l.unitLength&&(h.transA*=(C-h.min+A)/l.unitLength),A&&(h.minPixelPadding=h.transA*(h.minPointOffset||0)),h.min=p,h.max=C)}}),D(x,!0)&&h.chart.redraw()},M}();O.Additions=E}(X||(X={})),X}),st(B,"masters/modules/broken-axis.src.js",[B["Core/Globals.js"],B["Core/Axis/BrokenAxis.js"]],function(U,z){var X=U;z.compose(X.Axis,X.Series)}),st(B,"Extensions/DataGrouping/ApproximationRegistry.js",[],function(){return{}}),st(B,"Extensions/DataGrouping/ApproximationDefaults.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X=z.arrayMax,V=z.arrayMin,K=z.correctFloat,J=z.extend,q=z.isNumber;function W(w){var T=w.length,d=D(w);return q(d)&&T&&(d=K(d/T)),d}function D(w){var T,d=w.length;if(!d&&w.hasNulls)T=null;else if(d)for(T=0;d--;)T+=w[d];return T}var O={average:W,averages:function(){var w=[];return[].forEach.call(arguments,function(T){w.push(W(T))}),w[0]===void 0?void 0:w},close:function(w){return w.length?w[w.length-1]:w.hasNulls?null:void 0},high:function(w){return w.length?X(w):w.hasNulls?null:void 0},hlc:function(w,T,d){if(w=U.high(w),T=U.low(T),d=U.close(d),q(w)||q(T)||q(d))return[w,T,d]},low:function(w){return w.length?V(w):w.hasNulls?null:void 0},ohlc:function(w,T,d,u){if(w=U.open(w),T=U.high(T),d=U.low(d),u=U.close(u),q(w)||q(T)||q(d)||q(u))return[w,T,d,u]},open:function(w){return w.length?w[0]:w.hasNulls?null:void 0},range:function(w,T){return w=U.low(w),T=U.high(T),q(w)||q(T)?[w,T]:w===null&&T===null?null:void 0},sum:D};return J(U,O),O}),st(B,"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]]}}),st(B,"Extensions/DataGrouping/DataGroupingAxisComposition.js",[B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Utilities.js"]],function(U,z){var X,V=z.addEvent,K=z.extend,J=z.merge,q=z.pick,W=[];function D(d){var u=this,g=u.series;g.forEach(function(b){b.groupPixelWidth=void 0}),g.forEach(function(b){b.groupPixelWidth=u.getGroupPixelWidth&&u.getGroupPixelWidth(),b.groupPixelWidth&&(b.hasProcessed=!0),b.applyGrouping(!!d.hasExtremesChanged)})}function O(){for(var d,u,g=this.series,b=g.length,v=0,S=!1;b--;)(u=g[b].options.dataGrouping)&&(v=Math.max(v,q(u.groupPixelWidth,U.common.groupPixelWidth)),d=(g[b].processedXData||g[b].data).length,(g[b].groupPixelWidth||d>this.chart.plotSizeX/v||d&&u.forced)&&(S=!0));return S?v:0}function w(){this.series.forEach(function(d){d.hasProcessed=!1})}function T(d,u){var g;if(u=q(u,!0),d||(d={forced:!1,units:null}),this instanceof X)for(g=this.series.length;g--;)this.series[g].update({dataGrouping:d},!1);else this.chart.options.series.forEach(function(b){b.dataGrouping=typeof d=="boolean"?d:J(d,b.dataGrouping)});this.ordinal&&(this.ordinal.slope=void 0),u&&this.chart.redraw()}return{compose:function(d){X=d,W.indexOf(d)===-1&&(W.push(d),V(d,"afterSetScale",w),V(d,"postProcessData",D),K(d.prototype,{applyGrouping:D,getGroupPixelWidth:O,setDataGrouping:T}))}}}),st(B,"Extensions/DataGrouping/DataGroupingSeriesComposition.js",[B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Core/Axis/DateTimeAxis.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=K.series.prototype,W=J.addEvent,D=J.defined,O=J.error,w=J.extend,T=J.isNumber,d=J.merge,u=J.pick,g=q.generatePoints,b=[];function v(x){var l,h,e=this,r=e.chart,n=e.options.dataGrouping,i=e.allowDG!==!1&&n&&u(n.enabled,r.options.isStock),c=e.visible||!r.options.chart.ignoreHiddenSeries,a=this.currentDataGrouping,s=!1;i&&!e.requireSorting&&(e.requireSorting=s=!0);var y=function(dt,bt){return!(dt.isCartesian&&!dt.isDirty&&!dt.xAxis.isDirty&&!dt.yAxis.isDirty&&!bt)}(e,x)===!1||!i;if(s&&(e.requireSorting=!1),!y){e.destroyGroupedData();var A=n.groupAll?e.xData:e.processedXData,_=n.groupAll?e.yData:e.processedYData,p=r.plotSizeX,C=e.xAxis,k=C.options.ordinal,F=e.groupPixelWidth,G=void 0,I=void 0;if(F&&A&&A.length&&p){I=!0,e.isDirty=!0,e.points=null;var j=C.getExtremes(),N=j.min,Z=j.max,$=F*(Z-N)/p*(k&&C.ordinal&&C.ordinal.getGroupIntervalFactor(N,Z,e)||1),Y=C.getTimeTicks(X.Additions.prototype.normalizeTimeTickInterval($,n.units||z.units),Math.min(N,A[0]),Math.max(Z,A[A.length-1]),C.options.startOfWeek,A,e.closestPointRange),et=q.groupData.apply(e,[A,_,Y,n.approximation]),rt=et.groupedXData,it=et.groupedYData,ht=0;for(n&&n.smoothed&&rt.length&&(n.firstAnchor="firstPoint",n.anchor="middle",n.lastAnchor="lastPoint",O(32,!1,r,{"dataGrouping.smoothed":"use dataGrouping.anchor"})),function(dt,bt,xt){var St,wt=dt.options.dataGrouping,mt=dt.currentDataGrouping&&dt.currentDataGrouping.gapSize;if(wt&&dt.xData&&mt&&dt.groupMap){var at=bt.length-1,pt=wt.anchor,vt=u(wt.firstAnchor,pt),Ct=u(wt.lastAnchor,pt);if(pt&&pt!=="start"){var Tt=mt*{middle:.5,end:1}[pt];for(St=bt.length-1;St--&&St>0;)bt[St]+=Tt}if(vt&&vt!=="start"&&dt.xData[0]>=bt[0]){var At=dt.groupMap[0].start,Lt=dt.groupMap[0].length,Ot=void 0;T(At)&&T(Lt)&&(Ot=At+(Lt-1)),bt[0]={middle:bt[0]+.5*mt,end:bt[0]+mt,firstPoint:dt.xData[0],lastPoint:Ot&&dt.xData[Ot]}[vt]}if(Ct&&Ct!=="start"&&mt&&bt[at]>=xt-mt){var _t=dt.groupMap[dt.groupMap.length-1].start;bt[at]={middle:bt[at]+.5*mt,end:bt[at]+mt,firstPoint:_t&&dt.xData[_t],lastPoint:dt.xData[dt.xData.length-1]}[Ct]}}}(e,rt,Z),G=1;G<Y.length;G++)Y.info.segmentStarts&&Y.info.segmentStarts.indexOf(G)!==-1||(ht=Math.max(Y[G]-Y[G-1],ht));(l=Y.info).gapSize=ht,e.closestPointRange=Y.info.totalRange,e.groupMap=et.groupMap,c&&function(dt,bt){D(bt[0])&&T(dt.min)&&T(dt.dataMin)&&bt[0]<dt.min&&((!D(dt.options.min)&&dt.min<=dt.dataMin||dt.min===dt.dataMin)&&(dt.min=Math.min(bt[0],dt.min)),dt.dataMin=Math.min(bt[0],dt.dataMin)),D(bt[bt.length-1])&&T(dt.max)&&T(dt.dataMax)&&bt[bt.length-1]>dt.max&&((!D(dt.options.max)&&T(dt.dataMax)&&dt.max>=dt.dataMax||dt.max===dt.dataMax)&&(dt.max=Math.max(bt[bt.length-1],dt.max)),dt.dataMax=Math.max(bt[bt.length-1],dt.dataMax))}(C,rt),n.groupAll&&(e.allGroupedData=it,rt=(h=e.cropData(rt,it,C.min,C.max,1)).xData,it=h.yData,e.cropStart=h.start),e.processedXData=rt,e.processedYData=it}else e.groupMap=null;e.hasGroupedData=I,e.currentDataGrouping=l,e.preventGraphAnimation=(a&&a.totalRange)!==(l&&l.totalRange)}}function S(){this.groupedData&&(this.groupedData.forEach(function(x,l){x&&(this.groupedData[l]=x.destroy?x.destroy():null)},this),this.groupedData.length=0)}function P(){g.apply(this),this.destroyGroupedData(),this.groupedData=this.hasGroupedData?this.points:null}function E(){return this.is("arearange")?"range":this.is("ohlc")?"ohlc":this.is("hlc")?"hlc":this.is("column")?"sum":"average"}function M(x,l,h,e){var r,n,i,c=this,a=c.data,s=c.options&&c.options.data,y=[],A=[],_=[],p=x.length,C=!!l,k=[],F=c.pointArrayMap,G=F&&F.length,I=["x"].concat(F||["y"]),j=this.options.dataGrouping&&this.options.dataGrouping.groupAll,N=0,Z=0,$=typeof e=="function"?e:e&&U[e]?U[e]:U[c.getDGApproximation&&c.getDGApproximation()||"average"];if(G)for(var Y=F.length;Y--;)k.push([]);else k.push([]);for(var et=G||1,rt=0;rt<=p;rt++)if(!(x[rt]<h[0])){for(;h[N+1]!==void 0&&x[rt]>=h[N+1]||rt===p;){r=h[N],c.dataGroupInfo={start:j?Z:c.cropStart+Z,length:k[0].length},i=$.apply(c,k),c.pointClass&&!D(c.dataGroupInfo.options)&&(c.dataGroupInfo.options=d(c.pointClass.prototype.optionsToObject.call({series:c},c.options.data[c.cropStart+Z])),I.forEach(function(xt){delete c.dataGroupInfo.options[xt]})),i!==void 0&&(y.push(r),A.push(i),_.push(c.dataGroupInfo)),Z=rt;for(var it=0;it<et;it++)k[it].length=0,k[it].hasNulls=!1;if(N+=1,rt===p)break}if(rt===p)break;if(F){var ht=c.options.dataGrouping&&c.options.dataGrouping.groupAll?rt:c.cropStart+rt,dt=a&&a[ht]||c.pointClass.prototype.applyOptions.apply({series:c},[s[ht]]),bt=void 0;for(it=0;it<G;it++)bt=dt[F[it]],T(bt)?k[it].push(bt):bt===null&&(k[it].hasNulls=!0)}else n=C?l[rt]:null,T(n)?k[0].push(n):n===null&&(k[0].hasNulls=!0)}return{groupedXData:y,groupedYData:A,groupMap:_}}function f(x){var l=x.options,h=this.type,e=this.chart.options.plotOptions,r=this.useCommonDataGrouping&&z.common,n=z.seriesSpecific,i=V.defaultOptions.plotOptions[h].dataGrouping;if(e&&(n[h]||r)){var c=this.chart.rangeSelector;i||(i=d(z.common,n[h])),l.dataGrouping=d(r,i,e.series&&e.series.dataGrouping,e[h].dataGrouping,this.userOptions.dataGrouping,!l.isInternal&&c&&T(c.selected)&&c.buttonOptions[c.selected].dataGrouping)}}return{compose:function(x){var l=x.prototype.pointClass;b.indexOf(l)===-1&&(b.push(l),W(l,"update",function(){if(this.dataGroup)return O(24,!1,this.series.chart),!1})),b.indexOf(x)===-1&&(b.push(x),W(x,"afterSetOptions",f),W(x,"destroy",S),w(x.prototype,{applyGrouping:v,destroyGroupedData:S,generatePoints:P,getDGApproximation:E,groupData:M}))},groupData:M}}),st(B,"Extensions/DataGrouping/DataGrouping.js",[B["Extensions/DataGrouping/DataGroupingAxisComposition.js"],B["Extensions/DataGrouping/DataGroupingDefaults.js"],B["Extensions/DataGrouping/DataGroupingSeriesComposition.js"],B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=V.format,q=K.addEvent,W=K.extend,D=K.isNumber,O=[];function w(T){var d,u,g,b,v,S=this.chart,P=S.time,E=T.labelConfig,M=E.series,f=M.options,x=M.tooltipOptions,l=f.dataGrouping,h=M.xAxis,e=x.xDateFormat,r=x[T.isFooter?"footerFormat":"headerFormat"];h&&h.options.type==="datetime"&&l&&D(E.key)&&(u=M.currentDataGrouping,g=l.dateTimeLabelFormats||z.common.dateTimeLabelFormats,u?(b=g[u.unitName],u.count===1?e=b[0]:(e=b[1],d=b[2])):!e&&g&&h.dateTime&&(e=h.dateTime.getXDateFormat(E.x,x.dateTimeLabelFormats)),v=P.dateFormat(e,E.key),d&&(v+=P.dateFormat(d,E.key+u.totalRange-1)),M.chart.styledMode&&(r=this.styledModeFormat(r)),T.text=J(r,{point:W(E.point,{key:v}),series:M},S),T.preventDefault())}return{compose:function(T,d,u){U.compose(T),X.compose(d),O.indexOf(u)===-1&&(O.push(u),q(u,"headerFormatter",w))},groupData:X.groupData}}),st(B,"masters/modules/datagrouping.src.js",[B["Core/Globals.js"],B["Extensions/DataGrouping/ApproximationDefaults.js"],B["Extensions/DataGrouping/ApproximationRegistry.js"],B["Extensions/DataGrouping/DataGrouping.js"]],function(U,z,X,V){var K=U;K.dataGrouping={approximationDefaults:z,approximations:X},V.compose(K.Axis,K.Series,K.Tooltip)}),st(B,"Series/DataModifyComposition.js",[B["Core/Axis/Axis.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=z.prototype.tooltipFormatter,q=V.addEvent,W=V.arrayMax,D=V.arrayMin,O=V.correctFloat,w=V.defined,T=V.isArray,d=V.isNumber,u=V.isString,g=V.pick;return function(b){var v=[];function S(n,i,c){this.isXAxis||(this.series.forEach(function(a){n==="compare"&&typeof i!="boolean"?a.setCompare(i,!1):n!=="cumulative"||u(i)||a.setCumulative(i,!1)}),g(c,!0)&&this.chart.redraw())}function P(n){var i=this,c=i.series.chart.numberFormatter,a=function(s){n=n.replace("{point."+s+"}",(i[s]>0&&s==="change"?"+":"")+c(i[s],g(i.series.tooltipOptions.changeDecimals,2)))};return w(i.change)&&a("change"),w(i.cumulativeSum)&&a("cumulativeSum"),J.apply(this,[n])}function E(){var n,i=this.options.compare;(i==="percent"||i==="value"||this.options.cumulative)&&(n=new r(this),i==="percent"||i==="value"?n.initCompare(i):n.initCumulative()),this.dataModify=n}function M(n){var i=n.dataExtremes,c=i.activeYData;if(this.dataModify&&i){var a=void 0;this.options.compare?a=[this.dataModify.modifyValue(i.dataMin),this.dataModify.modifyValue(i.dataMax)]:this.options.cumulative&&T(c)&&c.length>=2&&(a=r.getCumulativeExtremes(c)),a&&(i.dataMin=D(a),i.dataMax=W(a))}}function f(n,i){this.options.compare=this.userOptions.compare=n,this.update({},g(i,!0)),!this.dataModify||n!=="value"&&n!=="percent"?this.points.forEach(function(c){delete c.change}):this.dataModify.initCompare(n)}function x(){var n=this;if(n.xAxis&&n.processedYData&&n.dataModify){var i=n.processedXData,c=n.processedYData,a=c.length,s=n.options.compareStart===!0?0:1,y=-1,A=void 0;for(n.pointArrayMap&&(y=n.pointArrayMap.indexOf(n.options.pointValKey||n.pointValKey||"y")),A=0;A<a-s;A++){var _=c[A]&&y>-1?c[A][y]:c[A];if(d(_)&&_!==0&&i[A+s]>=(n.xAxis.min||0)){n.dataModify.compareValue=_;break}}}}function l(n,i){this.setModifier("compare",n,i)}function h(n,i){n=g(n,!1),this.options.cumulative=this.userOptions.cumulative=n,this.update({},g(i,!0)),this.dataModify?this.dataModify.initCumulative():this.points.forEach(function(c){delete c.cumulativeSum})}function e(n,i){this.setModifier("cumulative",n,i)}b.compose=function(n,i,c){if(v.indexOf(n)===-1){v.push(n);var a=n.prototype;a.setCompare=f,a.setCumulative=h,q(n,"afterInit",E),q(n,"afterGetExtremes",M),q(n,"afterProcessData",x)}if(v.indexOf(i)===-1){v.push(i);var s=i.prototype;s.setCompare=l,s.setModifier=S,s.setCumulative=e}return v.indexOf(c)===-1&&(v.push(c),c.prototype.tooltipFormatter=P),n};var r=function(){function n(i){this.series=i}return n.prototype.modifyValue=function(){return 0},n.getCumulativeExtremes=function(i){var c=1/0,a=-1/0;return i.reduce(function(s,y){var A=s+y;return c=Math.min(c,A,s),a=Math.max(a,A,s),A}),[c,a]},n.prototype.initCompare=function(i){this.modifyValue=function(c,a){c===null&&(c=0);var s=this.compareValue;if(c!==void 0&&s!==void 0){if(i==="value"?c-=s:c=c/s*100-(this.series.options.compareBase===100?0:100),a!==void 0){var y=this.series.points[a];y&&(y.change=c)}return c}return 0}},n.prototype.initCumulative=function(){this.modifyValue=function(i,c){if(i===null&&(i=0),i!==void 0&&c!==void 0){var a=c>0?this.series.points[c-1]:null;a&&a.cumulativeSum&&(i=O(a.cumulativeSum+i));var s=this.series.points[c];return s&&(s.cumulativeSum=i),i}return 0}},n}();b.Additions=r}(K||(K={})),K}),st(B,"Core/Axis/NavigatorAxisComposition.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=U.isTouchDevice,V=z.addEvent,K=z.correctFloat,J=z.defined,q=z.isNumber,W=z.pick,D=[];function O(){var d=this;d.navigatorAxis||(d.navigatorAxis=new T(d))}function w(d){var u=this,g=u.chart.options,b=g.navigator,v=u.navigatorAxis,S=g.chart.zooming.pinchType,P=g.rangeSelector,E=g.chart.zooming.type;if(u.isXAxis&&(b&&b.enabled||P&&P.enabled)){if(E==="y")d.zoomed=!1;else if((!X&&E==="xy"||X&&S==="xy")&&u.options.range){var M=v.previousZoom;J(d.newMin)?v.previousZoom=[u.min,u.max]:M&&(d.newMin=M[0],d.newMax=M[1],v.previousZoom=void 0)}}d.zoomed!==void 0&&d.preventDefault()}var T=function(){function d(u){this.axis=u}return d.compose=function(u){D.indexOf(u)===-1&&(D.push(u),u.keepProps.push("navigatorAxis"),V(u,"init",O),V(u,"zoom",w))},d.prototype.destroy=function(){this.axis=void 0},d.prototype.toFixedRange=function(u,g,b,v){var S=this.axis,P=S.chart,E=W(b,S.translate(u,!0,!S.horiz)),M=W(v,S.translate(g,!0,!S.horiz)),f=P&&P.fixedRange,x=(S.pointRange||0)/2,l=f&&(M-E)/f;return J(b)||(E=K(E+x)),J(v)||(M=K(M-x)),l>.7&&l<1.3&&(v?E=M-f:M=E+f),q(E)&&q(M)||(E=M=void 0),{min:E,max:M}},d}();return T}),st(B,"Stock/Navigator/NavigatorDefaults.js",[B["Core/Color/Color.js"],B["Core/Series/SeriesRegistry.js"]],function(U,z){var X=U.parse,V=z.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:V.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}}}),st(B,"Stock/Navigator/NavigatorSymbols.js",[],function(){return{"navigator-handle":function(U,z,X,V,K){K===void 0&&(K={});var J=K.width?K.width/2:X,q=Math.round(J/3)+.5;return[["M",-J-1,.5],["L",J,.5],["L",J,(V=K.height||V)+.5],["L",-J-1,V+.5],["L",-J-1,.5],["M",-q,4],["L",-q,V-3],["M",q-1,4],["L",q-1,V-3]]}}}),st(B,"Stock/Navigator/NavigatorComposition.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/Navigator/NavigatorSymbols.js"],B["Core/Renderer/RendererRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q){var W,D=U.defaultOptions,O=U.setOptions,w=z.isTouchDevice,T=J.getRendererType,d=q.addEvent,u=q.extend,g=q.merge,b=q.pick,v=[];function S(){this.navigator&&this.navigator.setBaseSeries(null,!1)}function P(){var e,r,n,i,c=this.legend,a=this.navigator;a&&(r=c&&c.options,n=a.xAxis,i=a.yAxis,e=a.scrollbarHeight,this.inverted?(a.left=a.opposite?this.chartWidth-e-a.height:this.spacing[3]+e,a.top=this.plotTop+e):(a.left=b(n.left,this.plotLeft+e),a.top=a.navigatorOptions.top||this.chartHeight-a.height-e-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(r&&r.verticalAlign==="bottom"&&r.layout!=="proximate"&&r.enabled&&!r.floating?c.legendHeight+b(r.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),n&&i&&(this.inverted?n.options.left=i.options.left=a.left:n.options.top=i.options.top=a.top,n.setAxisSize(),i.setAxisSize()))}function E(e){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new W(this),b(e.redraw,!0)&&this.redraw(e.animation))}function M(){var e=this.options;(e.navigator.enabled||e.scrollbar.enabled)&&(this.scroller=this.navigator=new W(this))}function f(){var e=this.options,r=e.navigator,n=e.rangeSelector;if((r&&r.enabled||n&&n.enabled)&&(!w&&e.chart.zooming.type==="x"||w&&e.chart.zooming.pinchType==="x"))return!1}function x(e){var r=e.navigator;if(r&&e.xAxis[0]){var n=e.xAxis[0].getExtremes();r.render(n.min,n.max)}}function l(e){var r=e.options.navigator||{},n=e.options.scrollbar||{};this.navigator||this.scroller||!r.enabled&&!n.enabled||(g(!0,this.options.navigator,r),g(!0,this.options.scrollbar,n),delete e.options.navigator,delete e.options.scrollbar)}function h(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)}return{compose:function(e,r,n,i){X.compose(e),W=n,v.indexOf(r)===-1&&(v.push(r),r.prototype.callbacks.push(x),d(r,"afterAddSeries",S),d(r,"afterSetChartSize",P),d(r,"afterUpdate",E),d(r,"beforeRender",M),d(r,"beforeShowResetZoom",f),d(r,"update",l)),v.indexOf(i)===-1&&(v.push(i),d(i,"afterUpdate",h)),v.indexOf(T)===-1&&(v.push(T),u(T().prototype.symbols,K)),v.indexOf(O)===-1&&(v.push(O),u(D,{navigator:V}))}}}),st(B,"Core/Axis/ScrollbarAxis.js",[B["Core/Utilities.js"]],function(U){var z=U.addEvent,X=U.defined,V=U.pick;return function(){function K(){}return K.compose=function(J,q){if(K.composed.indexOf(J)!==-1)return J;K.composed.push(J);var W=function(D){var O=V(D.options&&D.options.min,D.min),w=V(D.options&&D.options.max,D.max);return{axisMin:O,axisMax:w,scrollMin:X(D.dataMin)?Math.min(O,D.min,D.dataMin,V(D.threshold,1/0)):O,scrollMax:X(D.dataMax)?Math.max(w,D.max,D.dataMax,V(D.threshold,-1/0)):w}};return z(J,"afterInit",function(){var D=this;D.options&&D.options.scrollbar&&D.options.scrollbar.enabled&&(D.options.scrollbar.vertical=!D.horiz,D.options.startOnTick=D.options.endOnTick=!1,D.scrollbar=new q(D.chart.renderer,D.options.scrollbar,D.chart),z(D.scrollbar,"changed",function(O){var w,T,d=W(D),u=d.axisMin,g=d.axisMax,b=d.scrollMin,v=d.scrollMax-b;X(u)&&X(g)&&(D.horiz&&!D.reversed||!D.horiz&&D.reversed?(w=b+v*this.to,T=b+v*this.from):(w=b+v*(1-this.from),T=b+v*(1-this.to)),this.shouldUpdateExtremes(O.DOMType)?D.setExtremes(T,w,!0,O.DOMType!=="mousemove"&&O.DOMType!=="touchmove",O):this.setRange(this.from,this.to))}))}),z(J,"afterRender",function(){var D,O,w,T=this,d=W(T),u=d.scrollMin,g=d.scrollMax,b=T.scrollbar,v=T.axisTitleMargin+(T.titleOffset||0),S=T.chart.scrollbarsOffsets,P=T.options.margin||0;if(b){if(T.horiz)T.opposite||(S[1]+=v),b.position(T.left,T.top+T.height+2+S[1]-(T.opposite?P:0),T.width,T.height),T.opposite||(S[1]+=P),D=1;else{T.opposite&&(S[0]+=v);var E;E=b.options.opposite?T.left+T.width+2+S[0]-(T.opposite?0:P):T.opposite?0:P,b.position(E,T.top,T.width,T.height),T.opposite&&(S[0]+=P),D=0}S[D]+=b.size+b.options.margin,isNaN(u)||isNaN(g)||!X(T.min)||!X(T.max)||T.min===T.max?b.setRange(0,1):(O=(T.min-u)/(g-u),w=(T.max-u)/(g-u),T.horiz&&!T.reversed||!T.horiz&&T.reversed?b.setRange(O,w):b.setRange(1-w,1-O))}}),z(J,"afterGetOffset",function(){var D=this,O=D.scrollbar&&!D.scrollbar.options.opposite,w=D.horiz?2:O?3:1,T=D.scrollbar;T&&(D.chart.scrollbarsOffsets=[0,0],D.chart.axisOffset[w]+=T.size+T.options.margin)}),J},K.composed=[],K}()}),st(B,"Stock/Scrollbar/ScrollbarDefaults.js",[B["Core/Globals.js"]],function(U){return{height:U.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}}),st(B,"Stock/Scrollbar/Scrollbar.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/ScrollbarAxis.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=U.defaultOptions,q=K.addEvent,W=K.correctFloat,D=K.defined,O=K.destroyObjectProperties,w=K.fireEvent,T=K.merge,d=K.pick,u=K.removeEvent,g=function(){function b(v,S,P){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(v,S,P)}return b.compose=function(v){X.compose(v,b)},b.swapXY=function(v,S){return S&&v.forEach(function(P){for(var E,M=P.length,f=0;f<M;f+=2)typeof(E=P[f+1])=="number"&&(P[f+1]=P[f+2],P[f+2]=E)}),v},b.prototype.addEvents=function(){var v=this.options.inverted?[1,0]:[0,1],S=this.scrollbarButtons,P=this.scrollbarGroup.element,E=this.track.element,M=this.mouseDownHandler.bind(this),f=this.mouseMoveHandler.bind(this),x=this.mouseUpHandler.bind(this),l=[[S[v[0]].element,"click",this.buttonToMinClick.bind(this)],[S[v[1]].element,"click",this.buttonToMaxClick.bind(this)],[E,"click",this.trackClick.bind(this)],[P,"mousedown",M],[P.ownerDocument,"mousemove",f],[P.ownerDocument,"mouseup",x]];z.hasTouch&&l.push([P,"touchstart",M],[P.ownerDocument,"touchmove",f],[P.ownerDocument,"touchend",x]),l.forEach(function(h){q.apply(null,h)}),this._events=l},b.prototype.buttonToMaxClick=function(v){var S=this,P=(S.to-S.from)*d(S.options.step,.2);S.updatePosition(S.from+P,S.to+P),w(S,"changed",{from:S.from,to:S.to,trigger:"scrollbar",DOMEvent:v})},b.prototype.buttonToMinClick=function(v){var S=this,P=W(S.to-S.from)*d(S.options.step,.2);S.updatePosition(W(S.from-P),W(S.to-P)),w(S,"changed",{from:S.from,to:S.to,trigger:"scrollbar",DOMEvent:v})},b.prototype.cursorToScrollbarPosition=function(v){var S=this,P=S.options,E=P.minWidth>S.calculatedWidth?P.minWidth:0;return{chartX:(v.chartX-S.x-S.xOffset)/(S.barWidth-E),chartY:(v.chartY-S.y-S.yOffset)/(S.barWidth-E)}},b.prototype.destroy=function(){var v=this,S=v.chart.scroller;v.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach(function(P){v[P]&&v[P].destroy&&(v[P]=v[P].destroy())}),S&&v===S.scrollbar&&(S.scrollbar=null,O(S.scrollbarButtons))},b.prototype.drawScrollbarButton=function(v){var S,P=this,E=P.renderer,M=P.scrollbarButtons,f=P.options,x=P.size,l=E.g().add(P.group);M.push(l),S=E.rect().addClass("highcharts-scrollbar-button").add(l),P.chart.styledMode||S.attr({stroke:f.buttonBorderColor,"stroke-width":f.buttonBorderWidth,fill:f.buttonBackgroundColor}),S.attr(S.crisp({x:-.5,y:-.5,width:x+1,height:x+1,r:f.buttonBorderRadius},S.strokeWidth())),S=E.path(b.swapXY([["M",x/2+(v?-1:1),x/2-3],["L",x/2+(v?-1:1),x/2+3],["L",x/2+(v?2:-2),x/2]],f.vertical)).addClass("highcharts-scrollbar-arrow").add(M[v]),P.chart.styledMode||S.attr({fill:f.buttonArrowColor})},b.prototype.init=function(v,S,P){var E=this;E.scrollbarButtons=[],E.renderer=v,E.userOptions=S,E.options=T(V,J.scrollbar,S),E.chart=P,E.size=d(E.options.size,E.options.height),S.enabled&&(E.render(),E.addEvents())},b.prototype.mouseDownHandler=function(v){var S=this,P=S.chart.pointer.normalize(v),E=S.cursorToScrollbarPosition(P);S.chartX=E.chartX,S.chartY=E.chartY,S.initPositions=[S.from,S.to],S.grabbedCenter=!0},b.prototype.mouseMoveHandler=function(v){var S,P=this,E=P.chart.pointer.normalize(v),M=P.options.vertical?"chartY":"chartX",f=P.initPositions||[];!P.grabbedCenter||v.touches&&v.touches[0][M]===0||(S=P.cursorToScrollbarPosition(E)[M]-P[M],P.hasDragged=!0,P.updatePosition(f[0]+S,f[1]+S),P.hasDragged&&w(P,"changed",{from:P.from,to:P.to,trigger:"scrollbar",DOMType:v.type,DOMEvent:v}))},b.prototype.mouseUpHandler=function(v){var S=this;S.hasDragged&&w(S,"changed",{from:S.from,to:S.to,trigger:"scrollbar",DOMType:v.type,DOMEvent:v}),S.grabbedCenter=S.hasDragged=S.chartX=S.chartY=null},b.prototype.position=function(v,S,P,E){var M=this,f=M.options.vertical,x=M.rendered?"animate":"attr",l=E,h=0;M.group.show(),M.x=v,M.y=S+this.trackBorderWidth,M.width=P,M.height=E,M.xOffset=l,M.yOffset=h,f?(M.width=M.yOffset=P=h=M.size,M.xOffset=l=0,M.barWidth=E-2*P,M.x=v+=M.options.margin):(M.height=M.xOffset=E=l=M.size,M.barWidth=P-2*E,M.y=M.y+M.options.margin),M.group[x]({translateX:v,translateY:M.y}),M.track[x]({width:P,height:E}),M.scrollbarButtons[1][x]({translateX:f?0:P-l,translateY:f?E-h:0})},b.prototype.removeEvents=function(){this._events.forEach(function(v){u.apply(null,v)}),this._events.length=0},b.prototype.render=function(){var v=this,S=v.renderer,P=v.options,E=v.size,M=v.chart.styledMode,f=S.g("scrollbar").attr({zIndex:P.zIndex}).hide().add();v.group=f,v.track=S.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:P.trackBorderRadius||0,height:E,width:E}).add(f),M||v.track.attr({fill:P.trackBackgroundColor,stroke:P.trackBorderColor,"stroke-width":P.trackBorderWidth}),v.trackBorderWidth=v.track.strokeWidth(),v.track.attr({y:-this.trackBorderWidth%2/2}),v.scrollbarGroup=S.g().add(f),v.scrollbar=S.rect().addClass("highcharts-scrollbar-thumb").attr({height:E,width:E,r:P.barBorderRadius||0}).add(v.scrollbarGroup),v.scrollbarRifles=S.path(b.swapXY([["M",-3,E/4],["L",-3,2*E/3],["M",0,E/4],["L",0,2*E/3],["M",3,E/4],["L",3,2*E/3]],P.vertical)).addClass("highcharts-scrollbar-rifles").add(v.scrollbarGroup),M||(v.scrollbar.attr({fill:P.barBackgroundColor,stroke:P.barBorderColor,"stroke-width":P.barBorderWidth}),v.scrollbarRifles.attr({stroke:P.rifleColor,"stroke-width":1})),v.scrollbarStrokeWidth=v.scrollbar.strokeWidth(),v.scrollbarGroup.translate(-v.scrollbarStrokeWidth%2/2,-v.scrollbarStrokeWidth%2/2),v.drawScrollbarButton(0),v.drawScrollbarButton(1)},b.prototype.setRange=function(v,S){var P=this,E=P.options,M=E.vertical,f=E.minWidth,x=P.barWidth,l=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(D(x)){var h,e,r=x*Math.min(S,1);v=Math.max(v,0),h=Math.ceil(x*v),P.calculatedWidth=e=W(r-h),e<f&&(h=(x-f+e)*v,e=f);var n=Math.floor(h+P.xOffset+P.yOffset),i=e/2-.5;P.from=v,P.to=S,M?(P.scrollbarGroup[l]({translateY:n}),P.scrollbar[l]({height:e}),P.scrollbarRifles[l]({translateY:i}),P.scrollbarTop=n,P.scrollbarLeft=0):(P.scrollbarGroup[l]({translateX:n}),P.scrollbar[l]({width:e}),P.scrollbarRifles[l]({translateX:i}),P.scrollbarLeft=n,P.scrollbarTop=0),e<=12?P.scrollbarRifles.hide():P.scrollbarRifles.show(),E.showFull===!1&&(v<=0&&S>=1?P.group.hide():P.group.show()),P.rendered=!0}},b.prototype.shouldUpdateExtremes=function(v){return d(this.options.liveRedraw,z.svg&&!z.isTouchDevice&&!this.chart.boosted)||v==="mouseup"||v==="touchend"||!D(v)},b.prototype.trackClick=function(v){var S=this,P=S.chart.pointer.normalize(v),E=S.to-S.from,M=S.y+S.scrollbarTop,f=S.x+S.scrollbarLeft;S.options.vertical&&P.chartY>M||!S.options.vertical&&P.chartX>f?S.updatePosition(S.from+E,S.to+E):S.updatePosition(S.from-E,S.to-E),w(S,"changed",{from:S.from,to:S.to,trigger:"scrollbar",DOMEvent:v})},b.prototype.update=function(v){this.destroy(),this.init(this.chart.renderer,T(!0,this.options,v),this.chart)},b.prototype.updatePosition=function(v,S){S>1&&(v=W(1-W(S-v)),S=1),v<0&&(S=W(S-v),v=0),this.from=v,this.to=S},b.defaultOptions=V,b}();return J.scrollbar=T(!0,g.defaultOptions,J.scrollbar),g}),st(B,"Stock/Navigator/Navigator.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Axis/NavigatorAxisComposition.js"],B["Stock/Navigator/NavigatorComposition.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q){var W=z.defaultOptions,D=X.hasTouch,O=X.isTouchDevice,w=q.addEvent,T=q.clamp,d=q.correctFloat,u=q.defined,g=q.destroyObjectProperties,b=q.erase,v=q.extend,S=q.find,P=q.isArray,E=q.isNumber,M=q.merge,f=q.pick,x=q.removeEvent,l=q.splat;function h(e){for(var r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var i=[].filter.call(r,E);if(i.length)return Math[e].apply(0,i)}return function(){function e(r){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(r)}return e.compose=function(r,n,i){K.compose(r,n,e,i)},e.prototype.drawHandle=function(r,n,i,c){var a=this,s=a.navigatorOptions.handles.height;a.handles[n][c](i?{translateX:Math.round(a.left+a.height/2),translateY:Math.round(a.top+parseInt(r,10)+.5-s)}:{translateX:Math.round(a.left+parseInt(r,10)),translateY:Math.round(a.top+a.height/2-s/2-1)})},e.prototype.drawOutline=function(r,n,i,c){var a,s,y=this,A=y.navigatorOptions.maskInside,_=y.outline.strokeWidth(),p=_/2,C=_%2/2,k=y.outlineHeight,F=y.scrollbarHeight||0,G=y.size,I=y.left-F,j=y.top;i?(s=[["M",(I-=p)+k,j-F-C],["L",I+k,a=j+n+C],["L",I,a],["L",I,n=j+r+C],["L",I+k,n],["L",I+k,j+G+F]],A&&s.push(["M",I+k,a-p],["L",I+k,n+p])):(s=[["M",I,j+=p],["L",r+=I+F-C,j],["L",r,j+k],["L",n+=I+F-C,j+k],["L",n,j],["L",I+G+2*F,j]],A&&s.push(["M",r-p,j],["L",n+p,j])),y.outline[c]({d:s})},e.prototype.drawMasks=function(r,n,i,c){var a,s,y,A,_=this,p=_.left,C=_.top,k=_.height;i?(y=[p,p,p],A=[C,C+r,C+n],s=[k,k,k],a=[r,n-r,_.size-n]):(y=[p,p+r,p+n],A=[C,C,C],s=[r,n-r,_.size-n],a=[k,k,k]),_.shades.forEach(function(F,G){F[c]({x:y[G],y:A[G],width:s[G],height:a[G]})})},e.prototype.renderElements=function(){var r=this,n=r.navigatorOptions,i=n.maskInside,c=r.chart,a=c.inverted,s=c.renderer,y={cursor:a?"ns-resize":"ew-resize"},A=r.navigatorGroup=s.g("navigator").attr({zIndex:8,visibility:"hidden"}).add();if([!i,i,!i].forEach(function(k,F){var G=s.rect().addClass("highcharts-navigator-mask"+(F===1?"-inside":"-outside")).add(A);c.styledMode||(G.attr({fill:k?n.maskFill:"rgba(0,0,0,0)"}),F===1&&G.css(y)),r.shades[F]=G}),r.outline=s.path().addClass("highcharts-navigator-outline").add(A),c.styledMode||r.outline.attr({"stroke-width":n.outlineWidth,stroke:n.outlineColor}),n.handles&&n.handles.enabled){var _=n.handles,p=_.height,C=_.width;[0,1].forEach(function(k){r.handles[k]=s.symbol(_.symbols[k],-C/2-1,0,C,p,_),c.inverted&&r.handles[k].attr({rotation:90,rotationOriginX:Math.floor(-C/2),rotationOriginY:(p+C)/2}),r.handles[k].attr({zIndex:7-k}).addClass("highcharts-navigator-handle highcharts-navigator-handle-"+["left","right"][k]).add(A),c.styledMode||r.handles[k].attr({fill:_.backgroundColor,stroke:_.borderColor,"stroke-width":_.lineWidth}).css(y)})}},e.prototype.update=function(r){(this.series||[]).forEach(function(i){i.baseSeries&&delete i.baseSeries.navigatorSeries}),this.destroy();var n=this.chart.options;M(!0,n.navigator,r),this.init(this.chart)},e.prototype.render=function(r,n,i,c){var a,s,y,A,_,p=this,C=p.chart,k=p.xAxis,F=k.pointRange||0,G=k.navigatorAxis.fake?C.xAxis[0]:k,I=p.navigatorEnabled,j=p.rendered,N=C.inverted,Z=C.xAxis[0].minRange,$=C.xAxis[0].options.maxRange,Y=p.scrollbarHeight;if(!this.hasDragged||u(i)){if(r=d(r-F/2),n=d(n+F/2),!E(r)||!E(n)){if(!j)return;i=0,c=f(k.width,G.width)}p.left=f(k.left,C.plotLeft+Y+(N?C.plotWidth:0));var et=p.size=A=f(k.len,(N?C.plotHeight:C.plotWidth)-2*Y);a=N?Y:A+2*Y,i=f(i,k.toPixels(r,!0)),c=f(c,k.toPixels(n,!0)),E(i)&&Math.abs(i)!==1/0||(i=0,c=a);var rt=k.toValue(i,!0),it=k.toValue(c,!0),ht=Math.abs(d(it-rt));ht<Z?this.grabbedLeft?i=k.toPixels(it-Z-F,!0):this.grabbedRight&&(c=k.toPixels(rt+Z+F,!0)):u($)&&d(ht-F)>$&&(this.grabbedLeft?i=k.toPixels(it-$-F,!0):this.grabbedRight&&(c=k.toPixels(rt+$+F,!0))),p.zoomedMax=T(Math.max(i,c),0,et),p.zoomedMin=T(p.fixedWidth?p.zoomedMax-p.fixedWidth:Math.min(i,c),0,et),p.range=p.zoomedMax-p.zoomedMin,et=Math.round(p.zoomedMax);var dt=Math.round(p.zoomedMin);I&&(p.navigatorGroup.attr({visibility:"inherit"}),_=j&&!p.hasDragged?"animate":"attr",p.drawMasks(dt,et,N,_),p.drawOutline(dt,et,N,_),p.navigatorOptions.handles.enabled&&(p.drawHandle(dt,0,N,_),p.drawHandle(et,1,N,_))),p.scrollbar&&(N?(y=p.top-Y,s=p.left-Y+(I||!G.opposite?0:(G.titleOffset||0)+G.axisTitleMargin),Y=A+2*Y):(y=p.top+(I?p.height:-Y),s=p.left-Y),p.scrollbar.position(s,y,a,Y),p.scrollbar.setRange(p.zoomedMin/(A||1),p.zoomedMax/(A||1))),p.rendered=!0}},e.prototype.addMouseEvents=function(){var r,n,i=this,c=i.chart,a=c.container,s=[];i.mouseMoveHandler=r=function(y){i.onMouseMove(y)},i.mouseUpHandler=n=function(y){i.onMouseUp(y)},(s=i.getPartsEvents("mousedown")).push(w(c.renderTo,"mousemove",r),w(a.ownerDocument,"mouseup",n)),D&&(s.push(w(c.renderTo,"touchmove",r),w(a.ownerDocument,"touchend",n)),s.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=s,i.series&&i.series[0]&&s.push(w(i.series[0].xAxis,"foundExtremes",function(){c.navigator.modifyNavigatorAxisExtremes()}))},e.prototype.getPartsEvents=function(r){var n=this,i=[];return["shades","handles"].forEach(function(c){n[c].forEach(function(a,s){i.push(w(a.element,r,function(y){n[c+"Mousedown"](y,s)}))})}),i},e.prototype.shadesMousedown=function(r,n){r=this.chart.pointer.normalize(r);var i,c,a,s,y=this,A=y.chart,_=y.xAxis,p=y.zoomedMin,C=y.size,k=y.range,F=y.left,G=r.chartX;A.inverted&&(G=r.chartY,F=y.top),n===1?(y.grabbedCenter=G,y.fixedWidth=k,y.dragOffset=G-p):(s=G-F-k/2,n===0?s=Math.max(0,s):n===2&&s+k>=C&&(s=C-k,y.reversedExtremes?(s-=k,c=y.getUnionExtremes().dataMin):i=y.getUnionExtremes().dataMax),s!==p&&(y.fixedWidth=k,a=_.navigatorAxis.toFixedRange(s,s+k,c,i),u(a.min)&&A.xAxis[0].setExtremes(Math.min(a.min,a.max),Math.max(a.min,a.max),!0,null,{trigger:"navigator"})))},e.prototype.handlesMousedown=function(r,n){r=this.chart.pointer.normalize(r);var i=this,c=i.chart,a=c.xAxis[0],s=i.reversedExtremes;n===0?(i.grabbedLeft=!0,i.otherHandlePos=i.zoomedMax,i.fixedExtreme=s?a.min:a.max):(i.grabbedRight=!0,i.otherHandlePos=i.zoomedMin,i.fixedExtreme=s?a.max:a.min),c.fixedRange=null},e.prototype.onMouseMove=function(r){var n,i=this,c=i.chart,a=i.navigatorSize,s=i.range,y=i.dragOffset,A=c.inverted,_=i.left;r.touches&&r.touches[0].pageX===0||(n=(r=c.pointer.normalize(r)).chartX,A&&(_=i.top,n=r.chartY),i.grabbedLeft?(i.hasDragged=!0,i.render(0,0,n-_,i.otherHandlePos)):i.grabbedRight?(i.hasDragged=!0,i.render(0,0,i.otherHandlePos,n-_)):i.grabbedCenter&&(i.hasDragged=!0,n<y?n=y:n>a+y-s&&(n=a+y-s),i.render(0,0,n-y,n-y+s)),i.hasDragged&&i.scrollbar&&f(i.scrollbar.options.liveRedraw,X.svg&&!O&&!this.chart.boosted)&&(r.DOMType=r.type,setTimeout(function(){i.onMouseUp(r)},0)))},e.prototype.onMouseUp=function(r){var n,i,c,a,s,y,A=this,_=A.chart,p=A.xAxis,C=A.scrollbar,k=r.DOMEvent||r,F=_.inverted,G=A.rendered&&!A.hasDragged?"animate":"attr";(!A.hasDragged||C&&C.hasDragged)&&r.trigger!=="scrollbar"||(c=A.getUnionExtremes(),A.zoomedMin===A.otherHandlePos?a=A.fixedExtreme:A.zoomedMax===A.otherHandlePos&&(s=A.fixedExtreme),A.zoomedMax===A.size&&(s=A.reversedExtremes?c.dataMin:c.dataMax),A.zoomedMin===0&&(a=A.reversedExtremes?c.dataMax:c.dataMin),y=p.navigatorAxis.toFixedRange(A.zoomedMin,A.zoomedMax,a,s),u(y.min)&&_.xAxis[0].setExtremes(Math.min(y.min,y.max),Math.max(y.min,y.max),!0,!A.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:k})),r.DOMType!=="mousemove"&&r.DOMType!=="touchmove"&&(A.grabbedLeft=A.grabbedRight=A.grabbedCenter=A.fixedWidth=A.fixedExtreme=A.otherHandlePos=A.hasDragged=A.dragOffset=null),A.navigatorEnabled&&E(A.zoomedMin)&&E(A.zoomedMax)&&(i=Math.round(A.zoomedMin),n=Math.round(A.zoomedMax),A.shades&&A.drawMasks(i,n,F,G),A.outline&&A.drawOutline(i,n,F,G),A.navigatorOptions.handles.enabled&&Object.keys(A.handles).length===A.handles.length&&(A.drawHandle(i,0,F,G),A.drawHandle(n,1,F,G)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach(function(r){r()}),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var r=this.baseSeries||[];this.navigatorEnabled&&r[0]&&(this.navigatorOptions.adaptToUpdatedData!==!1&&r.forEach(function(n){x(n,"updatedData",this.updatedDataHandler)},this),r[0].xAxis&&x(r[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(r){var n=r.options,i=n.navigator||{},c=i.enabled,a=n.scrollbar||{},s=a.enabled,y=c&&i.height||0,A=s&&a.height||0;this.handles=[],this.shades=[],this.chart=r,this.setBaseSeries(),this.height=y,this.scrollbarHeight=A,this.scrollbarEnabled=s,this.navigatorEnabled=c,this.navigatorOptions=i,this.scrollbarOptions=a,this.outlineHeight=y+A,this.opposite=f(i.opposite,!!(!c&&r.inverted));var _=this,p=_.baseSeries,C=r.xAxis.length,k=r.yAxis.length,F=p&&p[0]&&p[0].xAxis||r.xAxis[0]||{options:{}};r.isDirtyBox=!0,_.navigatorEnabled?(_.xAxis=new U(r,M({breaks:F.options.breaks,ordinal:F.options.ordinal},i.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},r.inverted?{offsets:[A,0,-A,0],width:y}:{offsets:[0,-A,0,A],height:y})),_.yAxis=new U(r,M(i.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:k,isInternal:!0,reversed:f(i.yAxis&&i.yAxis.reversed,r.yAxis[0]&&r.yAxis[0].reversed,!1),zoomEnabled:!1},r.inverted?{width:y}:{height:y})),p||i.series.data?_.updateNavigatorSeries(!1):r.series.length===0&&(_.unbindRedraw=w(r,"beforeRedraw",function(){r.series.length>0&&!_.series&&(_.setBaseSeries(),_.unbindRedraw())})),_.reversedExtremes=r.inverted&&!_.xAxis.reversed||!r.inverted&&_.xAxis.reversed,_.renderElements(),_.addMouseEvents()):(_.xAxis={chart:r,navigatorAxis:{fake:!0},translate:function(G,I){var j=r.xAxis[0],N=j.getExtremes(),Z=j.len-2*A,$=h("min",j.options.min,N.dataMin),Y=h("max",j.options.max,N.dataMax)-$;return I?G*Y/Z+$:Z*(G-$)/Y},toPixels:function(G){return this.translate(G)},toValue:function(G){return this.translate(G,!0)}},_.xAxis.navigatorAxis.axis=_.xAxis,_.xAxis.navigatorAxis.toFixedRange=V.prototype.toFixedRange.bind(_.xAxis.navigatorAxis)),r.options.scrollbar.enabled&&(r.scrollbar=_.scrollbar=new J(r.renderer,M(r.options.scrollbar,{margin:_.navigatorEnabled?0:10,vertical:r.inverted}),r),w(_.scrollbar,"changed",function(G){var I=_.size,j=I*this.to,N=I*this.from;_.hasDragged=_.scrollbar.hasDragged,_.render(0,0,N,j),this.shouldUpdateExtremes(G.DOMType)&&setTimeout(function(){_.onMouseUp(G)})})),_.addBaseSeriesEvents(),_.addChartEvents()},e.prototype.getUnionExtremes=function(r){var n,i=this.chart.xAxis[0],c=this.xAxis,a=c.options,s=i.options;return r&&i.dataMin===null||(n={dataMin:f(a&&a.min,h("min",s.min,i.dataMin,c.dataMin,c.min)),dataMax:f(a&&a.max,h("max",s.max,i.dataMax,c.dataMax,c.max))}),n},e.prototype.setBaseSeries=function(r,n){var i=this.chart,c=this.baseSeries=[];r=r||i.options&&i.options.navigator.baseSeries||(i.series.length?S(i.series,function(a){return!a.options.isInternal}).index:0),(i.series||[]).forEach(function(a,s){a.options.isInternal||!a.options.showInNavigator&&(s!==r&&a.options.id!==r||a.options.showInNavigator===!1)||c.push(a)}),this.xAxis&&!this.xAxis.navigatorAxis.fake&&this.updateNavigatorSeries(!0,n)},e.prototype.updateNavigatorSeries=function(r,n){var i,c,a,s=this,y=s.chart,A=s.baseSeries,_={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}}},p=s.series=(s.series||[]).filter(function(k){var F=k.baseSeries;return!(A.indexOf(F)<0&&(F&&(x(F,"updatedData",s.updatedDataHandler),delete F.navigatorSeries),k.chart&&k.destroy(),1))}),C=s.navigatorOptions.series;A&&A.length&&A.forEach(function(k){var F=k.navigatorSeries,G=v({color:k.color,visible:k.visible},P(C)?W.navigator.series:C);if(!F||s.navigatorOptions.adaptToUpdatedData!==!1){_.name="Navigator "+A.length,i=k.options||{},a=i.navigatorOptions||{},G.dataLabels=l(G.dataLabels),(c=M(i,_,G,a)).pointRange=f(G.pointRange,a.pointRange,W.plotOptions[c.type||"line"].pointRange);var I=a.data||G.data;s.hasNavigatorData=s.hasNavigatorData||!!I,c.data=I||i.data&&i.data.slice(0),F&&F.options?F.update(c,n):(k.navigatorSeries=y.initSeries(c),k.navigatorSeries.baseSeries=k,p.push(k.navigatorSeries))}}),(!C.data||A&&A.length)&&!P(C)||(s.hasNavigatorData=!1,(C=l(C)).forEach(function(k,F){_.name="Navigator "+(p.length+1),(c=M(W.navigator.series,{color:y.series[F]&&!y.series[F].options.isInternal&&y.series[F].color||y.options.colors[F]||y.options.colors[0]},_,k)).data=k.data,c.data&&(s.hasNavigatorData=!0,p.push(y.initSeries(c)))})),r&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var r=this,n=this,i=n.baseSeries||[];i[0]&&i[0].xAxis&&i[0].eventsToUnbind.push(w(i[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes)),i.forEach(function(c){c.eventsToUnbind.push(w(c,"show",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),c.eventsToUnbind.push(w(c,"hide",function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),r.navigatorOptions.adaptToUpdatedData!==!1&&c.xAxis&&c.eventsToUnbind.push(w(c,"updatedData",r.updatedDataHandler)),c.eventsToUnbind.push(w(c,"remove",function(){this.navigatorSeries&&(b(n.series,this.navigatorSeries),u(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))})},e.prototype.getBaseSeriesMin=function(r){return this.baseSeries.reduce(function(n,i){return Math.min(n,i.xData&&i.xData.length?i.xData[0]:n)},r)},e.prototype.modifyNavigatorAxisExtremes=function(){var r=this.xAxis;if(r.getExtremes!==void 0){var n=this.getUnionExtremes(!0);!n||n.dataMin===r.min&&n.dataMax===r.max||(r.min=n.dataMin,r.max=n.dataMax)}},e.prototype.modifyBaseAxisExtremes=function(){var r,n,i=this,c=i.chart.navigator,a=i.getExtremes(),s=a.min,y=a.max,A=a.dataMin,_=a.dataMax,p=y-s,C=c.stickToMin,k=c.stickToMax,F=f(i.options.overscroll,0),G=c.series&&c.series[0],I=!!i.setExtremes;i.eventArgs&&i.eventArgs.trigger==="rangeSelectorButton"||(C&&(r=(n=A)+p),k&&(r=_+F,C||(n=Math.max(A,r-p,c.getBaseSeriesMin(G&&G.xData?G.xData[0]:-Number.MAX_VALUE)))),I&&(C||k)&&E(n)&&(i.min=i.userMin=n,i.max=i.userMax=r)),c.stickToMin=c.stickToMax=null},e.prototype.updatedDataHandler=function(){var r=this.chart.navigator,n=this,i=this.navigatorSeries,c=r.reversedExtremes?Math.round(r.zoomedMin)===0:Math.round(r.zoomedMax)>=Math.round(r.size);r.stickToMax=f(this.chart.options.navigator&&this.chart.options.navigator.stickToMax,c),r.stickToMin=r.shouldStickToMin(n,r),i&&!r.hasNavigatorData&&(i.options.pointStart=n.xData[0],i.setData(n.options.data,!1,null,!1))},e.prototype.shouldStickToMin=function(r,n){var i=n.getBaseSeriesMin(r.xData[0]),c=r.xAxis,a=c.max,s=c.min,y=c.options.range;return!(!E(a)||!E(s))&&(y&&a-i>0?a-i<y:s<=i)},e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(w(this.chart,"redraw",function(){var r=this.navigator,n=r&&(r.baseSeries&&r.baseSeries[0]&&r.baseSeries[0].xAxis||this.xAxis[0]);n&&r.render(n.min,n.max)}),w(this.chart,"getMargins",function(){var r=this,n=r.navigator,i=n.opposite?"plotTop":"marginBottom";r.inverted&&(i=n.opposite?"marginRight":"plotLeft"),r[i]=(r[i]||0)+(n.navigatorEnabled||!r.inverted?n.outlineHeight:0)+n.navigatorOptions.margin}))},e.prototype.destroy=function(){var r=this;this.removeEvents(),this.xAxis&&(b(this.chart.xAxis,this.xAxis),b(this.chart.axes,this.xAxis)),this.yAxis&&(b(this.chart.yAxis,this.yAxis),b(this.chart.axes,this.yAxis)),(this.series||[]).forEach(function(n){n.destroy&&n.destroy()}),["series","xAxis","yAxis","shades","outline","scrollbarTrack","scrollbarRifles","scrollbarGroup","scrollbar","navigatorGroup","rendered"].forEach(function(n){r[n]&&r[n].destroy&&r[n].destroy(),r[n]=null}),[this.handles].forEach(function(n){g(n)})},e}()}),st(B,"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"}}}}),st(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=U.defaultOptions,J=U.setOptions,q=X.addEvent,W=X.defined,D=X.extend,O=X.find,w=X.isNumber,T=X.merge,d=X.pick,u=[],g=[];function b(){var l,h,e=this.range,r=e.type,n=this.max,i=this.chart.time,c=function(s,y){var A=r==="year"?"FullYear":"Month",_=new i.Date(s),p=i.get(A,_);return i.set(A,_,p+y),p===i.get(A,_)&&i.set("Date",_,0),_.getTime()-s};w(e)?(l=n-e,h=e):e&&(l=n+c(n,-(e.count||1)),this.chart&&(this.chart.fixedRange=n-l));var a=d(this.dataMin,Number.MIN_VALUE);return w(l)||(l=a),l<=a&&(l=a,h===void 0&&(h=c(l,e.count)),this.newMax=Math.min(l+h,d(this.dataMax,Number.MAX_VALUE))),w(n)?!w(e)&&e&&e._offsetMin&&(l+=e._offsetMin):l=void 0,l}function v(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function S(){var l=this,h=l.axes,e=l.rangeSelector;if(e){w(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),h.forEach(function(n){n.updateNames(),n.setScale()}),l.getAxisMargins(),e.render();var r=e.options.verticalAlign;e.options.floating||(r==="bottom"?this.extraBottomMargin=!0:r!=="middle"&&(this.extraTopMargin=!0))}}function P(l){var h,e,r,n,i=l.rangeSelector,c=function(){i&&(h=l.xAxis[0].getExtremes(),e=l.legend,n=i&&i.options.verticalAlign,w(h.min)&&i.render(h.min,h.max),e.display&&n==="top"&&n===e.options.verticalAlign&&(r=T(l.spacingBox),e.options.layout==="vertical"?r.y=l.plotTop:r.y+=i.getHeight(),e.group.placed=!1,e.align(r)))};i&&(O(u,function(a){return a[0]===l})||u.push([l,[q(l.xAxis[0],"afterSetExtremes",function(a){i&&i.render(a.min,a.max)}),q(l,"redraw",c)]]),c())}function E(){for(var l=0,h=u.length;l<h;++l){var e=u[l];if(e[0]===this)return e[1].forEach(function(r){return r()}),void u.splice(l,1)}}function M(){var l=this.rangeSelector;if(l){var h=l.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function f(){var l=this.rangeSelector;if(l&&!l.options.floating){l.render();var h=l.options.verticalAlign;h==="bottom"?this.extraBottomMargin=!0:h!=="middle"&&(this.extraTopMargin=!0)}}function x(l){var h=l.options.rangeSelector,e=this.extraBottomMargin,r=this.extraTopMargin,n=this.rangeSelector;if(h&&h.enabled&&!W(n)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=n=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,n){P(this);var i=h&&h.verticalAlign||n.options&&n.options.verticalAlign;n.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===e&&this.extraTopMargin===r||(this.isDirtyBox=!0)}}return{compose:function(l,h,e){V=e,g.indexOf(l)===-1&&(g.push(l),l.prototype.minFromRange=b),g.indexOf(h)===-1&&(g.push(h),q(h,"afterGetContainer",v),q(h,"beforeRender",S),q(h,"destroy",E),q(h,"getMargins",M),q(h,"render",f),q(h,"update",x),h.prototype.callbacks.push(P)),g.indexOf(J)===-1&&(D(K,{rangeSelector:z.rangeSelector}),D(K.lang,z.lang))}}}),st(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=z.defaultOptions,W=J.addEvent,D=J.createElement,O=J.css,w=J.defined,T=J.destroyObjectProperties,d=J.discardElement,u=J.extend,g=J.fireEvent,b=J.isNumber,v=J.merge,S=J.objectEach,P=J.pad,E=J.pick,M=J.pInt,f=J.splat,x=function(){function l(h){this.buttons=void 0,this.buttonOptions=l.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=h,this.init(h)}return l.compose=function(h,e){V.compose(h,e,l)},l.prototype.clickButton=function(h,e){var r,n,i,c,a,s,y,A=this,_=A.chart,p=A.buttonOptions[h],C=_.xAxis[0],k=_.scroller&&_.scroller.getUnionExtremes()||C||{},F=p.type,G=p.dataGrouping,I=k.dataMin,j=k.dataMax,N=C&&Math.round(Math.min(C.max,E(j,C.max))),Z=p._range,$=!0;if(I!==null&&j!==null){if(_.fixedRange=Z,A.setSelected(h),G&&(this.forcedDataGrouping=!0,U.prototype.setDataGrouping.call(C||{chart:this.chart},G,!1),this.frozenStates=p.preserveDataGrouping),F==="month"||F==="year")C?(s={range:p,max:N,chart:_,dataMin:I,dataMax:j},r=C.minFromRange.call(s),b(s.newMax)&&(N=s.newMax),$=!1):Z=p;else if(Z)r=Math.max(N-Z,I),N=Math.min(r+Z,j),$=!1;else if(F==="ytd"){if(!C)return void(A.deferredYTDClick=h);j!==void 0&&I!==void 0||(I=Number.MAX_VALUE,j=Number.MIN_VALUE,_.series.forEach(function(Y){var et=Y.xData;et&&(I=Math.min(et[0],I),j=Math.max(et[et.length-1],j))}),e=!1),r=i=(y=A.getYTDExtremes(j,I,_.time.useUTC)).min,N=y.max}else F==="all"&&C&&(_.navigator&&_.navigator.baseSeries[0]&&(_.navigator.baseSeries[0].xAxis.options.range=void 0),r=I,N=j);$&&p._offsetMin&&w(r)&&(r+=p._offsetMin),p._offsetMax&&w(N)&&(N+=p._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=h+1),C?C.setExtremes(r,N,E(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:p}):(n=f(_.options.xAxis)[0],a=n.range,n.range=Z,c=n.min,n.min=i,W(_,"load",function(){n.range=a,n.min=c})),g(this,"afterBtnClick")}},l.prototype.setSelected=function(h){this.selected=this.options.selected=h},l.prototype.init=function(h){var e=this,r=h.options.rangeSelector,n=r.buttons||e.defaultButtons.slice(),i=r.selected,c=function(){var a=e.minInput,s=e.maxInput;a&&a.blur&&g(a,"blur"),s&&s.blur&&g(s,"blur")};e.chart=h,e.options=r,e.buttons=[],e.buttonOptions=n,this.eventsToUnbind=[],this.eventsToUnbind.push(W(h.container,"mousedown",c)),this.eventsToUnbind.push(W(h,"resize",c)),n.forEach(e.computeButtonRange),i!==void 0&&n[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(W(h,"load",function(){h.xAxis&&h.xAxis[0]&&W(h.xAxis[0],"setExtremes",function(a){this.max-this.min!==h.fixedRange&&a.trigger!=="rangeSelectorButton"&&a.trigger!=="updatedData"&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})}))},l.prototype.updateButtonStates=function(){var h=this,e=this.chart,r=this.dropdown,n=e.xAxis[0],i=Math.round(n.max-n.min),c=!n.hasVisibleSeries,a=864e5,s=e.scroller&&e.scroller.getUnionExtremes()||n,y=s.dataMin,A=s.dataMax,_=h.getYTDExtremes(A,y,e.time.useUTC),p=_.min,C=_.max,k=h.selected,F=h.options.allButtonsEnabled,G=h.buttons,I=b(k);h.buttonOptions.forEach(function(j,N){var Z=j._range,$=j.type,Y=j.count||1,et=G[N],rt=j._offsetMax-j._offsetMin,it=N===k,ht=Z>A-y,dt=Z<n.minRange,bt=0,xt=!1,St=!1,wt=Z===i;($==="month"||$==="year")&&i+36e5>={month:28,year:365}[$]*a*Y-rt&&i-36e5<={month:31,year:366}[$]*a*Y+rt?wt=!0:$==="ytd"?(wt=C-p+rt===i,xt=!it):$==="all"&&(wt=n.max-n.min>=A-y,St=!it&&I&&wt);var mt=!F&&(ht||dt||St||c),at=it&&wt||wt&&!I&&!xt||it&&h.frozenStates;mt?bt=3:at&&(I=!0,bt=2),et.state!==bt&&(et.setState(bt),r&&(r.options[N+1].disabled=mt,bt===2&&(r.selectedIndex=N+1)),bt===0&&k===N&&h.setSelected())})},l.prototype.computeButtonRange=function(h){var e=h.type,r=h.count||1,n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};n[e]?h._range=n[e]*r:e!=="month"&&e!=="year"||(h._range=24*{month:30,year:365}[e]*36e5*r),h._offsetMin=E(h.offsetMin,0),h._offsetMax=E(h.offsetMax,0),h._range+=h._offsetMax-h._offsetMin},l.prototype.getInputValue=function(h){var e=h==="min"?this.minInput:this.maxInput,r=this.chart.options.rangeSelector,n=this.chart.time;return e?(e.type==="text"&&r.inputDateParser||this.defaultInputDateParser)(e.value,n.useUTC,n):0},l.prototype.setInputValue=function(h,e){var r=this.options,n=this.chart.time,i=h==="min"?this.minInput:this.maxInput,c=h==="min"?this.minDateBox:this.maxDateBox;if(i){var a=i.getAttribute("data-hc-time"),s=w(a)?Number(a):void 0;if(w(e)){var y=s;w(y)&&i.setAttribute("data-hc-time-previous",y),i.setAttribute("data-hc-time",e),s=e}i.value=n.dateFormat(this.inputTypeFormats[i.type]||r.inputEditDateFormat,s),c&&c.attr({text:n.dateFormat(r.inputDateFormat,s)})}},l.prototype.setInputExtremes=function(h,e,r){var n=h==="min"?this.minInput:this.maxInput;if(n){var i=this.inputTypeFormats[n.type],c=this.chart.time;if(i){var a=c.dateFormat(i,e);n.min!==a&&(n.min=a);var s=c.dateFormat(i,r);n.max!==s&&(n.max=s)}}},l.prototype.showInput=function(h){var e=h==="min"?this.minDateBox:this.maxDateBox,r=h==="min"?this.minInput:this.maxInput;if(r&&e&&this.inputGroup){var n=r.type==="text",i=this.inputGroup,c=i.translateX,a=i.translateY,s=this.options.inputBoxWidth;O(r,{width:n?e.width+(s?-2:20)+"px":"auto",height:n?e.height-2+"px":"auto",border:"2px solid silver"}),O(r,n&&s?{left:c+e.x+"px",top:a+"px"}:{left:Math.min(Math.round(e.x+c-(r.offsetWidth-e.width)/2),this.chart.chartWidth-r.offsetWidth)+"px",top:a-(r.offsetHeight-e.height)/2+"px"})}},l.prototype.hideInput=function(h){var e=h==="min"?this.minInput:this.maxInput;e&&O(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},l.prototype.defaultInputDateParser=function(h,e,r){var n,i=h.split("/").join("-").split(" ").join("T");if(i.indexOf("T")===-1&&(i+="T00:00"),e)i+="Z";else if(X.isSafari&&(!((n=i).length>6)||n.lastIndexOf("-")!==n.length-6&&n.lastIndexOf("+")!==n.length-6)){var c=new Date(i).getTimezoneOffset()/60;i+=c<=0?"+".concat(P(-c),":00"):"-".concat(P(c),":00")}var a=Date.parse(i);if(!b(a)){var s=h.split("-");a=Date.UTC(M(s[0]),M(s[1])-1,M(s[2]))}return r&&e&&b(a)&&(a+=r.getTimezoneOffset(a)),a},l.prototype.drawInput=function(h){var e=this,r=e.chart,n=e.div,i=e.inputGroup,c=this,a=r.renderer.style||{},s=r.renderer,y=r.options.rangeSelector,A=q.lang,_=h==="min";function p(){var j=c.maxInput,N=c.minInput,Z=r.xAxis[0],$=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:Z,Y=$.dataMin,et=$.dataMax,rt=c.getInputValue(h);rt!==Number(G.getAttribute("data-hc-time-previous"))&&b(rt)&&(G.setAttribute("data-hc-time-previous",rt),_&&j&&b(Y)?rt>Number(j.getAttribute("data-hc-time"))?rt=void 0:rt<Y&&(rt=Y):N&&b(et)&&(rt<Number(N.getAttribute("data-hc-time"))?rt=void 0:rt>et&&(rt=et)),rt!==void 0&&Z.setExtremes(_?rt:Z.min,_?Z.max:rt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=A[_?"rangeSelectorFrom":"rangeSelectorTo"]||"",k=s.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?y.inputBoxHeight:0}).add(i),F=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:y.inputBoxWidth,height:y.inputBoxHeight,"text-align":"center"}).on("click",function(){c.showInput(h),c[h+"Input"].focus()});r.styledMode||F.attr({stroke:y.inputBoxBorderColor,"stroke-width":1}),F.add(i);var G=D("input",{name:h,className:"highcharts-range-selector"},void 0,n);G.setAttribute("type",function(j){if(j.indexOf("%L")!==-1)return"text";var N=["a","A","d","e","w","b","B","m","o","y","Y"].some(function($){return j.indexOf("%"+$)!==-1}),Z=["H","k","I","l","M","S"].some(function($){return j.indexOf("%"+$)!==-1});return N&&Z?"datetime-local":N?"date":Z?"time":"text"}(y.inputDateFormat||"%b %e, %Y")),r.styledMode||(k.css(v(a,y.labelStyle)),F.css(v({color:"#333333"},a,y.inputStyle)),O(G,u({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},y.inputStyle))),G.onfocus=function(){c.showInput(h)},G.onblur=function(){G===X.doc.activeElement&&p(),c.hideInput(h),c.setInputValue(h),G.blur()};var I=!1;return G.onchange=function(){I||(p(),c.hideInput(h),G.blur())},G.onkeypress=function(j){j.keyCode===13&&p()},G.onkeydown=function(j){I=!0,j.keyCode!==38&&j.keyCode!==40||p()},G.onkeyup=function(){I=!1},{dateBox:F,input:G,label:k}},l.prototype.getPosition=function(){var h=this.chart,e=h.options.rangeSelector,r=e.verticalAlign==="top"?h.plotTop-h.axisOffset[0]:0;return{buttonTop:r+e.buttonPosition.y,inputTop:r+e.inputPosition.y-10}},l.prototype.getYTDExtremes=function(h,e,r){var n=this.chart.time,i=new n.Date(h),c=n.get("FullYear",i),a=r?n.Date.UTC(c,0,1):+new n.Date(c,0,1),s=Math.max(e,a),y=i.getTime();return{max:Math.min(h||y,y),min:s}},l.prototype.render=function(h,e){var r=this.chart,n=r.renderer,i=r.container,c=r.options,a=c.rangeSelector,s=E(c.chart.style&&c.chart.style.zIndex,0)+1,y=a.inputEnabled,A=this.rendered;if(a.enabled!==!1){if(!A&&(this.group=n.g("range-selector-group").attr({zIndex:7}).add(),this.div=D("div",void 0,{position:"relative",height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),y)){this.inputGroup=n.g("input-group").add(this.group);var _=this.drawInput("min");this.minDateBox=_.dateBox,this.minLabel=_.label,this.minInput=_.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(y){this.setInputValue("min",h),this.setInputValue("max",e);var C=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(w(C.dataMin)&&w(C.dataMax)){var k=r.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-k),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+k,C.dataMax)}if(this.inputGroup){var F=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(G){if(G){var I=G.getBBox().width;I&&(G.attr({x:F}),F+=I+a.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},l.prototype.renderButtons=function(){var h=this,e=this,r=e.buttons,n=e.chart,i=e.options,c=q.lang,a=n.renderer,s=v(i.buttonTheme),y=s&&s.states,A=s.width||28;delete s.width,delete s.states,this.buttonGroup=a.g("range-selector-buttons").add(this.group);var _=this.dropdown=D("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);W(_,"touchstart",function(){_.style.fontSize="16px"}),[[X.isMS?"mouseover":"mouseenter"],[X.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(p){var C=p[0],k=p[1];W(_,C,function(){var F=r[h.currentButtonIndex()];F&&g(F.element,k||C)})}),this.zoomText=a.label(c&&c.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),s["stroke-width"]=E(s["stroke-width"],0)),D("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,_),this.buttonOptions.forEach(function(p,C){D("option",{textContent:p.title||p.text},void 0,_),r[C]=a.button(p.text,0,0,function(k){var F,G=p.events&&p.events.click;G&&(F=G.call(p,k)),F!==!1&&h.clickButton(C),h.isActive=!0},s,y&&y.hover,y&&y.select,y&&y.disabled).attr({"text-align":"center",width:A}).add(h.buttonGroup),p.title&&r[C].attr("title",p.title)})},l.prototype.alignElements=function(){var h=this,e=this,r=e.buttonGroup,n=e.buttons,i=e.chart,c=e.group,a=e.inputGroup,s=e.options,y=e.zoomText,A=i.options,_=A.exporting&&A.exporting.enabled!==!1&&A.navigation&&A.navigation.buttonOptions,p=s.buttonPosition,C=s.inputPosition,k=s.verticalAlign,F=function(xt,St){return _&&h.titleCollision(i)&&k==="top"&&St.align==="right"&&St.y-xt.getBBox().height-12<(_.y||0)+(_.height||0)+i.spacing[0]?-40:0},G=i.plotLeft;if(c&&p&&C){var I=p.x-i.spacing[3];if(r){if(this.positionButtons(),!this.initialButtonGroupWidth){var j=0;y&&(j+=y.getBBox().width+5),n.forEach(function(xt,St){j+=xt.width,St!==n.length-1&&(j+=s.buttonSpacing)}),this.initialButtonGroupWidth=j}G-=i.spacing[3],this.updateButtonStates();var N=F(r,p);this.alignButtonGroup(N),c.placed=r.placed=i.hasLoaded}var Z=0;a&&(Z=F(a,C),C.align==="left"?I=G:C.align==="right"&&(I=-Math.max(i.axisOffset[1],-Z)),a.align({y:C.y,width:a.getBBox().width,align:C.align,x:C.x+I-2},!0,i.spacingBox),a.placed=i.hasLoaded),this.handleCollision(Z),c.align({verticalAlign:k},!0,i.spacingBox);var $=c.alignAttr.translateY,Y=c.getBBox().height+20,et=0;if(k==="bottom"){var rt=i.legend&&i.legend.options;et=$-(Y=Y+(rt&&rt.verticalAlign==="bottom"&&rt.enabled&&!rt.floating?i.legend.legendHeight+E(rt.margin,10):0)-20)-(s.floating?0:s.y)-(i.titleOffset?i.titleOffset[2]:0)-10}k==="top"?(s.floating&&(et=0),i.titleOffset&&i.titleOffset[0]&&(et=i.titleOffset[0]),et+=i.margin[0]-i.spacing[0]||0):k==="middle"&&(C.y===p.y?et=$:(C.y||p.y)&&(C.y<0||p.y<0?et-=Math.min(C.y,p.y):et=$-Y)),c.translate(s.x,s.y+Math.floor(et));var it=this,ht=it.minInput,dt=it.maxInput,bt=it.dropdown;s.inputEnabled&&ht&&dt&&(ht.style.marginTop=c.translateY+"px",dt.style.marginTop=c.translateY+"px"),bt&&(bt.style.marginTop=c.translateY+"px")}},l.prototype.alignButtonGroup=function(h,e){var r=this,n=r.chart,i=r.options,c=r.buttonGroup,a=i.buttonPosition,s=n.plotLeft-n.spacing[3],y=a.x-n.spacing[3];a.align==="right"?y+=h-s:a.align==="center"&&(y-=s/2),c&&c.align({y:a.y,width:E(e,this.initialButtonGroupWidth),align:a.align,x:y},!0,n.spacingBox)},l.prototype.positionButtons=function(){var h=this,e=h.buttons,r=h.chart,n=h.options,i=h.zoomText,c=r.hasLoaded?"animate":"attr",a=n.buttonPosition,s=r.plotLeft,y=s;i&&i.visibility!=="hidden"&&(i[c]({x:E(s+a.x,s)}),y+=a.x+i.getBBox().width+5);for(var A=0,_=this.buttonOptions.length;A<_;++A)e[A].visibility!=="hidden"?(e[A][c]({x:y}),y+=e[A].width+n.buttonSpacing):e[A][c]({x:s})},l.prototype.handleCollision=function(h){var e=this,r=this,n=r.chart,i=r.buttonGroup,c=r.inputGroup,a=this.options,s=a.buttonPosition,y=a.dropdown,A=a.inputPosition,_=function(){var k=0;return e.buttons.forEach(function(F){var G=F.getBBox();G.width>k&&(k=G.width)}),k},p=function(k){if(c&&i){var F=c.alignAttr.translateX+c.alignOptions.x-h+c.getBBox().x+2,G=c.alignOptions.width,I=i.alignAttr.translateX+i.getBBox().x;return I+k>F&&F+G>I&&s.y<A.y+c.getBBox().height}return!1},C=function(){c&&i&&c.attr({translateX:c.alignAttr.translateX+(n.axisOffset[1]>=-h?0:-h),translateY:c.alignAttr.translateY+i.getBBox().height+10})};if(i){if(y==="always")return this.collapseButtons(h),void(p(_())&&C());y==="never"&&this.expandButtons()}c&&i?A.align===s.align||p(this.initialButtonGroupWidth+20)?y==="responsive"?(this.collapseButtons(h),p(_())&&C()):C():y==="responsive"&&this.expandButtons():i&&y==="responsive"&&(this.initialButtonGroupWidth>n.plotWidth?this.collapseButtons(h):this.expandButtons())},l.prototype.collapseButtons=function(h){var e=this,r=e.buttons,n=e.buttonOptions,i=e.chart,c=e.dropdown,a=e.options,s=e.zoomText,y=i.userOptions.rangeSelector&&i.userOptions.rangeSelector.buttonTheme||{},A=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:E(a.buttonTheme.paddingLeft,y.padding,8),paddingRight:E(a.buttonTheme.paddingRight,y.padding,8)}};s&&s.hide();var _=!1;n.forEach(function(C,k){var F=r[k];F.state!==2?F.hide():(F.show(),F.attr(A(C.text)),_=!0)}),_||(c&&(c.selectedIndex=0),r[0].show(),r[0].attr(A(this.zoomText&&this.zoomText.textStr)));var p=a.buttonPosition.align;this.positionButtons(),p!=="right"&&p!=="center"||this.alignButtonGroup(h,r[this.currentButtonIndex()].getBBox().width),this.showDropdown()},l.prototype.expandButtons=function(){var h=this,e=h.buttons,r=h.buttonOptions,n=h.options,i=h.zoomText;this.hideDropdown(),i&&i.show(),r.forEach(function(c,a){var s=e[a];s.show(),s.attr({text:c.text,width:n.buttonTheme.width||28,paddingLeft:E(n.buttonTheme.paddingLeft,"unset"),paddingRight:E(n.buttonTheme.paddingRight,"unset")}),s.state<2&&s.setState(0)}),this.positionButtons()},l.prototype.currentButtonIndex=function(){var h=this.dropdown;return h&&h.selectedIndex>0?h.selectedIndex-1:0},l.prototype.showDropdown=function(){var h=this,e=h.buttonGroup,r=h.buttons,n=h.chart,i=h.dropdown;if(e&&i){var c=e.translateX,a=e.translateY,s=r[this.currentButtonIndex()].getBBox();O(i,{left:n.plotLeft+c+"px",top:a+.5+"px",width:s.width+"px",height:s.height+"px"}),this.hasVisibleDropdown=!0}},l.prototype.hideDropdown=function(){var h=this.dropdown;h&&(O(h,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},l.prototype.getHeight=function(){var h=this.options,e=this.group,r=h.inputPosition,n=h.buttonPosition,i=h.y,c=n.y,a=r.y,s=0;if(h.height)return h.height;this.alignElements(),s=e?e.getBBox(!0).height+13+i:0;var y=Math.min(a,c);return(a<0&&c<0||a>0&&c>0)&&(s+=Math.abs(y)),s},l.prototype.titleCollision=function(h){return!(h.options.title.text||h.options.subtitle.text)},l.prototype.update=function(h){var e=this.chart;v(!0,e.options.rangeSelector,h),this.destroy(),this.init(e),this.render()},l.prototype.destroy=function(){var h=this,e=h.minInput,r=h.maxInput;h.eventsToUnbind&&(h.eventsToUnbind.forEach(function(n){return n()}),h.eventsToUnbind=void 0),T(h.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),r&&(r.onfocus=r.onblur=r.onchange=null),S(h,function(n,i){n&&i!=="chart"&&(n instanceof K?n.destroy():n instanceof yt.HTMLElement&&d(n)),n!==l.prototype[i]&&(h[i]=null)},this)},l}();return u(x.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"}}),x}),st(B,"Core/Axis/OrdinalAxis.js",[B["Core/Axis/Axis.js"],B["Core/Globals.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=V.addEvent,q=V.correctFloat,W=V.css,D=V.defined,O=V.error,w=V.pick,T=V.timeUnits,d=[];return function(u){function g(r,n,i,c,a,s,y){a===void 0&&(a=[]),s===void 0&&(s=0);var A,_,p,C,k,F={},G=this.options.tickPixelInterval,I=this.chart.time,j=[],N=0,Z=[],$=-Number.MAX_VALUE;if(!this.options.ordinal&&!this.options.breaks||!a||a.length<3||n===void 0)return I.getTimeTicks.apply(I,arguments);var Y=a.length;for(A=0;A<Y;A++){if(k=A&&a[A-1]>i,a[A]<n&&(N=A),A===Y-1||a[A+1]-a[A]>5*s||k){if(a[A]>$){for(_=I.getTimeTicks(r,a[N],a[A],c);_.length&&_[0]<=$;)_.shift();_.length&&($=_[_.length-1]),j.push(Z.length),Z=Z.concat(_)}N=A+1}if(k)break}if(_){if(C=_.info,y&&C.unitRange<=T.hour){for(A=Z.length-1,N=1;N<A;N++)I.dateFormat("%d",Z[N])!==I.dateFormat("%d",Z[N-1])&&(F[Z[N]]="day",p=!0);p&&(F[Z[0]]="day"),C.higherRanks=F}C.segmentStarts=j,Z.info=C}else O(12,!1,this.chart);if(y&&D(G)){for(var et=Z.length,rt=[],it=[],ht=void 0,dt=void 0,bt=void 0,xt=void 0,St=void 0,wt=et;wt--;)dt=this.translate(Z[wt]),bt&&(it[wt]=bt-dt),rt[wt]=bt=dt;for(it.sort(),(xt=it[Math.floor(it.length/2)])<.6*G&&(xt=null),wt=Z[et-1]>i?et-1:et,bt=void 0;wt--;)dt=rt[wt],St=Math.abs(bt-dt),bt&&St<.8*G&&(xt===null||St<.8*xt)?(F[Z[wt]]&&!F[Z[wt+1]]?(ht=wt+1,bt=dt):ht=wt,Z.splice(ht,1)):bt=dt}return Z}function b(r){var n=this.ordinal.positions;if(!n)return r;var i,c=n.length-1;return r<0?r=n[0]:r>c?r=n[c]:i=r-(c=Math.floor(r)),i!==void 0&&n[c]!==void 0?n[c]+(i?i*(n[c+1]-n[c]):0):r}function v(r){var n=this,i=n.ordinal,c=n.old?n.old.min:n.min,a=n.old?n.old.transA:n.transA,s=i.positions;if(!s)return r;var y=(r-c)*a+n.minPixelPadding;if(y>0&&y<n.left+n.len||(i.extendedOrdinalPositions||(i.extendedOrdinalPositions=i.getExtendedPositions()),s=i.extendedOrdinalPositions),s&&s.length){var A=i.getIndexOfPoint(y,s),_=q(A%1);if(A>=0&&A<s.length-1){var p=s[Math.floor(A)],C=s[Math.ceil(A)]-p;return s[Math.floor(A)]+_*C}var k=s.length,F=s[0],G=s[k-1],I=(G-F)/(k-1);return A<0?F+I*A:G+I*(A-k)}return r}function S(r,n){var i=u.Additions.findIndexOf(r,n,!0);return r[i]===n?i:i+(n-r[i])/(r[i+1]-r[i])}function P(){var r=this;r.ordinal||(r.ordinal=new u.Additions(r))}function E(){var r=this;r.isXAxis&&D(r.options.overscroll)&&r.max===r.dataMax&&(!r.chart.mouseIsDown||r.isInternal)&&(!r.eventArgs||r.eventArgs&&r.eventArgs.trigger!=="navigator")&&(r.max+=r.options.overscroll,!r.isInternal&&D(r.userMin)&&(r.min+=r.options.overscroll))}function M(){var r=this;r.horiz&&!r.isDirty&&(r.isDirty=r.isOrdinal&&r.chart.navigator&&!r.chart.navigator.adaptToUpdatedData)}function f(){var r=this;r.ordinal&&(r.ordinal.beforeSetTickPositions(),r.tickInterval=r.ordinal.postProcessTickInterval(r.tickInterval))}function x(r){var n=this,i=n.xAxis[0],c=i.options.overscroll,a=r.originalEvent.chartX,s=n.options.chart.panning,y=!1;if(s&&s.type!=="y"&&i.options.ordinal&&i.series.length){var A=n.mouseDownX,_=i.getExtremes(),p=_.dataMax,C=_.min,k=_.max,F=n.hoverPoints,G=i.closestPointRange||i.ordinal&&i.ordinal.overscrollPointsRange,I=(A-a)/(i.translationSlope*(i.ordinal.slope||G)),j=i.ordinal.getExtendedPositions(),N={ordinal:{positions:j,extendedOrdinalPositions:j}},Z=i.index2val,$=i.val2lin,Y=void 0,et=void 0,rt=void 0,it=void 0;N.ordinal.positions?Math.abs(I)>1&&(F&&F.forEach(function(ht){ht.setState()}),I<0?(rt=N,it=i.ordinal.positions?i:N):(rt=i.ordinal.positions?i:N,it=N),p>(et=it.ordinal.positions)[et.length-1]&&et.push(p),n.fixedRange=k-C,(Y=i.navigatorAxis.toFixedRange(void 0,void 0,Z.apply(rt,[$.apply(rt,[C,!0])+I]),Z.apply(it,[$.apply(it,[k,!0])+I]))).min>=Math.min(_.dataMin,C)&&Y.max<=Math.max(p,k)+c&&i.setExtremes(Y.min,Y.max,!0,!1,{trigger:"pan"}),n.mouseDownX=a,W(n.container,{cursor:"move"})):y=!0}else y=!0;y||s&&/y/.test(s.type)?c&&(i.max=i.dataMax+c):r.preventDefault()}function l(){var r=this.xAxis;r&&r.options.ordinal&&(delete r.ordinal.index,delete r.ordinal.extendedOrdinalPositions)}function h(r,n){var i=this.ordinal,c=i.positions,a=i.slope,s=i.extendedOrdinalPositions;if(!c)return r;var y,A=c.length;if(c[0]<=r&&c[A-1]>=r)y=S(c,r);else{if(s||(s=i.getExtendedPositions&&i.getExtendedPositions(),i.extendedOrdinalPositions=s),!s||!s.length)return r;var _=s.length;a||(a=(s[_-1]-s[0])/_);var p=S(s,c[0]);y=r>=s[0]&&r<=s[_-1]?S(s,r)-p:r<s[0]?-p-(s[0]-r)/a:(r-s[_-1])/a+_-p}return n?y:a*(y||0)+i.offset}u.compose=function(r,n,i){if(d.indexOf(r)===-1){d.push(r);var c=r.prototype;c.getTimeTicks=g,c.index2val=b,c.lin2val=v,c.val2lin=h,c.ordinal2lin=c.val2lin,J(r,"afterInit",P),J(r,"foundExtremes",E),J(r,"afterSetScale",M),J(r,"initialAxisTranslation",f)}return d.indexOf(i)===-1&&(d.push(i),J(i,"pan",x)),d.indexOf(n)===-1&&(d.push(n),J(n,"updatedData",l)),r};var e=function(){function r(n){this.index={},this.axis=n}return r.prototype.beforeSetTickPositions=function(){var n,i,c,a,s,y,A,_=this.axis,p=_.ordinal,C=_.getExtremes(),k=C.min,F=C.max,G=_.isXAxis&&!!_.options.breaks,I=_.options.ordinal,j=_.chart.options.chart.ignoreHiddenSeries,N=[],Z=Number.MAX_VALUE,$=!1,Y=!1,et=!1;if(I||G){var rt=0;if(_.series.forEach(function(it,ht){if(i=[],ht>0&&it.options.id!=="highcharts-navigator-series"&&it.processedXData.length>1&&(Y=rt!==it.processedXData[1]-it.processedXData[0]),rt=it.processedXData[1]-it.processedXData[0],it.boosted&&(et=it.boosted),(!j||it.visible!==!1)&&(it.takeOrdinalPosition!==!1||G)&&(N=N.concat(it.processedXData),n=N.length,N.sort(function(dt,bt){return dt-bt}),Z=Math.min(Z,w(it.closestPointRange,Z)),n)){for(ht=0;ht<n-1;)N[ht]!==N[ht+1]&&i.push(N[ht+1]),ht++;i[0]!==N[0]&&i.unshift(N[0]),N=i}}),Y&&et&&(N.pop(),N.shift()),(n=N.length)>2){for(c=N[1]-N[0],A=n-1;A--&&!$;)N[A+1]-N[A]!==c&&($=!0);!_.options.keepOrdinalPadding&&(N[0]-k>c||F-N[N.length-1]>c)&&($=!0)}else _.options.overscroll&&(n===2?Z=N[1]-N[0]:n===1?(Z=_.options.overscroll,N=[N[0],N[0]+Z]):Z=p.overscrollPointsRange);$||_.forceOrdinal?(_.options.overscroll&&(p.overscrollPointsRange=Z,N=N.concat(p.getOverscrollPositions())),p.positions=N,a=_.ordinal2lin(Math.max(k,N[0]),!0),s=Math.max(_.ordinal2lin(Math.min(F,N[N.length-1]),!0),1),p.slope=y=(F-k)/(s-a),p.offset=k-a*y):(p.overscrollPointsRange=w(_.closestPointRange,p.overscrollPointsRange),p.positions=_.ordinal.slope=p.offset=void 0)}_.isOrdinal=I&&$,p.groupIntervalFactor=null},r.findIndexOf=function(n,i,c){for(var a,s=0,y=n.length-1;s<y;)n[a=Math.ceil((s+y)/2)]<=i?s=a:y=a-1;return n[s]===i||c?s:-1},r.prototype.getExtendedPositions=function(){var n,i=this,c=i.axis,a=c.constructor.prototype,s=c.chart,y=c.series[0].currentDataGrouping,A=y?y.count+y.unitName:"raw",_=c.options.overscroll,p=c.getExtremes(),C=void 0,k=i.index;return k||(k=i.index={}),k[A]||((n={series:[],chart:s,forceOrdinal:!1,getExtremes:function(){return{min:p.dataMin,max:p.dataMax+_}},getGroupPixelWidth:a.getGroupPixelWidth,getTimeTicks:a.getTimeTicks,options:{ordinal:!0},ordinal:{getGroupIntervalFactor:this.getGroupIntervalFactor},ordinal2lin:a.ordinal2lin,getIndexOfPoint:a.getIndexOfPoint,val2lin:a.val2lin}).ordinal.axis=n,c.series.forEach(function(F){(C={xAxis:n,xData:F.xData.slice(),chart:s,destroyGroupedData:z.noop,getProcessedData:X.prototype.getProcessedData,applyGrouping:X.prototype.applyGrouping}).xData=C.xData.concat(i.getOverscrollPositions()),C.options={dataGrouping:y?{firstAnchor:"firstPoint",anchor:"middle",lastAnchor:"lastPoint",enabled:!0,forced:!0,approximation:"open",units:[[y.unitName,[y.count]]]}:{enabled:!1}},n.series.push(C),F.processData.apply(C)}),C.closestPointRange!==C.basePointRange&&C.currentDataGrouping&&(n.forceOrdinal=!0),c.ordinal.beforeSetTickPositions.apply({axis:n}),k[A]=n.ordinal.positions),k[A]},r.prototype.getGroupIntervalFactor=function(n,i,c){var a,s,y=this,A=c.processedXData,_=A.length,p=[],C=y.groupIntervalFactor;if(!C){for(s=0;s<_-1;s++)p[s]=A[s+1]-A[s];p.sort(function(k,F){return k-F}),a=p[Math.floor(_/2)],n=Math.max(n,A[0]),i=Math.min(i,A[_-1]),y.groupIntervalFactor=C=_*a/(i-n)}return C},r.prototype.getIndexOfPoint=function(n,i){var c=this,a=c.axis,s=c.positions?c.positions[0]:0,y=a.series[0].points&&a.series[0].points[0]&&a.series[0].points[0].plotX||a.minPixelPadding;a.series.length>1&&a.series.forEach(function(p){p.points&&D(p.points[0])&&D(p.points[0].plotX)&&p.points[0].plotX<y&&p.points[0].plotX>=w(a.min,-1/0)&&(y=p.points[0].plotX)});var A=a.translationSlope*(c.slope||a.closestPointRange||c.overscrollPointsRange),_=(n-y)/A;return r.findIndexOf(i,s)+_},r.prototype.getOverscrollPositions=function(){var n=this.axis,i=n.options.overscroll,c=this.overscrollPointsRange,a=[],s=n.dataMax;if(D(c))for(;s<=n.dataMax+i;)s+=c,a.push(s);return a},r.prototype.postProcessTickInterval=function(n){var i=this.axis,c=this.slope;return c?i.options.breaks?i.closestPointRange||n:n/(c/i.closestPointRange):n},r}();u.Additions=e}(K||(K={})),K}),st(B,"Series/HLC/HLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(U){var z,X=this&&this.__extends||(z=function(K,J){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,W){q.__proto__=W}||function(q,W){for(var D in W)W.hasOwnProperty(D)&&(q[D]=W[D])},z(K,J)},function(K,J){function q(){this.constructor=K}z(K,J),K.prototype=J===null?Object.create(J):(q.prototype=J.prototype,new q)}),V=function(K){function J(){var q=K!==null&&K.apply(this,arguments)||this;return q.close=void 0,q.high=void 0,q.low=void 0,q.options=void 0,q.plotClose=void 0,q.series=void 0,q}return X(J,K),J}(U.seriesTypes.column.prototype.pointClass);return V}),st(B,"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}}),st(B,"Series/HLC/HLCSeries.js",[B["Series/HLC/HLCPoint.js"],B["Series/HLC/HLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(w,T){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},K(w,T)},function(w,T){function d(){this.constructor=w}K(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),q=X.seriesTypes.column,W=V.extend,D=V.merge,O=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.data=void 0,d.options=void 0,d.points=void 0,d.yData=void 0,d}return J(T,w),T.prototype.extendStem=function(d,u,g){var b=d[0],v=d[1];typeof b[2]=="number"&&(b[2]=Math.max(g+u,b[2])),typeof v[2]=="number"&&(v[2]=Math.min(g-u,v[2]))},T.prototype.getPointPath=function(d,u){var g=u.strokeWidth(),b=d.series,v=g%2/2,S=Math.round(d.plotX)-v,P=Math.round(d.shapeArgs.width/2),E=d.plotClose,M=[["M",S,Math.round(d.yBottom)],["L",S,Math.round(d.plotHigh)]];return d.close!==null&&(E=Math.round(d.plotClose)+v,M.push(["M",S,E],["L",S+P,E]),b.extendStem(M,g/2,E)),M},T.prototype.drawSinglePoint=function(d){var u,g=d.series,b=g.chart,v=d.graphic;d.plotY!==void 0&&(v||(d.graphic=v=b.renderer.path().add(g.group)),b.styledMode||v.attr(g.pointAttribs(d,d.selected&&"select")),u=g.getPointPath(d,v),v[v?"animate":"attr"]({d:u}).addClass(d.getClassName(),!0))},T.prototype.drawPoints=function(){this.points.forEach(this.drawSinglePoint)},T.prototype.init=function(){w.prototype.init.apply(this,arguments),this.options.stacking=void 0},T.prototype.pointAttribs=function(d,u){var g=w.prototype.pointAttribs.call(this,d,u);return delete g.fill,g},T.prototype.toYData=function(d){return[d.high,d.low,d.close]},T.prototype.translate=function(){var d=this,u=d.yAxis,g=this.pointArrayMap&&this.pointArrayMap.slice()||[],b=g.map(function(v){return"plot".concat(v.charAt(0).toUpperCase()+v.slice(1))});b.push("yBottom"),g.push("low"),w.prototype.translate.apply(d),d.points.forEach(function(v){g.forEach(function(S,P){var E=v[S];E!==null&&(d.dataModify&&(E=d.dataModify.modifyValue(E)),v[b[P]]=u.toPixels(E,!0))}),v.tooltipPos[1]=v.plotHigh+u.pos-d.chart.plotTop})},T.defaultOptions=D(q.defaultOptions,z),T}(q);return W(O.prototype,{pointClass:U,animate:null,directTouch:!1,pointArrayMap:["high","low","close"],pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},pointValKey:"close"}),X.registerSeriesType("hlc",O),O}),st(B,"Series/OHLC/OHLCPoint.js",[B["Core/Series/SeriesRegistry.js"]],function(U){var z,X=this&&this.__extends||(z=function(K,J){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,W){q.__proto__=W}||function(q,W){for(var D in W)W.hasOwnProperty(D)&&(q[D]=W[D])},z(K,J)},function(K,J){function q(){this.constructor=K}z(K,J),K.prototype=J===null?Object.create(J):(q.prototype=J.prototype,new q)}),V=function(K){function J(){var q=K!==null&&K.apply(this,arguments)||this;return q.open=void 0,q.options=void 0,q.plotOpen=void 0,q.series=void 0,q}return X(J,K),J.prototype.getClassName=function(){return K.prototype.getClassName.call(this)+(this.open<this.close?" highcharts-point-up":" highcharts-point-down")},J.prototype.resolveUpColor=function(){this.open<this.close&&!this.options.color&&this.series.options.upColor&&(this.color=this.series.options.upColor)},J.prototype.resolveColor=function(){K.prototype.resolveColor.call(this),this.resolveUpColor()},J.prototype.getZone=function(){var q=K.prototype.getZone.call(this);return this.resolveUpColor(),q},J.prototype.applyOptions=function(){return K.prototype.applyOptions.apply(this,arguments),this.resolveColor&&this.resolveColor(),this},J}(U.seriesTypes.hlc.prototype.pointClass);return V}),st(B,"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/>'}}}),st(B,"Series/OHLC/OHLCSeries.js",[B["Series/OHLC/OHLCPoint.js"],B["Series/OHLC/OHLCSeriesDefaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(g,b){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var P in S)S.hasOwnProperty(P)&&(v[P]=S[P])},K(g,b)},function(g,b){function v(){this.constructor=g}K(g,b),g.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}),q=X.seriesTypes.hlc,W=V.addEvent,D=V.extend,O=V.merge,w=[];function T(g){var b=g.options,v=b.dataGrouping;v&&b.useOhlcData&&b.id!=="highcharts-navigator-series"&&(v.approximation="ohlc")}function d(g){var b=g.options;b.useOhlcData&&b.id!=="highcharts-navigator-series"&&D(this,{pointValKey:u.prototype.pointValKey,pointArrayMap:u.prototype.pointArrayMap,toYData:u.prototype.toYData})}var u=function(g){function b(){var v=g!==null&&g.apply(this,arguments)||this;return v.data=void 0,v.options=void 0,v.points=void 0,v}return J(b,g),b.compose=function(v){for(var S=[],P=1;P<arguments.length;P++)S[P-1]=arguments[P];w.indexOf(v)===-1&&(w.push(v),W(v,"afterSetOptions",T),W(v,"init",d))},b.prototype.getPointPath=function(v,S){var P=g.prototype.getPointPath.call(this,v,S),E=S.strokeWidth(),M=E%2/2,f=Math.round(v.plotX)-M,x=Math.round(v.shapeArgs.width/2),l=v.plotOpen;return v.open!==null&&(l=Math.round(v.plotOpen)+M,P.push(["M",f,l],["L",f-x,l]),g.prototype.extendStem.call(this,P,E/2,l)),P},b.prototype.pointAttribs=function(v,S){var P=g.prototype.pointAttribs.call(this,v,S),E=this.options;return delete P.fill,!v.options.color&&E.upColor&&v.open<v.close&&(P.stroke=E.upColor),P},b.prototype.toYData=function(v){return[v.open,v.high,v.low,v.close]},b.defaultOptions=O(q.defaultOptions,z),b}(q);return D(u.prototype,{pointClass:U,pointArrayMap:["open","high","low","close"]}),X.registerSeriesType("ohlc",u),u}),st(B,"Series/Candlestick/CandlestickSeriesDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(U,z){return{states:{hover:{lineWidth:2}},threshold:null,lineColor:"#000000",lineWidth:1,upColor:"#ffffff",stickyTracking:!0}}),st(B,"Series/Candlestick/CandlestickSeries.js",[B["Series/Candlestick/CandlestickSeriesDefaults.js"],B["Core/Defaults.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(d,u){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},K(d,u)},function(d,u){function g(){this.constructor=d}K(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),q=z.defaultOptions,W=X.seriesTypes,D=W.column,O=W.ohlc,w=V.merge,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g}return J(u,d),u.prototype.pointAttribs=function(g,b){var v=D.prototype.pointAttribs.call(this,g,b),S=this.options,P=g.open<g.close,E=S.lineColor||this.color,M=g.color||this.color;if(v["stroke-width"]=S.lineWidth,v.fill=g.options.color||P&&S.upColor||M,v.stroke=g.options.lineColor||P&&S.upLineColor||E,b){var f=S.states[b];v.fill=f.color||v.fill,v.stroke=f.lineColor||v.stroke,v["stroke-width"]=f.lineWidth||v["stroke-width"]}return v},u.prototype.drawPoints=function(){for(var g=this,b=g.points,v=g.chart,S=g.yAxis.reversed,P=0,E=b;P<E.length;P++){var M=E[P],f=M.graphic,x=void 0,l=void 0,h=void 0,e=void 0,r=void 0,n=void 0,i=void 0,c=void 0,a=void 0,s=void 0,y=!f;M.plotY!==void 0&&(f||(M.graphic=f=v.renderer.path().add(g.group)),g.chart.styledMode||f.attr(g.pointAttribs(M,M.selected&&"select")).shadow(g.options.shadow),i=f.strokeWidth()%2/2,c=Math.round(M.plotX)-i,x=M.plotOpen,l=M.plotClose,h=Math.min(x,l),e=Math.max(x,l),s=Math.round(M.shapeArgs.width/2),r=S?e!==M.yBottom:Math.round(h)!==Math.round(M.plotHigh),n=S?Math.round(h)!==Math.round(M.plotHigh):e!==M.yBottom,h=Math.round(h)+i,e=Math.round(e)+i,(a=[]).push(["M",c-s,e],["L",c-s,h],["L",c+s,h],["L",c+s,e],["Z"],["M",c,h],["L",c,r?Math.round(S?M.yBottom:M.plotHigh):h],["M",c,e],["L",c,n?Math.round(S?M.plotHigh:M.yBottom):e]),f[y?"attr":"animate"]({d:a}).addClass(M.getClassName(),!0))}},u.defaultOptions=w(O.defaultOptions,q.plotOptions,{tooltip:O.defaultOptions.tooltip},U),u}(O);return X.registerSeriesType("candlestick",T),T}),st(B,"Series/Flags/FlagsPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(W,D){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])},X(W,D)},function(W,D){function O(){this.constructor=W}X(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}),K=U.seriesTypes.column.prototype.pointClass,J=z.isNumber,q=function(W){function D(){var O=W!==null&&W.apply(this,arguments)||this;return O.options=void 0,O.series=void 0,O.ttBelow=!1,O}return V(D,W),D.prototype.isValid=function(){return J(this.y)||this.y===void 0},D.prototype.hasNewShapeType=function(){var O=this.options.shape||this.series.options.shape;return this.graphic&&O&&O!==this.graphic.symbolKey},D}(K);return q}),st(B,"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"}}}),st(B,"Series/Flags/FlagsSymbols.js",[B["Core/Renderer/RendererRegistry.js"]],function(U){var z;return function(X){var V=[];function K(q,W,D,O,w){var T=w&&w.anchorX||q,d=w&&w.anchorY||W,u=this.circle(T-1,d-1,2,2);return u.push(["M",T,d],["L",q,W+O],["L",q,W],["L",q+D,W],["L",q+D,W+O],["L",q,W+O],["Z"]),u}function J(q,W){q[W+"pin"]=function(D,O,w,T,d){var u,g=d&&d.anchorX,b=d&&d.anchorY;if(W==="circle"&&T>w&&(D-=Math.round((T-w)/2),w=T),u=q[W](D,O,w,T),g&&b){var v=g;if(W==="circle")v=D+w/2;else{var S=u[0],P=u[1];S[0]==="M"&&P[0]==="L"&&(v=(S[1]+P[1])/2)}var E=O>b?O:O+T;u.push(["M",v,E],["L",g,b]),u=u.concat(q.circle(g-1,b-1,2,2))}return u}}X.compose=function(q){V.indexOf(q)===-1&&(V.push(q),(D=q.prototype.symbols).flag=K,J(D,"circle"),J(D,"square"));var W=U.getRendererType();if(V.indexOf(W)){V.push(W);var D=q.prototype.symbols,O=W.prototype.symbols;O.circlepin=D.circlepin,O.flag=D.flag.bind(D),O.squarepin=D.squarepin}}}(z||(z={})),z}),st(B,"Series/OnSeriesComposition.js",[B["Series/Column/ColumnSeries.js"],B["Core/Series/Series.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=U.prototype,J=z.prototype,q=X.defined,W=X.stableSort;return function(D){var O=[];function w(d){return J.getPlotBox.call(this.options.onSeries&&this.chart.get(this.options.onSeries)||this,d)}function T(){K.translate.apply(this);var d,u,g,b,v,S,P,E=this,M=E.options,f=E.chart,x=E.points,l=M.onSeries,h=l&&f.get(l),e=h&&h.options.step,r=h&&h.points,n=f.inverted,i=E.xAxis,c=E.yAxis,a=x.length-1,s=M.onKey||"y",y=r&&r.length,A=0;if(h&&h.visible&&y)for(A=(h.pointXOffset||0)+(h.barW||0)/2,S=h.currentDataGrouping,b=r[y-1].x+(S?S.totalRange:0),W(x,function(_,p){return _.x-p.x}),s="plot"+s[0].toUpperCase()+s.substr(1);y--&&x[a]&&(g=r[y],(d=x[a]).y=g.y,!(g.x<=d.x&&g[s]!==void 0&&(d.x<=b&&(d.plotY=g[s],g.x<d.x&&!e&&(v=r[y+1])&&v[s]!==void 0&&(P=(d.x-g.x)/(v.x-g.x),d.plotY+=P*(v[s]-g[s]),d.y+=P*(v.y-g.y))),y++,--a<0))););x.forEach(function(_,p){var C;_.plotX+=A,(_.plotY===void 0||n)&&(_.plotX>=0&&_.plotX<=i.len?n?(_.plotY=i.translate(_.x,0,1,0,1),_.plotX=q(_.y)?c.translate(_.y,0,0,0,1):0):_.plotY=(i.opposite?0:E.yAxis.len)+i.offset:_.shapeArgs={}),(u=x[p-1])&&u.plotX===_.plotX&&(u.stackIndex===void 0&&(u.stackIndex=0),C=u.stackIndex+1),_.stackIndex=C}),this.onSeries=h}D.compose=function(d){if(O.indexOf(d)===-1){O.push(d);var u=d.prototype;u.getPlotBox=w,u.translate=T}return d},D.getPlotBox=w,D.translate=T}(V||(V={})),V}),st(B,"Series/Flags/FlagsSeries.js",[B["Series/Flags/FlagsPoint.js"],B["Series/Flags/FlagsSeriesDefaults.js"],B["Series/Flags/FlagsSymbols.js"],B["Core/Globals.js"],B["Series/OnSeriesComposition.js"],B["Core/Renderer/RendererUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D){var O,w=this&&this.__extends||(O=function(x,l){return O=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(h,e){h.__proto__=e}||function(h,e){for(var r in e)e.hasOwnProperty(r)&&(h[r]=e[r])},O(x,l)},function(x,l){function h(){this.constructor=x}O(x,l),x.prototype=l===null?Object.create(l):(h.prototype=l.prototype,new h)}),T=V.noop,d=J.distribute,u=q.series,g=q.seriesTypes.column,b=D.addEvent,v=D.defined,S=D.extend,P=D.merge,E=D.objectEach,M=D.wrap,f=function(x){function l(){var h=x!==null&&x.apply(this,arguments)||this;return h.data=void 0,h.options=void 0,h.points=void 0,h}return w(l,x),l.prototype.animate=function(h){h&&this.setClip()},l.prototype.drawPoints=function(){var h,e,r,n,i,c,a,s,y,A,_,p=this,C=p.points,k=p.chart,F=k.renderer,G=k.inverted,I=p.options,j=I.y,N=p.yAxis,Z={},$=[];for(n=C.length;n--;)i=C[n],A=(G?i.plotY:i.plotX)>p.xAxis.len,h=i.plotX,a=i.stackIndex,r=i.options.shape||I.shape,(e=i.plotY)!==void 0&&(e=i.plotY+j-(a!==void 0&&a*I.stackDistance)),i.anchorX=a?void 0:i.plotX,s=a?void 0:i.plotY,_=r!=="flag",c=i.graphic,e!==void 0&&h>=0&&!A?(c&&i.hasNewShapeType()&&(c=c.destroy()),c||(c=i.graphic=F.label("",null,null,r,null,null,I.useHTML).addClass("highcharts-point").add(p.markerGroup),i.graphic.div&&(i.graphic.div.point=i),c.isNew=!0),c.attr({align:_?"center":"left",width:I.width,height:I.height,"text-align":I.textAlign}),k.styledMode||c.attr(p.pointAttribs(i)).css(P(I.style,i.style)).shadow(I.shadow),h>0&&(h-=c.strokeWidth()%2),y={y:e,anchorY:s},I.allowOverlapX&&(y.x=h,y.anchorX=i.anchorX),c.attr({text:i.options.title||I.title||"A"})[c.isNew?"attr":"animate"](y),I.allowOverlapX||(Z[i.plotX]?Z[i.plotX].size=Math.max(Z[i.plotX].size,c.width):Z[i.plotX]={align:_?.5:0,size:c.width,target:h,anchorX:h}),i.tooltipPos=[h,e+N.pos-k.plotTop]):c&&(i.graphic=c.destroy());if(!I.allowOverlapX){var Y=100;E(Z,function(xt){xt.plotX=xt.anchorX,$.push(xt),Y=Math.max(xt.size,Y)}),d($,G?N.len:this.xAxis.len,Y);for(var et=0,rt=C;et<rt.length;et++){var it=rt[et],ht=it.plotX,dt=it.graphic,bt=dt&&Z[ht];bt&&dt&&(v(bt.pos)?dt[dt.isNew?"attr":"animate"]({x:bt.pos+(bt.align||0)*bt.size,anchorX:it.anchorX}).show().isNew=!1:dt.hide().isNew=!0)}}I.useHTML&&p.markerGroup&&M(p.markerGroup,"on",function(xt){return W.prototype.on.apply(xt.apply(this,[].slice.call(arguments,1)),[].slice.call(arguments,1))})},l.prototype.drawTracker=function(){var h=this.points;x.prototype.drawTracker.call(this);for(var e=function(i){var c=i.graphic;c&&(i.unbindMouseOver&&i.unbindMouseOver(),i.unbindMouseOver=b(c.element,"mouseover",function(){i.stackIndex>0&&!i.raised&&(i._y=c.y,c.attr({y:i._y-8}),i.raised=!0);for(var a=0,s=h;a<s.length;a++){var y=s[a];y!==i&&y.raised&&y.graphic&&(y.graphic.attr({y:y._y}),y.raised=!1)}}))},r=0,n=h;r<n.length;r++)e(n[r])},l.prototype.pointAttribs=function(h,e){var r=this.options,n=h&&h.color||this.color,i=r.lineColor,c=h&&h.lineWidth,a=h&&h.fillColor||r.fillColor;return e&&(a=r.states[e].fillColor,i=r.states[e].lineColor,c=r.states[e].lineWidth),{fill:a||n,stroke:i||n,"stroke-width":c||r.lineWidth||0}},l.prototype.setClip=function(){u.prototype.setClip.apply(this,arguments),this.options.clip!==!1&&this.sharedClipKey&&this.markerGroup&&this.markerGroup.clip(this.chart.sharedClips[this.sharedClipKey])},l.compose=X.compose,l.defaultOptions=P(g.defaultOptions,z),l}(g);return K.compose(f),S(f.prototype,{allowDG:!1,forceCrop:!0,invertible:!1,noSharedTooltip:!0,pointClass:U,sorted:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],buildKDTree:T,init:u.prototype.init}),q.registerSeriesType("flags",f),f}),st(B,"Core/Chart/StockChart.js",[B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Defaults.js"],B["Stock/Navigator/NavigatorDefaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Stock/Scrollbar/ScrollbarDefaults.js"],B["Core/Series/Series.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O){var w,T=this&&this.__extends||(w=function(n,i){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,a){c.__proto__=a}||function(c,a){for(var s in a)a.hasOwnProperty(s)&&(c[s]=a[s])},w(n,i)},function(n,i){function c(){this.constructor=n}w(n,i),n.prototype=i===null?Object.create(i):(c.prototype=i.prototype,new c)}),d=X.format,u=V.getOptions,g=O.addEvent,b=O.clamp,v=O.defined,S=O.extend,P=O.find,E=O.isNumber,M=O.isString,f=O.merge,x=O.pick,l=O.splat,h=function(n){function i(){return n!==null&&n.apply(this,arguments)||this}return T(i,n),i.prototype.init=function(c,a){var s=u(),y=c.xAxis,A=c.yAxis,_=x(c.navigator&&c.navigator.enabled,K.enabled,!0);c.xAxis=c.yAxis=void 0;var p=f({chart:{panning:{enabled:!0,type:"x"},zooming:{pinchType:"x"}},navigator:{enabled:_},scrollbar:{enabled:x(q.enabled,!0)},rangeSelector:{enabled:x(J.rangeSelector.enabled,!0)},title:{text:null},tooltip:{split:x(s.tooltip.split,!0),crosshairs:!0},legend:{enabled:!1}},c,{isStock:!0});c.xAxis=y,c.yAxis=A,p.xAxis=l(c.xAxis||{}).map(function(C,k){return f(e("xAxis",C),s.xAxis,s.xAxis&&s.xAxis[k],C,r("xAxis",c))}),p.yAxis=l(c.yAxis||{}).map(function(C,k){return f(e("yAxis",C),s.yAxis,s.yAxis&&s.yAxis[k],C)}),n.prototype.init.call(this,p,a)},i.prototype.createAxis=function(c,a){return a.axis=f(e(c,a.axis),a.axis,r(c,this.userOptions)),n.prototype.createAxis.call(this,c,a)},i}(z);function e(n,i){return n==="xAxis"?{minPadding:0,maxPadding:0,overscroll:0,ordinal:!0,title:{text:null},labels:{overflow:"justify"},showLastLabel:!0}:n==="yAxis"?{labels:{y:-2},opposite:x(i.opposite,!0),showLastLabel:!(!i.categories&&i.type!=="category"),title:{text:null}}:{}}function r(n,i){if(n==="xAxis"){var c={type:"datetime",categories:void 0};return x(i.navigator&&i.navigator.enabled,K.enabled,!0)&&(c.startOnTick=!1,c.endOnTick=!1),c}return{}}return function(n){n.stockChart=function(i,c,a){return new n(i,c,a)}}(h||(h={})),g(W,"setOptions",function(n){var i;this.chart.options.isStock&&(this.is("column")||this.is("columnrange")?i={borderWidth:0,shadow:!1}:this.is("scatter")||this.is("sma")||(i={marker:{enabled:!1,radius:2}}),i&&(n.plotOptions[this.type]=f(n.plotOptions[this.type],i)))}),g(U,"autoLabelAlign",function(n){var i,c=this.chart,a=this.options,s=c._labelPanes=c._labelPanes||{},y=this.options.labels;this.chart.options.isStock&&this.coll==="yAxis"&&!s[i=a.top+","+a.height]&&y.enabled&&(y.x===15&&(y.x=0),y.align===void 0&&(y.align="right"),s[i]=this,n.align="right",n.preventDefault())}),g(U,"destroy",function(){var n=this.chart,i=this.options&&this.options.top+","+this.options.height;i&&n._labelPanes&&n._labelPanes[i]===this&&delete n._labelPanes[i]}),g(U,"getPlotLinePath",function(n){var i,c,a,s,y,A,_,p,C,k=this,F=this.isLinked&&!this.series?this.linkedParent.series:this.series,G=k.chart,I=G.renderer,j=k.left,N=k.top,Z=[],$=[],Y=n.translatedValue,et=n.value,rt=n.force;(G.options.isStock&&n.acrossPanes!==!1&&k.coll==="xAxis"||k.coll==="yAxis")&&(n.preventDefault(),_=k.coll,p=_==="xAxis"?"yAxis":"xAxis",C=k.options[p],$=E(C)?[G[p][C]]:M(C)?[G.get(C)]:F.map(function(it){return it[p]}),(k.isXAxis?G.yAxis:G.xAxis).forEach(function(it){if(!v(it.options.id)||it.options.id.indexOf("navigator")===-1){var ht=it.isXAxis?"yAxis":"xAxis",dt=v(it.options[ht])?G[ht][it.options[ht]]:G[ht][0];k===dt&&$.push(it)}}),y=$.length?[]:[k.isXAxis?G.yAxis[0]:G.xAxis[0]],$.forEach(function(it){y.indexOf(it)!==-1||P(y,function(ht){return ht.pos===it.pos&&ht.len===it.len})||y.push(it)}),A=x(Y,k.translate(et,void 0,void 0,n.old)),E(A)&&(k.horiz?y.forEach(function(it){var ht;c=it.pos,s=c+it.len,i=a=Math.round(A+k.transB),rt!=="pass"&&(i<j||i>j+k.width)&&(rt?i=a=b(i,j,j+k.width):ht=!0),ht||Z.push(["M",i,c],["L",a,s])}):y.forEach(function(it){var ht;i=it.pos,a=i+it.len,c=s=Math.round(N+k.height-A),rt!=="pass"&&(c<N||c>N+k.height)&&(rt?c=s=b(c,N,N+k.height):ht=!0),ht||Z.push(["M",i,c],["L",a,s])})),n.path=Z.length>0?I.crispPolyLine(Z,n.lineWidth||1):null)}),D.prototype.crispPolyLine=function(n,i){for(var c=0;c<n.length;c+=2){var a=n[c],s=n[c+1];a[1]===s[1]&&(a[1]=s[1]=Math.round(a[1])-i%2/2),a[2]===s[2]&&(a[2]=s[2]=Math.round(a[2])+i%2/2)}return n},g(U,"afterHideCrosshair",function(){this.crossLabel&&(this.crossLabel=this.crossLabel.hide())}),g(U,"afterDrawCrosshair",function(n){if(this.crosshair&&this.crosshair.label&&this.crosshair.label.enabled&&this.cross&&E(this.min)&&E(this.max)){var i,c,a,s,y,A=this.chart,_=this.logarithmic,p=this.crosshair.label,C=this.horiz,k=this.opposite,F=this.left,G=this.top,I=this.crossLabel,j=p.format,N="",Z=this.options.tickPosition==="inside",$=this.crosshair.snap!==!1,Y=0,et=n.e||this.cross&&this.cross.e,rt=n.point,it=this.min,ht=this.max;_&&(it=_.lin2log(it),ht=_.lin2log(ht)),y=C?"center":k?this.labelAlign==="right"?"right":"left":this.labelAlign==="left"?"left":"center",I||(I=this.crossLabel=A.renderer.label("",0,void 0,p.shape||"callout").addClass("highcharts-crosshair-label highcharts-color-"+(rt&&rt.series?rt.series.colorIndex:this.series[0]&&this.series[0].colorIndex)).attr({align:p.align||y,padding:x(p.padding,8),r:x(p.borderRadius,3),zIndex:2}).add(this.labelGroup),A.styledMode||I.attr({fill:p.backgroundColor||rt&&rt.series&&rt.series.color||"#666666",stroke:p.borderColor||"","stroke-width":p.borderWidth||0}).css(S({color:"#ffffff",fontWeight:"normal",fontSize:"11px",textAlign:"center"},p.style||{}))),C?(i=$?(rt.plotX||0)+F:et.chartX,c=G+(k?0:this.height)):(i=k?this.width+F:0,c=$?(rt.plotY||0)+G:et.chartY),j||p.formatter||(this.dateTime&&(N="%b %d, %Y"),j="{value"+(N?":"+N:"")+"}");var dt=$?this.isXAxis?rt.x:rt.y:this.toValue(C?et.chartX:et.chartY),bt=rt&&rt.series?rt.series.isPointInside(rt):E(dt)&&dt>it&&dt<ht,xt="";j?xt=d(j,{value:dt},A):p.formatter&&E(dt)&&(xt=p.formatter.call(this,dt)),I.attr({text:xt,x:i,y:c,visibility:bt?"inherit":"hidden"}),a=I.getBBox(),E(I.y)&&(C?(Z&&!k||!Z&&k)&&(c=I.y-a.height):c=I.y-a.height/2),s=C?{left:F-a.x,right:F+this.width-a.x}:{left:this.labelAlign==="left"?F:0,right:this.labelAlign==="right"?F+this.width:A.chartWidth},I.translateX<s.left&&(Y=s.left-I.translateX),I.translateX+a.width>=s.right&&(Y=-(I.translateX+a.width-s.right)),I.attr({x:i+Y,y:c,anchorX:C?i:this.opposite?0:A.chartWidth,anchorY:C?this.opposite?A.chartHeight:0:c+a.height/2})}}),W.prototype.forceCropping=function(){var n=this.chart,i=this.options.dataGrouping;return this.allowDG!==!1&&i&&x(i.enabled,n.options.isStock)},g(z,"update",function(n){var i=n.options;"scrollbar"in i&&this.navigator&&(f(!0,this.options.scrollbar,i.scrollbar),this.navigator.update({}),delete i.scrollbar)}),h}),st(B,"masters/modules/stock.src.js",[B["Core/Globals.js"],B["Series/DataModifyComposition.js"],B["Stock/Navigator/Navigator.js"],B["Stock/RangeSelector/RangeSelector.js"],B["Stock/Scrollbar/Scrollbar.js"],B["Core/Axis/OrdinalAxis.js"],B["Series/OHLC/OHLCSeries.js"],B["Series/Flags/FlagsSeries.js"],B["Core/Chart/StockChart.js"]],function(U,z,X,V,K,J,q,W,D){var O=U;O.Navigator=X,O.RangeSelector=V,O.Scrollbar=K,O.StockChart=O.stockChart=D.stockChart,z.compose(O.Series,O.Axis,O.Point),W.compose(O.Renderer),X.compose(O.Axis,O.Chart,O.Series),q.compose(O.Series),J.compose(O.Axis,O.Series,O.Chart),V.compose(O.Axis,O.Chart),K.compose(O.Axis)}),st(B,"masters/highstock.src.js",[B["masters/highcharts.src.js"]],function(U){return U.product="Highstock",U}),B["masters/highstock.src.js"]._modules=B,B["masters/highstock.src.js"]},tt.exports?(ft.default=ft,tt.exports=ut.document?ft(ut):ft):(ct=function(){return ft(ut)}.call(ot,lt,ot,tt))===void 0||(tt.exports=ct)},3968:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Accessibility/Utils/HTMLUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=U.doc,V=U.win,K=z.css,J=V.EventTarget&&new V.EventTarget||"none";function q(D){if(typeof V.MouseEvent=="function")return new V.MouseEvent(D.type,D);if(X.createEvent){var O=X.createEvent("MouseEvent");if(O.initMouseEvent)return O.initMouseEvent(D.type,D.bubbles,D.cancelable,D.view||V,D.detail,D.screenX,D.screenY,D.clientX,D.clientY,D.ctrlKey,D.altKey,D.shiftKey,D.metaKey,D.button,D.relatedTarget),O}return W(D.type)}function W(D,O,w){var T=O||{x:0,y:0};if(typeof V.MouseEvent=="function")return new V.MouseEvent(D,{bubbles:!0,cancelable:!0,composed:!0,button:0,buttons:1,relatedTarget:w||J,view:V,detail:D==="click"?1:0,screenX:T.x,screenY:T.y,clientX:T.x,clientY:T.y});if(X.createEvent){var d=X.createEvent("MouseEvent");if(d.initMouseEvent)return d.initMouseEvent(D,!0,!0,V,D==="click"?1:0,T.x,T.y,T.x,T.y,!1,!1,!1,!1,0,null),d}return{type:D}}return{addClass:function(D,O){D.classList?D.classList.add(O):D.className.indexOf(O)<0&&(D.className+=" "+O)},cloneMouseEvent:q,cloneTouchEvent:function(D){var O=function(d){for(var u=[],g=0;g<d.length;++g){var b=d.item(g);b&&u.push(b)}return u};if(typeof V.TouchEvent=="function"){var w=new V.TouchEvent(D.type,{touches:O(D.touches),targetTouches:O(D.targetTouches),changedTouches:O(D.changedTouches),ctrlKey:D.ctrlKey,shiftKey:D.shiftKey,altKey:D.altKey,metaKey:D.metaKey,bubbles:D.bubbles,cancelable:D.cancelable,composed:D.composed,detail:D.detail,view:D.view});return D.defaultPrevented&&w.preventDefault(),w}var T=q(D);return T.touches=D.touches,T.changedTouches=D.changedTouches,T.targetTouches=D.targetTouches,T},escapeStringForHTML:function(D){return D.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;").replace(/\//g,"&#x2F;")},getElement:function(D){return X.getElementById(D)},getFakeMouseEvent:W,getHeadingTagNameForElement:function(D){var O=function(d){var u=parseInt(d.slice(1),10);return"h"+Math.min(6,u+1)},w=function(d){return/H[1-6]/.test(d)},T=function(d){var u=function(v){for(var S=v;S=S.previousSibling;){var P=S.tagName||"";if(w(P))return P}return""}(d);if(u)return O(u);var g=d.parentElement;if(!g)return"p";var b=g.tagName;return w(b)?O(b):T(g)};return T(D)},removeChildNodes:function(D){for(;D.lastChild;)D.removeChild(D.lastChild)},removeClass:function(D,O){D.classList?D.classList.remove(O):D.className=D.className.replace(new RegExp(O,"g"),"")},removeElement:function(D){D&&D.parentNode&&D.parentNode.removeChild(D)},reverseChildNodes:function(D){for(var O=D.childNodes.length;O--;)D.appendChild(D.childNodes[O])},simulatedEventTarget:J,stripHTMLTagsFromString:function(D){return typeof D=="string"?D.replace(/<\/?[^>]+(>|$)/g,""):D},visuallyHideElement:function(D){K(D,{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})}}}),st(B,"Accessibility/A11yI18n.js",[B["Core/FormatUtilities.js"],B["Core/Utilities.js"]],function(U,z){var X,V=U.format,K=z.getNestedProperty,J=z.pick;return function(q){var W=[];function D(w,T,d){var u,g,b=function(P,E){var M=P.slice(E||0),f=M.indexOf("{"),x=M.indexOf("}");if(f>-1&&x>f)return{statement:M.substring(f+1,x),begin:E+f+1,end:E+x}},v=[],S=0;do u=b(w,S),(g=w.substring(S,u&&u.begin-1)).length&&v.push({value:g,type:"constant"}),u&&v.push({value:u.statement,type:"statement"}),S=u?u.end+1:S+1;while(u);return v.forEach(function(P){P.type==="statement"&&(P.value=function(E,M){var f,x,l,h=E.indexOf("#each("),e=E.indexOf("#plural("),r=E.indexOf("["),n=E.indexOf("]");if(h>-1){var i=E.slice(h).indexOf(")")+h,c=E.substring(0,h),a=E.substring(i+1),s=E.substring(h+6,i).split(","),y=Number(s[1]),A=void 0;if(x="",f=K(s[0],M)){A=(y=isNaN(y)?f.length:y)<0?f.length+y:Math.min(y,f.length);for(var _=0;_<A;++_)x+=c+f[_]+a}return x.length?x:""}if(e>-1){var p=E.slice(e).indexOf(")")+e,C=E.substring(e+8,p).split(",");switch(Number(K(C[0],M))){case 0:x=J(C[4],C[1]);break;case 1:x=J(C[2],C[1]);break;case 2:x=J(C[3],C[1]);break;default:x=C[1]}return x?(l=x).trim&&l.trim()||l.replace(/^\s+|\s+$/g,""):""}if(r>-1){var k=E.substring(0,r),F=Number(E.substring(r+1,n)),G=void 0;return f=K(k,M),!isNaN(F)&&f&&(F<0?(G=f[f.length+F])===void 0&&(G=f[0]):(G=f[F])===void 0&&(G=f[f.length-1])),G!==void 0?G:""}return"{"+E+"}"}(P.value,T))}),V(v.reduce(function(P,E){return P+E.value},""),T,d)}function O(w,T){for(var d=w.split("."),u=this.options.lang,g=0;g<d.length;++g)u=u&&u[d[g]];return typeof u=="string"?D(u,T,this):""}q.compose=function(w){return W.indexOf(w)===-1&&(W.push(w),w.prototype.langFormat=O),w},q.i18nFormat=D}(X||(X={})),X}),st(B,"Accessibility/Utils/ChartUtilities.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(U,z,X){var V=U.doc,K=z.stripHTMLTagsFromString,J=X.defined,q=X.find,W=X.fireEvent;function D(w){if(w.points&&w.points.length){var T=q(w.points,function(d){return!!d.graphic});return T&&T.graphic&&T.graphic.element}}function O(w){var T=D(w);return T&&T.parentNode||w.graph&&w.graph.element||w.group&&w.group.element}return{fireEventOnWrappedOrUnwrappedElement:function w(T,d){var u=d.type,g=T.hcEvents;V.createEvent&&(T.dispatchEvent||T.fireEvent)?T.dispatchEvent?T.dispatchEvent(d):T.fireEvent(u,d):g&&g[u]?W(T,u,d):T.element&&w(T.element,d)},getChartTitle:function(w){return K(w.options.title.text||w.langFormat("accessibility.defaultChartTitle",{chart:w}))},getAxisDescription:function(w){return w&&(w.userOptions&&w.userOptions.accessibility&&w.userOptions.accessibility.description||w.axisTitle&&w.axisTitle.textStr||w.options.id||w.categories&&"categories"||w.dateTime&&"Time"||"values")},getAxisRangeDescription:function(w){var T=w.options||{};return T.accessibility&&T.accessibility.rangeDescription!==void 0?T.accessibility.rangeDescription:w.categories?function(d){var u=d.chart;return d.dataMax&&d.dataMin?u.langFormat("accessibility.axis.rangeCategories",{chart:u,axis:d,numCategories:d.dataMax-d.dataMin+1}):""}(w):!w.dateTime||w.min!==0&&w.dataMin!==0?function(d){var u=d.chart,g=u.options,b=g&&g.accessibility&&g.accessibility.screenReaderSection.axisRangeDateFormat||"",v={min:d.dataMin||d.min||0,max:d.dataMax||d.max||0},S=function(P){return d.dateTime?u.time.dateFormat(b,v[P]):v[P].toString()};return u.langFormat("accessibility.axis.rangeFromTo",{chart:u,axis:d,rangeFrom:S("min"),rangeTo:S("max")})}(w):function(d){var u=d.chart,g={},b=d.dataMin||d.min||0,v=d.dataMax||d.max||0,S="Seconds";g.Seconds=(v-b)/1e3,g.Minutes=g.Seconds/60,g.Hours=g.Minutes/60,g.Days=g.Hours/24,["Minutes","Hours","Days"].forEach(function(E){g[E]>2&&(S=E)});var P=g[S].toFixed(S!=="Seconds"&&S!=="Minutes"?1:0);return u.langFormat("accessibility.axis.timeRange"+S,{chart:u,axis:d,range:P.replace(".0","")})}(w)},getPointFromXY:function(w,T,d){for(var u,g=w.length;g--;)if(u=q(w[g].points||[],function(b){return b.x===T&&b.y===d}))return u},getSeriesFirstPointElement:D,getSeriesFromName:function(w,T){return T?(w.series||[]).filter(function(d){return d.name===T}):w.series},getSeriesA11yElement:O,unhideChartElementFromAT:function w(T,d){d.setAttribute("aria-hidden",!1),d!==T.renderTo&&d.parentNode&&d.parentNode!==V.body&&(Array.prototype.forEach.call(d.parentNode.childNodes,function(u){u.hasAttribute("aria-hidden")||u.setAttribute("aria-hidden",!0)}),w(T,d.parentNode))},hideSeriesFromAT:function(w){var T=O(w);T&&T.setAttribute("aria-hidden",!0)},scrollToPoint:function(w){var T=w.series.xAxis,d=w.series.yAxis,u=T&&T.scrollbar?T:d,g=u&&u.scrollbar;if(g&&J(g.to)&&J(g.from)){var b=g.to-g.from,v=function(S,P){if(!J(S.dataMin)||!J(S.dataMax))return 0;var E=S.toPixels(S.dataMin),M=S.toPixels(S.dataMax),f=S.coll==="xAxis"?"x":"y";return(S.toPixels(P[f]||0)-E)/(M-E)}(u,w);g.updatePosition(v-b/2,v+b/2),W(g,"changed",{from:g.from,to:g.to,trigger:"scrollbar",DOMEvent:null})}}}}),st(B,"Accessibility/Utils/DOMElementProvider.js",[B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(U,z){var X=U.doc,V=z.removeElement,K=function(){function J(){this.elements=[]}return J.prototype.createElement=function(){var q=X.createElement.apply(X,arguments);return this.elements.push(q),q},J.prototype.destroyCreatedElements=function(){this.elements.forEach(function(q){V(q)}),this.elements=[]},J}();return K}),st(B,"Accessibility/Utils/EventProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=z.addEvent,V=function(){function K(){this.eventRemovers=[]}return K.prototype.addEvent=function(){var J=X.apply(U,arguments);return this.eventRemovers.push(J),J},K.prototype.removeAddedEvents=function(){this.eventRemovers.forEach(function(J){return J()}),this.eventRemovers=[]},K}();return V}),st(B,"Accessibility/AccessibilityComponent.js",[B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=U.fireEventOnWrappedOrUnwrappedElement,q=V.getFakeMouseEvent,W=K.extend,D=function(){function O(){this.chart=void 0,this.domElementProvider=void 0,this.eventProvider=void 0,this.keyCodes=void 0,this.proxyProvider=void 0}return O.prototype.initBase=function(w,T){this.chart=w,this.eventProvider=new X,this.domElementProvider=new z,this.proxyProvider=T,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}},O.prototype.addEvent=function(w,T,d,u){return this.eventProvider.addEvent(w,T,d,u)},O.prototype.createElement=function(w,T){return this.domElementProvider.createElement(w,T)},O.prototype.fakeClickEvent=function(w){var T=q("click");J(w,T)},O.prototype.destroyBase=function(){this.domElementProvider.destroyCreatedElements(),this.eventProvider.removeAddedEvents()},O}();return W(D.prototype,{init:function(){},getKeyboardNavigation:function(){},onChartUpdate:function(){},onChartRender:function(){},destroy:function(){}}),D}),st(B,"Accessibility/KeyboardNavigationHandler.js",[B["Core/Utilities.js"]],function(U){var z=U.find;return function(){function X(V,K){this.chart=V,this.keyCodeMap=K.keyCodeMap||[],this.validate=K.validate,this.init=K.init,this.terminate=K.terminate,this.response={success:1,prev:2,next:3,noHandler:4,fail:5}}return X.prototype.run=function(V){var K=V.which||V.keyCode,J=this.response.noHandler,q=z(this.keyCodeMap,function(W){return W[0].indexOf(K)>-1});return q?J=q[1].call(this,K,V):K===9&&(J=this.response[V.shiftKey?"prev":"next"]),J},X}()}),st(B,"Accessibility/Components/ContainerComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(U,z,X,V,K){var J,q=this&&this.__extends||(J=function(d,u){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},J(d,u)},function(d,u){function g(){this.constructor=d}J(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),W=X.unhideChartElementFromAT,D=X.getChartTitle,O=V.doc,w=K.stripHTMLTagsFromString,T=function(d){function u(){return d!==null&&d.apply(this,arguments)||this}return q(u,d),u.prototype.onChartUpdate=function(){this.handleSVGTitleElement(),this.setSVGContainerLabel(),this.setGraphicContainerAttrs(),this.setRenderToAttrs(),this.makeCreditsAccessible()},u.prototype.handleSVGTitleElement=function(){var g=this.chart,b="highcharts-title-"+g.index,v=w(g.langFormat("accessibility.svgContainerTitle",{chartTitle:D(g)}));if(v.length){var S=this.svgTitleElement=this.svgTitleElement||O.createElementNS("http://www.w3.org/2000/svg","title");S.textContent=v,S.id=b,g.renderTo.insertBefore(S,g.renderTo.firstChild)}},u.prototype.setSVGContainerLabel=function(){var g=this.chart,b=g.langFormat("accessibility.svgContainerLabel",{chartTitle:D(g)});g.renderer.box&&b.length&&g.renderer.box.setAttribute("aria-label",b)},u.prototype.setGraphicContainerAttrs=function(){var g=this.chart,b=g.langFormat("accessibility.graphicContainerLabel",{chartTitle:D(g)});b.length&&g.container.setAttribute("aria-label",b)},u.prototype.setRenderToAttrs=function(){var g=this.chart,b=g.options.accessibility.landmarkVerbosity!=="disabled",v=g.langFormat("accessibility.chartContainerLabel",{title:D(g),chart:g});v&&(g.renderTo.setAttribute("role",b?"region":"group"),g.renderTo.setAttribute("aria-label",v))},u.prototype.makeCreditsAccessible=function(){var g=this.chart,b=g.credits;b&&(b.textStr&&b.element.setAttribute("aria-label",g.langFormat("accessibility.credits",{creditsStr:w(b.textStr)})),W(g,b.element))},u.prototype.getKeyboardNavigation=function(){var g=this.chart;return new z(g,{keyCodeMap:[],validate:function(){return!0},init:function(){var b=g.accessibility;b&&b.keyboardNavigation.tabindexContainer.focus()}})},u.prototype.destroy=function(){this.chart.renderTo.setAttribute("aria-hidden",!0)},u}(U);return T}),st(B,"Accessibility/FocusBorder.js",[B["Core/Renderer/SVG/SVGLabel.js"],B["Core/Utilities.js"]],function(U,z){var X,V=z.addEvent,K=z.pick;return function(J){var q=[],W=["x","y","transform","width","height","r","d","stroke-width"];function D(){var d=this.focusElement,u=this.options.accessibility.keyboardNavigation.focusBorder;d&&(d.removeFocusBorder(),u.enabled&&d.addFocusBorder(u.margin,{stroke:u.style.color,strokeWidth:u.style.lineWidth,r:u.style.borderRadius}))}function O(d,u){var g=this.options.accessibility.keyboardNavigation.focusBorder,b=u||d.element;b&&b.focus&&(b.hcEvents&&b.hcEvents.focusin||V(b,"focusin",function(){}),b.focus(),g.hideBrowserFocusOutline&&(b.style.outline="none")),this.focusElement&&this.focusElement.removeFocusBorder(),this.focusElement=d,this.renderFocusBorder()}function w(d,u){this.focusBorder&&this.removeFocusBorder();var g=this.getBBox(),b=K(d,3),v=this.parentGroup,S=this.scaleX||v&&v.scaleX,P=this.scaleY||v&&v.scaleY,E=(S?!P:P)?Math.abs(S||P||1):(Math.abs(S||1)+Math.abs(P||1))/2;g.x+=this.translateX?this.translateX:0,g.y+=this.translateY?this.translateY:0;var M,f,x,l=g.x-b,h=g.y-b,e=g.width+2*b,r=g.height+2*b,n=this instanceof U;if(this.element.nodeName==="text"||n){var i=!!this.rotation,c=n?{x:i?1:0,y:0}:(f=0,x=0,(M=this).attr("text-anchor")==="middle"?f=x=.5:M.rotation?f=.25:x=.75,{x:f,y:x}),a=+this.attr("x"),s=+this.attr("y");if(isNaN(a)||(l=a-g.width*c.x-b),isNaN(s)||(h=s-g.height*c.y-b),n&&i){var y=e;e=r,r=y,isNaN(a)||(l=a-g.height*c.x-b),isNaN(s)||(h=s-g.width*c.y-b)}}this.focusBorder=this.renderer.rect(l,h,e,r,parseInt((u&&u.r||0).toString(),10)/E).addClass("highcharts-focus-border").attr({zIndex:99}).add(v),this.renderer.styledMode||this.focusBorder.attr({stroke:u&&u.stroke,"stroke-width":(u&&u.strokeWidth||0)/E}),function(A){for(var _=[],p=1;p<arguments.length;p++)_[p-1]=arguments[p];A.focusBorderUpdateHooks||(A.focusBorderUpdateHooks={},W.forEach(function(C){var k=C+"Setter",F=A[k]||A._defaultSetter;A.focusBorderUpdateHooks[k]=F,A[k]=function(){var G=F.apply(A,arguments);return A.addFocusBorder.apply(A,_),G}}))}(this,d,u),function(A){if(!A.focusBorderDestroyHook){var _=A.destroy;A.destroy=function(){return A.focusBorder&&A.focusBorder.destroy&&A.focusBorder.destroy(),_.apply(A,arguments)},A.focusBorderDestroyHook=_}}(this)}function T(){var d;(function(u){u.focusBorderUpdateHooks&&(Object.keys(u.focusBorderUpdateHooks).forEach(function(g){var b=u.focusBorderUpdateHooks[g];b===u._defaultSetter?delete u[g]:u[g]=b}),delete u.focusBorderUpdateHooks)})(this),(d=this).focusBorderDestroyHook&&(d.destroy=d.focusBorderDestroyHook,delete d.focusBorderDestroyHook),this.focusBorder&&(this.focusBorder.destroy(),delete this.focusBorder)}J.compose=function(d,u){if(q.indexOf(d)===-1){q.push(d);var g=d.prototype;g.renderFocusBorder=D,g.setFocusToElement=O}if(q.indexOf(u)===-1){q.push(u);var b=u.prototype;b.addFocusBorder=w,b.removeFocusBorder=T}}}(X||(X={})),X}),st(B,"Accessibility/Utils/Announcer.js",[B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=X.doc,q=V.addClass,W=V.visuallyHideElement,D=K.attr;return function(){function O(w,T){this.chart=w,this.domElementProvider=new z,this.announceRegion=this.addAnnounceRegion(T)}return O.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},O.prototype.announce=function(w){var T=this;U.setElementHTML(this.announceRegion,w),this.clearAnnouncementRegionTimer&&clearTimeout(this.clearAnnouncementRegionTimer),this.clearAnnouncementRegionTimer=setTimeout(function(){T.announceRegion.innerHTML=U.emptyHTML,delete T.clearAnnouncementRegionTimer},1e3)},O.prototype.addAnnounceRegion=function(w){var T=this.chart.announcerContainer||this.createAnnouncerContainer(),d=this.domElementProvider.createElement("div");return D(d,{"aria-hidden":!1,"aria-live":w}),this.chart.styledMode?q(d,"highcharts-visually-hidden"):W(d),T.appendChild(d),d},O.prototype.createAnnouncerContainer=function(){var w=this.chart,T=J.createElement("div");return D(T,{"aria-hidden":!1,class:"highcharts-announcer-container"}),T.style.position="relative",w.renderTo.insertBefore(T,w.renderTo.firstChild),w.announcerContainer=T,T},O}()}),st(B,"Accessibility/Components/AnnotationsA11y.js",[B["Accessibility/Utils/HTMLUtilities.js"]],function(U){var z=U.escapeStringForHTML,X=U.stripHTMLTagsFromString;function V(W){return(W.annotations||[]).reduce(function(D,O){return O.options&&O.options.visible!==!1&&(D=D.concat(O.labels)),D},[])}function K(W){return W.options&&W.options.accessibility&&W.options.accessibility.description||W.graphic&&W.graphic.text&&W.graphic.text.textStr||""}function J(W){var D=W.options&&W.options.accessibility&&W.options.accessibility.description;if(D)return D;var O=W.chart,w=K(W),T=W.points.filter(function(b){return!!b.graphic}).map(function(b){var v=b.accessibility&&b.accessibility.valueDescription||function(P){return P.graphic&&P.graphic.element&&P.graphic.element.getAttribute("aria-label")||""}(b),S=b&&b.series.name||"";return(S?S+", ":"")+"data point "+v}).filter(function(b){return!!b}),d=T.length,u="accessibility.screenReaderSection.annotations.description"+(d>1?"MultiplePoints":d?"SinglePoint":"NoPoints"),g={annotationText:w,annotation:W,numPoints:d,annotationPoint:T[0],additionalAnnotationPoints:T.slice(1)};return O.langFormat(u,g)}function q(W){return V(W).map(function(D){var O=z(X(J(D)));return O?"<li>".concat(O,"</li>"):""})}return{getAnnotationsInfoHTML:function(W){var D=W.annotations;if(!D||!D.length)return"";var O=q(W);return'<ul style="list-style-type: none">'.concat(O.join(" "),"</ul>")},getAnnotationLabelDescription:J,getAnnotationListItems:q,getPointAnnotationTexts:function(W){var D=V(W.series.chart).filter(function(O){return O.points.indexOf(W)>-1});return D.length?D.map(function(O){return"".concat(K(O))}):[]}}}),st(B,"Accessibility/Components/InfoRegionsComponent.js",[B["Accessibility/A11yI18n.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Components/AnnotationsA11y.js"],B["Core/Renderer/HTML/AST.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O){var w,T=this&&this.__extends||(w=function(i,c){return w=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var y in s)s.hasOwnProperty(y)&&(a[y]=s[y])},w(i,c)},function(i,c){function a(){this.constructor=i}w(i,c),i.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),d=V.getAnnotationsInfoHTML,u=J.getAxisDescription,g=J.getAxisRangeDescription,b=J.getChartTitle,v=J.unhideChartElementFromAT,S=q.format,P=W.doc,E=D.addClass,M=D.getElement,f=D.getHeadingTagNameForElement,x=D.stripHTMLTagsFromString,l=D.visuallyHideElement,h=O.attr,e=O.pick;function r(i){return i.replace(/<(\w+)[^>]*?>\s*<\/\1>/g,"")}var n=function(i){function c(){var a=i!==null&&i.apply(this,arguments)||this;return a.announcer=void 0,a.screenReaderSections={},a}return T(c,i),c.prototype.init=function(){var a=this.chart,s=this;this.initRegionsDefinitions(),this.addEvent(a,"aftergetTableAST",function(y){s.onDataTableCreated(y)}),this.addEvent(a,"afterViewData",function(y){y.wasHidden&&(s.dataTableDiv=y.element,setTimeout(function(){s.focusDataTable()},300))}),this.announcer=new X(a,"assertive")},c.prototype.initRegionsDefinitions=function(){var a=this;this.screenReaderSections={before:{element:null,buildContent:function(s){var y=s.options.accessibility.screenReaderSection.beforeChartFormatter;return y?y(s):a.defaultBeforeChartFormatter(s)},insertIntoDOM:function(s,y){y.renderTo.insertBefore(s,y.renderTo.firstChild)},afterInserted:function(){a.sonifyButtonId!==void 0&&a.initSonifyButton(a.sonifyButtonId),a.dataTableButtonId!==void 0&&a.initDataTableButton(a.dataTableButtonId)}},after:{element:null,buildContent:function(s){var y=s.options.accessibility.screenReaderSection.afterChartFormatter;return y?y(s):a.defaultAfterChartFormatter()},insertIntoDOM:function(s,y){y.renderTo.insertBefore(s,y.container.nextSibling)},afterInserted:function(){a.chart.accessibility&&a.chart.accessibility.keyboardNavigation.updateExitAnchor()}}}},c.prototype.onChartRender=function(){var a=this;this.linkedDescriptionElement=this.getLinkedDescriptionElement(),this.setLinkedDescriptionAttrs(),Object.keys(this.screenReaderSections).forEach(function(s){a.updateScreenReaderSection(s)})},c.prototype.getLinkedDescriptionElement=function(){var a=this.chart.options.accessibility.linkedDescription;if(a){if(typeof a!="string")return a;var s=S(a,this.chart),y=P.querySelectorAll(s);return y.length===1?y[0]:void 0}},c.prototype.setLinkedDescriptionAttrs=function(){var a=this.linkedDescriptionElement;a&&(a.setAttribute("aria-hidden","true"),E(a,"highcharts-linked-description"))},c.prototype.updateScreenReaderSection=function(a){var s=this.chart,y=this.screenReaderSections[a],A=y.buildContent(s),_=y.element=y.element||this.createElement("div"),p=_.firstChild||this.createElement("div");A?(this.setScreenReaderSectionAttribs(_,a),K.setElementHTML(p,A),_.appendChild(p),y.insertIntoDOM(_,s),s.styledMode?E(p,"highcharts-visually-hidden"):l(p),v(s,p),y.afterInserted&&y.afterInserted()):(_.parentNode&&_.parentNode.removeChild(_),y.element=null)},c.prototype.setScreenReaderSectionAttribs=function(a,s){var y=this.chart,A=y.langFormat("accessibility.screenReaderSection."+s+"RegionLabel",{chart:y,chartTitle:b(y)}),_="highcharts-screen-reader-region-".concat(s,"-").concat(y.index);h(a,{id:_,"aria-label":A||void 0}),a.style.position="relative",A&&a.setAttribute("role",y.options.accessibility.landmarkVerbosity==="all"?"region":"group")},c.prototype.defaultBeforeChartFormatter=function(){var a=this.chart,s=a.options.accessibility.screenReaderSection.beforeChartFormat;if(!s)return"";var y=this.getAxesDescription(),A=a.sonify&&a.options.sonification&&a.options.sonification.enabled,_="highcharts-a11y-sonify-data-btn-"+a.index,p="hc-linkto-highcharts-data-table-"+a.index,C=d(a),k=a.langFormat("accessibility.screenReaderSection.annotations.heading",{chart:a}),F={headingTagName:f(a.renderTo),chartTitle:b(a),typeDescription:this.getTypeDescriptionText(),chartSubtitle:this.getSubtitleText(),chartLongdesc:this.getLongdescText(),xAxisDescription:y.xAxis,yAxisDescription:y.yAxis,playAsSoundButton:A?this.getSonifyButtonText(_):"",viewTableButton:a.getCSV?this.getDataTableButtonText(p):"",annotationsTitle:C?k:"",annotationsList:C},G=U.i18nFormat(s,F,a);return this.dataTableButtonId=p,this.sonifyButtonId=_,r(G)},c.prototype.defaultAfterChartFormatter=function(){var a=this.chart,s=a.options.accessibility.screenReaderSection.afterChartFormat;if(!s)return"";var y={endOfChartMarker:this.getEndOfChartMarkerText()};return r(U.i18nFormat(s,y,a))},c.prototype.getLinkedDescription=function(){var a=this.linkedDescriptionElement,s=a&&a.innerHTML||"";return x(s)},c.prototype.getLongdescText=function(){var a=this.chart.options,s=a.caption,y=s&&s.text,A=this.getLinkedDescription();return a.accessibility.description||A||y||""},c.prototype.getTypeDescriptionText=function(){var a=this.chart;return a.types?a.options.accessibility.typeDescription||function(s,y){var A=y[0],_=s.series&&s.series[0]||{},p=s.mapView&&s.mapView.geoMap&&s.mapView.geoMap.title,C={numSeries:s.series.length,numPoints:_.points&&_.points.length,chart:s,mapTitle:p};return A?A==="map"?function(k,F){return F.mapTitle?k.langFormat("accessibility.chartTypes.mapTypeDescription",F):k.langFormat("accessibility.chartTypes.unknownMap",F)}(s,C):s.types.length>1?function(k,F){return k.langFormat("accessibility.chartTypes.combinationChart",F)}(s,C):function(k,F,G){var I=F[0],j=k.langFormat("accessibility.seriesTypeDescriptions."+I,G),N=k.series&&k.series.length<2?"Single":"Multiple";return(k.langFormat("accessibility.chartTypes."+I+N,G)||k.langFormat("accessibility.chartTypes.default"+N,G))+(j?" "+j:"")}(s,y,C):function(k,F){return k.langFormat("accessibility.chartTypes.emptyChart",F)}(s,C)}(a,a.types):""},c.prototype.getDataTableButtonText=function(a){var s=this.chart;return'<button id="'+a+'">'+s.langFormat("accessibility.table.viewAsDataTableButtonText",{chart:s,chartTitle:b(s)})+"</button>"},c.prototype.getSonifyButtonText=function(a){var s=this.chart;return s.options.sonification&&s.options.sonification.enabled===!1?"":'<button id="'+a+'">'+s.langFormat("accessibility.sonification.playAsSoundButtonText",{chart:s,chartTitle:b(s)})+"</button>"},c.prototype.getSubtitleText=function(){var a=this.chart.options.subtitle;return x(a&&a.text||"")},c.prototype.getEndOfChartMarkerText=function(){var a=this.chart,s=a.langFormat("accessibility.screenReaderSection.endOfChartMarker",{chart:a});return'<div id="highcharts-end-of-chart-marker-'+a.index+'">'+s+"</div>"},c.prototype.onDataTableCreated=function(a){var s=this.chart;if(s.options.accessibility.enabled){this.viewDataTableButton&&this.viewDataTableButton.setAttribute("aria-expanded","true");var y=a.tree.attributes||{};y.tabindex=-1,y.summary=function(A){return A.langFormat("accessibility.table.tableSummary",{chart:A})}(s),a.tree.attributes=y}},c.prototype.focusDataTable=function(){var a=this.dataTableDiv,s=a&&a.getElementsByTagName("table")[0];s&&s.focus&&s.focus()},c.prototype.initSonifyButton=function(a){var s=this,y=this.sonifyButton=M(a),A=this.chart,_=function(p){y&&(y.setAttribute("aria-hidden","true"),y.setAttribute("aria-label","")),p.preventDefault(),p.stopPropagation();var C=A.langFormat("accessibility.sonification.playAsSoundClickAnnouncement",{chart:A});s.announcer.announce(C),setTimeout(function(){y&&(y.removeAttribute("aria-hidden"),y.removeAttribute("aria-label")),A.sonify&&A.sonify()},1e3)};y&&A&&(y.setAttribute("tabindex",-1),y.onclick=function(p){(A.options.accessibility&&A.options.accessibility.screenReaderSection.onPlayAsSoundClick||_).call(this,p,A)})},c.prototype.initDataTableButton=function(a){var s=this.viewDataTableButton=M(a),y=this.chart,A=a.replace("hc-linkto-","");s&&(h(s,{tabindex:-1,"aria-expanded":!!M(A)}),s.onclick=y.options.accessibility.screenReaderSection.onViewDataTableClick||function(){y.viewData()})},c.prototype.getAxesDescription=function(){var a=this.chart,s=function(k,F){var G=a[k];return G.length>1||G[0]&&e(G[0].options.accessibility&&G[0].options.accessibility.enabled,F)},y=!!a.types&&a.types.indexOf("map")<0&&a.types.indexOf("treemap")<0&&a.types.indexOf("tilemap")<0,A=!!a.hasCartesianSeries,_=s("xAxis",!a.angular&&A&&y),p=s("yAxis",A&&y),C={};return _&&(C.xAxis=this.getAxisDescriptionText("xAxis")),p&&(C.yAxis=this.getAxisDescriptionText("yAxis")),C},c.prototype.getAxisDescriptionText=function(a){var s=this.chart,y=s[a];return s.langFormat("accessibility.axis."+a+"Description"+(y.length>1?"Plural":"Singular"),{chart:s,names:y.map(function(A){return u(A)}),ranges:y.map(function(A){return g(A)}),numAxes:y.length})},c.prototype.destroy=function(){this.announcer&&this.announcer.destroy()},c}(z);return n}),st(B,"Accessibility/Components/MenuComponent.js",[B["Core/Chart/Chart.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(U,z,X,V,K,J){var q,W=this&&this.__extends||(q=function(g,b){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var P in S)S.hasOwnProperty(P)&&(v[P]=S[P])},q(g,b)},function(g,b){function v(){this.constructor=g}q(g,b),g.prototype=b===null?Object.create(b):(v.prototype=b.prototype,new v)}),D=z.attr,O=K.getChartTitle,w=K.unhideChartElementFromAT,T=J.getFakeMouseEvent;function d(g){return g.exportSVGElements&&g.exportSVGElements[0]}var u=function(g){function b(){return g!==null&&g.apply(this,arguments)||this}return W(b,g),b.prototype.init=function(){var v=this.chart,S=this;this.addEvent(v,"exportMenuShown",function(){S.onMenuShown()}),this.addEvent(v,"exportMenuHidden",function(){S.onMenuHidden()}),this.createProxyGroup()},b.prototype.onMenuHidden=function(){var v=this.chart.exportContextMenu;v&&v.setAttribute("aria-hidden","true"),this.setExportButtonExpandedState("false")},b.prototype.onMenuShown=function(){var v=this.chart,S=v.exportContextMenu;S&&(this.addAccessibleContextMenuAttribs(),w(v,S)),this.setExportButtonExpandedState("true")},b.prototype.setExportButtonExpandedState=function(v){this.exportButtonProxy&&this.exportButtonProxy.buttonElement.setAttribute("aria-expanded",v)},b.prototype.onChartRender=function(){var v=this.chart,S=v.focusElement,P=v.accessibility;this.proxyProvider.clearGroup("chartMenu"),this.proxyMenuButton(),this.exportButtonProxy&&S&&S===v.exportingGroup&&(S.focusBorder?v.setFocusToElement(S,this.exportButtonProxy.buttonElement):P&&P.keyboardNavigation.tabindexContainer.focus())},b.prototype.proxyMenuButton=function(){var v=this.chart,S=this.proxyProvider,P=d(v);(function(E){var M=E.options.exporting,f=d(E);return!!(M&&M.enabled!==!1&&M.accessibility&&M.accessibility.enabled&&f&&f.element)})(v)&&P&&(this.exportButtonProxy=S.addProxyElement("chartMenu",{click:P},{"aria-label":v.langFormat("accessibility.exporting.menuButtonLabel",{chart:v,chartTitle:O(v)}),"aria-expanded":!1,title:v.options.lang.contextButtonTitle||null}))},b.prototype.createProxyGroup=function(){this.chart&&this.proxyProvider&&this.proxyProvider.addGroup("chartMenu","div")},b.prototype.addAccessibleContextMenuAttribs=function(){var v=this.chart,S=v.exportDivElements;if(S&&S.length){S.forEach(function(E){E&&(E.tagName!=="LI"||E.children&&E.children.length?E.setAttribute("aria-hidden","true"):E.setAttribute("tabindex",-1))});var P=S[0]&&S[0].parentNode;P&&D(P,{"aria-hidden":void 0,"aria-label":v.langFormat("accessibility.exporting.chartMenuLabel",{chart:v}),role:"list"})}},b.prototype.getKeyboardNavigation=function(){var v=this.keyCodes,S=this.chart,P=this;return new V(S,{keyCodeMap:[[[v.left,v.up],function(){return P.onKbdPrevious(this)}],[[v.right,v.down],function(){return P.onKbdNext(this)}],[[v.enter,v.space],function(){return P.onKbdClick(this)}]],validate:function(){return!!S.exporting&&S.options.exporting.enabled!==!1&&S.options.exporting.accessibility.enabled!==!1},init:function(){var E=P.exportButtonProxy,M=P.chart.exportingGroup;E&&M&&S.setFocusToElement(M,E.buttonElement)},terminate:function(){S.hideExportMenu()}})},b.prototype.onKbdPrevious=function(v){for(var S=this.chart,P=S.options.accessibility,E=v.response,M=S.highlightedExportItemIx||0;M--;)if(S.highlightExportItem(M))return E.success;return P.keyboardNavigation.wrapAround?(S.highlightLastExportItem(),E.success):E.prev},b.prototype.onKbdNext=function(v){for(var S=this.chart,P=S.options.accessibility,E=v.response,M=(S.highlightedExportItemIx||0)+1;M<S.exportDivElements.length;++M)if(S.highlightExportItem(M))return E.success;return P.keyboardNavigation.wrapAround?(S.highlightExportItem(0),E.success):E.next},b.prototype.onKbdClick=function(v){var S=this.chart,P=S.exportDivElements[S.highlightedExportItemIx],E=d(S).element;return S.openMenu?this.fakeClickEvent(P):(this.fakeClickEvent(E),S.highlightExportItem(0)),v.response.success},b}(X);return function(g){var b=[];function v(){var M=d(this);if(M){var f=M.element;f.onclick&&f.onclick(T("click"))}}function S(){var M=this,f=M.exportDivElements;f&&M.exportContextMenu&&M.openMenu&&(f.forEach(function(x){x&&x.className==="highcharts-menu-item"&&x.onmouseout&&x.onmouseout(T("mouseout"))}),M.highlightedExportItemIx=0,M.exportContextMenu.hideMenu(),M.container.focus())}function P(M){var f=this.exportDivElements&&this.exportDivElements[M],x=this.exportDivElements&&this.exportDivElements[this.highlightedExportItemIx];if(f&&f.tagName==="LI"&&(!f.children||!f.children.length)){var l=!!(this.renderTo.getElementsByTagName("g")[0]||{}).focus;return f.focus&&l&&f.focus(),x&&x.onmouseout&&x.onmouseout(T("mouseout")),f.onmouseover&&f.onmouseover(T("mouseover")),this.highlightedExportItemIx=M,!0}return!1}function E(){var M=this;if(M.exportDivElements){for(var f=M.exportDivElements.length;f--;)if(M.highlightExportItem(f))return!0}return!1}g.compose=function(M){if(b.indexOf(M)===-1){b.push(M);var f=U.prototype;f.hideExportMenu=S,f.highlightExportItem=P,f.highlightLastExportItem=E,f.showExportMenu=v}}}(u||(u={})),u}),st(B,"Accessibility/KeyboardNavigation.js",[B["Core/Globals.js"],B["Accessibility/Components/MenuComponent.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(U,z,X,V,K){var J=U.doc,q=U.win,W=X.addEvent,D=X.fireEvent,O=K.getElement,w=K.simulatedEventTarget,T=function(){function d(u,g){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(u,g)}return d.prototype.init=function(u,g){var b=this,v=this.eventProvider=new V;this.chart=u,this.components=g,this.modules=[],this.currentModuleIx=0,this.update(),v.addEvent(this.tabindexContainer,"keydown",function(S){return b.onKeydown(S)}),v.addEvent(this.tabindexContainer,"focus",function(S){return b.onFocus(S)}),["mouseup","touchend"].forEach(function(S){return v.addEvent(J,S,function(P){return b.onMouseUp(P)})}),["mousedown","touchstart"].forEach(function(S){return v.addEvent(u.renderTo,S,function(){b.isClickingChart=!0})}),v.addEvent(u.renderTo,"mouseover",function(){b.pointerIsOverChart=!0}),v.addEvent(u.renderTo,"mouseout",function(){b.pointerIsOverChart=!1})},d.prototype.update=function(u){var g=this.chart.options.accessibility,b=g&&g.keyboardNavigation,v=this.components;this.updateContainerTabindex(),b&&b.enabled&&u&&u.length?(this.modules=u.reduce(function(S,P){var E=v[P].getKeyboardNavigation();return S.concat(E)},[]),this.updateExitAnchor()):(this.modules=[],this.currentModuleIx=0,this.removeExitAnchor())},d.prototype.updateExitAnchor=function(){var u="highcharts-end-of-chart-marker-".concat(this.chart.index),g=O(u);this.removeExitAnchor(),g?(this.makeElementAnExitAnchor(g),this.exitAnchor=g):this.createExitAnchor()},d.prototype.move=function(u){var g=this.modules&&this.modules[this.currentModuleIx];g&&g.terminate&&g.terminate(u),this.chart.focusElement&&this.chart.focusElement.removeFocusBorder(),this.currentModuleIx+=u;var b=this.modules&&this.modules[this.currentModuleIx];if(b){if(b.validate&&!b.validate())return this.move(u);if(b.init)return b.init(u),!0}return this.currentModuleIx=0,this.exiting=!0,u>0?this.exitAnchor&&this.exitAnchor.focus():this.tabindexContainer.focus(),!1},d.prototype.onFocus=function(u){var g=this.chart,b=u.relatedTarget&&g.container.contains(u.relatedTarget);if(!(this.exiting||this.tabbingInBackwards||this.isClickingChart||b)){var v=this.getFirstValidModuleIx();v!==null&&(this.currentModuleIx=v,this.modules[v].init(1))}this.exiting=!1},d.prototype.onMouseUp=function(u){if(delete this.isClickingChart,!this.keyboardReset&&u.relatedTarget!==w){var g=this.chart;if(!this.pointerIsOverChart){var b=this.modules&&this.modules[this.currentModuleIx||0];b&&b.terminate&&b.terminate(),this.currentModuleIx=0}g.focusElement&&(g.focusElement.removeFocusBorder(),delete g.focusElement),this.keyboardReset=!0}},d.prototype.onKeydown=function(u){var g,b=u||q.event,v=this.modules&&this.modules.length&&this.modules[this.currentModuleIx];if(this.keyboardReset=!1,this.exiting=!1,v){var S=v.run(b);S===v.response.success?g=!0:S===v.response.prev?g=this.move(-1):S===v.response.next&&(g=this.move(1)),g&&(b.preventDefault(),b.stopPropagation())}},d.prototype.updateContainerTabindex=function(){var u,g=this.chart.options.accessibility,b=g&&g.keyboardNavigation,v=!(b&&b.enabled===!1),S=this.chart,P=S.container;S.renderTo.hasAttribute("tabindex")?(P.removeAttribute("tabindex"),u=S.renderTo):u=P,this.tabindexContainer=u;var E=u.getAttribute("tabindex");v&&!E?u.setAttribute("tabindex","0"):v||S.container.removeAttribute("tabindex")},d.prototype.createExitAnchor=function(){var u=this.chart,g=this.exitAnchor=J.createElement("div");u.renderTo.appendChild(g),this.makeElementAnExitAnchor(g)},d.prototype.makeElementAnExitAnchor=function(u){var g=this.tabindexContainer.getAttribute("tabindex")||0;u.setAttribute("class","highcharts-exit-anchor"),u.setAttribute("tabindex",g),u.setAttribute("aria-hidden",!1),this.addExitAnchorEventsToEl(u)},d.prototype.removeExitAnchor=function(){this.exitAnchor&&this.exitAnchor.parentNode&&(this.exitAnchor.parentNode.removeChild(this.exitAnchor),delete this.exitAnchor)},d.prototype.addExitAnchorEventsToEl=function(u){var g=this.chart,b=this;this.eventProvider.addEvent(u,"focus",function(v){var S=v||q.event,P=!(S.relatedTarget&&g.container.contains(S.relatedTarget)||b.exiting);if(g.focusElement&&delete g.focusElement,P){if(b.tabbingInBackwards=!0,b.tabindexContainer.focus(),delete b.tabbingInBackwards,S.preventDefault(),b.modules&&b.modules.length){b.currentModuleIx=b.modules.length-1;var E=b.modules[b.currentModuleIx];E&&E.validate&&!E.validate()?b.move(-1):E&&E.init(-1)}}else b.exiting=!1})},d.prototype.getFirstValidModuleIx=function(){for(var u=this.modules.length,g=0;g<u;++g){var b=this.modules[g];if(!b.validate||b.validate())return g}return null},d.prototype.destroy=function(){this.removeExitAnchor(),this.eventProvider.removeAddedEvents(),this.chart.container.removeAttribute("tabindex")},d}();return function(d){var u=[];function g(){var v=this;D(this,"dismissPopupContent",{},function(){v.tooltip&&v.tooltip.hide(0),v.hideExportMenu()})}function b(v){(v.which||v.keyCode)===27&&U.charts&&U.charts.forEach(function(S){S&&S.dismissPopupContent&&S.dismissPopupContent()})}d.compose=function(v){return z.compose(v),u.indexOf(v)===-1&&(u.push(v),v.prototype.dismissPopupContent=g),u.indexOf(J)===-1&&(u.push(J),W(J,"keydown",b)),v}}(T||(T={})),T}),st(B,"Accessibility/Components/LegendComponent.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Globals.js"],B["Core/Legend/Legend.js"],B["Core/Utilities.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(U,z,X,V,K,J,q,W){var D,O=this&&this.__extends||(D=function(h,e){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)n.hasOwnProperty(i)&&(r[i]=n[i])},D(h,e)},function(h,e){function r(){this.constructor=h}D(h,e),h.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}),w=U.animObject,T=z.doc,d=V.addEvent,u=V.fireEvent,g=V.isNumber,b=V.pick,v=V.syncTimeout,S=q.getChartTitle,P=W.stripHTMLTagsFromString,E=W.addClass,M=W.removeClass;function f(h){var e=h.legend&&h.legend.allItems,r=h.options.legend.accessibility||{},n=h.colorAxis&&h.colorAxis.some(function(i){return!i.dataClasses||!i.dataClasses.length});return!(!e||!e.length||n||r.enabled===!1)}function x(h,e){var r=e.legendItem||{};e.setState(h?"hover":"",!0);for(var n=0,i=["group","label","symbol"];n<i.length;n++){var c=r[i[n]],a=c&&c.element||c;a&&u(a,h?"mouseover":"mouseout")}}var l=function(h){function e(){var r=h!==null&&h.apply(this,arguments)||this;return r.highlightedLegendItemIx=NaN,r.proxyGroup=null,r}return O(e,h),e.prototype.init=function(){var r=this;this.recreateProxies(),this.addEvent(X,"afterScroll",function(){this.chart===r.chart&&(r.proxyProvider.updateGroupProxyElementPositions("legend"),r.updateLegendItemProxyVisibility(),r.highlightedLegendItemIx>-1&&this.chart.highlightLegendItem(r.highlightedLegendItemIx))}),this.addEvent(X,"afterPositionItem",function(n){this.chart===r.chart&&this.chart.renderer&&r.updateProxyPositionForItem(n.item)}),this.addEvent(X,"afterRender",function(){this.chart===r.chart&&this.chart.renderer&&r.recreateProxies()&&v(function(){return r.proxyProvider.updateGroupProxyElementPositions("legend")},w(b(this.chart.renderer.globalAnimation,!0)).duration)})},e.prototype.updateLegendItemProxyVisibility=function(){var r,n=this.chart,i=n.legend,c=i.allItems||[],a=i.currentPage||1,s=i.clipHeight||0;c.forEach(function(y){if(y.a11yProxyElement){var A=i.pages&&i.pages.length,_=y.a11yProxyElement.element,p=!1;if(r=y.legendItem||{},A){var C=r.pageIx||0;p=(r.y||0)+(r.label?Math.round(r.label.getBBox().height):0)-i.pages[C]>s||C!==a-1}p?n.styledMode?E(_,"highcharts-a11y-invisible"):_.style.visibility="hidden":(M(_,"highcharts-a11y-invisible"),_.style.visibility="")}})},e.prototype.onChartRender=function(){f(this.chart)||this.removeProxies()},e.prototype.highlightAdjacentLegendPage=function(r){var n=this.chart,i=n.legend,c=(i.currentPage||1)+r,a=i.pages||[];if(c>0&&c<=a.length)for(var s=0,y=0,A=i.allItems;y<A.length;y++)((A[y].legendItem||{}).pageIx||0)+1===c&&n.highlightLegendItem(s)&&(this.highlightedLegendItemIx=s),++s},e.prototype.updateProxyPositionForItem=function(r){r.a11yProxyElement&&r.a11yProxyElement.refreshPosition()},e.prototype.recreateProxies=function(){var r=T.activeElement,n=this.proxyGroup,i=r&&n&&n.contains(r);return this.removeProxies(),!!f(this.chart)&&(this.addLegendProxyGroup(),this.proxyLegendItems(),this.updateLegendItemProxyVisibility(),this.updateLegendTitle(),i&&this.chart.highlightLegendItem(this.highlightedLegendItemIx),!0)},e.prototype.removeProxies=function(){this.proxyProvider.removeGroup("legend")},e.prototype.updateLegendTitle=function(){var r=this.chart,n=P((r.legend&&r.legend.options.title&&r.legend.options.title.text||"").replace(/<br ?\/?>/g," ")),i=r.langFormat("accessibility.legend.legendLabel"+(n?"":"NoTitle"),{chart:r,legendTitle:n,chartTitle:S(r)});this.proxyProvider.updateGroupAttrs("legend",{"aria-label":i})},e.prototype.addLegendProxyGroup=function(){var r=this.chart.options.accessibility.landmarkVerbosity==="all"?"region":null;this.proxyGroup=this.proxyProvider.addGroup("legend","ul",{"aria-label":"_placeholder_",role:r})},e.prototype.proxyLegendItems=function(){var r,n=this;((this.chart.legend||{}).allItems||[]).forEach(function(i){(r=i.legendItem||{}).label&&r.label.element&&n.proxyLegendItem(i)})},e.prototype.proxyLegendItem=function(r){var n=r.legendItem||{};if(n.label&&n.group){var i=this.chart.langFormat("accessibility.legend.legendItem",{chart:this.chart,itemName:P(r.name),item:r}),c={tabindex:-1,"aria-pressed":r.visible,"aria-label":i},a=n.group.div?n.label:n.group;r.a11yProxyElement=this.proxyProvider.addProxyElement("legend",{click:n.label,visual:a.element},c)}},e.prototype.getKeyboardNavigation=function(){var r=this.keyCodes,n=this,i=this.chart;return new J(i,{keyCodeMap:[[[r.left,r.right,r.up,r.down],function(c){return n.onKbdArrowKey(this,c)}],[[r.enter,r.space],function(){return n.onKbdClick(this)}],[[r.pageDown,r.pageUp],function(c){var a=c===r.pageDown?1:-1;return n.highlightAdjacentLegendPage(a),this.response.success}]],validate:function(){return n.shouldHaveLegendNavigation()},init:function(){i.highlightLegendItem(0),n.highlightedLegendItemIx=0},terminate:function(){n.highlightedLegendItemIx=-1,i.legend.allItems.forEach(function(c){return x(!1,c)})}})},e.prototype.onKbdArrowKey=function(r,n){var i=this.keyCodes,c=r.response,a=this.chart,s=a.options.accessibility,y=a.legend.allItems.length,A=n===i.left||n===i.up?-1:1;return a.highlightLegendItem(this.highlightedLegendItemIx+A)?(this.highlightedLegendItemIx+=A,c.success):(y>1&&s.keyboardNavigation.wrapAround&&r.init(A),c.success)},e.prototype.onKbdClick=function(r){var n=this.chart.legend.allItems[this.highlightedLegendItemIx];return n&&n.a11yProxyElement&&n.a11yProxyElement.click(),r.response.success},e.prototype.shouldHaveLegendNavigation=function(){if(!f(this.chart))return!1;var r=this.chart,n=(r.options.legend||{}).accessibility||{};return!!(r.legend.display&&n.keyboardNavigation&&n.keyboardNavigation.enabled)},e}(K);return function(h){var e=[];function r(i){var c,a,s,y,A=this.legend.allItems,_=this.accessibility&&this.accessibility.components.legend.highlightedLegendItemIx,p=A[i],C=p.legendItem||{};if(p){g(_)&&A[_]&&x(!1,A[_]),a=i,s=((c=this.legend).allItems[a].legendItem||{}).pageIx,y=c.currentPage,s!==void 0&&s+1!==y&&c.scroll(1+s-y);var k=C.label,F=p.a11yProxyElement&&p.a11yProxyElement.buttonElement;return k&&k.element&&F&&this.setFocusToElement(k,F),x(!0,p),!0}return!1}function n(i){var c=this.chart.options.accessibility,a=i.item;c.enabled&&a&&a.a11yProxyElement&&a.a11yProxyElement.buttonElement.setAttribute("aria-pressed",i.visible?"true":"false")}h.compose=function(i,c){e.indexOf(i)===-1&&(e.push(i),i.prototype.highlightLegendItem=r),e.indexOf(c)===-1&&(e.push(c),d(c,"afterColorizeItem",n))}}(l||(l={})),l}),st(B,"Accessibility/Components/SeriesComponent/SeriesDescriber.js",[B["Accessibility/Components/AnnotationsA11y.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Core/FormatUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J=U.getPointAnnotationTexts,q=z.getAxisDescription,W=z.getSeriesFirstPointElement,D=z.getSeriesA11yElement,O=z.unhideChartElementFromAT,w=X.format,T=X.numberFormat,d=V.reverseChildNodes,u=V.stripHTMLTagsFromString,g=K.find,b=K.isNumber,v=K.pick,S=K.defined;function P(e){var r=e.chart.options.accessibility.series.pointDescriptionEnabledThreshold;return!!(r!==!1&&e.points&&e.points.length>=r)}function E(e,r){var n=e.series,i=n.chart,c=i.options.accessibility.point||{},a=n.options.accessibility&&n.options.accessibility.point||{},s=n.tooltipOptions||{},y=i.options.lang;return b(r)?T(r,a.valueDecimals||c.valueDecimals||s.valueDecimals||-1,y.decimalPoint,y.accessibility.thousandsSep||y.thousandsSep):r}function M(e,r){var n=e[r];return e.chart.langFormat("accessibility.series."+r+"Description",{name:q(n),series:e})}function f(e){var r=e.series,n=r.chart.options.accessibility.point||{},i=r.chart.options.accessibility&&r.chart.options.accessibility.point||{},c=r.tooltipOptions||{},a=i.valuePrefix||n.valuePrefix||c.valuePrefix||"",s=i.valueSuffix||n.valueSuffix||c.valueSuffix||"",y=E(e,e[e.value!==void 0?"value":"y"]);return e.isNull?r.chart.langFormat("accessibility.series.nullPointValue",{point:e}):r.pointArrayMap?function(A,_,p){var C=_||"",k=p||"";return A.series.pointArrayMap.reduce(function(F,G){return F+(F.length?", ":"")+function(I){var j=E(A,v(A[I],A.options[I]));return I+": "+C+j+k}(G)},"")}(e,a,s):a+y+s}function x(e){var r=e.series,n=r.chart.series.length>1||r.options.name,i=function(_){var p=_.series,C=p.chart,k=p.options.accessibility,F=k&&k.point&&k.point.valueDescriptionFormat||C.options.accessibility.point.valueDescriptionFormat,G=v(p.xAxis&&p.xAxis.options.accessibility&&p.xAxis.options.accessibility.enabled,!C.angular),I=G?function(N){var Z=function(rt){var it=rt.series,ht=it.chart,dt=it.options.accessibility&&it.options.accessibility.point||{},bt=ht.options.accessibility.point||{},xt=it.xAxis&&it.xAxis.dateTime;if(xt){var St=xt.getXDateFormat(rt.x||0,ht.options.tooltip.dateTimeLabelFormats),wt=dt.dateFormatter&&dt.dateFormatter(rt)||bt.dateFormatter&&bt.dateFormatter(rt)||dt.dateFormat||bt.dateFormat||St;return ht.time.dateFormat(wt,rt.x||0,void 0)}}(N),$=(N.series.xAxis||{}).categories&&S(N.category)&&(""+N.category).replace("<br/>"," "),Y=S(N.id)&&(""+N.id).indexOf("highcharts-")<0,et="x, "+N.x;return N.name||Z||$||(Y?N.id:et)}(_):"",j={point:_,index:S(_.index)?_.index+1:"",xDescription:I,value:f(_),separator:G?", ":""};return w(F,j,C)}(e),c=e.options&&e.options.accessibility&&e.options.accessibility.description,a=c?" "+c:"",s=n?" "+r.name+".":"",y=function(_){var p=_.series.chart,C=J(_),k={point:_,annotations:C};return C.length?p.langFormat("accessibility.series.pointAnnotationsDescription",k):""}(e),A=y?" "+y:"";return e.accessibility=e.accessibility||{},e.accessibility.valueDescription=i,i+a+s+A}function l(e){var r=function(c){var a=c.options.accessibility||{};return!P(c)&&!a.exposeAsGroupOnly}(e),n=function(c){var a=c.chart.options.accessibility.keyboardNavigation.seriesNavigation;return!(!c.points||!(c.points.length<a.pointNavigationEnabledThreshold||a.pointNavigationEnabledThreshold===!1))}(e),i=e.chart.options.accessibility.point.describeNull;(r||n)&&e.points.forEach(function(c){var a=c.graphic&&c.graphic.element||function(y){var A=y.series,_=A&&A.chart,p=A&&A.is("sunburst"),C=y.isNull,k=_&&_.options.accessibility.point.describeNull;return C&&!p&&k}(c)&&function(y){var A=y.series,_=function(F){var G=F.index;return F.series&&F.series.data&&S(G)&&g(F.series.data,function(I){return!!(I&&I.index!==void 0&&I.index>G&&I.graphic&&I.graphic.element)})||null}(y),p=_&&_.graphic,C=p?p.parentGroup:A.graph||A.group,k=function(F,G){var I=F.series.chart.renderer.rect(G.x,G.y,1,1);return I.attr({class:"highcharts-a11y-mock-point",fill:"none",opacity:0,"fill-opacity":0,"stroke-opacity":0}),I}(y,_?{x:v(y.plotX,_.plotX,0),y:v(y.plotY,_.plotY,0)}:{x:v(y.plotX,0),y:v(y.plotY,0)});if(C&&C.element)return y.graphic=k,y.hasMockGraphic=!0,k.add(C),C.element.insertBefore(k.element,p?p.element:null),k.element}(c),s=c.options&&c.options.accessibility&&c.options.accessibility.enabled===!1;if(a){if(c.isNull&&!i)return void a.setAttribute("aria-hidden",!0);a.setAttribute("tabindex","-1"),e.chart.styledMode||(a.style.outline="none"),r&&!s?function(y,A){var _=y.series,p=_.chart.options.accessibility.point||{},C=_.options.accessibility&&_.options.accessibility.point||{},k=u(C.descriptionFormatter&&C.descriptionFormatter(y)||p.descriptionFormatter&&p.descriptionFormatter(y)||x(y));A.setAttribute("role","img"),A.setAttribute("aria-label",k)}(c,a):a.setAttribute("aria-hidden",!0)}})}function h(e){var r=e.chart,n=r.types||[],i=function(F){var G=(F.options.accessibility||{}).description;return G&&F.chart.langFormat("accessibility.series.description",{description:G,series:F})||""}(e),c=function(F){return r[F]&&r[F].length>1&&e[F]},a=e.index+1,s=M(e,"xAxis"),y=M(e,"yAxis"),A={seriesNumber:a,series:e,chart:r},_=n.length>1?"Combination":"",p=r.langFormat("accessibility.series.summary."+e.type+_,A)||r.langFormat("accessibility.series.summary.default"+_,A),C=(c("yAxis")?" "+y+".":"")+(c("xAxis")?" "+s+".":""),k=r.options.accessibility.series.descriptionFormat||"";return w(k,{seriesDescription:p,authorDescription:i?" "+i:"",axisDescription:C,series:e,chart:r,seriesNumber:a},void 0)}return{defaultPointDescriptionFormatter:x,defaultSeriesDescriptionFormatter:h,describeSeries:function(e){var r=e.chart,n=W(e),i=D(e),c=r.is3d&&r.is3d();i&&(i.lastChild!==n||c||d(i),l(e),O(r,i),function(a){var s=a.chart,y=s.options.chart,A=y.options3d&&y.options3d.enabled,_=s.series.length>1,p=s.options.accessibility.series.describeSingleSeries,C=(a.options.accessibility||{}).exposeAsGroupOnly;return!(A&&_)&&(_||p||C||P(a))}(e)?function(a,s){var y=a.options.accessibility||{},A=a.chart.options.accessibility,_=A.landmarkVerbosity;y.exposeAsGroupOnly?s.setAttribute("role","img"):_==="all"?s.setAttribute("role","region"):s.setAttribute("role","group"),s.setAttribute("tabindex","-1"),a.chart.styledMode||(s.style.outline="none"),s.setAttribute("aria-label",u(A.series.descriptionFormatter&&A.series.descriptionFormatter(a)||h(a)))}(e,i):i.removeAttribute("aria-label"))}}}),st(B,"Accessibility/Components/SeriesComponent/NewDataAnnouncer.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(U,z,X,V,K,J){var q=z.addEvent,W=z.defined,D=V.getChartTitle,O=J.defaultPointDescriptionFormatter,w=J.defaultSeriesDescriptionFormatter;function T(u){return!!u.options.accessibility.announceNewData.enabled}var d=function(){function u(g){this.announcer=void 0,this.dirty={allSeries:{}},this.eventProvider=void 0,this.lastAnnouncementTime=0,this.chart=g}return u.prototype.init=function(){var g=this.chart,b=g.options.accessibility.announceNewData.interruptUser?"assertive":"polite";this.lastAnnouncementTime=0,this.dirty={allSeries:{}},this.eventProvider=new K,this.announcer=new X(g,b),this.addEventListeners()},u.prototype.destroy=function(){this.eventProvider.removeAddedEvents(),this.announcer.destroy()},u.prototype.addEventListeners=function(){var g=this,b=this.chart,v=this.eventProvider;v.addEvent(b,"afterApplyDrilldown",function(){g.lastAnnouncementTime=0}),v.addEvent(b,"afterAddSeries",function(S){g.onSeriesAdded(S.series)}),v.addEvent(b,"redraw",function(){g.announceDirtyData()})},u.prototype.onSeriesAdded=function(g){T(this.chart)&&(this.dirty.hasDirty=!0,this.dirty.allSeries[g.name+g.index]=g,this.dirty.newSeries=W(this.dirty.newSeries)?void 0:g)},u.prototype.announceDirtyData=function(){var g,b,v=this.chart,S=this;if(v.options.accessibility.announceNewData&&this.dirty.hasDirty){var P=this.dirty.newPoint;P&&(P=(b=(g=P).series.data.filter(function(E){return g.x===E.x&&g.y===E.y})).length===1?b[0]:g),this.queueAnnouncement(Object.keys(this.dirty.allSeries).map(function(E){return S.dirty.allSeries[E]}),this.dirty.newSeries,P),this.dirty={allSeries:{}}}},u.prototype.queueAnnouncement=function(g,b,v){var S,P,E,M=this,f=this.chart.options.accessibility.announceNewData;if(f.enabled){var x=+new Date,l=x-this.lastAnnouncementTime,h=Math.max(0,f.minAnnounceInterval-l),e=(S=this.queuedAnnouncement&&this.queuedAnnouncement.series,P=g,E=(S||[]).concat(P||[]).reduce(function(n,i){return n[i.name+i.index]=i,n},{}),Object.keys(E).map(function(n){return E[n]})),r=this.buildAnnouncementMessage(e,b,v);r&&(this.queuedAnnouncement&&clearTimeout(this.queuedAnnouncementTimer),this.queuedAnnouncement={time:x,message:r,series:e},this.queuedAnnouncementTimer=setTimeout(function(){M&&M.announcer&&(M.lastAnnouncementTime=+new Date,M.announcer.announce(M.queuedAnnouncement.message),delete M.queuedAnnouncement,delete M.queuedAnnouncementTimer)},h))}},u.prototype.buildAnnouncementMessage=function(g,b,v){var S=this.chart,P=S.options.accessibility.announceNewData;if(P.announcementFormatter){var E=P.announcementFormatter(g,b,v);if(E!==!1)return E.length?E:null}var M=U.charts&&U.charts.length>1?"Multiple":"Single",f=b?"newSeriesAnnounce"+M:v?"newPointAnnounce"+M:"newDataAnnounce",x=D(S);return S.langFormat("accessibility.announceNewData."+f,{chartTitle:x,seriesDesc:b?w(b):null,pointDesc:v?O(v):null,point:v,series:b})},u}();return function(u){function g(v){var S=this.chart,P=this.newDataAnnouncer;P&&P.chart===S&&T(S)&&(P.dirty.newPoint=W(P.dirty.newPoint)?void 0:v.point)}function b(){var v=this.chart,S=this.newDataAnnouncer;S&&S.chart===v&&T(v)&&(S.dirty.hasDirty=!0,S.dirty.allSeries[this.name+this.index]=this)}u.composedClasses=[],u.compose=function(v){u.composedClasses.indexOf(v)===-1&&(u.composedClasses.push(v),q(v,"addPoint",g),q(v,"updatedData",b))}}(d||(d={})),d}),st(B,"Accessibility/ProxyElement.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"]],function(U,z,X,V,K){var J=U.doc,q=z.attr,W=z.css,D=z.merge,O=V.fireEventOnWrappedOrUnwrappedElement,w=K.cloneMouseEvent,T=K.cloneTouchEvent,d=K.getFakeMouseEvent,u=K.removeElement;return function(){function g(b,v,S,P){this.chart=b,this.target=v,this.groupType=S;var E=S==="ul";this.eventProvider=new X;var M=E?J.createElement("li"):null,f=this.buttonElement=J.createElement("button");b.styledMode||this.hideButtonVisually(f),M?(E&&!b.styledMode&&(M.style.listStyle="none"),M.appendChild(f),this.element=M):this.element=f,this.updateTarget(v,P)}return g.prototype.click=function(){var b=this.getTargetPosition();b.x+=b.width/2,b.y+=b.height/2;var v=d("click",b);O(this.target.click,v)},g.prototype.updateTarget=function(b,v){this.target=b,this.updateCSSClassName();var S=v||{};Object.keys(S).forEach(function(P){S[P]===null&&delete S[P]}),q(this.buttonElement,D({"aria-label":this.getTargetAttr(b.click,"aria-label")},S)),this.eventProvider.removeAddedEvents(),this.addProxyEventsToButton(this.buttonElement,b.click),this.refreshPosition()},g.prototype.refreshPosition=function(){var b=this.getTargetPosition();W(this.buttonElement,{width:(b.width||1)+"px",height:(b.height||1)+"px",left:(Math.round(b.x)||0)+"px",top:(Math.round(b.y)||0)+"px"})},g.prototype.remove=function(){this.eventProvider.removeAddedEvents(),u(this.element)},g.prototype.updateCSSClassName=function(){var b=function(M){return M.indexOf("highcharts-no-tooltip")>-1},v=this.chart.legend,S=v.group&&v.group.div,P=b(S&&S.className||""),E=b(this.getTargetAttr(this.target.click,"class")||"");this.buttonElement.className=P||E?"highcharts-a11y-proxy-button highcharts-no-tooltip":"highcharts-a11y-proxy-button"},g.prototype.addProxyEventsToButton=function(b,v){var S=this;["click","touchstart","touchend","touchcancel","touchmove","mouseover","mouseenter","mouseleave","mouseout"].forEach(function(P){var E=P.indexOf("touch")===0;S.eventProvider.addEvent(b,P,function(M){var f=E?T(M):w(M);v&&O(v,f),M.stopPropagation(),E||M.preventDefault()},{passive:!1})})},g.prototype.hideButtonVisually=function(b){W(b,{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)"})},g.prototype.getTargetPosition=function(){var b=this.target.click,v=b.element?b.element:b,S=this.target.visual||v;if(this.chart.renderTo&&S&&S.getBoundingClientRect){var P=S.getBoundingClientRect(),E=this.chart.pointer.getChartPosition();return{x:(P.left-E.left)/E.scaleX,y:(P.top-E.top)/E.scaleY,width:P.right/E.scaleX-P.left/E.scaleX,height:P.bottom/E.scaleY-P.top/E.scaleY}}return{x:0,y:0,width:1,height:1}},g.prototype.getTargetAttr=function(b,v){return b.element?b.element.getAttribute(v):b.getAttribute(v)},g}()}),st(B,"Accessibility/ProxyProvider.js",[B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/DOMElementProvider.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/ProxyElement.js"]],function(U,z,X,V,K,J){var q=U.doc,W=z.attr,D=z.css,O=X.unhideChartElementFromAT,w=K.removeElement,T=K.removeChildNodes;return function(){function d(u){this.chart=u,this.domElementProvider=new V,this.groups={},this.groupOrder=[],this.beforeChartProxyPosContainer=this.createProxyPosContainer("before"),this.afterChartProxyPosContainer=this.createProxyPosContainer("after"),this.update()}return d.prototype.addProxyElement=function(u,g,b){var v=this.groups[u];if(!v)throw new Error("ProxyProvider.addProxyElement: Invalid group key "+u);var S=new J(this.chart,g,v.type,b);return v.proxyContainerElement.appendChild(S.element),v.proxyElements.push(S),S},d.prototype.addGroup=function(u,g,b){var v=this.groups[u];if(v)return v.groupElement;var S,P=this.domElementProvider.createElement(g);return b&&b.role&&g!=="div"?(S=this.domElementProvider.createElement("div")).appendChild(P):S=P,S.className="highcharts-a11y-proxy-group highcharts-a11y-proxy-group-"+u.replace(/\W/g,"-"),this.groups[u]={proxyContainerElement:P,groupElement:S,type:g,proxyElements:[]},W(S,b||{}),g==="ul"&&P.setAttribute("role","list"),this.afterChartProxyPosContainer.appendChild(S),this.updateGroupOrder(this.groupOrder),S},d.prototype.updateGroupAttrs=function(u,g){var b=this.groups[u];if(!b)throw new Error("ProxyProvider.updateGroupAttrs: Invalid group key "+u);W(b.groupElement,g)},d.prototype.updateGroupOrder=function(u){var g=this;if(this.groupOrder=u.slice(),!this.isDOMOrderGroupOrder()){var b=u.indexOf("series"),v=b>-1?u.slice(0,b):u,S=b>-1?u.slice(b+1):[],P=q.activeElement;["before","after"].forEach(function(E){var M=g[E==="before"?"beforeChartProxyPosContainer":"afterChartProxyPosContainer"],f=E==="before"?v:S;T(M),f.forEach(function(x){var l=g.groups[x];l&&M.appendChild(l.groupElement)})}),(this.beforeChartProxyPosContainer.contains(P)||this.afterChartProxyPosContainer.contains(P))&&P&&P.focus&&P.focus()}},d.prototype.clearGroup=function(u){var g=this.groups[u];if(!g)throw new Error("ProxyProvider.clearGroup: Invalid group key "+u);T(g.proxyContainerElement)},d.prototype.removeGroup=function(u){var g=this.groups[u];g&&(w(g.groupElement),delete this.groups[u])},d.prototype.update=function(){this.updatePosContainerPositions(),this.updateGroupOrder(this.groupOrder),this.updateProxyElementPositions()},d.prototype.updateProxyElementPositions=function(){Object.keys(this.groups).forEach(this.updateGroupProxyElementPositions.bind(this))},d.prototype.updateGroupProxyElementPositions=function(u){var g=this.groups[u];g&&g.proxyElements.forEach(function(b){return b.refreshPosition()})},d.prototype.destroy=function(){this.domElementProvider.destroyCreatedElements()},d.prototype.createProxyPosContainer=function(u){var g=this.domElementProvider.createElement("div");return g.setAttribute("aria-hidden","false"),g.className="highcharts-a11y-proxy-container"+(u?"-"+u:""),D(g,{top:"0",left:"0"}),this.chart.styledMode||(g.style.whiteSpace="nowrap",g.style.position="absolute"),g},d.prototype.getCurrentGroupOrderInDOM=function(){var u=this,g=function(P){for(var E=Object.keys(u.groups),M=E.length;M--;){var f=E[M],x=u.groups[f];if(x&&P===x.groupElement)return f}},b=function(P){for(var E=[],M=P.children,f=0;f<M.length;++f){var x=g(M[f]);x&&E.push(x)}return E},v=b(this.beforeChartProxyPosContainer),S=b(this.afterChartProxyPosContainer);return v.push("series"),v.concat(S)},d.prototype.isDOMOrderGroupOrder=function(){var u=this,g=this.getCurrentGroupOrderInDOM(),b=this.groupOrder.filter(function(S){return S==="series"||!!u.groups[S]}),v=g.length;if(v!==b.length)return!1;for(;v--;)if(g[v]!==b[v])return!1;return!0},d.prototype.updatePosContainerPositions=function(){var u=this.chart;if(!u.renderer.forExport){var g=u.renderer.box;u.container.insertBefore(this.afterChartProxyPosContainer,g.nextSibling),u.container.insertBefore(this.beforeChartProxyPosContainer,g),O(this.chart,this.afterChartProxyPosContainer),O(this.chart,this.beforeChartProxyPosContainer)}},d}()}),st(B,"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"}}}}),st(B,"Stock/RangeSelector/RangeSelectorComposition.js",[B["Core/Defaults.js"],B["Stock/RangeSelector/RangeSelectorDefaults.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=U.defaultOptions,J=U.setOptions,q=X.addEvent,W=X.defined,D=X.extend,O=X.find,w=X.isNumber,T=X.merge,d=X.pick,u=[],g=[];function b(){var l,h,e=this.range,r=e.type,n=this.max,i=this.chart.time,c=function(s,y){var A=r==="year"?"FullYear":"Month",_=new i.Date(s),p=i.get(A,_);return i.set(A,_,p+y),p===i.get(A,_)&&i.set("Date",_,0),_.getTime()-s};w(e)?(l=n-e,h=e):e&&(l=n+c(n,-(e.count||1)),this.chart&&(this.chart.fixedRange=n-l));var a=d(this.dataMin,Number.MIN_VALUE);return w(l)||(l=a),l<=a&&(l=a,h===void 0&&(h=c(l,e.count)),this.newMax=Math.min(l+h,d(this.dataMax,Number.MAX_VALUE))),w(n)?!w(e)&&e&&e._offsetMin&&(l+=e._offsetMin):l=void 0,l}function v(){this.options.rangeSelector&&this.options.rangeSelector.enabled&&(this.rangeSelector=new V(this))}function S(){var l=this,h=l.axes,e=l.rangeSelector;if(e){w(e.deferredYTDClick)&&(e.clickButton(e.deferredYTDClick),delete e.deferredYTDClick),h.forEach(function(n){n.updateNames(),n.setScale()}),l.getAxisMargins(),e.render();var r=e.options.verticalAlign;e.options.floating||(r==="bottom"?this.extraBottomMargin=!0:r!=="middle"&&(this.extraTopMargin=!0))}}function P(l){var h,e,r,n,i=l.rangeSelector,c=function(){i&&(h=l.xAxis[0].getExtremes(),e=l.legend,n=i&&i.options.verticalAlign,w(h.min)&&i.render(h.min,h.max),e.display&&n==="top"&&n===e.options.verticalAlign&&(r=T(l.spacingBox),e.options.layout==="vertical"?r.y=l.plotTop:r.y+=i.getHeight(),e.group.placed=!1,e.align(r)))};i&&(O(u,function(a){return a[0]===l})||u.push([l,[q(l.xAxis[0],"afterSetExtremes",function(a){i&&i.render(a.min,a.max)}),q(l,"redraw",c)]]),c())}function E(){for(var l=0,h=u.length;l<h;++l){var e=u[l];if(e[0]===this)return e[1].forEach(function(r){return r()}),void u.splice(l,1)}}function M(){var l=this.rangeSelector;if(l){var h=l.getHeight();this.extraTopMargin&&(this.plotTop+=h),this.extraBottomMargin&&(this.marginBottom+=h)}}function f(){var l=this.rangeSelector;if(l&&!l.options.floating){l.render();var h=l.options.verticalAlign;h==="bottom"?this.extraBottomMargin=!0:h!=="middle"&&(this.extraTopMargin=!0)}}function x(l){var h=l.options.rangeSelector,e=this.extraBottomMargin,r=this.extraTopMargin,n=this.rangeSelector;if(h&&h.enabled&&!W(n)&&this.options.rangeSelector&&(this.options.rangeSelector.enabled=!0,this.rangeSelector=n=new V(this)),this.extraBottomMargin=!1,this.extraTopMargin=!1,n){P(this);var i=h&&h.verticalAlign||n.options&&n.options.verticalAlign;n.options.floating||(i==="bottom"?this.extraBottomMargin=!0:i!=="middle"&&(this.extraTopMargin=!0)),this.extraBottomMargin===e&&this.extraTopMargin===r||(this.isDirtyBox=!0)}}return{compose:function(l,h,e){V=e,g.indexOf(l)===-1&&(g.push(l),l.prototype.minFromRange=b),g.indexOf(h)===-1&&(g.push(h),q(h,"afterGetContainer",v),q(h,"beforeRender",S),q(h,"destroy",E),q(h,"getMargins",M),q(h,"render",f),q(h,"update",x),h.prototype.callbacks.push(P)),g.indexOf(J)===-1&&(D(K,{rangeSelector:z.rangeSelector}),D(K.lang,z.lang))}}}),st(B,"Stock/RangeSelector/RangeSelector.js",[B["Core/Axis/Axis.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Stock/RangeSelector/RangeSelectorComposition.js"],B["Core/Renderer/SVG/SVGElement.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q=z.defaultOptions,W=J.addEvent,D=J.createElement,O=J.css,w=J.defined,T=J.destroyObjectProperties,d=J.discardElement,u=J.extend,g=J.fireEvent,b=J.isNumber,v=J.merge,S=J.objectEach,P=J.pad,E=J.pick,M=J.pInt,f=J.splat,x=function(){function l(h){this.buttons=void 0,this.buttonOptions=l.prototype.defaultButtons,this.initialButtonGroupWidth=0,this.options=void 0,this.chart=h,this.init(h)}return l.compose=function(h,e){V.compose(h,e,l)},l.prototype.clickButton=function(h,e){var r,n,i,c,a,s,y,A=this,_=A.chart,p=A.buttonOptions[h],C=_.xAxis[0],k=_.scroller&&_.scroller.getUnionExtremes()||C||{},F=p.type,G=p.dataGrouping,I=k.dataMin,j=k.dataMax,N=C&&Math.round(Math.min(C.max,E(j,C.max))),Z=p._range,$=!0;if(I!==null&&j!==null){if(_.fixedRange=Z,A.setSelected(h),G&&(this.forcedDataGrouping=!0,U.prototype.setDataGrouping.call(C||{chart:this.chart},G,!1),this.frozenStates=p.preserveDataGrouping),F==="month"||F==="year")C?(s={range:p,max:N,chart:_,dataMin:I,dataMax:j},r=C.minFromRange.call(s),b(s.newMax)&&(N=s.newMax),$=!1):Z=p;else if(Z)r=Math.max(N-Z,I),N=Math.min(r+Z,j),$=!1;else if(F==="ytd"){if(!C)return void(A.deferredYTDClick=h);j!==void 0&&I!==void 0||(I=Number.MAX_VALUE,j=Number.MIN_VALUE,_.series.forEach(function(Y){var et=Y.xData;et&&(I=Math.min(et[0],I),j=Math.max(et[et.length-1],j))}),e=!1),r=i=(y=A.getYTDExtremes(j,I,_.time.useUTC)).min,N=y.max}else F==="all"&&C&&(_.navigator&&_.navigator.baseSeries[0]&&(_.navigator.baseSeries[0].xAxis.options.range=void 0),r=I,N=j);$&&p._offsetMin&&w(r)&&(r+=p._offsetMin),p._offsetMax&&w(N)&&(N+=p._offsetMax),this.dropdown&&(this.dropdown.selectedIndex=h+1),C?C.setExtremes(r,N,E(e,!0),void 0,{trigger:"rangeSelectorButton",rangeSelectorButton:p}):(n=f(_.options.xAxis)[0],a=n.range,n.range=Z,c=n.min,n.min=i,W(_,"load",function(){n.range=a,n.min=c})),g(this,"afterBtnClick")}},l.prototype.setSelected=function(h){this.selected=this.options.selected=h},l.prototype.init=function(h){var e=this,r=h.options.rangeSelector,n=r.buttons||e.defaultButtons.slice(),i=r.selected,c=function(){var a=e.minInput,s=e.maxInput;a&&a.blur&&g(a,"blur"),s&&s.blur&&g(s,"blur")};e.chart=h,e.options=r,e.buttons=[],e.buttonOptions=n,this.eventsToUnbind=[],this.eventsToUnbind.push(W(h.container,"mousedown",c)),this.eventsToUnbind.push(W(h,"resize",c)),n.forEach(e.computeButtonRange),i!==void 0&&n[i]&&this.clickButton(i,!1),this.eventsToUnbind.push(W(h,"load",function(){h.xAxis&&h.xAxis[0]&&W(h.xAxis[0],"setExtremes",function(a){this.max-this.min!==h.fixedRange&&a.trigger!=="rangeSelectorButton"&&a.trigger!=="updatedData"&&e.forcedDataGrouping&&!e.frozenStates&&this.setDataGrouping(!1,!1)})}))},l.prototype.updateButtonStates=function(){var h=this,e=this.chart,r=this.dropdown,n=e.xAxis[0],i=Math.round(n.max-n.min),c=!n.hasVisibleSeries,a=864e5,s=e.scroller&&e.scroller.getUnionExtremes()||n,y=s.dataMin,A=s.dataMax,_=h.getYTDExtremes(A,y,e.time.useUTC),p=_.min,C=_.max,k=h.selected,F=h.options.allButtonsEnabled,G=h.buttons,I=b(k);h.buttonOptions.forEach(function(j,N){var Z=j._range,$=j.type,Y=j.count||1,et=G[N],rt=j._offsetMax-j._offsetMin,it=N===k,ht=Z>A-y,dt=Z<n.minRange,bt=0,xt=!1,St=!1,wt=Z===i;($==="month"||$==="year")&&i+36e5>={month:28,year:365}[$]*a*Y-rt&&i-36e5<={month:31,year:366}[$]*a*Y+rt?wt=!0:$==="ytd"?(wt=C-p+rt===i,xt=!it):$==="all"&&(wt=n.max-n.min>=A-y,St=!it&&I&&wt);var mt=!F&&(ht||dt||St||c),at=it&&wt||wt&&!I&&!xt||it&&h.frozenStates;mt?bt=3:at&&(I=!0,bt=2),et.state!==bt&&(et.setState(bt),r&&(r.options[N+1].disabled=mt,bt===2&&(r.selectedIndex=N+1)),bt===0&&k===N&&h.setSelected())})},l.prototype.computeButtonRange=function(h){var e=h.type,r=h.count||1,n={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};n[e]?h._range=n[e]*r:e!=="month"&&e!=="year"||(h._range=24*{month:30,year:365}[e]*36e5*r),h._offsetMin=E(h.offsetMin,0),h._offsetMax=E(h.offsetMax,0),h._range+=h._offsetMax-h._offsetMin},l.prototype.getInputValue=function(h){var e=h==="min"?this.minInput:this.maxInput,r=this.chart.options.rangeSelector,n=this.chart.time;return e?(e.type==="text"&&r.inputDateParser||this.defaultInputDateParser)(e.value,n.useUTC,n):0},l.prototype.setInputValue=function(h,e){var r=this.options,n=this.chart.time,i=h==="min"?this.minInput:this.maxInput,c=h==="min"?this.minDateBox:this.maxDateBox;if(i){var a=i.getAttribute("data-hc-time"),s=w(a)?Number(a):void 0;if(w(e)){var y=s;w(y)&&i.setAttribute("data-hc-time-previous",y),i.setAttribute("data-hc-time",e),s=e}i.value=n.dateFormat(this.inputTypeFormats[i.type]||r.inputEditDateFormat,s),c&&c.attr({text:n.dateFormat(r.inputDateFormat,s)})}},l.prototype.setInputExtremes=function(h,e,r){var n=h==="min"?this.minInput:this.maxInput;if(n){var i=this.inputTypeFormats[n.type],c=this.chart.time;if(i){var a=c.dateFormat(i,e);n.min!==a&&(n.min=a);var s=c.dateFormat(i,r);n.max!==s&&(n.max=s)}}},l.prototype.showInput=function(h){var e=h==="min"?this.minDateBox:this.maxDateBox,r=h==="min"?this.minInput:this.maxInput;if(r&&e&&this.inputGroup){var n=r.type==="text",i=this.inputGroup,c=i.translateX,a=i.translateY,s=this.options.inputBoxWidth;O(r,{width:n?e.width+(s?-2:20)+"px":"auto",height:n?e.height-2+"px":"auto",border:"2px solid silver"}),O(r,n&&s?{left:c+e.x+"px",top:a+"px"}:{left:Math.min(Math.round(e.x+c-(r.offsetWidth-e.width)/2),this.chart.chartWidth-r.offsetWidth)+"px",top:a-(r.offsetHeight-e.height)/2+"px"})}},l.prototype.hideInput=function(h){var e=h==="min"?this.minInput:this.maxInput;e&&O(e,{top:"-9999em",border:0,width:"1px",height:"1px"})},l.prototype.defaultInputDateParser=function(h,e,r){var n,i=h.split("/").join("-").split(" ").join("T");if(i.indexOf("T")===-1&&(i+="T00:00"),e)i+="Z";else if(X.isSafari&&(!((n=i).length>6)||n.lastIndexOf("-")!==n.length-6&&n.lastIndexOf("+")!==n.length-6)){var c=new Date(i).getTimezoneOffset()/60;i+=c<=0?"+".concat(P(-c),":00"):"-".concat(P(c),":00")}var a=Date.parse(i);if(!b(a)){var s=h.split("-");a=Date.UTC(M(s[0]),M(s[1])-1,M(s[2]))}return r&&e&&b(a)&&(a+=r.getTimezoneOffset(a)),a},l.prototype.drawInput=function(h){var e=this,r=e.chart,n=e.div,i=e.inputGroup,c=this,a=r.renderer.style||{},s=r.renderer,y=r.options.rangeSelector,A=q.lang,_=h==="min";function p(){var j=c.maxInput,N=c.minInput,Z=r.xAxis[0],$=r.scroller&&r.scroller.xAxis?r.scroller.xAxis:Z,Y=$.dataMin,et=$.dataMax,rt=c.getInputValue(h);rt!==Number(G.getAttribute("data-hc-time-previous"))&&b(rt)&&(G.setAttribute("data-hc-time-previous",rt),_&&j&&b(Y)?rt>Number(j.getAttribute("data-hc-time"))?rt=void 0:rt<Y&&(rt=Y):N&&b(et)&&(rt<Number(N.getAttribute("data-hc-time"))?rt=void 0:rt>et&&(rt=et)),rt!==void 0&&Z.setExtremes(_?rt:Z.min,_?Z.max:rt,void 0,void 0,{trigger:"rangeSelectorInput"}))}var C=A[_?"rangeSelectorFrom":"rangeSelectorTo"]||"",k=s.label(C,0).addClass("highcharts-range-label").attr({padding:C?2:0,height:C?y.inputBoxHeight:0}).add(i),F=s.label("",0).addClass("highcharts-range-input").attr({padding:2,width:y.inputBoxWidth,height:y.inputBoxHeight,"text-align":"center"}).on("click",function(){c.showInput(h),c[h+"Input"].focus()});r.styledMode||F.attr({stroke:y.inputBoxBorderColor,"stroke-width":1}),F.add(i);var G=D("input",{name:h,className:"highcharts-range-selector"},void 0,n);G.setAttribute("type",function(j){if(j.indexOf("%L")!==-1)return"text";var N=["a","A","d","e","w","b","B","m","o","y","Y"].some(function($){return j.indexOf("%"+$)!==-1}),Z=["H","k","I","l","M","S"].some(function($){return j.indexOf("%"+$)!==-1});return N&&Z?"datetime-local":N?"date":Z?"time":"text"}(y.inputDateFormat||"%b %e, %Y")),r.styledMode||(k.css(v(a,y.labelStyle)),F.css(v({color:"#333333"},a,y.inputStyle)),O(G,u({position:"absolute",border:0,boxShadow:"0 0 15px rgba(0,0,0,0.3)",width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:a.fontSize,fontFamily:a.fontFamily,top:"-9999em"},y.inputStyle))),G.onfocus=function(){c.showInput(h)},G.onblur=function(){G===X.doc.activeElement&&p(),c.hideInput(h),c.setInputValue(h),G.blur()};var I=!1;return G.onchange=function(){I||(p(),c.hideInput(h),G.blur())},G.onkeypress=function(j){j.keyCode===13&&p()},G.onkeydown=function(j){I=!0,j.keyCode!==38&&j.keyCode!==40||p()},G.onkeyup=function(){I=!1},{dateBox:F,input:G,label:k}},l.prototype.getPosition=function(){var h=this.chart,e=h.options.rangeSelector,r=e.verticalAlign==="top"?h.plotTop-h.axisOffset[0]:0;return{buttonTop:r+e.buttonPosition.y,inputTop:r+e.inputPosition.y-10}},l.prototype.getYTDExtremes=function(h,e,r){var n=this.chart.time,i=new n.Date(h),c=n.get("FullYear",i),a=r?n.Date.UTC(c,0,1):+new n.Date(c,0,1),s=Math.max(e,a),y=i.getTime();return{max:Math.min(h||y,y),min:s}},l.prototype.render=function(h,e){var r=this.chart,n=r.renderer,i=r.container,c=r.options,a=c.rangeSelector,s=E(c.chart.style&&c.chart.style.zIndex,0)+1,y=a.inputEnabled,A=this.rendered;if(a.enabled!==!1){if(!A&&(this.group=n.g("range-selector-group").attr({zIndex:7}).add(),this.div=D("div",void 0,{position:"relative",height:0,zIndex:s}),this.buttonOptions.length&&this.renderButtons(),i.parentNode&&i.parentNode.insertBefore(this.div,i),y)){this.inputGroup=n.g("input-group").add(this.group);var _=this.drawInput("min");this.minDateBox=_.dateBox,this.minLabel=_.label,this.minInput=_.input;var p=this.drawInput("max");this.maxDateBox=p.dateBox,this.maxLabel=p.label,this.maxInput=p.input}if(y){this.setInputValue("min",h),this.setInputValue("max",e);var C=r.scroller&&r.scroller.getUnionExtremes()||r.xAxis[0]||{};if(w(C.dataMin)&&w(C.dataMax)){var k=r.xAxis[0].minRange||0;this.setInputExtremes("min",C.dataMin,Math.min(C.dataMax,this.getInputValue("max"))-k),this.setInputExtremes("max",Math.max(C.dataMin,this.getInputValue("min"))+k,C.dataMax)}if(this.inputGroup){var F=0;[this.minLabel,this.minDateBox,this.maxLabel,this.maxDateBox].forEach(function(G){if(G){var I=G.getBBox().width;I&&(G.attr({x:F}),F+=I+a.inputSpacing)}})}}this.alignElements(),this.rendered=!0}},l.prototype.renderButtons=function(){var h=this,e=this,r=e.buttons,n=e.chart,i=e.options,c=q.lang,a=n.renderer,s=v(i.buttonTheme),y=s&&s.states,A=s.width||28;delete s.width,delete s.states,this.buttonGroup=a.g("range-selector-buttons").add(this.group);var _=this.dropdown=D("select",void 0,{position:"absolute",width:"1px",height:"1px",padding:0,border:0,top:"-9999em",cursor:"pointer",opacity:1e-4},this.div);W(_,"touchstart",function(){_.style.fontSize="16px"}),[[X.isMS?"mouseover":"mouseenter"],[X.isMS?"mouseout":"mouseleave"],["change","click"]].forEach(function(p){var C=p[0],k=p[1];W(_,C,function(){var F=r[h.currentButtonIndex()];F&&g(F.element,k||C)})}),this.zoomText=a.label(c&&c.rangeSelectorZoom||"",0).attr({padding:i.buttonTheme.padding,height:i.buttonTheme.height,paddingLeft:0,paddingRight:0}).add(this.buttonGroup),this.chart.styledMode||(this.zoomText.css(i.labelStyle),s["stroke-width"]=E(s["stroke-width"],0)),D("option",{textContent:this.zoomText.textStr,disabled:!0},void 0,_),this.buttonOptions.forEach(function(p,C){D("option",{textContent:p.title||p.text},void 0,_),r[C]=a.button(p.text,0,0,function(k){var F,G=p.events&&p.events.click;G&&(F=G.call(p,k)),F!==!1&&h.clickButton(C),h.isActive=!0},s,y&&y.hover,y&&y.select,y&&y.disabled).attr({"text-align":"center",width:A}).add(h.buttonGroup),p.title&&r[C].attr("title",p.title)})},l.prototype.alignElements=function(){var h=this,e=this,r=e.buttonGroup,n=e.buttons,i=e.chart,c=e.group,a=e.inputGroup,s=e.options,y=e.zoomText,A=i.options,_=A.exporting&&A.exporting.enabled!==!1&&A.navigation&&A.navigation.buttonOptions,p=s.buttonPosition,C=s.inputPosition,k=s.verticalAlign,F=function(xt,St){return _&&h.titleCollision(i)&&k==="top"&&St.align==="right"&&St.y-xt.getBBox().height-12<(_.y||0)+(_.height||0)+i.spacing[0]?-40:0},G=i.plotLeft;if(c&&p&&C){var I=p.x-i.spacing[3];if(r){if(this.positionButtons(),!this.initialButtonGroupWidth){var j=0;y&&(j+=y.getBBox().width+5),n.forEach(function(xt,St){j+=xt.width,St!==n.length-1&&(j+=s.buttonSpacing)}),this.initialButtonGroupWidth=j}G-=i.spacing[3],this.updateButtonStates();var N=F(r,p);this.alignButtonGroup(N),c.placed=r.placed=i.hasLoaded}var Z=0;a&&(Z=F(a,C),C.align==="left"?I=G:C.align==="right"&&(I=-Math.max(i.axisOffset[1],-Z)),a.align({y:C.y,width:a.getBBox().width,align:C.align,x:C.x+I-2},!0,i.spacingBox),a.placed=i.hasLoaded),this.handleCollision(Z),c.align({verticalAlign:k},!0,i.spacingBox);var $=c.alignAttr.translateY,Y=c.getBBox().height+20,et=0;if(k==="bottom"){var rt=i.legend&&i.legend.options;et=$-(Y=Y+(rt&&rt.verticalAlign==="bottom"&&rt.enabled&&!rt.floating?i.legend.legendHeight+E(rt.margin,10):0)-20)-(s.floating?0:s.y)-(i.titleOffset?i.titleOffset[2]:0)-10}k==="top"?(s.floating&&(et=0),i.titleOffset&&i.titleOffset[0]&&(et=i.titleOffset[0]),et+=i.margin[0]-i.spacing[0]||0):k==="middle"&&(C.y===p.y?et=$:(C.y||p.y)&&(C.y<0||p.y<0?et-=Math.min(C.y,p.y):et=$-Y)),c.translate(s.x,s.y+Math.floor(et));var it=this,ht=it.minInput,dt=it.maxInput,bt=it.dropdown;s.inputEnabled&&ht&&dt&&(ht.style.marginTop=c.translateY+"px",dt.style.marginTop=c.translateY+"px"),bt&&(bt.style.marginTop=c.translateY+"px")}},l.prototype.alignButtonGroup=function(h,e){var r=this,n=r.chart,i=r.options,c=r.buttonGroup,a=i.buttonPosition,s=n.plotLeft-n.spacing[3],y=a.x-n.spacing[3];a.align==="right"?y+=h-s:a.align==="center"&&(y-=s/2),c&&c.align({y:a.y,width:E(e,this.initialButtonGroupWidth),align:a.align,x:y},!0,n.spacingBox)},l.prototype.positionButtons=function(){var h=this,e=h.buttons,r=h.chart,n=h.options,i=h.zoomText,c=r.hasLoaded?"animate":"attr",a=n.buttonPosition,s=r.plotLeft,y=s;i&&i.visibility!=="hidden"&&(i[c]({x:E(s+a.x,s)}),y+=a.x+i.getBBox().width+5);for(var A=0,_=this.buttonOptions.length;A<_;++A)e[A].visibility!=="hidden"?(e[A][c]({x:y}),y+=e[A].width+n.buttonSpacing):e[A][c]({x:s})},l.prototype.handleCollision=function(h){var e=this,r=this,n=r.chart,i=r.buttonGroup,c=r.inputGroup,a=this.options,s=a.buttonPosition,y=a.dropdown,A=a.inputPosition,_=function(){var k=0;return e.buttons.forEach(function(F){var G=F.getBBox();G.width>k&&(k=G.width)}),k},p=function(k){if(c&&i){var F=c.alignAttr.translateX+c.alignOptions.x-h+c.getBBox().x+2,G=c.alignOptions.width,I=i.alignAttr.translateX+i.getBBox().x;return I+k>F&&F+G>I&&s.y<A.y+c.getBBox().height}return!1},C=function(){c&&i&&c.attr({translateX:c.alignAttr.translateX+(n.axisOffset[1]>=-h?0:-h),translateY:c.alignAttr.translateY+i.getBBox().height+10})};if(i){if(y==="always")return this.collapseButtons(h),void(p(_())&&C());y==="never"&&this.expandButtons()}c&&i?A.align===s.align||p(this.initialButtonGroupWidth+20)?y==="responsive"?(this.collapseButtons(h),p(_())&&C()):C():y==="responsive"&&this.expandButtons():i&&y==="responsive"&&(this.initialButtonGroupWidth>n.plotWidth?this.collapseButtons(h):this.expandButtons())},l.prototype.collapseButtons=function(h){var e=this,r=e.buttons,n=e.buttonOptions,i=e.chart,c=e.dropdown,a=e.options,s=e.zoomText,y=i.userOptions.rangeSelector&&i.userOptions.rangeSelector.buttonTheme||{},A=function(C){return{text:C?C+" ▾":"▾",width:"auto",paddingLeft:E(a.buttonTheme.paddingLeft,y.padding,8),paddingRight:E(a.buttonTheme.paddingRight,y.padding,8)}};s&&s.hide();var _=!1;n.forEach(function(C,k){var F=r[k];F.state!==2?F.hide():(F.show(),F.attr(A(C.text)),_=!0)}),_||(c&&(c.selectedIndex=0),r[0].show(),r[0].attr(A(this.zoomText&&this.zoomText.textStr)));var p=a.buttonPosition.align;this.positionButtons(),p!=="right"&&p!=="center"||this.alignButtonGroup(h,r[this.currentButtonIndex()].getBBox().width),this.showDropdown()},l.prototype.expandButtons=function(){var h=this,e=h.buttons,r=h.buttonOptions,n=h.options,i=h.zoomText;this.hideDropdown(),i&&i.show(),r.forEach(function(c,a){var s=e[a];s.show(),s.attr({text:c.text,width:n.buttonTheme.width||28,paddingLeft:E(n.buttonTheme.paddingLeft,"unset"),paddingRight:E(n.buttonTheme.paddingRight,"unset")}),s.state<2&&s.setState(0)}),this.positionButtons()},l.prototype.currentButtonIndex=function(){var h=this.dropdown;return h&&h.selectedIndex>0?h.selectedIndex-1:0},l.prototype.showDropdown=function(){var h=this,e=h.buttonGroup,r=h.buttons,n=h.chart,i=h.dropdown;if(e&&i){var c=e.translateX,a=e.translateY,s=r[this.currentButtonIndex()].getBBox();O(i,{left:n.plotLeft+c+"px",top:a+.5+"px",width:s.width+"px",height:s.height+"px"}),this.hasVisibleDropdown=!0}},l.prototype.hideDropdown=function(){var h=this.dropdown;h&&(O(h,{top:"-9999em",width:"1px",height:"1px"}),this.hasVisibleDropdown=!1)},l.prototype.getHeight=function(){var h=this.options,e=this.group,r=h.inputPosition,n=h.buttonPosition,i=h.y,c=n.y,a=r.y,s=0;if(h.height)return h.height;this.alignElements(),s=e?e.getBBox(!0).height+13+i:0;var y=Math.min(a,c);return(a<0&&c<0||a>0&&c>0)&&(s+=Math.abs(y)),s},l.prototype.titleCollision=function(h){return!(h.options.title.text||h.options.subtitle.text)},l.prototype.update=function(h){var e=this.chart;v(!0,e.options.rangeSelector,h),this.destroy(),this.init(e),this.render()},l.prototype.destroy=function(){var h=this,e=h.minInput,r=h.maxInput;h.eventsToUnbind&&(h.eventsToUnbind.forEach(function(n){return n()}),h.eventsToUnbind=void 0),T(h.buttons),e&&(e.onfocus=e.onblur=e.onchange=null),r&&(r.onfocus=r.onblur=r.onchange=null),S(h,function(n,i){n&&i!=="chart"&&(n instanceof K?n.destroy():n instanceof window.HTMLElement&&d(n)),n!==l.prototype[i]&&(h[i]=null)},this)},l}();return u(x.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"}}),x}),st(B,"Accessibility/Components/RangeSelectorComponent.js",[B["Stock/RangeSelector/RangeSelector.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/Announcer.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q,W=this&&this.__extends||(q=function(u,g){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var S in v)v.hasOwnProperty(S)&&(b[S]=v[S])},q(u,g)},function(u,g){function b(){this.constructor=u}q(u,g),u.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}),D=X.unhideChartElementFromAT,O=X.getAxisRangeDescription,w=J.addEvent,T=J.attr,d=function(u){function g(){var b=u!==null&&u.apply(this,arguments)||this;return b.announcer=void 0,b}return W(g,u),g.prototype.init=function(){var b=this.chart;this.announcer=new V(b,"polite")},g.prototype.onChartUpdate=function(){var b=this.chart,v=this,S=b.rangeSelector;S&&(this.updateSelectorVisibility(),this.setDropdownAttrs(),S.buttons&&S.buttons.length&&S.buttons.forEach(function(P){v.setRangeButtonAttrs(P)}),S.maxInput&&S.minInput&&["minInput","maxInput"].forEach(function(P,E){var M=S[P];M&&(D(b,M),v.setRangeInputAttrs(M,"accessibility.rangeSelector."+(E?"max":"min")+"InputLabel"))}))},g.prototype.updateSelectorVisibility=function(){var b=this.chart,v=b.rangeSelector,S=v&&v.dropdown,P=v&&v.buttons||[],E=function(M){return M.setAttribute("aria-hidden",!0)};v&&v.hasVisibleDropdown&&S?(D(b,S),P.forEach(function(M){return E(M.element)})):(S&&E(S),P.forEach(function(M){return D(b,M.element)}))},g.prototype.setDropdownAttrs=function(){var b=this.chart,v=b.rangeSelector&&b.rangeSelector.dropdown;if(v){var S=b.langFormat("accessibility.rangeSelector.dropdownLabel",{rangeTitle:b.options.lang.rangeSelectorZoom});v.setAttribute("aria-label",S),v.setAttribute("tabindex",-1)}},g.prototype.setRangeButtonAttrs=function(b){T(b.element,{tabindex:-1,role:"button"})},g.prototype.setRangeInputAttrs=function(b,v){var S=this.chart;T(b,{tabindex:-1,"aria-label":S.langFormat(v,{chart:S})})},g.prototype.onButtonNavKbdArrowKey=function(b,v){var S=b.response,P=this.keyCodes,E=this.chart,M=E.options.accessibility.keyboardNavigation.wrapAround,f=v===P.left||v===P.up?-1:1;return E.highlightRangeSelectorButton(E.highlightedRangeSelectorItemIx+f)?S.success:M?(b.init(f),S.success):S[f>0?"next":"prev"]},g.prototype.onButtonNavKbdClick=function(b){var v=b.response,S=this.chart;return S.oldRangeSelectorItemState===3||this.fakeClickEvent(S.rangeSelector.buttons[S.highlightedRangeSelectorItemIx].element),v.success},g.prototype.onAfterBtnClick=function(){var b=this.chart,v=O(b.xAxis[0]),S=b.langFormat("accessibility.rangeSelector.clickButtonAnnouncement",{chart:b,axisRangeDescription:v});S&&this.announcer.announce(S)},g.prototype.onInputKbdMove=function(b){var v=this.chart,S=v.rangeSelector,P=v.highlightedInputRangeIx=(v.highlightedInputRangeIx||0)+b;if(P>1||P<0)v.accessibility&&(v.accessibility.keyboardNavigation.tabindexContainer.focus(),v.accessibility.keyboardNavigation.move(b));else if(S){var E=S[P?"maxDateBox":"minDateBox"],M=S[P?"maxInput":"minInput"];E&&M&&v.setFocusToElement(E,M)}},g.prototype.onInputNavInit=function(b){var v=this,S=this,P=this.chart,E=b>0?0:1,M=P.rangeSelector,f=M&&M[E?"maxDateBox":"minDateBox"],x=M&&M.minInput,l=M&&M.maxInput,h=E?l:x;if(P.highlightedInputRangeIx=E,f&&x&&l){P.setFocusToElement(f,h),this.removeInputKeydownHandler&&this.removeInputKeydownHandler();var e=function(i){(i.which||i.keyCode)===v.keyCodes.tab&&(i.preventDefault(),i.stopPropagation(),S.onInputKbdMove(i.shiftKey?-1:1))},r=w(x,"keydown",e),n=w(l,"keydown",e);this.removeInputKeydownHandler=function(){r(),n()}}},g.prototype.onInputNavTerminate=function(){var b=this.chart.rangeSelector||{};b.maxInput&&b.hideInput("max"),b.minInput&&b.hideInput("min"),this.removeInputKeydownHandler&&(this.removeInputKeydownHandler(),delete this.removeInputKeydownHandler)},g.prototype.initDropdownNav=function(){var b=this,v=this.chart,S=v.rangeSelector,P=S&&S.dropdown;S&&P&&(v.setFocusToElement(S.buttonGroup,P),this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeDropdownKeydownHandler=w(P,"keydown",function(E){var M=(E.which||E.keyCode)===b.keyCodes.tab,f=v.accessibility;M&&(E.preventDefault(),E.stopPropagation(),f&&(f.keyboardNavigation.tabindexContainer.focus(),f.keyboardNavigation.move(E.shiftKey?-1:1)))}))},g.prototype.getRangeSelectorButtonNavigation=function(){var b=this.chart,v=this.keyCodes,S=this;return new K(b,{keyCodeMap:[[[v.left,v.right,v.up,v.down],function(P){return S.onButtonNavKbdArrowKey(this,P)}],[[v.enter,v.space],function(){return S.onButtonNavKbdClick(this)}]],validate:function(){return!!(b.rangeSelector&&b.rangeSelector.buttons&&b.rangeSelector.buttons.length)},init:function(P){var E=b.rangeSelector;if(E&&E.hasVisibleDropdown)S.initDropdownNav();else if(E){var M=E.buttons.length-1;b.highlightRangeSelectorButton(P>0?0:M)}},terminate:function(){S.removeDropdownKeydownHandler&&(S.removeDropdownKeydownHandler(),delete S.removeDropdownKeydownHandler)}})},g.prototype.getRangeSelectorInputNavigation=function(){var b=this.chart,v=this;return new K(b,{keyCodeMap:[],validate:function(){return function(S){return!!(S.rangeSelector&&S.rangeSelector.inputGroup&&S.rangeSelector.inputGroup.element.style.visibility!=="hidden"&&S.options.rangeSelector.inputEnabled!==!1&&S.rangeSelector.minInput&&S.rangeSelector.maxInput)}(b)},init:function(S){v.onInputNavInit(S)},terminate:function(){v.onInputNavTerminate()}})},g.prototype.getKeyboardNavigation=function(){return[this.getRangeSelectorButtonNavigation(),this.getRangeSelectorInputNavigation()]},g.prototype.destroy=function(){this.removeDropdownKeydownHandler&&this.removeDropdownKeydownHandler(),this.removeInputKeydownHandler&&this.removeInputKeydownHandler(),this.announcer&&this.announcer.destroy()},g}(z);return function(u){var g=[];function b(S){var P=this.rangeSelector&&this.rangeSelector.buttons||[],E=this.highlightedRangeSelectorItemIx,M=this.rangeSelector&&this.rangeSelector.selected;return E!==void 0&&P[E]&&E!==M&&P[E].setState(this.oldRangeSelectorItemState||0),this.highlightedRangeSelectorItemIx=S,!!P[S]&&(this.setFocusToElement(P[S].box,P[S].element),S!==M&&(this.oldRangeSelectorItemState=P[S].state,P[S].setState(1)),!0)}function v(){var S=this.chart.accessibility;if(S&&S.components.rangeSelector)return S.components.rangeSelector.onAfterBtnClick()}u.compose=function(S,P){g.indexOf(S)===-1&&(g.push(S),S.prototype.highlightRangeSelectorButton=b),g.indexOf(P)===-1&&(g.push(P),w(U,"afterBtnClick",v))}}(d||(d={})),d}),st(B,"Accessibility/Components/SeriesComponent/ForcedMarkers.js",[B["Core/Utilities.js"]],function(U){var z,X=U.addEvent,V=U.merge;return function(K){var J=[];function q(u){V(!0,u,{marker:{enabled:!0,states:{normal:{opacity:0}}}})}function W(u){return u.marker.states&&u.marker.states.normal&&u.marker.states.normal.opacity}function D(u){return!!(u._hasPointMarkers&&u.points&&u.points.length)}function O(){var u=this;u.chart.styledMode&&(u.markerGroup&&u.markerGroup[u.a11yMarkersForced?"addClass":"removeClass"]("highcharts-a11y-markers-hidden"),D(u)&&u.points.forEach(function(g){g.graphic&&(g.graphic[g.hasForcedA11yMarker?"addClass":"removeClass"]("highcharts-a11y-marker-hidden"),g.graphic[g.hasForcedA11yMarker===!1?"addClass":"removeClass"]("highcharts-a11y-marker-visible"))}))}function w(u){this.resetA11yMarkerOptions=V(u.options.marker||{},this.userOptions.marker||{})}function T(){var u=this,g=u.options;(function(b){var v=b.chart.options.accessibility.enabled,S=(b.options.accessibility&&b.options.accessibility.enabled)!==!1;return v&&S&&function(P){var E=P.chart.options.accessibility;return P.points.length<E.series.pointDescriptionEnabledThreshold||E.series.pointDescriptionEnabledThreshold===!1}(b)})(u)?(g.marker&&g.marker.enabled===!1&&(u.a11yMarkersForced=!0,q(u.options)),D(u)&&function(b){for(var v=b.points.length;v--;){var S=b.points[v],P=S.options,E=S.hasForcedA11yMarker;if(delete S.hasForcedA11yMarker,P.marker){var M=E&&W(P)===0;P.marker.enabled&&!M?(d(P),S.hasForcedA11yMarker=!1):P.marker.enabled===!1&&(q(P),S.hasForcedA11yMarker=!0)}}}(u)):u.a11yMarkersForced&&(delete u.a11yMarkersForced,function(b){var v=b.resetA11yMarkerOptions;if(v){var S=v.states&&v.states.normal&&v.states.normal.opacity;b.update({marker:{enabled:v.enabled,states:{normal:{opacity:S}}}})}}(u),delete u.resetA11yMarkerOptions)}function d(u){V(!0,u.marker,{states:{normal:{opacity:W(u)||1}}})}K.compose=function(u){J.indexOf(u)===-1&&(J.push(u),X(u,"afterSetOptions",w),X(u,"render",T),X(u,"afterRender",O))}}(z||(z={})),z}),st(B,"Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js",[B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Utils/EventProvider.js"],B["Accessibility/Utils/ChartUtilities.js"]],function(U,z,X,V,K,J,q,W){var D=X.seriesTypes,O=V.doc,w=K.defined,T=K.fireEvent,d=W.getPointFromXY,u=W.getSeriesFromName,g=W.scrollToPoint;function b(l){var h=l.index,e=l.series.points,r=e.length;if(e[h]===l)return h;for(;r--;)if(e[r]===l)return r}function v(l){var h=l.chart.options.accessibility.keyboardNavigation.seriesNavigation,e=l.options.accessibility||{},r=e.keyboardNavigation;return r&&r.enabled===!1||e.enabled===!1||l.options.enableMouseTracking===!1||!l.visible||h.pointNavigationEnabledThreshold&&h.pointNavigationEnabledThreshold<=l.points.length}function S(l){var h=l.series.chart.options.accessibility,e=l.options.accessibility&&l.options.accessibility.enabled===!1;return l.isNull&&h.keyboardNavigation.seriesNavigation.skipNullPoints||l.visible===!1||l.isInside===!1||e||v(l.series)}function P(l){for(var h=l.points||[],e=h.length,r=0;r<e;++r)if(!S(h[r]))return h[r];return null}function E(l){for(var h=l.series||[],e=h.length,r=0;r<e;++r)if(!v(h[r])){var n=P(h[r]);if(n)return n}return null}function M(l){for(var h=l.series.length,e=!1;h--&&(l.highlightedPoint=l.series[h].points[l.series[h].points.length-1],!(e=l.series[h].highlightNextValidPoint())););return e}function f(l){delete l.highlightedPoint;var h=E(l);return!!h&&h.highlight()}var x=function(){function l(h,e){this.keyCodes=e,this.chart=h}return l.prototype.init=function(){var h=this,e=this.chart,r=this.eventProvider=new q;r.addEvent(z,"destroy",function(){return h.onSeriesDestroy(this)}),r.addEvent(e,"afterApplyDrilldown",function(){(function(n){var i=E(n);i&&i.highlight(!1)})(this)}),r.addEvent(e,"drilldown",function(n){var i=n.point,c=i.series;h.lastDrilledDownPoint={x:i.x,y:i.y,seriesName:c?c.name:""}}),r.addEvent(e,"drillupall",function(){setTimeout(function(){h.onDrillupAll()},10)}),r.addEvent(U,"afterSetState",function(){var n=this,i=n.graphic&&n.graphic.element,c=O.activeElement,a=c&&c.getAttribute("class"),s=a&&a.indexOf("highcharts-a11y-proxy-button")>-1;e.highlightedPoint===n&&c!==i&&!s&&i&&i.focus&&i.focus()})},l.prototype.onDrillupAll=function(){var h,e=this.lastDrilledDownPoint,r=this.chart,n=e&&u(r,e.seriesName);e&&n&&w(e.x)&&w(e.y)&&(h=d(n,e.x,e.y)),h=h||E(r),r.container&&r.container.focus(),h&&h.highlight&&h.highlight(!1)},l.prototype.getKeyboardNavigationHandler=function(){var h=this,e=this.keyCodes,r=this.chart,n=r.inverted;return new J(r,{keyCodeMap:[[n?[e.up,e.down]:[e.left,e.right],function(i){return h.onKbdSideways(this,i)}],[n?[e.left,e.right]:[e.up,e.down],function(i){return h.onKbdVertical(this,i)}],[[e.enter,e.space],function(i,c){var a=r.highlightedPoint;return a&&(c.point=a,T(a.series,"click",c),a.firePointEvent("click")),this.response.success}],[[e.home],function(){return f(r),this.response.success}],[[e.end],function(){return M(r),this.response.success}],[[e.pageDown,e.pageUp],function(i){return r.highlightAdjacentSeries(i===e.pageDown),this.response.success}]],init:function(){return h.onHandlerInit(this)},validate:function(){return!!E(r)},terminate:function(){return h.onHandlerTerminate()}})},l.prototype.onKbdSideways=function(h,e){var r=this.keyCodes,n=e===r.right||e===r.down;return this.attemptHighlightAdjacentPoint(h,n)},l.prototype.onHandlerInit=function(h){var e=this.chart;return e.options.accessibility.keyboardNavigation.seriesNavigation.rememberPointFocus&&e.highlightedPoint?e.highlightedPoint.highlight():f(e),h.response.success},l.prototype.onKbdVertical=function(h,e){var r=this.chart,n=this.keyCodes,i=e===n.down||e===n.right,c=r.options.accessibility.keyboardNavigation.seriesNavigation;return c.mode&&c.mode==="serialize"?this.attemptHighlightAdjacentPoint(h,i):(r[r.highlightedPoint&&r.highlightedPoint.series.keyboardMoveVertical?"highlightAdjacentPointVertical":"highlightAdjacentSeries"](i),h.response.success)},l.prototype.onHandlerTerminate=function(){var h=this.chart,e=h.options.accessibility.keyboardNavigation;h.tooltip&&h.tooltip.hide(0);var r=h.highlightedPoint&&h.highlightedPoint.series;r&&r.onMouseOut&&r.onMouseOut(),h.highlightedPoint&&h.highlightedPoint.onMouseOut&&h.highlightedPoint.onMouseOut(),e.seriesNavigation.rememberPointFocus||delete h.highlightedPoint},l.prototype.attemptHighlightAdjacentPoint=function(h,e){var r=this.chart,n=r.options.accessibility.keyboardNavigation.wrapAround;return r.highlightAdjacentPoint(e)||n&&(e?f(r):M(r))?h.response.success:h.response[e?"next":"prev"]},l.prototype.onSeriesDestroy=function(h){var e=this.chart;e.highlightedPoint&&e.highlightedPoint.series===h&&(delete e.highlightedPoint,e.focusElement&&e.focusElement.removeFocusBorder())},l.prototype.destroy=function(){this.eventProvider.removeAddedEvents()},l}();return function(l){var h=[];function e(a){var s,y,A=this,_=A.series,p=A.highlightedPoint,C=p&&b(p)||0,k=p&&p.series.points||[],F=A.series&&A.series[A.series.length-1],G=F&&F.points&&F.points[F.points.length-1];if(!_[0]||!_[0].points)return!1;if(p){if(s=_[p.series.index+(a?1:-1)],!(y=k[C+(a?1:-1)])&&s&&(y=s.points[a?0:s.points.length-1]),!y)return!1}else y=a?_[0].points[0]:G;return S(y)?(v(s=y.series)?A.highlightedPoint=a?s.points[s.points.length-1]:s.points[0]:A.highlightedPoint=y,A.highlightAdjacentPoint(a)):y.highlight()}function r(a){var s,y=this.highlightedPoint,A=1/0;return!(!w(y.plotX)||!w(y.plotY))&&(this.series.forEach(function(_){v(_)||_.points.forEach(function(p){if(w(p.plotY)&&w(p.plotX)&&p!==y){var C=p.plotY-y.plotY,k=Math.abs(p.plotX-y.plotX),F=Math.abs(C)*Math.abs(C)+k*k*4;_.yAxis&&_.yAxis.reversed&&(C*=-1),C<=0&&a||C>=0&&!a||F<5||S(p)||F<A&&(A=F,s=p)}})}),!!s&&s.highlight())}function n(a){var s,y,A=this,_=A.highlightedPoint,p=A.series&&A.series[A.series.length-1],C=p&&p.points&&p.points[p.points.length-1];return A.highlightedPoint?!!(s=A.series[_.series.index+(a?-1:1)])&&!!(y=function(k,F,G,I){var j,N,Z,$=1/0,Y=F.points.length,et=function(rt){return!(w(rt.plotX)&&w(rt.plotY))};if(!et(k)){for(;Y--;)et(j=F.points[Y])||(Z=(k.plotX-j.plotX)*(k.plotX-j.plotX)*4+(k.plotY-j.plotY)*(k.plotY-j.plotY)*1)<$&&($=Z,N=Y);return w(N)?F.points[N]:void 0}}(_,s))&&(v(s)?(y.highlight(),A.highlightAdjacentSeries(a)||(_.highlight(),!1)):(y.highlight(),y.series.highlightNextValidPoint())):(s=a?A.series&&A.series[0]:p,!!(y=a?s&&s.points&&s.points[0]:C)&&y.highlight())}function i(a){a===void 0&&(a=!0);var s=this.series.chart;return!this.isNull&&a?this.onMouseOver():s.tooltip&&s.tooltip.hide(0),g(this),this.graphic&&(s.setFocusToElement(this.graphic),!a&&s.focusElement&&s.focusElement.removeFocusBorder()),s.highlightedPoint=this,this}function c(){var a=this.chart.highlightedPoint,s=(a&&a.series)===this?b(a):0,y=this.points,A=y.length;if(y&&A){for(var _=s;_<A;++_)if(!S(y[_]))return y[_].highlight();for(var p=s;p>=0;--p)if(!S(y[p]))return y[p].highlight()}return!1}l.compose=function(a,s,y){if(h.indexOf(a)===-1){h.push(a);var A=a.prototype;A.highlightAdjacentPoint=e,A.highlightAdjacentPointVertical=r,A.highlightAdjacentSeries=n}if(h.indexOf(s)===-1&&(h.push(s),s.prototype.highlight=i),h.indexOf(y)===-1){h.push(y);var _=y.prototype;_.keyboardMoveVertical=!0,["column","gantt","pie"].forEach(function(p){D[p]&&(D[p].prototype.keyboardMoveVertical=!1)}),_.highlightNextValidPoint=c}}}(x||(x={})),x}),st(B,"Accessibility/Components/SeriesComponent/SeriesComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Components/SeriesComponent/ForcedMarkers.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"],B["Accessibility/Components/SeriesComponent/SeriesKeyboardNavigation.js"],B["Core/Tooltip.js"]],function(U,z,X,V,K,J,q){var W,D=this&&this.__extends||(W=function(d,u){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},W(d,u)},function(d,u){function g(){this.constructor=d}W(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),O=z.hideSeriesFromAT,w=K.describeSeries,T=function(d){function u(){return d!==null&&d.apply(this,arguments)||this}return D(u,d),u.compose=function(g,b,v){V.compose(v),X.compose(v),J.compose(g,b,v)},u.prototype.init=function(){this.newDataAnnouncer=new V(this.chart),this.newDataAnnouncer.init(),this.keyboardNavigation=new J(this.chart,this.keyCodes),this.keyboardNavigation.init(),this.hideTooltipFromATWhenShown(),this.hideSeriesLabelsFromATWhenShown()},u.prototype.hideTooltipFromATWhenShown=function(){var g=this;this.addEvent(q,"refresh",function(){this.chart===g.chart&&this.label&&this.label.element&&this.label.element.setAttribute("aria-hidden",!0)})},u.prototype.hideSeriesLabelsFromATWhenShown=function(){this.addEvent(this.chart,"afterDrawSeriesLabels",function(){this.series.forEach(function(g){g.labelBySeries&&g.labelBySeries.attr("aria-hidden",!0)})})},u.prototype.onChartRender=function(){this.chart.series.forEach(function(g){(g.options.accessibility&&g.options.accessibility.enabled)!==!1&&g.visible?w(g):O(g)})},u.prototype.getKeyboardNavigation=function(){return this.keyboardNavigation.getKeyboardNavigationHandler()},u.prototype.destroy=function(){this.newDataAnnouncer.destroy(),this.keyboardNavigation.destroy()},u}(U);return T}),st(B,"Accessibility/Components/ZoomComponent.js",[B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J,q=this&&this.__extends||(J=function(d,u){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},J(d,u)},function(d,u){function g(){this.constructor=d}J(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),W=z.unhideChartElementFromAT,D=X.getFakeMouseEvent,O=K.attr,w=K.pick,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.focusedMapNavButtonIx=-1,g}return q(u,d),u.prototype.init=function(){var g=this,b=this.chart;this.proxyProvider.addGroup("zoom","div"),["afterShowResetZoom","afterApplyDrilldown","drillupall"].forEach(function(v){g.addEvent(b,v,function(){g.updateProxyOverlays()})})},u.prototype.onChartUpdate=function(){var g=this.chart,b=this;g.mapNavigation&&g.mapNavigation.navButtons.forEach(function(v,S){W(g,v.element),b.setMapNavButtonAttrs(v.element,"accessibility.zoom.mapZoom"+(S?"Out":"In"))})},u.prototype.setMapNavButtonAttrs=function(g,b){var v=this.chart,S=v.langFormat(b,{chart:v});O(g,{tabindex:-1,role:"button","aria-label":S})},u.prototype.onChartRender=function(){this.updateProxyOverlays()},u.prototype.updateProxyOverlays=function(){var g=this.chart;if(this.proxyProvider.clearGroup("zoom"),g.resetZoomButton&&this.createZoomProxyButton(g.resetZoomButton,"resetZoomProxyButton",g.langFormat("accessibility.zoom.resetZoomButton",{chart:g})),g.drillUpButton&&g.breadcrumbs&&g.breadcrumbs.list){var b=g.breadcrumbs.list[g.breadcrumbs.list.length-1];this.createZoomProxyButton(g.drillUpButton,"drillUpProxyButton",g.langFormat("accessibility.drillUpButton",{chart:g,buttonText:g.breadcrumbs.getButtonText(b)}))}},u.prototype.createZoomProxyButton=function(g,b,v){this[b]=this.proxyProvider.addProxyElement("zoom",{click:g},{"aria-label":v,tabindex:-1})},u.prototype.getMapZoomNavigation=function(){var g=this.keyCodes,b=this.chart,v=this;return new V(b,{keyCodeMap:[[[g.up,g.down,g.left,g.right],function(S){return v.onMapKbdArrow(this,S)}],[[g.tab],function(S,P){return v.onMapKbdTab(this,P)}],[[g.space,g.enter],function(){return v.onMapKbdClick(this)}]],validate:function(){return function(S){return!!(S.mapView&&S.mapNavigation&&S.mapNavigation.navButtons.length)}(b)},init:function(S){return v.onMapNavInit(S)}})},u.prototype.onMapKbdArrow=function(g,b){var v=this.chart,S=this.keyCodes,P=v.container,E=b===S.up||b===S.down,M=b===S.left||b===S.up?1:-1,f=(E?v.plotHeight:v.plotWidth)/10*M,x=10*Math.random(),l={x:P.offsetLeft+v.plotLeft+v.plotWidth/2+x,y:P.offsetTop+v.plotTop+v.plotHeight/2+x},h=E?{x:l.x,y:l.y+f}:{x:l.x+f,y:l.y};return[D("mousedown",l),D("mousemove",h),D("mouseup",h)].forEach(function(e){return P.dispatchEvent(e)}),g.response.success},u.prototype.onMapKbdTab=function(g,b){var v=this.chart,S=g.response,P=b.shiftKey,E=P&&!this.focusedMapNavButtonIx||!P&&this.focusedMapNavButtonIx;if(v.mapNavigation.navButtons[this.focusedMapNavButtonIx].setState(0),E)return v.mapView&&v.mapView.zoomBy(),S[P?"prev":"next"];this.focusedMapNavButtonIx+=P?-1:1;var M=v.mapNavigation.navButtons[this.focusedMapNavButtonIx];return v.setFocusToElement(M.box,M.element),M.setState(2),S.success},u.prototype.onMapKbdClick=function(g){var b=this.chart.mapNavigation.navButtons[this.focusedMapNavButtonIx].element;return this.fakeClickEvent(b),g.response.success},u.prototype.onMapNavInit=function(g){var b=this.chart,v=b.mapNavigation.navButtons[0],S=b.mapNavigation.navButtons[1],P=g>0?v:S;b.setFocusToElement(P.box,P.element),P.setState(2),this.focusedMapNavButtonIx=g>0?0:1},u.prototype.simpleButtonNavigation=function(g,b,v){var S=this.keyCodes,P=this,E=this.chart;return new V(E,{keyCodeMap:[[[S.tab,S.up,S.down,S.left,S.right],function(M,f){var x=M===S.tab&&f.shiftKey||M===S.left||M===S.up;return this.response[x?"prev":"next"]}],[[S.space,S.enter],function(){var M=v(this,E);return w(M,this.response.success)}]],validate:function(){return E[g]&&E[g].box&&P[b].buttonElement},init:function(){E.setFocusToElement(E[g].box,P[b].buttonElement)}})},u.prototype.getKeyboardNavigation=function(){return[this.simpleButtonNavigation("resetZoomButton","resetZoomProxyButton",function(g,b){b.zoomOut()}),this.simpleButtonNavigation("drillUpButton","drillUpProxyButton",function(g,b){return b.drillUp(),g.response.prev}),this.getMapZoomNavigation()]},u}(U);return T}),st(B,"Accessibility/HighContrastMode.js",[B["Core/Globals.js"]],function(U){var z=U.doc,X=U.isMS,V=U.win;return{isHighContrastModeActive:function(){var K=/(Edg)/.test(V.navigator.userAgent);if(V.matchMedia&&K)return V.matchMedia("(-ms-high-contrast: active)").matches;if(X&&V.getComputedStyle){var J=z.createElement("div");J.style.backgroundImage="url(".concat("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",")"),z.body.appendChild(J);var q=(J.currentStyle||V.getComputedStyle(J)).backgroundImage;return z.body.removeChild(J),q==="none"}return V.matchMedia&&V.matchMedia("(forced-colors: active)").matches},setHighContrastTheme:function(K){K.highContrastModeActive=!0;var J=K.options.accessibility.highContrastTheme;K.update(J,!1),K.series.forEach(function(q){var W=J.plotOptions[q.type]||{};q.update({color:W.color||"windowText",colors:[W.color||"windowText"],borderColor:W.borderColor||"window"}),q.points.forEach(function(D){D.options&&D.options.color&&D.update({color:W.color||"windowText",borderColor:W.borderColor||"window"},!1)})}),K.redraw()}}}),st(B,"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"}}}),st(B,"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}}}}),st(B,"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). }"}}}}),st(B,"Accessibility/Options/DeprecatedOptions.js",[B["Core/Utilities.js"]],function(U){var z=U.error,X=U.pick;function V(J,q,W){for(var D,O=J,w=0;w<q.length-1;++w)O=O[D=q[w]]=X(O[D],{});O[q[q.length-1]]=W}function K(J,q,W,D){function O(d,u){return u.reduce(function(g,b){return g[b]},d)}var w=O(J.options,q),T=O(J.options,W);Object.keys(D).forEach(function(d){var u,g=w[d];g!==void 0&&(V(T,D[d],g),z(32,!1,J,((u={})[q.join(".")+"."+d]=W.join(".")+"."+D[d].join("."),u)))})}return function(J){(function(q){var W=q.options.chart,D=q.options.accessibility||{};["description","typeDescription"].forEach(function(O){var w;W[O]&&(D[O]=W[O],z(32,!1,q,((w={})["chart.".concat(O)]="use accessibility.".concat(O),w)))})})(J),function(q){q.axes.forEach(function(W){var D=W.options;D&&D.description&&(D.accessibility=D.accessibility||{},D.accessibility.description=D.description,z(32,!1,q,{"axis.description":"use axis.accessibility.description"}))})}(J),J.series&&function(q){var W={description:["accessibility","description"],exposeElementToA11y:["accessibility","exposeAsGroupOnly"],pointDescriptionFormatter:["accessibility","point","descriptionFormatter"],skipKeyboardNavigation:["accessibility","keyboardNavigation","enabled"],"accessibility.pointDescriptionFormatter":["accessibility","point","descriptionFormatter"]};q.series.forEach(function(D){Object.keys(W).forEach(function(O){var w,T=D.options[O];O==="accessibility.pointDescriptionFormatter"&&(T=D.options.accessibility&&D.options.accessibility.pointDescriptionFormatter),T!==void 0&&(V(D.options,W[O],O==="skipKeyboardNavigation"?!T:T),z(32,!1,q,((w={})["series.".concat(O)]="series."+W[O].join("."),w)))})})}(J),function(q){K(q,["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"]})}(J),function(q){K(q,["accessibility","keyboardNavigation"],["accessibility","keyboardNavigation","seriesNavigation"],{skipNullPoints:["skipNullPoints"],mode:["mode"]})}(J),function(q){K(q,["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"]})}(J)}}),st(B,"Accessibility/Accessibility.js",[B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/A11yI18n.js"],B["Accessibility/Components/ContainerComponent.js"],B["Accessibility/FocusBorder.js"],B["Accessibility/Components/InfoRegionsComponent.js"],B["Accessibility/KeyboardNavigation.js"],B["Accessibility/Components/LegendComponent.js"],B["Accessibility/Components/MenuComponent.js"],B["Accessibility/Components/SeriesComponent/NewDataAnnouncer.js"],B["Accessibility/ProxyProvider.js"],B["Accessibility/Components/RangeSelectorComponent.js"],B["Accessibility/Components/SeriesComponent/SeriesComponent.js"],B["Accessibility/Components/ZoomComponent.js"],B["Accessibility/HighContrastMode.js"],B["Accessibility/HighContrastTheme.js"],B["Accessibility/Options/A11yDefaults.js"],B["Accessibility/Options/LangDefaults.js"],B["Accessibility/Options/DeprecatedOptions.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T,d,u,g,b,v,S,P,E,M){var f=U.defaultOptions,x=z.doc,l=X.addEvent,h=X.extend,e=X.fireEvent,r=X.merge,n=V.removeElement,i=function(){function c(a){this.chart=void 0,this.components=void 0,this.keyboardNavigation=void 0,this.proxyProvider=void 0,this.init(a)}return c.prototype.init=function(a){if(this.chart=a,!x.addEventListener||!a.renderer.isSVG)return this.zombie=!0,this.components={},void a.renderTo.setAttribute("aria-hidden",!0);M(a),this.proxyProvider=new d(this.chart),this.initComponents(),this.keyboardNavigation=new D(a,this.components)},c.prototype.initComponents=function(){var a=this.chart,s=this.proxyProvider,y=a.options.accessibility;this.components={container:new J,infoRegions:new W,legend:new O,chartMenu:new w,rangeSelector:new u,series:new g,zoom:new b},y.customComponents&&h(this.components,y.customComponents);var A=this.components;this.getComponentOrder().forEach(function(_){A[_].initBase(a,s),A[_].init()})},c.prototype.getComponentOrder=function(){if(!this.components)return[];if(!this.components.series)return Object.keys(this.components);var a=Object.keys(this.components).filter(function(s){return s!=="series"});return["series"].concat(a)},c.prototype.update=function(){var a=this.components,s=this.chart,y=s.options.accessibility;e(s,"beforeA11yUpdate"),s.types=this.getChartTypes();var A=y.keyboardNavigation.order;this.proxyProvider.updateGroupOrder(A),this.getComponentOrder().forEach(function(_){a[_].onChartUpdate(),e(s,"afterA11yComponentUpdate",{name:_,component:a[_]})}),this.keyboardNavigation.update(A),!s.highContrastModeActive&&v.isHighContrastModeActive()&&v.setHighContrastTheme(s),e(s,"afterA11yUpdate",{accessibility:this})},c.prototype.destroy=function(){var a=this.chart||{},s=this.components;Object.keys(s).forEach(function(y){s[y].destroy(),s[y].destroyBase()}),this.proxyProvider&&this.proxyProvider.destroy(),a.announcerContainer&&n(a.announcerContainer),this.keyboardNavigation&&this.keyboardNavigation.destroy(),a.renderTo&&a.renderTo.setAttribute("aria-hidden",!0),a.focusElement&&a.focusElement.removeFocusBorder()},c.prototype.getChartTypes=function(){var a={};return this.chart.series.forEach(function(s){a[s.type]=1}),Object.keys(a)},c}();return function(c){var a=[];function s(){this.accessibility&&this.accessibility.destroy()}function y(){this.a11yDirty&&this.renderTo&&(delete this.a11yDirty,this.updateA11yEnabled());var C=this.accessibility;C&&!C.zombie&&(C.proxyProvider.updateProxyElementPositions(),C.getComponentOrder().forEach(function(k){C.components[k].onChartRender()}))}function A(C){var k=C.options.accessibility;k&&(k.customComponents&&(this.options.accessibility.customComponents=k.customComponents,delete k.customComponents),r(!0,this.options.accessibility,k),this.accessibility&&this.accessibility.destroy&&(this.accessibility.destroy(),delete this.accessibility)),this.a11yDirty=!0}function _(){var C=this.accessibility,k=this.options.accessibility;k&&k.enabled?C&&!C.zombie?C.update():(this.accessibility=C=new c(this),C&&!C.zombie&&C.update()):C?(C.destroy&&C.destroy(),delete this.accessibility):this.renderTo.setAttribute("aria-hidden",!0)}function p(){this.series.chart.accessibility&&(this.series.chart.a11yDirty=!0)}c.i18nFormat=K.i18nFormat,c.compose=function(C,k,F,G,I,j){D.compose(C),T.compose(G),O.compose(C,k),w.compose(C),g.compose(C,F,G),K.compose(C),q.compose(C,I),j&&u.compose(C,j),a.indexOf(C)===-1&&(a.push(C),C.prototype.updateA11yEnabled=_,l(C,"destroy",s),l(C,"render",y),l(C,"update",A),["addSeries","init"].forEach(function(N){l(C,N,function(){this.a11yDirty=!0})}),["afterApplyDrilldown","drillupall"].forEach(function(N){l(C,N,function(){var Z=this.accessibility;Z&&!Z.zombie&&Z.update()})})),a.indexOf(F)===-1&&(a.push(F),l(F,"update",p)),a.indexOf(G)===-1&&(a.push(G),["update","updatedData","remove"].forEach(function(N){l(G,N,function(){this.chart.accessibility&&(this.chart.a11yDirty=!0)})}))}}(i||(i={})),r(!0,f,P,{accessibility:{highContrastTheme:S},lang:E}),i}),st(B,"masters/modules/accessibility.src.js",[B["Core/Globals.js"],B["Accessibility/Accessibility.js"],B["Accessibility/AccessibilityComponent.js"],B["Accessibility/Utils/ChartUtilities.js"],B["Accessibility/Utils/HTMLUtilities.js"],B["Accessibility/KeyboardNavigationHandler.js"],B["Accessibility/Components/SeriesComponent/SeriesDescriber.js"]],function(U,z,X,V,K,J,q){var W=U;W.i18nFormat=z.i18nFormat,W.A11yChartUtilities=V,W.A11yHTMLUtilities=K,W.AccessibilityComponent=X,W.KeyboardNavigationHandler=J,W.SeriesAccessibilityDescriber=q,z.compose(W.Chart,W.Legend,W.Point,W.Series,W.SVGElement,W.RangeSelector)})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},8291:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Core/HttpUtilities.js",[B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z){var X=U.doc,V=z.createElement,K=z.discardElement,J=z.merge,q=z.objectEach,W={ajax:function(D){var O={json:"application/json",xml:"application/xml",text:"text/plain",octet:"application/octet-stream"},w=new XMLHttpRequest;function T(d,u){D.error&&D.error(d,u)}if(!D.url)return!1;w.open((D.type||"get").toUpperCase(),D.url,!0),D.headers&&D.headers["Content-Type"]||w.setRequestHeader("Content-Type",O[D.dataType||"json"]||O.text),q(D.headers,function(d,u){w.setRequestHeader(u,d)}),D.responseType&&(w.responseType=D.responseType),w.onreadystatechange=function(){var d;if(w.readyState===4){if(w.status===200){if(D.responseType!=="blob"&&(d=w.responseText,D.dataType==="json"))try{d=JSON.parse(d)}catch(u){if(u instanceof Error)return T(w,u)}return D.success&&D.success(d,w)}T(w,w.responseText)}},D.data&&typeof D.data!="string"&&(D.data=JSON.stringify(D.data)),w.send(D.data)},getJSON:function(D,O){W.ajax({url:D,success:O,dataType:"json",headers:{"Content-Type":"text/plain"}})},post:function(D,O,w){var T=V("form",J({method:"post",action:D,enctype:"multipart/form-data"},w),{display:"none"},X.body);q(O,function(d,u){V("input",{type:"hidden",name:u,value:d},void 0,T)}),T.submit(),K(T)}};return W}),st(B,"Extensions/Data.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q){var W=z.getOptions,D=X.doc,O=V.ajax,w=J.seriesTypes,T=q.addEvent,d=q.defined,u=q.extend,g=q.fireEvent,b=q.isNumber,v=q.merge,S=q.objectEach,P=q.pick,E=q.splat;function M(l){return!!(l&&(l.rowsURL||l.csvURL||l.columnsURL))}var f=function(){function l(h,e,r){e===void 0&&(e={}),this.rowsToColumns=l.rowsToColumns,this.dateFormats={"YYYY/mm/dd":{regex:/^([0-9]{4})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{1,2})$/,parser:function(n){return n?Date.UTC(+n[1],n[2]-1,+n[3]):NaN}},"dd/mm/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(n){return n?Date.UTC(+n[3],n[2]-1,+n[1]):NaN},alternative:"mm/dd/YYYY"},"mm/dd/YYYY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{4})$/,parser:function(n){return n?Date.UTC(+n[3],n[1]-1,+n[2]):NaN}},"dd/mm/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(n){if(!n)return NaN;var i=new Date,c=+n[3];return c>i.getFullYear()-2e3?c+=1900:c+=2e3,Date.UTC(c,n[2]-1,+n[1])},alternative:"mm/dd/YY"},"mm/dd/YY":{regex:/^([0-9]{1,2})[\-\/\.]([0-9]{1,2})[\-\/\.]([0-9]{2})$/,parser:function(n){return n?Date.UTC(+n[3]+2e3,n[1]-1,+n[2]):NaN}}},this.chart=r,this.chartOptions=e,this.options=h,this.rawColumns=[],this.init(h,e,r)}return l.data=function(h,e,r){return e===void 0&&(e={}),new l(h,e,r)},l.rowsToColumns=function(h){var e,r,n,i,c;if(h)for(c=[],r=h.length,e=0;e<r;e++)for(i=h[e].length,n=0;n<i;n++)c[n]||(c[n]=[]),c[n][e]=h[e][n];return c},l.prototype.init=function(h,e,r){var n,i=h.decimalPoint;e&&(this.chartOptions=e),r&&(this.chart=r),i!=="."&&i!==","&&(i=void 0),this.options=h,this.columns=h.columns||this.rowsToColumns(h.rows)||[],this.firstRowAsNames=P(h.firstRowAsNames,this.firstRowAsNames,!0),this.decimalRegex=i&&new RegExp("^(-?[0-9]+)"+i+"([0-9]+)$"),this.liveDataTimeout!==void 0&&clearTimeout(this.liveDataTimeout),this.rawColumns=[],this.columns.length&&(this.dataFound(),n=!M(h)),n||(n=this.fetchLiveData()),n||(n=!!this.parseCSV().length),n||(n=!!this.parseTable().length),n||(n=this.parseGoogleSpreadsheet()),!n&&h.afterComplete&&h.afterComplete()},l.prototype.getColumnDistribution=function(){var h,e=this.chartOptions,r=this.options,n=[],i=function(C){return(w[C||"line"].prototype.pointArrayMap||[0]).length},c=function(C){return w[C||"line"].prototype.pointArrayMap},a=e&&e.chart&&e.chart.type,s=[],y=[],A=r&&r.seriesMapping||e&&e.series&&e.series.map(function(){return{x:0}})||[],_=0;(e&&e.series||[]).forEach(function(C){s.push(i(C.type||a))}),A.forEach(function(C){n.push(C.x||0)}),n.length===0&&n.push(0),A.forEach(function(C){var k=new x,F=s[_]||i(a),G=(e&&e.series||[])[_]||{},I=c(G.type||a),j=I||["y"];for((d(C.x)||G.isCartesian||!I)&&k.addColumnReader(C.x,"x"),S(C,function(N,Z){Z!=="x"&&k.addColumnReader(N,Z)}),h=0;h<F;h++)k.hasReader(j[h])||k.addColumnReader(void 0,j[h]);y.push(k),_++});var p=c(a);p===void 0&&(p=["y"]),this.valueCount={global:i(a),xColumns:n,individual:s,seriesBuilders:y,globalPointArrayMap:p}},l.prototype.dataFound=function(){this.options.switchRowsAndColumns&&(this.columns=this.rowsToColumns(this.columns)),this.getColumnDistribution(),this.parseTypes(),this.parsed()!==!1&&this.complete()},l.prototype.parseCSV=function(h){var e,r,n=this,i=this.columns=[],c=h||this.options,a=c.startColumn!==void 0&&c.startColumn?c.startColumn:0,s=c.endColumn||Number.MAX_VALUE,y=[],A={",":0,";":0," ":0},_=c.csv,p=c.startRow!==void 0&&c.startRow?c.startRow:0,C=c.endRow||Number.MAX_VALUE,k=0;function F(I,j,N,Z){var $=0,Y="",et="",rt="",it="",ht=0,dt=0;function bt(wt){Y=I[wt],et=I[wt-1],rt=I[wt+1]}function xt(wt){y.length<dt+1&&y.push([wt]),y[dt][y[dt].length-1]!==wt&&y[dt].push(wt)}function St(){if(a>ht||ht>s)return++ht,void(it="");!isNaN(parseFloat(it))&&isFinite(it)?(it=parseFloat(it),xt("number")):isNaN(Date.parse(it))?xt("string"):(it=it.replace(/\//g,"-"),xt("date")),i.length<dt+1&&i.push([]),i[dt][j]=it,it="",++dt,++ht}if(I.trim().length&&I.trim()[0]!=="#"){for(;$<I.length;$++)if(bt($),Y==='"')for(bt(++$);$<I.length&&(Y!=='"'||et==='"'||rt==='"');)(Y!=='"'||Y==='"'&&et!=='"')&&(it+=Y),bt(++$);else Y===e?St():it+=Y;St()}}if(_&&c.beforeParse&&(_=c.beforeParse.call(this,_)),_){r=_.replace(/\r\n/g,`
129
+ `).replace(/\r/g,`
130
+ `).split(c.lineDelimiter||`
131
+ `),(!p||p<0)&&(p=0),(!C||C>=r.length)&&(C=r.length-1),c.itemDelimiter?e=c.itemDelimiter:(e=null,e=function(I){var j,N=0,Z=0;return I.some(function($,Y){var et,rt,it,ht=!1,dt="";if(Y>13)return!0;for(var bt=0;bt<$.length;bt++){if(et=$[bt],rt=$[bt+1],it=$[bt-1],et==="#")return;if(et==='"')if(ht){if(it!=='"'&&rt!=='"'){for(;rt===" "&&bt<$.length;)rt=$[++bt];A[rt]!==void 0&&A[rt]++,ht=!1}}else ht=!0;else A[et]!==void 0?(dt=dt.trim(),isNaN(Date.parse(dt))&&!isNaN(dt)&&isFinite(dt)||A[et]++,dt=""):dt+=et;et===","&&Z++,et==="."&&N++}}),j=A[";"]>A[","]?";":",",c.decimalPoint||(c.decimalPoint=N>Z?".":",",n.decimalRegex=new RegExp("^(-?[0-9]+)"+c.decimalPoint+"([0-9]+)$")),j}(r));var G=0;for(k=p;k<=C;k++)r[k][0]==="#"?G++:F(r[k],k-p-G);c.columnTypes&&c.columnTypes.length!==0||!y.length||!y[0].length||y[0][1]!=="date"||c.dateFormat||(c.dateFormat=function(I,j){var N,Z,$,Y="YYYY/mm/dd",et=[],rt=[],it=[],ht=0,dt=!1;for((!j||j>I.length)&&(j=I.length);ht<j;ht++)if(I[ht]!==void 0&&I[ht]&&I[ht].length)for(N=I[ht].trim().replace(/\//g," ").replace(/\-/g," ").replace(/\./g," ").split(" "),it=["","",""],$=0;$<N.length;$++)$<it.length&&(N[$]=parseInt(N[$],10),N[$]&&(rt[$]=!rt[$]||rt[$]<N[$]?N[$]:rt[$],et[$]!==void 0?et[$]!==N[$]&&(et[$]=!1):et[$]=N[$],N[$]>31?N[$]<100?it[$]="YY":it[$]="YYYY":N[$]>12&&N[$]<=31?(it[$]="dd",dt=!0):it[$].length||(it[$]="mm")));if(dt){for($=0;$<et.length;$++)et[$]!==!1?rt[$]>12&&it[$]!=="YY"&&it[$]!=="YYYY"&&(it[$]="YY"):rt[$]>12&&it[$]==="mm"&&(it[$]="dd");return it.length===3&&it[1]==="dd"&&it[2]==="dd"&&(it[2]="YY"),Z=it.join("/"),(c.dateFormats||n.dateFormats)[Z]?Z:(g("deduceDateFailed"),Y)}return Y}(i[0])),this.dataFound()}return i},l.prototype.parseTable=function(){var h=this.options,e=this.columns||[],r=h.startRow||0,n=h.endRow||Number.MAX_VALUE,i=h.startColumn||0,c=h.endColumn||Number.MAX_VALUE;if(h.table){var a=h.table;typeof a=="string"&&(a=D.getElementById(a)),[].forEach.call(a.getElementsByTagName("tr"),function(s,y){y>=r&&y<=n&&[].forEach.call(s.children,function(A,_){var p=e[_-i],C=1;if((A.tagName==="TD"||A.tagName==="TH")&&_>=i&&_<=c)for(e[_-i]||(e[_-i]=[]),e[_-i][y-r]=A.innerHTML;y-r>=C&&p[y-r-C]===void 0;)p[y-r-C]=null,C++})}),this.dataFound()}return e},l.prototype.fetchLiveData=function(){var h=this,e=this.chart,r=this.options,n=r.enablePolling,i=v(r),c=0,a=1e3*(r.dataRefreshRate||2);return!!M(r)&&(a<1e3&&(a=1e3),delete r.csvURL,delete r.rowsURL,delete r.columnsURL,function s(y){function A(_,p,C){if(!_||!/^(http|\/|\.\/|\.\.\/)/.test(_))return _&&r.error&&r.error("Invalid URL"),!1;function k(){n&&e.liveDataURL===_&&(h.liveDataTimeout=setTimeout(s,a))}return y&&(clearTimeout(h.liveDataTimeout),e.liveDataURL=_),O({url:_,dataType:C||"json",success:function(F){e&&e.series&&p(F),k()},error:function(F,G){return++c<3&&k(),r.error&&r.error(G,F)}}),!0}A(i.csvURL,function(_){e.update({data:{csv:_}})},"text")||A(i.rowsURL,function(_){e.update({data:{rows:_}})})||A(i.columnsURL,function(_){e.update({data:{columns:_}})})}(!0),M(r))},l.prototype.parseGoogleSpreadsheet=function(){var h=this,e=this.options,r=e.googleSpreadsheetKey,n=this.chart,i=Math.max(1e3*(e.dataRefreshRate||2),4e3),c=function(){if(e.googleSpreadsheetRange)return e.googleSpreadsheetRange;var a="ABCDEFGHIJKLMNOPQRSTUVWXYZ",s=(a.charAt(e.startColumn||0)||"A")+((e.startRow||0)+1),y=a.charAt(P(e.endColumn,-1))||"ZZ";return d(e.endRow)&&(y+=e.endRow+1),""+s+":".concat(y)};return r&&(delete e.googleSpreadsheetKey,function a(s){var y=["https://sheets.googleapis.com/v4/spreadsheets",r,"values",c(),"?alt=json&majorDimension=COLUMNS&valueRenderOption=UNFORMATTED_VALUE&dateTimeRenderOption=FORMATTED_STRING&key="+e.googleAPIKey].join("/");O({url:y,dataType:"json",success:function(A){s(A),e.enablePolling&&(h.liveDataTimeout=setTimeout(function(){a(s)},i))},error:function(A,_){return e.error&&e.error(_,A)}})}(function(a){var s=a.values;if(!s||s.length===0)return!1;var y=s.reduce(function(A,_){return Math.max(A,_.length)},0);s.forEach(function(A){for(var _=0;_<y;_++)A[_]===void 0&&(A[_]=null)}),n&&n.series?n.update({data:{columns:s}}):(h.columns=s,h.dataFound())})),!1},l.prototype.trim=function(h,e){return typeof h=="string"&&(h=h.replace(/^\s+|\s+$/g,""),e&&/^[0-9\s]+$/.test(h)&&(h=h.replace(/\s/g,"")),this.decimalRegex&&(h=h.replace(this.decimalRegex,"$1.$2"))),h},l.prototype.parseTypes=function(){for(var h=this.columns||[],e=h.length;e--;)this.parseColumn(h[e],e)},l.prototype.parseColumn=function(h,e){var r,n,i,c,a,s,y,A=this.rawColumns,_=this.columns,p=this.firstRowAsNames,C=this.valueCount.xColumns.indexOf(e)!==-1,k=[],F=this.chartOptions,G=(this.options.columnTypes||[])[e],I=C&&(F&&F.xAxis&&E(F.xAxis)[0].type==="category"||G==="string"),j=d(h.name),N=h.length;for(A[e]||(A[e]=[]);N--;)r=k[N]||h[N],i=this.trim(r),c=this.trim(r,!0),n=parseFloat(c),A[e][N]===void 0&&(A[e][N]=i),I||N===0&&p&&!j?h[N]=""+i:+c===n?(h[N]=n,n>31536e6&&G!=="float"?h.isDatetime=!0:h.isNumeric=!0,h[N+1]!==void 0&&(y=n>h[N+1])):(i&&i.length&&(a=this.parseDate(r)),C&&b(a)&&G!=="float"?(k[N]=r,h[N]=a,h.isDatetime=!0,h[N+1]!==void 0&&((s=a>h[N+1])!==y&&y!==void 0&&(this.alternativeFormat?(this.dateFormat=this.alternativeFormat,N=h.length,this.alternativeFormat=this.dateFormats[this.dateFormat].alternative):h.unsorted=!0),y=s)):(h[N]=i===""?null:i,N!==0&&(h.isDatetime||h.isNumeric)&&(h.mixed=!0)));if(C&&h.mixed&&(_[e]=A[e]),C&&y&&this.options.sort)for(e=0;e<_.length;e++)_[e].reverse(),p&&_[e].unshift(_[e].pop())},l.prototype.parseDate=function(h){var e,r,n,i,c=this.options.parseDate,a=this.options.dateFormat||this.dateFormat;if(c)e=c(h);else if(typeof h=="string"){if(a)(n=this.dateFormats[a])||(n=this.dateFormats["YYYY/mm/dd"]),(i=h.match(n.regex))&&(e=n.parser(i));else for(r in this.dateFormats)if(n=this.dateFormats[r],i=h.match(n.regex)){this.dateFormat=a=r,this.alternativeFormat=n.alternative,e=n.parser(i);break}i||(h.match(/:.+(GMT|UTC|[Z+-])/)&&(h=h.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(i=Date.parse(h))=="object"&&i!==null&&i.getTime?e=i.getTime()-6e4*i.getTimezoneOffset():b(i)&&(e=i-6e4*new Date(i).getTimezoneOffset()))}return e},l.prototype.getData=function(){if(this.columns)return this.rowsToColumns(this.columns).slice(1)},l.prototype.parsed=function(){if(this.options.parsed)return this.options.parsed.call(this,this.columns)},l.prototype.complete=function(){var h,e,r,n,i,c,a,s,y,A,_,p,C=this.columns,k=this.options,F=[];if(k.complete||k.afterComplete){if(this.firstRowAsNames)for(n=0;n<C.length;n++){var G=C[n];d(G.name)||(G.name=P(G.shift(),"").toString())}for(e=[],A=function(I,j){var N,Z,$,Y=[],et=[];for(Z=0;Z<I;Z+=1)Y.push(!0);for(N=0;N<j.length;N+=1)for($=j[N].getReferencedColumnIndexes(),Z=0;Z<$.length;Z+=1)Y[$[Z]]=!1;for(Z=0;Z<Y.length;Z+=1)Y[Z]&&et.push(Z);return et}(C.length,this.valueCount.seriesBuilders),a=0;a<this.valueCount.seriesBuilders.length;a++)(y=this.valueCount.seriesBuilders[a]).populateColumns(A)&&F.push(y);for(;A.length>0;){for((y=new x).addColumnReader(0,"x"),(p=A.indexOf(0))!==-1&&A.splice(p,1),n=0;n<this.valueCount.global;n++)y.addColumnReader(void 0,this.valueCount.globalPointArrayMap[n]);y.populateColumns(A)&&F.push(y)}if(F.length>0&&F[0].readers.length>0&&(_=C[F[0].readers[0].columnIndex])!==void 0&&(_.isDatetime?h="datetime":_.isNumeric||(h="category")),h==="category")for(a=0;a<F.length;a++)for(y=F[a],c=0;c<y.readers.length;c++)y.readers[c].configName==="x"&&(y.readers[c].configName="name");for(a=0;a<F.length;a++){for(y=F[a],r=[],i=0;i<C[0].length;i++)r[i]=y.read(C,i);e[a]={data:r},y.name&&(e[a].name=y.name),h==="category"&&(e[a].turboThreshold=0)}s={series:e},h&&(s.xAxis={type:h},h==="category"&&(s.xAxis.uniqueNames=!1)),k.complete&&k.complete(s),k.afterComplete&&k.afterComplete(s)}},l.prototype.update=function(h,e){var r=this.chart,n=r.options;h&&(h.afterComplete=function(i){i&&(i.xAxis&&r.xAxis[0]&&i.xAxis.type===r.xAxis[0].options.type&&delete i.xAxis,r.update(i,e,!0))},v(!0,n.data,h),n.data&&n.data.googleSpreadsheetKey&&!h.columns&&delete n.data.columns,this.init(n.data))},l}();T(U,"init",function(l){var h=this,e=l.args[1],r=W().data,n=l.args[0]||{};if((r||n&&n.data)&&!h.hasDataDef){h.hasDataDef=!0;var i=v(r,n.data);h.data=new f(u(i,{afterComplete:function(c){var a,s;if(Object.hasOwnProperty.call(n,"series"))if(typeof n.series=="object")for(a=Math.max(n.series.length,c&&c.series?c.series.length:0);a--;)s=n.series[a]||{},n.series[a]=v(s,c&&c.series?c.series[a]:{});else delete n.series;n=v(c,n),h.init(n,e)}}),n,h),l.preventDefault()}});var x=function(){function l(){this.readers=[],this.pointIsArray=!0}return l.prototype.populateColumns=function(h){var e=!0;return this.readers.forEach(function(r){r.columnIndex===void 0&&(r.columnIndex=h.shift())}),this.readers.forEach(function(r){r.columnIndex===void 0&&(e=!1)}),e},l.prototype.read=function(h,e){var r,n=this,i=n.pointIsArray,c=i?[]:{};return n.readers.forEach(function(a){var s=h[a.columnIndex][e];i?c.push(s):a.configName.indexOf(".")>0?K.prototype.setNestedProperty(c,s,a.configName):c[a.configName]=s}),this.name===void 0&&n.readers.length>=2&&(r=n.getReferencedColumnIndexes()).length>=2&&(r.shift(),r.sort(function(a,s){return a-s}),this.name=h[r.shift()].name),c},l.prototype.addColumnReader=function(h,e){this.readers.push({columnIndex:h,configName:e}),e!=="x"&&e!=="y"&&e!==void 0&&(this.pointIsArray=!1)},l.prototype.getReferencedColumnIndexes=function(){var h,e,r=[];for(h=0;h<this.readers.length;h+=1)(e=this.readers[h]).columnIndex!==void 0&&r.push(e.columnIndex);return r},l.prototype.hasReader=function(h){var e;for(e=0;e<this.readers.length;e+=1)if(this.readers[e].configName===h)return!0},l}();return f}),st(B,"masters/modules/data.src.js",[B["Core/Globals.js"],B["Core/HttpUtilities.js"],B["Extensions/Data.js"]],function(U,z,X){var V=U;V.ajax=z.ajax,V.data=X.data,V.getJSON=z.getJSON,V.post=z.post,V.Data=X,V.HttpUtilities=z})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},7330:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(U,z,X,V,K){var J=z.defaultOptions,q=K.format,W=V.addEvent,D=V.objectEach,O=V.extend,w=V.fireEvent,T=V.merge,d=V.pick,u=V.defined,g=V.isString;O(J.lang,{mainBreadcrumb:"Main"});var b=function(){function v(S,P){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var E=T(S.options.drilldown&&S.options.drilldown.drillUpButton,v.defaultBreadcrumbsOptions,S.options.navigation&&S.options.navigation.breadcrumbs,P);this.chart=S,this.options=E||{}}return v.prototype.updateProperties=function(S){this.setList(S),this.setLevel(),this.isDirty=!0},v.prototype.setList=function(S){this.list=S},v.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},v.prototype.getLevel=function(){return this.level},v.prototype.getButtonText=function(S){var P=this.chart,E=this.options,M=P.options.lang,f=d(E.format,E.showFullPath?"{level.name}":"← {level.name}"),x=M&&d(M.drillUpText,M.mainBreadcrumb),l=E.formatter&&E.formatter(S)||q(f,{level:S.levelOptions},P)||"";return(g(l)&&!l.length||l==="← ")&&u(x)&&(l=E.showFullPath?x:"← "+x),l},v.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},v.prototype.render=function(){var S=this,P=S.chart,E=S.options;!S.group&&E&&(S.group=P.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:E.zIndex}).add()),E.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},v.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},v.prototype.renderSingleButton=function(){var S=this,P=S.chart,E=S.list,M=S.options.buttonSpacing;this.destroyListElements();var f=S.group?S.group.getBBox().width:M,x=M,l=E[E.length-2];!P.drillUpButton&&this.level>0?P.drillUpButton=S.renderButton(l,f,x):P.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},v.prototype.alignBreadcrumbsGroup=function(S){var P=this;if(P.group){var E=P.options,M=E.buttonTheme,f=E.position,x=E.relativeTo==="chart"||E.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",l=P.group.getBBox(),h=2*(M.padding||0)+E.buttonSpacing;f.width=l.width+h,f.height=l.height+h;var e=T(f);S&&(e.x+=S),P.options.rtl&&(e.x+=f.width),e.y=d(e.y,this.yOffset,0),P.group.align(e,!0,x)}},v.prototype.renderButton=function(S,P,E){var M=this,f=this.chart,x=M.options,l=T(x.buttonTheme),h=f.renderer.button(M.getButtonText(S),P,E,function(e){var r,n=x.events&&x.events.click;n&&(r=n.call(M,e,S)),r!==!1&&(x.showFullPath?e.newLevel=S.level:e.newLevel=M.level-1,w(M,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(M.group);return f.styledMode||h.attr(x.style),h},v.prototype.renderSeparator=function(S,P){var E=this.chart,M=this.options.separator,f=E.renderer.label(M.text,S,P,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return E.styledMode||f.css(M.style),f},v.prototype.update=function(S){T(!0,this.options,S),this.destroy(),this.isDirty=!0},v.prototype.updateSingleButton=function(){var S=this.chart,P=this.list[this.level-1];S.drillUpButton&&S.drillUpButton.attr({text:this.getButtonText(P)})},v.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},v.prototype.destroyListElements=function(S){var P=this.elementList;D(P,function(E,M){!S&&P[M].updated||((E=P[M]).button&&E.button.destroy(),E.separator&&E.separator.destroy(),delete E.button,delete E.separator,delete P[M])}),S&&(this.elementList={})},v.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},v.prototype.resetElementListState=function(){D(this.elementList,function(S){S.updated=!1})},v.prototype.updateListElements=function(){var S,P=this,E=P.elementList,M=P.options.buttonSpacing,f=P.list,x=P.options.rtl,l=x?-1:1,h=function(i,c){return l*i.getBBox().width+l*c},e=function(i,c,a){i.translate(c-i.getBBox().width,a)},r=P.group?h(P.group,M):M,n=M;f.forEach(function(i,c){var a,s,y=c===f.length-1;E[i.level]?(a=(S=E[i.level]).button,S.separator||y?S.separator&&y&&(S.separator.destroy(),delete S.separator):(r+=l*M,S.separator=P.renderSeparator(r,n),x&&e(S.separator,r,n),r+=h(S.separator,M)),E[i.level].updated=!0):(a=P.renderButton(i,r,n),x&&e(a,r,n),r+=h(a,M),y||(s=P.renderSeparator(r,n),x&&e(s,r,n),r+=h(s,M)),E[i.level]={button:a,separator:s,updated:!0}),a&&a.setState(y?2:0)})},v.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},v}();return X.Breadcrumbs||(X.Breadcrumbs=b,W(U,"getMargins",function(){var v=this.breadcrumbs;if(v&&!v.options.floating&&v.level){var S=v.options,P=S.buttonTheme,E=(P.height||0)+2*(P.padding||0)+S.buttonSpacing,M=S.position.verticalAlign;M==="bottom"?(this.marginBottom=(this.marginBottom||0)+E,v.yOffset=E):M!=="middle"?(this.plotTop+=E,v.yOffset=-E):v.yOffset=void 0}}),W(U,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),W(U,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),W(U,"afterShowResetZoom",function(){var v=this;if(v.breadcrumbs){var S=v.resetZoomButton&&v.resetZoomButton.getBBox(),P=v.breadcrumbs.options;S&&P.position.align==="right"&&P.relativeTo==="plotBox"&&v.breadcrumbs.alignBreadcrumbsGroup(-S.width-P.buttonSpacing)}}),W(U,"selection",function(v){v.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),b}),st(B,"Extensions/Drilldown.js",[B["Core/Animation/AnimationUtilities.js"],B["Core/Axis/Axis.js"],B["Core/Chart/Chart.js"],B["Core/Color/Color.js"],B["Series/Column/ColumnSeries.js"],B["Core/Globals.js"],B["Core/Defaults.js"],B["Core/Series/Point.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Axis/Tick.js"],B["Core/Utilities.js"],B["Extensions/Breadcrumbs.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T,d,u){var g=U.animObject,b=J.noop,v=q.defaultOptions,S=O.seriesTypes,P=d.addEvent,E=d.removeEvent,M=d.extend,f=d.fireEvent,x=d.merge,l=d.objectEach,h=d.pick,e=d.syncTimeout,r=S.pie,n=1;M(v.lang,{}),v.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}}},w.prototype.Element.prototype.fadeIn=function(y){this.attr({opacity:.1,visibility:"inherit"}).animate({opacity:h(this.newOpacity,1)},y||{duration:250})},X.prototype.addSeriesAsDrilldown=function(y,A){this.addSingleSeriesAsDrilldown(y,A),this.applyDrilldown()},X.prototype.addSingleSeriesAsDrilldown=function(y,A){var _,p,C,k,F,G,I=y.series,j=I.xAxis,N=I.yAxis,Z=[],$=[];G=this.styledMode?{colorIndex:h(y.colorIndex,I.colorIndex)}:{color:y.color||I.color},this.drilldownLevels||(this.drilldownLevels=[]),k=I.options._levelNumber||0,(F=this.drilldownLevels[this.drilldownLevels.length-1])&&F.levelNumber!==k&&(F=void 0),A=M(M({_ddSeriesId:n++},G),A),p=I.points.indexOf(y),I.chart.series.forEach(function(Y){Y.xAxis!==j||Y.isDrilling||(Y.options._ddSeriesId=Y.options._ddSeriesId||n++,Y.options._colorIndex=Y.userOptions._colorIndex,Y.options._levelNumber=Y.options._levelNumber||k,F?(Z=F.levelSeries,$=F.levelSeriesOptions):(Z.push(Y),Y.purgedOptions=x({_ddSeriesId:Y.options._ddSeriesId,_levelNumber:Y.options._levelNumber,selected:Y.options.selected},Y.userOptions),$.push(Y.purgedOptions)))}),C=M({levelNumber:k,seriesOptions:I.options,seriesPurgedOptions:I.purgedOptions,levelSeriesOptions:$,levelSeries:Z,shapeArgs:y.shapeArgs,bBox:y.graphic?y.graphic.getBBox():{},color:y.isNull?V.parse(G.color).setOpacity(0).get():G.color,lowerSeriesOptions:A,pointOptions:I.options.data[p],pointIndex:p,oldExtremes:{xMin:j&&j.userMin,xMax:j&&j.userMax,yMin:N&&N.userMin,yMax:N&&N.userMax},resetZoomButton:F&&F.levelNumber===k?void 0:this.resetZoomButton},G),this.drilldownLevels.push(C),j&&j.names&&(j.names.length=0),(_=C.lowerSeries=this.addSeries(A,!1)).options._levelNumber=k+1,j&&(j.oldPos=j.pos,j.userMin=j.userMax=null,N.userMin=N.userMax=null),I.type===_.type&&(_.animate=_.animateDrilldown||b,_.options.animation=!0)},X.prototype.applyDrilldown=function(){var y,A=this.drilldownLevels;A&&A.length>0&&(y=A[A.length-1].levelNumber,this.drilldownLevels.forEach(function(_){_.levelNumber===y&&_.levelSeries.forEach(function(p){p.options&&p.options._levelNumber===y&&p.remove(!1)})})),this.resetZoomButton&&(this.resetZoomButton.hide(),delete this.resetZoomButton),this.pointer.reset(),f(this,"afterDrilldown"),this.redraw(),f(this,"afterApplyDrilldown")};var i=function(y){var A=[],_=y.drilldownLevels;return _&&_.length&&(A[0]||A.push({level:0,levelOptions:_[0].seriesOptions}),_.forEach(function(p,C){var k=A[A.length-1];p.levelNumber+1>k.level&&A.push({level:p.levelNumber+1,levelOptions:x({name:p.lowerSeries.name},p.pointOptions)})})),A};function c(y){var A=g(this.chart.options.drilldown.animation);y&&(y.hide(),e(function(){y&&y.added&&y.fadeIn()},Math.max(A.duration-50,0)))}X.prototype.drillUp=function(){if(this.drilldownLevels&&this.drilldownLevels.length!==0){f(this,"beforeDrillUp");for(var y,A,_,p,C,k=this,F=k.drilldownLevels,G=F[F.length-1].levelNumber,I=F.length,j=k.series,N=function($){var Y;j.forEach(function(et){et.options._ddSeriesId===$._ddSeriesId&&(Y=et)}),(Y=Y||k.addSeries($,!1)).type===_.type&&Y.animateDrillupTo&&(Y.animate=Y.animateDrillupTo),$===A.seriesPurgedOptions&&(p=Y)},Z=k.drilldownLevels.length;I--;)if((A=F[I]).levelNumber===G){if(F.pop(),!(_=A.lowerSeries).chart){for(y=j.length;y--;)if(j[y].options.id===A.lowerSeriesOptions.id&&j[y].options._levelNumber===G+1){_=j[y];break}}_.xData=[],_.xAxis&&_.xAxis.names&&(Z===0||I===Z)&&(_.xAxis.names.length=0),A.levelSeriesOptions.forEach(N),f(k,"drillup",{seriesOptions:A.seriesPurgedOptions||A.seriesOptions}),p.type===_.type&&(p.drilldownLevel=A,p.options.animation=k.options.drilldown.animation,_.animateDrillupFrom&&_.chart&&_.animateDrillupFrom(A)),p.options._levelNumber=G,_.remove(!1),p.xAxis&&(C=A.oldExtremes,p.xAxis.setExtremes(C.xMin,C.xMax,!1),p.yAxis.setExtremes(C.yMin,C.yMax,!1)),A.resetZoomButton&&(k.resetZoomButton=A.resetZoomButton)}f(k,"afterDrillUp"),this.redraw(),this.ddDupes&&(this.ddDupes.length=0),f(k,"drillupall")}},P(X,"afterInit",function(){var y=this;y.drilldown={chart:y,fadeInGroup:c,update:function(A,_){x(!0,y.options.drilldown,A),h(_,!0)&&y.redraw()}}}),P(X,"render",function(){(this.xAxis||[]).forEach(function(y){y.ddPoints={},y.series.forEach(function(A){var _,p,C=A.xData||[],k=A.points;for(_=0;_<C.length;_++)if(typeof(p=A.options.data[_])!="number"&&(p=A.pointClass.prototype.optionsToObject.call({series:A},p)).drilldown){y.ddPoints[C[_]]||(y.ddPoints[C[_]]=[]);var F=_-(A.cropStart||0);y.ddPoints[C[_]].push(!(k&&F>=0&&F<k.length)||k[F])}}),l(y.ticks,T.prototype.drillable)})}),P(J.Breadcrumbs,"up",function(y){for(var A=this.chart,_=this.getLevel()-y.newLevel,p=0;p<_;p++)A.drillUp()}),P(X,"afterDrilldown",function(){var y=this,A=y.options.drilldown,_=A&&A.breadcrumbs;y.breadcrumbs||(y.breadcrumbs=new u(y,_)),y.breadcrumbs.updateProperties(i(y))}),P(X,"afterDrillUp",function(){var y=this;y.breadcrumbs&&y.breadcrumbs.updateProperties(i(y))}),P(X,"update",function(y){var A=this.breadcrumbs,_=y.options.drilldown&&y.options.drilldown.breadcrumbs;A&&_&&A.update(y.options.drilldown.breadcrumbs)}),K.prototype.animateDrillupTo=function(y){if(!y){var A=this,_=A.drilldownLevel;this.points.forEach(function(p){var C=p.dataLabel;p.graphic&&p.graphic.hide(),C&&(C.hidden=C.attr("visibility")==="hidden",C.hidden||(C.hide(),p.connector&&p.connector.hide()))}),e(function(){if(A.points){var p=[];A.data.forEach(function(C){p.push(C)}),A.nodes&&(p=p.concat(A.nodes)),p.forEach(function(C,k){var F=k===(_&&_.pointIndex)?"show":"fadeIn",G=F==="show"||void 0,I=C.dataLabel;C.graphic&&C.graphic[F](G),I&&!I.hidden&&(I.fadeIn(),C.connector&&C.connector.fadeIn())})}},Math.max(this.chart.options.drilldown.animation.duration-50,0)),delete this.animate}},K.prototype.animateDrilldown=function(y){var A,_=this,p=this.chart,C=p.drilldownLevels,k=g(p.options.drilldown.animation),F=this.xAxis,G=p.styledMode;y||(C.forEach(function(I){_.options._ddSeriesId===I.lowerSeriesOptions._ddSeriesId&&(A=I.shapeArgs,G||(A.fill=I.color))}),A.x+=h(F.oldPos,F.pos)-F.pos,this.points.forEach(function(I){var j=I.shapeArgs;G||(j.fill=I.color),I.graphic&&I.graphic.attr(A).animate(M(I.shapeArgs,{fill:I.color||_.color}),k)}),p.drilldown&&p.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)},K.prototype.animateDrillupFrom=function(y){var A=g(this.chart.options.drilldown.animation),_=this.group,p=_!==this.chart.columnGroup,C=this;C.trackerGroups.forEach(function(k){C[k]&&C[k].on("mouseover")}),p&&delete this.group,this.points.forEach(function(k){var F=k.graphic,G=y.shapeArgs,I=function(){F.destroy(),_&&p&&(_=_.destroy())};F&&G&&(delete k.graphic,C.chart.styledMode||(G.fill=y.color),A.duration?F.animate(G,x(A,{complete:I})):(F.attr(G),I()))})},r&&M(r.prototype,{animateDrillupTo:K.prototype.animateDrillupTo,animateDrillupFrom:K.prototype.animateDrillupFrom,animateDrilldown:function(y){var A=this.chart.drilldownLevels[this.chart.drilldownLevels.length-1],_=this.chart.options.drilldown.animation;if(this.is("item")&&(_.duration=0),this.center){var p=A.shapeArgs,C=p.start,k=(p.end-C)/this.points.length,F=this.chart.styledMode;y||(this.points.forEach(function(G,I){var j=G.shapeArgs;F||(p.fill=A.color,j.fill=G.color),G.graphic&&G.graphic.attr(x(p,{start:C+I*k,end:C+(I+1)*k}))[_?"animate":"attr"](j,_)}),this.chart.drilldown&&this.chart.drilldown.fadeInGroup(this.dataLabelsGroup),delete this.animate)}}}),W.prototype.doDrilldown=function(){this.runDrilldown()},W.prototype.runDrilldown=function(y,A,_){var p,C=this.series.chart,k=C.options.drilldown,F=(k.series||[]).length;for(C.ddDupes||(C.ddDupes=[]);F--&&!p;)k.series[F].id===this.drilldown&&C.ddDupes.indexOf(this.drilldown)===-1&&(p=k.series[F],C.ddDupes.push(this.drilldown));f(C,"drilldown",{point:this,seriesOptions:p,category:A,originalEvent:_,points:A!==void 0&&this.series.xAxis.getDDPoints(A).slice(0)},function(G){var I=G.point.series&&G.point.series.chart,j=G.seriesOptions;I&&j&&(y?I.addSingleSeriesAsDrilldown(G.point,j):I.addSeriesAsDrilldown(G.point,j))})},z.prototype.drilldownCategory=function(y,A){this.getDDPoints(y).forEach(function(_){_&&_.series&&_.series.visible&&_.runDrilldown&&_.runDrilldown(!0,y,A)}),this.chart.applyDrilldown()},z.prototype.getDDPoints=function(y){return this.ddPoints&&this.ddPoints[y]||[]},T.prototype.drillable=function(){var y=this.pos,A=this.label,_=this.axis,p=_.coll==="xAxis"&&_.getDDPoints,C=p&&_.getDDPoints(y),k=_.chart.styledMode;p&&(A&&C&&C.length?(A.drillable=!0,A.basicStyles||k||(A.basicStyles=x(A.styles)),A.addClass("highcharts-drilldown-axis-label"),A.removeOnDrillableClick&&E(A.element,"click"),A.removeOnDrillableClick=P(A.element,"click",function(F){F.preventDefault(),_.drilldownCategory(y,F)}),k||A.css(_.chart.options.drilldown.activeAxisLabelStyle)):A&&A.drillable&&A.removeOnDrillableClick&&(k||(A.styles={},A.element.removeAttribute("style"),A.css(A.basicStyles)),A.removeOnDrillableClick(),A.removeClass("highcharts-drilldown-axis-label")))},P(W,"afterInit",function(){var y=this;return y.drilldown&&!y.unbindDrilldownClick&&(y.unbindDrilldownClick=P(y,"click",a)),y}),P(W,"update",function(y){var A=this,_=y.options||{};_.drilldown&&!A.unbindDrilldownClick?A.unbindDrilldownClick=P(A,"click",a):!_.drilldown&&_.drilldown!==void 0&&A.unbindDrilldownClick&&(A.unbindDrilldownClick=A.unbindDrilldownClick())});var a=function(y){var A=this,_=A.series;_.xAxis&&_.chart.options.drilldown.allowPointDrilldown===!1?_.xAxis.drilldownCategory(A.x,y):A.runDrilldown(void 0,void 0,y)};P(D,"afterDrawDataLabels",function(){var y=this.chart.options.drilldown.activeDataLabelStyle,A=this.chart.renderer,_=this.chart.styledMode;this.points.forEach(function(p){var C=p.options.dataLabels,k=h(p.dlOptions,C&&C.style,{});p.drilldown&&p.dataLabel&&(y.color!=="contrast"||_||(k.color=A.getContrast(p.color||this.color)),C&&C.color&&(k.color=C.color),p.dataLabel.addClass("highcharts-drilldown-data-label"),_||p.dataLabel.css(y).css(k))},this)});var s=function(y,A,_,p){y[_?"addClass":"removeClass"]("highcharts-drilldown-point"),p||y.css({cursor:A})};P(D,"afterDrawTracker",function(){var y=this.chart.styledMode;this.points.forEach(function(A){A.drilldown&&A.graphic&&s(A.graphic,"pointer",!0,y)})}),P(W,"afterSetState",function(){var y=this.series.chart.styledMode;this.drilldown&&this.series.halo&&this.state==="hover"?s(this.series.halo,"pointer",!0,y):this.series.halo&&s(this.series.halo,"auto",!1,y)}),P(X,"drillup",function(){this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy())}),P(X,"drillupall",function(){this.resetZoomButton&&this.showResetZoom()})}),st(B,"masters/modules/drilldown.src.js",[],function(){})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},8693:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Series/Funnel/FunnelSeries.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(v,S){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,E){P.__proto__=E}||function(P,E){for(var M in E)E.hasOwnProperty(M)&&(P[M]=E[M])},K(v,S)},function(v,S){function P(){this.constructor=v}K(v,S),v.prototype=S===null?Object.create(S):(P.prototype=S.prototype,new P)}),q=z.noop,W=X.series,D=X.seriesTypes.pie,O=V.addEvent,w=V.extend,T=V.fireEvent,d=V.isArray,u=V.merge,g=V.pick,b=function(v){function S(){var P=v!==null&&v.apply(this,arguments)||this;return P.data=void 0,P.options=void 0,P.points=void 0,P}return J(S,v),S.prototype.alignDataLabel=function(P,E,M,f,x){var l=P.series,h=l.options.reversed,e=P.dlBox||P.shapeArgs,r=M.align,n=M.verticalAlign,i=((l.options||{}).dataLabels||{}).inside,c=l.center[1],a=h?2*c-P.plotY:P.plotY,s=l.getWidthAt(a-e.height/2+E.height),y=n==="middle"?(e.topWidth-e.bottomWidth)/4:(s-e.bottomWidth)/2,A=e.y,_=e.x,p=g(E.height,E.getBBox().height);n==="middle"?A=e.y-e.height/2+p/2:n==="top"&&(A=e.y-e.height+p+M.padding),(n==="top"&&!h||n==="bottom"&&h||n==="middle")&&(r==="right"?_=e.x-M.padding+y:r==="left"&&(_=e.x+M.padding-y)),f={x:_,y:h?A-e.height:A,width:e.bottomWidth,height:e.height},M.verticalAlign="bottom",i&&!P.visible||W.prototype.alignDataLabel.call(this,P,E,M,f,x),i&&(!P.visible&&P.dataLabel&&(P.dataLabel.placed=!1),P.contrastColor&&E.css({color:P.contrastColor}))},S.prototype.drawDataLabels=function(){var P,E,M,f,x,l=this,h=l.data,e=l.options.dataLabels.distance,r=h.length;for(l.center[2]-=2*e;r--;)E=(P=(M=h[r]).half)?1:-1,x=M.plotY,M.labelDistance=g(M.options.dataLabels&&M.options.dataLabels.distance,e),l.maxLabelDistance=Math.max(M.labelDistance,l.maxLabelDistance||0),f=l.getX(x,P,M),M.labelPosition={natural:{x:0,y:x},final:{},alignment:P?"right":"left",connectorPosition:{breakAt:{x:f+(M.labelDistance-5)*E,y:x},touchingSliceAt:{x:f+M.labelDistance*E,y:x}}};X.seriesTypes[l.options.dataLabels.inside?"column":"pie"].prototype.drawDataLabels.call(this)},S.prototype.translate=function(){var P,E,M,f,x,l,h,e,r,n,i=0,c=this,a=c.chart,s=c.options,y=s.reversed,A=s.ignoreHiddenPoint,_=a.plotWidth,p=a.plotHeight,C=0,k=s.center,F=rt(k[0],_),G=rt(k[1],p),I=rt(s.width,_),j=rt(s.height,p),N=rt(s.neckWidth,_),Z=rt(s.neckHeight,p),$=G-j/2+j-Z,Y=c.data,et=s.dataLabels.position==="left"?1:0;function rt(it,ht){return/%$/.test(it)?ht*parseInt(it,10)/100:parseInt(it,10)}c.getWidthAt=function(it){return it>$||j===Z?N:N+(I-N)*(1-(it-(G-j/2))/(j-Z))},c.getX=function(it,ht,dt){return F+(ht?-1:1)*(c.getWidthAt(y?2*G-it:it)/2+dt.labelDistance)},c.center=[F,G,j],c.centerX=F,Y.forEach(function(it){A&&it.visible===!1||(i+=it.y)}),Y.forEach(function(it){n=null,M=i?it.y/i:0,e=(x=G-j/2+C*j)+M*j,P=c.getWidthAt(x),l=(f=F-P/2)+P,P=c.getWidthAt(e),r=(h=F-P/2)+P,x>$?(f=h=F-N/2,l=r=F+N/2):e>$&&(n=e,P=c.getWidthAt($),r=(h=F-P/2)+P,e=$),y&&(x=2*G-x,e=2*G-e,n!==null&&(n=2*G-n)),E=[["M",f,x],["L",l,x],["L",r,e]],n!==null&&E.push(["L",r,n],["L",h,n]),E.push(["L",h,e],["Z"]),it.shapeType="path",it.shapeArgs={d:E},it.percentage=100*M,it.plotX=F,it.plotY=(x+(n||e))/2,it.tooltipPos=[F,it.plotY],it.dlBox={x:h,y:x,topWidth:l-f,bottomWidth:r-h,height:Math.abs(g(n,e)-x),width:NaN},it.slice=q,it.half=et,A&&it.visible===!1||(C+=M)}),T(c,"afterTranslate")},S.prototype.sortByAngle=function(P){P.sort(function(E,M){return E.plotY-M.plotY})},S.defaultOptions=u(D.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"}}}),S}(D);return w(b.prototype,{animate:q}),O(U,"afterHideAllOverlappingLabels",function(){this.series.forEach(function(v){var S=v.options&&v.options.dataLabels;d(S)&&(S=S[0]),v.is("pie")&&v.placeDataLabels&&S&&!S.inside&&v.placeDataLabels()})}),X.registerSeriesType("funnel",b),b}),st(B,"Series/Pyramid/PyramidSeries.js",[B["Series/Funnel/FunnelSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(W,D){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])},V(W,D)},function(W,D){function O(){this.constructor=W}V(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}),J=X.merge,q=function(W){function D(){var O=W!==null&&W.apply(this,arguments)||this;return O.data=void 0,O.options=void 0,O.points=void 0,O}return K(D,W),D.defaultOptions=J(U.defaultOptions,{neckWidth:"0%",neckHeight:"0%",reversed:!0}),D}(U);return z.registerSeriesType("pyramid",q),q}),st(B,"masters/modules/funnel.src.js",[],function(){})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},7922:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Core/Axis/Color/ColorAxisComposition.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(U,z){var X,V=U.parse,K=z.addEvent,J=z.extend,q=z.merge,W=z.pick,D=z.splat;return function(O){var w,T=[];function d(){var x=this,l=this.options;this.colorAxis=[],l.colorAxis&&(l.colorAxis=D(l.colorAxis),l.colorAxis.forEach(function(h,e){h.index=e,new w(x,h)}))}function u(x){var l,h,e=this,r=this.chart.colorAxis||[],n=function(c){var a=x.allItems.indexOf(c);a!==-1&&(e.destroyItem(x.allItems[a]),x.allItems.splice(a,1))},i=[];for(r.forEach(function(c){(l=c.options)&&l.showInLegend&&(l.dataClasses&&l.visible?i=i.concat(c.getDataClassLegendSymbols()):l.visible&&i.push(c),c.series.forEach(function(a){a.options.showInLegend&&!l.dataClasses||(a.options.legendType==="point"?a.points.forEach(function(s){n(s)}):n(a))}))}),h=i.length;h--;)x.allItems.unshift(i[h])}function g(x){x.visible&&x.item.legendColor&&x.item.legendItem.symbol.attr({fill:x.item.legendColor})}function b(){var x=this.chart.colorAxis;x&&x.forEach(function(l){l.update({},arguments[2])})}function v(){(this.chart.colorAxis&&this.chart.colorAxis.length||this.colorAttribs)&&this.translateColors()}function S(){var x=this.axisTypes;x?x.indexOf("colorAxis")===-1&&x.push("colorAxis"):this.axisTypes=["colorAxis"]}function P(x){var l=this,h=x?"show":"hide";l.visible=l.options.visible=!!x,["graphic","dataLabel"].forEach(function(e){l[e]&&l[e][h]()}),this.series.buildKDTree()}function E(){var x=this,l=this.data.length?this.data:this.points,h=this.options.nullColor,e=this.colorAxis,r=this.colorKey;l.forEach(function(n){var i=n.getNestedProperty(r),c=n.options.color||(n.isNull||n.value===null?h:e&&i!==void 0?e.toColor(i,n):n.color||x.color);c&&n.color!==c&&(n.color=c,x.options.legendType==="point"&&n.legendItem&&n.legendItem.label&&x.chart.legend.colorizeItem(n,n.visible))})}function M(){this.elem.attr("fill",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}function f(){this.elem.attr("stroke",V(this.start).tweenTo(V(this.end),this.pos),void 0,!0)}O.compose=function(x,l,h,e,r){if(w||(w=x),T.indexOf(l)===-1){T.push(l);var n=l.prototype;n.collectionsWithUpdate.push("colorAxis"),n.collectionsWithInit.colorAxis=[n.addColorAxis],K(l,"afterGetAxes",d),function(c){var a=c.prototype.createAxis;c.prototype.createAxis=function(s,y){if(s!=="colorAxis")return a.apply(this,arguments);var A=new w(this,q(y.axis,{index:this[s].length,isX:!1}));return this.isDirtyLegend=!0,this.axes.forEach(function(_){_.series=[]}),this.series.forEach(function(_){_.bindAxes(),_.isDirtyData=!0}),W(y.redraw,!0)&&this.redraw(y.animation),A}}(l)}if(T.indexOf(h)===-1){T.push(h);var i=h.prototype;i.fillSetter=M,i.strokeSetter=f}T.indexOf(e)===-1&&(T.push(e),K(e,"afterGetAllItems",u),K(e,"afterColorizeItem",g),K(e,"afterUpdate",b)),T.indexOf(r)===-1&&(T.push(r),J(r.prototype,{optionalAxis:"colorAxis",translateColors:E}),J(r.prototype.pointClass.prototype,{setVisible:P}),K(r,"afterTranslate",v,{order:1}),K(r,"bindAxes",S))},O.pointSetVisible=P}(X||(X={})),X}),st(B,"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}}),st(B,"Core/Axis/Color/ColorAxis.js",[B["Core/Axis/Axis.js"],B["Core/Color/Color.js"],B["Core/Axis/Color/ColorAxisComposition.js"],B["Core/Axis/Color/ColorAxisDefaults.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W){var D,O=this&&this.__extends||(D=function(S,P){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,M){E.__proto__=M}||function(E,M){for(var f in M)M.hasOwnProperty(f)&&(E[f]=M[f])},D(S,P)},function(S,P){function E(){this.constructor=S}D(S,P),S.prototype=P===null?Object.create(P):(E.prototype=P.prototype,new E)}),w=z.parse,T=q.series,d=W.extend,u=W.isNumber,g=W.merge,b=W.pick,v=function(S){function P(E,M){var f=S.call(this,E,M)||this;return f.beforePadding=!1,f.chart=void 0,f.coll="colorAxis",f.dataClasses=void 0,f.name="",f.options=void 0,f.stops=void 0,f.visible=!0,f.init(E,M),f}return O(P,S),P.compose=function(E,M,f,x){X.compose(P,E,M,f,x)},P.prototype.init=function(E,M){var f=this,x=E.options.legend||{},l=M.layout?M.layout!=="vertical":x.layout!=="vertical",h=M.visible,e=g(P.defaultColorAxisOptions,M,{showEmpty:!1,title:null,visible:x.enabled&&h!==!1});f.coll="colorAxis",f.side=M.side||l?2:1,f.reversed=M.reversed||!l,f.opposite=!l,S.prototype.init.call(this,E,e),f.userOptions.visible=h,M.dataClasses&&f.initDataClasses(M),f.initStops(),f.horiz=l,f.zoomEnabled=!1},P.prototype.initDataClasses=function(E){var M,f=this,x=f.chart,l=f.legendItem=f.legendItem||{},h=E.dataClasses.length,e=f.options,r=0,n=x.options.chart.colorCount;f.dataClasses=M=[],l.labels=[],(E.dataClasses||[]).forEach(function(i,c){var a;i=g(i),M.push(i),!x.styledMode&&i.color||(e.dataClassColor==="category"?(x.styledMode||(a=x.options.colors,n=a.length,i.color=a[r]),i.colorIndex=r,++r===n&&(r=0)):i.color=w(e.minColor).tweenTo(w(e.maxColor),h<2?.5:c/(h-1)))})},P.prototype.hasData=function(){return!!(this.tickPositions||[]).length},P.prototype.setTickPositions=function(){if(!this.dataClasses)return S.prototype.setTickPositions.call(this)},P.prototype.initStops=function(){var E=this;E.stops=E.options.stops||[[0,E.options.minColor],[1,E.options.maxColor]],E.stops.forEach(function(M){M.color=w(M[1])})},P.prototype.setOptions=function(E){S.prototype.setOptions.call(this,E),this.options.crosshair=this.options.marker},P.prototype.setAxisSize=function(){var E,M,f,x,l=this,h=l.legendItem&&l.legendItem.symbol,e=l.chart,r=e.options.legend||{};h?(this.left=E=h.attr("x"),this.top=M=h.attr("y"),this.width=f=h.attr("width"),this.height=x=h.attr("height"),this.right=e.chartWidth-E-f,this.bottom=e.chartHeight-M-x,this.len=this.horiz?f:x,this.pos=this.horiz?E:M):this.len=(this.horiz?r.symbolWidth:r.symbolHeight)||P.defaultLegendLength},P.prototype.normalizedValue=function(E){var M=this;return M.logarithmic&&(E=M.logarithmic.log2lin(E)),1-(M.max-E)/(M.max-M.min||1)},P.prototype.toColor=function(E,M){var f,x,l,h,e,r,n=this,i=n.dataClasses,c=n.stops;if(i){for(r=i.length;r--;)if(x=(e=i[r]).from,l=e.to,(x===void 0||E>=x)&&(l===void 0||E<=l)){h=e.color,M&&(M.dataClass=r,M.colorIndex=e.colorIndex);break}}else{for(f=n.normalizedValue(E),r=c.length;r--&&!(f>c[r][0]););x=c[r]||c[r+1],f=1-((l=c[r+1]||x)[0]-f)/(l[0]-x[0]||1),h=x.color.tweenTo(l.color,f)}return h},P.prototype.getOffset=function(){var E=this,M=E.legendItem&&E.legendItem.group,f=E.chart.axisOffset[E.side];if(M){E.axisParent=M,S.prototype.getOffset.call(this);var x=this.chart.legend;x.allItems.forEach(function(l){l instanceof P&&l.drawLegendSymbol(x,l)}),x.render(),this.chart.getMargins(!0),E.added||(E.added=!0,E.labelLeft=0,E.labelRight=E.width),E.chart.axisOffset[E.side]=f}},P.prototype.setLegendColor=function(){var E=this,M=E.horiz,f=E.reversed,x=f?1:0,l=f?0:1,h=M?[x,0,l,0]:[0,l,0,x];E.legendColor={linearGradient:{x1:h[0],y1:h[1],x2:h[2],y2:h[3]},stops:E.stops}},P.prototype.drawLegendSymbol=function(E,M){var f=M.legendItem||{},x=E.padding,l=E.options,h=b(l.itemDistance,10),e=this.horiz,r=b(l.symbolWidth,e?P.defaultLegendLength:12),n=b(l.symbolHeight,e?12:P.defaultLegendLength),i=b(l.labelPadding,e?16:30);this.setLegendColor(),f.symbol||(f.symbol=this.chart.renderer.rect(0,E.baseline-11,r,n).attr({zIndex:1}).add(f.group)),f.labelWidth=r+x+(e?h:this.options.labels.x+this.maxLabelLength),f.labelHeight=n+x+(e?i:0)},P.prototype.setState=function(E){this.series.forEach(function(M){M.setState(E)})},P.prototype.setVisible=function(){},P.prototype.getSeriesExtremes=function(){var E,M,f,x,l,h,e,r,n=this.series,i=n.length;for(this.dataMin=1/0,this.dataMax=-1/0;i--;){if(M=(h=n[i]).colorKey=b(h.options.colorKey,h.colorKey,h.pointValKey,h.zoneAxis,"y"),x=h.pointArrayMap,l=h[M+"Min"]&&h[M+"Max"],h[M+"Data"])E=h[M+"Data"];else if(x){if(E=[],f=x.indexOf(M),e=h.yData,f>=0&&e)for(r=0;r<e.length;r++)E.push(b(e[r][f],e[r]))}else E=h.yData;if(l)h.minColorValue=h[M+"Min"],h.maxColorValue=h[M+"Max"];else{var c=T.prototype.getExtremes.call(h,E);h.minColorValue=c.dataMin,h.maxColorValue=c.dataMax}h.minColorValue!==void 0&&(this.dataMin=Math.min(this.dataMin,h.minColorValue),this.dataMax=Math.max(this.dataMax,h.maxColorValue)),l||T.prototype.applyExtremes.call(h)}},P.prototype.drawCrosshair=function(E,M){var f,x=this,l=x.legendItem||{},h=M&&M.plotX,e=M&&M.plotY,r=x.pos,n=x.len;M&&((f=x.toPixels(M.getNestedProperty(M.series.colorKey)))<r?f=r-2:f>r+n&&(f=r+n+2),M.plotX=f,M.plotY=x.len-f,S.prototype.drawCrosshair.call(this,E,M),M.plotX=h,M.plotY=e,x.cross&&!x.cross.addedToColorAxis&&l.group&&(x.cross.addClass("highcharts-coloraxis-marker").add(l.group),x.cross.addedToColorAxis=!0,x.chart.styledMode||typeof x.crosshair!="object"||x.cross.attr({fill:x.crosshair.color})))},P.prototype.getPlotLinePath=function(E){var M=this,f=M.left,x=E.translatedValue,l=M.top;return u(x)?M.horiz?[["M",x-4,l-6],["L",x+4,l-6],["L",x,l],["Z"]]:[["M",f,x],["L",f-6,x+6],["L",f-6,x-6],["Z"]]:S.prototype.getPlotLinePath.call(this,E)},P.prototype.update=function(E,M){var f=this,x=f.chart.legend;this.series.forEach(function(l){l.isDirtyData=!0}),(E.dataClasses&&x.allItems||f.dataClasses)&&f.destroyItems(),S.prototype.update.call(this,E,M),f.legendItem&&f.legendItem.label&&(f.setLegendColor(),x.colorizeItem(this,!0))},P.prototype.destroyItems=function(){var E=this,M=E.chart,f=E.legendItem||{};if(f.label)M.legend.destroyItem(E);else if(f.labels)for(var x=0,l=f.labels;x<l.length;x++){var h=l[x];M.legend.destroyItem(h)}M.isDirtyLegend=!0},P.prototype.destroy=function(){this.chart.isDirtyLegend=!0,this.destroyItems(),S.prototype.destroy.apply(this,[].slice.call(arguments))},P.prototype.remove=function(E){this.destroyItems(),S.prototype.remove.call(this,E)},P.prototype.getDataClassLegendSymbols=function(){var E,M=this,f=M.chart,x=M.legendItem&&M.legendItem.labels||[],l=f.options.legend,h=b(l.valueDecimals,-1),e=b(l.valueSuffix,""),r=function(n){return M.series.reduce(function(i,c){return i.push.apply(i,c.points.filter(function(a){return a.dataClass===n})),i},[])};return x.length||M.dataClasses.forEach(function(n,i){var c=n.from,a=n.to,s=f.numberFormatter,y=!0;E="",c===void 0?E="< ":a===void 0&&(E="> "),c!==void 0&&(E+=s(c,h)+e),c!==void 0&&a!==void 0&&(E+=" - "),a!==void 0&&(E+=s(a,h)+e),x.push(d({chart:f,name:E,options:{},drawLegendSymbol:J.drawRectangle,visible:!0,isDataClass:!0,setState:function(A){for(var _=0,p=r(i);_<p.length;_++)p[_].setState(A)},setVisible:function(){this.visible=y=M.visible=!y;for(var A=0,_=r(i);A<_.length;A++)_[A].setVisible(y);f.legend.colorizeItem(this,y)}},n))}),x},P.defaultColorAxisOptions=V,P.defaultLegendLength=200,P.keepProps=["legendItem"],P}(U);return Array.prototype.push.apply(U.keepProps,v.keepProps),v}),st(B,"Maps/MapNavigationDefaults.js",[B["Core/Defaults.js"],B["Core/Utilities.js"]],function(U,z){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,z.extend)(U.defaultOptions.lang,{zoomIn:"Zoom in",zoomOut:"Zoom out"}),U.defaultOptions.mapNavigation=X,X}),st(B,"Maps/MapNavigation.js",[B["Core/Chart/Chart.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X){var V=z.doc,K=X.addEvent,J=X.extend,q=X.isNumber,W=X.merge,D=X.objectEach,O=X.pick;function w(d){d&&(d.preventDefault&&d.preventDefault(),d.stopPropagation&&d.stopPropagation(),d.cancelBubble=!0)}function T(d){this.navButtons=[],this.init(d)}T.prototype.init=function(d){this.chart=d},T.prototype.update=function(d){var u,g=this,b=this.chart,v=b.options.mapNavigation,S=function(E){this.handler.call(b,E),w(E)},P=g.navButtons;for(d&&(v=b.options.mapNavigation=W(b.options.mapNavigation,d));P.length;)P.pop().destroy();O(v.enableButtons,v.enabled)&&!b.renderer.forExport&&(g.navButtonsGroup||(g.navButtonsGroup=b.renderer.g().attr({zIndex:4}).add()),D(v.buttons,function(E,M){E=W(v.buttonOptions,E),!b.styledMode&&E.theme&&((u=E.theme).style=W(E.theme.style,E.style));var f=b.renderer.button(E.text||"",0,0,S,u,void 0,void 0,void 0,M==="zoomIn"?"topbutton":"bottombutton").addClass("highcharts-map-navigation highcharts-"+{zoomIn:"zoom-in",zoomOut:"zoom-out"}[M]).attr({width:E.width,height:E.height,title:b.options.lang[M],padding:E.padding,zIndex:5}).add(g.navButtonsGroup);if(f.handler=E.onclick,K(f.element,"dblclick",w),P.push(f),J(E,{width:f.width,height:2*f.height}),b.hasLoaded)f.align(E,!1,E.alignTo);else var x=K(b,"load",function(){f.element&&f.align(E,!1,E.alignTo),x()})}),b.hasLoaded||K(b,"render",function(){var E,M,f=b.exportingGroup&&b.exportingGroup.getBBox();if(f){var x=g.navButtonsGroup.getBBox();if(E=f,!((M=x).x>=E.x+E.width||M.x+M.width<=E.x||M.y>=E.y+E.height||M.y+M.height<=E.y)){var l=-x.y-x.height+f.y-5,h=f.y+f.height-x.y+5,e=v.buttonOptions&&v.buttonOptions.verticalAlign;g.navButtonsGroup.attr({translateY:e==="bottom"?l:h})}}})),this.updateEvents(v)},T.prototype.updateEvents=function(d){var u=this.chart;O(d.enableDoubleClickZoom,d.enabled)||d.enableDoubleClickZoomTo?this.unbindDblClick=this.unbindDblClick||K(u.container,"dblclick",function(g){u.pointer.onContainerDblClick(g)}):this.unbindDblClick&&(this.unbindDblClick=this.unbindDblClick()),O(d.enableMouseWheelZoom,d.enabled)?this.unbindMouseWheel=this.unbindMouseWheel||K(u.container,V.onwheel!==void 0?"wheel":V.onmousewheel!==void 0?"mousewheel":"DOMMouseScroll",function(g){return u.pointer.inClass(g.target,"highcharts-no-mousewheel")||(u.pointer.onContainerMouseWheel(g),w(g)),!1}):this.unbindMouseWheel&&(this.unbindMouseWheel=this.unbindMouseWheel())},J(U.prototype,{fitToBox:function(d,u){return[["x","width"],["y","height"]].forEach(function(g){var b=g[0],v=g[1];d[b]+d[v]>u[b]+u[v]&&(d[v]>u[v]?(d[v]=u[v],d[b]=u[b]):d[b]=u[b]+u[v]-d[v]),d[v]>u[v]&&(d[v]=u[v]),d[b]<u[b]&&(d[b]=u[b])}),d},mapZoom:function(d,u,g,b,v){this.mapView&&(q(d)&&(d=Math.log(d)/Math.log(.5)),this.mapView.zoomBy(d,q(u)&&q(g)?this.mapView.projection.inverse([u,g]):void 0,q(b)&&q(v)?[b,v]:void 0))}}),K(U,"beforeRender",function(){this.mapNavigation=new T(this),this.mapNavigation.update()}),z.MapNavigation=T}),st(B,"Maps/MapPointer.js",[B["Core/Pointer.js"],B["Core/Utilities.js"]],function(U,z){var X,V=z.defined,K=z.extend,J=z.pick,q=z.wrap,W=U.prototype.normalize,D=0;K(U.prototype,{normalize:function(O,w){var T=this.chart;if(O=W.call(this,O,w),T&&T.mapView){var d=T.mapView.pixelsToLonLat({x:O.chartX-T.plotLeft,y:O.chartY-T.plotTop});d&&K(O,d)}return O},onContainerDblClick:function(O){var w=this.chart;O=this.normalize(O),w.options.mapNavigation.enableDoubleClickZoomTo?w.pointer.inClass(O.target,"highcharts-tracker")&&w.hoverPoint&&w.hoverPoint.zoomTo():w.isInsidePlot(O.chartX-w.plotLeft,O.chartY-w.plotTop)&&w.mapZoom(.5,void 0,void 0,O.chartX,O.chartY)},onContainerMouseWheel:function(O){var w=this.chart;O=this.normalize(O);var T=V(O.wheelDelta)&&-O.wheelDelta/120||O.deltaY||O.detail;Math.abs(T)>=1&&(D+=Math.abs(T),X&&clearTimeout(X),X=setTimeout(function(){D=0},50)),D<10&&w.isInsidePlot(O.chartX-w.plotLeft,O.chartY-w.plotTop)&&w.mapView&&w.mapView.zoomBy((w.options.mapNavigation.mouseWheelSensitivity-1)*-T,void 0,[O.chartX,O.chartY],!(Math.abs(T)<1)&&void 0)}}),q(U.prototype,"zoomOption",function(O){var w=this.chart.options.mapNavigation;J(w.enableTouchZoom,w.enabled)&&(this.chart.options.chart.zooming.pinchType="xy"),O.apply(this,[].slice.call(arguments,1))}),q(U.prototype,"pinchTranslate",function(O,w,T,d,u,g,b){var v;O.call(this,w,T,d,u,g,b),this.chart.options.chart.type==="map"&&this.hasZoom&&(v=d.scaleX>d.scaleY,this.pinchTranslateDirection(!v,w,T,d,u,g,b,v?d.scaleX:d.scaleY))})}),st(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=U.seriesTypes.column.prototype,K=z.addEvent,J=z.defined;return function(q){var W=[];function D(O){var w=this;w.moveToTopOnHover&&w.graphic&&w.graphic.attr({zIndex:O&&O.state==="hover"?1:0})}q.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))}},q.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(O){var w={};return!J(O.color)||O.state&&O.state!=="normal"||(w[this.colorProp||"fill"]=O.color),w},pointAttribs:V.pointAttribs},q.compose=function(O){var w=O.prototype.pointClass;return W.indexOf(w)===-1&&(W.push(w),K(w,"afterSetState",D)),O}}(X||(X={})),X}),st(B,"Maps/MapSymbols.js",[B["Core/Renderer/SVG/SVGRenderer.js"]],function(U){var z=U.prototype.symbols;function X(V,K,J,q,W,D,O,w){return[["M",V+W,K],["L",V+J-D,K],["C",V+J-D/2,K,V+J,K+D/2,V+J,K+D],["L",V+J,K+q-O],["C",V+J,K+q-O/2,V+J-O/2,K+q,V+J-O,K+q],["L",V+w,K+q],["C",V+w/2,K+q,V,K+q-w/2,V,K+q-w],["L",V,K+W],["C",V,K+W/2,V+W/2,K,V+W,K],["Z"]]}return z.bottombutton=function(V,K,J,q,W){var D=W&&W.r||0;return X(V-1,K-1,J,q,0,0,D,D)},z.topbutton=function(V,K,J,q,W){var D=W&&W.r||0;return X(V-1,K-1,J,q,D,D,0,0)},z}),st(B,"Core/Chart/MapChart.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(w,T){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},K(w,T)},function(w,T){function d(){this.constructor=w}K(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),q=z.getOptions,W=V.merge,D=V.pick,O=function(w){function T(){return w!==null&&w.apply(this,arguments)||this}return J(T,w),T.prototype.init=function(d,u){var g=q().credits,b=W({chart:{panning:{enabled:!0,type:"xy"},type:"map"},credits:{mapText:D(g.mapText,' © <a href="{geojson.copyrightUrl}">{geojson.copyrightShort}</a>'),mapTextFull:D(g.mapTextFull,"{geojson.copyright}")},mapView:{},tooltip:{followTouchMove:!1}},d);w.prototype.init.call(this,b,u)},T}(U);return function(w){w.maps={},w.mapChart=function(T,d,u){return new w(T,d,u)},w.splitPath=function(T){var d;return d=typeof T=="string"?(T=T.replace(/([A-Za-z])/g," $1 ").replace(/^\s*/,"").replace(/\s*$/,"")).split(/[ ,;]+/).map(function(u){return/[A-za-z]/.test(u)?u:parseFloat(u)}):T,X.prototype.pathToSegments(d)}}(O||(O={})),O}),st(B,"Maps/MapUtilities.js",[],function(){return{boundsFromPath:function(U){var z,X=-Number.MAX_VALUE,V=Number.MAX_VALUE,K=-Number.MAX_VALUE,J=Number.MAX_VALUE;if(U.forEach(function(q){var W=q[q.length-2],D=q[q.length-1];typeof W=="number"&&typeof D=="number"&&(V=Math.min(V,W),X=Math.max(X,W),J=Math.min(J,D),K=Math.max(K,D),z=!0)}),z)return{x1:V,y1:J,x2:X,y2:K}},pointInPolygon:function(U,z){var X,V,K=!1,J=U.x,q=U.y;for(X=0,V=z.length-1;X<z.length;V=X++)z[X][1]>q!=z[V][1]>q&&J<(z[V][0]-z[X][0])*(q-z[X][1])/(z[V][1]-z[X][1])+z[X][0]&&(K=!K);return K}}}),st(B,"Series/Map/MapPoint.js",[B["Series/ColorMapComposition.js"],B["Maps/MapUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(d,u){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},K(d,u)},function(d,u){function g(){this.constructor=d}K(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),q=z.boundsFromPath,W=X.seriesTypes.scatter,D=V.extend,O=V.isNumber,w=V.pick,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.options=void 0,g.path=void 0,g.series=void 0,g}return J(u,d),u.getProjectedPath=function(g,b){return g.projectedPath||(b&&g.geometry?(b.hasCoordinates=!0,g.projectedPath=b.path(g.geometry)):g.projectedPath=g.path),g.projectedPath||[]},u.prototype.applyOptions=function(g,b){var v=this.series,S=d.prototype.applyOptions.call(this,g,b),P=v.joinBy;if(v.mapData&&v.mapMap){var E=P[1],M=d.prototype.getNestedProperty.call(S,E),f=M!==void 0&&v.mapMap[M];f?D(S,f):v.pointArrayMap.indexOf("value")!==-1&&(S.value=S.value||null)}return S},u.prototype.getProjectedBounds=function(g){var b=u.getProjectedPath(this,g),v=q(b),S=this.properties;if(v){var P=S&&S["hc-middle-x"],E=S&&S["hc-middle-y"];v.midX=v.x1+(v.x2-v.x1)*w(this.middleX,O(P)?P:.5);var M=w(this.middleY,O(E)?E:.5);return this.geometry||(M=1-M),v.midY=v.y2-(v.y2-v.y1)*M,v}},u.prototype.onMouseOver=function(g){V.clearTimeout(this.colorInterval),!this.isNull&&this.visible||this.series.options.nullInteraction?d.prototype.onMouseOver.call(this,g):this.series.onMouseOut(g)},u.prototype.setVisible=function(g){var b=g?"show":"hide";this.visible=this.options.visible=!!g,this.dataLabel&&this.dataLabel[b](),this.graphic&&this.graphic.attr(this.series.pointAttribs(this))},u.prototype.zoomTo=function(){var g=this,b=g.series.chart,v=b.mapView,S=g.bounds;if(v&&S){var P=O(g.insetIndex)&&v.insets[g.insetIndex];if(P){var E=P.projectedUnitsToPixels({x:S.x1,y:S.y1}),M=P.projectedUnitsToPixels({x:S.x2,y:S.y2}),f=v.pixelsToProjectedUnits({x:E.x,y:E.y}),x=v.pixelsToProjectedUnits({x:M.x,y:M.y});S={x1:f.x,y1:f.y,x2:x.x,y2:x.y}}v.fitToBounds(S,void 0,!1),g.series.isDirty=!0,b.redraw()}},u}(W.prototype.pointClass);return D(T.prototype,{dataLabelOnNull:U.pointMembers.dataLabelOnNull,moveToTopOnHover:U.pointMembers.moveToTopOnHover,isValid:U.pointMembers.isValid}),T}),st(B,"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}}),st(B,"Maps/MapViewInsetsOptionsDefault.js",[],function(){return{borderColor:"#cccccc",borderWidth:1,center:[0,0],padding:"10%",relativeTo:"mapBoundingBox",units:"percent"}}),st(B,"Extensions/GeoJSON.js",[B["Core/Chart/Chart.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=z.format,J=X.win,q=V.error,W=V.extend,D=V.merge,O=V.wrap;function w(d,u){u||(u=Object.keys(d.objects)[0]);var g=d.objects[u];if(g["hc-decoded-geojson"])return g["hc-decoded-geojson"];var b=d.arcs;if(d.transform){var v=d.transform,S=v.scale,P=v.translate;b=d.arcs.map(function(x){var l=0,h=0;return x.map(function(e){return(e=e.slice())[0]=(l+=e[0])*S[0]+P[0],e[1]=(h+=e[1])*S[1]+P[1],e})})}var E=function(x){return typeof x[0]=="number"?x.reduce(function(l,h,e){var r=h<0?b[~h]:b[h];return h<0?(r=r.slice(0,e===0?r.length:r.length-1)).reverse():e&&(r=r.slice(1)),l.concat(r)},[]):x.map(E)},M=g.geometries.map(function(x){return{type:"Feature",properties:x.properties,geometry:{type:x.type,coordinates:x.coordinates||E(x.arcs)}}}),f={type:"FeatureCollection",copyright:d.copyright,copyrightShort:d.copyrightShort,copyrightUrl:d.copyrightUrl,features:M,"hc-recommended-mapview":g["hc-recommended-mapview"],bbox:d.bbox,title:d.title};return g["hc-decoded-geojson"]=f,f}function T(d,u,g){u===void 0&&(u="map");var b=[],v=d.type==="Topology"?w(d):d;return v.features.forEach(function(S){var P,E=S.geometry||{},M=E.type,f=E.coordinates,x=S.properties;if((u!=="map"&&u!=="mapbubble"||M!=="Polygon"&&M!=="MultiPolygon")&&(u!=="mapline"||M!=="LineString"&&M!=="MultiLineString")?u==="mappoint"&&M==="Point"&&f.length&&(P={geometry:{coordinates:f,type:M}}):f.length&&(P={geometry:{coordinates:f,type:M}}),P){var l=x&&(x.name||x.NAME),h=x&&x.lon,e=x&&x.lat;b.push(W(P,{lat:typeof e=="number"?e:void 0,lon:typeof h=="number"?h:void 0,name:typeof l=="string"?l:void 0,properties:x}))}}),g&&v.copyrightShort&&(g.chart.mapCredits=K(g.chart.options.credits.mapText,{geojson:v}),g.chart.mapCreditsFull=K(g.chart.options.credits.mapTextFull,{geojson:v})),b}return U.prototype.transformFromLatLon=function(d,u){var g=this.options.chart.proj4||J.proj4;if(g){var b=u.jsonmarginX,v=b===void 0?0:b,S=u.jsonmarginY,P=S===void 0?0:S,E=u.jsonres,M=E===void 0?1:E,f=u.scale,x=f===void 0?1:f,l=u.xoffset,h=l===void 0?0:l,e=u.xpan,r=e===void 0?0:e,n=u.yoffset,i=n===void 0?0:n,c=u.ypan,a=c===void 0?0:c,s=g(u.crs,[d.lon,d.lat]),y=u.cosAngle||u.rotation&&Math.cos(u.rotation),A=u.sinAngle||u.rotation&&Math.sin(u.rotation),_=u.rotation?[s[0]*y+s[1]*A,-s[0]*A+s[1]*y]:s;return{x:((_[0]-h)*x+r)*M+v,y:-(((i-_[1])*x+a)*M-P)}}q(21,!1,this)},U.prototype.transformToLatLon=function(d,u){var g=this.options.chart.proj4||J.proj4;if(g){if(d.y!==null){var b=u.jsonmarginX,v=b===void 0?0:b,S=u.jsonmarginY,P=S===void 0?0:S,E=u.jsonres,M=E===void 0?1:E,f=u.scale,x=f===void 0?1:f,l=u.xoffset,h=l===void 0?0:l,e=u.xpan,r=e===void 0?0:e,n=u.yoffset,i=n===void 0?0:n,c=u.ypan,a=c===void 0?0:c,s={x:((d.x-v)/M-r)/x+h,y:((d.y-P)/M+a)/x+i},y=u.cosAngle||u.rotation&&Math.cos(u.rotation),A=u.sinAngle||u.rotation&&Math.sin(u.rotation),_=g(u.crs,"WGS84",u.rotation?{x:s.x*y+s.y*-A,y:s.x*A+s.y*y}:s);return{lat:_.y,lon:_.x}}}else q(21,!1,this)},U.prototype.fromPointToLatLon=function(d){return this.mapView&&this.mapView.projectedUnitsToLonLat(d)},U.prototype.fromLatLonToPoint=function(d){return this.mapView&&this.mapView.lonLatToProjectedUnits(d)},O(U.prototype,"addCredits",function(d,u){u=D(!0,this.options.credits,u),this.mapCredits&&(u.href=null),d.call(this,u),this.credits&&this.mapCreditsFull&&this.credits.attr({title:this.mapCreditsFull})}),X.geojson=T,X.topo2geo=w,{geojson:T,topo2geo:w}}),st(B,"Core/Geometry/PolygonClip.js",[],function(){var U,z=function(V,K,J){return(K[0]-V[0])*(J[1]-V[1])>(K[1]-V[1])*(J[0]-V[0])},X=function(V,K,J,q){var W=[V[0]-K[0],V[1]-K[1]],D=[J[0]-q[0],J[1]-q[1]],O=V[0]*K[1]-V[1]*K[0],w=J[0]*q[1]-J[1]*q[0],T=1/(W[0]*D[1]-W[1]*D[0]),d=[(O*D[0]-w*W[0])*T,(O*D[1]-w*W[1])*T];return d.isIntersection=!0,d};return function(V){V.clipLineString=function(K,J){for(var q=[],W=V.clipPolygon(K,J,!1),D=1;D<W.length;D++)W[D].isIntersection&&W[D-1].isIntersection&&(q.push(W.splice(0,D)),D=0),D===W.length-1&&q.push(W);return q},V.clipPolygon=function(K,J,q){q===void 0&&(q=!0);for(var W,D,O,w=J[J.length-1],T=K,d=0;d<J.length;d++){var u=T;W=J[d],T=[],D=q?u[u.length-1]:u[0];for(var g=0;g<u.length;g++)O=u[g],z(w,W,O)?(z(w,W,D)||T.push(X(w,W,D,O)),T.push(O)):z(w,W,D)&&T.push(X(w,W,D,O)),D=O;w=W}return T}}(U||(U={})),U}),st(B,"Maps/Projections/LambertConformalConic.js",[],function(){var U=Math.sign||function(q){return q===0?0:q>0?1:-1},z=63.78137,X=Math.PI/180,V=Math.PI/2,K=1e-6,J=function(q){return Math.tan((V+q)/2)};return function(){function q(W){var D,O=(W.parallels||[]).map(function(g){return g*X}),w=O[0]||0,T=(D=O[1])!==null&&D!==void 0?D:w,d=Math.cos(w);typeof W.projectedBounds=="object"&&(this.projectedBounds=W.projectedBounds);var u=w===T?Math.sin(w):Math.log(d/Math.cos(T))/Math.log(J(T)/J(w));Math.abs(u)<1e-10&&(u=1e-10*(U(u)||1)),this.n=u,this.c=d*Math.pow(J(w),u)/u}return q.prototype.forward=function(W){var D=W[0]*X,O=this,w=O.c,T=O.n,d=O.projectedBounds,u=W[1]*X;w>0?u<-V+K&&(u=-V+K):u>V-K&&(u=V-K);var g=w/Math.pow(J(u),T),b=g*Math.sin(T*D)*z,v=(w-g*Math.cos(T*D))*z,S=[b,v];return d&&(b<d.x1||b>d.x2||v<d.y1||v>d.y2)&&(S.outside=!0),S},q.prototype.inverse=function(W){var D=W[0]/z,O=W[1]/z,w=this.c,T=this.n,d=w-O,u=U(T)*Math.sqrt(D*D+d*d),g=Math.atan2(D,Math.abs(d))*U(d);return d*T<0&&(g-=Math.PI*U(D)*U(d)),[g/T/X,(2*Math.atan(Math.pow(w/u,1/T))-V)/X]},q}()}),st(B,"Maps/Projections/EqualEarth.js",[],function(){var U=1.340264,z=-.081106,X=893e-6,V=.003796,K=Math.sqrt(3)/2,J=74.03120656864502;return function(){function q(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-97.52595454902263,y2:97.52595454902263}}return q.prototype.forward=function(W){var D=Math.PI/180,O=Math.asin(K*Math.sin(W[1]*D)),w=O*O,T=w*w*w;return[W[0]*D*Math.cos(O)*J/(K*(U+3*z*w+T*(7*X+9*V*w))),O*J*(U+z*w+T*(X+V*w))]},q.prototype.inverse=function(W){var D,O,w,T,d=W[0]/J,u=W[1]/J,g=180/Math.PI,b=u;for(T=0;T<12&&(b-=w=(b*(U+z*(D=b*b)+(O=D*D*D)*(X+V*D))-u)/(U+3*z*D+O*(7*X+9*V*D)),!(Math.abs(w)<1e-9));++T);return[g*K*d*(U+3*z*(D=b*b)+(O=D*D*D)*(7*X+9*V*D))/Math.cos(b),g*Math.asin(Math.sin(b)/K)]},q}()}),st(B,"Maps/Projections/Miller.js",[],function(){var U=Math.PI/4,z=Math.PI/180,X=63.78137;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-146.91480769173063,y2:146.91480769173063}}return V.prototype.forward=function(K){return[K[0]*z*X,79.7267125*Math.log(Math.tan(U+.4*K[1]*z))]},V.prototype.inverse=function(K){return[K[0]/X/z,2.5*(Math.atan(Math.exp(K[1]/X*.8))-U)/z]},V}()}),st(B,"Maps/Projections/Orthographic.js",[],function(){var U=Math.PI/180,z=63.78460826781007;return function(){function X(){this.antimeridianCutting=!1,this.bounds={x1:-z,x2:z,y1:-z,y2:z}}return X.prototype.forward=function(V){var K=V[0],J=V[1]*U,q=[Math.cos(J)*Math.sin(K*U)*z,Math.sin(J)*z];return(K<-90||K>90)&&(q.outside=!0),q},X.prototype.inverse=function(V){var K=V[0]/z,J=V[1]/z,q=Math.sqrt(K*K+J*J),W=Math.asin(q),D=Math.sin(W),O=Math.cos(W);return[Math.atan2(K*D,q*O)/U,Math.asin(q&&J*D/q)/U]},X}()}),st(B,"Maps/Projections/WebMercator.js",[],function(){var U=85.0511287798,z=63.78137,X=Math.PI/180;return function(){function V(){this.bounds={x1:-200.37508342789243,x2:200.37508342789243,y1:-200.3750834278071,y2:200.3750834278071},this.maxLatitude=U}return V.prototype.forward=function(K){var J=Math.sin(K[1]*X),q=[z*K[0]*X,z*Math.log((1+J)/(1-J))/2];return Math.abs(K[1])>U&&(q.outside=!0),q},V.prototype.inverse=function(K){return[K[0]/(z*X),(2*Math.atan(Math.exp(K[1]/z))-Math.PI/2)/X]},V}()}),st(B,"Maps/Projections/ProjectionRegistry.js",[B["Maps/Projections/LambertConformalConic.js"],B["Maps/Projections/EqualEarth.js"],B["Maps/Projections/Miller.js"],B["Maps/Projections/Orthographic.js"],B["Maps/Projections/WebMercator.js"]],function(U,z,X,V,K){return{EqualEarth:z,LambertConformalConic:U,Miller:X,Orthographic:V,WebMercator:K}}),st(B,"Maps/Projection.js",[B["Core/Geometry/PolygonClip.js"],B["Maps/Projections/ProjectionRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V=this&&this.__spreadArray||function(T,d,u){if(u||arguments.length===2)for(var g,b=0,v=d.length;b<v;b++)!g&&b in d||(g||(g=Array.prototype.slice.call(d,0,b)),g[b]=d[b]);return T.concat(g||Array.prototype.slice.call(d))},K=U.clipLineString,J=U.clipPolygon,q=X.clamp,W=X.erase,D=2*Math.PI/360,O=1e-6,w=function(T){return T<-180&&(T+=360),T>180&&(T-=360),T};return function(){function T(d){d===void 0&&(d={}),this.hasCoordinates=!1,this.hasGeoProjection=!1,this.maxLatitude=90,this.options=d;var u=d.name,g=d.projectedBounds,b=d.rotation;this.rotator=b?this.getRotator(b):void 0;var v=u?T.registry[u]:void 0;v&&(this.def=new v(d));var S=this.def,P=this.rotator;S&&(this.maxLatitude=S.maxLatitude||90,this.hasGeoProjection=!0),P&&S?(this.forward=function(E){return S.forward(P.forward(E))},this.inverse=function(E){return P.inverse(S.inverse(E))}):S?(this.forward=function(E){return S.forward(E)},this.inverse=function(E){return S.inverse(E)}):P&&(this.forward=P.forward,this.inverse=P.inverse),this.bounds=g==="world"?S&&S.bounds:g}return T.add=function(d,u){T.registry[d]=u},T.greatCircle=function(d,u,g){var b=Math.atan2,v=Math.cos,S=Math.sin,P=Math.sqrt,E=d[1]*D,M=d[0]*D,f=u[1]*D,x=u[0]*D,l=f-E,h=x-M,e=S(l/2)*S(l/2)+v(E)*v(f)*S(h/2)*S(h/2),r=2*b(P(e),P(1-e)),n=6371e3*r,i=Math.round(n/5e5),c=[];if(g&&c.push(d),i>1)for(var a=1/i,s=a;s<.999;s+=a){var y=S((1-s)*r)/S(r),A=S(s*r)/S(r),_=y*v(E)*v(M)+A*v(f)*v(x),p=y*v(E)*S(M)+A*v(f)*S(x),C=b(y*S(E)+A*S(f),P(_*_+p*p)),k=b(p,_);c.push([k/D,C/D])}return g&&c.push(u),c},T.insertGreatCircles=function(d){for(var u=d.length-1;u--;)if(Math.max(Math.abs(d[u][0]-d[u+1][0]),Math.abs(d[u][1]-d[u+1][1]))>10){var g=T.greatCircle(d[u],d[u+1]);g.length&&d.splice.apply(d,V([u+1,0],g,!1))}},T.toString=function(d){var u=d||{},g=u.name,b=u.rotation;return[g,b&&b.join(",")].join(";")},T.prototype.lineIntersectsBounds=function(d){var u,g=this.bounds||{},b=g.x1,v=g.x2,S=g.y1,P=g.y2,E=function(f,x,l){var h=f[0],e=f[1],r=x?0:1;if(typeof l=="number"&&h[x]>=l!=e[x]>=l){var n=(l-h[x])/(e[x]-h[x]),i=h[r]+n*(e[r]-h[r]);return x?[i,l]:[l,i]}},M=d[0];return((u=E(d,0,b))||(u=E(d,0,v)))&&(M=u,d[1]=u),((u=E(d,1,S))||(u=E(d,1,P)))&&(M=u),M},T.prototype.getRotator=function(d){var u=d[0]*D,g=(d[1]||0)*D,b=(d[2]||0)*D,v=Math.cos(g),S=Math.sin(g),P=Math.cos(b),E=Math.sin(b);if(u!==0||g!==0||b!==0)return{forward:function(M){var f=M[0]*D+u,x=M[1]*D,l=Math.cos(x),h=Math.cos(f)*l,e=Math.sin(f)*l,r=Math.sin(x),n=r*v+h*S;return[Math.atan2(e*P-n*E,h*v-r*S)/D,Math.asin(n*P+e*E)/D]},inverse:function(M){var f=M[0]*D,x=M[1]*D,l=Math.cos(x),h=Math.cos(f)*l,e=Math.sin(f)*l,r=Math.sin(x),n=r*P-e*E;return[(Math.atan2(e*P+r*E,h*v+n*S)-u)/D,Math.asin(n*v-h*S)/D]}}},T.prototype.forward=function(d){return d},T.prototype.inverse=function(d){return d},T.prototype.cutOnAntimeridian=function(d,u){var g,b=180,v=[],S=[d];if(d.forEach(function(A,_){var p=d[_-1];if(!_){if(!u)return;p=d[d.length-1]}var C=p[0],k=A[0];if((C<-90||C>90)&&(k<-90||k>90)&&C>0!=k>0){var F=q((b-(C+360)%360)/((k+360)%360-(C+360)%360),0,1),G=p[1]+F*(A[1]-p[1]);v.push({i:_,lat:G,direction:C<0?1:-1,previousLonLat:p,lonLat:A})}}),v.length)if(u){v.length%2==1&&(g=v.slice().sort(function(A,_){return Math.abs(_.lat)-Math.abs(A.lat)})[0],W(v,g));for(var P=v.length-2;P>=0;){var E=v[P].i,M=w(b+v[P].direction*O),f=w(b-v[P].direction*O);(y=d.splice.apply(d,V([E,v[P+1].i-E],T.greatCircle([M,v[P].lat],[M,v[P+1].lat],!0),!1))).push.apply(y,T.greatCircle([f,v[P+1].lat],[f,v[P].lat],!0)),S.push(y),P-=2}if(g)for(var x=0;x<S.length;x++){var l=g.direction,h=g.lat,e=S[x],r=e.indexOf(g.lonLat);if(r>-1){for(var n=(h<0?-1:1)*this.maxLatitude,i=w(b+l*O),c=w(b-l*O),a=T.greatCircle([i,h],[i,n],!0),s=i+120*l;s>-180&&s<180;s+=120*l)a.push([s,n]);a.push.apply(a,T.greatCircle([c,n],[c,g.lat],!0)),e.splice.apply(e,V([r,0],a,!1));break}}}else for(P=v.length;P--;){var y;E=v[P].i,(y=d.splice(E,d.length,[w(b+v[P].direction*O),v[P].lat])).unshift([w(b-v[P].direction*O),v[P].lat]),S.push(y)}return S},T.prototype.path=function(d){var u,g=this,b=this,v=b.bounds,S=b.def,P=b.rotator,E=[],M=d.type==="Polygon"||d.type==="MultiPolygon",f=this.hasGeoProjection,x=!S||S.antimeridianCutting!==!1,l=x?P:void 0,h=x&&S||this;v&&(u=[[v.x1,v.y1],[v.x2,v.y1],[v.x2,v.y2],[v.x1,v.y2]]);var e=function(r){var n=r.map(function(c){if(x){l&&(c=l.forward(c));var a=c[0];Math.abs(a-180)<O&&(a=a<180?179.999999:180.000001),c=[a,c[1]]}return c}),i=[n];f&&(T.insertGreatCircles(n),x&&(i=g.cutOnAntimeridian(n,M))),i.forEach(function(c){if(!(c.length<2)){var a,s,y=!1,A=!1,_=function(j){y?E.push(["L",j[0],j[1]]):(E.push(["M",j[0],j[1]]),y=!0)},p=!1,C=!1,k=c.map(function(j){var N=h.forward(j);return N.outside?p=!0:C=!0,N[1]===1/0?N[1]=1e10:N[1]===-1/0&&(N[1]=-1e10),N});if(x){if(M&&k.push(k[0]),p){if(!C)return;if(u){if(M)k=J(k,u);else if(v)return void K(k,u).forEach(function(j){y=!1,j.forEach(_)})}}k.forEach(_)}else for(var F=0;F<k.length;F++){var G=c[F],I=k[F];I.outside?A=!0:(M&&!a&&(a=G,c.push(G),k.push(I)),A&&s&&(M&&f?T.greatCircle(s,G).forEach(function(j){return _(h.forward(j))}):y=!1),_(I),s=G,A=!1)}}})};return d.type==="LineString"?e(d.coordinates):d.type==="MultiLineString"?d.coordinates.forEach(function(r){return e(r)}):d.type==="Polygon"?(d.coordinates.forEach(function(r){return e(r)}),E.length&&E.push(["Z"])):d.type==="MultiPolygon"&&(d.coordinates.forEach(function(r){r.forEach(function(n){return e(n)})}),E.length&&E.push(["Z"])),E},T.registry=z,T}()}),st(B,"Maps/MapView.js",[B["Maps/MapViewOptionsDefault.js"],B["Maps/MapViewInsetsOptionsDefault.js"],B["Extensions/GeoJSON.js"],B["Core/Chart/MapChart.js"],B["Maps/MapUtilities.js"],B["Maps/Projection.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q){var W,D=this&&this.__extends||(W=function(i,c){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var y in s)s.hasOwnProperty(y)&&(a[y]=s[y])},W(i,c)},function(i,c){function a(){this.constructor=i}W(i,c),i.prototype=c===null?Object.create(c):(a.prototype=c.prototype,new a)}),O=this&&this.__spreadArray||function(i,c,a){if(a||arguments.length===2)for(var s,y=0,A=c.length;y<A;y++)!s&&y in c||(s||(s=Array.prototype.slice.call(c,0,y)),s[y]=c[y]);return i.concat(s||Array.prototype.slice.call(c))},w=X.topo2geo,T=V.maps,d=K.boundsFromPath,u=K.pointInPolygon,g=q.addEvent,b=q.clamp,v=q.fireEvent,S=q.isArray,P=q.isNumber,E=q.isObject,M=q.isString,f=q.merge,x=q.pick,l=q.relativeLength,h=400.979322,e=function(i,c){var a=c.width,s=c.height,y=Math.max((i.x2-i.x1)/(a/256),(i.y2-i.y1)/(s/256));return Math.log(h/y)/Math.log(2)},r=function(){function i(c,a){var s,y,A=this;if(this.insets=[],this.padding=[0,0,0,0],this.eventsToUnbind=[],!(this instanceof n)){var _=O([c.options.chart.map],(c.options.series||[]).map(function($){return $.mapData}),!0).map(function($){return A.getGeoMap($)}),p=[];_.forEach(function($){if($&&(s||(s=$["hc-recommended-mapview"]),$.bbox)){var Y=$.bbox,et=Y[0],rt=Y[1],it=Y[2],ht=Y[3];p.push({x1:et,y1:rt,x2:it,y2:ht})}});var C=p.length&&i.compositeBounds(p);if(C){var k=C.x1,F=C.y1,G=C.x2,I=C.y2;y=G-k>180&&I-F>90?{name:"EqualEarth"}:{name:"LambertConformalConic",parallels:[F,I],rotation:[-(k+G)/2]}}this.geoMap=_[0]}this.userOptions=a||{};var j=f(U,{projection:y},s,a),N=s&&s.insets,Z=a&&a.insets;N&&Z&&(j.insets=i.mergeInsets(N,Z)),this.chart=c,this.center=j.center,this.options=j,this.projection=new J(j.projection),this.playingField=c.plotBox,this.zoom=j.zoom||0,this.createInsets(),this.eventsToUnbind.push(g(c,"afterSetChartSize",function(){A.playingField=A.getField(),A.minZoom!==void 0&&A.minZoom!==A.zoom||(A.fitToBounds(void 0,void 0,!1),!A.chart.hasRendered&&P(A.userOptions.zoom)&&(A.zoom=A.userOptions.zoom),A.userOptions.center&&f(!0,A.center,A.userOptions.center))})),this.setUpEvents()}return i.mergeInsets=function(c,a){var s=function(A){var _={};return A.forEach(function(p,C){_[p&&p.id||"i".concat(C)]=p}),_},y=f(s(c),s(a));return Object.keys(y).map(function(A){return y[A]})},i.prototype.createInsets=function(){var c=this,a=this.options,s=a.insets;s&&s.forEach(function(y){var A=new n(c,f(a.insetOptions,y));c.insets.push(A)})},i.prototype.fitToBounds=function(c,a,s,y){s===void 0&&(s=!0);var A=c||this.getProjectedBounds();if(A){var _=x(a,c?0:this.options.padding),p=this.getField(!1),C=S(_)?_:[_,_,_,_];this.padding=[l(C[0],p.height),l(C[1],p.width),l(C[2],p.height),l(C[3],p.width)],this.playingField=this.getField();var k=e(A,this.playingField);c||(this.minZoom=k);var F=this.projection.inverse([(A.x2+A.x1)/2,(A.y2+A.y1)/2]);this.setView(F,k,s,y)}},i.prototype.getField=function(c){c===void 0&&(c=!0);var a=c?this.padding:[0,0,0,0];return{x:a[3],y:a[0],width:this.chart.plotWidth-a[1]-a[3],height:this.chart.plotHeight-a[0]-a[2]}},i.prototype.getGeoMap=function(c){if(M(c))return T[c];if(E(c,!0)){if(c.type==="FeatureCollection")return c;if(c.type==="Topology")return w(c)}},i.prototype.getMapBBox=function(){var c=this.getProjectedBounds(),a=this.getScale();if(c){var s=this.padding,y=this.projectedUnitsToPixels({x:c.x1,y:c.y2});return{width:(c.x2-c.x1)*a+s[1]+s[3],height:(c.y2-c.y1)*a+s[0]+s[2],x:y.x-s[3],y:y.y-s[0]}}},i.prototype.getProjectedBounds=function(){var c=this.projection,a=this.chart.series.reduce(function(p,C){var k=C.getProjectedBounds&&C.getProjectedBounds();return k&&C.options.affectsMapView!==!1&&p.push(k),p},[]),s=this.options.fitToGeometry;if(s){if(!this.fitToGeometryCache)if(s.type==="MultiPoint"){var y=s.coordinates.map(function(p){return c.forward(p)}),A=y.map(function(p){return p[0]}),_=y.map(function(p){return p[1]});this.fitToGeometryCache={x1:Math.min.apply(0,A),x2:Math.max.apply(0,A),y1:Math.min.apply(0,_),y2:Math.max.apply(0,_)}}else this.fitToGeometryCache=d(c.path(s));return this.fitToGeometryCache}return this.projection.bounds||i.compositeBounds(a)},i.prototype.getScale=function(){return 256/h*Math.pow(2,this.zoom)},i.prototype.getSVGTransform=function(){var c=this.playingField,a=c.x,s=c.y,y=c.width,A=c.height,_=this.projection.forward(this.center),p=this.projection.hasCoordinates?-1:1,C=this.getScale(),k=C*p;return{scaleX:C,scaleY:k,translateX:a+y/2-_[0]*C,translateY:s+A/2-_[1]*k}},i.prototype.lonLatToPixels=function(c){var a=this.lonLatToProjectedUnits(c);if(a)return this.projectedUnitsToPixels(a)},i.prototype.lonLatToProjectedUnits=function(c){var a=this.chart,s=a.mapTransforms;if(s){for(var y in s)if(Object.hasOwnProperty.call(s,y)&&s[y].hitZone){var A=a.transformFromLatLon(c,s[y]);if(A&&u(A,s[y].hitZone.coordinates[0]))return A}return a.transformFromLatLon(c,s.default)}for(var _=0,p=this.insets;_<p.length;_++){var C=p[_];if(C.options.geoBounds&&u({x:c.lon,y:c.lat},C.options.geoBounds.coordinates[0])){var k=C.projection.forward([c.lon,c.lat]),F=C.projectedUnitsToPixels({x:k[0],y:k[1]});return this.pixelsToProjectedUnits(F)}}var G=this.projection.forward([c.lon,c.lat]);if(!G.outside)return{x:G[0],y:G[1]}},i.prototype.projectedUnitsToLonLat=function(c){var a=this.chart,s=a.mapTransforms;if(s){for(var y in s)if(Object.hasOwnProperty.call(s,y)&&s[y].hitZone&&u(c,s[y].hitZone.coordinates[0]))return a.transformToLatLon(c,s[y]);return a.transformToLatLon(c,s.default)}for(var A=this.projectedUnitsToPixels(c),_=0,p=this.insets;_<p.length;_++){var C=p[_];if(C.hitZone&&u(A,C.hitZone.coordinates[0])){var k=C.pixelsToProjectedUnits(A),F=C.projection.inverse([k.x,k.y]);return{lon:F[0],lat:F[1]}}}var G=this.projection.inverse([c.x,c.y]);return{lon:G[0],lat:G[1]}},i.prototype.redraw=function(c){this.chart.series.forEach(function(a){a.useMapGeometry&&(a.isDirty=!0)}),this.chart.redraw(c)},i.prototype.setView=function(c,a,s,y){s===void 0&&(s=!0),c&&(this.center=c),typeof a=="number"&&(typeof this.minZoom=="number"&&(a=Math.max(a,this.minZoom)),typeof this.options.maxZoom=="number"&&(a=Math.min(a,this.options.maxZoom)),P(a)&&(this.zoom=a));var A=this.getProjectedBounds();if(A){var _=this.projection.forward(this.center),p=this.playingField,C=p.x,k=p.y,F=p.width,G=p.height,I=this.getScale(),j=this.projectedUnitsToPixels({x:A.x1,y:A.y1}),N=this.projectedUnitsToPixels({x:A.x2,y:A.y2}),Z=[(A.x1+A.x2)/2,(A.y1+A.y2)/2],$=j.x,Y=N.y,et=N.x,rt=j.y;et-$<F?_[0]=Z[0]:$<C&&et<C+F?_[0]+=Math.max($-C,et-F-C)/I:et>C+F&&$>C&&(_[0]+=Math.min(et-F-C,$-C)/I),rt-Y<G?_[1]=Z[1]:Y<k&&rt<k+G?_[1]-=Math.max(Y-k,rt-G-k)/I:rt>k+G&&Y>k&&(_[1]-=Math.min(rt-G-k,Y-k)/I),this.center=this.projection.inverse(_),this.insets.forEach(function(it){it.options.field&&(it.hitZone=it.getHitZone(),it.playingField=it.getField())}),this.render()}v(this,"afterSetView"),s&&this.redraw(y)},i.prototype.projectedUnitsToPixels=function(c){var a=this.getScale(),s=this.projection.forward(this.center),y=this.playingField,A=y.x+y.width/2,_=y.y+y.height/2;return{x:A-a*(s[0]-c.x),y:_+a*(s[1]-c.y)}},i.prototype.pixelsToLonLat=function(c){return this.projectedUnitsToLonLat(this.pixelsToProjectedUnits(c))},i.prototype.pixelsToProjectedUnits=function(c){var a=c.x,s=c.y,y=this.getScale(),A=this.projection.forward(this.center),_=this.playingField,p=_.x+_.width/2,C=_.y+_.height/2;return{x:A[0]+(a-p)/y,y:A[1]-(s-C)/y}},i.prototype.setUpEvents=function(){var c,a,s,y=this,A=this.chart,_=function(p){var C=A.pointer.pinchDown,k=y.projection,F=A.mouseDownX,G=A.mouseDownY;if(C.length===1&&(F=C[0].chartX,G=C[0].chartY),typeof F=="number"&&typeof G=="number"){var I=""+F+",".concat(G),j=p.originalEvent,N=j.chartX,Z=j.chartY;I!==a&&(a=I,c=y.projection.forward(y.center),s=(y.projection.options.rotation||[0,0]).slice());var $=k.def&&k.def.bounds,Y=$&&e($,y.playingField)||-1/0;if(k.options.name==="Orthographic"&&(y.minZoom||1/0)<1.1*Y){var et=440/(y.getScale()*Math.min(A.plotWidth,A.plotHeight));if(s){var rt=(F-N)*et-s[0],it=b(-s[1]-(G-Z)*et,-80,80),ht=y.zoom;y.update({projection:{rotation:[-rt,-it]}},!1),y.zoom=ht,A.redraw(!1)}}else if(P(N)&&P(Z)){var dt=y.getScale(),bt=y.projection.hasCoordinates?1:-1,xt=y.projection.inverse([c[0]+(F-N)/dt,c[1]-(G-Z)/dt*bt]);y.setView(xt,void 0,!0,!1)}p.preventDefault()}};g(A,"pan",_),g(A,"touchpan",_),g(A,"selection",function(p){if(p.resetSelection)y.zoomBy();else{var C=p.x-A.plotLeft,k=p.y-A.plotTop,F=y.pixelsToProjectedUnits({x:C,y:k}),G=F.y,I=F.x,j=y.pixelsToProjectedUnits({x:C+p.width,y:k+p.height}),N=j.y,Z=j.x;y.fitToBounds({x1:I,y1:G,x2:Z,y2:N},void 0,!0,!p.originalEvent.touches&&void 0),/^touch/.test(p.originalEvent.type)||A.showResetZoom(),p.preventDefault()}})},i.prototype.render=function(){this.group||(this.group=this.chart.renderer.g("map-view").attr({zIndex:4}).add())},i.prototype.update=function(c,a,s){a===void 0&&(a=!0);var y=c.projection,A=y&&J.toString(y)!==J.toString(this.options.projection),_=!1;f(!0,this.userOptions,c),f(!0,this.options,c),"insets"in c&&(this.insets.forEach(function(p){return p.destroy()}),this.insets.length=0,_=!0),(A||"fitToGeometry"in c)&&delete this.fitToGeometryCache,(A||_)&&(this.chart.series.forEach(function(p){var C=p.transformGroups;if(p.clearBounds&&p.clearBounds(),p.isDirty=!0,p.isDirtyData=!0,_&&C)for(;C.length>1;){var k=C.pop();k&&k.destroy()}}),A&&(this.projection=new J(this.options.projection)),_&&this.createInsets(),c.center||P(c.zoom)||this.fitToBounds(void 0,void 0,!1)),c.center||P(c.zoom)?this.setView(this.options.center,c.zoom,!1):"fitToGeometry"in c&&this.fitToBounds(void 0,void 0,!1),a&&this.chart.redraw(s)},i.prototype.zoomBy=function(c,a,s,y){var A=this.chart,_=this.projection.forward(this.center),p=a?this.projection.forward(a):[],C=p[0],k=p[1];if(typeof c=="number"){var F=this.zoom+c,G=void 0;if(s){var I=s[0],j=s[1],N=this.getScale(),Z=I-A.plotLeft-A.plotWidth/2,$=j-A.plotTop-A.plotHeight/2;C=_[0]+Z/N,k=_[1]+$/N}typeof C=="number"&&typeof k=="number"&&(N=1-Math.pow(2,this.zoom)/Math.pow(2,F),Z=_[0]-C,$=_[1]-k,_[0]-=Z*N,_[1]+=$*N,G=this.projection.inverse(_)),this.setView(G,F,void 0,y)}else this.fitToBounds(void 0,void 0,void 0,y)},i.compositeBounds=function(c){if(c.length)return c.slice(1).reduce(function(a,s){return a.x1=Math.min(a.x1,s.x1),a.y1=Math.min(a.y1,s.y1),a.x2=Math.max(a.x2,s.x2),a.y2=Math.max(a.y2,s.y2),a},f(c[0]))},i}(),n=function(i){function c(a,s){var y=i.call(this,a.chart,s)||this;if(y.id=s.id,y.mapView=a,y.options=f(z,s),y.allBounds=[],y.options.geoBounds){var A=a.projection.path(y.options.geoBounds);y.geoBoundsProjectedBox=d(A),y.geoBoundsProjectedPolygon=A.map(function(_){return[_[1]||0,_[2]||0]})}return y}return D(c,i),c.prototype.getField=function(a){a===void 0&&(a=!0);var s=this.hitZone;if(s){var y=a?this.padding:[0,0,0,0],A=s.coordinates[0],_=A.map(function(I){return I[0]}),p=A.map(function(I){return I[1]}),C=Math.min.apply(0,_)+y[3],k=Math.max.apply(0,_)-y[1],F=Math.min.apply(0,p)+y[0],G=Math.max.apply(0,p)-y[2];if(P(C)&&P(F))return{x:C,y:F,width:k-C,height:G-F}}return i.prototype.getField.call(this,a)},c.prototype.getHitZone=function(){var a=this,s=a.chart,y=a.mapView,A=a.options,_=(A.field||{}).coordinates;if(_){var p=_[0];if(A.units==="percent"){var C=A.relativeTo==="mapBoundingBox"&&y.getMapBBox()||f(s.plotBox,{x:0,y:0});p=p.map(function(k){return[l(k[0]+"%",C.width,C.x),l(k[1]+"%",C.height,C.y)]})}return{type:"Polygon",coordinates:[p]}}},c.prototype.getProjectedBounds=function(){return r.compositeBounds(this.allBounds)},c.prototype.isInside=function(a){var s=this.geoBoundsProjectedBox,y=this.geoBoundsProjectedPolygon;return!!(s&&a.x>=s.x1&&a.x<=s.x2&&a.y>=s.y1&&a.y<=s.y2&&y&&u(a,y))},c.prototype.render=function(){var a=this,s=a.chart,y=a.mapView,A=a.options,_=A.borderPath||A.field;if(_&&y.group){var p=!0;this.border||(this.border=s.renderer.path().addClass("highcharts-mapview-inset-border").add(y.group),p=!1),s.styledMode||this.border.attr({stroke:A.borderColor,"stroke-width":A.borderWidth});var C=Math.round(this.border.strokeWidth())%2/2,k=A.relativeTo==="mapBoundingBox"&&y.getMapBBox()||y.playingField,F=(_.coordinates||[]).reduce(function(G,I){return I.reduce(function(j,N,Z){var $=N[0],Y=N[1];return A.units==="percent"&&($=s.plotLeft+l($+"%",k.width,k.x),Y=s.plotTop+l(Y+"%",k.height,k.y)),$=Math.floor($)+C,Y=Math.floor(Y)+C,j.push(Z===0?["M",$,Y]:["L",$,Y]),j},G)},[]);this.border[p?"animate":"attr"]({d:F})}},c.prototype.destroy=function(){this.border&&(this.border=this.border.destroy()),this.eventsToUnbind.forEach(function(a){return a()})},c.prototype.setUpEvents=function(){},c}(r);return g(V,"afterInit",function(){this.mapView=new r(this,this.options.mapView)}),r}),st(B,"Series/Map/MapSeries.js",[B["Core/Animation/AnimationUtilities.js"],B["Series/ColorMapComposition.js"],B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Chart/MapChart.js"],B["Series/Map/MapPoint.js"],B["Maps/MapView.js"],B["Core/Series/Series.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T){var d,u=this&&this.__extends||(d=function(A,_){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(p,C){p.__proto__=C}||function(p,C){for(var k in C)C.hasOwnProperty(k)&&(p[k]=C[k])},d(A,_)},function(A,_){function p(){this.constructor=A}d(A,_),A.prototype=_===null?Object.create(_):(p.prototype=_.prototype,new p)}),g=U.animObject,b=V.noop,v=J.splitPath,S=O.seriesTypes,P=S.column,E=S.scatter,M=T.extend,f=T.find,x=T.fireEvent,l=T.getNestedProperty,h=T.isArray,e=T.defined,r=T.isNumber,n=T.isObject,i=T.merge,c=T.objectEach,a=T.pick,s=T.splat,y=function(A){function _(){var p=A!==null&&A.apply(this,arguments)||this;return p.chart=void 0,p.data=void 0,p.group=void 0,p.joinBy=void 0,p.options=void 0,p.points=void 0,p.processedData=[],p}return u(_,A),_.prototype.animate=function(p){var C=this.chart,k=this.group,F=g(this.options.animation);C.renderer.isSVG&&(p?k.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.001,scaleY:.001}):k.animate({translateX:C.plotLeft,translateY:C.plotTop,scaleX:1,scaleY:1},F))},_.prototype.animateDrilldown=function(p){var C=this.chart,k=this.group;C.renderer.isSVG&&(p?k.attr({translateX:C.plotLeft+C.plotWidth/2,translateY:C.plotTop+C.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01}):(k.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)))},_.prototype.animateDrillupFrom=function(){var p=this.chart;p.renderer.isSVG&&this.group.animate({translateX:p.plotLeft+p.plotWidth/2,translateY:p.plotTop+p.plotHeight/2,scaleX:.1,scaleY:.1,opacity:.01})},_.prototype.animateDrillupTo=function(p){P.prototype.animateDrillupTo.call(this,p)},_.prototype.clearBounds=function(){this.points.forEach(function(p){delete p.bounds,delete p.insetIndex,delete p.projectedPath}),delete this.bounds},_.prototype.doFullTranslate=function(){return!!(this.isDirtyData||this.chart.isResizing||this.chart.renderer.isVML||!this.hasRendered)},_.prototype.drawMapDataLabels=function(){D.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},_.prototype.drawPoints=function(){var p=this,C=this,k=this,F=k.chart,G=k.group,I=k.transformGroups,j=I===void 0?[]:I,N=F.mapView,Z=F.renderer;N&&(this.transformGroups=j,j[0]||(j[0]=Z.g().add(G)),N.insets.forEach(function($,Y){j[Y+1]||j.push(Z.g().add(G))}),this.doFullTranslate()&&(this.points.forEach(function($){var Y=$.graphic,et=$.shapeArgs;$.group=j[typeof $.insetIndex=="number"?$.insetIndex+1:0],Y&&Y.parentGroup!==$.group&&Y.add($.group),et&&F.hasRendered&&!F.styledMode&&(et.fill=p.pointAttribs($,$.state).fill)}),P.prototype.drawPoints.apply(this),this.points.forEach(function($){var Y=$.graphic;if(Y){var et=Y.animate,rt="";$.name&&(rt+="highcharts-name-"+$.name.replace(/ /g,"-").toLowerCase()),$.properties&&$.properties["hc-key"]&&(rt+=" highcharts-key-"+$.properties["hc-key"].toString().toLowerCase()),rt&&Y.addClass(rt),F.styledMode&&Y.css(p.pointAttribs($,$.selected?"select":void 0)),Y.animate=function(it,ht,dt){var bt=r(it["stroke-width"])&&!r(Y["stroke-width"]),xt=r(Y["stroke-width"])&&!r(it["stroke-width"]);if(bt||xt){var St=a(C.getStrokeWidth(C.options),1)/(F.mapView&&F.mapView.getScale()||1);bt&&(Y["stroke-width"]=St),xt&&(it["stroke-width"]=St)}var wt=et.call(Y,it,ht,xt?function(){Y.element.removeAttribute("stroke-width"),delete Y["stroke-width"],dt&&dt.apply(this,arguments)}:dt);return wt}}})),j.forEach(function($,Y){var et=(Y===0?N:N.insets[Y-1]).getSVGTransform(),rt=a(p.getStrokeWidth(p.options),1),it=et.scaleX,ht=et.scaleY>0?1:-1,dt=function(wt){(C.points||[]).forEach(function(mt){var at,pt=mt.graphic;pt&&pt["stroke-width"]&&(at=p.getStrokeWidth(mt.options))&&pt.attr({"stroke-width":at/wt})})};if(Z.globalAnimation&&F.hasRendered){var bt=Number($.attr("translateX")),xt=Number($.attr("translateY")),St=Number($.attr("scaleX"));$.attr({animator:0}).animate({animator:1},{step:function(wt,mt){var at=St+(it-St)*mt.pos;$.attr({translateX:bt+(et.translateX-bt)*mt.pos,translateY:xt+(et.translateY-xt)*mt.pos,scaleX:at,scaleY:at*ht,"stroke-width":rt/at}),dt(at)}})}else $.attr(i(et,{"stroke-width":rt/it})),dt(it)}),this.drawMapDataLabels())},_.prototype.getProjectedBounds=function(){if(!this.bounds&&this.chart.mapView){var p=this.chart.mapView,C=p.insets,k=p.projection,F=[];(this.points||[]).forEach(function(G){if(G.path||G.geometry){if(typeof G.path=="string"?G.path=v(G.path):h(G.path)&&G.path[0]==="M"&&(G.path=w.prototype.pathToSegments(G.path)),!G.bounds){var I=G.getProjectedBounds(k);if(I){G.labelrank=a(G.labelrank,(I.x2-I.x1)*(I.y2-I.y1));var j=I.midX,N=I.midY;if(C&&r(j)&&r(N)){var Z=f(C,function($){return $.isInside({x:j,y:N})});Z&&(delete G.projectedPath,(I=G.getProjectedBounds(Z.projection))&&Z.allBounds.push(I),G.insetIndex=C.indexOf(Z))}G.bounds=I}}G.bounds&&G.insetIndex===void 0&&F.push(G.bounds)}}),this.bounds=W.compositeBounds(F)}return this.bounds},_.prototype.getStrokeWidth=function(p){var C=this.pointAttrToOptions;return p[C&&C["stroke-width"]||"borderWidth"]},_.prototype.hasData=function(){return!!this.processedXData.length},_.prototype.pointAttribs=function(p,C){var k=p.series.chart,F=k.mapView,G=k.styledMode?this.colorAttribs(p):P.prototype.pointAttribs.call(this,p,C),I=this.getStrokeWidth(p.options);if(C){var j=i(this.options.states[C],p.options.states&&p.options.states[C]||{}),N=this.getStrokeWidth(j);e(N)&&(I=N)}I&&F&&(I/=F.getScale());var Z=this.getStrokeWidth(this.options);return G.dashstyle&&F&&r(Z)&&(I=Z/F.getScale()),p.visible||(G.fill=this.options.nullColor),e(I)?G["stroke-width"]=I:delete G["stroke-width"],G["stroke-linecap"]=G["stroke-linejoin"]=this.options.linecap,G},_.prototype.updateData=function(){return!this.processedData&&A.prototype.updateData.apply(this,arguments)},_.prototype.setData=function(p,C,k,F){C===void 0&&(C=!0),delete this.bounds,A.prototype.setData.call(this,p,!1,void 0,F),this.processData(),this.generatePoints(),C&&this.chart.redraw(k)},_.prototype.processData=function(){var p,C,k,F,G=this.options,I=G.data,j=this.chart.options.chart,N=this.joinBy,Z=G.keys||this.pointArrayMap,$=[],Y={},et=this.chart.mapView,rt=et&&(n(G.mapData,!0)?et.getGeoMap(G.mapData):et.geoMap),it=this.chart.mapTransforms;this.chart.mapTransforms=it=j.mapTransforms||rt&&rt["hc-transform"]||it,it&&c(it,function(St){St.rotation&&(St.cosAngle=Math.cos(St.rotation),St.sinAngle=Math.sin(St.rotation))}),h(G.mapData)?F=G.mapData:rt&&rt.type==="FeatureCollection"&&(this.mapTitle=rt.title,F=V.geojson(rt,this.type,this)),this.processedData=[];var ht=this.processedData;if(I&&I.forEach(function(St,wt){var mt=0;if(r(St))ht[wt]={value:St};else if(h(St)){ht[wt]={},!G.keys&&St.length>Z.length&&typeof St[0]=="string"&&(ht[wt]["hc-key"]=St[0],++mt);for(var at=0;at<Z.length;++at,++mt)Z[at]&&St[mt]!==void 0&&(Z[at].indexOf(".")>0?q.prototype.setNestedProperty(ht[wt],St[mt],Z[at]):ht[wt][Z[at]]=St[mt])}else ht[wt]=I[wt];N&&N[0]==="_i"&&(ht[wt]._i=wt)}),F){for(this.mapData=F,this.mapMap={},k=0;k<F.length;k++)C=(p=F[k]).properties,p._i=k,N[0]&&C&&C[N[0]]&&(p[N[0]]=C[N[0]]),Y[p[N[0]]]=p;if(this.mapMap=Y,N[1]){var dt=N[1];ht.forEach(function(St){var wt=l(dt,St);Y[wt]&&$.push(Y[wt])})}if(G.allAreas){if(N[1]){var bt=N[1];ht.forEach(function(St){$.push(l(bt,St))})}var xt="|"+$.map(function(St){return St&&St[N[0]]}).join("|")+"|";F.forEach(function(St){N[0]&&xt.indexOf("|"+St[N[0]]+"|")!==-1||ht.push(i(St,{value:null}))})}}this.processedXData=new Array(ht.length)},_.prototype.setOptions=function(p){var C=D.prototype.setOptions.call(this,p),k=C.joinBy;return k===null&&(k="_i"),(k=this.joinBy=s(k))[1]||(k[1]=k[0]),C},_.prototype.translate=function(){var p=this,C=p.doFullTranslate(),k=this.chart.mapView,F=k&&k.projection;if(!this.chart.hasRendered||!this.isDirtyData&&this.hasRendered||(this.processData(),this.generatePoints(),delete this.bounds,!k||k.userOptions.center||r(k.userOptions.zoom)?this.getProjectedBounds():k.fitToBounds(void 0,void 0,!1)),k){var G=k.getSVGTransform();p.points.forEach(function(I){var j=r(I.insetIndex)&&k.insets[I.insetIndex].getSVGTransform()||G;j&&I.bounds&&r(I.bounds.midX)&&r(I.bounds.midY)&&(I.plotX=I.bounds.midX*j.scaleX+j.translateX,I.plotY=I.bounds.midY*j.scaleY+j.translateY),C&&(I.shapeType="path",I.shapeArgs={d:q.getProjectedPath(I,F)})})}x(p,"afterTranslate")},_.defaultOptions=i(E.defaultOptions,{affectsMapView:!0,animation:!1,dataLabels:{crop:!1,formatter:function(){var p=this.series.chart.numberFormatter,C=this.point.value;return r(C)?p(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"}}}),_}(E);return M(y.prototype,{type:"map",axisTypes:z.seriesMembers.axisTypes,colorAttribs:z.seriesMembers.colorAttribs,colorKey:z.seriesMembers.colorKey,directTouch:!0,drawDataLabels:b,drawGraph:b,drawLegendSymbol:K.drawRectangle,forceDL:!0,getCenter:X.getCenter,getExtremesFromAll:!0,getSymbol:b,isCartesian:!1,parallelArrays:z.seriesMembers.parallelArrays,pointArrayMap:z.seriesMembers.pointArrayMap,pointClass:q,preserveAspectRatio:!0,searchPoint:b,trackerGroups:z.seriesMembers.trackerGroups,useMapGeometry:!0}),z.compose(y),O.registerSeriesType("map",y),y}),st(B,"Series/MapLine/MapLineSeries.js",[B["Series/Map/MapSeries.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(O,w){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,d){T.__proto__=d}||function(T,d){for(var u in d)d.hasOwnProperty(u)&&(T[u]=d[u])},V(O,w)},function(O,w){function T(){this.constructor=O}V(O,w),O.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}),J=z.series,q=X.extend,W=X.merge,D=function(O){function w(){var T=O!==null&&O.apply(this,arguments)||this;return T.data=void 0,T.options=void 0,T.points=void 0,T}return K(w,O),w.prototype.pointAttribs=function(T,d){var u=U.prototype.pointAttribs.call(this,T,d);return u.fill=this.options.fillColor,u},w.defaultOptions=W(U.defaultOptions,{lineWidth:1,fillColor:"none"}),w}(U);return q(D.prototype,{type:"mapline",colorProp:"stroke",drawLegendSymbol:J.prototype.drawLegendSymbol,pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"}}),z.registerSeriesType("mapline",D),D}),st(B,"Series/MapPoint/MapPointPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(W,D){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,w){O.__proto__=w}||function(O,w){for(var T in w)w.hasOwnProperty(T)&&(O[T]=w[T])},X(W,D)},function(W,D){function O(){this.constructor=W}X(W,D),W.prototype=D===null?Object.create(D):(O.prototype=D.prototype,new O)}),K=U.seriesTypes.scatter,J=z.isNumber,q=function(W){function D(){var O=W!==null&&W.apply(this,arguments)||this;return O.options=void 0,O.series=void 0,O}return V(D,W),D.prototype.isValid=function(){return!!(this.options.geometry||J(this.x)&&J(this.y)||J(this.options.lon)&&J(this.options.lat))},D}(K.prototype.pointClass);return q}),st(B,"Series/MapPoint/MapPointSeries.js",[B["Core/Globals.js"],B["Series/MapPoint/MapPointPoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V,K){var J,q=this&&this.__extends||(J=function(v,S){return J=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(P,E){P.__proto__=E}||function(P,E){for(var M in E)E.hasOwnProperty(M)&&(P[M]=E[M])},J(v,S)},function(v,S){function P(){this.constructor=v}J(v,S),v.prototype=S===null?Object.create(S):(P.prototype=S.prototype,new P)}),W=U.noop,D=X.seriesTypes,O=D.map,w=D.scatter,T=K.extend,d=K.fireEvent,u=K.isNumber,g=K.merge,b=function(v){function S(){var P=v!==null&&v.apply(this,arguments)||this;return P.chart=void 0,P.data=void 0,P.options=void 0,P.points=void 0,P.clearBounds=O.prototype.clearBounds,P}return q(S,v),S.prototype.drawDataLabels=function(){v.prototype.drawDataLabels.call(this),this.dataLabelsGroup&&this.dataLabelsGroup.clip(this.chart.clipRect)},S.prototype.projectPoint=function(P){var E=this.chart.mapView;if(E){var M=P.geometry,f=P.lon,x=P.lat,l=M&&M.type==="Point"&&M.coordinates;if(u(f)&&u(x)&&(l=[f,x]),l)return E.lonLatToProjectedUnits({lon:l[0],lat:l[1]})}},S.prototype.translate=function(){var P=this,E=this.chart.mapView;if(this.processedXData||this.processData(),this.generatePoints(),this.getProjectedBounds&&this.isDirtyData&&(delete this.bounds,this.getProjectedBounds()),E){var M=E.getSVGTransform(),f=E.projection.hasCoordinates;this.points.forEach(function(x){var l,h=x.x,e=h===void 0?void 0:h,r=x.y,n=r===void 0?void 0:r,i=u(x.insetIndex)&&E.insets[x.insetIndex].getSVGTransform()||M,c=P.projectPoint(x.options)||x.properties&&P.projectPoint(x.properties);if(c?(e=c.x,n=c.y):x.bounds&&(e=x.bounds.midX,n=x.bounds.midY,i&&u(e)&&u(n)&&(x.plotX=e*i.scaleX+i.translateX,x.plotY=n*i.scaleY+i.translateY,l=!0)),u(e)&&u(n)){if(!l){var a=E.projectedUnitsToPixels({x:e,y:n});x.plotX=a.x,x.plotY=f?a.y:P.chart.plotHeight-a.y}}else x.y=x.plotX=x.plotY=void 0;x.isInside=P.isPointInside(x),x.zone=P.zones.length?x.getZone():void 0})}d(this,"afterTranslate")},S.defaultOptions=g(w.defaultOptions,{dataLabels:{crop:!1,defer:!1,enabled:!0,formatter:function(){return this.point.name},overflow:!1,style:{color:"#000000"}}}),S}(w);return V.prototype.symbols.mapmarker=function(v,S,P,E,M){var f,x,l=M&&M.context==="legend";l?(f=v+P/2,x=S+E):M&&typeof M.anchorX=="number"&&typeof M.anchorY=="number"?(f=M.anchorX,x=M.anchorY):(f=v+P/2,x=S+E/2,S-=E);var h=l?E/3:E/2;return[["M",f,x],["C",f,x,f-h,S+1.5*h,f-h,S+h],["A",h,h,1,1,1,f+h,S+h],["C",f+h,S+1.5*h,f,x,f,x],["Z"]]},T(b.prototype,{type:"mappoint",axisTypes:["colorAxis"],forceDL:!0,isCartesian:!1,pointClass:z,searchPoint:W,useMapGeometry:!0}),X.registerSeriesType("mappoint",b),b}),st(B,"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}}),st(B,"Series/Bubble/BubbleLegendItem.js",[B["Core/Color/Color.js"],B["Core/FormatUtilities.js"],B["Core/Globals.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=U.parse,J=X.noop,q=V.arrayMax,W=V.arrayMin,D=V.isNumber,O=V.merge,w=V.pick,T=V.stableSort;return function(){function d(u,g){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=J,this.init(u,g)}return d.prototype.init=function(u,g){this.options=u,this.visible=!0,this.chart=g.chart,this.legend=g},d.prototype.addToLegend=function(u){u.splice(this.options.legendIndex,0,this)},d.prototype.drawLegendSymbol=function(u){var g,b=this.chart,v=w(u.options.itemDistance,20),S=this.legendItem||{},P=this.options,E=P.ranges,M=P.connectorDistance;if(this.fontMetrics=b.renderer.fontMetrics(P.labels.style.fontSize),E&&E.length&&D(E[0].value)){T(E,function(h,e){return e.value-h.value}),this.ranges=E,this.setOptions(),this.render();var f=this.getMaxLabelSize(),x=this.ranges[0].radius,l=2*x;g=(g=M-x+f.width)>0?g:0,this.maxLabel=f,this.movementX=P.labels.align==="left"?g:0,S.labelWidth=l+g+v,S.labelHeight=l+this.fontMetrics.h/2}else u.options.bubbleLegend.autoRanges=!0},d.prototype.setOptions=function(){var u=this.ranges,g=this.options,b=this.chart.series[g.seriesIndex],v=this.legend.baseline,S={zIndex:g.zIndex,"stroke-width":g.borderWidth},P={zIndex:g.zIndex,"stroke-width":g.connectorWidth},E={align:this.legend.options.rtl||g.labels.align==="left"?"right":"left",zIndex:g.zIndex},M=b.options.marker.fillOpacity,f=this.chart.styledMode;u.forEach(function(x,l){f||(S.stroke=w(x.borderColor,g.borderColor,b.color),S.fill=w(x.color,g.color,M!==1?K(b.color).setOpacity(M).get("rgba"):b.color),P.stroke=w(x.connectorColor,g.connectorColor,b.color)),u[l].radius=this.getRangeRadius(x.value),u[l]=O(u[l],{center:u[0].radius-u[l].radius+v}),f||O(!0,u[l],{bubbleAttribs:O(S),connectorAttribs:O(P),labelAttribs:E})},this)},d.prototype.getRangeRadius=function(u){var g=this.options,b=this.options.seriesIndex,v=this.chart.series[b],S=g.ranges[0].value,P=g.ranges[g.ranges.length-1].value,E=g.minSize,M=g.maxSize;return v.getRadius.call(this,P,S,E,M,u)},d.prototype.render=function(){var u=this.legendItem||{},g=this.chart.renderer,b=this.options.zThreshold;this.symbols||(this.symbols={connectors:[],bubbleItems:[],labels:[]}),u.symbol=g.g("bubble-legend"),u.label=g.g("bubble-legend-item"),u.symbol.translateX=0,u.symbol.translateY=0;for(var v=0,S=this.ranges;v<S.length;v++){var P=S[v];P.value>=b&&this.renderRange(P)}u.symbol.add(u.label),u.label.add(u.group),this.hideOverlappingLabels()},d.prototype.renderRange=function(u){var g=this.ranges[0],b=this.legend,v=this.options,S=v.labels,P=this.chart,E=P.series[v.seriesIndex],M=P.renderer,f=this.symbols,x=f.labels,l=u.center,h=Math.abs(u.radius),e=v.connectorDistance||0,r=S.align,n=b.options.rtl,i=v.borderWidth,c=v.connectorWidth,a=g.radius||0,s=l-h-i/2+c/2,y=this.fontMetrics,A=y.f/2-(y.h-y.f)/2,_=(s%1?1:.5)-(c%2?0:.5),p=M.styledMode,C=n||r==="left"?-e:e;r==="center"&&(C=0,v.connectorDistance=0,u.labelAttribs.align="center");var k=s+v.labels.y,F=a+C+v.labels.x;f.bubbleItems.push(M.circle(a,l+_,h).attr(p?{}:u.bubbleAttribs).addClass((p?"highcharts-color-"+E.colorIndex+" ":"")+"highcharts-bubble-legend-symbol "+(v.className||"")).add(this.legendItem.symbol)),f.connectors.push(M.path(M.crispLine([["M",a,s],["L",a+C,s]],v.connectorWidth)).attr(p?{}:u.connectorAttribs).addClass((p?"highcharts-color-"+this.options.seriesIndex+" ":"")+"highcharts-bubble-legend-connectors "+(v.connectorClassName||"")).add(this.legendItem.symbol));var G=M.text(this.formatLabel(u),F,k+A).attr(p?{}:u.labelAttribs).css(p?{}:S.style).addClass("highcharts-bubble-legend-labels "+(v.labels.className||"")).add(this.legendItem.symbol);x.push(G),G.placed=!0,G.alignAttr={x:F,y:k+A}},d.prototype.getMaxLabelSize=function(){var u,g;return this.symbols.labels.forEach(function(b){g=b.getBBox(!0),u=u?g.width>u.width?g:u:g}),u||{}},d.prototype.formatLabel=function(u){var g=this.options,b=g.labels.formatter,v=g.labels.format,S=this.chart.numberFormatter;return v?z.format(v,u):b?b.call(u):S(u.value,1)},d.prototype.hideOverlappingLabels=function(){var u=this.chart,g=this.options.labels.allowOverlap,b=this.symbols;!g&&b&&(u.hideOverlappingLabels(b.labels),b.labels.forEach(function(v,S){v.newOpacity?v.newOpacity!==v.oldOpacity&&b.connectors[S].show():b.connectors[S].hide()}))},d.prototype.getRanges=function(){var u,g,b=this.legend.bubbleLegend,v=b.chart.series,S=b.options.ranges,P=Number.MAX_VALUE,E=-Number.MAX_VALUE;return v.forEach(function(M){M.isBubble&&!M.ignoreSeries&&(g=M.zData.filter(D)).length&&(P=w(M.options.zMin,Math.min(P,Math.max(W(g),M.options.displayNegative===!1?M.options.zThreshold:-Number.MAX_VALUE))),E=w(M.options.zMax,Math.max(E,q(g))))}),u=P===E?[{value:E}]:[{value:P},{value:(P+E)/2},{value:E,autoRanges:!0}],S.length&&S[0].radius&&u.reverse(),u.forEach(function(M,f){S&&S[f]&&(u[f]=O(S[f],M))}),u},d.prototype.predictBubbleSizes=function(){var u,g=this.chart,b=this.fontMetrics,v=g.legend.options,S=v.floating,P=v.layout==="horizontal",E=P?g.legend.lastLineHeight:0,M=g.plotSizeX,f=g.plotSizeY,x=g.series[this.options.seriesIndex],l=x.getPxExtremes(),h=Math.ceil(l.minPxSize),e=Math.ceil(l.maxPxSize),r=Math.min(f,M),n=x.options.maxSize;return S||!/%$/.test(n)?u=e:(n=parseFloat(n),u=(r+E-b.h/2)*n/100/(n/100+1),(P&&f-u>=M||!P&&M-u>=f)&&(u=e)),[h,Math.ceil(u)]},d.prototype.updateRanges=function(u,g){var b=this.legend.options.bubbleLegend;b.minSize=u,b.maxSize=g,b.ranges=this.getRanges()},d.prototype.correctSizes=function(){var u=this.legend,g=this.chart.series[this.options.seriesIndex].getPxExtremes(),b=g.maxPxSize,v=this.options.maxSize;Math.abs(Math.ceil(b)-v)>1&&(this.updateRanges(this.options.minSize,g.maxPxSize),u.render())},d}()}),st(B,"Series/Bubble/BubbleLegendComposition.js",[B["Series/Bubble/BubbleLegendDefaults.js"],B["Series/Bubble/BubbleLegendItem.js"],B["Core/Defaults.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K=X.setOptions,J=V.addEvent,q=V.objectEach,W=V.wrap,D=[];function O(b,v,S){var P,E,M,f=this,x=f.legend,l=w(f)>=0;x&&x.options.enabled&&x.bubbleLegend&&x.options.bubbleLegend.autoRanges&&l?(P=x.bubbleLegend.options,E=x.bubbleLegend.predictBubbleSizes(),x.bubbleLegend.updateRanges(E[0],E[1]),P.placed||(x.group.placed=!1,x.allItems.forEach(function(h){(M=h.legendItem||{}).group&&(M.group.translateY=null)})),x.render(),f.getMargins(),f.axes.forEach(function(h){h.visible&&h.render(),P.placed||(h.setScale(),h.updateNames(),q(h.ticks,function(e){e.isNew=!0,e.isNewLabel=!0}))}),P.placed=!0,f.getMargins(),b.call(f,v,S),x.bubbleLegend.correctSizes(),g(x,T(x))):(b.call(f,v,S),x&&x.options.enabled&&x.bubbleLegend&&(x.render(),g(x,T(x))))}function w(b){for(var v=b.series,S=0;S<v.length;){if(v[S]&&v[S].isBubble&&v[S].visible&&v[S].zData.length)return S;S++}return-1}function T(b){var v,S,P,E=b.allItems,M=[],f=E.length,x=0,l=0;for(x=0;x<f;x++)if(S=E[x].legendItem||{},P=(E[x+1]||{}).legendItem||{},S.labelHeight&&(E[x].itemHeight=S.labelHeight),E[x]===E[f-1]||S.y!==P.y){for(M.push({height:0}),v=M[M.length-1];l<=x;l++)E[l].itemHeight>v.height&&(v.height=E[l].itemHeight);v.step=x}return M}function d(b){var v=this,S=v.bubbleLegend,P=v.options,E=P.bubbleLegend,M=w(v.chart);S&&S.ranges&&S.ranges.length&&(E.ranges.length&&(E.autoRanges=!!E.ranges[0].autoRanges),v.destroyItem(S)),M>=0&&P.enabled&&E.enabled&&(E.seriesIndex=M,v.bubbleLegend=new z(E,v),v.bubbleLegend.addToLegend(b.allItems))}function u(){var b,v=this,S=v.chart,P=v.visible,E=v.chart.legend;E&&E.bubbleLegend&&(v.visible=!P,v.ignoreSeries=P,b=w(S)>=0,E.bubbleLegend.visible!==b&&(E.update({bubbleLegend:{enabled:b}}),E.bubbleLegend.visible=b),v.visible=P)}function g(b,v){var S,P,E,M,f=b.allItems,x=b.options.rtl,l=0;f.forEach(function(h,e){(M=h.legendItem||{}).group&&(S=M.group.translateX||0,P=M.y||0,((E=h.movementX)||x&&h.ranges)&&(E=x?S-h.options.maxSize/2:S+E,M.group.attr({translateX:E})),e>v[l].step&&l++,M.group.attr({translateY:Math.round(P+v[l].height/2)}),M.y=P+v[l].height/2)})}return{compose:function(b,v,S){D.indexOf(b)===-1&&(D.push(b),K({legend:{bubbleLegend:U}}),W(b.prototype,"drawChartBox",O)),D.indexOf(v)===-1&&(D.push(v),J(v,"afterGetAllItems",d)),D.indexOf(S)===-1&&(D.push(S),J(S,"legendItemClick",u))}}}),st(B,"Series/Bubble/BubblePoint.js",[B["Core/Series/Point.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(D,O){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var d in T)T.hasOwnProperty(d)&&(w[d]=T[d])},V(D,O)},function(D,O){function w(){this.constructor=D}V(D,O),D.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),J=z.seriesTypes.scatter.prototype.pointClass,q=X.extend,W=function(D){function O(){var w=D!==null&&D.apply(this,arguments)||this;return w.options=void 0,w.series=void 0,w}return K(O,D),O.prototype.haloPath=function(w){return U.prototype.haloPath.call(this,w===0?0:(this.marker&&this.marker.radius||0)+w)},O}(J);return q(W.prototype,{ttBelow:!1}),W}),st(B,"Series/Bubble/BubbleSeries.js",[B["Series/Bubble/BubbleLegendComposition.js"],B["Series/Bubble/BubblePoint.js"],B["Core/Color/Color.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J){var q,W=this&&this.__extends||(q=function(e,r){return q=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var c in i)i.hasOwnProperty(c)&&(n[c]=i[c])},q(e,r)},function(e,r){function n(){this.constructor=e}q(e,r),e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}),D=X.parse,O=V.noop,w=K.series,T=K.seriesTypes,d=T.column.prototype,u=T.scatter,g=J.addEvent,b=J.arrayMax,v=J.arrayMin,S=J.clamp,P=J.extend,E=J.isNumber,M=J.merge,f=J.pick,x=[];function l(){var e,r=this,n=this.len,i=this.chart,c=this.isXAxis,a=c?"xData":"yData",s=this.min,y=this.max-s,A=0,_=n,p=n/y;this.series.forEach(function(C){if(C.bubblePadding&&(C.visible||!i.options.chart.ignoreHiddenSeries)){r.allowZoomOutside=!0,e=!0;var k=C[a];if(c&&((C.onPoint||C).getRadii(0,0,C),C.onPoint&&(C.radii=C.onPoint.radii)),y>0){for(var F=k.length;F--;)if(E(k[F])&&r.dataMin<=k[F]&&k[F]<=r.max){var G=C.radii&&C.radii[F]||0;A=Math.min((k[F]-s)*p-G,A),_=Math.max((k[F]-s)*p+G,_)}}}}),e&&y>0&&!this.logarithmic&&(_-=n,p*=(n+Math.max(0,A)-Math.min(_,n))/n,[["min","userMin",A],["max","userMax",_]].forEach(function(C){f(r.options[C[0]],r[C[1]])===void 0&&(r[C[0]]+=C[2]/p)}))}var h=function(e){function r(){var n=e!==null&&e.apply(this,arguments)||this;return n.data=void 0,n.maxPxSize=void 0,n.minPxSize=void 0,n.options=void 0,n.points=void 0,n.radii=void 0,n.yData=void 0,n.zData=void 0,n}return W(r,e),r.compose=function(n,i,c,a){U.compose(i,c,a),x.indexOf(n)===-1&&(x.push(n),n.prototype.beforePadding=l)},r.prototype.animate=function(n){!n&&this.points.length<this.options.animationLimit&&this.points.forEach(function(i){var c=i.graphic;c&&c.width&&(this.hasRendered||c.attr({x:i.plotX,y:i.plotY,width:1,height:1}),c.animate(this.markerAttribs(i),this.options.animation))},this)},r.prototype.getRadii=function(){var n,i,c,a=this,s=this.zData,y=this.yData,A=[],_=this.chart.bubbleZExtremes,p=this.getPxExtremes(),C=p.minPxSize,k=p.maxPxSize;if(!_){var F,G=Number.MAX_VALUE,I=-Number.MAX_VALUE;this.chart.series.forEach(function(j){if(j.bubblePadding&&(j.visible||!a.chart.options.chart.ignoreHiddenSeries)){var N=(j.onPoint||j).getZExtremes();N&&(G=Math.min(G||N.zMin,N.zMin),I=Math.max(I||N.zMax,N.zMax),F=!0)}}),F?(_={zMin:G,zMax:I},this.chart.bubbleZExtremes=_):_={zMin:0,zMax:0}}for(i=0,n=s.length;i<n;i++)c=s[i],A.push(this.getRadius(_.zMin,_.zMax,C,k,c,y&&y[i]));this.radii=A},r.prototype.getRadius=function(n,i,c,a,s,y){var A=this.options,_=A.sizeBy!=="width",p=A.zThreshold,C=i-n,k=.5;if(y===null||s===null)return null;if(E(s)){if(A.sizeByAbsoluteValue&&(s=Math.abs(s-p),i=C=Math.max(i-p,Math.abs(n-p)),n=0),s<n)return c/2-1;C>0&&(k=(s-n)/C)}return _&&k>=0&&(k=Math.sqrt(k)),Math.ceil(c+k*(a-c))/2},r.prototype.hasData=function(){return!!this.processedXData.length},r.prototype.pointAttribs=function(n,i){var c=this.options.marker.fillOpacity,a=w.prototype.pointAttribs.call(this,n,i);return c!==1&&(a.fill=D(a.fill).setOpacity(c).get("rgba")),a},r.prototype.translate=function(){e.prototype.translate.call(this),this.getRadii(),this.translateBubble()},r.prototype.translateBubble=function(){for(var n=this.data,i=this.radii,c=this.getPxExtremes().minPxSize,a=n.length;a--;){var s=n[a],y=i?i[a]:0;E(y)&&y>=c/2?(s.marker=P(s.marker,{radius:y,width:2*y,height:2*y}),s.dlBox={x:s.plotX-y,y:s.plotY-y,width:2*y,height:2*y}):(s.shapeArgs=s.plotY=s.dlBox=void 0,s.isInside=!1)}},r.prototype.getPxExtremes=function(){var n=Math.min(this.chart.plotWidth,this.chart.plotHeight),i=function(a){var s;return typeof a=="string"&&(s=/%$/.test(a),a=parseInt(a,10)),s?n*a/100:a},c=i(f(this.options.minSize,8));return{minPxSize:c,maxPxSize:Math.max(i(f(this.options.maxSize,"20%")),c)}},r.prototype.getZExtremes=function(){var n=this.options,i=(this.zData||[]).filter(E);if(i.length){var c=f(n.zMin,S(v(i),n.displayNegative===!1?n.zThreshold||0:-Number.MAX_VALUE,Number.MAX_VALUE)),a=f(n.zMax,b(i));if(E(c)&&E(a))return{zMin:c,zMax:a}}},r.defaultOptions=M(u.defaultOptions,{dataLabels:{formatter:function(){var n=this.series.chart.numberFormatter,i=this.point.z;return E(i)?n(i,-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"}),r}(u);return P(h.prototype,{alignDataLabel:d.alignDataLabel,applyZones:O,bubblePadding:!0,buildKDTree:O,directTouch:!0,isBubble:!0,pointArrayMap:["y","z"],pointClass:z,parallelArrays:["x","y","z"],trackerGroups:["group","dataLabelsGroup"],specialGroup:"group",zoneAxis:"z"}),g(h,"updatedData",function(e){delete e.target.chart.bubbleZExtremes}),g(h,"remove",function(e){delete e.target.chart.bubbleZExtremes}),K.registerSeriesType("bubble",h),h}),st(B,"Series/MapBubble/MapBubblePoint.js",[B["Series/Bubble/BubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(D,O){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,T){w.__proto__=T}||function(w,T){for(var d in T)T.hasOwnProperty(d)&&(w[d]=T[d])},V(D,O)},function(D,O){function w(){this.constructor=D}V(D,O),D.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),J=z.seriesTypes.map.prototype.pointClass.prototype,q=X.extend,W=function(D){function O(){return D!==null&&D.apply(this,arguments)||this}return K(O,D),O.prototype.isValid=function(){return typeof this.z=="number"},O}(U);return q(W.prototype,{applyOptions:J.applyOptions,getProjectedBounds:J.getProjectedBounds}),W}),st(B,"Series/MapBubble/MapBubbleSeries.js",[B["Series/Bubble/BubbleSeries.js"],B["Series/MapBubble/MapBubblePoint.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X,V){var K,J=this&&this.__extends||(K=function(d,u){return K=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(g,b){g.__proto__=b}||function(g,b){for(var v in b)b.hasOwnProperty(v)&&(g[v]=b[v])},K(d,u)},function(d,u){function g(){this.constructor=d}K(d,u),d.prototype=u===null?Object.create(u):(g.prototype=u.prototype,new g)}),q=X.seriesTypes,W=q.map.prototype,D=q.mappoint.prototype,O=V.extend,w=V.merge,T=function(d){function u(){var g=d!==null&&d.apply(this,arguments)||this;return g.data=void 0,g.options=void 0,g.points=void 0,g.clearBounds=W.clearBounds,g}return J(u,d),u.prototype.searchPoint=function(g,b){return this.searchKDTree({clientX:g.chartX-this.chart.plotLeft,plotY:g.chartY-this.chart.plotTop},b,g)},u.prototype.translate=function(){D.translate.call(this),this.getRadii(),this.translateBubble()},u.defaultOptions=w(U.defaultOptions,{lineWidth:0,animationLimit:500,joinBy:"hc-key",tooltip:{pointFormat:"{point.name}: {point.z}"}}),u}(U);return O(T.prototype,{type:"mapbubble",axisTypes:["colorAxis"],getProjectedBounds:W.getProjectedBounds,isCartesian:!1,pointArrayMap:["z"],pointClass:z,processData:W.processData,projectPoint:D.projectPoint,setData:W.setData,setOptions:W.setOptions,updateData:W.updateData,useMapGeometry:!0,xyFromShape:!0}),X.registerSeriesType("mapbubble",T),T}),st(B,"Series/Heatmap/HeatmapPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(w,T){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,u){d.__proto__=u}||function(d,u){for(var g in u)u.hasOwnProperty(g)&&(d[g]=u[g])},X(w,T)},function(w,T){function d(){this.constructor=w}X(w,T),w.prototype=T===null?Object.create(T):(d.prototype=T.prototype,new d)}),K=U.seriesTypes.scatter.prototype.pointClass,J=z.clamp,q=z.defined,W=z.extend,D=z.pick,O=function(w){function T(){var d=w!==null&&w.apply(this,arguments)||this;return d.options=void 0,d.series=void 0,d.value=void 0,d.x=void 0,d.y=void 0,d}return V(T,w),T.prototype.applyOptions=function(d,u){return(this.isNull||this.value===null)&&delete this.color,w.prototype.applyOptions.call(this,d,u),this.formatPrefix=this.isNull||this.value===null?"null":"point",this},T.prototype.getCellAttributes=function(){var d=this,u=d.series,g=u.options,b=(g.colsize||1)/2,v=(g.rowsize||1)/2,S=u.xAxis,P=u.yAxis,E=d.options.marker||u.options.marker,M=u.pointPlacementToXValue(),f=D(d.pointPadding,g.pointPadding,0),x={x1:J(Math.round(S.len-S.translate(d.x-b,!1,!0,!1,!0,-M)),-S.len,2*S.len),x2:J(Math.round(S.len-S.translate(d.x+b,!1,!0,!1,!0,-M)),-S.len,2*S.len),y1:J(Math.round(P.translate(d.y-v,!1,!0,!1,!0)),-P.len,2*P.len),y2:J(Math.round(P.translate(d.y+v,!1,!0,!1,!0)),-P.len,2*P.len)};return[["width","x"],["height","y"]].forEach(function(l){var h=l[0],e=l[1],r=e+"1",n=e+"2",i=Math.abs(x[r]-x[n]),c=E&&E.lineWidth||0,a=Math.abs(x[r]+x[n])/2,s=E&&E[h];if(q(s)&&s<i){var y=s/2+c/2;x[r]=a-y,x[n]=a+y}f&&(e==="y"&&(r=n,n=e+"1"),x[r]+=f,x[n]-=f)}),x},T.prototype.haloPath=function(d){if(!d)return[];var u=this.shapeArgs||{},g=u.x,b=g===void 0?0:g,v=u.y,S=v===void 0?0:v,P=u.width,E=P===void 0?0:P,M=u.height,f=M===void 0?0:M;return[["M",b-d,S-d],["L",b-d,S+f+d],["L",b+E+d,S+f+d],["L",b+E+d,S-d],["Z"]]},T.prototype.isValid=function(){return this.value!==1/0&&this.value!==-1/0},T}(K);return W(O.prototype,{dataLabelOnNull:!0,moveToTopOnHover:!0,ttBelow:!1}),O}),st(B,"Series/Heatmap/HeatmapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Series/Heatmap/HeatmapPoint.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Renderer/SVG/SVGRenderer.js"],B["Core/Utilities.js"]],function(U,z,X,V,K,J,q){var W,D=this&&this.__extends||(W=function(M,f){return W=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(x,l){x.__proto__=l}||function(x,l){for(var h in l)l.hasOwnProperty(h)&&(x[h]=l[h])},W(M,f)},function(M,f){function x(){this.constructor=M}W(M,f),M.prototype=f===null?Object.create(f):(x.prototype=f.prototype,new x)}),O=K.series,w=K.seriesTypes,T=w.column,d=w.scatter,u=J.prototype.symbols,g=q.extend,b=q.fireEvent,v=q.isNumber,S=q.merge,P=q.pick,E=function(M){function f(){var x=M!==null&&M.apply(this,arguments)||this;return x.colorAxis=void 0,x.data=void 0,x.options=void 0,x.points=void 0,x.valueMax=NaN,x.valueMin=NaN,x}return D(f,M),f.prototype.drawPoints=function(){var x=this;((this.options.marker||{}).enabled||this._hasPointMarkers)&&(O.prototype.drawPoints.call(this),this.points.forEach(function(l){l.graphic&&(l.graphic[x.chart.styledMode?"css":"animate"](x.colorAttribs(l)),l.value===null&&l.graphic.addClass("highcharts-null-point"))}))},f.prototype.getExtremes=function(){var x=O.prototype.getExtremes.call(this,this.valueData),l=x.dataMin,h=x.dataMax;return v(l)&&(this.valueMin=l),v(h)&&(this.valueMax=h),O.prototype.getExtremes.call(this)},f.prototype.getValidPoints=function(x,l){return O.prototype.getValidPoints.call(this,x,l,!0)},f.prototype.hasData=function(){return!!this.processedXData.length},f.prototype.init=function(){M.prototype.init.apply(this,arguments);var x=this.options;x.pointRange=P(x.pointRange,x.colsize||1),this.yAxis.axisPointRange=x.rowsize||1,u.ellipse=u.circle,x.marker&&(x.marker.r=x.borderRadius)},f.prototype.markerAttribs=function(x,l){var h=x.shapeArgs||{};if(x.hasImage)return{x:x.plotX,y:x.plotY};if(l&&l!=="normal"){var e=x.options.marker||{},r=this.options.marker||{},n=r.states&&r.states[l]||{},i=e.states&&e.states[l]||{},c=(i.width||n.width||h.width||0)+(i.widthPlus||n.widthPlus||0),a=(i.height||n.height||h.height||0)+(i.heightPlus||n.heightPlus||0);return{x:(h.x||0)+((h.width||0)-c)/2,y:(h.y||0)+((h.height||0)-a)/2,width:c,height:a}}return h},f.prototype.pointAttribs=function(x,l){var h=this,e=O.prototype.pointAttribs.call(h,x,l),r=h.options||{},n=h.chart.options.plotOptions||{},i=n.series||{},c=n.heatmap||{},a=x&&x.options.borderColor||r.borderColor||c.borderColor||i.borderColor,s=x&&x.options.borderWidth||r.borderWidth||c.borderWidth||i.borderWidth||e["stroke-width"];if(e.stroke=x&&x.marker&&x.marker.lineColor||r.marker&&r.marker.lineColor||a||this.color,e["stroke-width"]=s,l&&l!=="normal"){var y=S(r.states&&r.states[l],r.marker&&r.marker.states&&r.marker.states[l],x&&x.options.states&&x.options.states[l]||{});e.fill=y.color||U.parse(e.fill).brighten(y.brightness||0).get(),e.stroke=y.lineColor||e.stroke}return e},f.prototype.translate=function(){var x=this,l=x.options,h=l.marker&&l.marker.symbol||"rect",e=u[h]?h:"rect",r=["circle","square"].indexOf(e)!==-1;x.generatePoints(),x.points.forEach(function(n){var i=n.getCellAttributes(),c=Math.min(i.x1,i.x2),a=Math.min(i.y1,i.y2),s=Math.max(Math.abs(i.x2-i.x1),0),y=Math.max(Math.abs(i.y2-i.y1),0);if(n.hasImage=(n.marker&&n.marker.symbol||h||"").indexOf("url")===0,r){var A=Math.abs(s-y);c=Math.min(i.x1,i.x2)+(s<y?0:A/2),a=Math.min(i.y1,i.y2)+(s<y?A/2:0),s=y=Math.min(s,y)}n.hasImage&&(n.marker={width:s,height:y}),n.plotX=n.clientX=(i.x1+i.x2)/2,n.plotY=(i.y1+i.y2)/2,n.shapeType="path",n.shapeArgs=S(!0,{x:c,y:a,width:s,height:y},{d:u[e](c,a,s,y,{r:l.borderRadius})})}),b(x,"afterTranslate")},f.defaultOptions=S(d.defaultOptions,{animation:!1,borderRadius:0,borderWidth:0,nullColor:"#f7f7f7",dataLabels:{formatter:function(){var x=this.series.chart.numberFormatter,l=this.point.value;return v(l)?x(l,-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}}}),f}(d);return g(E.prototype,{axisTypes:z.seriesMembers.axisTypes,colorKey:z.seriesMembers.colorKey,directTouch:!0,getExtremesFromAll:!0,parallelArrays:z.seriesMembers.parallelArrays,pointArrayMap:["y","value"],pointClass:X,specialGroup:"group",trackerGroups:z.seriesMembers.trackerGroups,alignDataLabel:T.prototype.alignDataLabel,colorAttribs:z.seriesMembers.colorAttribs,drawLegendSymbol:V.drawRectangle,getSymbol:O.prototype.getSymbol}),z.compose(E),K.registerSeriesType("heatmap",E),E}),st(B,"masters/modules/map.src.js",[B["Core/Globals.js"],B["Core/Axis/Color/ColorAxis.js"],B["Series/MapBubble/MapBubbleSeries.js"],B["Core/Chart/MapChart.js"],B["Maps/MapView.js"],B["Maps/Projection.js"]],function(U,z,X,V,K,J){var q=U;q.ColorAxis=z,q.MapChart=V,q.mapChart=q.Map=V.mapChart,q.MapView=K,q.maps=V.maps,q.Projection=J,z.compose(q.Chart,q.Fx,q.Legend,q.Series),X.compose(q.Axis,q.Chart,q.Legend,q.Series)})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},1548:(tt,ot,lt)=>{var ct,ut,ft;ft=function(yt){var B=yt?yt._modules:{};function st(U,z,X,V){U.hasOwnProperty(z)||(U[z]=V.apply(null,X),typeof CustomEvent=="function"&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:z,module:U[z]}})))}st(B,"Series/ColorMapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=U.seriesTypes.column.prototype,K=z.addEvent,J=z.defined;return function(q){var W=[];function D(O){var w=this;w.moveToTopOnHover&&w.graphic&&w.graphic.attr({zIndex:O&&O.state==="hover"?1:0})}q.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))}},q.seriesMembers={colorKey:"value",axisTypes:["xAxis","yAxis","colorAxis"],parallelArrays:["x","y","value"],pointArrayMap:["value"],trackerGroups:["group","markerGroup","dataLabelsGroup"],colorAttribs:function(O){var w={};return!J(O.color)||O.state&&O.state!=="normal"||(w[this.colorProp||"fill"]=O.color),w},pointAttribs:V.pointAttribs},q.compose=function(O){var w=O.prototype.pointClass;return W.indexOf(w)===-1&&(W.push(w),K(w,"afterSetState",D)),O}}(X||(X={})),X}),st(B,"Series/Treemap/TreemapAlgorithmGroup.js",[],function(){return function(){function U(z,X,V,K){this.height=z,this.width=X,this.plot=K,this.direction=V,this.startDirection=V,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(J,q){return Math.max(J/q,q/J)}}}return U.prototype.addElement=function(z){this.lP.total=this.elArr[this.elArr.length-1],this.total=this.total+z,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(z)},U.prototype.reset=function(){this.nW=0,this.lW=0,this.elArr=[],this.total=0},U}()}),st(B,"Series/DrawPointUtilities.js",[B["Core/Utilities.js"]],function(U){return{draw:function(z,X){var V=X.animatableAttribs,K=X.onComplete,J=X.css,q=X.renderer,W=z.series&&z.series.chart.hasRendered?void 0:z.series&&z.series.options.animation,D=z.graphic;if(X.attribs=X.attribs||{},X.attribs.class=z.getClassName(),z.shouldDraw())D||(z.graphic=D=X.shapeType==="text"?q.text():q[X.shapeType](X.shapeArgs||{}),D.add(X.group)),J&&D.css(J),D.attr(X.attribs).animate(V,!X.isNew&&W,K);else if(D){var O=function(){z.graphic=D=D&&D.destroy(),typeof K=="function"&&K()};Object.keys(V).length?D.animate(V,void 0,function(){return O()}):O()}}}}),st(B,"Series/Treemap/TreemapPoint.js",[B["Series/DrawPointUtilities.js"],B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z,X){var V,K=this&&this.__extends||(V=function(u,g){return V=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,v){b.__proto__=v}||function(b,v){for(var S in v)v.hasOwnProperty(S)&&(b[S]=v[S])},V(u,g)},function(u,g){function b(){this.constructor=u}V(u,g),u.prototype=g===null?Object.create(g):(b.prototype=g.prototype,new b)}),J=z.series.prototype.pointClass,q=z.seriesTypes,W=q.pie.prototype.pointClass,D=q.scatter.prototype.pointClass,O=X.extend,w=X.isNumber,T=X.pick,d=function(u){function g(){var b=u!==null&&u.apply(this,arguments)||this;return b.name=void 0,b.node=void 0,b.options=void 0,b.series=void 0,b.shapeType="rect",b.value=void 0,b}return K(g,u),g.prototype.draw=function(b){U.draw(this,b)},g.prototype.getClassName=function(){var b=J.prototype.getClassName.call(this),v=this.series,S=v.options;return this.node.level<=v.nodeMap[v.rootNode].level?b+=" highcharts-above-level":this.node.isLeaf||T(S.interactByLeaf,!S.allowTraversingTree)?this.node.isLeaf||(b+=" highcharts-internal-node"):b+=" highcharts-internal-node-interactive",b},g.prototype.isValid=function(){return!!(this.id||w(this.value))},g.prototype.setState=function(b){J.prototype.setState.call(this,b),this.graphic&&this.graphic.attr({zIndex:b==="hover"?1:0})},g.prototype.shouldDraw=function(){return w(this.plotY)&&this.y!==null},g}(D);return O(d.prototype,{setVisible:W.prototype.setVisible}),d}),st(B,"Series/Treemap/TreemapUtilities.js",[B["Core/Utilities.js"]],function(U){var z,X=U.objectEach;return function(V){V.AXIS_MAX=100,V.isBoolean=function(K){return typeof K=="boolean"},V.eachObject=function(K,J,q){q=q||this,X(K,function(W,D){J.call(q,W,D,K)})},V.recursive=function K(J,q,W){var D;W===void 0&&(W=this),(D=q.call(W,J))!==!1&&K(D,q,W)}}(z||(z={})),z}),st(B,"Series/TreeUtilities.js",[B["Core/Color/Color.js"],B["Core/Utilities.js"]],function(U,z){var X=z.extend,V=z.isArray,K=z.isNumber,J=z.isObject,q=z.merge,W=z.pick;return{getColor:function(D,O){var w,T,d,u,g,b,v=O.index,S=O.mapOptionsToLevel,P=O.parentColor,E=O.parentColorIndex,M=O.series,f=O.colors,x=O.siblings,l=M.points,h=M.chart.options.chart;return D&&(w=l[D.i],T=S[D.level]||{},w&&T.colorByPoint&&(u=w.index%(f?f.length:h.colorCount),d=f&&f[u]),M.chart.styledMode||(g=W(w&&w.options.color,T&&T.color,d,P&&function(e){var r=T&&T.colorVariation;return r&&r.key==="brightness"&&v&&x?U.parse(e).brighten(r.to*(v/x)).get():e}(P),M.color)),b=W(w&&w.options.colorIndex,T&&T.colorIndex,u,E,O.colorIndex)),{color:g,colorIndex:b}},getLevelOptions:function(D){var O,w,T,d,u,g,b={};if(J(D))for(d=K(D.from)?D.from:1,g=D.levels,w={},O=J(D.defaults)?D.defaults:{},V(g)&&(w=g.reduce(function(v,S){var P,E,M;return J(S)&&K(S.level)&&(M=q({},S),E=W(M.levelIsConstant,O.levelIsConstant),delete M.levelIsConstant,delete M.level,P=S.level+(E?0:d-1),J(v[P])?q(!0,v[P],M):v[P]=M),v},{})),u=K(D.to)?D.to:1,T=0;T<=u;T++)b[T]=q({},O,J(w[T])?w[T]:{});return b},setTreeValues:function D(O,w){var T=w.before,d=w.idRoot,u=w.mapIdToNode[d],g=w.levelIsConstant!==!1,b=w.points[O.i],v=b&&b.options||{},S=[],P=0;O.levelDynamic=O.level-(g?0:u.level),O.name=W(b&&b.name,""),O.visible=d===O.id||w.visible===!0,typeof T=="function"&&(O=T(O,w)),O.children.forEach(function(M,f){var x=X({},w);X(x,{index:f,siblings:O.children.length,visible:O.visible}),M=D(M,x),S.push(M),M.visible&&(P+=M.val)});var E=W(v.value,P);return O.visible=E>=0&&(P>0||O.visible),O.children=S,O.childrenTotal=P,O.isLeaf=O.visible&&!P,O.val=E,O},updateRootId:function(D){var O,w;return J(D)&&(w=J(D.options)?D.options:{},O=W(D.rootNode,w.rootId,""),J(D.userOptions)&&(D.userOptions.rootId=O),D.rootNode=O),O}}}),st(B,"Extensions/Breadcrumbs.js",[B["Core/Chart/Chart.js"],B["Core/Defaults.js"],B["Core/Globals.js"],B["Core/Utilities.js"],B["Core/FormatUtilities.js"]],function(U,z,X,V,K){var J=z.defaultOptions,q=K.format,W=V.addEvent,D=V.objectEach,O=V.extend,w=V.fireEvent,T=V.merge,d=V.pick,u=V.defined,g=V.isString;O(J.lang,{mainBreadcrumb:"Main"});var b=function(){function v(S,P){this.group=void 0,this.list=[],this.elementList={},this.isDirty=!0,this.level=0,this.options=void 0;var E=T(S.options.drilldown&&S.options.drilldown.drillUpButton,v.defaultBreadcrumbsOptions,S.options.navigation&&S.options.navigation.breadcrumbs,P);this.chart=S,this.options=E||{}}return v.prototype.updateProperties=function(S){this.setList(S),this.setLevel(),this.isDirty=!0},v.prototype.setList=function(S){this.list=S},v.prototype.setLevel=function(){this.level=this.list.length&&this.list.length-1},v.prototype.getLevel=function(){return this.level},v.prototype.getButtonText=function(S){var P=this.chart,E=this.options,M=P.options.lang,f=d(E.format,E.showFullPath?"{level.name}":"← {level.name}"),x=M&&d(M.drillUpText,M.mainBreadcrumb),l=E.formatter&&E.formatter(S)||q(f,{level:S.levelOptions},P)||"";return(g(l)&&!l.length||l==="← ")&&u(x)&&(l=E.showFullPath?x:"← "+x),l},v.prototype.redraw=function(){this.isDirty&&this.render(),this.group&&this.group.align(),this.isDirty=!1},v.prototype.render=function(){var S=this,P=S.chart,E=S.options;!S.group&&E&&(S.group=P.renderer.g("breadcrumbs-group").addClass("highcharts-no-tooltip highcharts-breadcrumbs").attr({zIndex:E.zIndex}).add()),E.showFullPath?this.renderFullPathButtons():this.renderSingleButton(),this.alignBreadcrumbsGroup()},v.prototype.renderFullPathButtons=function(){this.destroySingleButton(),this.resetElementListState(),this.updateListElements(),this.destroyListElements()},v.prototype.renderSingleButton=function(){var S=this,P=S.chart,E=S.list,M=S.options.buttonSpacing;this.destroyListElements();var f=S.group?S.group.getBBox().width:M,x=M,l=E[E.length-2];!P.drillUpButton&&this.level>0?P.drillUpButton=S.renderButton(l,f,x):P.drillUpButton&&(this.level>0?this.updateSingleButton():this.destroySingleButton())},v.prototype.alignBreadcrumbsGroup=function(S){var P=this;if(P.group){var E=P.options,M=E.buttonTheme,f=E.position,x=E.relativeTo==="chart"||E.relativeTo==="spacingBox"?void 0:"scrollablePlotBox",l=P.group.getBBox(),h=2*(M.padding||0)+E.buttonSpacing;f.width=l.width+h,f.height=l.height+h;var e=T(f);S&&(e.x+=S),P.options.rtl&&(e.x+=f.width),e.y=d(e.y,this.yOffset,0),P.group.align(e,!0,x)}},v.prototype.renderButton=function(S,P,E){var M=this,f=this.chart,x=M.options,l=T(x.buttonTheme),h=f.renderer.button(M.getButtonText(S),P,E,function(e){var r,n=x.events&&x.events.click;n&&(r=n.call(M,e,S)),r!==!1&&(x.showFullPath?e.newLevel=S.level:e.newLevel=M.level-1,w(M,"up",e))},l).addClass("highcharts-breadcrumbs-button").add(M.group);return f.styledMode||h.attr(x.style),h},v.prototype.renderSeparator=function(S,P){var E=this.chart,M=this.options.separator,f=E.renderer.label(M.text,S,P,void 0,void 0,void 0,!1).addClass("highcharts-breadcrumbs-separator").add(this.group);return E.styledMode||f.css(M.style),f},v.prototype.update=function(S){T(!0,this.options,S),this.destroy(),this.isDirty=!0},v.prototype.updateSingleButton=function(){var S=this.chart,P=this.list[this.level-1];S.drillUpButton&&S.drillUpButton.attr({text:this.getButtonText(P)})},v.prototype.destroy=function(){this.destroySingleButton(),this.destroyListElements(!0),this.group&&this.group.destroy(),this.group=void 0},v.prototype.destroyListElements=function(S){var P=this.elementList;D(P,function(E,M){!S&&P[M].updated||((E=P[M]).button&&E.button.destroy(),E.separator&&E.separator.destroy(),delete E.button,delete E.separator,delete P[M])}),S&&(this.elementList={})},v.prototype.destroySingleButton=function(){this.chart.drillUpButton&&(this.chart.drillUpButton.destroy(),this.chart.drillUpButton=void 0)},v.prototype.resetElementListState=function(){D(this.elementList,function(S){S.updated=!1})},v.prototype.updateListElements=function(){var S,P=this,E=P.elementList,M=P.options.buttonSpacing,f=P.list,x=P.options.rtl,l=x?-1:1,h=function(i,c){return l*i.getBBox().width+l*c},e=function(i,c,a){i.translate(c-i.getBBox().width,a)},r=P.group?h(P.group,M):M,n=M;f.forEach(function(i,c){var a,s,y=c===f.length-1;E[i.level]?(a=(S=E[i.level]).button,S.separator||y?S.separator&&y&&(S.separator.destroy(),delete S.separator):(r+=l*M,S.separator=P.renderSeparator(r,n),x&&e(S.separator,r,n),r+=h(S.separator,M)),E[i.level].updated=!0):(a=P.renderButton(i,r,n),x&&e(a,r,n),r+=h(a,M),y||(s=P.renderSeparator(r,n),x&&e(s,r,n),r+=h(s,M)),E[i.level]={button:a,separator:s,updated:!0}),a&&a.setState(y?2:0)})},v.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},v}();return X.Breadcrumbs||(X.Breadcrumbs=b,W(U,"getMargins",function(){var v=this.breadcrumbs;if(v&&!v.options.floating&&v.level){var S=v.options,P=S.buttonTheme,E=(P.height||0)+2*(P.padding||0)+S.buttonSpacing,M=S.position.verticalAlign;M==="bottom"?(this.marginBottom=(this.marginBottom||0)+E,v.yOffset=E):M!=="middle"?(this.plotTop+=E,v.yOffset=-E):v.yOffset=void 0}}),W(U,"redraw",function(){this.breadcrumbs&&this.breadcrumbs.redraw()}),W(U,"destroy",function(){this.breadcrumbs&&(this.breadcrumbs.destroy(),this.breadcrumbs=void 0)}),W(U,"afterShowResetZoom",function(){var v=this;if(v.breadcrumbs){var S=v.resetZoomButton&&v.resetZoomButton.getBBox(),P=v.breadcrumbs.options;S&&P.position.align==="right"&&P.relativeTo==="plotBox"&&v.breadcrumbs.alignBreadcrumbsGroup(-S.width-P.buttonSpacing)}}),W(U,"selection",function(v){v.resetSelection===!0&&this.breadcrumbs&&this.breadcrumbs.alignBreadcrumbsGroup()})),b}),st(B,"Series/Treemap/TreemapComposition.js",[B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapUtilities.js"],B["Core/Utilities.js"]],function(U,z,X){var V=U.series,K=X.addEvent,J=X.extend,q=!1;K(V,"afterBindAxes",function(){var W,D=this,O=D.xAxis,w=D.yAxis;O&&w&&(D.is("treemap")?(W={endOnTick:!1,gridLineWidth:0,lineWidth:0,min:0,minPadding:0,max:z.AXIS_MAX,maxPadding:0,startOnTick:!1,title:void 0,tickPositions:[]},J(w.options,W),J(O.options,W),q=!0):q&&(w.setOptions(w.userOptions),O.setOptions(O.userOptions),q=!1))})}),st(B,"Series/Treemap/TreemapNode.js",[],function(){return function(){function U(){this.childrenTotal=0,this.visible=!1}return U.prototype.init=function(z,X,V,K,J,q,W){return this.id=z,this.i=X,this.children=V,this.height=K,this.level=J,this.series=q,this.parent=W,this},U}()}),st(B,"Series/Treemap/TreemapSeries.js",[B["Core/Color/Color.js"],B["Series/ColorMapComposition.js"],B["Core/Globals.js"],B["Core/Legend/LegendSymbol.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Treemap/TreemapAlgorithmGroup.js"],B["Series/Treemap/TreemapPoint.js"],B["Series/Treemap/TreemapUtilities.js"],B["Series/TreeUtilities.js"],B["Extensions/Breadcrumbs.js"],B["Core/Utilities.js"],B["Series/Treemap/TreemapNode.js"]],function(U,z,X,V,K,J,q,W,D,O,w,T){var d,u=this&&this.__extends||(d=function(k,F){return d=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(G,I){G.__proto__=I}||function(G,I){for(var j in I)I.hasOwnProperty(j)&&(G[j]=I[j])},d(k,F)},function(k,F){function G(){this.constructor=k}d(k,F),k.prototype=F===null?Object.create(F):(G.prototype=F.prototype,new G)}),g=U.parse,b=X.noop,v=K.series,S=K.seriesTypes,P=S.column,E=S.heatmap,M=S.scatter,f=D.getColor,x=D.getLevelOptions,l=D.updateRootId,h=w.addEvent,e=w.correctFloat,r=w.defined,n=w.error,i=w.extend,c=w.fireEvent,a=w.isArray,s=w.isObject,y=w.isString,A=w.merge,_=w.pick,p=w.stableSort,C=function(k){function F(){var G=k!==null&&k.apply(this,arguments)||this;return G.axisRatio=void 0,G.data=void 0,G.mapOptionsToLevel=void 0,G.nodeMap=void 0,G.nodeList=void 0,G.options=void 0,G.points=void 0,G.rootNode=void 0,G.tree=void 0,G.level=void 0,G}return u(F,k),F.prototype.algorithmCalcPoints=function(G,I,j,N){var Z,$,Y,et,rt,it=j.lW,ht=j.lH,dt=j.plot,bt=0,xt=j.elArr.length-1;I?(it=j.nW,ht=j.nH):rt=j.elArr[j.elArr.length-1],j.elArr.forEach(function(St){(I||bt<xt)&&(j.direction===0?(Z=dt.x,$=dt.y,et=St/(Y=it)):(Z=dt.x,$=dt.y,Y=St/(et=ht)),N.push({x:Z,y:$,width:Y,height:e(et)}),j.direction===0?dt.y=dt.y+et:dt.x=dt.x+Y),bt+=1}),j.reset(),j.direction===0?j.width=j.width-it:j.height=j.height-ht,dt.y=dt.parent.y+(dt.parent.height-j.height),dt.x=dt.parent.x+(dt.parent.width-j.width),G&&(j.direction=1-j.direction),I||j.addElement(rt)},F.prototype.algorithmFill=function(G,I,j){var N,Z,$,Y,et,rt=[],it=I.direction,ht=I.x,dt=I.y,bt=I.width,xt=I.height;return j.forEach(function(St){N=I.width*I.height*(St.val/I.val),Z=ht,$=dt,it===0?(bt-=Y=N/(et=xt),ht+=Y):(xt-=et=N/(Y=bt),dt+=et),rt.push({x:Z,y:$,width:Y,height:et}),G&&(it=1-it)}),rt},F.prototype.algorithmLowAspectRatio=function(G,I,j){var N,Z=[],$=this,Y={x:I.x,y:I.y,parent:I},et=I.direction,rt=0,it=j.length-1,ht=new J(I.height,I.width,et,Y);return j.forEach(function(dt){N=I.width*I.height*(dt.val/I.val),ht.addElement(N),ht.lP.nR>ht.lP.lR&&$.algorithmCalcPoints(G,!1,ht,Z,Y),rt===it&&$.algorithmCalcPoints(G,!0,ht,Z,Y),rt+=1}),Z},F.prototype.alignDataLabel=function(G,I,j){var N=j.style;N&&!r(N.textOverflow)&&I.text&&I.getBBox().width>I.text.textWidth&&I.css({textOverflow:"ellipsis",width:N.width+="px"}),P.prototype.alignDataLabel.apply(this,arguments),G.dataLabel&&G.dataLabel.attr({zIndex:(G.node.zIndex||0)+1})},F.prototype.calculateChildrenAreas=function(G,I){var j,N,Z=this,$=Z.options,Y=Z.mapOptionsToLevel[G.level+1],et=_(Z[Y&&Y.layoutAlgorithm]&&Y.layoutAlgorithm,$.layoutAlgorithm),rt=$.alternateStartingDirection;N=G.children.filter(function(it){return!it.ignore}),Y&&Y.layoutStartingDirection&&(I.direction=Y.layoutStartingDirection==="vertical"?0:1),j=Z[et](I,N),N.forEach(function(it,ht){var dt=j[ht];it.values=A(dt,{val:it.childrenTotal,direction:rt?1-I.direction:I.direction}),it.pointValues=A(dt,{x:dt.x/Z.axisRatio,y:W.AXIS_MAX-dt.y-dt.height,width:dt.width/Z.axisRatio}),it.children.length&&Z.calculateChildrenAreas(it,it.values)})},F.prototype.createList=function(G){var I=this.chart,j=I.breadcrumbs,N=[];if(j){var Z=0;N.push({level:Z,levelOptions:I.series[0]});for(var $=G.target.nodeMap[G.newRootId],Y=[];$.parent||$.parent==="";)Y.push($),$=G.target.nodeMap[$.parent];Y.reverse().forEach(function(et){N.push({level:++Z,levelOptions:et})}),N.length<=1&&(N.length=0)}return N},F.prototype.drawDataLabels=function(){var G,I,j=this,N=j.mapOptionsToLevel;j.points.filter(function(Z){return Z.node.visible}).forEach(function(Z){I=N[Z.node.level],G={style:{}},Z.node.isLeaf||(G.enabled=!1),I&&I.dataLabels&&(G=A(G,I.dataLabels),j._hasPointLabels=!0),Z.shapeArgs&&(G.style.width=Z.shapeArgs.width,Z.dataLabel&&Z.dataLabel.css({width:Z.shapeArgs.width+"px"})),Z.dlOptions=A(G,Z.options.dataLabels)}),v.prototype.drawDataLabels.call(this)},F.prototype.drawPoints=function(G){G===void 0&&(G=this.points);var I=this,j=I.chart,N=j.renderer,Z=j.styledMode,$=I.options,Y=Z?{}:$.shadow,et=$.borderRadius,rt=j.pointCount<$.animationLimit,it=$.allowTraversingTree;G.forEach(function(ht){var dt=ht.node.levelDynamic,bt={},xt={},St={},wt="level-group-"+ht.node.level,mt=!!ht.graphic,at=rt&&mt,pt=ht.shapeArgs;ht.shouldDraw()&&(ht.isInside=!0,et&&(xt.r=et),A(!0,at?bt:xt,mt?pt:{},Z?{}:I.pointAttribs(ht,ht.selected?"select":void 0)),I.colorAttribs&&Z&&i(St,I.colorAttribs(ht)),I[wt]||(I[wt]=N.g(wt).attr({zIndex:1e3-(dt||0)}).add(I.group),I[wt].survive=!0)),ht.draw({animatableAttribs:bt,attribs:xt,css:St,group:I[wt],renderer:N,shadow:Y,shapeArgs:pt,shapeType:ht.shapeType}),it&&ht.graphic&&(ht.drillId=$.interactByLeaf?I.drillToByLeaf(ht):I.drillToByGroup(ht))})},F.prototype.drillToByGroup=function(G){var I=!1;return G.node.level-this.nodeMap[this.rootNode].level!=1||G.node.isLeaf||(I=G.id),I},F.prototype.drillToByLeaf=function(G){var I,j=this,N=!1;if(G.node.parent!==j.rootNode&&G.node.isLeaf)for(I=G.node;!N;)(I=j.nodeMap[I.parent]).parent===j.rootNode&&(N=I.id);return N},F.prototype.drillToNode=function(G,I){n(32,!1,void 0,{"treemap.drillToNode":"use treemap.setRootNode"}),this.setRootNode(G,I)},F.prototype.drillUp=function(){var G=this,I=G.nodeMap[G.rootNode];I&&y(I.parent)&&G.setRootNode(I.parent,!0,{trigger:"traverseUpButton"})},F.prototype.getExtremes=function(){var G=v.prototype.getExtremes.call(this,this.colorValueData),I=G.dataMin,j=G.dataMax;return this.valueMin=I,this.valueMax=j,v.prototype.getExtremes.call(this)},F.prototype.getListOfParents=function(G,I){var j=a(G)?G:[],N=a(I)?I:[],Z=j.reduce(function($,Y,et){var rt=_(Y.parent,"");return $[rt]===void 0&&($[rt]=[]),$[rt].push(et),$},{"":[]});return W.eachObject(Z,function($,Y,et){Y!==""&&N.indexOf(Y)===-1&&($.forEach(function(rt){et[""].push(rt)}),delete et[Y])}),Z},F.prototype.getTree=function(){var G=this,I=this.data.map(function(N){return N.id}),j=G.getListOfParents(this.data,I);return G.nodeMap={},G.nodeList=[],G.buildTree("",-1,0,j)},F.prototype.buildTree=function(G,I,j,N,Z){var $,Y,et=this,rt=[],it=et.points[I],ht=0;return(N[G]||[]).forEach(function(dt){Y=et.buildTree(et.points[dt].id,dt,j+1,N,G),ht=Math.max(Y.height+1,ht),rt.push(Y)}),$=new et.NodeClass().init(G,I,rt,ht,j,et,Z),rt.forEach(function(dt){dt.parentNode=$}),et.nodeMap[$.id]=$,et.nodeList.push($),it&&(it.node=$,$.point=it),$},F.prototype.hasData=function(){return!!this.processedXData.length},F.prototype.init=function(G,I){var j,N=this,Z=A(I.drillUpButton,I.breadcrumbs);j=h(N,"setOptions",function($){var Y=$.userOptions;r(Y.allowDrillToNode)&&!r(Y.allowTraversingTree)&&(Y.allowTraversingTree=Y.allowDrillToNode,delete Y.allowDrillToNode),r(Y.drillUpButton)&&!r(Y.traverseUpButton)&&(Y.traverseUpButton=Y.drillUpButton,delete Y.drillUpButton)}),v.prototype.init.call(N,G,I),delete N.opacity,N.eventsToUnbind.push(j),N.options.allowTraversingTree&&(N.eventsToUnbind.push(h(N,"click",N.onClickDrillToNode)),N.eventsToUnbind.push(h(N,"setRootNode",function($){var Y=N.chart;Y.breadcrumbs&&Y.breadcrumbs.updateProperties(N.createList($))})),N.eventsToUnbind.push(h(N,"update",function($,Y){var et=this.chart.breadcrumbs;et&&$.options.breadcrumbs&&et.update($.options.breadcrumbs)})),N.eventsToUnbind.push(h(N,"destroy",function($){var Y=this.chart;Y.breadcrumbs&&(Y.breadcrumbs.destroy(),$.keepEventsForUpdate||(Y.breadcrumbs=void 0))}))),G.breadcrumbs||(G.breadcrumbs=new O(G,Z)),N.eventsToUnbind.push(h(G.breadcrumbs,"up",function($){for(var Y=this.level-$.newLevel,et=0;et<Y;et++)N.drillUp()}))},F.prototype.onClickDrillToNode=function(G){var I=G.point,j=I&&I.drillId;y(j)&&(I.setState(""),this.setRootNode(j,!0,{trigger:"click"}))},F.prototype.pointAttribs=function(G,I){var j,N,Z=s(this.mapOptionsToLevel)?this.mapOptionsToLevel:{},$=G&&Z[G.node.level]||{},Y=this.options,et=I&&Y.states&&Y.states[I]||{},rt=G&&G.getClassName()||"";return j={stroke:G&&G.borderColor||$.borderColor||et.borderColor||Y.borderColor,"stroke-width":_(G&&G.borderWidth,$.borderWidth,et.borderWidth,Y.borderWidth),dashstyle:G&&G.borderDashStyle||$.borderDashStyle||et.borderDashStyle||Y.borderDashStyle,fill:G&&G.color||this.color},rt.indexOf("highcharts-above-level")!==-1?(j.fill="none",j["stroke-width"]=0):rt.indexOf("highcharts-internal-node-interactive")!==-1?(N=_(et.opacity,Y.opacity),j.fill=g(j.fill).setOpacity(N).get(),j.cursor="pointer"):rt.indexOf("highcharts-internal-node")!==-1?j.fill="none":I&&(j.fill=g(j.fill).brighten(et.brightness).get()),j},F.prototype.setColorRecursive=function(G,I,j,N,Z){var $,Y,et=this,rt=et&&et.chart,it=rt&&rt.options&&rt.options.colors;G&&($=f(G,{colors:it,index:N,mapOptionsToLevel:et.mapOptionsToLevel,parentColor:I,parentColorIndex:j,series:et,siblings:Z}),(Y=et.points[G.i])&&(Y.color=$.color,Y.colorIndex=$.colorIndex),(G.children||[]).forEach(function(ht,dt){et.setColorRecursive(ht,$.color,$.colorIndex,dt,G.children.length)}))},F.prototype.setPointValues=function(){var G=this,I=G.points,j=G.xAxis,N=G.yAxis,Z=G.chart.styledMode;I.forEach(function($){var Y=$.node,et=Y.pointValues,rt=Y.visible;if(et&&rt){var it=et.height,ht=et.width,dt=et.x,bt=et.y,xt=function(vt){return Z?0:(G.pointAttribs(vt)["stroke-width"]||0)%2/2}($),St=Math.round(j.toPixels(dt,!0))-xt,wt=Math.round(j.toPixels(dt+ht,!0))-xt,mt=Math.round(N.toPixels(bt,!0))-xt,at=Math.round(N.toPixels(bt+it,!0))-xt,pt={x:Math.min(St,wt),y:Math.min(mt,at),width:Math.abs(wt-St),height:Math.abs(at-mt)};$.plotX=pt.x+pt.width/2,$.plotY=pt.y+pt.height/2,$.shapeArgs=pt}else delete $.plotX,delete $.plotY})},F.prototype.setRootNode=function(G,I,j){var N=this,Z=i({newRootId:G,previousRootId:N.rootNode,redraw:_(I,!0),series:N},j);c(N,"setRootNode",Z,function($){var Y=$.series;Y.idPreviousRoot=$.previousRootId,Y.rootNode=$.newRootId,Y.isDirty=!0,$.redraw&&Y.chart.redraw()})},F.prototype.setState=function(G){this.options.inactiveOtherPoints=!0,v.prototype.setState.call(this,G,!1),this.options.inactiveOtherPoints=!1},F.prototype.setTreeValues=function(G){var I,j=this,N=j.options,Z=j.rootNode,$=j.nodeMap[Z],Y=!W.isBoolean(N.levelIsConstant)||N.levelIsConstant,et=0,rt=[],it=j.points[G.i];return G.children.forEach(function(ht){ht=j.setTreeValues(ht),rt.push(ht),ht.ignore||(et+=ht.val)}),p(rt,function(ht,dt){return(ht.sortIndex||0)-(dt.sortIndex||0)}),I=_(it&&it.options.value,et),it&&(it.value=I),i(G,{children:rt,childrenTotal:et,ignore:!(_(it&&it.visible,!0)&&I>0),isLeaf:G.visible&&!et,levelDynamic:G.level-(Y?0:$.level),name:_(it&&it.name,""),sortIndex:_(it&&it.sortIndex,-I),val:I}),G},F.prototype.sliceAndDice=function(G,I){return this.algorithmFill(!0,G,I)},F.prototype.squarified=function(G,I){return this.algorithmLowAspectRatio(!0,G,I)},F.prototype.strip=function(G,I){return this.algorithmLowAspectRatio(!1,G,I)},F.prototype.stripes=function(G,I){return this.algorithmFill(!1,G,I)},F.prototype.translate=function(){var G,I,j,N,Z,$=this,Y=$.options,et=l($);v.prototype.translate.call($),N=$.tree=$.getTree(),G=$.nodeMap[et],et===""||G&&G.children.length||($.setRootNode("",!1),et=$.rootNode,G=$.nodeMap[et]),$.mapOptionsToLevel=x({from:G.level+1,levels:Y.levels,to:N.height,defaults:{levelIsConstant:$.options.levelIsConstant,colorByPoint:Y.colorByPoint}}),W.recursive($.nodeMap[$.rootNode],function(rt){var it=!1,ht=rt.parent;return rt.visible=!0,(ht||ht==="")&&(it=$.nodeMap[ht]),it}),W.recursive($.nodeMap[$.rootNode].children,function(rt){var it=!1;return rt.forEach(function(ht){ht.visible=!0,ht.children.length&&(it=(it||[]).concat(ht.children))}),it}),$.setTreeValues(N),$.axisRatio=$.xAxis.len/$.yAxis.len,$.nodeMap[""].pointValues=I={x:0,y:0,width:W.AXIS_MAX,height:W.AXIS_MAX},$.nodeMap[""].values=j=A(I,{width:I.width*$.axisRatio,direction:Y.layoutStartingDirection==="vertical"?0:1,val:N.val}),$.calculateChildrenAreas(N,j),$.colorAxis||Y.colorByPoint||$.setColorRecursive($.tree),Y.allowTraversingTree&&(Z=G.pointValues,$.xAxis.setExtremes(Z.x,Z.x+Z.width,!1),$.yAxis.setExtremes(Z.y,Z.y+Z.height,!1),$.xAxis.setScale(),$.yAxis.setScale()),$.setPointValues()},F.defaultOptions=A(M.defaultOptions,{allowTraversingTree:!1,animationLimit:250,borderRadius:0,showInLegend:!1,marker:void 0,colorByPoint:!1,dataLabels:{defer:!1,enabled:!0,formatter:function(){var G=this&&this.point?this.point:{};return y(G.name)?G.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:E?0:.1,halo:!1,opacity:.75,shadow:!1}}}),F}(M);return i(C.prototype,{buildKDTree:b,colorAttribs:z.seriesMembers.colorAttribs,colorKey:"colorValue",directTouch:!0,drawLegendSymbol:V.drawRectangle,getExtremesFromAll:!0,getSymbol:b,optionalAxis:"colorAxis",parallelArrays:["x","y","value","colorValue"],pointArrayMap:["value"],pointClass:q,NodeClass:T,trackerGroups:["group","dataLabelsGroup"],utils:{recursive:W.recursive}}),z.compose(C),K.registerSeriesType("treemap",C),C}),st(B,"Series/Sunburst/SunburstPoint.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=this&&this.__extends||(X=function(O,w){return X=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(T,d){T.__proto__=d}||function(T,d){for(var u in d)d.hasOwnProperty(u)&&(T[u]=d[u])},X(O,w)},function(O,w){function T(){this.constructor=O}X(O,w),O.prototype=w===null?Object.create(w):(T.prototype=w.prototype,new T)}),K=U.series.prototype.pointClass,J=U.seriesTypes.treemap.prototype.pointClass,q=z.correctFloat,W=z.extend,D=function(O){function w(){var T=O!==null&&O.apply(this,arguments)||this;return T.node=void 0,T.options=void 0,T.series=void 0,T.shapeExisting=void 0,T.shapeType=void 0,T}return V(w,O),w.prototype.getDataLabelPath=function(T){var d,u=this.series.chart.renderer,g=this.shapeExisting,b=g.start,v=g.end,S=b+(v-b)/2,P=S<0&&S>-Math.PI||S>Math.PI,E=g.r+(T.options.distance||0);return b===-Math.PI/2&&q(v)===q(1.5*Math.PI)&&(b=-Math.PI+Math.PI/360,v=-Math.PI/360,P=!0),v-b>Math.PI&&(P=!1,d=!0),this.dataLabelPath&&(this.dataLabelPath=this.dataLabelPath.destroy()),this.dataLabelPath=u.arc({open:!0,longArc:d?1:0}).attr({start:P?b:v,end:P?v:b,clockwise:+P,x:g.x,y:g.y,r:(E+g.innerR)/2}).add(u.defs),this.dataLabelPath},w.prototype.isValid=function(){return!0},w}(J);return W(D.prototype,{getClassName:K.prototype.getClassName,haloPath:K.prototype.haloPath,setState:K.prototype.setState}),D}),st(B,"Series/Sunburst/SunburstUtilities.js",[B["Core/Series/SeriesRegistry.js"],B["Core/Utilities.js"]],function(U,z){var X,V=U.seriesTypes.treemap,K=z.isNumber,J=z.isObject,q=z.merge;return function(W){function D(O,w){var T,d=[];if(K(O)&&K(w)&&O<=w)for(T=O;T<=w;T++)d.push(T);return d}W.recursive=V.prototype.utils.recursive,W.calculateLevelSizes=function(O,w){var T,d,u,g,b,v,S,P=J(w)?w:{},E=0;return J(O)&&(T=q({},O),v=K(P.from)?P.from:0,S=K(P.to)?P.to:0,u=D(v,S),g=Object.keys(T).filter(function(M){return u.indexOf(+M)===-1}),d=b=K(P.diffRadius)?P.diffRadius:0,u.forEach(function(M){var f=T[M],x=f.levelSize.unit,l=f.levelSize.value;x==="weight"?E+=l:x==="percentage"?(f.levelSize={unit:"pixels",value:l/100*d},b-=f.levelSize.value):x==="pixels"&&(b-=l)}),u.forEach(function(M){var f,x=T[M];x.levelSize.unit==="weight"&&(f=x.levelSize.value,T[M].levelSize={unit:"pixels",value:f/E*b})}),g.forEach(function(M){T[M].levelSize={value:0,unit:"pixels"}})),T},W.getLevelFromAndTo=function(O){var w=O.level;return{from:w>0?w:1,to:w+O.height}},W.range=D}(X||(X={})),X}),st(B,"Series/Sunburst/SunburstNode.js",[B["Series/Treemap/TreemapNode.js"]],function(U){var z,X=this&&this.__extends||(z=function(K,J){return z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(q,W){q.__proto__=W}||function(q,W){for(var D in W)W.hasOwnProperty(D)&&(q[D]=W[D])},z(K,J)},function(K,J){function q(){this.constructor=K}z(K,J),K.prototype=J===null?Object.create(J):(q.prototype=J.prototype,new q)}),V=function(K){function J(){return K!==null&&K.apply(this,arguments)||this}return X(J,K),J}(U);return V}),st(B,"Series/Sunburst/SunburstSeries.js",[B["Series/CenteredUtilities.js"],B["Core/Globals.js"],B["Core/Series/SeriesRegistry.js"],B["Series/Sunburst/SunburstPoint.js"],B["Series/Sunburst/SunburstUtilities.js"],B["Series/TreeUtilities.js"],B["Core/Utilities.js"],B["Series/Sunburst/SunburstNode.js"]],function(U,z,X,V,K,J,q,W){var D,O=this&&this.__extends||(D=function(_,p){return D=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,k){C.__proto__=k}||function(C,k){for(var F in k)k.hasOwnProperty(F)&&(C[F]=k[F])},D(_,p)},function(_,p){function C(){this.constructor=_}D(_,p),_.prototype=p===null?Object.create(p):(C.prototype=p.prototype,new C)}),w=U.getCenter,T=U.getStartAndEndRadians,d=z.noop,u=X.series,g=X.seriesTypes,b=g.column,v=g.treemap,S=J.getColor,P=J.getLevelOptions,E=J.setTreeValues,M=J.updateRootId,f=q.defined,x=q.error,l=q.extend,h=q.isNumber,e=q.isObject,r=q.isString,n=q.merge,i=q.splat,c=180/Math.PI,a=function(_,p,C,k){return{x:_+Math.cos(C)*k,y:p+Math.sin(C)*k}};function s(_,p,C){var k;return _.node.isLeaf||(k=p===_.id?C[p].parent:_.id),k}function y(_,p){var C=p.mapIdToNode,k=_.parent,F=k?C[k]:void 0,G=p.series,I=G.chart,j=G.points[_.i],N=G.options.colors||I&&I.options.colors,Z=S(_,{colors:N,colorIndex:G.colorIndex,index:p.index,mapOptionsToLevel:p.mapOptionsToLevel,parentColor:F&&F.color,parentColorIndex:F&&F.colorIndex,series:p.series,siblings:p.siblings});return _.color=Z.color,_.colorIndex=Z.colorIndex,j&&(j.color=_.color,j.colorIndex=_.colorIndex,_.sliced=_.id!==p.idRoot&&j.sliced),_}var A=function(_){function p(){var C=_!==null&&_.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 O(p,_),p.prototype.alignDataLabel=function(C,k,F){if(!F.textPath||!F.textPath.enabled)return _.prototype.alignDataLabel.apply(this,arguments)},p.prototype.animate=function(C){var k,F=this.chart,G=[F.plotWidth/2,F.plotHeight/2],I=F.plotLeft,j=F.plotTop,N=this.group;C?(k={translateX:G[0]+I,translateY:G[1]+j,scaleX:.001,scaleY:.001,rotation:10,opacity:.01},N.attr(k)):(k={translateX:I,translateY:j,scaleX:1,scaleY:1,rotation:0,opacity:1},N.animate(k,this.options.animation))},p.prototype.drawPoints=function(){var C,k=this,F=k.mapOptionsToLevel,G=k.shapeRoot,I=k.group,j=k.hasRendered,N=k.rootNode,Z=k.idPreviousRoot,$=k.nodeMap,Y=$[Z],et=Y&&Y.shapeArgs,rt=k.points,it=k.startAndEndRadians,ht=k.chart,dt=ht&&ht.options&&ht.options.chart||{},bt=typeof dt.animation!="boolean"||dt.animation,xt=k.center,St={x:xt[0],y:xt[1]},wt=xt[3]/2,mt=k.chart.renderer,at=!1,pt=!1,vt=!!(bt&&j&&N!==Z&&k.dataLabelsGroup);vt&&(k.dataLabelsGroup.attr({opacity:0}),C=function(){var Ct=k;at=!0,Ct.dataLabelsGroup&&Ct.dataLabelsGroup.animate({opacity:1,visibility:"inherit"})}),rt.forEach(function(Ct){var Tt,At,Lt=Ct.node,Ot=F[Lt.level],_t=Ct.shapeExisting||{},It=Lt.shapeArgs||{},zt=!(!Lt.visible||!Lt.shapeArgs);Tt=j&&bt?function(Rt,Ut){var Xt=Ut.point,Ht=Ut.radians,qt=Ut.innerR,Kt=Ut.idRoot,fe=Ut.idPreviousRoot,Qt=Ut.shapeExisting,oe=Ut.shapeRoot,xe=Ut.shapePreviousRoot,Qe=Ut.visible,ce={},Me={end:Rt.end,start:Rt.start,innerR:Rt.innerR,r:Rt.r,x:Rt.x,y:Rt.y};return Qe?!Xt.graphic&&xe&&((ce=Kt===Xt.id?{start:Ht.start,end:Ht.end}:xe.end<=Rt.start?{start:Ht.end,end:Ht.end}:{start:Ht.start,end:Ht.start}).innerR=ce.r=qt):Xt.graphic&&(fe===Xt.id?Me={innerR:qt,r:qt}:oe&&(Me=oe.end<=Qt.start?{innerR:qt,r:qt,start:Ht.end,end:Ht.end}:{innerR:qt,r:qt,start:Ht.start,end:Ht.start})),{from:ce,to:Me}}(It,{center:St,point:Ct,radians:it,innerR:wt,idRoot:N,idPreviousRoot:Z,shapeExisting:_t,shapeRoot:G,shapePreviousRoot:et,visible:zt}):{to:It,from:{}},l(Ct,{shapeExisting:It,tooltipPos:[It.plotX,It.plotY],drillId:s(Ct,N,$),name:""+(Ct.name||Ct.id||Ct.index),plotX:It.plotX,plotY:It.plotY,value:Lt.val,isInside:zt,isNull:!zt}),Ct.dlOptions=function(Rt){var Ut,Xt,Ht=Rt.point,qt=e(Rt.shapeArgs)?Rt.shapeArgs:{},Kt=e(Rt.optionsPoint)?Rt.optionsPoint.dataLabels:{},fe=i(e(Rt.level)?Rt.level.dataLabels:{})[0],Qt=n({style:{}},fe,Kt),oe=Qt.rotationMode;return h(Qt.rotation)||(oe!=="auto"&&oe!=="circular"||(Ht.innerArcLength<1&&Ht.outerArcLength>qt.radius?(Ut=0,Ht.dataLabelPath&&oe==="circular"&&(Qt.textPath={enabled:!0})):Ht.innerArcLength>1&&Ht.outerArcLength>1.5*qt.radius?oe==="circular"?Qt.textPath={enabled:!0,attributes:{dy:5}}:oe="parallel":(Ht.dataLabel&&Ht.dataLabel.textPath&&oe==="circular"&&(Qt.textPath={enabled:!1}),oe="perpendicular")),oe!=="auto"&&oe!=="circular"&&(Ut=qt.end-(qt.end-qt.start)/2),oe==="parallel"?Qt.style.width=Math.min(2.5*qt.radius,(Ht.outerArcLength+Ht.innerArcLength)/2):!f(Qt.style.width)&&qt.radius&&(Qt.style.width=Ht.node.level===1?2*qt.radius:qt.radius),oe==="perpendicular"&&Ht.series.chart.renderer.fontMetrics(Qt.style.fontSize).h>Ht.outerArcLength&&(Qt.style.width=1),Qt.style.width=Math.max(Qt.style.width-2*(Qt.padding||0),1),Xt=Ut*c%180,oe==="parallel"&&(Xt-=90),Xt>90?Xt-=180:Xt<-90&&(Xt+=180),Qt.rotation=Xt),Qt.textPath&&(Ht.shapeExisting.innerR===0&&Qt.textPath.enabled?(Qt.rotation=0,Qt.textPath.enabled=!1,Qt.style.width=Math.max(2*Ht.shapeExisting.r-2*(Qt.padding||0),1)):Ht.dlOptions&&Ht.dlOptions.textPath&&!Ht.dlOptions.textPath.enabled&&oe==="circular"&&(Qt.textPath.enabled=!0),Qt.textPath.enabled&&(Qt.rotation=0,Qt.style.width=Math.max((Ht.outerArcLength+Ht.innerArcLength)/2-2*(Qt.padding||0),1))),Qt.rotation===0&&(Qt.rotation=.001),Qt}({point:Ct,level:Ot,optionsPoint:Ct.options,shapeArgs:It}),!pt&&zt&&(pt=!0,At=C),Ct.draw({animatableAttribs:Tt.to,attribs:l(Tt.from,!ht.styledMode&&k.pointAttribs(Ct,Ct.selected&&"select")),onComplete:At,group:I,renderer:mt,shapeType:"arc",shapeArgs:It})}),vt&&pt?(k.hasRendered=!1,k.options.dataLabels.defer=!0,u.prototype.drawDataLabels.call(k),k.hasRendered=!0,at&&C()):u.prototype.drawDataLabels.call(k)},p.prototype.layoutAlgorithm=function(C,k,F){var G=C.start,I=C.end-G,j=C.val,N=C.x,Z=C.y,$=F&&e(F.levelSize)&&h(F.levelSize.value)?F.levelSize.value:0,Y=C.r,et=Y+$,rt=F&&h(F.slicedOffset)?F.slicedOffset:0;return(k||[]).reduce(function(it,ht){var dt=1/j*ht.val*I,bt=a(N,Z,G+dt/2,rt),xt={x:ht.sliced?bt.x:N,y:ht.sliced?bt.y:Z,innerR:Y,r:et,radius:$,start:G,end:G+dt};return it.push(xt),G=xt.end,it},[])},p.prototype.setShapeArgs=function(C,k,F){var G,I=C.level+1,j=F[I],N=C.children.filter(function(Z){return Z.visible});G=this.layoutAlgorithm(k,N,j),N.forEach(function(Z,$){var Y=G[$],et=Y.start+(Y.end-Y.start)/2,rt=Y.innerR+(Y.r-Y.innerR)/2,it=Y.end-Y.start,ht=Y.innerR===0&&it>6.28?{x:Y.x,y:Y.y}:a(Y.x,Y.y,et,rt),dt=Z.val?Z.childrenTotal>Z.val?Z.childrenTotal:Z.val:Z.childrenTotal;this.points[Z.i]&&(this.points[Z.i].innerArcLength=it*Y.innerR,this.points[Z.i].outerArcLength=it*Y.r),Z.shapeArgs=n(Y,{plotX:ht.x,plotY:ht.y+4*Math.abs(Math.cos(et))}),Z.values=n(Y,{val:dt}),Z.children.length&&this.setShapeArgs(Z,Z.values,F)},this)},p.prototype.translate=function(){var C,k,F,G,I=this,j=I.options,N=I.center=I.getCenter(),Z=I.startAndEndRadians=T(j.startAngle,j.endAngle),$=N[3]/2,Y=N[2]/2-$,et=M(I),rt=I.nodeMap,it=rt&&rt[et],ht={};I.shapeRoot=it&&it.shapeArgs,u.prototype.translate.call(I),F=I.tree=I.getTree(),it=(rt=I.nodeMap)[et],k=rt[r(it.parent)?it.parent:""];var dt=K.getLevelFromAndTo(it),bt=dt.from,xt=dt.to;C=P({from:bt,levels:I.options.levels,to:xt,defaults:{colorByPoint:j.colorByPoint,dataLabels:j.dataLabels,levelIsConstant:j.levelIsConstant,levelSize:j.levelSize,slicedOffset:j.slicedOffset}}),C=K.calculateLevelSizes(C,{diffRadius:Y,from:bt,to:xt}),E(F,{before:y,idRoot:et,levelIsConstant:j.levelIsConstant,mapOptionsToLevel:C,mapIdToNode:rt,points:I.points,series:I}),G=rt[""].shapeArgs={end:Z.end,r:$,start:Z.start,val:it.val,x:N[0],y:N[1]},this.setShapeArgs(k,G,C),I.mapOptionsToLevel=C,I.data.forEach(function(St){ht[St.id]&&x(31,!1,I.chart),ht[St.id]=!0}),ht={}},p.defaultOptions=n(v.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}),p}(v);return l(A.prototype,{drawDataLabels:d,getCenter:w,onPointSupported:!0,pointAttribs:b.prototype.pointAttribs,pointClass:V,NodeClass:W,utils:K}),X.registerSeriesType("sunburst",A),A}),st(B,"masters/modules/sunburst.src.js",[],function(){})},tt.exports?(ft.default=ft,tt.exports=ft):(ct=[lt(8840)],(ut=function(yt){return ft(yt),ft.Highcharts=yt,ft}.apply(ot,ct))===void 0||(tt.exports=ut))},4649:(tt,ot,lt)=>{lt.d(ot,{Z:()=>B});var ct=lt(8804);const ut=function(st,U){for(var z=st.length;z--;)if((0,ct.Z)(st[z][0],U))return z;return-1};var ft=Array.prototype.splice;function yt(st){var U=-1,z=st==null?0:st.length;for(this.clear();++U<z;){var X=st[U];this.set(X[0],X[1])}}yt.prototype.clear=function(){this.__data__=[],this.size=0},yt.prototype.delete=function(st){var U=this.__data__,z=ut(U,st);return!(z<0||(z==U.length-1?U.pop():ft.call(U,z,1),--this.size,0))},yt.prototype.get=function(st){var U=this.__data__,z=ut(U,st);return z<0?void 0:U[z][1]},yt.prototype.has=function(st){return ut(this.__data__,st)>-1},yt.prototype.set=function(st,U){var z=this.__data__,X=ut(z,st);return X<0?(++this.size,z.push([st,U])):z[X][1]=U,this};const B=yt},8896:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ft});var ct=lt(5546),ut=lt(3221);const ft=(0,ct.Z)(ut.Z,"Map")},3703:(tt,ot,lt)=>{lt.d(ot,{Z:()=>V});const ct=(0,lt(5546).Z)(Object,"create");var ut=Object.prototype.hasOwnProperty,ft=Object.prototype.hasOwnProperty;function yt(K){var J=-1,q=K==null?0:K.length;for(this.clear();++J<q;){var W=K[J];this.set(W[0],W[1])}}yt.prototype.clear=function(){this.__data__=ct?ct(null):{},this.size=0},yt.prototype.delete=function(K){var J=this.has(K)&&delete this.__data__[K];return this.size-=J?1:0,J},yt.prototype.get=function(K){var J=this.__data__;if(ct){var q=J[K];return q==="__lodash_hash_undefined__"?void 0:q}return ut.call(J,K)?J[K]:void 0},yt.prototype.has=function(K){var J=this.__data__;return ct?J[K]!==void 0:ft.call(J,K)},yt.prototype.set=function(K,J){var q=this.__data__;return this.size+=this.has(K)?0:1,q[K]=ct&&J===void 0?"__lodash_hash_undefined__":J,this};const B=yt;var st=lt(4649),U=lt(8896);const z=function(K,J){var q,W,D=K.__data__;return((W=typeof(q=J))=="string"||W=="number"||W=="symbol"||W=="boolean"?q!=="__proto__":q===null)?D[typeof J=="string"?"string":"hash"]:D.map};function X(K){var J=-1,q=K==null?0:K.length;for(this.clear();++J<q;){var W=K[J];this.set(W[0],W[1])}}X.prototype.clear=function(){this.size=0,this.__data__={hash:new B,map:new(U.Z||st.Z),string:new B}},X.prototype.delete=function(K){var J=z(this,K).delete(K);return this.size-=J?1:0,J},X.prototype.get=function(K){return z(this,K).get(K)},X.prototype.has=function(K){return z(this,K).has(K)},X.prototype.set=function(K,J){var q=z(this,K),W=q.size;return q.set(K,J),this.size+=q.size==W?0:1,this};const V=X},187:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ct});const ct=lt(3221).Z.Symbol},6299:(tt,ot,lt)=>{lt.d(ot,{Z:()=>yt});var ct=lt(3896),ut=lt(8804),ft=Object.prototype.hasOwnProperty;const yt=function(B,st,U){var z=B[st];ft.call(B,st)&&(0,ut.Z)(z,U)&&(U!==void 0||st in B)||(0,ct.Z)(B,st,U)}},3896:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ft});var ct=lt(5546);const ut=function(){try{var yt=(0,ct.Z)(Object,"defineProperty");return yt({},"",{}),yt}catch(B){}}(),ft=function(yt,B,st){B=="__proto__"&&ut?ut(yt,B,{configurable:!0,enumerable:!0,value:st,writable:!0}):yt[B]=st}},9001:(tt,ot,lt)=>{lt.d(ot,{Z:()=>z});var ct=lt(187),ut=Object.prototype,ft=ut.hasOwnProperty,yt=ut.toString,B=ct.Z?ct.Z.toStringTag:void 0,st=Object.prototype.toString,U=ct.Z?ct.Z.toStringTag:void 0;const z=function(X){return X==null?X===void 0?"[object Undefined]":"[object Null]":U&&U in Object(X)?function(V){var K=ft.call(V,B),J=V[B];try{V[B]=void 0;var q=!0}catch(D){}var W=yt.call(V);return q&&(K?V[B]=J:delete V[B]),W}(X):function(V){return st.call(V)}(X)}},8525:(tt,ot,lt)=>{lt.d(ot,{Z:()=>O});var ct=lt(7885),ut=lt(2758),ft=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yt=/^\w*$/,B=lt(3703);function st(w,T){if(typeof w!="function"||T!=null&&typeof T!="function")throw new TypeError("Expected a function");var d=function(){var u=arguments,g=T?T.apply(this,u):u[0],b=d.cache;if(b.has(g))return b.get(g);var v=w.apply(this,u);return d.cache=b.set(g,v)||b,v};return d.cache=new(st.Cache||B.Z),d}st.Cache=B.Z;var U=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,z=/\\(\\)?/g;const X=(V=st(function(w){var T=[];return w.charCodeAt(0)===46&&T.push(""),w.replace(U,function(d,u,g,b){T.push(g?b.replace(z,"$1"):u||d)}),T},function(w){return K.size===500&&K.clear(),w}),K=V.cache,V);var V,K,J=lt(187),q=J.Z?J.Z.prototype:void 0,W=q?q.toString:void 0;const D=function w(T){if(typeof T=="string")return T;if((0,ct.Z)(T))return function(u,g){for(var b=-1,v=u==null?0:u.length,S=Array(v);++b<v;)S[b]=g(u[b],b,u);return S}(T,w)+"";if((0,ut.Z)(T))return W?W.call(T):"";var d=T+"";return d=="0"&&1/T==-1/0?"-0":d},O=function(w,T){return(0,ct.Z)(w)?w:function(d,u){if((0,ct.Z)(d))return!1;var g=typeof d;return!(g!="number"&&g!="symbol"&&g!="boolean"&&d!=null&&!(0,ut.Z)(d))||yt.test(d)||!ft.test(d)||u!=null&&d in Object(u)}(w,T)?[w]:X(function(d){return d==null?"":D(d)}(w))}},2168:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ct});const ct=typeof Si=="object"&&Si&&Si.Object===Object&&Si},5546:(tt,ot,lt)=>{lt.d(ot,{Z:()=>W});var ct=lt(8936);const ut=lt(3221).Z["__core-js_shared__"];var ft,yt=(ft=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+ft:"",B=lt(3122),st=lt(6682),U=/^\[object .+?Constructor\]$/,z=Function.prototype,X=Object.prototype,V=z.toString,K=X.hasOwnProperty,J=RegExp("^"+V.call(K).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const q=function(D){return!(!(0,B.Z)(D)||(O=D,yt&&yt in O))&&((0,ct.Z)(D)?J:U).test((0,st.Z)(D));var O},W=function(D,O){var w=function(T,d){return T==null?void 0:T[d]}(D,O);return q(w)?w:void 0}},6401:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ut});var ct=/^(?:0|[1-9]\d*)$/;const ut=function(ft,yt){var B=typeof ft;return!!(yt=yt==null?9007199254740991:yt)&&(B=="number"||B!="symbol"&&ct.test(ft))&&ft>-1&&ft%1==0&&ft<yt}},3221:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ft});var ct=lt(2168),ut=typeof self=="object"&&self&&self.Object===Object&&self;const ft=ct.Z||ut||Function("return this")()},7969:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ut});var ct=lt(2758);const ut=function(ft){if(typeof ft=="string"||(0,ct.Z)(ft))return ft;var yt=ft+"";return yt=="0"&&1/ft==-1/0?"-0":yt}},6682:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ut});var ct=Function.prototype.toString;const ut=function(ft){if(ft!=null){try{return ct.call(ft)}catch(yt){}try{return ft+""}catch(yt){}}return""}},5998:(tt,ot,lt)=>{lt.r(ot),lt.d(ot,{default:()=>ii});var ct=lt(4649),ut=lt(8896),ft=lt(3703);function yt(Gt){var ee=this.__data__=new ct.Z(Gt);this.size=ee.size}yt.prototype.clear=function(){this.__data__=new ct.Z,this.size=0},yt.prototype.delete=function(Gt){var ee=this.__data__,he=ee.delete(Gt);return this.size=ee.size,he},yt.prototype.get=function(Gt){return this.__data__.get(Gt)},yt.prototype.has=function(Gt){return this.__data__.has(Gt)},yt.prototype.set=function(Gt,ee){var he=this.__data__;if(he instanceof ct.Z){var pe=he.__data__;if(!ut.Z||pe.length<199)return pe.push([Gt,ee]),this.size=++he.size,this;he=this.__data__=new ft.Z(pe)}return he.set(Gt,ee),this.size=he.size,this};const B=yt;var st=lt(6299);lt(3896);var U=lt(9001),z=lt(3391);const X=function(Gt){return(0,z.Z)(Gt)&&(0,U.Z)(Gt)=="[object Arguments]"};var V=Object.prototype,K=V.hasOwnProperty,J=V.propertyIsEnumerable;const q=X(function(){return arguments}())?X:function(Gt){return(0,z.Z)(Gt)&&K.call(Gt,"callee")&&!J.call(Gt,"callee")};var W=lt(7885),D=lt(3221),O=o&&!o.nodeType&&o,w=O&&!0&&t&&!t.nodeType&&t,T=w&&w.exports===O?D.Z.Buffer:void 0;const d=(T?T.isBuffer:void 0)||function(){return!1};var u=lt(6401);const g=function(Gt){return typeof Gt=="number"&&Gt>-1&&Gt%1==0&&Gt<=9007199254740991};var b={};b["[object Float32Array]"]=b["[object Float64Array]"]=b["[object Int8Array]"]=b["[object Int16Array]"]=b["[object Int32Array]"]=b["[object Uint8Array]"]=b["[object Uint8ClampedArray]"]=b["[object Uint16Array]"]=b["[object Uint32Array]"]=!0,b["[object Arguments]"]=b["[object Array]"]=b["[object ArrayBuffer]"]=b["[object Boolean]"]=b["[object DataView]"]=b["[object Date]"]=b["[object Error]"]=b["[object Function]"]=b["[object Map]"]=b["[object Number]"]=b["[object Object]"]=b["[object RegExp]"]=b["[object Set]"]=b["[object String]"]=b["[object WeakMap]"]=!1;const v=function(Gt){return function(ee){return Gt(ee)}};var S=lt(2168),P=o&&!o.nodeType&&o,E=P&&!0&&t&&!t.nodeType&&t,M=E&&E.exports===P&&S.Z.process;const f=function(){try{return E&&E.require&&E.require("util").types||M&&M.binding&&M.binding("util")}catch(Gt){}}();var x=f&&f.isTypedArray;const l=x?v(x):function(Gt){return(0,z.Z)(Gt)&&g(Gt.length)&&!!b[(0,U.Z)(Gt)]};var h=Object.prototype.hasOwnProperty;const e=function(Gt,ee){var he=(0,W.Z)(Gt),pe=!he&&q(Gt),Ve=!he&&!pe&&d(Gt),Ue=!he&&!pe&&!Ve&&l(Gt),We=he||pe||Ve||Ue,Te=We?function(yi,xn){for(var Ji=-1,tn=Array(yi);++Ji<yi;)tn[Ji]=xn(Ji);return tn}(Gt.length,String):[],Ir=Te.length;for(var ti in Gt)!h.call(Gt,ti)||We&&(ti=="length"||Ve&&(ti=="offset"||ti=="parent")||Ue&&(ti=="buffer"||ti=="byteLength"||ti=="byteOffset")||(0,u.Z)(ti,Ir))||Te.push(ti);return Te};var r=Object.prototype;const n=function(Gt){var ee=Gt&&Gt.constructor;return Gt===(typeof ee=="function"&&ee.prototype||r)},i=function(Gt,ee){return function(he){return Gt(ee(he))}},c=i(Object.keys,Object);var a=Object.prototype.hasOwnProperty,s=lt(8936);const y=function(Gt){return Gt!=null&&g(Gt.length)&&!(0,s.Z)(Gt)},A=function(Gt){return y(Gt)?e(Gt):function(ee){if(!n(ee))return c(ee);var he=[];for(var pe in Object(ee))a.call(ee,pe)&&pe!="constructor"&&he.push(pe);return he}(Gt)};var _=lt(3122);const p=function(){return[]};var C=Object.prototype.propertyIsEnumerable,k=Object.getOwnPropertySymbols;const F=k?function(Gt){return Gt==null?[]:(Gt=Object(Gt),function(ee,he){for(var pe=-1,Ve=ee==null?0:ee.length,Ue=0,We=[];++pe<Ve;){var Te=ee[pe];he(Te,pe,ee)&&(We[Ue++]=Te)}return We}(k(Gt),function(ee){return C.call(Gt,ee)}))}:p,G=function(Gt,ee){for(var he=-1,pe=ee.length,Ve=Gt.length;++he<pe;)Gt[Ve+he]=ee[he];return Gt},I=i(Object.getPrototypeOf,Object),j=function(Gt,ee,he){var pe=ee(Gt);return(0,W.Z)(Gt)?pe:G(pe,he(Gt))},N=function(Gt){return j(Gt,A,F)};var Z=lt(5546);const $=(0,Z.Z)(D.Z,"DataView"),Y=(0,Z.Z)(D.Z,"Promise"),et=(0,Z.Z)(D.Z,"Set"),rt=(0,Z.Z)(D.Z,"WeakMap");var it=lt(6682),ht="[object Map]",dt="[object Promise]",bt="[object Set]",xt="[object WeakMap]",St="[object DataView]",wt=(0,it.Z)($),mt=(0,it.Z)(ut.Z),at=(0,it.Z)(Y),pt=(0,it.Z)(et),vt=(0,it.Z)(rt),Ct=U.Z;($&&Ct(new $(new ArrayBuffer(1)))!=St||ut.Z&&Ct(new ut.Z)!=ht||Y&&Ct(Y.resolve())!=dt||et&&Ct(new et)!=bt||rt&&Ct(new rt)!=xt)&&(Ct=function(Gt){var ee=(0,U.Z)(Gt),he=ee=="[object Object]"?Gt.constructor:void 0,pe=he?(0,it.Z)(he):"";if(pe)switch(pe){case wt:return St;case mt:return ht;case at:return dt;case pt:return bt;case vt:return xt}return ee});const Tt=Ct;var At=Object.prototype.hasOwnProperty;const Lt=D.Z.Uint8Array,Ot=function(Gt){var ee=new Gt.constructor(Gt.byteLength);return new Lt(ee).set(new Lt(Gt)),ee};var _t=/\w*$/,It=lt(187),zt=It.Z?It.Z.prototype:void 0,Rt=zt?zt.valueOf:void 0;const Ut=function(Gt,ee,he){var pe,Ve,Ue,We=Gt.constructor;switch(ee){case"[object ArrayBuffer]":return Ot(Gt);case"[object Boolean]":case"[object Date]":return new We(+Gt);case"[object DataView]":return function(Te,Ir){var ti=Ot(Te.buffer);return new Te.constructor(ti,Te.byteOffset,Te.byteLength)}(Gt);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(Te,Ir){var ti=Ot(Te.buffer);return new Te.constructor(ti,Te.byteOffset,Te.length)}(Gt);case"[object Map]":case"[object Set]":return new We;case"[object Number]":case"[object String]":return new We(Gt);case"[object RegExp]":return(Ue=new(Ve=Gt).constructor(Ve.source,_t.exec(Ve))).lastIndex=Ve.lastIndex,Ue;case"[object Symbol]":return pe=Gt,Rt?Object(Rt.call(pe)):{}}};var Xt=Object.create;const Ht=function(){function Gt(){}return function(ee){if(!(0,_.Z)(ee))return{};if(Xt)return Xt(ee);Gt.prototype=ee;var he=new Gt;return Gt.prototype=void 0,he}}();var qt=f&&f.isMap;const Kt=qt?v(qt):function(Gt){return(0,z.Z)(Gt)&&Tt(Gt)=="[object Map]"};var fe=f&&f.isSet;const Qt=fe?v(fe):function(Gt){return(0,z.Z)(Gt)&&Tt(Gt)=="[object Set]"};var oe="[object Arguments]",xe="[object Function]",Qe="[object Object]",ce={};ce[oe]=ce["[object Array]"]=ce["[object ArrayBuffer]"]=ce["[object DataView]"]=ce["[object Boolean]"]=ce["[object Date]"]=ce["[object Float32Array]"]=ce["[object Float64Array]"]=ce["[object Int8Array]"]=ce["[object Int16Array]"]=ce["[object Int32Array]"]=ce["[object Map]"]=ce["[object Number]"]=ce[Qe]=ce["[object RegExp]"]=ce["[object Set]"]=ce["[object String]"]=ce["[object Symbol]"]=ce["[object Uint8Array]"]=ce["[object Uint8ClampedArray]"]=ce["[object Uint16Array]"]=ce["[object Uint32Array]"]=!0,ce["[object Error]"]=ce[xe]=ce["[object WeakMap]"]=!1;const Me=function Gt(ee,he,pe,Ve,Ue,We){var Te,Ir=1&he;if(Te!==void 0)return Te;if(!(0,_.Z)(ee))return ee;var ti=(0,W.Z)(ee);if(ti)Te=function(De){var vi=De.length,ar=new De.constructor(vi);return vi&&typeof De[0]=="string"&&At.call(De,"index")&&(ar.index=De.index,ar.input=De.input),ar}(ee);else{var yi=Tt(ee),xn=yi==xe||yi=="[object GeneratorFunction]";if(d(ee))return function(De,vi){return De.slice()}(ee);if(yi==Qe||yi==oe||xn&&!Ue)Te=xn?{}:function(De){return typeof De.constructor!="function"||n(De)?{}:Ht(I(De))}(ee);else{if(!ce[yi])return Ue?ee:{};Te=Ut(ee,yi)}}We||(We=new B);var Ji=We.get(ee);if(Ji)return Ji;We.set(ee,Te),Qt(ee)?ee.forEach(function(De){Te.add(Gt(De,he,pe,De,ee,We))}):Kt(ee)&&ee.forEach(function(De,vi){Te.set(vi,Gt(De,he,pe,vi,ee,We))});var tn=ti?void 0:N(ee);return function(De,vi){for(var ar=-1,Jo=De==null?0:De.length;++ar<Jo&&vi(De[ar],ar,De)!==!1;);}(tn||ee,function(De,vi){tn&&(De=ee[vi=De]),(0,st.Z)(Te,vi,Gt(De,he,pe,vi,ee,We))}),Te},ii=function(Gt){return Me(Gt,5)}},8804:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ct});const ct=function(ut,ft){return ut===ft||ut!=ut&&ft!=ft}},1857:(tt,ot,lt)=>{lt.r(ot),lt.d(ot,{default:()=>ft});var ct=lt(8525),ut=lt(7969);const ft=function(yt,B,st){var U=yt==null?void 0:function(z,X){for(var V=0,K=(X=(0,ct.Z)(X,z)).length;z!=null&&V<K;)z=z[(0,ut.Z)(X[V++])];return V&&V==K?z:void 0}(yt,B);return U===void 0?st:U}},7885:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ct});const ct=Array.isArray},8936:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ft});var ct=lt(9001),ut=lt(3122);const ft=function(yt){if(!(0,ut.Z)(yt))return!1;var B=(0,ct.Z)(yt);return B=="[object Function]"||B=="[object GeneratorFunction]"||B=="[object AsyncFunction]"||B=="[object Proxy]"}},3122:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ct});const ct=function(ut){var ft=typeof ut;return ut!=null&&(ft=="object"||ft=="function")}},3391:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ct});const ct=function(ut){return ut!=null&&typeof ut=="object"}},1284:(tt,ot,lt)=>{lt.r(ot),lt.d(ot,{default:()=>yt});var ct=lt(9001),ut=lt(7885),ft=lt(3391);const yt=function(B){return typeof B=="string"||!(0,ut.Z)(B)&&(0,ft.Z)(B)&&(0,ct.Z)(B)=="[object String]"}},2758:(tt,ot,lt)=>{lt.d(ot,{Z:()=>ft});var ct=lt(9001),ut=lt(3391);const ft=function(yt){return typeof yt=="symbol"||(0,ut.Z)(yt)&&(0,ct.Z)(yt)=="[object Symbol]"}},4402:(tt,ot,lt)=>{lt.r(ot),lt.d(ot,{default:()=>ct});const ct=function(ut){return ut===void 0}},4891:(tt,ot,lt)=>{lt.r(ot),lt.d(ot,{default:()=>st});var ct=lt(6299),ut=lt(8525),ft=lt(6401),yt=lt(3122),B=lt(7969);const st=function(U,z,X){return U==null?U:function(V,K,J,q){if(!(0,yt.Z)(V))return V;for(var W=-1,D=(K=(0,ut.Z)(K,V)).length,O=D-1,w=V;w!=null&&++W<D;){var T=(0,B.Z)(K[W]),d=J;if(T==="__proto__"||T==="constructor"||T==="prototype")return V;if(W!=O){var u=w[T];(d=void 0)==void 0&&(d=(0,yt.Z)(u)?u:(0,ft.Z)(K[W+1])?[]:{})}(0,ct.Z)(w,T,d),w=w[T]}return V}(U,z,X)}}},R={};function Q(tt){var ot=R[tt];if(ot!==void 0)return ot.exports;var lt=R[tt]={exports:{}};return m[tt].call(lt.exports,lt,lt.exports,Q),lt.exports}return Q.d=(tt,ot)=>{for(var lt in ot)Q.o(ot,lt)&&!Q.o(tt,lt)&&Object.defineProperty(tt,lt,{enumerable:!0,get:ot[lt]})},Q.o=(tt,ot)=>Object.prototype.hasOwnProperty.call(tt,ot),Q.r=tt=>{typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(tt,"__esModule",{value:!0})},Q(4658)})())})(tc,tc.exports);var A6=tc.exports;const Mv=Mi(A6),T6="rgb(255, 255, 255)",Dg="rgb(43, 51, 66)",Ta=20,ka=4,k6=2,ec=1,P6=Ta*2,L6=26,E6=20,Ig=35,O6=Ta+ka-2,jg={key:"brightness",to:.15};Mv.Series.types.treemap.prototype.squarifiedWithTopSpacing=function(t,o){const m=j6(t.height,this.chart.plotHeight),R=this.squarified(t,o),Q=m(O6);return N6(this.chart)?R.map((tt,ot)=>{const lt=tt.height>=m(P6);return o[ot].point.options.custom.bigLabelSpacing=lt,lt&&(tt.height=tt.height-Q,tt.y=tt.y+Q),tt}):R};function _6(t,o,m){const R=D6();return R.forEach((Q,tt)=>{var lt,ct,ut,ft,yt,B,st;const ot=Q.dataLabels;(lt=o==null?void 0:o.labels)!=null&&lt.category&&(ot.enabled=(yt=(ft=(ut=(ct=o.labels)==null?void 0:ct.category)==null?void 0:ut[tt])==null?void 0:ft.enabled)!=null?yt:!0),(B=m==null?void 0:m.typography)!=null&&B.fontFamily&&(ot.style.fontFamily=(st=m==null?void 0:m.typography)==null?void 0:st.fontFamily)}),t.breakBy.length===1&&(R[0].borderWidth=ec,R[0].borderColor="black",R[0].layoutAlgorithm="strip",R[0].dataLabels=R[1].dataLabels),t.breakBy.length===2&&(R[1].borderWidth=ec,R[1].borderColor="black"),t.breakBy.some(({isColored:Q})=>Q)&&(R[1].colorVariation=jg,R[2].colorVariation=jg),R}function Th(){var m,R;const t=Vo(sr(this.color))>.4&&!((R=(m=this.point.options)==null?void 0:m.custom)!=null&&R.blur),{width:o}=Tv(this.point);return I6(this.point)?Av(this.point)?`<div
132
+ style="
133
+ width:${o-ka}px;
134
+ height: ${Ta}px;
135
+ background: #e6e6e6;
136
+ color: ${Dg};
137
+ padding: 3px;
138
+ position: absolute;
139
+ top: -${Ta}px;
140
+ text-align: center;
141
+ overflow: hidden;
142
+ text-overflow: ellipsis;
143
+ left: ${ka/2}px;
144
+ "
145
+ >${this.key}</div>`:`<div style="fill:${t?T6:Dg};">${this.key}</div>`:""}function D6(){return[{level:1,borderWidth:ka,borderColor:"white",layoutAlgorithm:"squarifiedWithTopSpacing",dataLabels:{useHTML:!0,enabled:!0,align:"left",verticalAlign:"top",allowOverlap:!0,padding:0,style:{fontSize:"14px"},formatter:Th}},{level:2,borderWidth:k6,borderColor:"white",dataLabels:{enabled:!0,align:"left",verticalAlign:"top",style:{fontSize:"14px"},formatter:Th}},{level:3,borderColor:"black",borderWidth:ec,dataLabels:{enabled:!0,align:"center",verticalAlign:"middle",style:{fontSize:"13px"},formatter:Th}}]}function Av(t){var o,m,R,Q;return((m=(o=t.options)==null?void 0:o.custom)==null?void 0:m.levelsCount)!==1&&((Q=(R=t.options)==null?void 0:R.custom)==null?void 0:Q.level)===1}function I6(t){const{height:o,width:m}=Tv(t),{level:R}=t.options.custom;return Av(t)?!!t.options.custom.bigLabelSpacing:R!==3?o>=L6&&m>=Ig:o>=E6&&m>=Ig}function j6(t,o){return m=>{const R=o/t;return m/R}}function N6(t){var R,Q,tt,ot,lt,ct;const o=(Q=(R=t.options.series)==null?void 0:R[0])!=null?Q:{};return(ct=((lt=(ot=(tt=o==null?void 0:o.levels)==null?void 0:tt[0])==null?void 0:ot.dataLabels)!=null?lt:{}).enabled)!=null?ct:!0}function Tv(t){var o,m,R,Q;return{width:(m=(o=t.shapeArgs)==null?void 0:o.width)!=null?m:0,height:(Q=(R=t.shapeArgs)==null?void 0:R.height)!=null?Q:0}}function kv(t,o,m){if(!t.series[0])return[];const R=B6(t),Q=t.series[0].data.map(tt=>{var ot,lt;return{value:tt.value,name:(ot=tt.xDisplayValue)==null?void 0:ot.slice(-1).toString(),parent:(lt=tt.xValue)==null?void 0:lt.slice(0,-1).join("_"),custom:Zt(jt({},tt),{level:t.xAxisCount,levelsCount:t.xAxisCount})}});return R6([...R,...Q],o,m)}function B6(t){const o={};return t.xValues.forEach(m=>{m.rawValues.slice(0,-1).forEach((R,Q)=>{const tt=m.rawValues.slice(0,Q+1).join("_");o[tt]={id:tt,name:m.xValues[Q],parent:m.rawValues.slice(0,Q).join("_"),custom:{level:Q+1,levelsCount:t.xAxisCount}}})}),Object.values(o)}function R6(t,o,m){const R=o.breakBy.map(tt=>tt.isColored).indexOf(!0)+1,Q=new Map;return t.map(tt=>{var ot;return tt.custom.level===R?(Q.has(tt.name)||Q.set(tt.name,Q.size),Zt(jt({},tt),{color:(ot=Qa(o,tt.name))!=null?ot:vr(m==null?void 0:m.palette.variantColors,Q.get(tt.name))})):tt})}const z6="rgb(0, 206, 230)",F6={type:"treemap",layoutAlgorithm:"strip",layoutStartingDirection:"horizontal",clip:!1,color:z6,dataLabels:{style:{textOutline:"none"}}},G6={title:{text:null},chart:{type:"treemap",spacing:[20,20,20,20],alignTicks:!1,polar:!1,animation:{duration:300}},series:[]};function W6(t,o,m,R){var Q;return Zt(jt({},G6),{series:[Zt(jt({},F6),{name:(Q=o.y[0].title)!=null?Q:o.y[0].name,data:kv(t,o,R),levels:_6(o,m,R)})],tooltip:Sv(o,m)})}const H6=Object.freeze({1:80,2:70,3:60,4:50});function U6(t,o,m,R){var ot,lt;const Q={level:1,color:(lt=(ot=R==null?void 0:R.chart)==null?void 0:ot.backgroundColor)!=null?lt:"white",dataLabels:{enabled:!0,useHTML:!0,className:"!csdk-overflow-visible",formatter(){var ft,yt,B,st,U,z;const ct=$e((yt=(ft=o.y)==null?void 0:ft[0])==null?void 0:yt.numberFormatConfig),{value:ut}=this.point;return`
146
+ <div style="text-align: center; transform: translateY(calc(-50% + 15px))">
147
+ <div style="color: ${(st=(B=R==null?void 0:R.chart)==null?void 0:B.secondaryTextColor)!=null?st:"#9EA2AB"}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 18px">${this.point.name}</div>
148
+ ${Vr()}
149
+ <div style="
150
+ font-weight: 600;
151
+ font-size: 18px;
152
+ color: ${(z=(U=R==null?void 0:R.chart)==null?void 0:U.textColor)!=null?z:"#5B6372"}
153
+ "
154
+ >${Hn(ct,ut)}</div>
155
+ </div>
156
+ `}},levelSize:{unit:"percentage",value:H6[o.breakBy.length]||50}},tt=Array.from(new Array(t.xAxisCount)).map((ct,ut)=>{var ft,yt,B,st;return{level:ut+2,dataLabels:{enabled:(st=(B=(yt=(ft=m==null?void 0:m.labels)==null?void 0:ft.category)==null?void 0:yt[ut])==null?void 0:B.enabled)!=null?st:!1,formatter(){return`<span style="color: ${Vo(sr(this.color))>.4?"white":"rgb(43, 51, 66)"}">${this.point.name}</span>`}}}});return[Q,...tt]}const ic="SUNBURST_ROOT_PARENT_ID";function X6(t,o,m){var lt;const R={id:ic,name:(lt=o.y[0].title)!=null?lt:o.y[0].name,custom:{level:0,levelsCount:t.xAxisCount}},Q=kv(t,o,m).map(ct=>ct.parent===""?Zt(jt({},ct),{parent:ic}):ct),tt=V6(Q),ot=Y6(tt,o,m);return[R,...ot]}function Y6(t,o,m){const Q=$6(o),tt=o.breakBy.map(()=>new Map);t.forEach(ct=>{var ft,yt,B,st;const ut=tt[ct.custom.level-1];if(ut){const U=(ft=ut.get(ct.name))!=null?ft:0,z=(st=(B=ct.value)!=null?B:(yt=ct.custom)==null?void 0:yt.subtotalValue)!=null?st:0;ut.set(ct.name,U+z)}});const lt=tt.map(ct=>Array.from(ct.entries()).sort(([,ut],[,ft])=>ut-ft).map(([ut])=>ut)).map((ct,ut)=>{var U,z;const ft=new Map,yt=vr(m==null?void 0:m.palette.variantColors,ut),B=((z=(U=o.breakBy[ut])==null?void 0:U.color)==null?void 0:z.color)||yt,st=qR($h(B,.3),$h(B,-.3),ct.length);return ct.forEach((X,V)=>{ft.set(X,st[V])}),ft});return t.map(ct=>{var yt,B,st;const ut=(B=Q[((yt=ct.custom)==null?void 0:yt.level)||""])==null?void 0:B[(ct==null?void 0:ct.name)||""],ft=(st=lt[ct.custom.level-1])==null?void 0:st.get(ct.name);return Zt(jt({},ct),{color:ut||ft})})}function $6(t){return t.breakBy.reduce((o,m,R)=>{var Q;return(Q=t==null?void 0:t.seriesToColorMap)!=null&&Q[m.name]&&(o[R+1]=t.seriesToColorMap[m.name]),o},{})}function V6(t){const o=new Map,m=new Map;t.forEach(Q=>{Q.parent&&(o.has(Q.parent)||o.set(Q.parent,[]),o.get(Q.parent).push(Q))}),Array.from(o.values()).sort((Q,tt)=>{var ot,lt,ct,ut,ft,yt;return((ct=(lt=(ot=tt[0])==null?void 0:ot.custom)==null?void 0:lt.level)!=null?ct:0)-((yt=(ft=(ut=Q[0])==null?void 0:ut.custom)==null?void 0:ft.level)!=null?yt:0)}).forEach(Q=>{Q.forEach(tt=>{var ct,ut;const ot=(ut=(ct=tt.value)!=null?ct:m.get(tt.id))!=null?ut:0,lt=m.get(tt.parent)||0;m.set(tt.parent,lt+ot),tt.id&&(tt.custom.subtotalValue=m.get(tt.id))})});const R=[];return o.forEach(Q=>{Q.sort((tt,ot)=>{var ut,ft,yt,B;const lt=(ft=(ut=tt.value)!=null?ut:m.get(tt.id))!=null?ft:0,ct=(B=(yt=ot.value)!=null?yt:m.get(ot.id))!=null?B:0;return lt-ct}),R.push(...Q)}),R}const Pv=50,Z6=1e3,q6=500,rc=1e5,nr={lineType:"straight",stackType:"classic",legend:"bottom",lineWidth:2,valueLabel:{},marker:{enabled:!1,size:"small",fill:"full"},xAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"X Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},yAxis:{type:"linear",enabled:!0,titleEnabled:!0,title:"Y Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null},autoZoom:!0,pieType:yv,pieLabels:mv,funnelType:Jc,funnelSize:Kc,funnelDirection:Qc,funnelLabels:qc,indicatorType:"numeric",numericSubtype:"numericSimple",skin:"vertical",indicatorComponents:{title:{shouldBeShown:!1,text:""},secondaryTitle:{text:""},ticks:{shouldBeShown:!0},labels:{shouldBeShown:!0}},dataLimits:{seriesCapacity:Pv,categoriesCapacity:rc}},Lv={scatterDefaultSize:10,scatterBubbleMinSize:12,scatterBubbleMaxSize:48},K6=(t,o)=>{var Q;if(!t.enabled)return{enabled:!1};const m=(Q=t.rotation)!=null?Q:0,R=jt({enabled:!0,align:"center",verticalAlign:"middle",types:{count:!1,relative:!0,totals:!0},rotation:m},Vc(m)==="horizontal"?{y:-1}:null);return R.formatter=function(){var B,st;const tt=this,ot={maskedY:o.y,maskedX:o.x,maskedSize:o.size,maskedBreakByColor:o.breakByColor},ct=[o.y,o.x,o.size,o.breakByColor].find(U=>U&&Ho(U)),ut=(B=Object.entries(ot).find(([,U])=>U===ct))==null?void 0:B[0],ft=((st=tt.point.custom)==null?void 0:st[ut])||"";if(isNaN(parseFloat(ft)))return ft;const yt=$e(ct==null?void 0:ct.numberFormatConfig);return si(yt,parseFloat(ft))},R.style=Zt(jt({},R.style),{fontWeight:"",textOutline:""}),R},J6=(t,o)=>({minSize:o?t.scatterBubbleMinSize:t.scatterDefaultSize,maxSize:o?t.scatterBubbleMaxSize:t.scatterDefaultSize}),Q6=(t,o)=>{var R;const m=!!o.size;return{bubble:jt({animation:!1},J6((R=t.markerSize)!=null?R:Lv,m)),series:{allowPointSelect:!1,boostThreshold:0,dataLabels:K6(t.valueLabel,o),stickyTracking:!1,turboThreshold:0}}};var tG=Sc,eG=Ua,iG=_a,Ng=br,rG=zo;function nG(t,o,m,R){if(!Ng(t))return t;o=eG(o,t);for(var Q=-1,tt=o.length,ot=tt-1,lt=t;lt!=null&&++Q<tt;){var ct=rG(o[Q]),ut=m;if(ct==="__proto__"||ct==="constructor"||ct==="prototype")return t;if(Q!=ot){var ft=lt[ct];ut=R?R(ft,ct,lt):void 0,ut===void 0&&(ut=Ng(ft)?ft:iG(o[Q+1])?[]:{})}tG(lt,ct,ut),lt=lt[ct]}return t}var oG=nG,sG=xc,aG=oG,lG=Ua;function hG(t,o,m){for(var R=-1,Q=o.length,tt={};++R<Q;){var ot=o[R],lt=sG(t,ot);m(lt,ot)&&aG(tt,lG(ot,t),lt)}return tt}var cG=hG,uG=cG,pG=Mm;function dG(t,o){return uG(t,o,function(m,R){return pG(t,R)})}var fG=dG,gG=fG,mG=jy,yG=mG(function(t,o){return t==null?{}:gG(t,o)}),Ev=yG;const vG=Mi(Ev),bG=Object.freeze({"area/basic":{lineType:"straight",stackType:"classic"},"area/stacked":{lineType:"straight",stackType:"stacked"},"area/stacked100":{lineType:"straight",stackType:"stack100"},"area/spline":{lineType:"smooth",stackType:"classic"},"area/stackedspline":{lineType:"smooth",stackType:"stacked"},"area/stackedspline100":{lineType:"smooth",stackType:"stack100"},"arearange/basic":{lineType:"straight",stackType:"classic"},"arearange/spline":{lineType:"smooth",stackType:"classic"},"bar/classic":{stackType:"classic"},"bar/stacked":{stackType:"stacked"},"bar/stacked100":{stackType:"stack100"},"column/classic":{stackType:"classic"},"column/stackedcolumn":{stackType:"stacked"},"column/stackedcolumn100":{stackType:"stack100"},"line/basic":{lineType:"straight"},"line/spline":{lineType:"smooth"},"pie/classic":{pieType:"classic"},"pie/donut":{pieType:"donut"},"pie/ring":{pieType:"ring"},"polar/column":{polarType:"column"},"polar/area":{polarType:"area"},"polar/line":{polarType:"line"},"indicator/numeric":{indicatorType:"numeric"},"indicator/gauge":{indicatorType:"gauge"},treemap:{},sunburst:{},"boxplot/full":{boxplotType:"full"},"boxplot/hollow":{boxplotType:"hollow"},scattermap:{},"areamap/world":{mapType:"world"},"areamap/usa":{mapType:"usa"}});function xG(t){let o;switch(t.subtype){case"indicator/numeric":o=jt({indicatorType:"numeric",numericSubtype:t.numericSubtype},t.numericSubtype==="numericSimple"?{skin:t.skin}:null);break;case"indicator/gauge":o=jt({indicatorType:"gauge",skin:t.skin},t.tickerBarHeight?{tickerBarHeight:t.tickerBarHeight}:null);break}return Zt(jt(jt({},nr),o),{indicatorComponents:t.indicatorComponents||nr.indicatorComponents,forceTickerView:!!t.forceTickerView})}const wG=t=>Zt(jt({},nr),{mapType:t.mapType||"world"}),CG=(t,o,m)=>{const R="y"in m&&Array.isArray(m.y)?m.y.some(lt=>lt.showOnRightAxis):!1;let Q;switch(t){case"bar":case"column":Q=Ov(o,m,R,t);break;case"area":Q=_G(o,m,R);break;case"arearange":case"line":Q=OG(o,m,R);break;case"pie":Q=jG(o);break;case"funnel":Q=NG(o);break;case"treemap":Q=BG(o);break;case"sunburst":Q=RG(o);break;case"polar":Q=FG(o,m);break;case"indicator":Q=xG(o);break;case"scatter":Q=WG(o);break;case"boxplot":Q=HG(o);break;case"areamap":Q=wG(o);break;case"scattermap":Q=XG(o);break;default:throw new _c("errors.chartTypeNotSupported",{chartType:t})}const tt="subtype"in o&&o.subtype?o.subtype:"line/basic",ot=bG[tt];return jt(jt({},Q),ot)};function SG(t,o,m){const R=Zo(m!=null?m:{},Ko());return CG(t,R,o)}function Zo(t,o){return Xi.withOptions({mergeArrays:!1},o,t)}function tu(t,o,m){return MG(t,o).map(Q=>{const tt=Q.seriesId,ot=Q.seriesStyleOptions,lt=EG(o,Zo(ot,m));return{seriesId:tt,designOptions:vG(lt,["lineWidth","marker"])}}).reduce((Q,{seriesId:tt,designOptions:ot})=>Zt(jt({},Q),{[tt]:ot}),{})}function MG(t,o){return Ic(o)?AG(t):[]}function AG(t){return t.y.filter(TG).map(o=>({seriesId:o.name,seriesStyleOptions:o.seriesStyleOptions}))}function TG(t){return t.seriesStyleOptions!==void 0}const qo=t=>t!=null&&t.enabled&&t.position||null,nc=(t,o)=>{var m,R,Q,tt,ot;return t?{enabled:t.enabled,gridLine:t.gridLines,labels:(m=t.labels)==null?void 0:m.enabled,type:t.logarithmic?"logarithmic":"linear",titleEnabled:(R=t.title)==null?void 0:R.enabled,title:((Q=t==null?void 0:t.title)==null?void 0:Q.text)||null,min:(tt=t.min)!=null?tt:null,max:(ot=t.max)!=null?ot:null,tickInterval:t.isIntervalEnabled&&(t!=null&&t.intervalJumps)?t==null?void 0:t.intervalJumps:null}:o},kG=t=>(t==null?void 0:t.enabled)||!1,PG=t=>{const o=nc(t,nr.yAxis);return o.gridLine=t.templateMainYHasGridLines||!1,o},eu=t=>{let o=1;switch(t.width){case"thin":o=1;break;case"bold":o=3;break;case"thick":o=5;break}return o},LG="classic",io=(t,o)=>{var ut,ft,yt,B;const m=qo(t.legend),R=el(t,"cartesian"),Q=nc(t.xAxis,nr.xAxis);let tt=null;(ft=(ut=t==null?void 0:t.xAxis)==null?void 0:ut.x2Title)!=null&&ft.enabled&&((B=(yt=t==null?void 0:t.xAxis)==null?void 0:yt.x2Title)!=null&&B.text)&&(tt=Zt(jt({},nr.xAxis),{title:t.xAxis.x2Title.text}));const ot=nc(t.yAxis,nr.yAxis);let lt={type:"linear",enabled:!0,titleEnabled:!0,title:"Y2 Axis title",gridLine:!0,labels:!0,min:null,max:null,tickInterval:null};t.y2Axis&&(lt=jt(jt({},lt),PG(t.y2Axis)));const ct=kG(t.navigator);return Zt(jt(jt(Zt(jt({},nr),{legend:m,autoZoom:ct,valueLabel:t.seriesLabels||{},xAxis:Q,yAxis:ot}),o&&lt&&{y2Axis:lt}),tt&&{x2Axis:tt}),{dataLimits:R})},tl=t=>({enabled:t.enabled,fill:t.fill==="filled"?"full":"hollow",size:t.size==="small"?"small":"large"}),Ov=(t,o,m,R)=>{const Q=io(t,m),tt=Zo(t!=null?t:{},Ko()),ot=tu(o,R,tt);return Zt(jt({},Q),{designPerSeries:ot,stackType:LG})},EG=(t,o)=>{var R;const m=io(o,!1);if(t==="line"){const Q=o;m.lineWidth=eu(Q.lineWidth||{width:"bold"}),m.marker=tl((R=Q==null?void 0:Q.markers)!=null?R:{enabled:!0,fill:"filled",size:"small"})}return m},OG=(t,o,m)=>{var ot;const R=io(t,m);R.lineWidth=eu(t.lineWidth||{width:"bold"}),R.marker=tl((ot=t==null?void 0:t.markers)!=null?ot:{enabled:!0,fill:"filled",size:"small"});const Q=Zo(t!=null?t:{},Ko()),tt=tu(o,"line",Q);return Zt(jt({},R),{designPerSeries:tt})},_G=(t,o,m)=>{var R;return Zt(jt({},Ov(t,o,m,"area")),{lineWidth:eu(t.lineWidth||{width:"thin"}),marker:tl((R=t==null?void 0:t.markers)!=null?R:{enabled:!0,fill:"filled",size:"small"})})},el=(t,o)=>{var Q;const m={seriesCapacity:o==="categorical"?rc:o==="pie"?Z6:Pv,categoriesCapacity:o==="scatter"?q6:rc},R=(Q=t==null?void 0:t.dataLimits)!=null?Q:{};return"categoriesCapacity"in R&&(R==null?void 0:R.categoriesCapacity)!==void 0&&(m.categoriesCapacity=R==null?void 0:R.categoriesCapacity),(R==null?void 0:R.seriesCapacity)!==void 0&&(m.seriesCapacity=R==null?void 0:R.seriesCapacity),m},DG={enabled:!0,showCategories:!0,showValue:!0,showPercent:!0,showDecimals:!1},IG="classic",jG=t=>{var lt,ct,ut,ft,yt;const{legend:o,labels:m}=t;let R=DG;m&&(R=Zt(jt({},R),{showCategories:(lt=m.categories)!=null?lt:!1,showDecimals:(ct=m.decimals)!=null?ct:!1,enabled:(ut=m.enabled)!=null?ut:!1,showPercent:(ft=m.percent)!=null?ft:!1,showValue:(yt=m.value)!=null?yt:!1}));const Q=IG,tt=t!=null&&t.convolution?t.convolution:{enabled:!1},ot=el(t,"pie");return Zt(jt({},nr),{pieLabels:R,pieType:Q,convolution:tt,legend:qo(o),dataLimits:ot})},NG=t=>{var ct,ut,ft,yt,B;const{funnelType:o=Jc,funnelSize:m=Kc,funnelDirection:R=Qc,legend:Q,labels:tt}=t;let ot=qc;tt&&(ot=Zt(jt({},ot),{showCategories:(ct=tt.categories)!=null?ct:!1,showDecimals:(ut=tt.decimals)!=null?ut:!1,enabled:(ft=tt.enabled)!=null?ft:!1,showPercent:(yt=tt.percent)!=null?yt:!1,showValue:(B=tt.value)!=null?B:!1}));const lt=el(t,"categorical");return Zt(jt({},nr),{funnelSize:m,funnelType:o,funnelDirection:R,funnelLabels:ot,legend:qo(Q),dataLimits:lt})},BG=t=>t,RG=t=>t,zG="column",FG=(t,o)=>{const m=io(t,!1),R=Zo(t!=null?t:{},Ko()),Q=tu(o,"polar",R);return Zt(jt({},m),{polarType:zG,designPerSeries:Q})},GG=t=>jt(jt({},Lv),t),WG=t=>{var o;return Zt(jt({},io(t,!1)),{lineWidth:0,marker:tl((o=t==null?void 0:t.markers)!=null?o:{enabled:!0,fill:"filled",size:"small"}),dataLimits:el(t,"scatter"),markerSize:GG(t.markerSize),legend:qo(t.legend)})},HG=t=>Zt(jt({},io(t,!1)),{boxplotType:t.subtype==="boxplot/hollow"?"hollow":"full"}),UG={fill:"filled",size:{defaultSize:4,minSize:4,maxSize:24}},XG=t=>Zt(jt({},nr),{markers:Xi(UG,t.markers||{})}),YG={type:"sunburst",borderWidth:0,dataLabels:{style:{textOutline:"none"}}},$G={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(t){t.preventDefault()}}}}};function VG(t,o,m,R){return Zt(jt({},$G),{series:[Zt(jt({},YG),{name:"Root",data:X6(t,o,R),levels:U6(t,o,m,R),showInLegend:!1,turboThreshold:2e3}),...o.breakBy.map((Q,tt)=>{var ot;return{name:Q.title||Q.name,showInLegend:!0,color:((ot=Q==null?void 0:Q.color)==null?void 0:ot.color)||vr(R==null?void 0:R.palette.variantColors,tt),data:[],states:{hover:{enabled:!1}}}})],tooltip:Sv(o,m,{displayTotalContribution:!0,displayColorCircles:!0,shouldSkip:Q=>Q.point.options.id===ic}),legend:mn(qo(m.legend))})}const ZG=(t,o,m,R,Q)=>{var ct,ut;const tt=[],ot=Ja(o,m),lt=20;switch(o){case"pie":const ft=m,{series:yt,convolutionSeries:B,alerts:st}=m6(t,R,ft,Q);return tt.push(...st),{options:{title:{text:null},chart:{type:ot,spacing:[lt,20,20,20],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:mn(ft.legend),series:yt,plotOptions:i6(ft.pieType,ft.pieLabels,R,Q),tooltip:Lg((ct=ft.pieLabels)==null?void 0:ct.showDecimals,R),drilldown:{activeDataLabelStyle:{cursor:"pointer",fontWeight:"bold",textDecoration:"none"},series:B}},alerts:tt};case"funnel":const z=m,{series:X,alerts:V}=x6(t,R,z,Q);return tt.push(...V),{options:{title:{text:null},chart:{type:ot,spacing:[30,30,30,30],alignTicks:!1,polar:!1},xAxis:[],yAxis:[],legend:mn(z.legend),series:X,plotOptions:f6(z,R,Q),tooltip:Lg((ut=z.funnelLabels)==null?void 0:ut.showDecimals,R)},alerts:tt};case"treemap":return{options:W6(t,R,m,Q),alerts:tt};case"sunburst":return{options:VG(t,R,m,Q),alerts:tt};default:throw new Error("Unexpected chart type")}},dr="#d1d1d7";function _v(t,o,m){if(m&&m.length&&!m.includes(o))return"";const R=typeof o=="number"?o:parseFloat(o);return isNaN(R)?`${o}`:t&&eo(t)&&!ui(t.type)?`${o}`:si($e(t==null?void 0:t.numberFormatConfig),R)}const qG=(t,o,m)=>[{type:t.type,startOnTick:!1,endOnTick:!(t.max||o),labels:{overflow:"justify",enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:ai,formatter:function(){return _v(m==null?void 0:m.x,this.value,this.axis.categories)}},categories:o||void 0,gridLineWidth:t.enabled&&t.gridLine?1:0,gridLineColor:dr,gridLineDashStyle:"Dot",title:{enabled:t.enabled&&t.titleEnabled,margin:25,text:t.title||null},lineColor:dr,lineWidth:1,minorTickColor:dr,minorGridLineColor:dr,minorGridLineDashStyle:"Dot",minorTickLength:0,tickLength:0,tickColor:dr,tickmarkPlacement:"on",tickInterval:t.enabled?t.tickInterval:null,min:t.enabled?t.min:null,max:t.enabled?t.max:null}],KG=(t,o,m)=>[{type:t.type,startOnTick:!1,endOnTick:!(t.max||o),title:{enabled:t.enabled&&t.titleEnabled,text:t.title||null},labels:{enabled:t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:ai,formatter:function(){return _v(m==null?void 0:m.y,this.value,this.axis.categories)}},categories:o||void 0,gridLineColor:dr,gridLineDashStyle:"Dot",gridLineWidth:1,lineColor:dr,lineWidth:1,maxPadding:.025,minPadding:.025,minorGridLineColor:dr,minorGridLineDashStyle:"Dot",minorGridLineWidth:0,minorTickColor:dr,minorTickWidth:0,opposite:!1,tickColor:dr,tickWidth:0,tickmarkPlacement:"on",tickInterval:t.enabled?t.tickInterval:null,min:t.enabled?t.min:null,max:t.enabled?t.max:null}],Dv="#00cee6",oc=t=>{const o=t.rawValue==null?Number(t.displayValue):Number(t.rawValue);return Number.isNaN(o)||o===void 0?null:o},JG=t=>t?oc(t):1,QG=(t,o)=>{const{xAxis:m,yAxis:R,breakByPoint:Q,breakByColor:tt,size:ot}=t,{xCategoriesMap:lt,yCategoriesMap:ct}=o,ut=lt.get(m.displayValue),ft=ct.get(R.displayValue),yt=m.blur||R.blur||(Q==null?void 0:Q.blur);return{x:ut!==void 0?ut:oc(m),y:ft!==void 0?ft:oc(R),z:JG(ot),maskedX:m.displayValue,maskedY:R.displayValue,maskedBreakByPoint:Q==null?void 0:Q.displayValue,maskedBreakByColor:tt==null?void 0:tt.displayValue,color:tt==null?void 0:tt.color,maskedSize:ot==null?void 0:ot.displayValue,selected:yt}},tW=(t,o,m)=>{var ot;const R=new Map;t.forEach(lt=>{var ct;if(lt.breakByColor){const{displayValue:ut,color:ft}=lt.breakByColor;if(ut&&!R.has(ut)){const yt=ft||((ct=o==null?void 0:o.seriesToColorMap)==null?void 0:ct[ut]);R.set(ut,yt)}}});const Q=new Map,tt=ui((ot=o==null?void 0:o.breakByColor)==null?void 0:ot.type)?"number":"string";return Array.from(R).sort(([lt],[ct])=>By(lt,ct,Ny.ASC,tt)).forEach(([lt,ct],ut)=>{Q.set(lt,{color:ct!=null?ct:vr(m==null?void 0:m.palette.variantColors,ut),index:ut})}),Q},eW=(t,o,m)=>{const R={enabled:!0,fillOpacity:.7,lineWidth:1,states:{select:{fillOpacity:.3,lineWidth:1}}};return t.size?Array.from(t).map(([Q,{index:tt,color:ot}])=>({data:[],index:tt,marker:R,name:Q,showInLegend:!0,type:"bubble",color:ot})):[{data:[],index:0,marker:R,name:o,showInLegend:!!o,type:"bubble",color:a0(m)||Dv}]},iW=(t,o)=>{const m=t.get(o);return m?m.index:0},rW=(t,o)=>{const m=Xc({getValueFromDataStructure:R=>{var Q;return parseFloat(`${(Q=R.custom)==null?void 0:Q.maskedBreakByColor}`)},applyColorToDataStructure:(R,Q)=>Zt(jt({},R),{color:Q})});return t.map(R=>Zt(jt({},R),{data:m(R.data,o)}))},nW=t=>{if(t&&Ho(t)&&t.color)return t.color},oW=(t,o,m,R)=>{for(const Q of o){const{x:tt,y:ot,z:lt,maskedX:ct,maskedY:ut,maskedBreakByPoint:ft,maskedSize:yt,color:B,maskedBreakByColor:st,selected:U}=QG(Q,m);if(tt!==null&&ot!==null){const z=t[iW(R,st)],X={color:B||z.color||Dv,x:tt,y:ot,z:lt,custom:{maskedX:ct,maskedY:ut,maskedBreakByPoint:ft,maskedBreakByColor:st,maskedSize:yt},selected:U};z.data.push(X)}}return t},sW=t=>{const o=t==null?void 0:t.breakByColor,m=t==null?void 0:t.breakByPoint;return o&&pr(o)||m&&pr(m)||""},aW=(t,o,m,R)=>{const Q=m==null?void 0:m.breakByColor,tt=sW(m),ot=nW(Q),lt=Q&&eo(Q)?tW(t,m,R):new Map;let ct=eW(lt,tt,ot);return ct=oW(ct,t,o,lt),ot&&(ct=rW(ct,ot)),ct},lW=(t,o)=>o?t.slice(0,o):t,hW=(t,o,m,R,Q)=>{const tt=[],ot=aW(t,o,m,R);return Q&&ot.length>Q?(tt.push(Yn(ot.length,Q)),{series:lW(ot,Q),alerts:tt}):{series:ot,alerts:tt}},Qs=20,cW=30,uW=t=>Zt(jt({},mn(t)),{symbolHeight:12,symbolWidth:12,itemMarginBottom:0,itemMarginTop:0}),pW=(t,o,m,R,Q)=>{const tt=[],ot=Ja(o,m),lt=R,{scatterDataTable:ct}=t,{seriesCapacity:ut,categoriesCapacity:ft}=m.dataLimits;let{xCategories:yt,yCategories:B}=t;yt&&yt.length>ft&&(tt.push(Jh("x",yt.length,ft)),yt=yt.slice(0,ft)),B&&B.length>ft&&(tt.push(Jh("y",B.length,ft)),B=B.slice(0,ft));const{series:st,alerts:U}=hW(ct,Ez(yt,B),lt,Q,ut);return tt.unshift(...U),{options:{title:{text:null},subtitle:{text:null},chart:{type:ot,spacing:[Qs,Qs,Qs,Qs],marginTop:cW,alignTicks:!1,polar:!1},xAxis:qG(m.xAxis,yt==null?void 0:yt.slice(0,ft),lt),yAxis:KG(m.yAxis,B==null?void 0:B.slice(0,ft),lt),legend:uW(m.legend),series:st,plotOptions:Q6(m,lt),tooltip:pF(lt)},alerts:tt}},dW=(t,o)=>{const m=[],[R,Q]=t.series,{boxplotType:tt}=o,ot=[Zt(jt({},R),{data:R.data.map(lt=>{var ct;return Zt(jt({},lt),{color:"#0090a1",fillColor:tt==="hollow"?"transparent":"#00cee6",innerBoxColor:tt==="hollow"?"transparent":"#00afc4",selected:(ct=lt.blur)!=null?ct:!1})}),medianWidth:1,maxPointWidth:42,minPointWidth:20,whiskerWidth:1,whiskerLength:"100%",fillOpacity:.8,strokeOpacity:.8,showInLegend:!0,legendIndex:0,yAxis:0,color:"#0090a1"})];return Q&&ot.push(Zt(jt({},Q),{data:Q.data.map(lt=>Zt(jt({},lt),{marker:{lineColor:lt.blur?"rgba(0, 144, 161, 0.3)":"#0090a1"}})),type:"scatter",legendIndex:1,showInLegend:!1,marker:{enabled:!0,fillColor:"transparent",lineWidth:1,lineColor:"#0090a1"},color:"#0090a1"})),{series:ot,alerts:m}},fr="#d1d1d7",fW=t=>t.series[0].data.reduce((o,{low:m,high:R})=>({min:Math.min(o.min,m),max:Math.max(o.max,R)}),{min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY}),gW=(t,o,m)=>[{labels:{overflow:"none",enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:ai,formatter(){const{value:R}=this;if(m&&eo(m)&&!ui(m.type))return`${R}`;const Q=typeof R=="number"?R:parseFloat(R);return isNaN(Q)?`${R}`:si($e(m==null?void 0:m.numberFormatConfig),Q)}},categories:o,title:{text:t.enabled&&t.titleEnabled&&t.title||null,margin:25},tickmarkPlacement:"on",gridLineWidth:t.enabled&&t.gridLine?1:0,minorTickLength:0,tickLength:0,startOnTick:!0,endOnTick:!0,lineColor:fr,tickColor:fr,minorTickColor:fr,gridLineColor:fr,gridLineDashStyle:"Dot",minorGridLineColor:fr,minorGridLineDashStyle:"Dot",min:t.enabled?t.min:null,max:t.enabled?t.max:null}],mW=(t,o,m)=>{const R=fW(o);return[{labels:{enabled:t.enabled&&t.labels,autoRotation:[-10,-20,-30,-40,-50,-60,-70,-80,-90],style:ai,formatter(){return si($e(m==null?void 0:m.numberFormatConfig),this.value)}},tickmarkPlacement:"on",title:{text:t.enabled&&t.titleEnabled&&t.title||null,margin:25,style:ai},minorGridLineWidth:0,lineColor:fr,lineWidth:1,tickColor:fr,minorTickColor:fr,gridLineColor:fr,gridLineDashStyle:"Dot",gridLineWidth:t.enabled&&t.gridLine?1:0,minorGridLineColor:fr,minorGridLineDashStyle:"Dot",min:t.enabled&&Zh(t.min)?t.min:R.min,max:t.enabled&&Zh(t.max)?t.max:R.max,tickInterval:t.enabled?t.tickInterval:null}]},Bg=t=>function(o,m){const R=m?this.point[m]:void 0;return R===void 0||isNaN(R)?"":si($e(t),R)},yW=t=>{var o,m,R,Q;return{series:{dataLabels:{enabled:(o=t.enabled)!=null?o:!1,style:{fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#001b4f"},rotation:(m=t.rotation)!=null?m:0,align:"center",formatter:Bg()},grouping:!1,stickyTracking:!1,turboThreshold:0,boostThreshold:0,softThreshold:!1},boxplot:{dataLabels:{enabled:(R=t.enabled)!=null?R:!1,style:{fontFamily:"Open Sans",fontSize:"13px",fontWeight:"normal",color:"#001b4f"},rotation:(Q=t.rotation)!=null?Q:0,align:"center",formatter:Bg()}},scatter:{dataLabels:{enabled:!1}}}};function vW(t){return t===void 0}var bW=vW;const Iv=Mi(bW),xW=(t,o)=>({animation:!1,backgroundColor:Zr,borderColor:fn,borderRadius:10,borderWidth:1,useHTML:!0,formatter(){const{x:m,y:R}=this,{high:Q,low:tt,q3:ot,q1:lt,median:ct}=this.point,ut=Iv(Q),ft=Do(t.category,m,`${m}`);if(ut){const X=mi(t.outliers,R,`${R}`);return gn(`
157
+ <div>${this.series.name}</div>
158
+ <div>${oi(X,this.point.color)}</div>
159
+ ${t.category?`${Vr()}<div>${ft}</div>`:""}
160
+ `)}const yt=mi(t.whiskerMax,Q,`${Q}`),B=mi(t.whiskerMin,tt,`${tt}`),st=mi(t.boxMax,ot,`${ot}`),U=mi(t.boxMin,lt,`${lt}`),z=mi(t.boxMedian,ct,`${ct}`);return gn(`
161
+ <div>${o("boxplot.tooltip.whiskers")}</div>
162
+ <div class="csdk-boxplot-tooltip-row">
163
+ <span>${o("boxplot.tooltip.max")}</span>
164
+ ${oi(yt,this.point.color)}
165
+ </div>
166
+ <div class="csdk-boxplot-tooltip-row">
167
+ <span>${o("boxplot.tooltip.min")}</span>
168
+ ${oi(B,this.point.color)}
169
+ </div>
170
+ ${Vr()}
171
+ <div>${o("boxplot.tooltip.box")}</div>
172
+ <div class="csdk-boxplot-tooltip-row">
173
+ <span>${o("boxplot.tooltip.max")}</span>
174
+ ${oi(st,this.point.color)}
175
+ </div>
176
+ <div class="csdk-boxplot-tooltip-row">
177
+ <span>${o("boxplot.tooltip.min")}</span>
178
+ ${oi(U,this.point.color)}
179
+ </div>
180
+ <div class="csdk-boxplot-tooltip-row">
181
+ <span>${o("boxplot.tooltip.median")}</span>
182
+ ${oi(z,this.point.color)}
183
+ </div>
184
+ ${Vr()}
185
+ <div>${t.category?ft:this.series.name}</div>
186
+ `)}}),wW=(t,o,m,R)=>{const Q=Ja("boxplot",o),{series:tt,alerts:ot}=dW(t,o),lt=t.xValues.map(ut=>ut.key);return{options:{title:{text:null},chart:{type:Q,spacing:[25,20,20,20],polar:!1,zooming:{type:"x"},events:{selection:ut=>{ut.preventDefault()}}},legend:mn(o.legend),xAxis:gW(o.xAxis,lt,m.category),yAxis:mW(o.yAxis,t,m.whiskerMax),series:tt,plotOptions:yW(o.valueLabel),navigator:gv(Q,o.autoZoom,t.xValues.length),tooltip:xW(m,R)},alerts:ot}},CW=(t,o,m)=>({animation:!1,crosshairs:!0,backgroundColor:Zr,borderColor:fn,borderRadius:10,borderWidth:1,useHTML:!0,formatter:function(){var J,q,W,D;const R=this;if(!R.point.low||!R.point.high)return fv(R,t,o,m);let Q;R.percentage&&(Q=`${Math.round(R.percentage)}`);const tt=o,ot=(J=tt.rangeValues)==null?void 0:J.find(tt.breakBy.length>0?O=>O[0].enabled:O=>O[0].title===R.series.name),[lt,ct]=ot!=null?ot:[void 0,void 0],ut=ov(lt),ft=mi(lt,R.point.high,""),yt=mi(ct,R.point.low,""),B=(D=(W=(q=R.point)==null?void 0:q.custom)==null?void 0:W.xDisplayValue)!=null?D:R.x,st=tt.x?Do(tt.x[0],R.x,B):B,U=ft+(ut&&Q?` / ${Q}%`:""),z=yt+(ut&&Q?` / ${Q}%`:""),X=R.point.color||R.series.color,{upperPointName:V,lowerPointName:K}=R.point;return gn(`
187
+ <div>${R.series.name}</div>
188
+ <div class="csdk-range-tooltip-row">
189
+ <span>${V||m("arearange.tooltip.max")}</span>
190
+ ${oi(U,X)}
191
+ </div>
192
+ <div class="csdk-range-tooltip-row">
193
+ <span>${K||m("arearange.tooltip.min")}</span>
194
+ ${oi(z,X)}
195
+ </div>
196
+ ${Vr()}
197
+ <div>${st||""}</div>
198
+ `)}}),Rg=(t,o,m,R,Q,tt,ot)=>{var O,w;const lt=[],ct=[];R.seriesValues.forEach(T=>{ct.push(T),lt.push(T)}),R.rangeValues.forEach(([T,d])=>{ct.push(d),lt.push(T)});const yt=Zt(jt({},R),{y:ct,seriesToColorMap:R.seriesToColorMap}),B=Qh(Zt(jt({},t),{type:"cartesian"}),o,m,yt,Q,tt,ot),st={};B.options.series.forEach(T=>{st[T.name]=T});const U=Zt(jt({},R),{y:lt,seriesToColorMap:R.seriesToColorMap}),z=Qh(Zt(jt({},t.seriesOther),{type:"cartesian"}),o,m,U,Q,tt,ot),X={};z.options.series.forEach(T=>{X[T.name]=T});let V=1/0,K=-1/0,J=-1,q=0;if(B.options.series.forEach((T,d)=>{if(R.breakBy.length===0&&d<R.seriesValues.length)Fn(T.name)&&(J=Dz(T,X,st)),T.zIndex=1,T.data.forEach(u=>{u.y&&u.y<V&&(V=u.y),u.y&&u.y>K&&(K=u.y)});else{const u=X[T.name].data;T.yAxis=0;let g=0;R.breakBy.length===0&&(g=d-R.seriesValues.length);const b=R.rangeValues[g],v=b[0].name.indexOf("_")+1,S=b[1].name.substring(v),P=b[0].name.substring(v);T.type="arearange",Fn(T.name)&&Iz(T,X),q=Math.max(T.data.length,q),T.data=T.data.map((E,M)=>{const f=Zt(jt({},E),{low:u[M].y,high:E.y,y:void 0,upperPointName:S,lowerPointName:P});return f.low&&f.low<V&&(V=f.low),f.high&&f.high>K&&(K=f.high),f}),Fn(T.name)&&jz(T,X)}}),B.options.xAxis||(B.options.xAxis=[]),J>0&&Nz(B.options.xAxis,J,q),o==="arearange"&&m.lineType==="smooth"){const T="areasplinerange";B.options.chart.type=T,(O=B.options.navigator)!=null&&O.series&&(B.options.navigator.series.type=T)}o==="arearange"&&(B.options.tooltip=CW(!1,R,Q));const[W]=(w=B.options.yAxis)!=null?w:[],D=Zt(jt({},W),{min:V,max:K});return B.options.yAxis=[D],B},SW=(t,o,m,R,Q,tt,ot)=>{switch(t.type){case"range":return Rg(t,o,m,R,Q,tt,ot);case"cartesian":{const lt=R,ct=V0(lt)?Rg(Zt(jt({},t),{type:"range"}),o,m,Z0(lt),Q,tt,ot):Qh(t,o,m,lt,Q,tt,ot);return Rz(ct.options.series,Q),ct}case"categorical":return ZG(t,o,m,R,tt);case"scatter":return pW(t,o,m,R,tt);case"boxplot":return wW(t,m,R,Q);default:throw new Error("Unexpected chart type")}},MW={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}},Ko=()=>Go(MW);class jv extends La{constructor(m,R){var Q;super((Q=m.jaql.title)!=null?Q:"",R);Je(this,"metadataItem");Je(this,"expression");Je(this,"skipValidation");Je(this,"aggregation");Je(this,"formula");Je(this,"sortType");this.expression=m.jaql.dim||m.jaql.formula,this.metadataItem=m,m.jaql.agg?this.aggregation=m.jaql.agg:delete this.aggregation,m.jaql.formula?this.formula=m.jaql.formula:delete this.formula,m.jaql.sort?this.sortType=nv(m.jaql.sort):delete this.sortType,this.skipValidation=!0}get id(){return this.expression}jaql(){return this.metadataItem}}const AW={text:me.TextAttribute,numeric:me.NumericAttribute,datetime:me.DateLevel};function iu(t){var o;return new jv(t,(o=AW[t.jaql.datatype])!=null?o:"numeric")}const TW=t=>"chartType"in t.chartRecommendations?t.chartRecommendations:{chartType:"table",chartFamily:"table",axesMapping:{}},Nv=t=>({dataOptions:{columns:t.map(iu)}}),kW=Object.freeze({convolution:{enabled:!0,selectedConvolutionType:"bySlicesCount",independentSlicesCount:7},lineWidth:{width:"bold"},markers:{enabled:!1},legend:{enabled:!1},yAxis:{gridLines:!1},xAxis:{gridLines:!1}}),PW=Object.freeze({line:"line/spline",pie:"pie/donut",bar:"bar/stacked",column:"column/stackedcolumn"}),LW=(t,o)=>{const{axesMapping:m,chartFamily:R}=o,Q=t.reduce((ot,lt)=>(ot[lt.jaql.title]=lt,ot),{}),tt=Object.entries(m).reduce((ot,lt)=>{const[ct,ut]=lt;return ot[`${ct}`]=Array.isArray(ut)?ut.map(ft=>{var st,U;const yt=Q[ft.name];if(!yt)return{column:{type:"",name:ft.name}};const B=iu(yt);if(yt.panel==="measures")return{column:B,sortType:"sortNone"};if(mr(B.type)){const z=(U=(st=yt.format)==null?void 0:st.mask)==null?void 0:U[yt.jaql.level];if(z)return{column:B,dateFormat:z}}return B}):ut,ot},{});switch(R){case"cartesian":return jt({category:[],value:[],breakBy:[]},tt);case"categorical":return jt({category:[],value:[]},tt);case"scatter":return Object.keys(tt).forEach(ot=>{tt[`${ot}`]=tt[`${ot}`][0]}),tt;case"scattermap":return Object.keys(tt).forEach(ot=>{ot!=="geo"&&(tt[`${ot}`]=tt[`${ot}`][0])}),tt;case"table":return Object.keys(tt).length===0?Nv(t).dataOptions:tt;case"boxplot":case"areamap":case"indicator":default:return tt}},zg=(t,o)=>{var m,R,Q,tt;return o==="x"?(R=(m=t.axesMapping.category)!=null?m:t.axesMapping.x)==null?void 0:R.map(ot=>ot.name).join(", "):(tt=(Q=t.axesMapping.value)!=null?Q:t.axesMapping.y)==null?void 0:tt.map(ot=>ot.name).join(", ")},EW=(t,o,m=!0)=>{const R=LW(t,o);let Q,tt;return m?(Q=Xi(kW,{subtype:PW[o.chartType]}),tt=Xi(Q,{legend:{enabled:!0,position:"right"},yAxis:{title:{enabled:!0,text:zg(o,"y")}},xAxis:{title:{enabled:!0,text:zg(o,"x")}}})):(Q=Ko(),tt=Q),{dataOptions:R,chartStyleOptions:Q,expandedChartStyleOptions:tt}},OW=t=>Ic(t)?"cartesian":Yy(t)?"categorical":$y(t)?"scatter":Vy(t)?"scattermap":Zy(t)?"indicator":Jy(t)?"areamap":Ky(t)?"boxplot":"table";exports.AbstractTranslatableError=hc;exports.AggregationTypes=Ge;exports.BOXPLOT_CHART_TYPES=Uy;exports.CARTESIAN_CHART_TYPES=Gy;exports.CATEGORICAL_CHART_TYPES=Wy;exports.CascadingFilter=yy;exports.Color=Ae;exports.CurrencyPosition=J0;exports.CustomFilter=wy;exports.DEFAULT_COLOR=ma;exports.DateLevels=Jt;exports.DateOperators=Wn;exports.DateRangeFilter=xy;exports.DimensionalAttribute=Qn;exports.DimensionalBaseMeasure=_r;exports.DimensionalCalculatedMeasure=Gn;exports.DimensionalLevelAttribute=or;exports.FORECAST_PREFIX=Ka;exports.FilterTypes=Ki;exports.Highcharts=Mv;exports.JaqlElement=jv;exports.MeasureFilter=vy;exports.MembersFilter=kc;exports.MetadataTypes=me;exports.NumericFilter=by;exports.NumericOperators=pi;exports.RANGE_CHART_TYPES=Xy;exports.RankingFilter=Pc;exports.RankingOperators=Tc;exports.RelativeDateFilter=Lc;exports.SCATTER_CHART_TYPES=Hy;exports.TREND_PREFIX=$c;exports.TRIANGLE_COLOR_ADJUSTMENT=HR;exports.TextFilter=wr;exports.TextOperators=xr;exports.TranslatableError=_c;exports.WidgetDashboardFilterMode=K0;exports._Set=pm;exports._SetCache=nm;exports._Stack=Wa;exports._WeakMap=dm;exports._apply=_y;exports._arrayEach=Nm;exports._arrayMap=bm;exports._baseAssignValue=Oa;exports._baseCreate=Gm;exports._baseFlatten=Oy;exports._baseFor=Jg;exports._baseForOwn=rm;exports._baseGetTag=yn;exports._baseIsEqual=mc;exports._baseIteratee=Am;exports._baseToString=wm;exports._baseTrim=ky;exports._baseUnary=Da;exports._cacheHas=om;exports._cloneBufferExports=Bm;exports._cloneTypedArray=Fm;exports._copyArray=Rm;exports._copyObject=Fo;exports._flatRest=jy;exports._getPrototype=Mc;exports._hasPath=Sm;exports._initCloneObject=Wm;exports._isIndex=_a;exports._overRest=Dy;exports._root=Zi;exports._setToArray=lm;exports._setToString=Iy;exports.advancedAnalyticsData=zz;exports.applyFormatPlainText=si;exports.applyOpacity=ZR;exports.between=ga;exports.bottomRanking=ly;exports.cartesianData=Vh;exports.clearMembersFilter=$z;exports.cloneDeep=Go;exports.cloneFilterAndToggleDisabled=Uz;exports.commonjsGlobal=Si;exports.contains=qm;exports.convertFilterRelationsModelToJaql=oF;exports.createCompareValue=Po;exports.createDataColoringFunction=Xc;exports.createDataTableFromData=TB;exports.createFilterFromJaql=mN;exports.createJaqlElement=iu;exports.customFormula=X_;exports.dateRange=ny;exports.dateRelativeFrom=oy;exports.dateRelativeTo=sy;exports.deriveChartFamily=OW;exports.doesntContain=$m;exports.doesntEndWith=Vm;exports.doesntEqual=d5;exports.doesntStartWith=Zm;exports.emptyTable=zc;exports.endsWith=Km;exports.eq_1=Ba;exports.equals=Qm;exports.exclude=Ym;exports.forecast=Z_;exports.formatTooltipValue=mi;exports.get=ZO;exports.getAugmentedNamespace=fA;exports.getChartOptions=EW;exports.getChartRecommendationsOrDefault=TW;exports.getChartSubtype=Jz;exports.getChartType=Kz;exports.getColoringServiceByColorOptions=R0;exports.getColumnByName=Xr;exports.getColumnsByName=Lo;exports.getCompleteNumberFormatConfig=$e;exports.getDarkFactor=Vo;exports.getDataOptionTitle=pr;exports.getDataSourceName=fN;exports.getDefaultDateFormat=Zc;exports.getDefaultExportFromCjs=Mi;exports.getDefaults=xA;exports.getEnabledPanelItems=iF;exports.getFilterCompareId=Aa;exports.getFilterListAndRelations=dN;exports.getFilterRelationsFromJaql=nF;exports.getI18n=CA;exports.getIndexedRows=Rc;exports.getOrderedXValues=X0;exports.getPaletteColor=vr;exports.getRootPanelItem=rv;exports.getSelectedConditionOption=Ya;exports.getSlightlyDifferentColor=VR;exports.getSortType=nv;exports.getTableOptions=Nv;exports.getUniformColorOptionsFromString=Fc;exports.getValue=Nc;exports.greaterThan=ty;exports.greaterThanOrEqual=ey;exports.groupBy=e0;exports.haveSameAttribute=qz;exports.highchartsOptionsService=SW;exports.identity_1=wc;exports.initI18next=lc;exports.initializeI18n=Xg;exports.isAreamap=Jy;exports.isArguments_1=jo;exports.isArrayLike_1=Na;exports.isArray_1=qi;exports.isBlurred=Bc;exports.isBoolean=Pm;exports.isBoxplot=Ky;exports.isBufferExports=No;exports.isCartesian=Ic;exports.isCascadingFilter=tv;exports.isCategorical=Yy;exports.isCategory=eo;exports.isCell=zy;exports.isChartWidget=eF;exports.isConditionFilter=dy;exports.isDataSourceInfo=gN;exports.isDataTableEmpty=AB;exports.isDatetime=mr;exports.isEmpty_1=z0;exports.isForecastChart=V0;exports.isFunction=aT;exports.isFunction_1=Ea;exports.isIncludeAllFilter=Zz;exports.isIndicator=Zy;exports.isMeasureColumn=Ly;exports.isNumber=ui;exports.isNumber$1=Zh;exports.isNumber_1=q0;exports.isObjectLike_1=Dr;exports.isObject_1=br;exports.isPivotWidget=iv;exports.isRange=_B;exports.isSameAttribute=ev;exports.isScatter=$y;exports.isScattermap=Vy;exports.isSpecificItemsFilter=py;exports.isSupportedWidgetType=Qz;exports.isTable=OB;exports.isTableWidget=tF;exports.isText=km;exports.isTypedArray_1=Ia;exports.isUndefined=Iv;exports.isValue=Ho;exports.keysIn_1=Xa;exports.lessThan=iy;exports.lessThanOrEqual=ry;exports.like=p5;exports.lodashExports=Q0;exports.mapValues=Tm;exports.max=$_;exports.members=Wo;exports.merge=Xi;exports.merge$1=Ui;exports.mergeFilters=la;exports.mergeFiltersByStrategy=rF;exports.min=Y_;exports.normalizeAttributeName=jh;exports.normalizeName=Ur;exports.orderBy=t0;exports.parseISO=Ec;exports.pick_1=Ev;exports.prepareChartDesignOptions=SG;exports.rangeData=Y0;exports.requiredArgs=Sy;exports.rownumColumnName=Dc;exports.safeCombine=yz;exports.scaleBrightness=$h;exports.scatterData=_z;exports.selectColumns=i0;exports.simpleColumnType=Lm;exports.sortDirection=U0;exports.spanSegment=oi;exports.splitColumn=G0;exports.startsWith=Jm;exports.toColor=sr;exports.toFinite_1=Py;exports.toGray=N0;exports.toInteger=Cy;exports.toNumber_1=Oc;exports.toString_1=bc;exports.tooltipWrapper=gn;exports.topRanking=ay;exports.translateAttributeToCategory=xz;exports.translateCategoryToAttribute=H0;exports.translateColumnToAttribure=Cz;exports.translateColumnToCategory=Yc;exports.translateColumnToCategoryOrValue=vz;exports.translateColumnToValue=W0;exports.translateMeasureToValue=bz;exports.translateValueToMeasure=wz;exports.trend=V_;