@xcpcio/board-app 0.55.0 → 0.55.2

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 (48) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{Balloon.vue_vue_type_script_setup_true_lang-4AVGJCMI.js → Balloon.vue_vue_type_script_setup_true_lang-CmkJalmb.js} +1 -1
  3. package/dist/assets/Board-Dum-tExZ.js +1 -0
  4. package/dist/assets/{ContestStateBadge-Dhbid94g.js → ContestStateBadge-hRbbyZ5a.js} +1 -1
  5. package/dist/assets/{Countdown-BvdJWWuk.js → Countdown-DAdiIlkO.js} +1 -1
  6. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-BdYOS7Pt.js → DataSourceInput.vue_vue_type_script_setup_true_lang-J0bb2eXG.js} +1 -1
  7. package/dist/assets/{Footer.vue_vue_type_script_setup_true_lang-DoBaeAhT.js → Footer.vue_vue_type_script_setup_true_lang-CZWhuawj.js} +1 -1
  8. package/dist/assets/{NavBar-B9KggQU-.js → NavBar-o7LroIec.js} +1 -1
  9. package/dist/assets/{Resolver-CxzATvRW.js → Resolver-DQAiggp3.js} +1 -1
  10. package/dist/assets/{RightArrowIcon-UrcrWsjs.js → RightArrowIcon-DcfHXHHq.js} +1 -1
  11. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-Fq7AIk4r.js → TheInput.vue_vue_type_script_setup_true_lang-DsqG2YZ8.js} +1 -1
  12. package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-C9T_K5RC.js → Tooltip.vue_vue_type_script_setup_true_lang-OTaxJAgs.js} +1 -1
  13. package/dist/assets/{_...all_-DizdgePm.js → _...all_-CWEYFf-1.js} +1 -1
  14. package/dist/assets/{_...all_-CpbyYPnu.js → _...all_-Dkuyof0N.js} +1 -1
  15. package/dist/assets/{_name_-CyHYBF6H.js → _name_-DkCB2ylA.js} +1 -1
  16. package/dist/assets/{about-CfqrcwJT.js → about-Bei-zdpH.js} +1 -1
  17. package/dist/assets/board-DYwZDF6d.js +1 -0
  18. package/dist/assets/{board-layout-DDF2wubP.js → board-layout-K8sw8NsP.js} +1 -1
  19. package/dist/assets/{constant-CKMKwY_M.js → constant-2MSuUQN9.js} +1 -1
  20. package/dist/assets/{default-REGvX7tC.js → default-1E2MOw97.js} +1 -1
  21. package/dist/assets/{headless-DedxMF3x.js → headless-Sa2QJJjX.js} +1 -1
  22. package/dist/assets/{home-DSppcc6C.js → home-CtJUZVCZ.js} +1 -1
  23. package/dist/assets/{index-LvyoMonD.js → index-6jZiIup0.js} +1 -1
  24. package/dist/assets/{index-CaB6yvAO.js → index-B15dCUpg.js} +1 -1
  25. package/dist/assets/{index-BZdyM9Qh.js → index-BNZRV8LR.js} +1 -1
  26. package/dist/assets/{index-B8vw3ErJ.js → index-BYh7ktqe.js} +56 -56
  27. package/dist/assets/{index-Yf5aNxDp.js → index-Biv_orBr.js} +1 -1
  28. package/dist/assets/{index-_3n9Ahv3.js → index-CPJc3gEW.js} +1 -1
  29. package/dist/assets/index-CYsJ2gG-.js +67 -0
  30. package/dist/assets/{index-Bx4d8xqO.js → index-DIl_xwmv.js} +1 -1
  31. package/dist/assets/{index-Y1YIGHJj.js → index-DXMw63yv.js} +1 -1
  32. package/dist/assets/{index-layout-qLKsk6Zm.js → index-layout-D7MYCKsY.js} +1 -1
  33. package/dist/assets/pagination-D1pCU19r.js +3 -0
  34. package/dist/assets/{query-DymhAP9l.js → query-DfOnN8jV.js} +1 -1
  35. package/dist/assets/{test-C8r9tN4s.js → test-C0jX_snI.js} +1 -1
  36. package/dist/assets/{use-vmodel-BusQKjfF.js → use-vmodel-CT985YGh.js} +1 -1
  37. package/dist/assets/{user-B1iInd_U.js → user-bpzU-F74.js} +1 -1
  38. package/dist/assets/{virtual_pwa-register-Bw1WWEdI.js → virtual_pwa-register-C3KS-ZjO.js} +1 -1
  39. package/dist/index.html +1 -1
  40. package/dist/sw.js +1 -1
  41. package/package.json +25 -25
  42. package/src/auto-imports.d.ts +14 -4
  43. package/vite.config.ts +8 -4
  44. package/dist/assets/Board-DpMNDnwb.js +0 -1
  45. package/dist/assets/board-vgh1WXMi.js +0 -1
  46. package/dist/assets/index-Cc2LPl6E.js +0 -50
  47. package/dist/assets/pagination-zmuISHg-.js +0 -3
  48. /package/dist/assets/{index-DLur0B0J.css → index-BZMvrIyG.css} +0 -0
@@ -0,0 +1,3 @@
1
+ var Up=Object.defineProperty;var qp=(P,C,F)=>C in P?Up(P,C,{enumerable:!0,configurable:!0,writable:!0,value:F}):P[C]=F;var Ms=(P,C,F)=>qp(P,typeof C!="symbol"?C+"":C,F);import{d as Cn,f as An,a1 as Zp,C as Kp,c as Lt,o as Et,n as Nt,b as Q,L as Ai,k as Xt,O as Ut,V as se,F as Pi,E as Oi,j as Li,K as $r,s as Vr,v as _p,x as Jp,a2 as Qp,h as St}from"./index-CYsJ2gG-.js";const tu={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},eu={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},iu={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Iu=Cn({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null,mt:null},emits:["update:isHidden"],setup(P,{emit:C}){const F=P,tt=C,$=An({get(){return F.isHidden},set(U){tt("update:isHidden",U)}});function N(){$.value=!0}const{Escape:D}=Zp();return Kp(D,U=>{U&&N()}),(U,Z)=>(Et(),Lt("div",{class:Nt(["md:inset-0 w-[100%] h-[100%]",[F.mt??"md:mt-32 sm:mt-16"]]),fixed:"","z-1997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":""},[Q("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-1998":"",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:N}),Q("div",{class:Nt(["relative p-4",[F.width??"w-[78%]"]]),"z-1999":""},[Q("div",tu,[Q("div",eu,[Ai(U.$slots,"header",{},()=>[Q("h3",iu,Xt(F.title),1)]),Q("button",{type:"button",class:"hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","bg-transparent":"","ml-auto":"","p-1.5":"","text-sm":"","text-gray-400":"","items-center":"","inline-flex":"","rounded-lg":"",onClick:N},Z[0]||(Z[0]=[Q("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Q("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),Q("span",{"sr-only":""}," Close modal ",-1)]))]),Ai(U.$slots,"default")])],2)],2))}}),Tt={openOptions(P){P.$refs.input.focus(),P.showMenu=!0,P.mousedownState=!1},blurInput(P){P.mousedownState||(P.searchText="",P.closeOptions()),P.$emit("blur")},closeOptions(P){P.$refs.input.blur(),P.showMenu=!1},prevItem(P){const C=P.pointer-1,F=P.$el.offsetHeight*C;C>=0&&(P.pointer=C),P.$refs.menu.scrollTop=F},nextItem(P){const C=P.pointer+1,F=P.$el.offsetHeight*C;C<=P.filteredOptions.length-1&&(P.pointer=C);const tt=P.$refs.menu.offsetHeight,$=Math.ceil((P.$refs.menu.scrollTop+P.$el.offsetHeight)/tt),N=Math.ceil(F/tt);$!==N&&(P.$refs.menu.scrollTop=(N-1)*P.$refs.menu.offsetHeight)},enterItem(P){const C=P.filteredOptions[P.pointer],F=C.disabled;C&&!F&&P.selectItem(C)},pointerSet(P,C){P.pointer=C},pointerAdjust(P){P.pointer>=P.filteredOptions.length-1&&(P.pointer=P.filteredOptions.length?P.filteredOptions.length-1:0)},mousedownItem(P){P.mousedownState=!0}};function su(P){return new RegExp(P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Pn={props:{id:{default:null},name:{type:String,default:""},isError:{type:Boolean,default:!1},customAttr:{type:Function,default:()=>""},isDisabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},filterPredicate:{type:Function,default:(P,C)=>P.match(su(C))}}},On=(P,C)=>{const F=P.__vccOpts||P;for(const[tt,$]of C)F[tt]=$;return F},ru={name:"ModelSelect",mixins:[Pn],emits:["blur","searchchange","update:modelValue"],props:{modelValue:{type:[String,Number,Object,Boolean]},customAttr:{type:Function,default:()=>""},options:{type:Array}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{value(P){this.pointer=this.filteredOptions.findIndex(C=>C.value===this.optionValue(P))},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{searchTextCustomAttr(){return this.selectedOption&&this.selectedOption.value?this.customAttr(this.selectedOption):""},inputText(){if(this.searchText)return"";{let P=this.placeholder;return this.selectedOption&&(P=this.selectedOption.text),P}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(P=>this.customAttr(P))}catch{}return[]},textClass(){return!this.selectedOption&&this.placeholder?"default":""},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},filteredOptions(){return this.searchText?this.options.filter(P=>{try{return this.filterPredicate(P.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(P=>P.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){Tt.openOptions(this)},blurInput(){Tt.blurInput(this)},closeOptions(){Tt.closeOptions(this)},prevItem(){Tt.prevItem(this)},nextItem(){Tt.nextItem(this)},enterItem(){Tt.enterItem(this)},pointerSet(P){Tt.pointerSet(this,P)},pointerAdjust(){Tt.pointerAdjust(this)},mousedownItem(){Tt.mousedownItem(this)},selectItem(P){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",P):(this.$emit("update:modelValue",P.value),P.value!==void 0&&P.value===P.text&&(this.searchText=P.value))},optionValue(P){return typeof P=="object"&&P!==null?P.value:P}}},ou=Q("i",{class:"dropdown icon"},null,-1),au=["disabled","tabindex","id","name","value"],nu=["data-vss-custom-attr"],lu=["data-vss-custom-attr","onClick","onMouseenter"];function hu(P,C,F,tt,$,N){return Et(),Lt("div",{class:Nt(["ui fluid search selection dropdown",{"active visible":$.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:C[11]||(C[11]=(...D)=>N.openOptions&&N.openOptions(...D)),onFocus:C[12]||(C[12]=(...D)=>N.openOptions&&N.openOptions(...D))},[ou,Q("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,value:$.searchText,onInput:C[0]||(C[0]=D=>$.searchText=D.target.value),ref:"input",onFocus:C[1]||(C[1]=se((...D)=>N.openOptions&&N.openOptions(...D),["prevent"])),onKeyup:[C[2]||(C[2]=Ut((...D)=>N.closeOptions&&N.closeOptions(...D),["esc"])),C[7]||(C[7]=Ut(se((...D)=>N.enterItem&&N.enterItem(...D),["prevent"]),["enter"]))],onBlur:C[3]||(C[3]=(...D)=>N.blurInput&&N.blurInput(...D)),onKeydown:[C[4]||(C[4]=Ut((...D)=>N.prevItem&&N.prevItem(...D),["up"])),C[5]||(C[5]=Ut((...D)=>N.nextItem&&N.nextItem(...D),["down"])),C[6]||(C[6]=Ut(se(()=>{},["prevent"]),["enter"])),C[8]||(C[8]=Ut((...D)=>N.deleteTextOrItem&&N.deleteTextOrItem(...D),["delete"]))]},null,40,au),Q("div",{class:Nt(["text",N.textClass]),"data-vss-custom-attr":N.searchTextCustomAttr},Xt(N.inputText),11,nu),Q("div",{class:Nt(["menu",N.menuClass]),ref:"menu",onMousedown:C[10]||(C[10]=se(()=>{},["prevent"])),style:$r(N.menuStyle),tabindex:"-1"},[(Et(!0),Lt(Pi,null,Oi(N.filteredOptions,(D,U)=>(Et(),Lt("div",{key:U,class:Nt(["item",{selected:D.selected||$.pointer===U,disabled:D.disabled}]),"data-vss-custom-attr":N.customAttrs[U]?N.customAttrs[U]:"",onClick:se(Z=>N.selectItem(D),["stop"]),onMousedown:C[9]||(C[9]=(...Z)=>N.mousedownItem&&N.mousedownItem(...Z)),onMouseenter:Z=>N.pointerSet(U)},[Ai(P.$slots,"default",{option:D,idx:U},()=>[Li(Xt(D.text),1)])],42,lu))),128))],38)],34)}const Du=On(ru,[["render",hu]]),du={name:"MultiSelect",mixins:[Pn],emits:["blur","searchchange","select"],props:{customAttr:{type:Function,default:()=>""},options:{type:Array},selectedOptions:{type:Array},cleanSearch:{type:Boolean,default:!0},hideSelectedOptions:{type:Boolean,default:!1}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{selectedOptions(){this.pointer=-1},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{inputText(){return this.searchText?"":this.placeholder},textClass(){return this.placeholder?"default":""},inputWidth(){return{width:(this.searchText.length+1)*8+20+"px"}},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},nonSelectOptions(){return this.options.filter(P=>this.selectedOptions.findIndex(C=>C.value===P.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(P=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(P.text),this.searchText):this.filterPredicate(P.text,this.searchText)}catch{return!0}}):this.nonSelectOptions}},methods:{deleteTextOrLastItem(){!this.searchText&&this.selectedOptions.length>0&&this.deleteItem(this.selectedOptions[this.selectedOptions.length-1])},openOptions(){Tt.openOptions(this)},blurInput(){Tt.blurInput(this)},closeOptions(){Tt.closeOptions(this)},prevItem(){Tt.prevItem(this),this.openOptions()},nextItem(){Tt.nextItem(this),this.openOptions()},enterItem(){Tt.enterItem(this)},pointerSet(P){Tt.pointerSet(this,P)},pointerAdjust(){Tt.pointerAdjust(this)},mousedownItem(){Tt.mousedownItem(this)},selectItem(P){const C=this.selectedOptions.concat(P),F=C.filter((tt,$)=>C.indexOf(tt)===$);this.closeOptions(),this.searchText="",this.$emit("select",F,P,"insert")},deleteItem(P){const C=this.selectedOptions.filter(F=>F.value!==P.value);this.$emit("select",C,P,"delete")},accentsTidy(P){let C=P.toString().toLowerCase();return C=C.replace(new RegExp("[àáâãäå]","g"),"a"),C=C.replace(new RegExp("æ","g"),"ae"),C=C.replace(new RegExp("ç","g"),"c"),C=C.replace(new RegExp("[èéêë]","g"),"e"),C=C.replace(new RegExp("[ìíîï]","g"),"i"),C=C.replace(new RegExp("ñ","g"),"n"),C=C.replace(new RegExp("[òóôõö]","g"),"o"),C=C.replace(new RegExp("œ","g"),"oe"),C=C.replace(new RegExp("[ùúûü]","g"),"u"),C=C.replace(new RegExp("[ýÿ]","g"),"y"),C}}},cu=Q("i",{class:"dropdown icon"},null,-1),pu=["data-vss-custom-attr"],uu=["onClick"],gu=["disabled","tabindex","id","name"],fu=["data-vss-custom-attr","onClick","onMouseenter"];function mu(P,C,F,tt,$,N){return Et(),Lt("div",{class:Nt(["ui fluid search dropdown selection multiple",{"active visible":$.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:C[11]||(C[11]=(...D)=>N.openOptions&&N.openOptions(...D)),onFocus:C[12]||(C[12]=(...D)=>N.openOptions&&N.openOptions(...D))},[cu,F.hideSelectedOptions?Vr("",!0):(Et(!0),Lt(Pi,{key:0},Oi(F.selectedOptions,(D,U)=>(Et(),Lt("a",{key:U,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":F.customAttr(D)},[Ai(P.$slots,"selected",{option:D,idx:U},()=>[Li(Xt(D.text),1),Q("i",{class:"delete icon",onClick:Z=>N.deleteItem(D)},null,8,uu)])],8,pu))),128)),_p(Q("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,"onUpdate:modelValue":C[0]||(C[0]=D=>$.searchText=D),ref:"input",style:$r(N.inputWidth),onFocus:C[1]||(C[1]=se((...D)=>N.openOptions&&N.openOptions(...D),["prevent"])),onKeyup:[C[2]||(C[2]=Ut((...D)=>N.closeOptions&&N.closeOptions(...D),["esc"])),C[7]||(C[7]=Ut(se((...D)=>N.enterItem&&N.enterItem(...D),["prevent"]),["enter"]))],onBlur:C[3]||(C[3]=(...D)=>N.blurInput&&N.blurInput(...D)),onKeydown:[C[4]||(C[4]=Ut((...D)=>N.prevItem&&N.prevItem(...D),["up"])),C[5]||(C[5]=Ut((...D)=>N.nextItem&&N.nextItem(...D),["down"])),C[6]||(C[6]=Ut(se(()=>{},["prevent"]),["enter"])),C[8]||(C[8]=Ut((...D)=>N.deleteTextOrLastItem&&N.deleteTextOrLastItem(...D),["delete"]))]},null,44,gu),[[Jp,$.searchText]]),Q("div",{class:Nt(["text",N.textClass])},Xt(N.inputText),3),Q("div",{class:Nt(["menu",N.menuClass]),ref:"menu",onMousedown:C[10]||(C[10]=se(()=>{},["prevent"])),style:$r(N.menuStyle),tabindex:"-1"},[(Et(!0),Lt(Pi,null,Oi(N.filteredOptions,(D,U)=>(Et(),Lt("div",{key:U,class:Nt(["item",{selected:D.selected||$.pointer===U,disabled:D.disabled}]),"data-vss-custom-attr":F.customAttr(D),onClick:se(Z=>N.selectItem(D),["stop"]),onMousedown:C[9]||(C[9]=(...Z)=>N.mousedownItem&&N.mousedownItem(...Z)),onMouseenter:Z=>N.pointerSet(U)},[Ai(P.$slots,"default",{option:D,idx:U},()=>[Li(Xt(D.text),1)])],42,fu))),128))],38)],34)}const Bu=On(du,[["render",mu]]);var Yr={exports:{}},Ts={exports:{}},xu=Ts.exports,Sn;function yu(){return Sn||(Sn=1,function(P,C){(function(F,tt){F._Highcharts=tt(),P.exports=F._Highcharts})(typeof window>"u"?xu:window,()=>(()=>{var wn;let F,tt;var $,N,D,U,Z,nt,It,Je,Qe,ve,De,ti,ei,Ct,et,pt,yt,Be,Rt={};Rt.d=(h,t)=>{for(var e in t)Rt.o(t,e)&&!Rt.o(h,e)&&Object.defineProperty(h,e,{enumerable:!0,get:t[e]})},Rt.o=(h,t)=>Object.prototype.hasOwnProperty.call(h,t);var ke={};Rt.d(ke,{default:()=>Vp}),function(h){var t,e,i,s,r,o,a;h.SVG_NS="http://www.w3.org/2000/svg",h.product="Highcharts",h.version="12.2.0",h.win=typeof window<"u"?window:{},h.doc=h.win.document,h.svg=!!((i=(e=(t=h.doc)==null?void 0:t.createElementNS)==null?void 0:e.call(t,h.SVG_NS,"svg"))!=null&&i.createSVGRect),h.pageLang=(o=(r=(s=h.doc)==null?void 0:s.documentElement)==null?void 0:r.closest("[lang]"))==null?void 0:o.lang,h.userAgent=((a=h.win.navigator)==null?void 0:a.userAgent)||"",h.isChrome=h.win.chrome,h.isFirefox=h.userAgent.indexOf("Firefox")!==-1,h.isMS=/(edge|msie|trident)/i.test(h.userAgent)&&!h.win.opera,h.isSafari=!h.isChrome&&h.userAgent.indexOf("Safari")!==-1,h.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(h.userAgent),h.isWebKit=h.userAgent.indexOf("AppleWebKit")!==-1,h.deg2rad=2*Math.PI/360,h.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],h.noop=function(){},h.supportsPassiveEvents=function(){let n=!1;if(!h.isMS){let l=Object.defineProperty({},"passive",{get:function(){n=!0}});h.win.addEventListener&&h.win.removeEventListener&&(h.win.addEventListener("testPassive",h.noop,l),h.win.removeEventListener("testPassive",h.noop,l))}return n}(),h.charts=[],h.composed=[],h.dateFormats={},h.seriesTypes={},h.symbolSizes={},h.chartCount=0}($||($={}));let O=$,{charts:Ln,doc:ze,win:we}=O;function ii(h,t,e,i){let s=t?"Highcharts error":"Highcharts warning";h===32&&(h=`${s}: Deprecated member`);let r=As(h),o=r?`${s} #${h}: www.highcharts.com/errors/${h}/`:h.toString();if(i!==void 0){let a="";r&&(o+="?"),Me(i,function(n,l){a+=`
2
+ - ${l}: ${n}`,r&&(o+=encodeURI(l)+"="+encodeURI(n))}),o+=a}to(O,"displayError",{chart:e,code:h,message:o,params:i},function(){if(t)throw Error(o);we.console&&ii.messages.indexOf(o)===-1&&console.warn(o)}),ii.messages.push(o)}function Ur(h,t){return parseInt(h,t||10)}function si(h){return typeof h=="string"}function Ei(h){let t=Object.prototype.toString.call(h);return t==="[object Array]"||t==="[object Array Iterator]"}function Ne(h,t){return!!h&&typeof h=="object"&&(!t||!Ei(h))}function Cs(h){return Ne(h)&&typeof h.nodeType=="number"}function qr(h){let t=h==null?void 0:h.constructor;return!!(Ne(h,!0)&&!Cs(h)&&(t!=null&&t.name)&&t.name!=="Object")}function As(h){return typeof h=="number"&&!isNaN(h)&&h<1/0&&h>-1/0}function Re(h){return h!=null}function Zr(h,t,e){let i,s=si(t)&&!Re(e),r=(o,a)=>{Re(o)?h.setAttribute(a,o):s?(i=h.getAttribute(a))||a!=="class"||(i=h.getAttribute(a+"Name")):h.removeAttribute(a)};return si(t)?r(e,t):Me(t,r),i}function Kr(h){return Ei(h)?h:[h]}function We(h,t){let e;for(e in h||(h={}),t)h[e]=t[e];return h}function ri(){let h=arguments,t=h.length;for(let e=0;e<t;e++){let i=h[e];if(i!=null)return i}}function Ps(h,t){We(h.style,t)}function _r(h){return Math.pow(10,Math.floor(Math.log(h)/Math.LN10))}function Jr(h,t){return h>1e14?h:parseFloat(h.toPrecision(t||14))}(ii||(ii={})).messages=[],Math.easeInOutSine=function(h){return-.5*(Math.cos(Math.PI*h)-1)};let En=Array.prototype.find?function(h,t){return h.find(t)}:function(h,t){let e,i=h.length;for(e=0;e<i;e++)if(t(h[e],e))return h[e]};function Me(h,t,e){for(let i in h)Object.hasOwnProperty.call(h,i)&&t.call(e||h[i],h[i],i,h)}function Qr(h,t,e){function i(o,a){let n=h.removeEventListener;n&&n.call(h,o,a,!1)}function s(o){let a,n;h.nodeName&&(t?(a={})[t]=!0:a=o,Me(a,function(l,c){if(o[c])for(n=o[c].length;n--;)i(c,o[c][n].fn)}))}let r=typeof h=="function"&&h.prototype||h;if(Object.hasOwnProperty.call(r,"hcEvents")){let o=r.hcEvents;if(t){let a=o[t]||[];e?(o[t]=a.filter(function(n){return e!==n.fn}),i(t,e)):(s(o),o[t]=[])}else s(o),delete r.hcEvents}}function to(h,t,e,i){if(e=e||{},(ze==null?void 0:ze.createEvent)&&(h.dispatchEvent||h.fireEvent&&h!==O)){let s=ze.createEvent("Events");s.initEvent(t,!0,!0),e=We(s,e),h.dispatchEvent?h.dispatchEvent(e):h.fireEvent(t,e)}else if(h.hcEvents){e.target||We(e,{preventDefault:function(){e.defaultPrevented=!0},target:h,type:t});let s=[],r=h,o=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[t]&&(s.length&&(o=!0),s.unshift.apply(s,r.hcEvents[t])),r=Object.getPrototypeOf(r);o&&s.sort((a,n)=>a.order-n.order),s.forEach(a=>{a.fn.call(h,e)===!1&&e.preventDefault()})}i&&!e.defaultPrevented&&i.call(h,e)}let In=function(){let h=Math.random().toString(36).substring(2,9)+"-",t=0;return function(){return"highcharts-"+(F?"":h)+t++}}();we.jQuery&&(we.jQuery.fn.highcharts=function(){let h=[].slice.call(arguments);if(this[0])return h[0]?(new O[si(h[0])?h.shift():"Chart"](this[0],h[0],h[1]),this):Ln[Zr(this[0],"data-highcharts-chart")]});let W={addEvent:function(h,t,e,i={}){let s=typeof h=="function"&&h.prototype||h;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let r=s.hcEvents;O.Point&&h instanceof O.Point&&h.series&&h.series.chart&&(h.series.chart.runTrackerClick=!0);let o=h.addEventListener;o&&o.call(h,t,e,!!O.supportsPassiveEvents&&{passive:i.passive===void 0?t.indexOf("touch")!==-1:i.passive,capture:!1}),r[t]||(r[t]=[]);let a={fn:e,order:typeof i.order=="number"?i.order:1/0};return r[t].push(a),r[t].sort((n,l)=>n.order-l.order),function(){Qr(h,t,e)}},arrayMax:function(h){let t=h.length,e=h[0];for(;t--;)h[t]>e&&(e=h[t]);return e},arrayMin:function(h){let t=h.length,e=h[0];for(;t--;)h[t]<e&&(e=h[t]);return e},attr:Zr,clamp:function(h,t,e){return h>t?h<e?h:e:t},clearTimeout:function(h){Re(h)&&clearTimeout(h)},correctFloat:Jr,createElement:function(h,t,e,i,s){let r=ze.createElement(h);return t&&We(r,t),s&&Ps(r,{padding:"0",border:"none",margin:"0"}),e&&Ps(r,e),i&&i.appendChild(r),r},crisp:function(h,t=0,e){let i=t%2/2,s=e?-1:1;return(Math.round(h*s-i)+i)*s},css:Ps,defined:Re,destroyObjectProperties:function(h,t,e){Me(h,function(i,s){i!==t&&(i!=null&&i.destroy)&&i.destroy(),(i!=null&&i.destroy||!e)&&delete h[s]})},diffObjects:function(h,t,e,i){let s={};return function r(o,a,n,l){let c=e?a:o;Me(o,function(d,p){if(!l&&i&&i.indexOf(p)>-1&&a[p]){d=Kr(d),n[p]=[];for(let u=0;u<Math.max(d.length,a[p].length);u++)a[p][u]&&(d[u]===void 0?n[p][u]=a[p][u]:(n[p][u]={},r(d[u],a[p][u],n[p][u],l+1)))}else Ne(d,!0)&&!d.nodeType?(n[p]=Ei(d)?[]:{},r(d,a[p]||{},n[p],l+1),Object.keys(n[p]).length===0&&(p!=="colorAxis"||l!==0)&&delete n[p]):(o[p]!==a[p]||p in o&&!(p in a))&&p!=="__proto__"&&p!=="constructor"&&(n[p]=c[p])})}(h,t,s,0),s},discardElement:function(h){var t;(t=h==null?void 0:h.parentElement)==null||t.removeChild(h)},erase:function(h,t){let e=h.length;for(;e--;)if(h[e]===t){h.splice(e,1);break}},error:ii,extend:We,extendClass:function(h,t){let e=function(){};return e.prototype=new h,We(e.prototype,t),e},find:En,fireEvent:to,getAlignFactor:(h="")=>({center:.5,right:1,middle:.5,bottom:1})[h]||0,getClosestDistance:function(h,t){let e,i,s,r=!t;return h.forEach(o=>{if(o.length>1)for(s=o.length-1;s>0;s--)(i=o[s]-o[s-1])<0&&!r?(t==null||t(),t=void 0):i&&(e===void 0||i<e)&&(e=i)}),e},getMagnitude:_r,getNestedProperty:function(h,t){let e=h.split(".");for(;e.length&&Re(t);){let i=e.shift();if(i===void 0||i==="__proto__")return;if(i==="this"){let r;return Ne(t)&&(r=t["@this"]),r??t}let s=t[i.replace(/[\\'"]/g,"")];if(!Re(s)||typeof s=="function"||typeof s.nodeType=="number"||s===we)return;t=s}return t},getStyle:function h(t,e,i){var o;let s;if(e==="width"){let a=Math.min(t.offsetWidth,t.scrollWidth),n=(o=t.getBoundingClientRect)==null?void 0:o.call(t).width;return n<a&&n>=a-1&&(a=Math.floor(n)),Math.max(0,a-(h(t,"padding-left",!0)||0)-(h(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(h(t,"padding-top",!0)||0)-(h(t,"padding-bottom",!0)||0));let r=we.getComputedStyle(t,void 0);return r&&(s=r.getPropertyValue(e),ri(i,e!=="opacity")&&(s=Ur(s))),s},insertItem:function(h,t){let e,i=h.options.index,s=t.length;for(e=h.options.isInternal?s:0;e<s+1;e++)if(!t[e]||As(i)&&i<ri(t[e].options.index,t[e]._i)||t[e].options.isInternal){t.splice(e,0,h);break}return e},isArray:Ei,isClass:qr,isDOMElement:Cs,isFunction:function(h){return typeof h=="function"},isNumber:As,isObject:Ne,isString:si,merge:function(h,...t){let e,i=[h,...t],s={},r=function(a,n){return typeof a!="object"&&(a={}),Me(n,function(l,c){c!=="__proto__"&&c!=="constructor"&&(!Ne(l,!0)||qr(l)||Cs(l)?a[c]=n[c]:a[c]=r(a[c]||{},l))}),a};h===!0&&(s=i[1],i=Array.prototype.slice.call(i,2));let o=i.length;for(e=0;e<o;e++)s=r(s,i[e]);return s},normalizeTickInterval:function(h,t,e,i,s){let r,o=h;e=ri(e,_r(h));let a=h/e;for(!t&&(t=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(e===1?t=t.filter(function(n){return n%1==0}):e<=.1&&(t=[1/e]))),r=0;r<t.length&&(o=t[r],(!s||!(o*e>=h))&&(s||!(a<=(t[r]+(t[r+1]||t[r]))/2)));r++);return Jr(o*e,-Math.round(Math.log(.001)/Math.LN10))},objectEach:Me,offset:function(h){let t=ze.documentElement,e=h.parentElement||h.parentNode?h.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(we.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(we.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(h,t,e){return Array((t||2)+1-String(h).replace("-","").length).join(e||"0")+h},pick:ri,pInt:Ur,pushUnique:function(h,t){return 0>h.indexOf(t)&&!!h.push(t)},relativeLength:function(h,t,e){return/%$/.test(h)?t*parseFloat(h)/100+(e||0):parseFloat(h)},removeEvent:Qr,replaceNested:function(h,...t){let e,i;do for(i of(e=h,t))h=h.replace(i[0],i[1]);while(h!==e);return h},splat:Kr,stableSort:function(h,t){let e,i,s=h.length;for(i=0;i<s;i++)h[i].safeI=i;for(h.sort(function(r,o){return(e=t(r,o))===0?r.safeI-o.safeI:e}),i=0;i<s;i++)delete h[i].safeI},syncTimeout:function(h,t,e){return t>0?setTimeout(h,t,e):(h.call(0,e),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(h){return si(h)?h.substring(0,1).toUpperCase()+h.substring(1):String(h)},uniqueKey:In,useSerialIds:function(h){return F=ri(h,F)},wrap:function(h,t,e){let i=h[t];h[t]=function(){let s=arguments,r=this;return e.apply(this,[function(){return i.apply(r,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},{pageLang:Dn,win:Ii}=O,{defined:eo,error:io,extend:Os,isNumber:so,isObject:Ls,isString:oi,merge:Bn,objectEach:zn,pad:le,splat:Nn,timeUnits:Es,ucfirst:Rn}=W,Wn=O.isSafari&&Ii.Intl&&!Ii.Intl.DateTimeFormat.prototype.formatRange,Hn=h=>h.main===void 0,Xn=class{constructor(h,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Ii.Date,this.update(h),this.lang=t}update(h={}){this.dTLCache={},this.options=h=Bn(!0,this.options,h);let{timezoneOffset:t,useUTC:e}=h;this.Date=h.Date||Ii.Date||Date;let i=h.timezone;eo(e)&&(i=e?"UTC":void 0),t&&t%60==0&&(i="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=i!=="UTC"&&(i==null?void 0:i.indexOf("Etc/GMT"))!==0,this.timezone=i,["months","shortMonths","weekdays","shortWeekdays"].forEach(s=>{let r=/months/i.test(s),o=/short/.test(s),a={timeZone:"UTC"};a[r?"month":"weekday"]=o?"short":"long",this[s]=(r?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(n=>this.dateFormat(a,(r?31:1)*24*36e5*n))})}toParts(h){let[t,e,i,s,r,o,a]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},h,"es").split(/(?:, | |\/|:)/g);return[s,+i-1,e,r,o,a,Math.floor(Number(h)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(h,t,e=this.options.locale||Dn){let i=JSON.stringify(h)+e;oi(h)&&(h=this.str2dtf(h));let s=this.dTLCache[i];if(!s){h.timeZone??(h.timeZone=this.timezone);try{s=new Intl.DateTimeFormat(e,h)}catch(r){/Invalid time zone/i.test(r.message)?(io(34),h.timeZone="UTC",s=new Intl.DateTimeFormat(e,h)):io(r.message,!1)}}return this.dTLCache[i]=s,(s==null?void 0:s.format(t))||""}str2dtf(h,t={}){let e={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(e).forEach(i=>{h.indexOf(i)!==-1&&Os(t,e[i])}),t}makeTime(h,t,e=1,i=0,s,r,o){let a=this.Date.UTC(h,t,e,i,s||0,r||0,o||0);if(this.timezone!=="UTC"){let n=this.getTimezoneOffset(a);if(a+=n,[2,3,8,9,10,11].indexOf(t)!==-1&&(i<5||i>20)){let l=this.getTimezoneOffset(a);n!==l?a+=l-n:n-36e5!==this.getTimezoneOffset(a-36e5)||Wn||(a-=36e5)}}return a}parse(h){if(!oi(h))return h??void 0;let t=(h=h.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(h),e=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(h);t||e||(h+="Z");let i=Date.parse(h);if(so(i))return i+(!t||e?this.getTimezoneOffset(i):0)}getTimezoneOffset(h){if(this.timezone!=="UTC"){let[t,e,i,s,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},h,"en").split(/(GMT|:)/).map(Number),o=-(36e5*(i+r/60));if(so(o))return o}return 0}dateFormat(h,t,e){let i=this.lang;if(!eo(t)||isNaN(t))return(i==null?void 0:i.invalidDate)||"";if(oi(h=h??"%Y-%m-%d %H:%M:%S")){let s,r=/%\[([a-zA-Z]+)\]/g;for(;s=r.exec(h);)h=h.replace(s[0],this.dateTimeFormat(s[1],t,i==null?void 0:i.locale))}if(oi(h)&&h.indexOf("%")!==-1){let s=this,[r,o,a,n,l,c,d,p]=this.toParts(t),u=(i==null?void 0:i.weekdays)||this.weekdays,g=(i==null?void 0:i.shortWeekdays)||this.shortWeekdays,x=(i==null?void 0:i.months)||this.months,m=(i==null?void 0:i.shortMonths)||this.shortMonths;zn(Os({a:g?g[p]:u[p].substr(0,3),A:u[p],d:le(a),e:le(a,2," "),w:p,v:(i==null?void 0:i.weekFrom)??"",b:m[o],B:x[o],m:le(o+1),o:o+1,y:r.toString().substr(2,2),Y:r,H:le(n),k:n,I:le(n%12||12),l:n%12||12,M:le(l),p:n<12?"AM":"PM",P:n<12?"am":"pm",S:le(c),L:le(d,3)},O.dateFormats),function(f,y){if(oi(h))for(;h.indexOf("%"+y)!==-1;)h=h.replace("%"+y,typeof f=="function"?f.call(s,t):f)})}else if(Ls(h)){let s=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||"Etc/GMT"+(s>=0?"+":"")+s,{prefix:o="",suffix:a=""}=h;h=o+this.dateTimeFormat(Os({timeZone:r},h),t)+a}return e?Rn(h):h}resolveDTLFormat(h){return Ls(h,!0)?Ls(h,!0)&&Hn(h)?{main:h}:h:{main:(h=Nn(h))[0],from:h[1],to:h[2]}}getDateFormat(h,t,e,i){let s=this.dateFormat("%m-%d %H:%M:%S.%L",t),r="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",n=a;for(a in Es){if(h&&h===Es.week&&+this.dateFormat("%w",t)===e&&s.substr(6)===r.substr(6)){a="week";break}if(h&&Es[a]>h){a=n;break}if(o[a]&&s.substr(o[a])!==r.substr(o[a]))break;a!=="week"&&(n=a)}return this.resolveDTLFormat(i[a]).main}},{defined:ro,extend:Fn,timeUnits:mt}=W,Is=class extends Xn{getTimeTicks(h,t,e,i){let s=this,r=[],o={},{count:a=1,unitRange:n}=h,[l,c,d,p,u,g]=s.toParts(t),x=(t||0)%1e3,m;if(i??(i=1),ro(t)){if(x=n>=mt.second?0:a*Math.floor(x/a),n>=mt.second&&(g=n>=mt.minute?0:a*Math.floor(g/a)),n>=mt.minute&&(u=n>=mt.hour?0:a*Math.floor(u/a)),n>=mt.hour&&(p=n>=mt.day?0:a*Math.floor(p/a)),n>=mt.day&&(d=n>=mt.month?1:Math.max(1,a*Math.floor(d/a))),n>=mt.month&&(c=n>=mt.year?0:a*Math.floor(c/a)),n>=mt.year&&(l-=l%a),n===mt.week){a&&(t=s.makeTime(l,c,d,p,u,g,x));let b=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),w="DLMXJVS".indexOf(b);d+=-w+i+(w<i?-7:0)}t=s.makeTime(l,c,d,p,u,g,x),s.variableTimezone&&ro(e)&&(m=e-t>4*mt.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(e));let f=t,y=1;for(;f<e;)r.push(f),n===mt.year?f=s.makeTime(l+y*a,0):n===mt.month?f=s.makeTime(l,c+y*a):m&&(n===mt.day||n===mt.week)?f=s.makeTime(l,c,d+y*a*(n===mt.day?1:7)):m&&n===mt.hour&&a>1?f=s.makeTime(l,c,d,p+y*a):f+=n*a,y++;r.push(f),n<=mt.hour&&r.length<1e4&&r.forEach(b=>{b%18e5==0&&s.dateFormat("%H%M%S%L",b)==="000000000"&&(o[b]="day")})}return r.info=Fn(h,{higherRanks:o,totalRange:n*a}),r}},{isTouchDevice:jn}=O,{fireEvent:Gn,merge:Yn}=W,re={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{weekFrom:"week from",chartTitle:"Chart title",locale:void 0,loading:"Loading...",months:void 0,seriesName:"Series {add index 1}",shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],pieSliceName:"Slice",resetZoom:"Reset zoom",yAxisTitle:"Values",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:h=>Math.sqrt(1-Math.pow(h-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"%v %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,position:{x:0,y:3},shared:!1,snap:jn?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,stickOnContact:!1,style:{color:"#333333",cursor:"default",fontSize:"0.8em"},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:"0.6em"},text:"Highcharts.com"}},Ds=new Is(re.time,re.lang),Ft={defaultOptions:re,defaultTime:Ds,getOptions:function(){return re},setOptions:function(h){var t;return Gn(O,"setOptions",{options:h}),Yn(!0,re,h),h.time&&Ds.update(re.time),h.lang&&"locale"in h.lang&&Ds.update({locale:h.lang.locale}),(t=h.lang)!=null&&t.chartTitle&&(re.title={...re.title,text:h.lang.chartTitle}),re}},{win:$n}=O,{isNumber:ai,isString:Vn,merge:Un,pInt:Dt,defined:oo}=W,ao=(h,t,e)=>`color-mix(in srgb,${h},${t} ${100*e}%)`,Bs=h=>Vn(h)&&!!h&&h!=="none";class ht{static parse(t){return t?new ht(t):ht.None}constructor(t){let e,i,s,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let o=O.Color;if(o&&o!==ht)return new o(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map(a=>new ht(a[1]));else if(typeof t=="string")for(this.input=t=ht.names[t.toLowerCase()]||t,s=ht.parsers.length;s--&&!i;)(e=(r=ht.parsers[s]).regex.exec(t))&&(i=r.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(this.output)return this.output;if(typeof e=="object"&&this.stops!==void 0){let s=Un(e);return s.stops=[].slice.call(s.stops),this.stops.forEach((r,o)=>{s.stops[o]=[s.stops[o][0],r.get(t)]}),s}return i&&ai(i[0])?t!=="rgb"&&(t||i[3]!==1)?t==="a"?`${i[3]}`:"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(i){i.brighten(t)});else if(ai(t)&&t!==0)if(ai(e[0]))for(let i=0;i<3;i++)e[i]+=Dt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else ht.useColorMix&&Bs(this.input)&&(this.output=ao(this.input,t>0?"white":"black",Math.abs(t)));return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!ai(i[0])||!ai(s[0]))return ht.useColorMix&&Bs(this.input)&&Bs(t.input)&&e<.99?ao(this.input,t.input,e):t.input||"none";let r=s[3]!==1||i[3]!==1,o=(n,l)=>n+(i[l]-n)*(1-e),a=s.slice(0,3).map(o).map(Math.round);return r&&a.push(o(s[3],3)),(r?"rgba(":"rgb(")+a.join(",")+")"}}ht.names={white:"#ffffff",black:"#000000"},ht.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(h){return[Dt(h[1]),Dt(h[2]),Dt(h[3]),parseFloat(h[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(h){return[Dt(h[1]),Dt(h[2]),Dt(h[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(h){return[Dt(h[1]+h[1],16),Dt(h[2]+h[2],16),Dt(h[3]+h[3],16),oo(h[4])?Dt(h[4]+h[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(h){return[Dt(h[1],16),Dt(h[2],16),Dt(h[3],16),oo(h[4])?Dt(h[4],16)/255:1]}}],ht.useColorMix=(wn=$n.CSS)==null?void 0:wn.supports("color","color-mix(in srgb,red,blue 9%)"),ht.None=new ht("");let{parse:no}=ht,{win:qn}=O,{isNumber:zs,objectEach:Zn}=W;class Bt{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t==null?void 0:t[0],i=t==null?void 0:t[1],s=this.now||0,r=[];if(s!==1&&e&&i)if(e.length===i.length&&s<1)for(let o=0;o<i.length;o++){let a=e[o],n=i[o],l=[];for(let c=0;c<n.length;c++){let d=a[c],p=n[c];zs(d)&&zs(p)&&(n[0]!=="A"||c!==4&&c!==5)?l[c]=d+s*(p-d):l[c]=p}r.push(l)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)}run(t,e,i){let s=this,r=s.options,o=function(l){return!o.stopped&&s.step(l)},a=qn.requestAnimationFrame||function(l){setTimeout(l,13)},n=function(){for(let l=0;l<Bt.timers.length;l++)Bt.timers[l]()||Bt.timers.splice(l--,1);Bt.timers.length&&a(n)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&Bt.timers.push(o)===1&&a(n)):(delete r.curAnim[this.prop],r.complete&&Object.keys(r.curAnim).length===0&&r.complete.call(this.elem))}step(t){let e,i,s=+new Date,r=this.options,o=this.elem,a=r.complete,n=r.duration,l=r.curAnim;return o.attr&&!o.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),l[this.prop]=!0,i=!0,Zn(l,function(c){c!==!0&&(i=!1)}),i&&a&&a.call(o),e=!1):(this.pos=r.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s=t.startX,r=t.endX,o=i.slice(),a=t.isArea,n=a?2:1,l=e&&i.length>e.length&&i.hasStackedCliffs,c,d,p,u,g=e==null?void 0:e.slice();if(!g||l)return[o,o];function x(f,y){for(;f.length<d;){let b=f[0],w=y[d-f.length];if(w&&b[0]==="M"&&(w[0]==="C"?f[0]=["C",b[1],b[2],b[1],b[2],b[1],b[2]]:f[0]=["L",b[1],b[2]]),f.unshift(b),a){let v=f.pop();f.push(f[f.length-1],v)}}}function m(f){for(;f.length<d;){let y=f[Math.floor(f.length/n)-1].slice();if(y[0]==="C"&&(y[1]=y[5],y[2]=y[6]),a){let b=f[Math.floor(f.length/n)].slice();f.splice(f.length/2,0,y,b)}else f.push(y)}}if(s&&r&&r.length){for(p=0;p<s.length;p++){if(s[p]===r[0]){c=p;break}if(s[0]===r[r.length-s.length+p]){c=p,u=!0;break}if(s[s.length-1]===r[r.length-s.length+p]){c=s.length-p;break}}c===void 0&&(g=[])}return g.length&&zs(c)&&(d=o.length+c*n,u?(x(g,o),m(o)):(x(o,g),m(g))),[g,o]}fillSetter(){Bt.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,no(this.start).tweenTo(no(this.end),this.pos),void 0,!0)}}Bt.timers=[];let{defined:Kn,getStyle:_n,isArray:Jn,isNumber:Qn,isObject:Ns,merge:lo,objectEach:tl,pick:el}=W;function Rs(h){return Ns(h)?lo({duration:500,defer:0},h):{duration:500*!!h,defer:0}}function ho(h,t){let e=Bt.timers.length;for(;e--;)Bt.timers[e].elem!==h||t&&t!==Bt.timers[e].prop||(Bt.timers[e].stopped=!0)}let At={animate:function(h,t,e){let i,s="",r,o,a;Ns(e)||(a=arguments,e={duration:a[2],easing:a[3],complete:a[4]}),Qn(e.duration)||(e.duration=400),e.easing=typeof e.easing=="function"?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=lo(t),tl(t,function(n,l){ho(h,l),o=new Bt(h,e,l),r=void 0,l==="d"&&Jn(t.d)?(o.paths=o.initPath(h,h.pathArray,t.d),o.toD=t.d,i=0,r=1):h.attr?i=h.attr(l):(i=parseFloat(_n(h,l))||0,l!=="opacity"&&(s="px")),r||(r=n),typeof r=="string"&&r.match("px")&&(r=r.replace(/px/g,"")),o.run(i,r,s)})},animObject:Rs,getDeferredAnimation:function(h,t,e){let i=Rs(t),s=e?[e]:h.series,r=0,o=0;return s.forEach(a=>{let n=Rs(a.options.animation);r=Ns(t)&&Kn(t.defer)?i.defer:Math.max(r,n.duration+n.defer),o=Math.min(i.duration,n.duration)}),h.renderer.forExport&&(r=0),{defer:Math.max(0,r-o),duration:Math.min(r,o)}},setAnimation:function(h,t){t.renderer.globalAnimation=el(h,t.options.chart.animation,!0)},stop:ho},{SVG_NS:co,win:il}=O,{attr:sl,createElement:rl,css:ol,error:po,isFunction:al,isString:uo,objectEach:go,splat:nl}=W,{trustedTypes:Ws}=il,Di=Ws&&al(Ws.createPolicy)&&Ws.createPolicy("highcharts",{createHTML:h=>h}),ll=Di?Di.createHTML(""):"";class lt{static filterUserAttributes(t){return go(t,(e,i)=>{let s=!0;lt.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(s=uo(e)&&lt.allowedReferences.some(r=>e.indexOf(r)===0)),s||(po(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),uo(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((e,i)=>{let s=i.split(":").map(o=>o.trim()),r=s.shift();return r&&s.length&&(e[r.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=s.join(":")),e},{})}static setElementHTML(t,e){t.innerHTML=lt.emptyHTML,e&&new lt(e).addToDOM(t)}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t}addToDOM(t){return function e(i,s){let r;return nl(i).forEach(function(o){let a,n=o.tagName,l=o.textContent?O.doc.createTextNode(o.textContent):void 0,c=lt.bypassHTMLFiltering;if(n)if(n==="#text")a=l;else if(lt.allowedTags.indexOf(n)!==-1||c){let d=n==="svg"?co:s.namespaceURI||co,p=O.doc.createElementNS(d,n),u=o.attributes||{};go(o,function(g,x){x!=="tagName"&&x!=="attributes"&&x!=="children"&&x!=="style"&&x!=="textContent"&&(u[x]=g)}),sl(p,c?u:lt.filterUserAttributes(u)),o.style&&ol(p,o.style),l&&p.appendChild(l),e(o.children||[],p),a=p}else po(33,!1,void 0,{"Invalid tagName in config":n});a&&s.appendChild(a),r=a}),r}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(Di?Di.createHTML(t):t,"text/html")}catch{}if(!e){let r=rl("div");r.innerHTML=t,e={body:r}}let s=(r,o)=>{let a=r.nodeName.toLowerCase(),n={tagName:a};a==="#text"&&(n.textContent=r.textContent||"");let l=r.attributes;if(l){let c={};[].forEach.call(l,d=>{d.name==="data-style"?n.style=lt.parseStyle(d.value):c[d.name]=d.value}),n.attributes=c}if(r.childNodes.length){let c=[];[].forEach.call(r.childNodes,d=>{s(d,c)}),c.length&&(n.children=c)}o.push(n)};return[].forEach.call(e.body.childNodes,r=>s(r,i)),i}}lt.allowedAttributes=["alt","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","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","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"],lt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],lt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","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"],lt.emptyHTML=ll,lt.bypassHTMLFiltering=!1;let{defaultOptions:fo,defaultTime:mo}=Ft,{pageLang:hl}=O,{extend:dl,getNestedProperty:cl,isArray:pl,isNumber:xo,isObject:ul,isString:gl,pick:fl,ucfirst:ml}=W,Bi={add:(h,t)=>h+t,divide:(h,t)=>t!==0?h/t:"",eq:(h,t)=>h==t,each:function(h){let t=arguments[arguments.length-1];return!!pl(h)&&h.map((e,i)=>zi(t.body,dl(ul(e)?e:{"@this":e},{"@index":i,"@first":i===0,"@last":i===h.length-1}))).join("")},ge:(h,t)=>h>=t,gt:(h,t)=>h>t,if:h=>!!h,le:(h,t)=>h<=t,lt:(h,t)=>h<t,multiply:(h,t)=>h*t,ne:(h,t)=>h!=t,subtract:(h,t)=>h-t,ucfirst:ml,unless:h=>!h},yo={},bo=h=>/^["'].+["']$/.test(h);function zi(h="",t,e){var m;let i=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,s=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,r=[],o=/f$/,a=/\.(\d)/,n=((m=e==null?void 0:e.options)==null?void 0:m.lang)||fo.lang,l=(e==null?void 0:e.time)||mo,c=(e==null?void 0:e.numberFormatter)||vo,d=(f="")=>{let y;return f==="true"||f!=="false"&&((y=Number(f)).toString()===f?y:bo(f)?f.slice(1,-1):cl(f,t))},p,u,g=0,x;for(;(p=i.exec(h))!==null;){let f=p,y=s.exec(p[1]);y&&(p=y,x=!0),u!=null&&u.isBlock||(u={ctx:t,expression:p[1],find:p[0],isBlock:p[1].charAt(0)==="#",start:p.index,startInner:p.index+p[0].length,length:p[0].length});let b=(u.isBlock?f:p)[1].split(" ")[0].replace("#","");Bi[b]&&(u.isBlock&&b===u.fn&&g++,u.fn||(u.fn=b));let w=p[1]==="else";if(u.isBlock&&u.fn&&(p[1]===`/${u.fn}`||w))if(g)!w&&g--;else{let v=u.startInner,k=h.substr(v,p.index-v);u.body===void 0?(u.body=k,u.startInner=p.index+p[0].length):u.elseBody=k,u.find+=k+p[0],w||(r.push(u),u=void 0)}else u.isBlock||r.push(u);if(y&&!(u!=null&&u.isBlock))break}return r.forEach(f=>{let y,b,{body:w,elseBody:v,expression:k,fn:S}=f;if(S){let M=[f],T=[],A=k.length,L=0,I;for(b=0;b<=A;b++){let E=k.charAt(b);I||E!=='"'&&E!=="'"?I===E&&(I=""):I=E,I||E!==" "&&b!==A||(T.push(k.substr(L,b-L)),L=b+1)}for(b=Bi[S].length;b--;)M.unshift(d(T[b+1]));y=Bi[S].apply(t,M),f.isBlock&&typeof y=="boolean"&&(y=zi(y?w:v,t,e))}else{let M=bo(k)?[k]:k.split(":");if(y=d(M.shift()||""),M.length&&typeof y=="number"){let T=M.join(":");if(o.test(T)){let A=parseInt((T.match(a)||["","-1"])[1],10);y!==null&&(y=c(y,A,n.decimalPoint,T.indexOf(",")>-1?n.thousandsSep:""))}else y=l.dateFormat(T,y)}s.lastIndex=0,s.test(f.find)&&gl(y)&&(y=`"${y}"`)}h=h.replace(f.find,fl(y,""))}),x?zi(h,t,e):h}function vo(h,t,e,i){var x;t*=1;let s,r,[o,a]=(h=+h||0).toString().split("e").map(Number),n=((x=this==null?void 0:this.options)==null?void 0:x.lang)||fo.lang,l=(h.toString().split(".")[1]||"").split("e")[0].length,c=t,d={};e??(e=n.decimalPoint),i??(i=n.thousandsSep),t===-1?t=Math.min(l,20):xo(t)?t&&a<0&&((r=t+a)>=0?(o=+o.toExponential(r).split("e")[0],t=r):(o=Math.floor(o),h=t<20?+(o*Math.pow(10,a)).toFixed(t):0,a=0)):t=2,a&&(t??(t=2),h=o),xo(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),i===""&&(d.useGrouping=!1);let p=i||e,u=p?"en":(this==null?void 0:this.locale)||n.locale||hl,g=JSON.stringify(d)+u;return s=(yo[g]??(yo[g]=new Intl.NumberFormat(u,d))).format(h),p&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",e??".")),(t||+s!=0)&&(!(a<0)||c)||(s="0"),a&&+s!=0&&(s+="e"+(a<0?"":"+")+a),s}let jt={dateFormat:function(h,t,e){return mo.dateFormat(h,t,e)},format:zi,helpers:Bi,numberFormat:vo};(function(h){let t;h.rendererTypes={},h.getRendererType=function(e=t){return h.rendererTypes[e]||h.rendererTypes[t]},h.registerRendererType=function(e,i,s){h.rendererTypes[e]=i,(!t||s)&&(t=e,O.Renderer=i)}})(N||(N={}));let ni=N,{clamp:xl,pick:yl,pushUnique:bl,stableSort:Hs}=W;(D||(D={})).distribute=function h(t,e,i){let s=t,r=s.reducedLen||e,o=(b,w)=>b.target-w.target,a=[],n=t.length,l=[],c=a.push,d,p,u,g=!0,x,m,f=0,y;for(d=n;d--;)f+=t[d].size;if(f>r){for(Hs(t,(b,w)=>(w.rank||0)-(b.rank||0)),u=(y=t[0].rank===t[t.length-1].rank)?n/2:-1,p=y?u:n-1;u&&f>r;)x=t[d=Math.floor(p)],bl(l,d)&&(f-=x.size),p+=u,y&&p>=t.length&&(u/=2,p=u);l.sort((b,w)=>w-b).forEach(b=>c.apply(a,t.splice(b,1)))}for(Hs(t,o),t=t.map(b=>({size:b.size,targets:[b.target],align:yl(b.align,.5)}));g;){for(d=t.length;d--;)x=t[d],m=(Math.min.apply(0,x.targets)+Math.max.apply(0,x.targets))/2,x.pos=xl(m-x.size*x.align,0,e-x.size);for(d=t.length,g=!1;d--;)d>0&&t[d-1].pos+t[d-1].size>t[d].pos&&(t[d-1].size+=t[d].size,t[d-1].targets=t[d-1].targets.concat(t[d].targets),t[d-1].align=.5,t[d-1].pos+t[d-1].size>e&&(t[d-1].pos=e-t[d-1].size),t.splice(d,1),g=!0)}return c.apply(s,a),d=0,t.some(b=>{let w=0;return(b.targets||[]).some(()=>(s[d].pos=b.pos+w,i!==void 0&&Math.abs(s[d].pos-s[d].target)>i?(s.slice(0,d+1).forEach(v=>delete v.pos),s.reducedLen=(s.reducedLen||e)-.1*e,s.reducedLen>.1*e&&h(s,e,i),!0):(w+=s[d].size,d++,!1)))}),Hs(s,o),s};let Ni=D,{animate:vl,animObject:kl,stop:ko}=At,{deg2rad:wo,doc:He,svg:wl,SVG_NS:Ri,win:Ml,isFirefox:Sl}=O,{addEvent:Tl,attr:Xs,createElement:Cl,crisp:Wi,css:Mo,defined:_t,erase:Al,extend:li,fireEvent:Fs,getAlignFactor:js,isArray:So,isFunction:To,isNumber:Pl,isObject:Ol,isString:Co,merge:Gs,objectEach:Xe,pick:oe,pInt:Hi,pushUnique:Ll,replaceNested:El,syncTimeout:Il,uniqueKey:Ao}=W;class kt{_defaultGetter(t){let e=oe(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),this.textStr!==void 0&&this.element.nodeName==="text"&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(s,r){return i.indexOf(r)===-1&&s.push(r),s},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let r=this.renderer,o=r.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||Co(i)?i||"renderer":void 0;n&&(a&&Ll(o,this),i=void 0);let l=oe(i,r[n],r),c=(l.x||0)+(t.x||0)+((l.width||0)-(t.width||0))*js(t.align),d=(l.y||0)+(t.y||0)+((l.height||0)-(t.height||0))*js(t.verticalAlign),p={"text-align":t==null?void 0:t.align};return p[e?"translateX":"x"]=Math.round(c),p[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](p),this.placed=!0),this.alignAttr=p,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=kl(oe(e,this.renderer.globalAnimation,!0)),r=s.defer;return He.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),Il(()=>{this.element&&vl(this,t,s)},r)):(this.attr(t,void 0,i||s.complete),Xe(t,function(o,a){s.step&&s.step.call(this,o,{prop:a,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;t.indexOf("contrast")!==-1&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.indexOf(" "),s=t.substring(i+1),r=t.substring(0,i);if(r&&r!=="none"&&O.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(c,d,p){return 2*Number(d)+p}),this.removeTextOutline();let o=He.createElementNS(Ri,"tspan");Xs(o,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":r,"stroke-linejoin":"round"});let a=e.querySelector("textPath")||e;[].forEach.call(a.childNodes,c=>{let d=c.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(p=>d.removeAttribute(p)),o.appendChild(d)});let n=0;[].forEach.call(a.querySelectorAll("text tspan"),c=>{n+=Number(c.getAttribute("dy"))});let l=He.createElementNS(Ri,"tspan");l.textContent="​",Xs(l,{x:Number(e.getAttribute("x")),dy:-n}),o.appendChild(l),a.insertBefore(o,a.firstChild)}}attr(t,e,i,s){let{element:r}=this,o=kt.symbolCustomAttribs,a,n,l=this,c;return typeof t=="string"&&e!==void 0&&(a=t,(t={})[a]=e),typeof t=="string"?l=(this[t+"Getter"]||this._defaultGetter).call(this,t,r):(Xe(t,function(d,p){c=!1,s||ko(this,p),this.symbolName&&o.indexOf(p)!==-1&&(n||(this.symbolAttr(t),n=!0),c=!0),this.rotation&&(p==="x"||p==="y")&&(this.doTransform=!0),c||(this[p+"Setter"]||this._defaultSetter).call(this,d,p,r)},this),this.afterSetters()),i&&i.call(this),l}clip(t){if(t&&!t.clipPath){let e=Ao()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);li(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,r=(t.width||this.width||0)+i,o=(t.height||this.height||0)+s,a=Wi(i,e),n=Wi(s,e);return li(t,{x:a,y:n,width:Wi(r,e)-a,height:Wi(o,e)-n}),_t(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,r,o,a,n,l,c,d,p,u,g,x=[],m;Fs(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],l=s.gradients,c=t.stops,u=i.radialReference,So(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),o==="radialGradient"&&u&&!_t(a.gradientUnits)&&(n=a,a=Gs(a,s.getRadialAttr(u,n),{gradientUnits:"userSpaceOnUse"})),Xe(a,function(f,y){y!=="id"&&x.push(y,f)}),Xe(c,function(f){x.push(f)}),l[x=x.join(",")])g=l[x].attr("id");else{a.id=g=Ao();let f=l[x]=s.createElement(o).attr(a).add(s.defs);f.radAttr=n,f.stops=[],c.forEach(function(y){y[1].indexOf("rgba")===0?(d=(r=ht.parse(y[1])).get("rgb"),p=r.get("a")):(d=y[1],p=1);let b=s.createElement("stop").attr({offset:y[0],"stop-color":d,"stop-opacity":p}).add(f);f.stops.push(b)})}m="url("+s.url+"#"+g+")",i.setAttribute(e,m),i.gradient=x,t.toString=function(){return m}}})}css(t){let e=this.styles,i={},s=this.element,r,o=!e;if(e&&Xe(t,function(a,n){e&&e[n]!==a&&(i[n]=a,o=!0)}),o){e&&(t=li(e,i)),t.width===null||t.width==="auto"?delete this.textWidth:s.nodeName.toLowerCase()==="text"&&t.width&&(r=this.textWidth=Hi(t.width)),li(this.styles,t),r&&!wl&&this.renderer.forExport&&delete t.width;let a=Sl&&t.fontSize||null;a&&(Pl(a)||/^\d+$/.test(a))&&(t.fontSize+="px");let n=Gs(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(l=>n&&delete n[l]),n.color&&(n.fill=n.color,delete n.color)),Mo(s,n)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if(i==="inherit"&&(i=1),t){let s=(t=t.toLowerCase()).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(e=s.length;e--;)s[e]=""+Hi(s[e])*oe(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){let t=this,e=t.element||{},i=t.renderer,s=e.ownerSVGElement,r=e.nodeName==="SPAN"&&t.parentGroup||void 0,o,a;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,ko(t),t.clipPath&&s){let n=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(l){l.getAttribute("clip-path").indexOf(n.element.id)>-1&&l.removeAttribute("clip-path")}),t.clipPath=n.destroy()}if(t.stops){for(a=0;a<t.stops.length;a++)t.stops[a].destroy();t.stops.length=0,t.stops=void 0}for(t.safeRemoveChild(e);r!=null&&r.div&&r.div.childNodes.length===0;)o=r.parentGroup,t.safeRemoveChild(r.div),delete r.div,r=o;t.alignOptions&&Al(i.alignedObjects,t),Xe(t,(n,l)=>{var c,d,p;(((c=t[l])==null?void 0:c.parentGroup)===t||["connector","foreignObject"].indexOf(l)!==-1)&&((p=(d=t[l])==null?void 0:d.destroy)==null||p.call(d)),delete t[l]})}dSetter(t,e,i){So(t)&&(typeof t[0]=="string"&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((s,r,o)=>r!=null&&r.join?(o?s+" ":"")+r.join(" "):(r||"").toString(),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){typeof t=="string"?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,r,o,{alignValue:a,element:n,renderer:l,styles:c,textStr:d}=this,{cache:p,cacheKeys:u}=l,g=n.namespaceURI===this.SVG_NS,x=oe(e,this.rotation,0),m=l.styledMode?n&&kt.prototype.getStyle.call(n,"font-size"):c.fontSize;if(_t(d)&&((o=d.toString()).indexOf("<")===-1&&(o=o.replace(/\d/g,"0")),o+=["",l.rootFontSize,m,x,this.textWidth,a,c.lineClamp,c.textOverflow,c.fontWeight].join(",")),o&&!t&&(i=p[o]),!i||i.polygon){if(g||l.forExport){try{r=this.fakeTS&&function(y){let b=n.querySelector(".highcharts-text-outline");b&&Mo(b,{display:y})},To(r)&&r("none"),i=n.getBBox?li({},n.getBBox()):{width:n.offsetWidth,height:n.offsetHeight,x:0,y:0},To(r)&&r("")}catch{}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();s=i.height,g&&(i.height=s={"11px,17":14,"13px,20":16}[`${m||""},${Math.round(s)}`]||s),x&&(i=this.getRotatedBox(i,x));let f={bBox:i};Fs(this,"afterGetBBox",f),i=f.bBox}if(o&&(d===""||i.height>0)){for(;u.length>250;)delete p[u.shift()];p[o]||u.push(o),p[o]=i}return i}getRotatedBox(t,e){let{x:i,y:s,width:r,height:o}=t,{alignValue:a,translateY:n,rotationOriginX:l=0,rotationOriginY:c=0}=this,d=js(a),p=Number(this.element.getAttribute("y")||0)-(n?0:s),u=e*wo,g=(e-90)*wo,x=Math.cos(u),m=Math.sin(u),f=r*x,y=r*m,b=Math.cos(g),w=Math.sin(g),[[v,k],[S,M]]=[l,c].map(J=>[J-J*x,J*m]),T=i+d*(r-f)+v+M+p*b,A=T+f,L=A-o*b,I=L-f,E=s+p-d*y-k+S+p*w,z=E+y,B=z-o*w,G=B-y,R=Math.min(T,A,L,I),j=Math.min(E,z,B,G),K=Math.max(T,A,L,I)-R,q=Math.max(E,z,B,G)-j;return{x:R,y:j,width:K,height:q,polygon:[[T,E],[A,z],[L,B],[I,G]]}}getStyle(t){return Ml.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return(""+this.attr("class")).split(" ").indexOf(t)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=Ri,this.element=e==="span"||e==="body"?Cl(e):He.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},Fs(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=Tl(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){var t;(t=this.alignOptions)!=null&&t.width&&this.alignOptions.align!=="left"&&(this.alignOptions.width=this.getBBox().width,this.placed=!1,this.align())}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(Co(t)?RegExp(`(^| )${t}( |$)`):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient]||void 0;return this.element.radialReference=t,e!=null&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){var r;let{renderer:e}=this,i=Gs(((r=this.parentGroup)==null?void 0:r.rotation)===90?{offsetX:-1,offsetY:-1}:{},Ol(t)?t:{}),s=e.shadowDefinition(i);return this.attr({filter:t?`url(${e.url}#${s})`:"none"})}show(t=!0){return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t=this.getStyle("stroke-width"),e=0,i;return/px$/.test(t)?e=Hi(t):t!==""&&(Xs(i=He.createElementNS(Ri,"rect"),{width:t,"stroke-width":0}),this.element.parentNode.appendChild(i),e=i.getBBox().width,i.parentNode.removeChild(i)),e}symbolAttr(t){let e=this;kt.symbolCustomAttribs.forEach(function(i){e[i]=oe(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this),this.reAlign())}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||He.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=El(oe(t,""),[/<[^>]*>/g,""]).replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(t="transform"){let{element:e,foreignObject:i,matrix:s,padding:r,rotation:o=0,rotationOriginX:a,rotationOriginY:n,scaleX:l,scaleY:c,text:d,translateX:p=0,translateY:u=0}=this,g=["translate("+p+","+u+")"];_t(s)&&g.push("matrix("+s.join(",")+")"),o&&(g.push("rotate("+o+" "+(a??e.getAttribute("x")??this.x??0)+" "+(n??e.getAttribute("y")??this.y??0)+")"),(d==null?void 0:d.element.tagName)!=="SPAN"||d!=null&&d.foreignObject||d.attr({rotation:o,rotationOriginX:(a||0)-r,rotationOriginY:(n||0)-r})),(_t(l)||_t(c))&&g.push("scale("+oe(l,1)+" "+oe(c,1)+")"),g.length&&!(d||this).textPath&&((i==null?void 0:i.element)||e).setAttribute(t,g.join(" "))}visibilitySetter(t,e,i){t==="inherit"?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return this.element.nodeName==="circle"&&(t==="x"?t="cx":t==="y"&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let i=this.renderer,s=this.parentGroup,r=(s||i).element||i.box,o=this.element,a=r===i.box,n,l,c,d=!1,p,u=this.added,g;if(_t(t)?(o.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):_t(this[e])&&o.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&s&&(s.handleZ=!0),g=(n=r.childNodes).length-1;g>=0&&!d;g--)p=!_t(c=(l=n[g]).getAttribute("data-z-index")),l!==o&&(t<0&&p&&!a&&!g?(r.insertBefore(o,n[g]),d=!0):(Hi(c)<=t||p&&(!_t(t)||t>=0))&&(r.insertBefore(o,n[g+1]),d=!0));d||(r.insertBefore(o,n[3*!!a]),d=!0)}return d}}kt.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],kt.prototype.strokeSetter=kt.prototype.fillSetter,kt.prototype.yGetter=kt.prototype.xGetter,kt.prototype.matrixSetter=kt.prototype.rotationOriginXSetter=kt.prototype.rotationOriginYSetter=kt.prototype.rotationSetter=kt.prototype.scaleXSetter=kt.prototype.scaleYSetter=kt.prototype.translateXSetter=kt.prototype.translateYSetter=kt.prototype.verticalAlignSetter=function(h,t){this[t]=h,this.doTransform=!0};let Jt=kt,{defined:Po,extend:Dl,getAlignFactor:Oo,isNumber:hi,merge:Bl,pick:Xi,removeEvent:Lo}=W;class Se extends Jt{constructor(t,e,i,s,r,o,a,n,l,c){let d;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.doUpdate=!1,this.textStr=e,this.x=i,this.y=s,this.anchorX=o,this.anchorY=a,this.baseline=l,this.className=c,this.addClass(c==="button"?"highcharts-no-tooltip":"highcharts-label"),c&&this.addClass("highcharts-"+c),this.text=t.text(void 0,0,0,n).attr({zIndex:1}),typeof r=="string"&&((d=/^url\((.*?)\)$/.test(r))||this.renderer.symbols[r])&&(this.symbolKey=r),this.bBox=Se.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=Oo(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&hi(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(t){if(t){let e={};t=Bl(t),Se.textProps.forEach(i=>{t[i]!==void 0&&(e[i]=t[i],delete t[i])}),this.text.css(e),"fontSize"in e||"fontWeight"in e?this.updateTextPadding():("width"in e||"textOverflow"in e)&&this.updateBoxSize()}return Jt.prototype.css.call(this,t)}destroy(){Lo(this.element,"mouseenter"),Lo(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Jt.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(t,e){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();let{padding:i,height:s=0,translateX:r=0,translateY:o=0,width:a=0}=this,n=Xi(this.paddingLeft,i),l=e??(this.rotation||0),c={width:a,height:s,x:r+this.bBox.x-n,y:o+this.bBox.y-i+this.baselineOffset};return l&&(c=this.getRotatedBox(c,l)),c}getCrispAdjust(){return(this.renderer.styledMode&&this.box?this.box.strokeWidth():this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t,this.doUpdate=!0}afterSetters(){super.afterSetters(),this.doUpdate&&(this.updateBoxSize(),this.doUpdate=!1)}onAdd(){this.text.add(this),this.attr({text:Xi(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Po(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){hi(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=this["text-align"]=t,this.updateTextPadding()}textSetter(t){t!==void 0&&this.text.attr({text:t}),this.updateTextPadding(),this.reAlign()}updateBoxSize(){let t,e=this.text,i={},s=this.padding,r=this.bBox=(!hi(this.widthSetting)||!hi(this.heightSetting)||this.textAlign)&&Po(e.textStr)?e.getBBox(void 0,0):Se.emptyBBox;this.width=this.getPaddedWidth(),this.height=(this.heightSetting||r.height||0)+2*s;let o=this.renderer.fontMetrics(e);if(this.baselineOffset=s+Math.min((this.text.firstLineMetrics||o).b,r.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-o.h)/2),this.needsBox&&!e.textPath){if(!this.box){let a=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();a.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),a.add(this)}i.x=t=this.getCrispAdjust(),i.y=(this.baseline?-this.baselineOffset:0)+t,i.width=Math.round(this.width),i.height=Math.round(this.height),this.box.attr(Dl(i,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text,e=t.styles.textAlign||this.textAlign;if(!t.textPath){this.updateBoxSize();let i=this.baseline?0:this.baselineOffset,s=(this.paddingLeft??this.padding)+Oo(e)*(this.widthSetting??this.bBox.width);(s!==t.x||i!==t.y)&&(t.attr({align:e,x:s}),i!==void 0&&t.attr("y",i)),t.x=s,t.y=i}}widthSetter(t){this.widthSetting=hi(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=Xi(this.paddingLeft,t),i=Xi(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(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)}ySetter(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}Se.emptyBBox={width:0,height:0,x:0,y:0},Se.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:Eo,isNumber:zl,pick:di}=W;function Io(h,t,e,i,s){let r=[];if(s){let o=s.start||0,a=s.end||0,n=di(s.r,e),l=di(s.r,i||e),c=2e-4/(s.borderRadius?1:Math.max(n,1)),d=Math.abs(a-o-2*Math.PI)<c;d&&(o=Math.PI/2,a=2.5*Math.PI-c);let p=s.innerR,u=di(s.open,d),g=Math.cos(o),x=Math.sin(o),m=Math.cos(a),f=Math.sin(a),y=di(s.longArc,a-o-Math.PI<c?0:1),b=["A",n,l,0,y,di(s.clockwise,1),h+n*m,t+l*f];b.params={start:o,end:a,cx:h,cy:t},r.push(["M",h+n*g,t+l*x],b),Eo(p)&&((b=["A",p,p,0,y,Eo(s.clockwise)?1-s.clockwise:0,h+p*g,t+p*x]).params={start:a,end:o,cx:h,cy:t},r.push(u?["M",h+p*m,t+p*f]:["L",h+p*m,t+p*f],b)),u||r.push(["Z"])}return r}function Do(h,t,e,i,s){return s!=null&&s.r?Ys(h,t,e,i,s):[["M",h,t],["L",h+e,t],["L",h+e,t+i],["L",h,t+i],["Z"]]}function Ys(h,t,e,i,s){let r=(s==null?void 0:s.r)||0;return[["M",h+r,t],["L",h+e-r,t],["A",r,r,0,0,1,h+e,t+r],["L",h+e,t+i-r],["A",r,r,0,0,1,h+e-r,t+i],["L",h+r,t+i],["A",r,r,0,0,1,h,t+i-r],["L",h,t+r],["A",r,r,0,0,1,h+r,t],["Z"]]}let Bo={arc:Io,callout:function(h,t,e,i,s){let r=Math.min((s==null?void 0:s.r)||0,e,i),o=r+6,a=s==null?void 0:s.anchorX,n=(s==null?void 0:s.anchorY)||0,l=Ys(h,t,e,i,{r});if(!zl(a)||a<e&&a>0&&n<i&&n>0)return l;if(h+a>e-o)if(n>t+o&&n<t+i-o)l.splice(3,1,["L",h+e,n-6],["L",h+e+6,n],["L",h+e,n+6],["L",h+e,t+i-r]);else if(a<e){let c=n<t+o,d=c?t:t+i;l.splice(c?2:5,0,["L",a,n],["L",h+e-r,d])}else l.splice(3,1,["L",h+e,i/2],["L",a,n],["L",h+e,i/2],["L",h+e,t+i-r]);else if(h+a<o)if(n>t+o&&n<t+i-o)l.splice(7,1,["L",h,n+6],["L",h-6,n],["L",h,n-6],["L",h,t+r]);else if(a>0){let c=n<t+o,d=c?t:t+i;l.splice(c?1:6,0,["L",a,n],["L",h+r,d])}else l.splice(7,1,["L",h,i/2],["L",a,n],["L",h,i/2],["L",h,t+r]);else n>i&&a<e-o?l.splice(5,1,["L",a+6,t+i],["L",a,t+i+6],["L",a-6,t+i],["L",h+r,t+i]):n<0&&a>o&&l.splice(1,1,["L",a-6,t],["L",a,t-6],["L",a+6,t],["L",e-r,t]);return l},circle:function(h,t,e,i){return Io(h+e/2,t+i/2,e/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(h,t,e,i){return[["M",h+e/2,t],["L",h+e,t+i/2],["L",h+e/2,t+i],["L",h,t+i/2],["Z"]]},rect:Do,roundedRect:Ys,square:Do,triangle:function(h,t,e,i){return[["M",h+e/2,t],["L",h+e,t+i],["L",h,t+i],["Z"]]},"triangle-down":function(h,t,e,i){return[["M",h,t],["L",h+e,t],["L",h+e/2,t+i],["Z"]]}},{doc:$s,SVG_NS:Nl,win:zo}=O,{attr:Vs,extend:Rl,fireEvent:Wl,isString:Hl,objectEach:Xl,pick:Fl}=W,Us=(h,t)=>h.substring(0,t)+"…",jl=class{constructor(h){let t=h.styles;this.renderer=h.renderer,this.svgElement=h,this.width=h.textWidth,this.textLineHeight=t==null?void 0:t.lineHeight,this.textOutline=t==null?void 0:t.textOutline,this.ellipsis=(t==null?void 0:t.textOverflow)==="ellipsis",this.lineClamp=t==null?void 0:t.lineClamp,this.noWrap=(t==null?void 0:t.whiteSpace)==="nowrap"}buildSVG(){let h=this.svgElement,t=h.element,e=h.renderer,i=Fl(h.textStr,"").toString(),s=i.indexOf("<")!==-1,r=t.childNodes,o=!h.added&&e.box,a=[i,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,h.getStyle("font-size"),h.styles.lineClamp,this.width].join(",");if(a!==h.textCache){h.textCache=a,delete h.actualWidth;for(let n=r.length;n--;)t.removeChild(r[n]);if(s||this.ellipsis||this.width||h.textPath||i.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(i))){if(i!==""){o&&o.appendChild(t);let n=new lt(i);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||"").indexOf("…")!==-1&&h.attr("title",this.unescapeEntities(h.textStr||"",["&lt;","&gt;"])),o&&o.removeChild(t)}}else t.appendChild($s.createTextNode(this.unescapeEntities(i)));Hl(this.textOutline)&&h.applyTextOutline&&h.applyTextOutline(this.textOutline)}}modifyDOM(){let h,t=this.svgElement,e=Vs(t.element,"x");for(t.firstLineMetrics=void 0;(h=t.element.firstChild)&&/^[\s\u200B]*$/.test(h.textContent||" ");)t.element.removeChild(h);[].forEach.call(t.element.querySelectorAll("tspan.highcharts-br"),(o,a)=>{o.nextSibling&&o.previousSibling&&(a===0&&o.previousSibling.nodeType===1&&(t.firstLineMetrics=t.renderer.fontMetrics(o.previousSibling)),Vs(o,{dy:this.getLineHeight(o.nextSibling),x:e}))});let i=this.width||0;if(!i)return;let s=(o,a)=>{var x;let n=o.textContent||"",l=n.replace(/([^\^])-/g,"$1- ").split(" "),c=!this.noWrap&&(l.length>1||t.element.childNodes.length>1),d=this.getLineHeight(a),p=Math.max(0,i-.8*d),u=0,g=t.actualWidth;if(c){let m=[],f=[];for(;a.firstChild&&a.firstChild!==o;)f.push(a.firstChild),a.removeChild(a.firstChild);for(;l.length;)if(l.length&&!this.noWrap&&u>0&&(m.push(o.textContent||""),o.textContent=l.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,l,u===0&&g||0,i,p,(y,b)=>l.slice(0,b).join(" ").replace(/- /g,"-")),g=t.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){l.length&&(this.truncate(o,o.textContent||"",void 0,0,i,p,Us),o.textContent=((x=o.textContent)==null?void 0:x.replace("…",""))+"…");break}f.forEach(y=>{a.insertBefore(y,o)}),m.forEach(y=>{a.insertBefore($s.createTextNode(y),o);let b=$s.createElementNS(Nl,"tspan");b.textContent="​",Vs(b,{dy:d,x:e}),a.insertBefore(b,o)})}else this.ellipsis&&n&&this.truncate(o,n,void 0,0,i,p,Us)},r=o=>{[].slice.call(o.childNodes).forEach(a=>{a.nodeType===zo.Node.TEXT_NODE?s(a,o):(a.className.baseVal.indexOf("highcharts-br")!==-1&&(t.actualWidth=0),r(a))})};r(t.element)}getLineHeight(h){let t=h.nodeType===zo.Node.TEXT_NODE?h.parentElement:h;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(h){let t=(e,i)=>{let{attributes:s={},children:r,style:o={},tagName:a}=e,n=this.renderer.styledMode;if(a==="b"||a==="strong"?n?s.class="highcharts-strong":o.fontWeight="bold":(a==="i"||a==="em")&&(n?s.class="highcharts-emphasized":o.fontStyle="italic"),o!=null&&o.color&&(o.fill=o.color),a==="br"){s.class="highcharts-br",e.textContent="​";let l=h[i+1];l!=null&&l.textContent&&(l.textContent=l.textContent.replace(/^ +/gm,""))}else a==="a"&&r&&r.some(l=>l.tagName==="#text")&&(e.children=[{children:r,tagName:"tspan"}]);a!=="#text"&&a!=="a"&&(e.tagName="tspan"),Rl(e,{attributes:s,style:o}),r&&r.filter(l=>l.tagName!=="#text").forEach(t)};h.forEach(t),Wl(this.svgElement,"afterModifyTree",{nodes:h})}truncate(h,t,e,i,s,r,o){let a,n,l=this.svgElement,{rotation:c}=l,d=[],p=e&&!i?1:0,u=(t||e||"").length,g=u;e||(s=r);let x=function(m,f){let y=f||m,b=h.parentNode;if(b&&d[y]===void 0&&b.getSubStringLength)try{d[y]=i+b.getSubStringLength(0,e?y+1:y)}catch{}return d[y]};if(l.rotation=0,i+(n=x(h.textContent.length))>s){for(;p<=u;)g=Math.ceil((p+u)/2),e&&(a=o(e,g)),n=x(g,a&&a.length-1),p===u?p=u+1:n>s?u=g-1:p=g;u===0?h.textContent="":t&&u===t.length-1||(h.textContent=a||o(t||e,g)),this.ellipsis&&n>s&&this.truncate(h,h.textContent||"",void 0,0,s,r,Us)}e&&e.splice(0,g),l.actualWidth=n,l.rotation=c}unescapeEntities(h,t){return Xl(this.renderer.escapes,function(e,i){t&&t.indexOf(e)!==-1||(h=h.toString().replace(RegExp(e,"g"),i))}),h}},{defaultOptions:Gl}=Ft,{charts:Yl,deg2rad:No,doc:Fe,isFirefox:Ro,isMS:Wo,isWebKit:$l,noop:Vl,SVG_NS:Ul,symbolSizes:qs,win:Zs}=O,{addEvent:Fi,attr:ji,createElement:ql,crisp:Ho,css:Gi,defined:Te,destroyObjectProperties:Zl,extend:Ce,isArray:Kl,isNumber:je,isObject:ci,isString:_l,merge:Ks,pick:_s,pInt:Jl,replaceNested:Ql,uniqueKey:th}=W;class Yi{constructor(t,e,i,s,r,o,a){let n,l;this.x=0,this.y=0;let c=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=c.element;a||c.css(this.getStyle(s||{})),t.appendChild(d),ji(t,"dir","ltr"),t.innerHTML.indexOf("xmlns")===-1&&ji(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(Fe.createTextNode("Created with Highcharts 12.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=o,this.forExport=r,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=c.getStyle("font-size"),this.setSize(e,i,!1),Ro&&t.getBoundingClientRect&&((n=function(){Gi(t,{left:0,top:0}),l=t.getBoundingClientRect(),Gi(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=Fi(Zs,"resize",n))}definition(t){return new lt([t]).addToDOM(this.defs.element)}getReferenceURL(){if((Ro||$l)&&Fe.getElementsByTagName("base").length){if(!Te(tt)){let t=th(),e=new lt([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:t},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${t})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(Fe.body);Gi(e,{position:"fixed",top:0,left:0,zIndex:9e5});let i=Fe.elementFromPoint(6,6);tt=(i==null?void 0:i.id)==="hitme",Fe.body.removeChild(e)}if(tt)return Ql(Zs.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=Ce({fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif',fontSize:"1rem"},t),this.style}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),Zl(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t){return new this.Element(this,t)}getRadialAttr(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}}shadowDefinition(t){let e=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(t).map(s=>`${s}-${t[s]}`)].join("-").toLowerCase().replace(/[^a-z\d\-]/g,""),i=Ks({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector(`#${e}`)||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:this.getShadowFilterContent(i)}),e}getShadowFilterContent(t){return[{tagName:"feDropShadow",attributes:{dx:t.offsetX,dy:t.offsetY,"flood-color":t.color,"flood-opacity":Math.min(5*t.opacity,1),stdDeviation:t.width/2}}]}buildText(t){new jl(t).buildSVG()}getContrast(t){let e=ht.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(je(e[0])||!ht.useColorMix){let s=e.map(o=>{let a=o/255;return a<=.04?a/12.92:Math.pow((a+.055)/1.055,2.4)}),r=.2126*s[0]+.7152*s[1]+.0722*s[2];return 1.05/(r+.05)>(r+.05)/.05?"#FFFFFF":"#000000"}return"color(from "+t+" srgb"+i+i+i+")"}button(t,e,i,s,r={},o,a,n,l,c){let d=this.label(t,e,i,l,void 0,void 0,c,void 0,"button"),p=this.styledMode,u=arguments,g=0;r=Ks(Gl.global.buttonTheme,r),p&&(delete r.fill,delete r.stroke,delete r["stroke-width"]);let x=r.states||{},m=r.style||{};delete r.states,delete r.style;let f=[lt.filterUserAttributes(r)],y=[m];return p||["hover","select","disabled"].forEach((b,w)=>{f.push(Ks(f[0],lt.filterUserAttributes(u[w+5]||x[b]||{}))),y.push(f[w+1].style),delete f[w+1].style}),Fi(d.element,Wo?"mouseover":"mouseenter",function(){g!==3&&d.setState(1)}),Fi(d.element,Wo?"mouseout":"mouseleave",function(){g!==3&&d.setState(g)}),d.setState=(b=0)=>{if(b!==1&&(d.state=g=b),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][b]),!p){d.attr(f[b]);let w=y[b];ci(w)&&d.css(w)}},d.attr(f[0]),!p&&(d.css(Ce({cursor:"default"},m)),c&&d.text.css({pointerEvents:"none"})),d.on("touchstart",b=>b.stopPropagation()).on("click",function(b){g!==3&&(s==null||s.call(d,b))})}crispLine(t,e){let[i,s]=t;return Te(i[1])&&i[1]===s[1]&&(i[1]=s[1]=Ho(i[1],e)),Te(i[2])&&i[2]===s[2]&&(i[2]=s[2]=Ho(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return Kl(t)?e.d=t:ci(t)&&Ce(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=ci(t)?t:t===void 0?{}:{x:t,y:e,r:i},r=this.createElement("circle");return r.xSetter=r.ySetter=function(o,a,n){n.setAttribute("c"+a,o)},r.attr(s)}arc(t,e,i,s,r,o){let a;ci(t)?(e=(a=t).y,i=a.r,s=a.innerR,r=a.start,o=a.end,t=a.x):a={innerR:s,start:r,end:o};let n=this.symbol("arc",t,e,i,i,a);return n.r=i,n}rect(t,e,i,s,r,o){let a=ci(t)?t:t===void 0?{}:{x:t,y:e,r,width:Math.max(i||0,0),height:Math.max(s||0,0)},n=this.createElement("rect");return this.styledMode||(o!==void 0&&(a["stroke-width"]=o,Ce(a,n.crisp(a))),a.fill="none"),n.rSetter=function(l,c,d){n.r=l,ji(d,{rx:l,ry:l})},n.rGetter=function(){return n.r||0},n.attr(a)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:_s(i,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,r,o){let a={preserveAspectRatio:"none"};je(e)&&(a.x=e),je(i)&&(a.y=i),je(s)&&(a.width=s),je(r)&&(a.height=r);let n=this.createElement("image").attr(a),l=function(c){n.attr({href:t}),o.call(n,c)};if(o){n.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let c=new Zs.Image;Fi(c,"load",l),c.src=t,c.complete&&l({})}else n.attr({href:t});return n}symbol(t,e,i,s,r,o){var m,f;let a,n,l,c,d=this,p=/^url\((.*?)\)$/,u=p.test(t),g=!u&&(this.symbols[t]?t:"circle"),x=g&&this.symbols[g];if(x)typeof e=="number"&&(n=x.call(this.symbols,e||0,i||0,s||0,r||0,o)),a=this.path(n),d.styledMode||a.attr("fill","none"),Ce(a,{symbolName:g||void 0,x:e,y:i,width:s,height:r}),o&&Ce(a,o);else if(u){l=t.match(p)[1];let y=a=this.image(l);y.imgwidth=_s(o==null?void 0:o.width,(m=qs[l])==null?void 0:m.width),y.imgheight=_s(o==null?void 0:o.height,(f=qs[l])==null?void 0:f.height),c=b=>b.attr({width:b.width,height:b.height}),["width","height"].forEach(b=>{y[`${b}Setter`]=function(w,v){this[v]=w;let{alignByTranslate:k,element:S,width:M,height:T,imgwidth:A,imgheight:L}=this,I=v==="width"?A:L,E=1;o&&o.backgroundSize==="within"&&M&&T&&A&&L?(E=Math.min(M/A,T/L),ji(S,{width:Math.round(A*E),height:Math.round(L*E)})):S&&I&&S.setAttribute(v,I),!k&&A&&L&&this.translate(((M||0)-A*E)/2,((T||0)-L*E)/2)}}),Te(e)&&y.attr({x:e,y:i}),y.isImg=!0,y.symbolUrl=t,Te(y.imgwidth)&&Te(y.imgheight)?c(y):(y.attr({width:0,height:0}),ql("img",{onload:function(){let b=Yl[d.chartIndex];this.width===0&&(Gi(this,{position:"absolute",top:"-999em"}),Fe.body.appendChild(this)),qs[l]={width:this.width,height:this.height},y.imgwidth=this.width,y.imgheight=this.height,y.element&&c(y),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!b||b.hasLoaded||b.onload()},src:l}),this.imgCount++)}return a}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let r={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);r.x=Math.round(e||0),i&&(r.y=Math.round(i)),Te(t)&&(r.text=t);let o=this.createElement("text").attr(r);return s&&(!this.forExport||this.allowHTML)||(o.xSetter=function(a,n,l){let c=l.getElementsByTagName("tspan"),d=l.getAttribute(n);for(let p=0,u;p<c.length;p++)(u=c[p]).getAttribute(n)===d&&u.setAttribute(n,a);l.setAttribute(n,a)}),o}fontMetrics(t){let e=Jl(Jt.prototype.getStyle.call(t,"font-size")||0),i=e<24?e+3:Math.round(1.2*e),s=Math.round(.8*i);return{h:i,b:s,f:e}}rotCorr(t,e,i){let s=t;return e&&i&&(s=Math.max(s*Math.cos(e*No),4)),{x:-t/3*Math.sin(e*No),y:s}}pathToSegments(t){let e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let r=0;r<t.length;r++)_l(i[0])&&je(t[r])&&i.length===s[i[0].toUpperCase()]&&t.splice(r,0,i[0].replace("M","L").replace("m","l")),typeof t[r]=="string"&&(i.length&&e.push(i.slice(0)),i.length=0),i.push(t[r]);return e.push(i.slice(0)),e}label(t,e,i,s,r,o,a,n,l){return new Se(this,t,e,i,s,r,o,a,n,l)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}Ce(Yi.prototype,{Element:Jt,SVG_NS:Ul,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:Bo,draw:Vl}),ni.registerRendererType("svg",Yi,!0);let{composed:eh,isFirefox:ih}=O,{attr:sh,css:he,createElement:rh,defined:Xo,extend:oh,getAlignFactor:ah,isNumber:$i,pInt:nh,pushUnique:lh}=W;function Fo(h,t,e){var s;let i=((s=this.div)==null?void 0:s.style)||e.style;Jt.prototype[`${t}Setter`].call(this,h,t,e),i&&(i[t]=h)}let hh=(h,t)=>{var e;if(!h.div){let i=sh(h.element,"class"),s=h.css,r=rh("div",i?{className:i}:void 0,{position:"absolute",left:`${h.translateX||0}px`,top:`${h.translateY||0}px`,...h.styles,display:h.display,opacity:h.opacity,visibility:h.visibility},((e=h.parentGroup)==null?void 0:e.div)||t);h.classSetter=(o,a,n)=>{n.setAttribute("class",o),r.className=o},h.translateXSetter=h.translateYSetter=(o,a)=>{h[a]=o,r.style[a==="translateX"?"left":"top"]=`${o}px`,h.doTransform=!0},h.opacitySetter=h.visibilitySetter=Fo,h.css=o=>(s.call(h,o),o.cursor&&(r.style.cursor=o.cursor),o.pointerEvents&&(r.style.pointerEvents=o.pointerEvents),h),h.on=function(){return Jt.prototype.on.apply({element:r,onEvents:h.onEvents},arguments),h},h.div=r}return h.div};class Ge extends Jt{static compose(t){lh(eh,this.compose)&&(t.prototype.html=function(e,i,s){return new Ge(this,"span").attr({text:e,x:Math.round(i),y:Math.round(s)})})}constructor(t,e){super(t,e),Ge.useForeignObject?this.foreignObject=t.createElement("foreignObject").attr({zIndex:2}):this.css({position:"absolute",...t.styledMode?{}:{fontFamily:t.style.fontFamily,fontSize:t.style.fontSize}}),this.element.style.whiteSpace="nowrap"}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}css(t){let e,{element:i}=this,s=i.tagName==="SPAN"&&t&&"width"in t,r=s&&t.width;return s&&(delete t.width,this.textWidth=nh(r)||void 0,e=!0),(t==null?void 0:t.textOverflow)==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),t!=null&&t.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),$i(Number(t==null?void 0:t.fontSize))&&(t.fontSize+="px"),oh(this.styles,t),he(i,t),e&&this.updateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}updateTransform(){var y;if(!this.added){this.alignOnAdd=!0;return}let{element:t,foreignObject:e,oldTextWidth:i,renderer:s,rotation:r,rotationOriginX:o,rotationOriginY:a,scaleX:n,scaleY:l,styles:{display:c="inline-block",whiteSpace:d},textAlign:p="left",textWidth:u,translateX:g=0,translateY:x=0,x:m=0,y:f=0}=this;if(e||he(t,{marginLeft:`${g}px`,marginTop:`${x}px`}),t.tagName==="SPAN"){let b,w=[r,p,t.innerHTML,u,this.textAlign].join(","),v=-(((y=this.parentGroup)==null?void 0:y.padding)*1)||0;if(u!==i){let T=this.textPxLength?this.textPxLength:(he(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth),A=u||0,L=t.style.textOverflow===""&&t.style.webkitLineClamp;(A>i||T>A||L)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||t.style.textOverflow==="ellipsis")&&(he(t,{width:(r||n||T>A||L)&&$i(u)?u+"px":"auto",display:c,whiteSpace:d||"normal"}),this.oldTextWidth=u)}e&&(he(t,{display:"inline-block",verticalAlign:"top"}),e.attr({width:s.width,height:s.height})),w!==this.cTT&&(b=s.fontMetrics(t).b,Xo(r)&&!e&&(r!==(this.oldRotation||0)||p!==this.oldAlign)&&he(t,{transform:`rotate(${r}deg)`,transformOrigin:`${v}% ${v}px`}),this.getSpanCorrection(!Xo(r)&&!this.textWidth&&this.textPxLength||t.offsetWidth,b,ah(p)));let{xCorr:k=0,yCorr:S=0}=this,M={left:`${m+k}px`,top:`${f+S}px`,textAlign:p,transformOrigin:`${(o??m)-k-m-v}px ${(a??f)-S-f-v}px`};(n||l)&&(M.transform=`scale(${n??1},${l??1})`),e?(super.updateTransform(),$i(m)&&$i(f)?(e.attr({x:m+k,y:f+S,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),he(t,{display:c,textAlign:p})):ih&&e.attr({width:0,height:0})):he(t,M),this.cTT=w,this.oldRotation=r,this.oldAlign=p}}add(t){let{foreignObject:e,renderer:i}=this,s=i.box.parentNode,r=[];if(e)e.add(t),super.add(i.createElement("body").attr({xmlns:"http://www.w3.org/1999/xhtml"}).css({background:"transparent",margin:"0 3px 0 0"}).add(e));else{let o;if(this.parentGroup=t,t&&!(o=t.div)){let a=t;for(;a;)r.push(a),a=a.parentGroup;for(let n of r.reverse())o=hh(n,s)}(o||s).appendChild(this.element)}return this.added=!0,this.alignOnAdd&&this.updateTransform(),this}textSetter(t){t!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,lt.setElementHTML(this.element,t??""),this.textStr=t,this.doTransform=!0)}alignSetter(t){this.alignValue=this.textAlign=t,this.doTransform=!0}xSetter(t,e){this[e]=t,this.doTransform=!0}}let Ae=Ge.prototype;Ae.visibilitySetter=Ae.opacitySetter=Fo,Ae.ySetter=Ae.rotationSetter=Ae.rotationOriginXSetter=Ae.rotationOriginYSetter=Ae.xSetter,function(h){h.xAxis={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%[HMSL]",range:!1},second:{main:"%[HMS]",range:!1},minute:{main:"%[HM]",range:!1},hour:{main:"%[HM]",range:!1},day:{main:"%[eb]"},week:{main:"%[eb]"},month:{main:"%[bY]"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em",textOverflow:"ellipsis"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,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",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},h.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:t}=this.axis.chart;return t(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0}}(U||(U={}));let dh=U,{addEvent:ch,isFunction:ph,objectEach:uh,removeEvent:gh}=W;(Z||(Z={})).registerEventOptions=function(h,t){h.eventOptions=h.eventOptions||{},uh(t.events,function(e,i){h.eventOptions[i]!==e&&(h.eventOptions[i]&&(gh(h,i,h.eventOptions[i]),delete h.eventOptions[i]),ph(e)&&(h.eventOptions[i]=e,ch(h,i,e,{order:0})))})};let Vi=Z,{deg2rad:Js}=O,{clamp:fh,correctFloat:Ui,defined:Qs,destroyObjectProperties:mh,extend:jo,fireEvent:pi,getAlignFactor:xh,isNumber:qi,merge:yh,objectEach:bh,pick:Qt}=W,Ye=class{constructor(h,t,e,i,s){this.isNew=!0,this.isNewLabel=!0,this.axis=h,this.pos=t,this.type=e||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,pi(this,"init"),e||i||this.addLabel()}addLabel(){var S;let h=this,t=h.axis,e=t.options,i=t.chart,s=t.categories,r=t.logarithmic,o=t.names,a=h.pos,n=Qt((S=h.options)==null?void 0:S.labels,e.labels),l=t.tickPositions,c=a===l[0],d=a===l[l.length-1],p=(!n.step||n.step===1)&&t.tickInterval===1,u=l.info,g=h.label,x,m,f,y=this.parameters.category||(s?Qt(s[a],o[a],a):a);r&&qi(y)&&(y=Ui(r.lin2log(y))),t.dateTime&&(u?x=(m=i.time.resolveDTLFormat(e.dateTimeLabelFormats[!e.grid&&u.higherRanks[a]||u.unitName])).main:qi(y)&&(x=t.dateTime.getXDateFormat(y,e.dateTimeLabelFormats||{}))),h.isFirst=c,h.isLast=d;let b={axis:t,chart:i,dateTimeLabelFormat:x,isFirst:c,isLast:d,pos:a,tick:h,tickPositionInfo:u,value:y};pi(this,"labelFormat",b);let w=M=>n.formatter?n.formatter.call(M,M):n.format?(M.text=t.defaultLabelFormatter.call(M),jt.format(n.format,M,i)):t.defaultLabelFormatter.call(M),v=w.call(b,b),k=m==null?void 0:m.list;k?h.shortenLabel=function(){for(f=0;f<k.length;f++)if(jo(b,{dateTimeLabelFormat:k[f]}),g.attr({text:w.call(b,b)}),g.getBBox().width<t.getSlotWidth(h)-2*(n.padding||0))return;g.attr({text:""})}:h.shortenLabel=void 0,p&&t._addedPlotLB&&h.moveLabel(v,n),Qs(g)||h.movedLabel?g&&g.textStr!==v&&!p&&(!g.textWidth||n.style.width||g.styles.width||g.css({width:null}),g.attr({text:v}),g.textPxLength=g.getBBox().width):(h.label=g=h.createLabel(v,n),h.rotation=0)}createLabel(h,t,e){let i=this.axis,{renderer:s,styledMode:r}=i.chart,o=t.style.whiteSpace,a=Qs(h)&&t.enabled?s.text(h,e==null?void 0:e.x,e==null?void 0:e.y,t.useHTML).add(i.labelGroup):void 0;return a&&(r||a.css(yh(t.style)),a.textPxLength=a.getBBox().width,!r&&o&&a.css({whiteSpace:o})),a}destroy(){mh(this,this.axis)}getPosition(h,t,e,i){let s=this.axis,r=s.chart,o=i&&r.oldChartHeight||r.chartHeight,a={x:h?Ui(s.translate(t+e,void 0,void 0,i)+s.transB):s.left+s.offset+(s.opposite?(i&&r.oldChartWidth||r.chartWidth)-s.right-s.left:0),y:h?o-s.bottom+s.offset-(s.opposite?s.height:0):Ui(o-s.translate(t+e,void 0,void 0,i)-s.transB)};return a.y=fh(a.y,-1e9,1e9),pi(this,"afterGetPosition",{pos:a}),a}getLabelPosition(h,t,e,i,s,r,o,a){let n,l,c=this.axis,d=c.transA,p=c.isLinked&&c.linkedParent?c.linkedParent.reversed:c.reversed,u=c.staggerLines,g=c.tickRotCorr||{x:0,y:0},x=i||c.reserveSpaceDefault?0:-c.labelOffset*(c.labelAlign==="center"?.5:1),m=s.distance,f={};return n=c.side===0?e.rotation?-m:-e.getBBox().height:c.side===2?g.y+m:Math.cos(e.rotation*Js)*(g.y-e.getBBox(!1,0).height/2),Qs(s.y)&&(n=c.side===0&&c.horiz?s.y+n:s.y),h=h+Qt(s.x,[0,1,0,-1][c.side]*m)+x+g.x-(r&&i?r*d*(p?-1:1):0),t=t+n-(r&&!i?r*d*(p?1:-1):0),u&&(l=o/(a||1)%u,c.opposite&&(l=u-l-1),t+=l*(c.labelOffset/u)),f.x=h,f.y=Math.round(t),pi(this,"afterGetLabelPosition",{pos:f,tickmarkOffset:r,index:o}),f}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(h,t,e,i,s=!1,r){return r.crispLine([["M",h,t],["L",h+(s?0:-e),t+(s?e:0)]],i)}handleOverflow(h){var m;let t=this.axis,e=t.options.labels,i=h.x,s=t.chart.chartWidth,r=t.chart.spacing,o=Qt(t.labelLeft,Math.min(t.pos,r[3])),a=Qt(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,s-r[1])),n=this.label,l=this.rotation,c=xh(t.labelAlign||n.attr("align")),d=n.getBBox().width,p=t.getSlotWidth(this),u=p,g=1,x;l||e.overflow!=="justify"?l<0&&i-c*d<o?x=Math.round(i/Math.cos(l*Js)-o):l>0&&i+c*d>a&&(x=Math.round((s-i)/Math.cos(l*Js))):(i-c*d<o?u=h.x+u*(1-c)-o:i+(1-c)*d>a&&(u=a-h.x+u*c,g=-1),(u=Math.min(p,u))<p&&t.labelAlign==="center"&&(h.x+=g*(p-u-c*(p-Math.min(d,u)))),(d>u||t.autoRotation&&((m=n==null?void 0:n.styles)!=null&&m.width))&&(x=u)),x&&n&&(this.shortenLabel?this.shortenLabel():n.css(jo({},{width:Math.floor(x)+"px",lineClamp:+!t.isRadial})))}moveLabel(h,t){let e=this,i=e.label,s=e.axis,r=!1,o;i&&i.textStr===h?(e.movedLabel=i,r=!0,delete e.label):bh(s.ticks,function(a){r||a.isNew||a===e||!a.label||a.label.textStr!==h||(e.movedLabel=a.label,r=!0,a.labelPos=e.movedLabel.xy,delete a.label)}),!r&&(e.labelPos||i)&&(o=e.labelPos||i.xy,e.movedLabel=e.createLabel(h,t,o),e.movedLabel&&e.movedLabel.attr({opacity:0}))}render(h,t,e){var g;let i=this.axis,s=i.horiz,r=this.pos,o=Qt(this.tickmarkOffset,i.tickmarkOffset),a=this.getPosition(s,r,o,t),n=a.x,l=a.y,c=i.pos,d=c+i.len,p=s?n:l,u=Qt(e,(g=this.label)==null?void 0:g.newOpacity,1);!i.chart.polar&&(Ui(p)<c||p>d)&&(e=0),e??(e=1),this.isActive=!0,this.renderGridLine(t,e),this.renderMark(a,e),this.renderLabel(a,t,u,h),this.isNew=!1,pi(this,"afterRender")}renderGridLine(h,t){let e=this.axis,i=e.options,s={},r=this.pos,o=this.type,a=Qt(this.tickmarkOffset,e.tickmarkOffset),n=e.chart.renderer,l=this.gridLine,c,d=i.gridLineWidth,p=i.gridLineColor,u=i.gridLineDashStyle;this.type==="minor"&&(d=i.minorGridLineWidth,p=i.minorGridLineColor,u=i.minorGridLineDashStyle),l||(e.chart.styledMode||(s.stroke=p,s["stroke-width"]=d||0,s.dashstyle=u),o||(s.zIndex=1),h&&(t=0),this.gridLine=l=n.path().attr(s).addClass("highcharts-"+(o?o+"-":"")+"grid-line").add(e.gridGroup)),l&&(c=e.getPlotLinePath({value:r+a,lineWidth:l.strokeWidth(),force:"pass",old:h,acrossPanes:!1}))&&l[h||this.isNew?"attr":"animate"]({d:c,opacity:t})}renderMark(h,t){let e=this.axis,i=e.options,s=e.chart.renderer,r=this.type,o=e.tickSize(r?r+"Tick":"tick"),a=h.x,n=h.y,l=Qt(i[r!=="minor"?"tickWidth":"minorTickWidth"],!r&&e.isXAxis?1:0),c=i[r!=="minor"?"tickColor":"minorTickColor"],d=this.mark,p=!d;o&&(e.opposite&&(o[0]=-o[0]),d||(this.mark=d=s.path().addClass("highcharts-"+(r?r+"-":"")+"tick").add(e.axisGroup),e.chart.styledMode||d.attr({stroke:c,"stroke-width":l})),d[p?"attr":"animate"]({d:this.getMarkPath(a,n,o[0],d.strokeWidth(),e.horiz,s),opacity:t}))}renderLabel(h,t,e,i){let s=this.axis,r=s.horiz,o=s.options,a=this.label,n=o.labels,l=n.step,c=Qt(this.tickmarkOffset,s.tickmarkOffset),d=h.x,p=h.y,u=!0;a&&qi(d)&&(a.xy=h=this.getLabelPosition(d,p,a,r,n,c,i,l),(!this.isFirst||this.isLast||o.showFirstLabel)&&(!this.isLast||this.isFirst||o.showLastLabel)?!r||n.step||n.rotation||t||e===0||this.handleOverflow(h):u=!1,l&&i%l&&(u=!1),u&&qi(h.y)?(h.opacity=e,a[this.isNewLabel?"attr":"animate"](h).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let h=this.label,t=this.axis;h&&!this.isNew&&(h.animate({opacity:0},void 0,h.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:vh}=At,{xAxis:Go,yAxis:kh}=dh,{defaultOptions:tr}=Ft,{registerEventOptions:wh}=Vi,{deg2rad:Mh}=O,{arrayMax:Yo,arrayMin:Sh,clamp:er,correctFloat:Wt,defined:ot,destroyObjectProperties:Th,erase:$o,error:ir,extend:Zi,fireEvent:dt,getClosestDistance:Vo,insertItem:Ch,isArray:Uo,isNumber:X,isString:qo,merge:Ki,normalizeTickInterval:Ah,objectEach:_i,pick:V,relativeLength:Ji,removeEvent:Ph,splat:Oh,syncTimeout:Lh}=W,Zo=(h,t)=>Ah(t,void 0,void 0,V(h.options.allowDecimals,t<.5||h.tickAmount!==void 0),!!h.tickAmount);Zi(tr,{xAxis:Go,yAxis:Ki(Go,kh)});class $e{constructor(t,e,i){this.init(t,e,i)}init(t,e,i=this.coll){let s=i==="xAxis",r=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=r,this.isXAxis=s,this.coll=i,dt(this,"init",{userOptions:e}),this.opposite=V(e.opposite,this.opposite),this.side=V(e.side,this.side,r?2*!this.opposite:this.opposite?1:3),this.setOptions(e);let o=this.options,a=o.labels;this.type??(this.type=o.type||"linear"),this.uniqueNames??(this.uniqueNames=o.uniqueNames??!0),dt(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=V(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames=this.type==="category"||o.categories===!0,this.categories=Uo(o.categories)&&o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=ot(o.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len??(this.len=0),this.minRange=this.userMinRange=o.minRange||o.maxZoom,this.range=o.range,this.offset=o.offset||0,this.max=void 0,this.min=void 0;let n=V(o.crosshair,Oh(t.options.tooltip.crosshairs)[+!s]);this.crosshair=n===!0?{}:n,t.axes.indexOf(this)===-1&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),Ch(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!ot(this.reversed)&&(this.reversed=!0),this.labelRotation=X(a.rotation)?a.rotation:void 0,wh(this,o),dt(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45],padding:3},margin:15}:{labels:{padding:1},title:{rotation:90*this.side}};this.options=Ki(e,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},tr[this.coll],t),dt(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t=this.axis,{numberFormatter:e}=this.chart,i=X(this.value)?this.value:NaN,s=t.chart.time,r=t.categories,o=this.dateTimeLabelFormat,a=tr.lang,n=a.numericSymbols,l=a.numericSymbolMagnitude||1e3,c=t.logarithmic?Math.abs(i):t.tickInterval,d=n==null?void 0:n.length,p,u;if(r)u=`${this.value}`;else if(o)u=s.dateFormat(o,i,!0);else if(d&&n&&c>=1e3)for(;d--&&u===void 0;)c>=(p=Math.pow(l,d+1))&&10*i%p==0&&n[d]!==null&&i!==0&&(u=e(i/p,-1)+n[d]);return u===void 0&&(u=Math.abs(i)>=1e4?e(i,-1):e(i,-1,void 0,"")),u}getSeriesExtremes(){let t,e=this;dt(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach(i=>{if(i.reserveSpace()){let s=i.options,r,o=s.threshold,a,n;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(o||0)&&(o=void 0),e.isXAxis)(r=i.getColumn("x")).length&&(r=e.logarithmic?r.filter(l=>l>0):r,a=(t=i.getXExtremes(r)).min,n=t.max,X(a)||a instanceof Date||(r=r.filter(X),a=(t=i.getXExtremes(r)).min,n=t.max),r.length&&(e.dataMin=Math.min(V(e.dataMin,a),a),e.dataMax=Math.max(V(e.dataMax,n),n)));else{let l=i.applyExtremes();X(l.dataMin)&&(a=l.dataMin,e.dataMin=Math.min(V(e.dataMin,a),a)),X(l.dataMax)&&(n=l.dataMax,e.dataMax=Math.max(V(e.dataMax,n),n)),ot(o)&&(e.threshold=o),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),dt(this,"afterGetSeriesExtremes")}translate(t,e,i,s,r,o){var x;let a=this.linkedParent||this,n=s&&a.old?a.old.min:a.min;if(!X(n))return NaN;let l=a.minPixelPadding,c=(a.isOrdinal||((x=a.brokenAxis)==null?void 0:x.hasBreaks)||a.logarithmic&&r)&&a.lin2val,d=1,p=0,u=s&&a.old?a.old.transA:a.transA,g=0;return u||(u=a.transA),i&&(d*=-1,p=a.len),a.reversed&&(d*=-1,p-=d*(a.sector||a.len)),e?(g=(t=t*d+p-l)/u+n,c&&(g=a.lin2val(g))):(c&&(t=a.val2lin(t)),g=d*(t-n)*u+p+d*l+(X(o)?u*o:0),a.isRadial||(g=Wt(g))),g}toPixels(t,e){var i;return this.translate(((i=this.chart)==null?void 0:i.time.parse(t))??NaN,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e=this,i=e.chart,s=e.left,r=e.top,o=t.old,a=t.value,n=t.lineWidth,l=o&&i.oldChartHeight||i.chartHeight,c=o&&i.oldChartWidth||i.chartWidth,d=e.transB,p=t.translatedValue,u=t.force,g,x,m,f,y;function b(v,k,S){return u!=="pass"&&(v<k||v>S)&&(u?v=er(v,k,S):y=!0),v}let w={value:a,lineWidth:n,old:o,force:u,acrossPanes:t.acrossPanes,translatedValue:p};return dt(this,"getPlotLinePath",w,function(v){g=m=(p=er(p=V(p,e.translate(a,void 0,void 0,o)),-1e9,1e9))+d,x=f=l-p-d,X(p)?e.horiz?(x=r,f=l-e.bottom+(e.options.isInternal?0:i.scrollablePixelsY||0),g=m=b(g,s,s+e.width)):(g=s,m=c-e.right+(i.scrollablePixelsX||0),x=f=b(x,r,r+e.height)):(y=!0,u=!1),v.path=y&&!u?void 0:i.renderer.crispLine([["M",g,x],["L",m,f]],n||1)}),w.path}getLinearTickPositions(t,e,i){let s,r,o,a=Wt(Math.floor(e/t)*t),n=Wt(Math.ceil(i/t)*t),l=[];if(Wt(a+t)===a&&(o=20),this.single)return[e];for(s=a;s<=n&&(l.push(s),(s=Wt(s+t,o))!==r);)r=s;return l}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return t===!0?V(e,"auto"):t!==!1?e:void 0}getMinorTickPositions(){var c;let t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=this.pointRangePadding||0,r=(this.min||0)-s,o=(this.max||0)+s,a=(c=this.brokenAxis)!=null&&c.hasBreaks?this.brokenAxis.unitLength:o-r,n=[],l;if(a&&a/i<this.len/3){let d=this.logarithmic;if(d)this.paddedTicks.forEach(function(p,u,g){u&&n.push.apply(n,d.getLogTickPositions(i,g[u-1],g[u],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),r,o,t.startOfWeek));else for(l=r+(e[0]-r)%i;l<=o&&l!==n[0];l+=i)n.push(l)}return n.length!==0&&this.trimTicks(n),n}adjustForMinRange(){let t=this.options,e=this.logarithmic,i=this.chart.time,{max:s,min:r,minRange:o}=this,a,n,l,c;this.isXAxis&&o===void 0&&!e&&(o=ot(t.min)||ot(t.max)||ot(t.floor)||ot(t.ceiling)?null:Math.min(5*(Vo(this.series.map(d=>{let p=d.getColumn("x");return d.xIncrement?p.slice(0,2):p}))||0),this.dataMax-this.dataMin)),X(s)&&X(r)&&X(o)&&s-r<o&&(n=this.dataMax-this.dataMin>=o,a=(o-s+r)/2,l=[r-a,i.parse(t.min)??r-a],n&&(l[2]=e?e.log2lin(this.dataMin):this.dataMin),c=[(r=Yo(l))+o,i.parse(t.max)??r+o],n&&(c[2]=e?e.log2lin(this.dataMax):this.dataMax),(s=Sh(c))-r<o&&(l[0]=s-o,l[1]=i.parse(t.min)??s-o,r=Yo(l))),this.minRange=o,this.min=r,this.max=s}getClosest(){let t,e;if(this.categories)e=1;else{let i=[];this.series.forEach(function(s){let r=s.closestPointRange,o=s.getColumn("x");o.length===1?i.push(o[0]):s.sorted&&ot(r)&&s.reserveSpace()&&(e=ot(e)?Math.min(e,r):r)}),i.length&&(i.sort((s,r)=>s-r),t=Vo([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e=Uo(this.options.categories),i=e?this.categories:this.names,s=t.options.x,r;return t.series.requireSorting=!1,ot(s)||(s=this.uniqueNames&&i?e?i.indexOf(t.name):V(i.keys[t.name],-1):t.series.autoIncrement()),s===-1?!e&&i&&(r=i.length):X(s)&&(r=s),r!==void 0?(this.names[r]=t.name,this.names.keys[t.name]=r):t.x&&(r=t.x),r}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach(function(i){delete e.keys[i]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(i=>{i.xIncrement=null,(!i.points||i.isDirtyData)&&(t.max=Math.max(t.max||0,i.dataTable.rowCount-1),i.processData(),i.generatePoints());let s=i.getColumn("x").slice();i.data.forEach((r,o)=>{let a=s[o];r!=null&&r.options&&r.name!==void 0&&(a=t.nameToX(r))!==void 0&&a!==r.x&&(s[o]=r.x=a)}),i.dataTable.setColumn("x",s)}))}setAxisTranslation(){var p;let t=this,e=t.max-t.min,i=t.linkedParent,s=!!t.categories,r=t.isXAxis,o=t.axisPointRange||0,a,n=0,l=0,c,d=t.transA;(r||s||o)&&(a=t.getClosest(),i?(n=i.minPointOffset,l=i.pointRangePadding):t.series.forEach(function(u){let g=s?1:r?V(u.options.pointRange,a,0):t.axisPointRange||0,x=u.options.pointPlacement;if(o=Math.max(o,g),!t.single||s){let m=u.is("xrange")?!r:r;n=Math.max(n,m&&qo(x)?0:g/2),l=Math.max(l,m&&x==="on"?0:g)}}),c=(p=t.ordinal)!=null&&p.slope&&a?t.ordinal.slope/a:1,t.minPointOffset=n*=c,t.pointRangePadding=l*=c,t.pointRange=Math.min(o,t.single&&s?1:e),r&&(t.closestPointRange=a)),t.translationSlope=t.transA=d=t.staticScale||t.len/(e+l||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=d*n,dt(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return X(t)&&X(e)&&t-e||void 0}setTickInterval(t){var B,G,R,j;let{categories:e,chart:i,dataMax:s,dataMin:r,dateTime:o,isXAxis:a,logarithmic:n,options:l,softThreshold:c}=this,d=i.time,p=X(this.threshold)?this.threshold:void 0,u=this.minRange||0,{ceiling:g,floor:x,linkedTo:m,softMax:f,softMin:y}=l,b=X(m)&&((B=i[this.coll])==null?void 0:B[m]),w=l.tickPixelInterval,v=l.maxPadding,k=l.minPadding,S=0,M,T=X(l.tickInterval)&&l.tickInterval>=0?l.tickInterval:void 0,A,L,I,E;if(o||e||b||this.getTickAmount(),I=V(this.userMin,d.parse(l.min)),E=V(this.userMax,d.parse(l.max)),b?(this.linkedParent=b,M=b.getExtremes(),this.min=V(M.min,M.dataMin),this.max=V(M.max,M.dataMax),this.type!==b.type&&ir(11,!0,i)):(c&&ot(p)&&X(s)&&X(r)&&(r>=p?(A=p,k=0):s<=p&&(L=p,v=0)),this.min=V(I,A,r),this.max=V(E,L,s)),X(this.max)&&X(this.min)&&(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,V(r,this.min))&&ir(10,!0,i),this.min=Wt(n.log2lin(this.min),16),this.max=Wt(n.log2lin(this.max),16)),this.range&&X(r)&&(this.userMin=this.min=I=Math.max(r,this.minFromRange()||0),this.userMax=E=this.max,this.range=void 0)),dt(this,"foundExtremes"),this.adjustForMinRange(),X(this.min)&&X(this.max)){if(!X(this.userMin)&&X(y)&&y<this.min&&(this.min=I=y),!X(this.userMax)&&X(f)&&f>this.max&&(this.max=E=f),e||this.axisPointRange||(G=this.stacking)!=null&&G.usePercentage||b||!(S=this.max-this.min)||(!ot(I)&&k&&(this.min-=S*k),ot(E)||!v||(this.max+=S*v)),!X(this.userMin)&&X(x)&&(this.min=Math.max(this.min,x)),!X(this.userMax)&&X(g)&&(this.max=Math.min(this.max,g)),c&&X(r)&&X(s)){let K=p||0;!ot(I)&&this.min<K&&r>=K?this.min=l.minRange?Math.min(K,this.max-u):K:!ot(E)&&this.max>K&&s<=K&&(this.max=l.minRange?Math.max(K,this.min+u):K)}!i.polar&&this.min>this.max&&(ot(l.min)?this.max=this.min:ot(l.max)&&(this.min=this.max)),S=this.max-this.min}if(this.min!==this.max&&X(this.min)&&X(this.max)?b&&!T&&w===b.options.tickPixelInterval?this.tickInterval=T=b.tickInterval:this.tickInterval=V(T,this.tickAmount?S/Math.max(this.tickAmount-1,1):void 0,e?1:S*w/Math.max(this.len,w)):this.tickInterval=1,a&&!t){let K=this.min!==((R=this.old)==null?void 0:R.min)||this.max!==((j=this.old)==null?void 0:j.max);this.series.forEach(function(q){var J;q.forceCrop=(J=q.forceCropping)==null?void 0:J.call(q),q.processData(K)}),dt(this,"postProcessData",{hasExtremesChanged:K})}this.setAxisTranslation(),dt(this,"initialAxisTranslation"),this.pointRange&&!T&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let z=V(l.minTickInterval,o&&!this.series.some(K=>!K.sorted)?this.closestPointRange:0);!T&&z&&this.tickInterval<z&&(this.tickInterval=z),o||n||T||(this.tickInterval=Zo(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var c,d;let t=this.options,e=t.tickPositions,i=t.tickPositioner,s=this.getMinorTickInterval(),r=!this.isPanning,o=r&&t.startOnTick,a=r&&t.endOnTick,n=[],l;if(this.tickmarkOffset=this.categories&&t.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&ot(this.min)&&!this.tickAmount&&(this.min%1==0||t.allowDecimals!==!1),e)n=e.slice();else if(X(this.min)&&X(this.max)){if(!((c=this.ordinal)!=null&&c.positions)&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))n=[this.min,this.max],ir(19,!1,this.chart);else if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,(d=this.ordinal)==null?void 0:d.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let p=this.tickInterval,u=p;for(;u<=2*p&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=Zo(this,u*=1.1)}n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),i&&(this.tickPositions=n,(l=i.apply(this,[this.min,this.max]))&&(n=l))}this.tickPositions=n,this.minorTickInterval=s==="auto"&&this.tickInterval?this.tickInterval/t.minorTicksPerMajor:s,this.paddedTicks=n.slice(0),this.trimTicks(n,o,a),!this.isLinked&&X(this.min)&&X(this.max)&&(this.single&&n.length<2&&!this.categories&&!this.series.some(p=>p.is("heatmap")&&p.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),e||l||this.adjustTickAmount()),dt(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],r=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(dt(this,"trimTicks"),!this.isLinked||!this.grid){if(e&&s!==-1/0)this.min=s;else for(;this.min-o>t[0];)t.shift();if(i)this.max=r;else for(;this.max+o<t[t.length-1];)t.pop();t.length===0&&ot(s)&&!this.options.tickPositions&&t.push((r+s)/2)}}alignToOthers(){let t,e=this,i=e.chart,s=[this],r=e.options,o=i.options.chart,a=this.coll==="yAxis"&&o.alignThresholds,n=[];if(e.thresholdAlignment=void 0,(o.alignTicks!==!1&&r.alignTicks||a)&&r.startOnTick!==!1&&r.endOnTick!==!1&&!e.logarithmic){let l=d=>{let{horiz:p,options:u}=d;return[p?u.left:u.top,u.width,u.height,u.pane].join(",")},c=l(this);i[this.coll].forEach(function(d){let{series:p}=d;p.length&&p.some(u=>u.visible)&&d!==e&&l(d)===c&&(t=!0,s.push(d))})}if(t&&a){s.forEach(c=>{let d=c.getThresholdAlignment(e);X(d)&&n.push(d)});let l=n.length>1?n.reduce((c,d)=>c+=d,0)/n.length:void 0;s.forEach(c=>{c.thresholdAlignment=l})}return t}getThresholdAlignment(t){if((!X(this.dataMin)||this!==t&&this.series.some(e=>e.isDirty||e.isDirtyData))&&this.getSeriesExtremes(),X(this.threshold)){let e=er((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(e=1-e),e}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,i=t.tickAmount;ot(t.tickInterval)||i||!(this.len<e)||this.isRadial||this.logarithmic||!t.startOnTick||!t.endOnTick||(i=2),!i&&this.alignToOthers()&&(i=Math.ceil(this.len/e)+1),i<4&&(this.finalTickAmt=i,i=5),this.tickAmount=i}adjustTickAmount(){let t=this,{finalTickAmt:e,max:i,min:s,options:r,tickPositions:o,tickAmount:a,thresholdAlignment:n}=t,l=o==null?void 0:o.length,c=V(t.threshold,t.softThreshold?0:null),d,p,u=t.tickInterval,g,x=()=>o.push(Wt(o[o.length-1]+u)),m=()=>o.unshift(Wt(o[0]-u));if(X(n)&&(g=n<.5?Math.ceil(n*(a-1)):Math.floor(n*(a-1)),r.reversed&&(g=a-1-g)),t.hasData()&&X(s)&&X(i)){let f=()=>{t.transA*=(l-1)/(a-1),t.min=r.startOnTick?o[0]:Math.min(s,o[0]),t.max=r.endOnTick?o[o.length-1]:Math.max(i,o[o.length-1])};if(X(g)&&X(t.threshold)){for(;o[g]!==c||o.length!==a||o[0]>s||o[o.length-1]<i;){for(o.length=0,o.push(t.threshold);o.length<a;)o[g]===void 0||o[g]>t.threshold?m():x();if(u>8*t.tickInterval)break;u*=2}f()}else if(l<a){for(;o.length<a;)o.length%2||s===c?x():m();f()}if(ot(e)){for(p=d=o.length;p--;)(e===3&&p%2==1||e<=2&&p>0&&p<d-1)&&o.splice(p,1);t.finalTickAmt=void 0}}}setScale(){var o,a,n,l,c;let{coll:t,stacking:e}=this,i=!1,s=!1;this.series.forEach(d=>{var p;i=i||d.isDirtyData||d.isDirty,s=s||((p=d.xAxis)==null?void 0:p.isDirty)||!1}),this.setAxisSize();let r=this.len!==((o=this.old)==null?void 0:o.len);r||i||s||this.isLinked||this.forceRedraw||this.userMin!==((a=this.old)==null?void 0:a.userMin)||this.userMax!==((n=this.old)==null?void 0:n.userMax)||this.alignToOthers()?(e&&t==="yAxis"&&e.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),e&&t==="xAxis"&&e.buildStacks(),this.isDirty||(this.isDirty=r||this.min!==((l=this.old)==null?void 0:l.min)||this.max!==((c=this.old)==null?void 0:c.max))):e&&e.cleanStacks(),i&&delete this.allExtremes,dt(this,"afterSetScale")}setExtremes(t,e,i=!0,s,r){let o=this.chart;this.series.forEach(a=>{delete a.kdTree}),t=o.time.parse(t),e=o.time.parse(e),dt(this,"setExtremes",r=Zi(r,{min:t,max:e}),a=>{this.userMin=a.min,this.userMax=a.max,this.eventArgs=a,i&&o.redraw(s)})}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,r=this.width=Math.round(Ji(V(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(Ji(V(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),a=this.top=Math.round(Ji(V(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),n=this.left=Math.round(Ji(V(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-o-a,this.right=t.chartWidth-r-n,this.len=Math.max(s?r:o,0),this.pos=s?n:a}getExtremes(){let t=this.logarithmic;return{min:t?Wt(t.lin2log(this.min)):this.min,max:t?Wt(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,s=e?e.lin2log(this.max):this.max;return t===null||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s<t&&(t=s),this.translate(t,0,1,0,1)}autoLabelAlign(t){let e=(V(t,0)-90*this.side+720)%360,i={align:"center"};return dt(this,"autoLabelAlign",i,function(s){e>15&&e<165?s.align="right":e>195&&e<345&&(s.align="left")}),i.align}tickSize(t){let e=this.options,i=V(e[t==="tick"?"tickWidth":"minorTickWidth"],t==="tick"&&this.isXAxis&&!this.categories?1:0),s=e[t==="tick"?"tickLength":"minorTickLength"],r;i&&s&&(e[t+"Position"]==="inside"&&(s=-s),r=[s,i]);let o={tickSize:r};return dt(this,"afterTickSize",o),o.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)}unsquish(){let t=this.options.labels,e=t.padding||0,i=this.horiz,s=this.tickInterval,r=this.len/((+!!this.categories+this.max-this.min)/s),o=t.rotation,a=Wt(.8*this.labelMetrics().h),n=Math.max(this.max-this.min,0),l=function(g){let x=(g+2*e)/(r||1);return(x=x>1?Math.ceil(x):1)*s>n&&g!==1/0&&r!==1/0&&n&&(x=Math.ceil(n/s)),Wt(x*s)},c=s,d,p=Number.MAX_VALUE,u;if(i){if(!t.staggerLines&&(X(o)?u=[o]:r<t.autoRotationLimit&&(u=t.autoRotation)),u){let g,x;for(let m of u)(m===o||m&&m>=-90&&m<=90)&&(x=(g=l(Math.abs(a/Math.sin(Mh*m))))+Math.abs(m/360))<p&&(p=x,d=m,c=g)}}else c=l(.75*a);return this.autoRotation=u,this.labelRotation=V(d,X(o)?o:0),t.step?s:c}getSlotWidth(t){let e=this.chart,i=this.horiz,s=this.options.labels,r=Math.max(this.tickPositions.length-+!this.categories,1),o=e.margin[3];if(t&&X(t.slotWidth))return t.slotWidth;if(i&&s.step<2&&!this.isRadial)return s.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){let a=s.style.width;if(a!==void 0)return parseInt(String(a),10);if(o)return o-e.spacing[3]}return .33*e.chartWidth}renderUnsquish(){let t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,r=this.options.labels,o=r.style,a=this.horiz,n=this.getSlotWidth(),l=Math.max(1,Math.round(n-(a?2*(r.padding||0):r.distance||0))),c={},d=this.labelMetrics(),p=o.lineClamp,u,g=p??(Math.floor(this.len/(i.length*d.h))||1),x=0;qo(r.rotation)||(c.rotation=r.rotation||0),i.forEach(function(m){var b;let f=s[m];f.movedLabel&&f.replaceMovedLabel();let y=((b=f.label)==null?void 0:b.textPxLength)||0;y>x&&(x=y)}),this.maxLabelLength=x,this.autoRotation?x>l&&x>d.h?c.rotation=this.labelRotation:this.labelRotation=0:n&&(u=l),c.rotation&&(u=x>.5*t.chartHeight?.33*t.chartHeight:x,p||(g=1)),this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(c.align=this.labelAlign),i.forEach(function(m){let f=s[m],y=f==null?void 0:f.label,b=o.width,w={};y&&(y.attr(c),f.shortenLabel?f.shortenLabel():u&&!b&&o.whiteSpace!=="nowrap"&&(u<(y.textPxLength||0)||y.element.tagName==="SPAN")?y.css(Zi(w,{width:`${u}px`,lineClamp:g})):!y.styles.width||w.width||b||y.css({width:"auto"}),f.rotation=c.rotation)},this),this.tickRotCorr=e.rotCorr(d.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&ot(this.min)&&ot(this.max)}addTitle(t){let e,i=this.chart.renderer,s=this.horiz,r=this.opposite,o=this.options.title,a=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(s?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=i.text(o.text||"",0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),a||this.axisTitle.css(Ki(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),a||o.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[t?"show":"hide"](t)}generateTick(t){let e=this.ticks;e[t]?e[t].addLabel():e[t]=new Ye(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:s}=this,r=e.renderer,o=(a,n,l)=>r.g(a).attr({zIndex:l}).addClass(`highcharts-${i.toLowerCase()}${n} `+(this.isRadial?`highcharts-radial-axis${n} `:"")+(s.className||"")).add(t);this.axisGroup||(this.gridGroup=o("grid","-grid",s.gridZIndex),this.axisGroup=o("axis","",s.zIndex),this.labelGroup=o("axis-labels","-labels",s.labels.zIndex))}getOffset(){let t=this,{chart:e,horiz:i,options:s,side:r,ticks:o,tickPositions:a,coll:n}=t,l=e.inverted&&!t.isZAxis?[1,0,3,2][r]:r,c=t.hasData(),d=s.title,p=s.labels,u=X(s.crossing),g=e.axisOffset,x=e.clipOffset,m=[-1,1,1,-1][r],f,y=0,b,w=0,v=0,k,S;if(t.showAxis=f=c||s.showEmpty,t.staggerLines=t.horiz&&p.staggerLines||void 0,t.createGroups(),c||t.isLinked?(a.forEach(function(M){t.generateTick(M)}),t.renderUnsquish(),t.reserveSpaceDefault=r===0||r===2||{1:"left",3:"right"}[r]===t.labelAlign,V(p.reserveSpace,!u&&null,t.labelAlign==="center"||null,t.reserveSpaceDefault)&&a.forEach(function(M){v=Math.max(o[M].getLabelSize(),v)}),t.staggerLines&&(v*=t.staggerLines),t.labelOffset=v*(t.opposite?-1:1)):_i(o,function(M,T){M.destroy(),delete o[T]}),d!=null&&d.text&&d.enabled!==!1&&(t.addTitle(f),f&&!u&&d.reserveSpace!==!1&&(t.titleOffset=y=t.axisTitle.getBBox()[i?"height":"width"],w=ot(b=d.offset)?0:V(d.margin,i?5:10))),t.renderLine(),t.offset=m*V(s.offset,g[r]?g[r]+(s.margin||0):0),t.tickRotCorr=t.tickRotCorr||{x:0,y:0},S=r===0?-t.labelMetrics().h:r===2?t.tickRotCorr.y:0,k=Math.abs(v)+w,v&&(k-=S,k+=m*(i?V(p.y,t.tickRotCorr.y+m*p.distance):V(p.x,m*p.distance))),t.axisTitleMargin=V(b,k),t.getMaxLabelDimensions&&(t.maxLabelDimensions=t.getMaxLabelDimensions(o,a)),n!=="colorAxis"&&x){let M=this.tickSize("tick");g[r]=Math.max(g[r],(t.axisTitleMargin||0)+y+m*t.offset,k,a!=null&&a.length&&M?M[0]+m*t.offset:0);let T=!t.axisLine||s.offset?0:t.axisLine.strokeWidth()/2;x[l]=Math.max(x[l],T)}dt(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+s,a=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",r?this.left:o,r?a:this.top],["L",r?e.chartWidth-this.right:o,r?a:e.chartHeight-this.bottom]],t)}renderLine(){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}))}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,r=this.len,o=this.options.title,a=e?i:s,n=this.opposite,l=this.offset,c=o.x,d=o.y,p=this.chart.renderer.fontMetrics(t),u=t?Math.max(t.getBBox(!1,0).height-p.h-1,0):0,g={low:a+(e?0:r),middle:a+r/2,high:a+(e?r:0)}[o.align],x=(e?s+this.height:i)+(e?1:-1)*(n?-1:1)*(this.axisTitleMargin||0)+[-u,u,p.f,-u][this.side],m={x:e?g+c:x+(n?this.width:0)+l+c,y:e?x+d-(n?this.height:0)+l:g+d};return dt(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new Ye(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){var o;let s=this.isLinked,r=this.ticks;(!s||t>=this.min&&t<=this.max||(o=this.grid)!=null&&o.isColumn)&&(r[t]||(r[t]=new Ye(this,t)),i&&r[t].isNew&&r[t].render(e,!0,-1),r[t].render(e))}render(){let t,e,i=this,s=i.chart,r=i.logarithmic,o=s.renderer,a=i.options,n=i.isLinked,l=i.tickPositions,c=i.axisTitle,d=i.ticks,p=i.minorTicks,u=i.alternateBands,g=a.stackLabels,x=a.alternateGridColor,m=a.crossing,f=i.tickmarkOffset,y=i.axisLine,b=i.showAxis,w=vh(o.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,p,u].forEach(function(v){_i(v,function(k){k.isActive=!1})}),X(m)){let v=this.isXAxis?s.yAxis[0]:s.xAxis[0],k=[1,-1,-1,1][this.side];if(v){let S=v.toPixels(m,!0);i.horiz&&(S=v.len-S),i.offset=k*S}}if(i.hasData()||n){let v=i.chart.hasRendered&&i.old&&X(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(k){i.renderMinorTick(k,v)}),l.length&&(l.forEach(function(k,S){i.renderTick(k,S,v)}),f&&(i.min===0||i.single)&&(d[-1]||(d[-1]=new Ye(i,-1,null,!0)),d[-1].render(-1))),x&&l.forEach(function(k,S){e=l[S+1]!==void 0?l[S+1]+f:i.max-f,S%2==0&&k<i.max&&e<=i.max+(s.polar?-f:f)&&(u[k]||(u[k]=new O.PlotLineOrBand(i,{})),t=k+f,u[k].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:x,className:"highcharts-alternate-grid"},u[k].render(),u[k].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(k){i.addPlotBandOrLine(k)}))}[d,p,u].forEach(function(v){let k=[],S=w.duration;_i(v,function(M,T){M.isActive||(M.render(T,!1,0),M.isActive=!1,k.push(T))}),Lh(function(){let M=k.length;for(;M--;)v[k[M]]&&!v[k[M]].isActive&&(v[k[M]].destroy(),delete v[k[M]])},v!==u&&s.hasRendered&&S?S:0)}),y&&(y[y.isPlaced?"animate":"attr"]({d:this.getLinePath(y.strokeWidth())}),y.isPlaced=!0,y[b?"show":"hide"](b)),c&&b&&(c[c.isNew?"attr":"animate"](i.getTitlePosition(c)),c.isNew=!1),g!=null&&g.enabled&&i.stacking&&i.stacking.renderStackTotals(),i.old={len:i.len,max:i.max,min:i.min,transA:i.transA,userMax:i.userMax,userMin:i.userMin},i.isDirty=!1,dt(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})}getKeepProps(){return this.keepProps||$e.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,s=this.eventOptions;if(dt(this,"destroy",{keepEvents:t}),t||Ph(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(r){Th(r)}),i){let r=i.length;for(;r--;)i[r].destroy()}for(let r in["axisLine","axisTitle","axisGroup","gridGroup","labelGroup","cross","scrollbar"].forEach(function(o){e[o]&&(e[o]=e[o].destroy())}),e.plotLinesAndBandsGroups)e.plotLinesAndBandsGroups[r]=e.plotLinesAndBandsGroups[r].destroy();_i(e,function(r,o){e.getKeepProps().indexOf(o)===-1&&delete e[o]}),this.eventOptions=s}drawCrosshair(t,e){var d;let i=this.crosshair,s=(i==null?void 0:i.snap)??!0,r=this.chart,o,a,n,l=this.cross,c;if(dt(this,"drawCrosshair",{e:t,point:e}),t||(t=(d=this.cross)==null?void 0:d.e),i&&(ot(e)||!s)!==!1){if(s?ot(e)&&(a=V(this.coll!=="colorAxis"?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):a=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),ot(a)&&(c={value:e&&(this.isXAxis?e.x:V(e.stackY,e.y)),translatedValue:a},r.polar&&Zi(c,{isCrosshair:!0,chartX:t==null?void 0:t.chartX,chartY:t==null?void 0:t.chartY,point:e}),o=this.getPlotLinePath(c)||null),!ot(o)){this.hideCrosshair();return}n=this.categories&&!this.isRadial,l||(this.cross=l=r.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(n?"category ":"thin ")+(i.className||"")).attr({zIndex:V(i.zIndex,2)}).add(),!r.styledMode&&(l.attr({stroke:i.color||(n?ht.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":V(i.width,1)}).css({"pointer-events":"none"}),i.dashStyle&&l.attr({dashstyle:i.dashStyle}))),l.show().attr({d:o}),n&&!i.width&&l.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();dt(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){this.cross&&this.cross.hide(),dt(this,"afterHideCrosshair")}update(t,e){let i=this.chart;t=Ki(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,V(e,!0)&&i.redraw()}remove(t){let e=this.chart,i=this.coll,s=this.series,r=s.length;for(;r--;)s[r]&&s[r].remove(!1);$o(e.axes,this),$o(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,V(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}$e.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];let{addEvent:Eh,getMagnitude:Ih,normalizeTickInterval:Dh,timeUnits:Qi}=W;(function(h){function t(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function e(){if(this.type!=="datetime"){this.dateTime=void 0;return}this.dateTime||(this.dateTime=new i(this))}h.compose=function(s){return s.keepProps.includes("dateTime")||(s.keepProps.push("dateTime"),s.prototype.getTimeTicks=t,Eh(s,"afterSetType",e)),s};class i{constructor(r){this.axis=r}normalizeTimeTickInterval(r,o){let a=o||[["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]],n=a[a.length-1],l=Qi[n[0]],c=n[1],d;for(d=0;d<a.length&&(l=Qi[(n=a[d])[0]],c=n[1],!a[d+1]||!(r<=(l*c[c.length-1]+Qi[a[d+1][0]])/2));d++);l===Qi.year&&r<5*l&&(c=[1,2,5]);let p=Dh(r/l,c,n[0]==="year"?Math.max(Ih(r/l),1):1);return{unitRange:l,count:p,unitName:n[0]}}getXDateFormat(r,o){let{axis:a}=this,n=a.chart.time;return a.closestPointRange?n.getDateFormat(a.closestPointRange,r,a.options.startOfWeek,o)||n.resolveDTLFormat(o.year).main:n.resolveDTLFormat(o.day).main}}h.Additions=i})(nt||(nt={}));let Bh=nt,{addEvent:Ko,normalizeTickInterval:zh,pick:Nh}=W;(function(h){function t(){this.type!=="logarithmic"?this.logarithmic=void 0:this.logarithmic??(this.logarithmic=new i(this))}function e(){let s=this.logarithmic;s&&(this.lin2val=function(r){return s.lin2log(r)},this.val2lin=function(r){return s.log2lin(r)})}h.compose=function(s){return s.keepProps.includes("logarithmic")||(s.keepProps.push("logarithmic"),Ko(s,"afterSetType",t),Ko(s,"afterInit",e)),s};class i{constructor(r){this.axis=r}getLogTickPositions(r,o,a,n){let l=this.axis,c=l.len,d=l.options,p=[];if(n||(this.minorAutoInterval=void 0),r>=.5)r=Math.round(r),p=l.getLinearTickPositions(r,o,a);else if(r>=.08){let u,g,x,m,f,y,b,w=Math.floor(o);for(u=r>.3?[1,2,4]:r>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],g=w;g<a+1&&!b;g++)for(x=0,m=u.length;x<m&&!b;x++)(f=this.log2lin(this.lin2log(g)*u[x]))>o&&(!n||y<=a)&&y!==void 0&&p.push(y),y>a&&(b=!0),y=f}else{let u=this.lin2log(o),g=this.lin2log(a),x=n?l.getMinorTickInterval():d.tickInterval,m=d.tickPixelInterval/(n?5:1),f=n?c/l.tickPositions.length:c;r=zh(r=Nh(x==="auto"?null:x,this.minorAutoInterval,(g-u)*m/(f||1))),p=l.getLinearTickPositions(r,u,g).map(this.log2lin),n||(this.minorAutoInterval=r/5)}return n||(l.tickInterval=r),p}lin2log(r){return Math.pow(10,r)}log2lin(r){return Math.log(r)/Math.LN10}}h.Additions=i})(It||(It={}));let Rh=It,{erase:Wh,extend:Hh,isNumber:_o}=W;(function(h){let t;function e(l){return this.addPlotBandOrLine(l,"plotBands")}function i(l,c){let d=this.userOptions,p=new t(this,l);if(this.visible&&(p=p.render()),p){if(this._addedPlotLB||(this._addedPlotLB=!0,(d.plotLines||[]).concat(d.plotBands||[]).forEach(u=>{this.addPlotBandOrLine(u)})),c){let u=d[c]||[];u.push(l),d[c]=u}this.plotLinesAndBands.push(p)}return p}function s(l){return this.addPlotBandOrLine(l,"plotLines")}function r(l,c,d){d=d||this.options;let p=this.getPlotLinePath({value:c,force:!0,acrossPanes:d.acrossPanes}),u=[],g=this.horiz,x=!_o(this.min)||!_o(this.max)||l<this.min&&c<this.min||l>this.max&&c>this.max,m=this.getPlotLinePath({value:l,force:!0,acrossPanes:d.acrossPanes}),f,y=1,b;if(m&&p)for(x&&(b=m.toString()===p.toString(),y=0),f=0;f<m.length;f+=2){let w=m[f],v=m[f+1],k=p[f],S=p[f+1];(w[0]==="M"||w[0]==="L")&&(v[0]==="M"||v[0]==="L")&&(k[0]==="M"||k[0]==="L")&&(S[0]==="M"||S[0]==="L")&&(g&&k[1]===w[1]?(k[1]+=y,S[1]+=y):g||k[2]!==w[2]||(k[2]+=y,S[2]+=y),u.push(["M",w[1],w[2]],["L",v[1],v[2]],["L",S[1],S[2]],["L",k[1],k[2]],["Z"])),u.isFlat=b}return u}function o(l){this.removePlotBandOrLine(l)}function a(l){let c=this.plotLinesAndBands,d=this.options,p=this.userOptions;if(c){let u=c.length;for(;u--;)c[u].id===l&&c[u].destroy();[d.plotLines||[],p.plotLines||[],d.plotBands||[],p.plotBands||[]].forEach(function(g){var x;for(u=g.length;u--;)((x=g[u])==null?void 0:x.id)===l&&Wh(g,g[u])})}}function n(l){this.removePlotBandOrLine(l)}h.compose=function(l,c){let d=c.prototype;return d.addPlotBand||(t=l,Hh(d,{addPlotBand:e,addPlotLine:s,addPlotBandOrLine:i,getPlotBandPath:r,removePlotBand:o,removePlotLine:n,removePlotBandOrLine:a})),c}})(Je||(Je={}));let Xh=Je,{addEvent:Fh,arrayMax:Jo,arrayMin:Qo,defined:te,destroyObjectProperties:jh,erase:Gh,fireEvent:Yh,merge:ta,objectEach:$h,pick:Vh}=W;class ts{static compose(t,e){return Fh(t,"afterInit",function(){this.labelCollectors.push(()=>{var s;let i=[];for(let r of this.axes)for(let{label:o,options:a}of r.plotLinesAndBands)o&&!((s=a==null?void 0:a.label)!=null&&s.allowOverlap)&&i.push(o);return i})}),Xh.compose(ts,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){Yh(this,"render");let{axis:t,options:e}=this,{horiz:i,logarithmic:s}=t,{color:r,events:o,zIndex:a=0}=e,{renderer:n,time:l}=t.chart,c={},d=l.parse(e.to),p=l.parse(e.from),u=l.parse(e.value),g=e.borderWidth,x=e.label,{label:m,svgElem:f}=this,y=[],b,w=te(p)&&te(d),v=te(u),k=!f,S={class:"highcharts-plot-"+(w?"band ":"line ")+(e.className||"")},M=w?"bands":"lines";if(!t.chart.styledMode&&(v?(S.stroke=r||"#999999",S["stroke-width"]=Vh(e.width,1),e.dashStyle&&(S.dashstyle=e.dashStyle)):w&&(S.fill=r||"#e6e9ff",g&&(S.stroke=e.borderColor,S["stroke-width"]=g))),c.zIndex=a,M+="-"+a,(b=t.plotLinesAndBandsGroups[M])||(t.plotLinesAndBandsGroups[M]=b=n.g("plot-"+M).attr(c).add()),f||(this.svgElem=f=n.path().attr(S).add(b)),te(u))y=t.getPlotLinePath({value:(s==null?void 0:s.log2lin(u))??u,lineWidth:f.strokeWidth(),acrossPanes:e.acrossPanes});else{if(!(te(p)&&te(d)))return;y=t.getPlotBandPath((s==null?void 0:s.log2lin(p))??p,(s==null?void 0:s.log2lin(d))??d,e)}return!this.eventsAdded&&o&&($h(o,(T,A)=>{f==null||f.on(A,L=>{o[A].apply(this,[L])})}),this.eventsAdded=!0),(k||!f.d)&&(y!=null&&y.length)?f.attr({d:y}):f&&(y?(f.show(),f.animate({d:y})):f.d&&(f.hide(),m&&(this.label=m=m.destroy()))),x&&(te(x.text)||te(x.formatter))&&(y!=null&&y.length)&&t.width>0&&t.height>0&&!y.isFlat?(x=ta({align:i&&w?"center":void 0,x:i?!w&&4:10,verticalAlign:!i&&w?"middle":void 0,y:i?w?16:10:w?6:-4,rotation:i&&!w?90:0,...w?{inside:!0}:{}},x),this.renderLabel(x,y,w,a)):m&&m.hide(),this}renderLabel(t,e,i,s){var g;let r=this.axis,o=r.chart.renderer,a=t.inside,n=this.label;n||(this.label=n=o.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||""),zIndex:s}),r.chart.styledMode||n.css(ta({fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},t.style)),n.add());let l=e.xBounds||[e[0][1],e[1][1],i?e[2][1]:e[0][1]],c=e.yBounds||[e[0][2],e[1][2],i?e[2][2]:e[0][2]],d=Qo(l),p=Qo(c),u=Jo(l)-d;n.align(t,!1,{x:d,y:p,width:u,height:Jo(c)-p}),n.alignAttr.y-=o.fontMetrics(n).b,(!n.alignValue||n.alignValue==="left"||te(a))&&n.css({width:(((g=t.style)==null?void 0:g.width)||(i&&a?u:n.rotation===90?r.height-(n.alignAttr.y-r.top):(t.clip?r.width:r.chart.chartWidth)-(n.alignAttr.x-r.left)))+"px"}),n.show(!0)}getLabelText(t){return te(t.formatter)?t.formatter.call(this):t.text}destroy(){Gh(this.axis.plotLinesAndBands,this),delete this.axis,jh(this)}}let{animObject:Uh}=At,{format:ea}=jt,{composed:qh,dateFormats:Zh,doc:ia,isSafari:Kh}=O,{distribute:_h}=Ni,{addEvent:Jh,clamp:Ve,css:sa,discardElement:Qh,extend:td,fireEvent:ra,getAlignFactor:oa,isArray:ed,isNumber:id,isObject:sd,isString:sr,merge:rd,pick:Ue,pushUnique:od,splat:rr,syncTimeout:ad}=W;class or{constructor(t,e,i){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.options={},this.outside=!1,this.chart=t,this.init(t,e),this.pointer=i}bodyFormatter(t){return t.map(e=>{let i=e.series.tooltipOptions,s=e.formatPrefix||"point";return(i[s+"Formatter"]||e.tooltipFormatter).call(e,i[s+"Format"]||"")})}cleanSplit(t){this.chart.series.forEach(function(e){let i=e==null?void 0:e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||rr(this);return(e=(e=[t.headerFooterFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.headerFooterFormatter(i[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),Qh(this.container)),W.clearTimeout(this.hideTimer)}getAnchor(t,e){var l;let i,{chart:s,pointer:r}=this,o=s.inverted,a=s.plotTop,n=s.plotLeft;if(t=rr(t),(l=t[0].series)!=null&&l.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)e.chartX===void 0&&(e=r.normalize(e)),i=[e.chartX-n,e.chartY-a];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let c=0,d=0;t.forEach(function(p){let u=p.pos(!0);u&&(c+=u[0],d+=u[1])}),c/=t.length,d/=t.length,this.shared&&t.length>1&&e&&(o?c=e.chartX:d=e.chartY),i=[c-n,d-a]}return i.map(Math.round)}getClassName(t,e,i){let s=this.options,r=t.series,o=r.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+Ue(t.colorIndex,r.colorIndex),o==null?void 0:o.className].filter(sr).join(" ")}getLabel({anchorX:t,anchorY:e}={anchorX:0,anchorY:0}){let i=this,s=this.chart.styledMode,r=this.options,o=this.split&&this.allowShared,a=this.container,n=this.chart.renderer;if(this.label){let l=!this.label.hasClass("highcharts-label");(!o&&l||o&&!l)&&this.destroy()}if(!this.label){if(this.outside){let l=this.chart,c=l.options.chart.style,d=ni.getRendererType();this.container=a=O.doc.createElement("div"),a.className="highcharts-tooltip-container "+(l.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),sa(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,((c==null?void 0:c.zIndex)||0)+3)}),this.renderer=n=new d(a,0,0,c,void 0,void 0,n.styledMode)}if(o?this.label=n.g("tooltip"):(this.label=n.label("",t,e,r.shape||"callout",void 0,void 0,r.useHTML,void 0,"tooltip").attr({padding:r.padding,r:r.borderRadius}),s||this.label.attr({fill:r.backgroundColor,"stroke-width":r.borderWidth||0}).css(r.style).css({pointerEvents:r.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),i.outside){let l=this.label;[l.xSetter,l.ySetter].forEach((c,d)=>{l[d?"ySetter":"xSetter"]=p=>{c.call(l,i.distance),l[d?"y":"x"]=p,a&&(a.style[d?"top":"left"]=`${p}px`)}})}this.label.attr({zIndex:8}).shadow(r.shadow??!r.fixed).add()}return a&&!a.parentElement&&O.doc.body.appendChild(a),this.label}getPlayingField(){let{body:t,documentElement:e}=ia,{chart:i,distance:s,outside:r}=this;return{width:r?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s-2:i.chartWidth,height:r?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){var B,G;let{distance:s,chart:r,outside:o,pointer:a}=this,{inverted:n,plotLeft:l,plotTop:c,polar:d}=r,{plotX:p=0,plotY:u=0}=i,g={},x=n&&i.h||0,{height:m,width:f}=this.getPlayingField(),y=a.getChartPosition(),b=R=>R*y.scaleX,w=R=>R*y.scaleY,v=R=>{let j=R==="x";return[R,j?f:m,j?t:e].concat(o?[j?b(t):w(e),j?y.left-s+b(p+l):y.top-s+w(u+c),0,j?f:m]:[j?t:e,j?p+l:u+c,j?l:c,j?l+r.plotWidth:c+r.plotHeight])},k=v("y"),S=v("x"),M,T=!!i.negative;!d&&((G=(B=r.hoverSeries)==null?void 0:B.yAxis)!=null&&G.reversed)&&(T=!T);let A=!this.followPointer&&Ue(i.ttBelow,!d&&!n===T),L=function(R,j,K,q,J,Ot,_){let st=o?R==="y"?w(s):b(s):s,Y=(K-q)/2,H=q<J-s,ft=J+s+q<j,rt=J-st-K+Y,at=J+st-Y;if(A&&ft)g[R]=at;else if(!A&&H)g[R]=rt;else if(H)g[R]=Math.min(_-q,rt-x<0?rt:rt-x);else{if(!ft)return g[R]=0,!1;g[R]=Math.max(Ot,at+x+K>j?at:at+x)}},I=function(R,j,K,q,J){if(J<s||J>j-s)return!1;J<K/2?g[R]=1:J>j-q/2?g[R]=j-q-2:g[R]=J-K/2},E=function(R){[k,S]=[S,k],M=R},z=()=>{L.apply(0,k)!==!1?I.apply(0,S)!==!1||M||(E(!0),z()):M?g.x=g.y=0:(E(!0),z())};return(n&&!d||this.len>1)&&E(),z(),g}getFixedPosition(t,e,i){var p;let s=i.series,{chart:r,options:o,split:a}=this,n=o.position,l=n.relativeTo,c=o.shared||(p=s==null?void 0:s.yAxis)!=null&&p.isRadial&&(l==="pane"||!l)?"plotBox":l,d=c==="chart"?r.renderer:r[c]||r.getClipBox(s,!0);return{x:d.x+(d.width-t)*oa(n.align)+n.x,y:d.y+(d.height-e)*oa(n.verticalAlign)+(!a&&n.y||0)}}hide(t){let e=this;W.clearTimeout(this.hideTimer),t=Ue(t,this.options.hideDelay),this.isHidden||(this.hideTimer=ad(function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t&&150,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0},t))}init(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=Ue(e.outside,!!(t.scrollablePixelsX||t.scrollablePixelsY))}shouldStickOnContact(t){return!!(!this.followPointer&&this.options.stickOnContact&&(!t||this.pointer.inClass(t.target,"highcharts-tooltip")))}move(t,e,i,s){let{followPointer:r,options:o}=this,a=Uh(!r&&!this.isHidden&&!o.fixed&&o.animation),n=r||(this.len||0)>1,l={x:t,y:e};n?l.anchorX=l.anchorY=NaN:(l.anchorX=i,l.anchorY=s),a.step=()=>this.drawTracker(),this.getLabel().animate(l,a)}refresh(t,e){let{chart:i,options:s,pointer:r,shared:o}=this,a=rr(t),n=a[0],l=s.format,c=s.formatter||this.defaultFormatter,d=i.styledMode,p=this.allowShared;if(!s.enabled||!n.series)return;W.clearTimeout(this.hideTimer),this.allowShared=!(!ed(t)&&t.series&&t.series.noSharedTooltip),p=p&&!this.allowShared,this.followPointer=!this.split&&n.series.tooltipOptions.followPointer;let u=this.getAnchor(t,e),g=u[0],x=u[1];o&&this.allowShared&&(r.applyInactiveState(a),a.forEach(y=>y.setState("hover")),n.points=a),this.len=a.length;let m=sr(l)?ea(l,n,i):c.call(n,this);n.points=void 0;let f=n.series;if(this.distance=Ue(f.tooltipOptions.distance,16),m===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(m,a);else{let y=g,b=x;if(e&&r.isDirectTouch&&(y=e.chartX-i.plotLeft,b=e.chartY-i.plotTop),i.polar||f.options.clip===!1||a.some(w=>r.isDirectTouch||w.series.shouldShowTooltip(y,b))){let w=this.getLabel(p&&this.tt||{});(!s.style.width||d)&&w.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),w.attr({class:this.getClassName(n),text:m&&m.join?m.join(""):m}),this.outside&&w.attr({x:Ve(w.x||0,0,this.getPlayingField().width-(w.width||0)-1)}),d||w.attr({stroke:s.borderColor||n.color||f.color||"#666666"}),this.updatePosition({plotX:g,plotY:x,negative:n.negative,ttBelow:n.ttBelow,series:f,h:u[2]||0})}else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}ra(this,"refresh")}renderSplit(t,e){var J,Ot;let i=this,{chart:s,chart:{chartWidth:r,chartHeight:o,plotHeight:a,plotLeft:n,plotTop:l,scrollablePixelsY:c=0,scrollablePixelsX:d,styledMode:p},distance:u,options:g,options:{fixed:x,position:m,positioner:f},pointer:y}=i,{scrollLeft:b=0,scrollTop:w=0}=((J=s.scrollablePlotArea)==null?void 0:J.scrollingContainer)||{},v=i.outside&&typeof d!="number"?ia.documentElement.getBoundingClientRect():{left:b,right:b+r},k=i.getLabel(),S=this.renderer||s.renderer,M=!!((Ot=s.xAxis[0])!=null&&Ot.opposite),{left:T,top:A}=y.getChartPosition(),L=f||x,I=l+w,E=0,z=a-c,B=function(_,st,Y,H=[0,0],ft=!0){let rt,at;if(Y.isHeader)at=M?0:z,rt=Ve(H[0]-_/2,v.left,v.right-_-(i.outside?T:0));else if(x&&Y){let vt=i.getFixedPosition(_,st,Y);rt=vt.x,at=vt.y-I}else at=H[1]-I,rt=Ve(rt=ft?H[0]-_-u:H[0]+u,ft?rt:v.left,v.right);return{x:rt,y:at}};sr(t)&&(t=[!1,t]);let G=t.slice(0,e.length+1).reduce(function(_,st,Y){if(st!==!1&&st!==""){let H=e[Y-1]||{isHeader:!0,plotX:e[0].plotX,plotY:a,series:{}},ft=H.isHeader,rt=ft?i:H.series,at=rt.tt=function(zt,xt,Ti){let be=zt,{isHeader:Ie,series:Ci}=xt,Kt=Ci.tooltipOptions||g;if(!be){let _e={padding:Kt.padding,r:Kt.borderRadius};p||(_e.fill=Kt.backgroundColor,_e["stroke-width"]=Kt.borderWidth??(x&&!Ie?0:1)),be=S.label("",0,0,Kt[Ie?"headerShape":"shape"]||(x&&!Ie?"rect":"callout"),void 0,void 0,Kt.useHTML).addClass(i.getClassName(xt,!0,Ie)).attr(_e).add(k)}return be.isActive=!0,be.attr({text:Ti}),p||be.css(Kt.style).attr({stroke:Kt.borderColor||xt.color||Ci.color||"#333333"}),be}(rt.tt,H,st.toString()),vt=at.getBBox(),ne=vt.width+at.strokeWidth();ft&&(E=vt.height,z+=E,M&&(I-=E));let{anchorX:$t,anchorY:Vt}=function(zt){let xt,Ti,{isHeader:be,plotX:Ie=0,plotY:Ci=0,series:Kt}=zt;if(be)xt=Math.max(n+Ie,n),Ti=l+a/2;else{let{xAxis:_e,yAxis:Mn}=Kt;xt=_e.pos+Ve(Ie,-u,_e.len+u),Kt.shouldShowTooltip(0,Mn.pos-l+Ci,{ignoreX:!0})&&(Ti=Mn.pos+Ci)}return{anchorX:xt=Ve(xt,v.left-u,v.right+u),anchorY:Ti}}(H);if(typeof Vt=="number"){let zt=vt.height+1,xt=(f||B).call(i,ne,zt,H,[$t,Vt]);_.push({align:L?0:void 0,anchorX:$t,anchorY:Vt,boxWidth:ne,point:H,rank:Ue(xt.rank,+!!ft),size:zt,target:xt.y,tt:at,x:xt.x})}else at.isActive=!1}return _},[]);!L&&G.some(_=>{let{outside:st}=i,Y=(st?T:0)+_.anchorX;return Y<v.left&&Y+_.boxWidth<v.right||Y<T-v.left+_.boxWidth&&v.right-Y>Y})&&(G=G.map(_=>{let{x:st,y:Y}=B.call(this,_.boxWidth,_.size,_.point,[_.anchorX,_.anchorY],!1);return td(_,{target:Y,x:st})})),i.cleanSplit(),_h(G,z);let R={left:T,right:T};G.forEach(function(_){let{x:st,boxWidth:Y,isHeader:H}=_;!H&&(i.outside&&T+st<R.left&&(R.left=T+st),!H&&i.outside&&R.left+Y>R.right&&(R.right=T+st))}),G.forEach(function(_){let{x:st,anchorX:Y,anchorY:H,pos:ft,point:{isHeader:rt}}=_,at={visibility:ft===void 0?"hidden":"inherit",x:st,y:(ft||0)+I+(x&&m.y||0),anchorX:Y,anchorY:H};if(i.outside&&st<Y){let vt=T-R.left;vt>0&&(rt||(at.x=st+vt,at.anchorX=Y+vt),rt&&(at.x=(R.right-R.left)/2,at.anchorX=Y+vt))}_.tt.attr(at)});let{container:j,outside:K,renderer:q}=i;if(K&&j&&q){let{width:_,height:st,x:Y,y:H}=k.getBBox();q.setSize(_+Y,st+H,!1),j.style.left=R.left+"px",j.style.top=A+"px"}Kh&&k.attr({opacity:k.opacity===1?.999:1})}drawTracker(){if(!this.shouldStickOnContact()){this.tracker&&(this.tracker=this.tracker.destroy());return}let t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(!e||!i)return;let s={x:0,y:0,width:0,height:0},r=this.getAnchor(i),o=e.getBBox();r[0]+=t.plotLeft-(e.translateX||0),r[1]+=t.plotTop-(e.translateY||0),s.x=Math.min(0,r[0]),s.y=Math.min(0,r[1]),s.width=r[0]<0?Math.max(Math.abs(r[0]),o.width-r[0]):Math.max(Math.abs(r[0]),o.width),s.height=r[1]<0?Math.max(Math.abs(r[1]),o.height-Math.abs(r[1])):Math.max(Math.abs(r[1]),o.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}headerFooterFormatter(t,e){let i=t.series,s=i.tooltipOptions,r=i.xAxis,o=r==null?void 0:r.dateTime,a={isFooter:e,point:t},n=s.xDateFormat||"",l=s[e?"footerFormat":"headerFormat"];return ra(this,"headerFormatter",a,function(c){if(o&&!n&&id(t.key)&&(n=o.getXDateFormat(t.key,s.dateTimeLabelFormats)),o&&n){if(sd(n)){let d=n;Zh[0]=p=>i.chart.time.dateFormat(d,p),n="%0"}(t.tooltipDateKeys||["key"]).forEach(d=>{l=l.replace(RegExp("point\\."+d+"([ \\)}])"),`(point.${d}:${n})$1`)})}i.chart.styledMode&&(l=this.styledModeFormat(l)),c.text=ea(l,t,this.chart)}),a.text||""}update(t){this.destroy(),this.init(this.chart,rd(!0,this.options,t))}updatePosition(t){var v;let{chart:e,container:i,distance:s,options:r,pointer:o,renderer:a}=this,{height:n=0,width:l=0}=this.getLabel(),{fixed:c,positioner:d}=r,{left:p,top:u,scaleX:g,scaleY:x}=o.getChartPosition(),m=(d||c&&this.getFixedPosition||this.getPosition).call(this,l,n,t),f=O.doc,y=(t.plotX||0)+e.plotLeft,b=(t.plotY||0)+e.plotTop,w;if(a&&i){if(d||c){let{scrollLeft:k=0,scrollTop:S=0}=((v=e.scrollablePlotArea)==null?void 0:v.scrollingContainer)||{};m.x+=k+p-s,m.y+=S+u-s}w=(r.borderWidth||0)+2*s+2,a.setSize(Ve(l+w,0,f.documentElement.clientWidth)-1,n+w,!1),(g!==1||x!==1)&&(sa(i,{transform:`scale(${g}, ${x})`}),y*=g,b*=x),y+=p-m.x,b+=u-m.y}this.move(Math.round(m.x),Math.round(m.y||0),y,b)}}(function(h){h.compose=function(t){od(qh,"Core.Tooltip")&&Jh(t,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new h(e,e.options.tooltip,this))})}})(or||(or={}));let aa=or,{animObject:nd}=At,{defaultOptions:ld}=Ft,{format:hd}=jt,{addEvent:dd,crisp:cd,erase:pd,extend:es,fireEvent:ar,getNestedProperty:ud,isArray:gd,isFunction:fd,isNumber:de,isObject:is,merge:na,pick:ce,syncTimeout:md,removeEvent:la,uniqueKey:xd}=W;class ui{animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach(function(s){t[s]=t[s].animate(s==="dataLabel"?{x:t[s].startXPos,y:t[s].startYPos,opacity:0}:e)}),i.plural.forEach(function(s){t[s].forEach(function(r){r.element&&r.animate(es({x:t.startXPos},r.startYPos?{x:r.startXPos,y:r.startYPos}:{}))})})}applyOptions(t,e){let i=this.series,s=i.options.pointValKey||i.pointValKey;return es(this,t=ui.prototype.optionsToObject.call(this,t)),this.options=this.options?es(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=ui.prototype.getNestedProperty.call(this,s)),this.selected&&(this.state="select"),"name"in this&&e===void 0&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),this.x===void 0&&i?this.x=e??i.autoIncrement():de(t.x)&&i.options.relativeXValue?this.x=i.autoIncrement(t.x):typeof this.x=="string"&&(e??(e=i.chart.time.parse(this.x)),de(e)&&(this.x=e)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,i=e.chart,s=e.options.dataSorting,r=i.hoverPoints,o=nd(t.series.chart.renderer.globalAnimation),a=()=>{for(let n in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(la(t),t.destroyElements()),t)delete t[n]};t.legendItem&&i.legend.destroyItem(t),r&&(t.setState(),pd(r,t),r.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s!=null&&s.enabled?(this.animateBeforeDestroy(),md(a,o.duration)):a(),i.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach(function(s){e[s]=e[s].destroy()}),i.plural.forEach(function(s){e[s].forEach(function(r){r!=null&&r.element&&r.destroy()}),delete e[s]})}firePointEvent(t,e,i){let s=this,r=this.series.options;s.manageEvent(t),t==="click"&&r.allowPointSelect&&(i=function(o){!s.destroyed&&s.select&&s.select(null,o.ctrlKey||o.metaKey||o.shiftKey)}),ar(s,t,e,i)}getClassName(){var t;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:"")+((t=this.zone)!=null&&t.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,i,s=this,r=[],o={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&r.push("graphic","connector"),t.dataLabel&&r.push("dataLabel","dataLabelPath","dataLabelUpper"),i=r.length;i--;)s[e=r[i]]&&o.singular.push(e);return["graphic","dataLabel"].forEach(function(a){let n=a+"s";t[a]&&s[n]&&o.plural.push(n)}),o}getNestedProperty(t){return t?t.indexOf("custom.")===0?ud(t,this.options):this[t]:void 0}getZone(){let t=this.series,e=t.zones,i=t.zoneAxis||"y",s,r=0;for(s=e[0];this[i]>=s.value;)s=e[++r];return this.nonZonedColor||(this.nonZonedColor=this.color),s!=null&&s.color&&!this.options.color?this.color=s.color:this.color=this.nonZonedColor,s}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(t,e,i){this.formatPrefix="point",this.visible=!0,this.point=this,this.series=t,this.applyOptions(e,i),this.id??(this.id=xd()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,ar(this,"afterInit")}isValid(){return(de(this.x)||this.x instanceof Date)&&de(this.y)}optionsToObject(t){var c;let e=this.series,i=e.options.keys,s=i||e.pointArrayMap||["y"],r=s.length,o={},a,n=0,l=0;if(de(t)||t===null)o[s[0]]=t;else if(gd(t))for(!i&&t.length>r&&((a=typeof t[0])=="string"?(c=e.xAxis)!=null&&c.dateTime?o.x=e.chart.time.parse(t[0]):o.name=t[0]:a==="number"&&(o.x=t[0]),n++);l<r;)i&&t[n]===void 0||(s[l].indexOf(".")>0?ui.prototype.setNestedProperty(o,t[n],s[l]):o[s[l]]=t[n]),n++,l++;else typeof t=="object"&&(o=t,t.dataLabels&&(e.hasDataLabels=()=>!0),t.marker&&(e._hasPointMarkers=!0));return o}pos(t,e=this.plotY){if(!this.destroyed){let{plotX:i,series:s}=this,{chart:r,xAxis:o,yAxis:a}=s,n=0,l=0;if(de(i)&&de(e))return t&&(n=o?o.pos:r.plotLeft,l=a?a.pos:r.plotTop),r.inverted&&o&&a?[a.len-e+l,o.len-i+n]:[i+n,e+l]}}resolveColor(){let t=this.series,e=t.chart.options.chart,i=t.chart.styledMode,s,r,o=e.colorCount,a;delete this.nonZonedColor,t.options.colorByPoint?(i||(s=(r=t.options.colors||t.chart.options.colors)[t.colorCounter],o=r.length),a=t.colorCounter,t.colorCounter++,t.colorCounter===o&&(t.colorCounter=0)):(i||(s=t.color),a=t.colorIndex),this.colorIndex=ce(this.options.colorIndex,a),this.color=ce(this.options.color,s)}setNestedProperty(t,e,i){return i.split(".").reduce(function(s,r,o,a){let n=a.length-1===o;return s[r]=n?e:is(s[r],!0)?s[r]:{},s[r]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){var n;let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:r="",valuePrefix:o="",valueSuffix:a=""}=s;return e.styledMode&&(t=((n=e.tooltip)==null?void 0:n.styledModeFormat(t))||t),i.forEach(l=>{l="{point."+l,(o||a)&&(t=t.replace(RegExp(l+"}","g"),o+l+"}"+a)),t=t.replace(RegExp(l+"}","g"),l+":,."+r+"f}")}),hd(t,this,e)}update(t,e,i,s){let r,o=this,a=o.series,n=o.graphic,l=a.chart,c=a.options;function d(){o.applyOptions(t);let p=n&&o.hasMockGraphic,u=o.y===null?!p:p;n&&u&&(o.graphic=n.destroy(),delete o.hasMockGraphic),is(t,!0)&&(n!=null&&n.element&&t&&t.marker&&t.marker.symbol!==void 0&&(o.graphic=n.destroy()),t!=null&&t.dataLabels&&o.dataLabel&&(o.dataLabel=o.dataLabel.destroy())),r=o.index;let g={};for(let x of a.dataColumnKeys())g[x]=o[x];a.dataTable.setRow(g,r),c.data[r]=is(c.data[r],!0)||is(t,!0)?o.options:ce(t,c.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(l.isDirtyBox=!0),c.legendType==="point"&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=ce(e,!0),s===!1?d():o.firePointEvent("update",{options:t},d)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,r=s.chart;t=ce(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(o){let a=o.series;o.selected&&o!==i&&(o.selected=o.options.selected=!1,a.options.data[a.data.indexOf(o)]=o.options,o.setState(r.hoverPoints&&a.options.inactiveOtherPoints?"inactive":""),o.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(t){let{inverted:e,pointer:i}=this.series.chart;i&&(t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e),i.runPointActions(t,this))}onMouseOut(){let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(e){e.setState()}),t.hoverPoints=t.hoverPoint=null}manageEvent(t){var s,r,o,a,n,l,c;let e=na(this.series.options.point,this.options),i=(s=e.events)==null?void 0:s[t];fd(i)&&(!((r=this.hcEvents)!=null&&r[t])||((a=(o=this.hcEvents)==null?void 0:o[t])==null?void 0:a.map(d=>d.fn).indexOf(i))===-1)?((n=this.importedUserEvent)==null||n.call(this),this.importedUserEvent=dd(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0)):this.importedUserEvent&&!i&&((l=this.hcEvents)!=null&&l[t])&&((c=this.hcEvents)!=null&&c[t].userEvent)&&(la(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(t,e){var k,S;let i=this.series,s=this.state,r=i.options.states[t||"normal"]||{},o=ld.plotOptions[i.type].marker&&i.options.marker,a=o&&o.enabled===!1,n=((k=o==null?void 0:o.states)==null?void 0:k[t||"normal"])||{},l=n.enabled===!1,c=this.marker||{},d=i.chart,p=o&&i.markerAttribs,u=i.halo,g,x,m,f=i.stateMarkerGraphic,y;if((t=t||"")===this.state&&!e||this.selected&&t!=="select"||r.enabled===!1||t&&(l||a&&n.enabled===!1)||t&&c.states&&c.states[t]&&c.states[t].enabled===!1)return;if(this.state=t,p&&(g=i.markerAttribs(this,t)),this.graphic&&!this.hasMockGraphic){if(s&&this.graphic.removeClass("highcharts-point-"+s),t&&this.graphic.addClass("highcharts-point-"+t),!d.styledMode){x=i.pointAttribs(this,t),m=ce(d.options.chart.animation,r.animation);let M=x.opacity;i.options.inactiveOtherPoints&&de(M)&&(this.dataLabels||[]).forEach(function(T){T&&!T.hasClass("highcharts-data-label-hidden")&&(T.animate({opacity:M},m),T.connector&&T.connector.animate({opacity:M},m))}),this.graphic.animate(x,m)}g&&this.graphic.animate(g,ce(d.options.chart.animation,n.animation,o.animation)),f&&f.hide()}else t&&n&&(y=c.symbol||i.symbol,f&&f.currentSymbol!==y&&(f=f.destroy()),g&&(f?f[e?"animate":"attr"]({x:g.x,y:g.y}):y&&(i.stateMarkerGraphic=f=d.renderer.symbol(y,g.x,g.y,g.width,g.height,na(o,n)).add(i.markerGroup),f.currentSymbol=y)),!d.styledMode&&f&&this.state!=="inactive"&&f.attr(i.pointAttribs(this,t))),f&&(f[t&&this.isInside?"show":"hide"](),f.element.point=this,f.addClass(this.getClassName(),!0));let b=r.halo,w=this.graphic||f,v=(w==null?void 0:w.visibility)||"inherit";b!=null&&b.size&&w&&v!=="hidden"&&!this.isCluster?(u||(i.halo=u=d.renderer.path().add(w.parentGroup)),u.show()[e?"animate":"attr"]({d:this.haloPath(b.size)}),u.attr({class:"highcharts-halo highcharts-color-"+ce(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:v,zIndex:-1}),u.point=this,d.styledMode||u.attr(es({fill:this.color||i.color,"fill-opacity":b.opacity},lt.filterUserAttributes(b.attributes||{})))):(S=u==null?void 0:u.point)!=null&&S.haloPath&&!u.point.destroyed&&u.animate({d:u.point.haloPath(0)},null,u.hide),ar(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(cd(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let pe=ui,{parse:yd}=ht,{charts:nr,composed:bd,isTouchDevice:vd}=O,{addEvent:Gt,attr:kd,css:lr,extend:hr,find:ha,fireEvent:ue,isNumber:ss,isObject:rs,objectEach:wd,offset:Md,pick:ee,pushUnique:Sd,splat:da}=W;class wt{applyInactiveState(t=[]){let e=[];t.forEach(i=>{let s=i.series;e.push(s),s.linkedParent&&e.push(s.linkedParent),s.linkedSeries&&e.push.apply(e,s.linkedSeries),s.navigatorSeries&&e.push(s.navigatorSeries),s.boosted&&s.markerGroup&&e.push.apply(e,this.chart.series.filter(r=>r.markerGroup===s.markerGroup))}),this.chart.series.forEach(i=>{e.indexOf(i)===-1?i.setState("inactive",!0):i.options.inactiveOtherPoints&&i.setAllPointsToState("inactive")})}destroy(){let t=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!O.chartCount&&(wt.unbindDocumentMouseUp.forEach(e=>e.unbind()),wt.unbindDocumentMouseUp.length=0,wt.unbindDocumentTouchEnd&&(wt.unbindDocumentTouchEnd=wt.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),wd(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return ue(this,"getSelectionMarkerAttrs",i,s=>{let r,{chart:o,zoomHor:a,zoomVert:n}=this,{mouseDownX:l=0,mouseDownY:c=0}=o,d=s.attrs;d.x=o.plotLeft,d.y=o.plotTop,d.width=a?1:o.plotWidth,d.height=n?1:o.plotHeight,a&&(d.width=Math.max(1,Math.abs(r=t-l)),d.x=(r>0?0:r)+l),n&&(d.height=Math.max(1,Math.abs(r=e-c)),d.y=(r>0?0:r)+c)}),i}drag(t){let{chart:e}=this,{mouseDownX:i=0,mouseDownY:s=0}=e,{panning:r,panKey:o,selectionMarkerFill:a}=e.options.chart,n=e.plotLeft,l=e.plotTop,c=e.plotWidth,d=e.plotHeight,p=rs(r)?r.enabled:r,u=o&&t[`${o}Key`],g=t.chartX,x=t.chartY,m,f=this.selectionMarker;if((!f||!f.touch)&&(g<n?g=n:g>n+c&&(g=n+c),x<l?x=l:x>l+d&&(x=l+d),this.hasDragged=Math.sqrt(Math.pow(i-g,2)+Math.pow(s-x,2)),this.hasDragged>10)){m=e.isInsidePlot(i-n,s-l,{visiblePlotOnly:!0});let{shapeType:y,attrs:b}=this.getSelectionMarkerAttrs(g,x);(e.hasCartesianSeries||e.mapView)&&this.hasZoom&&m&&!u&&!f&&(this.selectionMarker=f=e.renderer[y](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||f.attr({fill:a||yd("#334eff").setOpacity(.25).get()})),f&&f.attr(b),m&&!f&&p&&e.pan(t,r)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=t.chartX,e.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:t.getBBox()};return ue(this,"getSelectionBox",e),e.result}drop(t){let e,{chart:i,selectionMarker:s}=this;for(let r of i.axes)r.isPanning&&(r.isPanning=!1,(r.options.startOnTick||r.options.endOnTick||r.series.some(o=>o.boosted))&&(r.forceRedraw=!0,r.setExtremes(r.userMin,r.userMax,!1),e=!0));if(e&&i.redraw(),s&&t){if(this.hasDragged){let r=this.getSelectionBox(s);i.transform({axes:i.axes.filter(o=>o.zoomEnabled&&(o.coll==="xAxis"&&this.zoomX||o.coll==="yAxis"&&this.zoomY)),selection:{originalEvent:t,xAxis:[],yAxis:[],...r},from:r})}ss(i.index)&&(this.selectionMarker=s.destroy())}i&&ss(i.index)&&(lr(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[])}findNearestKDPoint(t,e,i){let s;return t.forEach(function(r){let o=!(r.noSharedTooltip&&e)&&0>r.options.findNearestPointBy.indexOf("y"),a=r.searchPoint(i,o);rs(a,!0)&&a.series&&(!rs(s,!0)||function(n,l){var u,g;let c=n.distX-l.distX,d=n.dist-l.dist,p=((u=l.series.group)==null?void 0:u.zIndex)-((g=n.series.group)==null?void 0:g.zIndex);return c!==0&&e?c:d!==0?d:p!==0?p:n.series.index>l.series.index?-1:1}(s,a)>0)&&(s=a)}),s}getChartCoordinatesFromPoint(t,e){let{xAxis:i,yAxis:s}=t.series,r=t.shapeArgs;if(i&&s){let o=t.clientX??t.plotX??0,a=t.plotY||0;return t.isNode&&r&&ss(r.x)&&ss(r.y)&&(o=r.x,a=r.y),e?{chartX:s.len+s.pos-a,chartY:i.len+i.pos-o}:{chartX:o+i.pos,chartY:a+s.pos}}if(r!=null&&r.x&&r.y)return{chartX:r.x,chartY:r.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=Md(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let{offsetHeight:i,offsetWidth:s}=t;return s>2&&i>2&&(this.chartPosition.scaleX=e.width/s,this.chartPosition.scaleY=e.height/i),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};for(let i of this.chart.axes)e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])});return e}getHoverData(t,e,i,s,r,o){let a=[],n=function(u){return u.visible&&!(!r&&u.directTouch)&&ee(u.options.enableMouseTracking,!0)},l=e,c,d={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:r};ue(this,"beforeGetHoverData",d),c=l&&!l.stickyTracking?[l]:i.filter(u=>u.stickyTracking&&(d.filter||n)(u));let p=s&&t||!o?t:this.findNearestKDPoint(c,r,o);return l=p==null?void 0:p.series,p&&(r&&!l.noSharedTooltip?(c=i.filter(function(u){return d.filter?d.filter(u):n(u)&&!u.noSharedTooltip})).forEach(function(u){var m;let g=(m=u.options)==null?void 0:m.nullInteraction,x=ha(u.points,function(f){return f.x===p.x&&(!f.isNull||!!g)});rs(x)&&(u.boosted&&u.boost&&(x=u.boost.getPoint(x)),a.push(x))}):a.push(p)),ue(this,"afterGetHoverData",d={hoverPoint:p}),{hoverPoint:d.hoverPoint,hoverSeries:l,hoverPoints:a}}getPointFromEvent(t){let e=t.target,i;for(;e&&!i;)i=e.point,e=e.parentNode;return i}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i=t,s;for(;i;){if(s=kd(i,"class")){if(s.indexOf(e)!==-1)return!0;if(s.indexOf("highcharts-container")!==-1)return!1}i=i.parentElement}}constructor(t,e){var i;this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!((i=e.chart.events)!=null&&i.click),this.pinchDown=[],this.setDOMEvents(),ue(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):ee(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let r=s.pageX-e.left,o=s.pageY-e.top;return hr(t,{chartX:Math.round(r/=e.scaleX),chartY:Math.round(o/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),r=e.plotLeft,o=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(ue(i.series,"click",hr(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(hr(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-r,s.chartY-o,{visiblePlotOnly:!0})&&ue(e,"click",s)))}onContainerMouseDown(t){var i;let e=(1&(t.buttons||t.button))==1;t=this.normalize(t),O.isFirefox&&t.button!==0&&this.onContainerMouseMove(t),(t.button===void 0||e)&&(this.zoomOption(t),e&&((i=t.preventDefault)==null||i.call(t)),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=nr[ee(wt.hoverChartIndex,-1)]||{};t=this.normalize(t),this.onContainerMouseMove(t),e&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.reset(),e.chartPosition=void 0)}onContainerMouseEnter(){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),(e.mouseIsDown==="mousedown"||this.touchSelect(s))&&this.drag(s),!e.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!(i!=null&&i.shouldStickOnContact(s))&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){this.onDocumentMouseUp(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,r=this.normalize(t,s);!s||e.isInsidePlot(r.chartX-e.plotLeft,r.chartY-e.plotTop,{visiblePlotOnly:!0})||i!=null&&i.shouldStickOnContact(r)||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){var e,i;(i=(e=nr[ee(wt.hoverChartIndex,-1)])==null?void 0:e.pointer)==null||i.drop(t)}pinch(t){let e=this,{chart:i,hasZoom:s,lastTouches:r}=e,o=[].map.call(t.touches||[],d=>e.normalize(d)),a=o.length,n=a===1&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),l=i.tooltip,c=a===1&&ee(l==null?void 0:l.options.followTouchMove,!0);a>1?e.initiated=!0:c&&(e.initiated=!1),s&&e.initiated&&!n&&t.cancelable!==!1&&t.preventDefault(),t.type==="touchstart"?(e.pinchDown=o,e.res=!0,i.mouseDownX=t.chartX):c?this.runPointActions(e.normalize(t)):r&&(ue(i,"touchpan",{originalEvent:t,touches:o},()=>{let d=p=>{let u=p[0],g=p[1]||u;return{x:u.chartX,y:u.chartY,width:g.chartX-u.chartX,height:g.chartY-u.chartY}};i.transform({axes:i.axes.filter(p=>p.zoomEnabled&&(this.zoomHor&&p.horiz||this.zoomVert&&!p.horiz)),to:d(o),from:d(r),trigger:t.type})}),e.res&&(e.res=!1,this.reset(!1,0))),e.lastTouches=o}reset(t,e){let i=this.chart,s=i.hoverSeries,r=i.hoverPoint,o=i.hoverPoints,a=i.tooltip,n=a!=null&&a.shared?o:r;t&&n&&da(n).forEach(function(l){l.series.isCartesian&&l.plotX===void 0&&(t=!1)}),t?a&&n&&da(n).length&&(a.refresh(n),a.shared&&o?o.forEach(function(l){l.setState(l.state,!0),l.series.isCartesian&&(l.series.xAxis.crosshair&&l.series.xAxis.drawCrosshair(null,l),l.series.yAxis.crosshair&&l.series.yAxis.drawCrosshair(null,l))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(l){l.crosshair&&r.series[l.coll]===l&&l.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&o.forEach(function(l){l.setState()}),s&&s.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(l){l.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){var x;let s=this.chart,r=s.series,o=(x=s.tooltip)!=null&&x.options.enabled?s.tooltip:void 0,a=!!o&&o.shared,n=e||s.hoverPoint,l=(n==null?void 0:n.series)||s.hoverSeries,c=(!t||t.type!=="touchmove")&&(!!e||(l==null?void 0:l.directTouch)&&this.isDirectTouch),d=this.getHoverData(n,l,r,c,a,t);n=d.hoverPoint,l=d.hoverSeries;let p=d.hoverPoints,u=(l==null?void 0:l.tooltipOptions.followPointer)&&!l.tooltipOptions.split,g=a&&l&&!l.noSharedTooltip;if(n&&(i||n!==s.hoverPoint||o!=null&&o.isHidden)){if((s.hoverPoints||[]).forEach(function(m){p.indexOf(m)===-1&&m.setState()}),s.hoverSeries!==l&&l.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach(function(m){m.setState("hover")}),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!n.series)return;s.hoverPoints=p,s.hoverPoint=n,n.firePointEvent("mouseOver",void 0,()=>{o&&n&&o.refresh(g?p:n,t)})}else if(u&&o&&!o.isHidden){let m=o.getAnchor([{}],t);s.isInsidePlot(m[0],m[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:m[0],plotY:m[1]})}this.unDocMouseMove||(this.unDocMouseMove=Gt(s.container.ownerDocument,"mousemove",m=>{var f,y;return(y=(f=nr[wt.hoverChartIndex??-1])==null?void 0:f.pointer)==null?void 0:y.onDocumentMouseMove(m)}),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(m){var b;let f,y=((b=m.crosshair)==null?void 0:b.snap)??!0;!y||(f=s.hoverPoint)&&f.series[m.coll]===m||(f=ha(p,w=>{var v;return((v=w.series)==null?void 0:v[m.coll])===m})),f||!y?m.drawCrosshair(t,f):m.hideCrosshair()})}setDOMEvents(){let t=this.chart.container,e=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(Gt(t,"mouseenter",this.onContainerMouseEnter.bind(this)),Gt(t,"mouseleave",this.onContainerMouseLeave.bind(this))),wt.unbindDocumentMouseUp.some(s=>s.doc===e)||wt.unbindDocumentMouseUp.push({doc:e,unbind:Gt(e,"mouseup",this.onDocumentMouseUp.bind(this))});let i=this.chart.renderTo.parentElement;for(;i&&i.tagName!=="BODY";)this.eventsToUnbind.push(Gt(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(Gt(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),Gt(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),wt.unbindDocumentTouchEnd||(wt.unbindDocumentTouchEnd=Gt(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),Gt(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){var r,o;if(!vd)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=ee((r=e.options.tooltip)==null?void 0:r.followTouchMove,!0)&&e.series.some(a=>a.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(Gt(i,"pointerdown",a=>{var n,l;(n=a.target)!=null&&n.hasPointerCapture(a.pointerId)&&((l=a.target)==null||l.releasePointerCapture(a.pointerId))}),Gt(i,"pointermove",a=>{var n,l;(l=(n=e.pointer)==null?void 0:n.getPointFromEvent(a))==null||l.onMouseOver(a)})),e.styledMode||lr(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(a=>a()),t.length=0,e.styledMode||lr(i,{"touch-action":ee((o=e.options.chart.style)==null?void 0:o["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(t){var s;let e=this.chart,i=O.charts[ee(wt.hoverChartIndex,-1)];if(i&&i!==e){let r={relatedTarget:e.container};t&&!(t!=null&&t.relatedTarget)&&Object.assign({},t,r),(s=i.pointer)==null||s.onContainerMouseLeave(t||r)}i!=null&&i.mouseIsDown||(wt.hoverChartIndex=e.index)}touch(t,e){let i,{chart:s,pinchDown:r=[]}=this;this.setHoverChartIndex(),(t=this.normalize(t)).touches.length===1?s.isInsidePlot(t.chartX-s.plotLeft,t.chartY-s.plotTop,{visiblePlotOnly:!0})&&!s.openMenu?(e&&this.runPointActions(t),t.type==="touchmove"&&(i=!!r[0]&&Math.pow(r[0].chartX-t.chartX,2)+Math.pow(r[0].chartY-t.chartY,2)>=16),ee(i,!0)&&this.pinch(t)):e&&this.reset():t.touches.length===2&&this.pinch(t)}touchSelect(t){return!!(this.chart.zooming.singleTouch&&t.touches&&t.touches.length===1)}zoomOption(t){let e=this.chart,i=e.inverted,s=e.zooming.type||"",r,o;/touch/.test(t.type)&&(s=ee(e.zooming.pinchType,s)),this.zoomX=r=/x/.test(s),this.zoomY=o=/y/.test(s),this.zoomHor=r&&!i||o&&i,this.zoomVert=o&&!i||r&&i,this.hasZoom=r||o}}wt.unbindDocumentMouseUp=[],function(h){h.compose=function(t){Sd(bd,"Core.Pointer")&&Gt(t,"beforeRender",function(){this.pointer=new h(this,this.options)})}}(wt||(wt={}));let ca=wt;(function(h){h.setLength=function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},h.splice=function(t,e,i,s,r=[]){if(Array.isArray(t))return Array.isArray(r)||(r=Array.from(r)),{removed:t.splice(e,i,...r),array:t};let o=Object.getPrototypeOf(t).constructor,a=t[s?"subarray":"slice"](e,e+i),n=new o(t.length-i+r.length);return n.set(t.subarray(0,e),0),n.set(r,e),n.set(t.subarray(e+i),e+r.length),{removed:a,array:n}}})(Qe||(Qe={}));let{setLength:Td,splice:pa}=Qe,{fireEvent:dr,objectEach:gi,uniqueKey:fi}=W,os=class{constructor(h={}){this.autoId=!h.id,this.columns={},this.id=h.id||fi(),this.modified=this,this.rowCount=0,this.versionTag=fi();let t=0;gi(h.columns||{},(e,i)=>{this.columns[i]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(h){this.rowCount=h,gi(this.columns,(t,e)=>{t.length!==h&&(this.columns[e]=Td(t,h))})}deleteRows(h,t=1){if(t>0&&h<this.rowCount){let e=0;gi(this.columns,(i,s)=>{this.columns[s]=pa(i,h,t).array,e=i.length}),this.rowCount=e}dr(this,"afterDeleteRows",{rowIndex:h,rowCount:t}),this.versionTag=fi()}getColumn(h,t){return this.columns[h]}getColumns(h,t){return(h||Object.keys(this.columns)).reduce((e,i)=>(e[i]=this.columns[i],e),{})}getRow(h,t){return(t||Object.keys(this.columns)).map(e=>{var i;return(i=this.columns[e])==null?void 0:i[h]})}setColumn(h,t=[],e=0,i){this.setColumns({[h]:t},e,i)}setColumns(h,t,e){let i=this.rowCount;gi(h,(s,r)=>{this.columns[r]=s.slice(),i=s.length}),this.applyRowCount(i),e!=null&&e.silent||(dr(this,"afterSetColumns"),this.versionTag=fi())}setRow(h,t=this.rowCount,e,i){let{columns:s}=this,r=e?this.rowCount+1:t+1;gi(h,(o,a)=>{let n=s[a]||(i==null?void 0:i.addColumns)!==!1&&Array(r);n&&(e?n=pa(n,t,0,!0,[o]).array:n[t]=o,s[a]=n)}),r>this.rowCount&&this.applyRowCount(r),i!=null&&i.silent||(dr(this,"afterSetRows"),this.versionTag=fi())}},{extend:Cd,merge:Ad,pick:ua}=W;(function(h){function t(e,i,s){var w,v;let r=this.legendItem=this.legendItem||{},{chart:o,options:a}=this,{baseline:n=0,symbolWidth:l,symbolHeight:c}=e,d=this.symbol||"circle",p=c/2,u=o.renderer,g=r.group,x=n-Math.round((((w=e.fontMetrics)==null?void 0:w.b)||c)*(s?.4:.3)),m={},f,y=a.marker,b=0;if(o.styledMode||(m["stroke-width"]=Math.min(a.lineWidth||0,24),a.dashStyle?m.dashstyle=a.dashStyle:a.linecap==="square"||(m["stroke-linecap"]="round")),r.line=u.path().addClass("highcharts-graph").attr(m).add(g),s&&(r.area=u.path().addClass("highcharts-area").add(g)),m["stroke-linecap"]&&(b=Math.min(r.line.strokeWidth(),l)/2),l){let k=[["M",b,x],["L",l-b,x]];r.line.attr({d:k}),(v=r.area)==null||v.attr({d:[...k,["L",l-b,n],["L",b,n]]})}if(y&&y.enabled!==!1&&l){let k=Math.min(ua(y.radius,p),p);d.indexOf("url")===0&&(y=Ad(y,{width:c,height:c}),k=0),r.symbol=f=u.symbol(d,l/2-k,x-k,2*k,2*k,Cd({context:"legend"},y)).addClass("highcharts-point").add(g),f.isMarker=!0}}h.areaMarker=function(e,i){t.call(this,e,i,!0)},h.lineMarker=t,h.rectangle=function(e,i){let s=i.legendItem||{},r=e.options,o=e.symbolHeight,a=r.squareSymbol,n=a?o:e.symbolWidth;s.symbol=this.chart.renderer.rect(a?(e.symbolWidth-o)/2:0,e.baseline-o+1,n,o,ua(e.options.symbolRadius,o/2)).addClass("highcharts-point").attr({zIndex:3}).add(s.group)}})(ve||(ve={}));let ga=ve,{defaultOptions:fa}=Ft,{extend:Pd,extendClass:Od,merge:Ld}=W;(function(h){function t(e,i){let s=fa.plotOptions||{},r=i.defaultOptions,o=i.prototype;return o.type=e,o.pointClass||(o.pointClass=pe),!h.seriesTypes[e]&&(r&&(s[e]=r),h.seriesTypes[e]=i,!0)}h.seriesTypes=O.seriesTypes,h.registerSeriesType=t,h.seriesType=function(e,i,s,r,o){let a=fa.plotOptions||{};if(i=i||"",a[e]=Ld(a[i],s),delete h.seriesTypes[e],t(e,Od(h.seriesTypes[i]||function(){},r)),h.seriesTypes[e].prototype.type=e,o){class n extends pe{}Pd(n.prototype,o),h.seriesTypes[e].prototype.pointClass=n}return h.seriesTypes[e]}})(De||(De={}));let ut=De,{animObject:ma,setAnimation:Ed}=At,{defaultOptions:as}=Ft,{registerEventOptions:Id}=Vi,{svg:Dd,win:Bd}=O,{seriesTypes:qe}=ut,{format:zd}=jt,{arrayMax:cr,arrayMin:xa,clamp:ya,correctFloat:ba,crisp:Nd,defined:bt,destroyObjectProperties:Rd,diffObjects:Wd,erase:va,error:ns,extend:Ze,find:Hd,fireEvent:gt,getClosestDistance:Xd,getNestedProperty:ka,insertItem:wa,isArray:Ma,isNumber:Mt,isString:Fd,merge:mi,objectEach:pr,pick:ct,removeEvent:jd,syncTimeout:Sa}=W;class qt{constructor(){this.zoneAxis="y"}init(t,e){var n,l,c;let i;gt(this,"init",{options:e}),this.dataTable??(this.dataTable=new os);let s=t.series;this.eventsToUnbind=[],this.chart=t,this.options=this.setOptions(e);let r=this.options,o=r.visible!==!1;this.linkedSeries=[],this.bindAxes(),Ze(this,{name:r.name,state:"",visible:o,selected:r.selected===!0}),Id(this,r);let a=r.events;(a!=null&&a.click||(l=(n=r.point)==null?void 0:n.events)!=null&&l.click||r.allowPointSelect)&&(t.runTrackerClick=!0),this.getColor(),this.getSymbol(),this.isCartesian&&(t.hasCartesianSeries=!0),s.length&&(i=s[s.length-1]),this._i=ct(i==null?void 0:i._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",wa(this,s)),(c=r.dataSorting)!=null&&c.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(r.data,!1),gt(this,"afterInit")}is(t){return qe[t]&&this instanceof qe[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;gt(this,"bindAxes",null,function(){(e.axisTypes||[]).forEach(function(r){(s[r]||[]).forEach(function(o){t=o.options,(ct(i[r],0)===o.index||i[r]!==void 0&&i[r]===t.id)&&(wa(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||ns(18,!0,s)})}),gt(this,"afterBindAxes")}hasData(){return this.visible&&this.dataMax!==void 0&&this.dataMin!==void 0||this.visible&&this.dataTable.rowCount>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker||{};return i&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i=this.options,{pointIntervalUnit:s,relativeXValue:r}=this.options,o=this.chart.time,a=this.xIncrement??o.parse(i.pointStart)??0;if(this.pointInterval=e=ct(this.pointInterval,i.pointInterval,1),r&&Mt(t)&&(e*=t),s){let n=o.toParts(a);s==="day"?n[2]+=e:s==="month"?n[1]+=e:s==="year"&&(n[0]+=e),e=o.makeTime.apply(o,n)-a}return r&&Mt(t)?a+e:(this.xIncrement=a+e,a)}setDataSortingOptions(){let t=this.options;Ze(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),bt(t.pointRange)||(t.pointRange=1)}setOptions(t){var m,f;let e,i=this.chart,s=i.options.plotOptions,r=i.userOptions||{},o=mi(t),a=i.styledMode,n={plotOptions:s,userOptions:o};gt(this,"setOptions",n);let l=n.plotOptions[this.type],c=r.plotOptions||{},d=c.series||{},p=as.plotOptions[this.type]||{},u=c[this.type]||{};l.dataLabels=this.mergeArrays(p.dataLabels,l.dataLabels),this.userOptions=n.userOptions;let g=mi(l,s.series,u,o);this.tooltipOptions=mi(as.tooltip,(m=as.plotOptions.series)==null?void 0:m.tooltip,p==null?void 0:p.tooltip,i.userOptions.tooltip,(f=c.series)==null?void 0:f.tooltip,u.tooltip,o.tooltip),this.stickyTracking=ct(o.stickyTracking,u.stickyTracking,d.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),l.marker===null&&delete g.marker,this.zoneAxis=g.zoneAxis||"y";let x=this.zones=(g.zones||[]).map(y=>({...y}));return(g.negativeColor||g.negativeFillColor)&&!g.zones&&(e={value:g[this.zoneAxis+"Threshold"]||g.threshold||0,className:"highcharts-negative"},a||(e.color=g.negativeColor,e.fillColor=g.negativeFillColor),x.push(e)),x.length&&bt(x[x.length-1].value)&&x.push(a?{}:{color:this.color,fillColor:this.fillColor}),gt(this,"afterSetOptions",{options:g}),g}getName(){return this.options.name??zd(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(t,e,i){let s,r,o=this.chart,a=`${t}Index`,n=`${t}Counter`,l=(i==null?void 0:i.length)||o.options.chart.colorCount;!e&&(bt(r=ct(t==="color"?this.options.colorIndex:void 0,this[a]))?s=r:(o.series.length||(o[n]=0),s=o[n]%l,o[n]+=1),i&&(e=i[s])),s!==void 0&&(this[a]=s),this[t]=e}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||as.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}getColumn(t,e){return(e?this.dataTable.modified:this.dataTable).getColumn(t,!0)||[]}findPointIndex(t,e){var d;let i,s,r,{id:o,x:a}=t,n=this.points,l=this.options.dataSorting,c=this.cropStart||0;if(o){let p=this.chart.get(o);p instanceof pe&&(i=p)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let p=u=>!u.touched&&u.index===t.index;if(l!=null&&l.matchByName?p=u=>!u.touched&&u.name===t.name:this.options.relativeXValue&&(p=u=>!u.touched&&u.options.x===t.x),!(i=Hd(n,p)))return}return i&&(r=i==null?void 0:i.index)!==void 0&&(s=!0),r===void 0&&Mt(a)&&(r=this.getColumn("x").indexOf(a,e)),r!==-1&&r!==void 0&&this.cropped&&(r=r>=c?r-c:r),!s&&Mt(r)&&((d=n[r])!=null&&d.touched)&&(r=void 0),r}updateData(t,e){var x;let{options:i,requireSorting:s}=this,r=i.dataSorting,o=this.points,a=[],n=t.length===o.length,l,c,d,p,u=!0;if(this.xIncrement=null,t.forEach((m,f)=>{var k;let y,b=bt(m)&&this.pointClass.prototype.optionsToObject.call({series:this},m)||{},{id:w,x:v}=b;w||Mt(v)?((y=this.findPointIndex(b,p))===-1||y===void 0?a.push(m):o[y]&&m!==((k=i.data)==null?void 0:k[y])?(o[y].update(m,!1,void 0,!1),o[y].touched=!0,s&&(p=y+1)):o[y]&&(o[y].touched=!0),(!n||f!==y||r!=null&&r.enabled||this.hasDerivedData)&&(l=!0)):a.push(m)},this),l)for(c=o.length;c--;)(d=o[c])&&!d.touched&&((x=d.remove)==null||x.call(d,!1,e));else n&&!(r!=null&&r.enabled)?(t.forEach((m,f)=>{m===o[f].y||o[f].destroyed||o[f].update(m,!1,void 0,!1)}),a.length=0):u=!1;if(o.forEach(m=>{m&&(m.touched=!1)}),!u)return!1;a.forEach(m=>{this.addPoint(m,!1,void 0,void 0,!1)},this);let g=this.getColumn("x");return this.xIncrement===null&&g.length&&(this.xIncrement=cr(g),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){var S,M;let r=this.points,o=(r==null?void 0:r.length)||0,a=this.options,n=this.chart,l=a.dataSorting,c=this.xAxis,d=a.turboThreshold,p=this.dataTable,u=this.dataColumnKeys(),g=this.pointValKey||"y",x=(this.pointArrayMap||[]).length,m=a.keys,f,y,b=0,w=1,v;n.options.chart.allowMutatingData||(a.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,v=mi(!0,t));let k=(t=v||t||[]).length;if(l!=null&&l.enabled&&(t=this.sortData(t)),n.options.chart.allowMutatingData&&s!==!1&&k&&o&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(y=this.updateData(t,i)),!y){this.xIncrement=null,this.colorCounter=0;let T=d&&k>d;if(T){let A=this.getFirstValidPoint(t),L=this.getFirstValidPoint(t,k-1,-1),I=E=>!!(Ma(E)&&(m||Mt(E[0])));if(Mt(A)&&Mt(L)){let E=[],z=[];for(let B of t)E.push(this.autoIncrement()),z.push(B);p.setColumns({x:E,[g]:z})}else if(I(A)&&I(L))if(x){let E=+(A.length===x),z=Array(u.length).fill(0).map(()=>[]);for(let B of t){E&&z[0].push(this.autoIncrement());for(let G=E;G<=x;G++)(S=z[G])==null||S.push(B[G-E])}p.setColumns(u.reduce((B,G,R)=>(B[G]=z[R],B),{}))}else{m&&(b=m.indexOf("x"),w=m.indexOf("y"),b=b>=0?b:0,w=w>=0?w:1),A.length===1&&(w=0);let E=[],z=[];if(b===w)for(let B of t)E.push(this.autoIncrement()),z.push(B[w]);else for(let B of t)E.push(B[b]),z.push(B[w]);p.setColumns({x:E,[g]:z})}else T=!1}if(!T){let A=u.reduce((L,I)=>(L[I]=[],L),{});for(f=0;f<k;f++){let L=this.pointClass.prototype.applyOptions.apply({series:this},[t[f]]);for(let I of u)A[I][f]=L[I]}p.setColumns(A)}for(Fd(this.getColumn("y")[0])&&ns(14,!0,n),this.data=[],this.options.data=this.userOptions.data=t,f=o;f--;)(M=r[f])==null||M.destroy();c&&(c.minRange=c.userMinRange),this.isDirty=n.isDirtyBox=!0,this.isDirtyData=!!r,i=!1}a.legendType==="point"&&(this.processData(),this.generatePoints()),e&&n.redraw(i)}sortData(t){let e=this,i=e.options.dataSorting.sortKey||"y",s=function(r,o){return bt(o)&&r.pointClass.prototype.optionsToObject.call({series:r},o)||{}};return t.forEach(function(r,o){t[o]=s(e,r),t[o].index=o},this),t.concat().sort((r,o)=>{let a=ka(i,r),n=ka(i,o);return n<a?-1:+(n>a)}).forEach(function(r,o){r.x=o},this),e.linkedSeries&&e.linkedSeries.forEach(function(r){var n;let o=r.options,a=o.data;!((n=o.dataSorting)!=null&&n.enabled)&&a&&(a.forEach(function(l,c){a[c]=s(r,l),t[c]&&(a[c].x=t[c].x,a[c].index=c)}),r.setData(a,!1))}),t}getProcessedData(t){let e=this,{dataTable:i,isCartesian:s,options:r,xAxis:o}=e,a=r.cropThreshold,n=t||e.getExtremesFromAll,l=o==null?void 0:o.logarithmic,c=i.rowCount,d,p,u=0,g,x,m,f=e.getColumn("x"),y=i,b=!1;return o&&(x=(g=o.getExtremes()).min,m=g.max,b=!!(o.categories&&!o.names.length),s&&e.sorted&&!n&&(!a||c>a||e.forceCrop)&&(f[c-1]<x||f[0]>m?y=new os:e.getColumn(e.pointValKey||"y").length&&(f[0]<x||f[c-1]>m)&&(y=(d=this.cropData(i,x,m)).modified,u=d.start,p=!0))),f=y.getColumn("x")||[],{modified:y,cropped:p,cropStart:u,closestPointRange:Xd([l?f.map(l.log2lin):f],()=>e.requireSorting&&!b&&ns(15,!1,e.chart))}}processData(t){let e=this.xAxis,i=this.dataTable;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let s=this.getProcessedData();i.modified=s.modified,this.cropped=s.cropped,this.cropStart=s.cropStart,this.closestPointRange=this.basePointRange=s.closestPointRange,gt(this,"afterProcessData")}cropData(t,e,i){let s=t.getColumn("x",!0)||[],r=s.length,o={},a,n,l=0,c=r;for(a=0;a<r;a++)if(s[a]>=e){l=Math.max(0,a-1);break}for(n=a;n<r;n++)if(s[n]>i){c=n+1;break}for(let d of this.dataColumnKeys()){let p=t.getColumn(d,!0);p&&(o[d]=p.slice(l,c))}return{modified:new os({columns:o}),start:l,end:c}}generatePoints(){var v,k,S;let t=this.options,e=this.processedData||t.data,i=this.dataTable.modified,s=this.getColumn("x",!0),r=this.pointClass,o=i.rowCount,a=this.cropStart||0,n=this.hasGroupedData,l=t.keys,c=[],d=(v=t.dataGrouping)!=null&&v.groupAll?a:0,p=(k=this.xAxis)==null?void 0:k.categories,u=this.pointArrayMap||["y"],g=this.dataColumnKeys(),x,m,f,y,b=this.data,w;if(!b&&!n){let M=[];M.length=(e==null?void 0:e.length)||0,b=this.data=M}for(l&&n&&(this.options.keys=!1),y=0;y<o;y++)m=a+y,n?((f=new r(this,i.getRow(y,g)||[])).dataGroup=this.groupMap[d+y],(S=f.dataGroup)!=null&&S.options&&(f.options=f.dataGroup.options,Ze(f,f.dataGroup.options),delete f.dataLabels)):(f=b[m],w=e?e[m]:i.getRow(y,u),f||w===void 0||(b[m]=f=new r(this,w,s[y]))),f&&(f.index=n?d+y:m,c[y]=f,f.category=(p==null?void 0:p[f.x])??f.x,f.key=f.name??f.category);if(this.options.keys=l,b&&(o!==(x=b.length)||n))for(y=0;y<x;y++)y!==a||n||(y+=o),b[y]&&(b[y].destroyElements(),b[y].plotX=void 0);this.data=b,this.points=c,gt(this,"afterGeneratePoints")}getXExtremes(t){return{min:xa(t),max:cr(t)}}getExtremes(t,e){var v;let{xAxis:i,yAxis:s}=this,r=e||this.getExtremesFromAll||this.options.getExtremesFromAll,o=r&&this.cropped?this.dataTable:this.dataTable.modified,a=o.rowCount,n=t||this.stackedYData,l=n?[n]:((v=this.keysAffectYAxis||this.pointArrayMap||["y"])==null?void 0:v.map(k=>o.getColumn(k,!0)||[]))||[],c=this.getColumn("x",!0),d=[],p=this.requireSorting&&!this.is("column")?1:0,u=!!s&&s.positiveValuesOnly,g=r||this.cropped||!i,x,m,f,y=0,b=0;for(i&&(y=(x=i.getExtremes()).min,b=x.max),f=0;f<a;f++)if(m=c[f],g||(c[f+p]||m)>=y&&(c[f-p]||m)<=b)for(let k of l){let S=k[f];Mt(S)&&(S>0||!u)&&d.push(S)}let w={activeYData:d,dataMin:xa(d),dataMax:cr(d)};return gt(this,"afterGetExtremes",{dataExtremes:w}),w}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t,e=0,i=1){let s=t.length,r=e;for(;r>=0&&r<s;){if(bt(t[r]))return t[r];r+=i}}translate(){var b;this.generatePoints();let t=this.options,e=t.stacking,i=this.xAxis,s=this.enabledDataSorting,r=this.yAxis,o=this.points,a=o.length,n=this.pointPlacementToXValue(),l=!!n,c=t.threshold,d=t.startFromThreshold?c:0,p=(t==null?void 0:t.nullInteraction)&&r.len,u,g,x,m,f=Number.MAX_VALUE;function y(w){return ya(w,-1e9,1e9)}for(u=0;u<a;u++){let w,v=o[u],k=v.x,S,M,T=v.y,A=v.low,L=e&&((b=r.stacking)==null?void 0:b.stacks[(this.negStacks&&T<(d?0:c)?"-":"")+this.stackKey]);v.plotX=Mt(g=i.translate(k,!1,!1,!1,!0,n))?ba(y(g)):void 0,e&&this.visible&&L&&L[k]&&(m=this.getStackIndicator(m,k,this.index),!v.isNull&&m.key&&(M=(S=L[k]).points[m.key]),S&&Ma(M)&&(A=M[0],T=M[1],A===d&&m.key===L[k].base&&(A=ct(Mt(c)?c:r.min)),r.positiveValuesOnly&&bt(A)&&A<=0&&(A=void 0),v.total=v.stackTotal=ct(S.total),v.percentage=bt(v.y)&&S.total?v.y/S.total*100:void 0,v.stackY=T,this.irregularWidths||S.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),v.yBottom=bt(A)?y(r.translate(A,!1,!0,!1,!0)):void 0,this.dataModify&&(T=this.dataModify.modifyValue(T,u)),Mt(T)&&v.plotX!==void 0?w=Mt(w=r.translate(T,!1,!0,!1,!0))?y(w):void 0:!Mt(T)&&p&&(w=p),v.plotY=w,v.isInside=this.isPointInside(v),v.clientX=l?ba(i.translate(k,!1,!1,!1,!0,n)):g,v.negative=(v.y||0)<(c||0),v.isNull||v.visible===!1||(x!==void 0&&(f=Math.min(f,Math.abs(g-x))),x=g),v.zone=this.zones.length?v.getZone():void 0,!v.graphic&&this.group&&s&&(v.isNew=!0)}this.closestPointRangePx=f,gt(this,"afterTranslate")}getValidPoints(t,e,i){let s=this.chart;return(t||this.points||[]).filter(function(r){let{plotX:o,plotY:a}=r;return!!((i||!r.isNull&&Mt(a))&&(!e||s.isInsidePlot(o,a,{inverted:s.inverted})))&&r.visible!==!1})}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0),this.sharedClipKey}setClip(){let{chart:t,group:e,markerGroup:i}=this,s=t.sharedClips,r=t.renderer,o=t.getClipBox(this),a=this.getSharedClipKey(),n=s[a];n?n.animate(o):s[a]=n=r.clipRect(o),e&&e.clip(this.options.clip===!1?void 0:n),i&&i.clip()}animate(t){let{chart:e,group:i,markerGroup:s}=this,r=e.inverted,o=ma(this.options.animation),a=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(","),n=e.sharedClips[a],l=e.sharedClips[a+"m"];if(t&&i){let c=e.getClipBox(this);if(n)n.attr("height",c.height);else{c.width=0,r&&(c.x=e.plotHeight),n=e.renderer.clipRect(c),e.sharedClips[a]=n;let d={x:-99,y:-99,width:r?e.plotWidth+199:99,height:r?99:e.plotHeight+199};l=e.renderer.clipRect(d),e.sharedClips[a+"m"]=l}i.clip(n),s==null||s.clip(l)}else if(n&&!n.hasClass("highcharts-animating")){let c=e.getClipBox(this),d=o.step;(s!=null&&s.element.childNodes.length||e.series.length>1)&&(o.step=function(p,u){d&&d.apply(u,arguments),u.prop==="width"&&(l!=null&&l.element)&&l.attr(r?"height":"width",p+99)}),n.addClass("highcharts-animating").animate(c,o)}}afterAnimate(){this.setClip(),pr(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,gt(this,"afterAnimate")}drawPoints(t=this.points){let e,i,s,r,o,a,n,l=this.chart,c=l.styledMode,{colorAxis:d,options:p}=this,u=p.marker,g=p.nullInteraction,x=this[this.specialGroup||"markerGroup"],m=this.xAxis,f=ct(u.enabled,!m||!!m.isRadial||null,this.closestPointRangePx>=u.enabledThreshold*u.radius);if(u.enabled!==!1||this._hasPointMarkers)for(e=0;e<t.length;e++){r=(s=(i=t[e]).graphic)?"animate":"attr",o=i.marker||{},a=!!i.marker;let y=i.isNull;if((f&&!bt(o.enabled)||o.enabled)&&(!y||g)&&i.visible!==!1){let b=ct(o.symbol,this.symbol,"rect");n=this.markerAttribs(i,i.selected&&"select"),this.enabledDataSorting&&(i.startXPos=m.reversed?-(n.width||0):m.width);let w=i.isInside!==!1;if(!s&&w&&((n.width||0)>0||i.hasImage)&&(i.graphic=s=l.renderer.symbol(b,n.x,n.y,n.width,n.height,a?o:u).add(x),this.enabledDataSorting&&l.hasRendered&&(s.attr({x:i.startXPos}),r="animate")),s&&r==="animate"&&s[w?"show":"hide"](w).animate(n),s){let v=this.pointAttribs(i,c||!i.selected?void 0:"select");c?d&&s.css({fill:v.fill}):s[r](v)}s&&s.addClass(i.getClassName(),!0)}else s&&(i.graphic=s.destroy())}}markerAttribs(t,e){let i=this.options,s=i.marker,r=t.marker||{},o=r.symbol||s.symbol,a={},n,l,c=ct(r.radius,s==null?void 0:s.radius);e&&(n=s.states[e],l=r.states&&r.states[e],c=ct(l==null?void 0:l.radius,n==null?void 0:n.radius,c&&c+((n==null?void 0:n.radiusPlus)||0))),t.hasImage=o&&o.indexOf("url")===0,t.hasImage&&(c=0);let d=t.pos();return Mt(c)&&d&&(i.crisp&&(d[0]=Nd(d[0],t.hasImage?0:o==="rect"?(s==null?void 0:s.lineWidth)||0:1)),a.x=d[0]-c,a.y=d[1]-c),c&&(a.width=a.height=2*c),a}pointAttribs(t,e){var f;let i=this.options,s=i.marker,r=t==null?void 0:t.options,o=(r==null?void 0:r.marker)||{},a=r==null?void 0:r.color,n=t==null?void 0:t.color,l=(f=t==null?void 0:t.zone)==null?void 0:f.color,c,d,p=this.color,u,g,x=ct(o.lineWidth,s.lineWidth),m=t!=null&&t.isNull&&i.nullInteraction?0:1;return p=a||l||n||p,u=o.fillColor||s.fillColor||p,g=o.lineColor||s.lineColor||p,e=e||"normal",c=s.states[e]||{},x=ct((d=o.states&&o.states[e]||{}).lineWidth,c.lineWidth,x+ct(d.lineWidthPlus,c.lineWidthPlus,0)),u=d.fillColor||c.fillColor||u,g=d.lineColor||c.lineColor||g,{stroke:g,"stroke-width":x,fill:u,opacity:m=ct(d.opacity,c.opacity,m)}}destroy(t){var n,l;let e,i,s=this,r=s.chart,o=/AppleWebKit\/533/.test(Bd.navigator.userAgent),a=s.data||[];for(gt(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(c){i=s[c],i!=null&&i.series&&(va(i.series,s),i.isDirty=i.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)(l=(n=a[e])==null?void 0:n.destroy)==null||l.call(n);for(let c of s.zones)Rd(c,void 0,!0);W.clearTimeout(s.animationTimeout),pr(s,function(c,d){c instanceof Jt&&!c.survive&&c[o&&d==="group"?"hide":"destroy"]()}),r.hoverSeries===s&&(r.hoverSeries=void 0),va(r.series,s),r.orderItems("series"),pr(s,function(c,d){t&&d==="hcEvents"||delete s[d]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:r,xAxis:o,yAxis:a,zoneAxis:n}=this,{inverted:l,renderer:c}=e,d=this[`${n}Axis`],{isXAxis:p,len:u=0,minPointOffset:g=0}=d||{},x=((i==null?void 0:i.strokeWidth())||0)/2+1,m=(f,y=0,b=0)=>{l&&(b=u-b);let{translated:w=0,lineClip:v}=f,k=b-w;v==null||v.push(["L",y,Math.abs(k)<x?b-x*(k<=0?-1:1):w])};if(s.length&&(i||t)&&d&&Mt(d.min)){let f=d.getExtremes().max+g,y=v=>{v.forEach((k,S)=>{(k[0]==="M"||k[0]==="L")&&(v[S]=[k[0],p?u-k[1]:k[1],p?k[2]:u-k[2]])})};if(s.forEach(v=>{v.lineClip=[],v.translated=ya(d.toPixels(ct(v.value,f),!0)||0,0,u)}),i&&!this.showLine&&i.hide(),t&&t.hide(),n==="y"&&r.length<o.len)for(let v of r){let{plotX:k,plotY:S,zone:M}=v,T=M&&s[s.indexOf(M)-1];M&&m(M,k,S),T&&m(T,k,S)}let b=[],w=d.toPixels(d.getExtremes().min-g,!0);s.forEach(v=>{var G,R;let k=v.lineClip||[],S=Math.round(v.translated||0);o.reversed&&k.reverse();let{clip:M,simpleClip:T}=v,A=0,L=0,I=o.len,E=a.len;p?(A=S,I=w):(L=S,E=w);let z=[["M",A,L],["L",I,L],["L",I,E],["L",A,E],["Z"]],B=[z[0],...k,z[1],z[2],...b,z[3],z[4]];b=k.reverse(),w=S,l&&(y(B),t&&y(z)),M?(M.animate({d:B}),T==null||T.animate({d:z})):(M=v.clip=c.path(B),t&&(T=v.simpleClip=c.path(z))),i&&((G=v.graph)==null||G.clip(M)),t&&((R=v.area)==null||R.clip(T))})}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,r){let o=this[t],a=!o,n={visibility:i,zIndex:s||.1};return bt(this.opacity)&&!this.chart.styledMode&&this.state!=="inactive"&&(n.opacity=this.opacity),o||(this[t]=o=this.chart.renderer.g().add(r)),o.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(bt(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(o.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),o.attr(n)[a?"attr":"animate"](this.getPlotBox(e)),o}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,r=s.inverted&&!s.polar&&e&&this.invertible&&t==="series";return s.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,rotation:90*!!r,rotationOriginX:r?(e.len-i.len)/2:0,rotationOriginY:r?(e.len+i.len)/2:0,scaleX:r?-1:1,scaleY:1}}removeEvents(t){let{eventsToUnbind:e}=this;t||jd(this),e.length&&(e.forEach(i=>{i()}),e.length=0)}render(){var c,d,p,u,g;let t=this,{chart:e,options:i,hasRendered:s}=t,r=ma(i.animation),o=t.visible?"inherit":"hidden",a=i.zIndex,n=e.seriesGroup,l=t.finishedAnimating?0:r.duration;gt(this,"render"),t.plotGroup("group","series",o,a,n),t.markerGroup=t.plotGroup("markerGroup","markers",o,a,n),i.clip!==!1&&t.setClip(),l&&((c=t.animate)==null||c.call(t,!0)),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),(d=t.drawDataLabels)==null||d.call(t),(p=t.redrawPoints)==null||p.call(t),i.enableMouseTracking&&((u=t.drawTracker)==null||u.call(t)),l&&((g=t.animate)==null||g.call(t)),s||(l&&r.defer&&(l+=r.defer),t.animationTimeout=Sa(()=>{t.afterAnimate()},l||0)),t.isDirty=!1,t.hasRendered=!0,gt(t,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options,s=i.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,Sa(function(){e.kdTree=function r(o,a,n){let l,c,d=o==null?void 0:o.length;if(d)return l=e.kdAxisArray[a%n],o.sort((p,u)=>(p[l]||0)-(u[l]||0)),{point:o[c=Math.floor(d/2)],left:r(o.slice(0,c),a+1,n),right:r(o.slice(c+1),a+1,n)}}(e.getValidPoints(void 0,!e.directTouch,i==null?void 0:i.nullInteraction),s,s),e.buildingKdTree=!1},i.kdNow||(t==null?void 0:t.type)==="touchstart"?0:1)}searchKDTree(t,e,i,s,r){let o=this,[a,n]=this.kdAxisArray,l=e?"distX":"dist",c=(o.options.findNearestPointBy||"").indexOf("y")>-1?2:1,d=!!o.isBubble,p=s||((g,x,m)=>{let f=g[m]||0,y=x[m]||0;return[f===y&&g.index>x.index||f<y?g:x,!1]}),u=r||((g,x)=>g<x);if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function g(x,m,f,y){var A;let b=m.point,w=o.kdAxisArray[f%y],v=b,k=!1;(function(L,I){var q;let E=L[a],z=I[a],B=bt(E)&&bt(z)?E-z:null,G=L[n],R=I[n],j=bt(G)&&bt(R)?G-R:0,K=d&&((q=I.marker)==null?void 0:q.radius)||0;I.dist=Math.sqrt((B&&B*B||0)+j*j)-K,I.distX=bt(B)?Math.abs(B)-K:Number.MAX_VALUE})(x,b);let S=(x[w]||0)-(b[w]||0)+(d&&((A=b.marker)==null?void 0:A.radius)||0),M=S<0?"left":"right",T=S<0?"right":"left";return m[M]&&([v,k]=p(b,g(x,m[M],f+1,y),l)),m[T]&&u(Math.sqrt(S*S),v[l],k)&&(v=p(v,g(x,m[T],f+1,y),l)[0]),v}(t,this.kdTree,c,c)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return i==="between"&&(i=e.reversed?-.5:.5),Mt(i)?i*(t.pointRange||e.pointRange):0}isPointInside(t){let{chart:e,xAxis:i,yAxis:s}=this,{plotX:r=-1,plotY:o=-1}=t;return o>=0&&o<=(s?s.len:e.plotHeight)&&r>=0&&r<=(i?i.len:e.plotWidth)}drawTracker(){var p;let t=this,e=t.options,i=e.trackByArea,s=[].concat((i?t.areaPath:t.graphPath)||[]),r=t.chart,o=r.pointer,a=r.renderer,n=((p=r.options.tooltip)==null?void 0:p.snap)||0,l=()=>{e.enableMouseTracking&&r.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(Dd?1e-4:.002)+")",d=t.tracker;d?d.attr({d:s}):t.graph&&(t.tracker=d=a.path(s).attr({visibility:t.visible?"inherit":"hidden",zIndex:2}).addClass(i?"highcharts-tracker-area":"highcharts-tracker-line").add(t.group),r.styledMode||d.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:c,fill:i?c:"none","stroke-width":t.graph.strokeWidth()+(i?0:2*n)}),[t.tracker,t.markerGroup,t.dataLabelsGroup].forEach(u=>{u&&(u.addClass("highcharts-tracker").on("mouseover",l).on("mouseout",g=>{o==null||o.onTrackerMouseOut(g)}),e.cursor&&!r.styledMode&&u.css({cursor:e.cursor}),u.on("touchstart",l))})),gt(this,"afterDrawTracker")}addPoint(t,e,i,s,r){let o,a,n=this.options,{chart:l,data:c,dataTable:d,xAxis:p}=this,u=(p==null?void 0:p.hasNames)&&p.names,g=n.data,x=this.getColumn("x");e=ct(e,!0);let m={series:this};this.pointClass.prototype.applyOptions.apply(m,[t]);let f=m.x;if(a=x.length,this.requireSorting&&f<x[a-1])for(o=!0;a&&x[a-1]>f;)a--;d.setRow(m,a,!0,{addColumns:!1}),u&&m.name&&(u[f]=m.name),g==null||g.splice(a,0,t),(o||this.processedData)&&(this.data.splice(a,0,null),this.processData()),n.legendType==="point"&&this.generatePoints(),i&&(c[0]&&c[0].remove?c[0].remove(!1):([c,g].filter(bt).forEach(y=>{y.shift()}),d.deleteRows(0))),r!==!1&&gt(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,e&&l.redraw(s)}removePoint(t,e,i){let s=this,{chart:r,data:o,points:a,dataTable:n}=s,l=o[t],c=function(){[(a==null?void 0:a.length)===o.length?a:void 0,o,s.options.data].filter(bt).forEach(d=>{d.splice(t,1)}),n.deleteRows(t),l==null||l.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&r.redraw()};Ed(i,r),e=ct(e,!0),l?l.firePointEvent("remove",null,c):c()}remove(t,e,i,s){let r=this,o=r.chart;function a(){r.destroy(s),o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(s),ct(t,!0)&&o.redraw(e)}i!==!1?gt(r,"remove",null,a):a()}update(t,e){var f,y;gt(this,"update",{options:t=Wd(t,this.userOptions)});let i=this,s=i.chart,r=i.userOptions,o=i.initialType||i.type,a=s.options.plotOptions,n=qe[o].prototype,l=i.finishedAnimating&&{animation:!1},c={},d,p,u=qt.keepProps.slice(),g=t.type||r.type||s.options.chart.type,x=!(this.hasDerivedData||g&&g!==this.type||t.keys!==void 0||t.pointStart!==void 0||t.pointInterval!==void 0||t.relativeXValue!==void 0||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some(b=>i.hasOptionChanged(b)));g=g||o,x?(u.push.apply(u,qt.keepPropsForPoints),t.visible!==!1&&u.push("area","graph"),i.parallelArrays.forEach(function(b){u.push(b+"Data")}),t.data&&(t.dataSorting&&Ze(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=mi(r,{index:r.index===void 0?i.index:r.index,pointStart:((f=a==null?void 0:a.series)==null?void 0:f.pointStart)??r.pointStart??i.getColumn("x")[0]},!x&&{data:i.options.data},t,l),x&&t.data&&(t.data=i.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach(function(b){u[b]=i[b],delete i[b]});let m=!1;if(qe[g]){if(m=g!==i.type,i.remove(!1,!1,!1,!0),m)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,qe[g].prototype);else{let b=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(p in n)i[p]=void 0;Ze(i,qe[g].prototype),b?i.hcEvents=b:delete i.hcEvents}}else ns(17,!0,s,{missingModuleFor:g});if(u.forEach(function(b){i[b]=u[b]}),i.init(s,t),x&&this.points)for(let b of((d=i.options).visible===!1?(c.graphic=1,c.dataLabel=1):(this.hasMarkerChanged(d,r)&&(c.graphic=1),(y=i.hasDataLabels)!=null&&y.call(i)||(c.dataLabel=1)),this.points))b!=null&&b.series&&(b.resolveColor(),Object.keys(c).length&&b.destroyElements(c),d.showInLegend===!1&&b.legendItem&&s.legend.destroyItem(b));i.initialType=o,s.linkSeries(),s.setSortedData(),m&&i.linkedSeries.length&&(i.isDirtyData=!0),gt(this,"afterUpdate"),ct(e,!0)&&s.redraw(!!x&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){var a,n;let e=this.chart,i=this.options[t],s=e.options.plotOptions,r=this.userOptions[t],o=ct((a=s==null?void 0:s[this.type])==null?void 0:a[t],(n=s==null?void 0:s.series)==null?void 0:n[t]);return r&&!bt(o)?i!==r:i!==ct(o,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries,i=t.pointer;i==null||i.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&gt(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&gt(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach(function(r){r.setState("",!0)})}setState(t,e){let i=this,s=i.options,r=i.graph,o=s.inactiveOtherPoints,a=s.states,n=ct(a[t||"normal"]&&a[t||"normal"].animation,i.chart.options.chart.animation),l=s.lineWidth,c=s.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(d){d&&(i.state&&d.removeClass("highcharts-series-"+i.state),t&&d.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(a[t]&&a[t].enabled===!1)return;if(t&&(l=a[t].lineWidth||l+(a[t].lineWidthPlus||0),c=ct(a[t].opacity,c)),r&&!r.dashstyle&&Mt(l))for(let d of[r,...this.zones.map(p=>p.graph)])d==null||d.animate({"stroke-width":l},n);o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(d){d&&d.animate({opacity:c},n)})}e&&o&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach(function(e){e.setState&&e.setState(t)})}setVisible(t,e){var n;let i=this,s=i.chart,r=s.options.chart.ignoreHiddenSeries,o=i.visible;i.visible=t=i.options.visible=i.userOptions.visible=t===void 0?!o:t;let a=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(l=>{var c;(c=i[l])==null||c[a]()}),(s.hoverSeries===i||((n=s.hoverPoint)==null?void 0:n.series)===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(l=>{l.options.stacking&&l.visible&&(l.isDirty=!0)}),i.linkedSeries.forEach(l=>{l.setVisible(t,!1)}),r&&(s.isDirtyBox=!0),gt(i,a),e!==!1&&s.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=t===void 0?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),gt(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){var i;(i=ga[this.options.legendSymbol||"rectangle"])==null||i.call(this,t,e)}}qt.defaultOptions={lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},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(){let{numberFormatter:h}=this.series.chart;return typeof this.y!="number"?"":h(this.y,-1)},padding:5,style:{fontSize:"0.7em",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:150},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:150},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},qt.types=ut.seriesTypes,qt.registerType=ut.registerSeriesType,qt.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],qt.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Ze(qt.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:pe,requireSorting:!0,sorted:!0}),ut.series=qt;let Ht=qt,{animObject:Gd,setAnimation:Yd}=At,{registerEventOptions:Ta}=Vi,{composed:$d,marginNames:Ca}=O,{distribute:Vd}=Ni,{format:Ud}=jt,{addEvent:ls,createElement:qd,css:Zd,defined:ur,discardElement:Kd,find:_d,fireEvent:ae,isNumber:Aa,merge:Pe,pick:Yt,pushUnique:Jd,relativeLength:Qd,stableSort:tc,syncTimeout:ec}=W;class gr{constructor(t,e){this.allItems=[],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.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),Ta(this,e),ls(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),ls(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=Yt(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=Pe(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=Yt(t.symbolWidth,16),this.pages=[],this.proximate=t.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(Pe(!0,this.options,t)),"events"in this.options&&Ta(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,Yt(e,!0)&&i.redraw(),ae(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){var l;let i=t.color,{area:s,group:r,label:o,line:a,symbol:n}=t.legendItem||{};if((t instanceof Ht||t instanceof pe)&&(t.color=((l=t.options)==null?void 0:l.legendSymbolColor)||i),r==null||r[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:c={}}=this,d=c.color,{fillColor:p,fillOpacity:u,lineColor:g,marker:x}=t.options,m=f=>(!e&&(f.fill&&(f.fill=d),f.stroke&&(f.stroke=d)),f);o==null||o.css(Pe(e?this.itemStyle:c)),a==null||a.attr(m({stroke:g||t.color})),n&&n.attr(m(x&&n.isMarker?t.pointAttribs():{fill:t.color})),s==null||s.attr(m({fill:p||t.color,"fill-opacity":p?1:u??.75}))}t.color=i,ae(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},r=this.options,o=r.symbolPadding,a=!r.rtl,n=t.checkbox;if(e!=null&&e.element){let l={translateX:a?i:this.legendWidth-i-2*o-4,translateY:s};e[ur(e.translateY)?"animate":"attr"](l,void 0,()=>{ae(this,"afterPositionItem",{item:t})})}n&&(n.x=i,n.y=s)}destroyItem(t){let e=t.checkbox,i=t.legendItem||{};for(let s of["group","label","line","symbol"])i[s]&&(i[s]=i[s].destroy());e&&Kd(e),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){var r;let t,e=(r=this.group)==null?void 0:r.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(o){let a,n=o.checkbox;n&&(a=t+s+n.y+(this.scrollOffset||0)+3,Zd(n,{left:e.translateX+o.checkboxOffset+n.x-20+"px",top:a+"px",display:this.proximate||a>t-6&&a<t+i-6?"":"none"}))},this))}renderTitle(){let t=this.options,e=this.padding,i=t.title,s,r=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,void 0,void 0,void 0,t.useHTML,void 0,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),r=(s=this.title.getBBox()).height,this.offsetWidth=s.width,this.contentGroup.attr({translateY:r})),this.titleHeight=r}setText(t){let e=this.options;t.legendItem.label.attr({text:e.labelFormat?Ud(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})}renderItem(t){var S;let e=t.legendItem=t.legendItem||{},i=this.chart,s=i.renderer,r=this.options,o=r.layout==="horizontal",a=this.symbolWidth,n=r.symbolPadding||0,l=this.itemStyle,c=this.itemHiddenStyle,d=o?Yt(r.itemDistance,20):0,p=!r.rtl,u=!t.series,g=!u&&t.series.drawLegendSymbol?t.series:t,x=g.options,m=!!this.createCheckboxForItem&&x&&x.showCheckbox,f=r.useHTML,y=t.options.className,b=e.label,w=a+n+d+20*!!m;!b&&(e.group=s.g("legend-item").addClass("highcharts-"+g.type+"-series highcharts-color-"+t.colorIndex+(y?" "+y:"")+(u?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),e.label=b=s.text("",p?a+n:-n,this.baseline||0,f),i.styledMode||b.css(Pe(t.visible?l:c)),b.attr({align:p?"left":"right",zIndex:2}).add(e.group),!this.baseline&&(this.fontMetrics=s.fontMetrics(b),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,b.attr("y",this.baseline),this.symbolHeight=Yt(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=Yt(r.symbolWidth,Math.max(this.symbolHeight,16)),w=this.symbolWidth+n+d+20*!!m,p&&b.attr("x",this.symbolWidth+n))),g.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,b,f)),m&&!t.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),(i.styledMode||!l.width)&&b.css({width:(r.itemWidth||this.widthOption||i.spacingBox.width)-w+"px"}),this.setText(t);let v=b.getBBox(),k=((S=this.fontMetrics)==null?void 0:S.h)||0;t.itemWidth=t.checkboxOffset=r.itemWidth||e.labelWidth||v.width+w,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(v.height>1.5*k?v.height:k))}layoutItem(t){let e=this.options,i=this.padding,s=e.layout==="horizontal",r=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,n=s?Yt(e.itemDistance,20):0,l=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+c>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+o),this.lastLineHeight=0),this.lastItemY=a+this.itemY+o,this.lastLineHeight=Math.max(r,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,s?this.itemX+=c:(this.itemY+=a+r+o,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:n):c)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach(function(e){var s;let i=e==null?void 0:e.options;e&&Yt(i.showInLegend,!ur(i.linkedTo)&&void 0,!0)&&(t=t.concat(((s=e.legendItem)==null?void 0:s.labels)||(i.legendType==="point"?e.data:e)))}),ae(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)}adjustMargins(t,e){let i=this.chart,s=this.options,r=this.getAlignment();r&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(o,a){o.test(r)&&!ur(t[a])&&(i[Ca[a]]=Math.max(i[Ca[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+Yt(s.margin,12)+e[a]+(i.titleOffset[a]||0)))})}proximatePositions(){let t,e=this.chart,i=[],s=this.options.align==="left";for(let r of(this.allItems.forEach(function(o){let a,n,l=s,c,d;o.yAxis&&(o.xAxis.options.reversed&&(l=!l),o.points&&(a=_d(l?o.points:o.points.slice(0).reverse(),function(p){return Aa(p.plotY)})),n=this.itemMarginTop+o.legendItem.label.getBBox().height+this.itemMarginBottom,d=o.yAxis.top-e.plotTop,c=o.visible?(a?a.plotY:o.yAxis.height)+(d-.3*n):d+o.yAxis.height,i.push({target:c,size:n,item:o}))},this),Vd(i,e.plotHeight)))t=r.item.legendItem||{},Aa(r.pos)&&(t.y=e.plotTop-e.spacing[0]+r.pos)}render(){let t=this.chart,e=t.renderer,i=this.options,s=this.padding,r=this.getAllItems(),o,a,n,l=this.group,c,d=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Qd(i.width,t.spacingBox.width-s),c=t.spacingBox.width-2*s-i.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(c/=2),this.maxLegendWidth=this.widthOption||c,l||(this.group=l=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(l),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),tc(r,(p,u)=>{var g,x;return(((g=p.options)==null?void 0:g.legendIndex)||0)-(((x=u.options)==null?void 0:x.legendIndex)||0)}),i.reversed&&r.reverse(),this.allItems=r,this.display=o=!!r.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,r.forEach(this.renderItem,this),r.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+s,n=this.lastItemY+this.lastLineHeight+this.titleHeight,n=this.handleOverflow(n)+s,d||(this.box=d=e.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(l)),t.styledMode||d.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),a>0&&n>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:a,height:n},d.strokeWidth())),l[o?"show":"hide"](),t.styledMode&&l.getStyle("display")==="none"&&(a=n=0),this.legendWidth=a,this.legendHeight=n,o&&this.align(),this.proximate||this.positionItems(),ae(this,"afterRender")}align(t=this.chart.spacingBox){let e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=Pe(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(Pe(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e=this,i=this.chart,s=i.renderer,r=this.options,o=r.y,a=r.verticalAlign==="top",n=this.padding,l=r.maxHeight,c=r.navigation,d=Yt(c.animation,!0),p=c.arrowSize||12,u=this.pages,g=this.allItems,x=function(M){typeof M=="number"?S.attr({height:M}):S&&(e.clipRect=S.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=M?"rect("+n+"px,9999px,"+(n+M)+"px,0)":"auto")},m=function(M){return e[M]=s.circle(0,0,1.3*p).translate(p/2,p/2).add(k),i.styledMode||e[M].attr("fill","rgba(0,0,0,0.0001)"),e[M]},f,y,b,w,v=i.spacingBox.height+(a?-o:o)-n,k=this.nav,S=this.clipRect;return r.layout!=="horizontal"||r.verticalAlign==="middle"||r.floating||(v/=2),l&&(v=Math.min(v,l)),u.length=0,t&&v>0&&t>v&&c.enabled!==!1?(this.clipHeight=f=Math.max(v-20-this.titleHeight-n,0),this.currentPage=Yt(this.currentPage,1),this.fullHeight=t,g.forEach((M,T)=>{let A=(b=M.legendItem||{}).y||0,L=Math.round(b.label.getBBox().height),I=u.length;(!I||A-u[I-1]>f&&(y||A)!==u[I-1])&&(u.push(y||A),I++),b.pageIx=I-1,y&&w&&(w.pageIx=I-1),T===g.length-1&&A+L-u[I-1]>f&&A>u[I-1]&&(u.push(A),b.pageIx=I),A!==y&&(y=A),w=b}),S||(S=e.clipRect=s.clipRect(0,n-2,9999,0),e.contentGroup.clip(S)),x(f),k||(this.nav=k=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,p,p).add(k),m("upTracker").on("click",function(){e.scroll(-1,d)}),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&c.style&&this.pager.css(c.style),this.pager.add(k),this.down=s.symbol("triangle-down",0,0,p,p).add(k),m("downTracker").on("click",function(){e.scroll(1,d)})),e.scroll(0),t=v):k&&(x(),this.nav=k.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,r=s.length,o=this.clipHeight,a=this.options.navigation,n=this.pager,l=this.padding,c=this.currentPage+t;c>r&&(c=r),c>0&&(e!==void 0&&Yd(e,i),this.nav.attr({translateX:l,translateY:o+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(d){d.attr({class:c===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),n.attr({text:c+"/"+r}),[this.down,this.downTracker].forEach(function(d){d.attr({x:18+this.pager.getBBox().width,class:c===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:c===1?a.inactiveColor:a.activeColor}),this.upTracker.css({cursor:c===1?"default":"pointer"}),this.down.attr({fill:c===r?a.inactiveColor:a.activeColor}),this.downTracker.css({cursor:c===r?"default":"pointer"})),this.scrollOffset=-s[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes(),ec(()=>{ae(this,"afterScroll",{currentPage:c})},Gd(Yt(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let s=this,r=t.legendItem||{},o=s.chart.renderer.boxWrapper,a=t instanceof pe,n=t instanceof Ht,l="highcharts-legend-"+(a?"point":"series")+"-active",c=s.chart.styledMode,d=i?[e,r.symbol]:[r.group],p=u=>{s.allItems.forEach(g=>{t!==g&&[g].concat(g.linkedSeries||[]).forEach(x=>{x.setState(u,!a)})})};for(let u of d)u&&u.on("mouseover",function(){t.visible&&p("inactive"),t.setState("hover"),t.visible&&o.addClass(l),c||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(Pe(t.visible?s.itemStyle:s.itemHiddenStyle)),p(""),o.removeClass(l),t.setState()}).on("click",function(g){let x=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")};o.removeClass(l),ae(s,"itemClick",{browserEvent:g,legendItem:t},x),a?t.firePointEvent("legendItemClick",{browserEvent:g}):n&&ae(t,"legendItemClick",{browserEvent:g})})}createCheckboxForItem(t){t.checkbox=qd("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),ls(t.checkbox,"click",function(e){let i=e.target;ae(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}(function(h){h.compose=function(t){Jd($d,"Core.Legend")&&ls(t,"beforeMargins",function(){this.legend=new h(this,this.options.legend)})}})(gr||(gr={}));let Pa=gr,{animate:fr,animObject:ic,setAnimation:mr}=At,{defaultOptions:xr}=Ft,{numberFormat:sc}=jt,{registerEventOptions:Oa}=Vi,{charts:Oe,doc:xi,marginNames:La,svg:rc,win:Ea}=O,{seriesTypes:yr}=ut,{addEvent:br,attr:Ia,createElement:vr,css:Zt,defined:ge,diffObjects:Da,discardElement:oc,erase:ac,error:kr,extend:fe,find:wr,fireEvent:it,getAlignFactor:nc,getStyle:Mr,isArray:lc,isNumber:Ke,isObject:hc,isString:hs,merge:ie,objectEach:Sr,pick:Pt,pInt:dc,relativeLength:Ba,removeEvent:za,splat:ds,syncTimeout:cc,uniqueKey:pc}=W;class me{static chart(t,e,i){return new me(t,e,i)}constructor(t,e,i){this.sharedClips={};let s=[...arguments];(hs(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:Pt(t.zoomType,e.type),key:Pt(t.zoomKey,e.key),pinchType:Pt(t.pinchType,e.pinchType),singleTouch:Pt(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:ie(e.resetButton,t.resetZoomButton)}}init(t,e){it(this,"init",{args:arguments},function(){var o;let i=ie(xr,t),s=i.chart,r=this.renderTo||s.renderTo;this.userOptions=fe({},t),(this.renderTo=hs(r)?xi.getElementById(r):r)||kr(13,!0,this),this.margin=[],this.spacing=[],this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.locale=i.lang.locale??((o=this.renderTo.closest("[lang]"))==null?void 0:o.lang),this.time=new Is(fe(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||sc).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=Oe.length,Oe.push(this),O.chartCount++,Oa(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),it(this,"afterInit"),this.firstRender()})}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=yr[i];s||kr(17,!0,this,{missingModuleFor:i});let r=new s;return typeof r.init=="function"&&r.init(this,t),r}setSortedData(){this.getSeriesOrderByLinks().forEach(function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0})}orderItems(t,e=0){let i=this[t],s=this.options[t]=ds(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?ds(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),r.splice(e)),i)for(let o=e,a=i.length;o<a;++o){let n=i[o];n&&(n.index=o,n instanceof Ht&&(n.name=n.getName()),n.options.isInternal||(s[o]=n.options,r[o]=n.userOptions))}}getClipBox(t,e){var c,d;let i=this.inverted,{xAxis:s,yAxis:r}=t||{},{x:o,y:a,width:n,height:l}=ie(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&(n=s.len),r&&r.len!==this.plotSizeY&&(l=r.len),i&&!t.invertible&&([n,l]=[l,n])),e&&(o+=((c=i?r:s)==null?void 0:c.pos)??this.plotLeft,a+=((d=i?s:r)==null?void 0:d.pos)??this.plotTop),{x:o,y:a,width:n,height:l}}isInsidePlot(t,e,i={}){var m;let{inverted:s,plotBox:r,plotLeft:o,plotTop:a,scrollablePlotBox:n}=this,{scrollLeft:l=0,scrollTop:c=0}=i.visiblePlotOnly&&((m=this.scrollablePlotArea)==null?void 0:m.scrollingContainer)||{},d=i.series,p=i.visiblePlotOnly&&n||r,u=i.inverted?e:t,g=i.inverted?t:e,x={x:u,y:g,isInsidePlot:!0,options:i};if(!i.ignoreX){let f=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:o,len:1/0},y=i.paneCoordinates?f.pos+u:o+u;y>=Math.max(l+o,f.pos)&&y<=Math.min(l+o+p.width,f.pos+f.len)||(x.isInsidePlot=!1)}if(!i.ignoreY&&x.isInsidePlot){let f=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:a,len:1/0},y=i.paneCoordinates?f.pos+g:a+g;y>=Math.max(c+a,f.pos)&&y<=Math.min(c+a+p.height,f.pos+f.len)||(x.isInsidePlot=!1)}return it(this,"afterIsInsidePlot",x),x.isInsidePlot}redraw(t){it(this,"beforeRedraw");let e=this.hasCartesianSeries?this.axes:this.colorAxis||[],i=this.series,s=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.renderer,n=a.isHidden(),l=[],c,d,p,u=this.isDirtyBox,g=this.isDirtyLegend,x;for(a.rootFontSize=a.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),mr(!!this.hasRendered&&t,this),n&&this.temporaryDisplay(),this.layOutTitles(!1),p=i.length;p--;)if(((x=i[p]).options.stacking||x.options.centerInCategory)&&(d=!0,x.isDirty)){c=!0;break}if(c)for(p=i.length;p--;)(x=i[p]).options.stacking&&(x.isDirty=!0);i.forEach(function(m){m.isDirty&&(m.options.legendType==="point"?(typeof m.updateTotals=="function"&&m.updateTotals(),g=!0):o&&(o.labelFormatter||o.labelFormat)&&(g=!0)),m.isDirtyData&&it(m,"updatedData")}),g&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),d&&this.getStacks(),e.forEach(function(m){m.updateNames(),m.setScale()}),this.getMargins(),e.forEach(function(m){m.isDirty&&(u=!0)}),e.forEach(function(m){let f=m.min+","+m.max;m.extKey!==f&&(m.extKey=f,l.push(function(){it(m,"afterSetExtremes",fe(m.eventArgs,m.getExtremes())),delete m.eventArgs})),(u||d)&&m.redraw()}),u&&this.drawChartBox(),it(this,"predraw"),i.forEach(function(m){(u||m.isDirty)&&m.visible&&m.redraw(),m.isDirtyData=!1}),s&&s.reset(!0),a.draw(),it(this,"redraw"),it(this,"render"),n&&this.temporaryDisplay(!0),l.forEach(function(m){m.call()})}get(t){let e=this.series;function i(r){return r.id===t||r.options&&r.options.id===t}let s=wr(this.axes,i)||wr(this.series,i);for(let r=0;!s&&r<e.length;r++)s=wr(e[r].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(it(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=ds(t[e]||{}))new $e(this,i,e);it(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(i=>{Pt(i.selectedStaging,i.selected)&&t.push(i)}),t),[])}getSelectedSeries(){return this.series.filter(t=>t.selected)}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){var o;let i=this,s=this.options[t]=ie(this.options[t],e),r=this[t];r&&e&&(this[t]=r=r.destroy()),s&&!r&&((r=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).css({textOverflow:"ellipsis",whiteSpace:"nowrap"}).add()).update=function(a,n){i.applyDescription(t,a),i.layOutTitles(n)},this.styledMode||r.css(fe(t==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),r.textPxLength=r.getBBox().width,r.css({whiteSpace:(o=s.style)==null?void 0:o.whiteSpace}),this[t]=r)}layOutTitles(t=!0){var a,n,l,c;let e=[0,0,0],{options:i,renderer:s,spacingBox:r}=this;["title","subtitle","caption"].forEach(d=>{var m;let p=this[d],u=this.options[d],g=ie(r),x=(p==null?void 0:p.textPxLength)||0;if(p&&u){it(this,"layOutTitle",{alignTo:g,key:d,textPxLength:x});let f=s.fontMetrics(p),y=f.b,b=f.h,w=u.verticalAlign||"top",v=w==="top",k=v&&u.minScale||1,S=d==="title"?v?-3:0:v?e[0]+2:0,M=Math.min(g.width/x,1),T=Math.max(k,M),A=ie({y:w==="bottom"?y:S+y},{align:d==="title"?M<k?"left":"center":(m=this.title)==null?void 0:m.alignValue},u),L=(u.width||(M>k?this.chartWidth:g.width)/T)+"px";p.alignValue!==A.align&&(p.placed=!1);let I=Math.round(p.css({width:L}).getBBox(u.useHTML).height);if(A.height=I,p.align(A,!1,g).attr({align:A.align,scaleX:T,scaleY:T,"transform-origin":`${g.x+x*T*nc(A.align)} ${b}`}),!u.floating){let E=I*(I<1.2*b?1:T);w==="top"?e[0]=Math.ceil(e[0]+E):w==="bottom"&&(e[2]=Math.ceil(e[2]+E))}}},this),e[0]&&(((a=i.title)==null?void 0:a.verticalAlign)||"top")==="top"&&(e[0]+=((n=i.title)==null?void 0:n.margin)||0),e[2]&&((l=i.caption)==null?void 0:l.verticalAlign)==="bottom"&&(e[2]+=((c=i.caption)==null?void 0:c.margin)||0);let o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,it(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){let t=[].map.call(this.renderTo.children,i=>{if(i!==this.container){let s=i.style.display;return i.style.display="none",[i,s]}}),e={width:Mr(this.renderTo,"width",!0)||0,height:Mr(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([i,s])=>{i.style.display=s}),e}getChartSize(){var o;let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox(),r=s.height<=1||!((o=this.renderTo.parentElement)!=null&&o.style.height)&&this.renderTo.style.height==="100%";this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,Ba(i,this.chartWidth)||(r?400:s.height)),this.containerBox=s}temporaryDisplay(t){let e=this.renderTo,i;if(t)for(;e!=null&&e.style;)e.hcOrigStyle&&(Zt(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(xi.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e!=null&&e.style&&(xi.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,xi.body.appendChild(e)),(Mr(e,"display",!1)==="none"||e.hcOricDetached)&&(e.hcOrigStyle={display:e.style.display,height:e.style.height,overflow:e.style.overflow},i={display:"block",overflow:"hidden"},e!==this.renderTo&&(i.height=0),Zt(e,i),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==xi.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){var p,u;let t,e=this.options,i=e.chart,s="data-highcharts-chart",r=pc(),o=this.renderTo,a=dc(Ia(o,s));Ke(a)&&Oe[a]&&Oe[a].hasRendered&&Oe[a].destroy(),Ia(o,s,this.index),o.innerHTML=lt.emptyHTML,i.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize();let n=this.chartHeight,l=this.chartWidth;Zt(o,{overflow:"hidden"}),this.styledMode||(t=fe({position:"relative",overflow:"hidden",width:l+"px",height:n+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none",padding:"0px"},i.style||{}));let c=vr("div",{id:r},t,o);this.container=c,this.getChartSize(),l===this.chartWidth||(l=this.chartWidth,this.styledMode||Zt(c,{width:Pt((p=i.style)==null?void 0:p.width,l+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;let d=i.renderer||!rc?ni.getRendererType(i.renderer):Yi;if(this.renderer=new d(c,l,n,void 0,i.forExport,(u=e.exporting)==null?void 0:u.allowHTML,this.styledMode),mr(void 0,this),this.setClassName(i.className),this.styledMode)for(let g in e.defs)this.renderer.definition(e.defs[g]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,it(this,"afterGetContainer")}getMargins(t){var r;let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!ge(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!ge(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),(r=this.legend)!=null&&r.display&&this.legend.adjustMargins(i,e),it(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,r=function(o){o.forEach(function(a){a.visible&&a.getOffset()})};t.hasCartesianSeries?r(t.axes):i!=null&&i.length&&r(i),La.forEach(function(o,a){ge(s[a])||(t[o]+=e[a])}),t.setChartSize()}getOptions(){return Da(this.userOptions,xr)}reflow(t){var r;let e=this,i=e.containerBox,s=e.getContainerBox();(r=e.pointer)==null||delete r.chartPosition,!e.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(W.clearTimeout(e.reflowTimeout),e.reflowTimeout=cc(function(){e.container&&e.setSize(void 0,void 0,!1)},100*!!t)),e.containerBox=s)}setReflow(){let t=this,e=i=>{var s;(s=t.options)!=null&&s.chart.reflow&&t.hasLoaded&&t.reflow(i)};if(typeof ResizeObserver=="function")new ResizeObserver(e).observe(t.renderTo);else{let i=br(Ea,"resize",e);br(this,"destroy",i)}}setSize(t,e,i){let s=this,r=s.renderer;s.isResizing+=1,mr(i,s);let o=r.globalAnimation;s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,t!==void 0&&(s.options.chart.width=t),e!==void 0&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:a,chartHeight:n,scrollablePixelsX:l=0,scrollablePixelsY:c=0}=s;(s.isDirtyBox||a!==s.oldChartWidth||n!==s.oldChartHeight)&&(s.styledMode||(o?fr:Zt)(s.container,{width:`${a+l}px`,height:`${n+c}px`},o),s.setChartSize(!0),r.setSize(a,n,o),s.axes.forEach(function(d){d.isDirty=!0,d.setScale()}),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(o),s.oldChartHeight=void 0,it(s,"resize"),setTimeout(()=>{s&&it(s,"endResize")},ic(o).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,r,{chartHeight:o,chartWidth:a,inverted:n,spacing:l,renderer:c}=this,d=this.clipOffset,p=Math[n?"floor":"round"];this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-(this.marginRight??0))),this.plotHeight=r=Math.max(0,Math.round(o-i-(this.marginBottom??0))),this.plotSizeX=n?r:s,this.plotSizeY=n?s:r,this.spacingBox=c.spacingBox={x:l[3],y:l[0],width:a-l[3]-l[1],height:o-l[0]-l[2]},this.plotBox=c.plotBox={x:e,y:i,width:s,height:r},d&&(this.clipBox={x:p(d[3]),y:p(d[0]),width:p(this.plotSizeX-d[1]-d[3]),height:p(this.plotSizeY-d[0]-d[2])}),t||(this.axes.forEach(function(u){u.setAxisSize(),u.setAxisTranslation()}),c.alignElements()),it(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){it(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach(function(r){let o=e[r],a=hc(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach(function(n,l){t[r][l]=Pt(e[r+n],a[l])})}),La.forEach(function(r,o){t[r]=Pt(t.margin[o],t.spacing[o])}),t.axisOffset=[0,0,0,0],t.clipOffset=[s,s,s,s],t.plotBorderWidth=i}drawChartBox(){let t=this.options.chart,e=this.renderer,i=this.chartWidth,s=this.chartHeight,r=this.styledMode,o=this.plotBGImage,a=t.backgroundColor,n=t.plotBackgroundColor,l=t.plotBackgroundImage,c=this.plotLeft,d=this.plotTop,p=this.plotWidth,u=this.plotHeight,g=this.plotBox,x=this.clipRect,m=this.clipBox,f=this.chartBackground,y=this.plotBackground,b=this.plotBorder,w,v,k,S="animate";f||(this.chartBackground=f=e.rect().addClass("highcharts-background").add(),S="attr"),r?w=v=f.strokeWidth():(v=(w=t.borderWidth||0)+8*!!t.shadow,k={fill:a||"none"},(w||f["stroke-width"])&&(k.stroke=t.borderColor,k["stroke-width"]=w),f.attr(k).shadow(t.shadow)),f[S]({x:v/2,y:v/2,width:i-v-w%2,height:s-v-w%2,r:t.borderRadius}),S="animate",y||(S="attr",this.plotBackground=y=e.rect().addClass("highcharts-plot-background").add()),y[S](g),!r&&(y.attr({fill:n||"none"}).shadow(t.plotShadow),l&&(o?(l!==o.attr("href")&&o.attr("href",l),o.animate(g)):this.plotBGImage=e.image(l,c,d,p,u).add())),x?x.animate({width:m.width,height:m.height}):this.clipRect=e.clipRect(m),S="animate",b||(S="attr",this.plotBorder=b=e.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),r||b.attr({stroke:t.plotBorderColor,"stroke-width":t.plotBorderWidth||0,fill:"none"}),b[S](b.crisp(g,-b.strokeWidth())),this.isDirtyBox=!1,it(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,r=s.options.chart,o=s.options.series;["inverted","angular","polar"].forEach(function(a){for(e=yr[r.type],i=r[a]||e&&e.prototype[a],t=o==null?void 0:o.length;!i&&t--;)(e=yr[o[t].type])&&e.prototype[a]&&(i=!0);s[a]=i})}linkSeries(t){let e=this,i=e.series;i.forEach(function(s){s.linkedSeries.length=0}),i.forEach(function(s){let{linkedTo:r}=s.options;if(hs(r)){let o;(o=r===":previous"?e.series[s.index-1]:e.get(r))&&o.linkedParent!==s&&(o.linkedSeries.push(s),s.linkedParent=o,o.enabledDataSorting&&s.setDataSortingOptions(),s.visible=Pt(s.options.visible,o.options.visible,s.visible))}}),it(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){var c;let t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options.chart.axisLayoutRuns||2,r=d=>{d.forEach(p=>{p.visible&&p.render()})},o=0,a=!0,n,l=0;for(let d of(this.setTitle(),it(this,"beforeMargins"),(c=this.getStacks)==null||c.call(this),this.getMargins(!0),this.setChartSize(),t)){let{options:p}=d,{labels:u}=p;if(this.hasCartesianSeries&&d.horiz&&d.visible&&u.enabled&&d.series.length&&d.coll!=="colorAxis"&&!this.polar){o=p.tickLength,d.createGroups();let g=new Ye(d,0,"",!0),x=g.createLabel("x",u);if(g.destroy(),x&&Pt(u.reserveSpace,!Ke(p.crossing))&&(o=x.getBBox().height+u.distance+Math.max(p.offset||0,0)),o){x==null||x.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o,0);(a||n||s>1)&&l<s;){let d=this.plotWidth,p=this.plotHeight;for(let u of t)l===0?u.setScale():(u.horiz&&a||!u.horiz&&n)&&u.setTickInterval(!0);l===0?this.getAxisMargins():this.getMargins(),a=d/this.plotWidth>(l?1:1.1),n=p/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?r(t):e!=null&&e.length&&r(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=ie(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){i.href&&(Ea.location.href=i.href)}).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(s){e.credits=e.credits.destroy(),e.addCredits(s)})}destroy(){var a,n;let t,e=this,i=e.axes,s=e.series,r=e.container,o=r==null?void 0:r.parentNode;for(it(e,"destroy"),e.renderer.forExport?ac(Oe,e):Oe[e.index]=void 0,O.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),za(e),t=i.length;t--;)i[t]=i[t].destroy();for((n=(a=this.scroller)==null?void 0:a.destroy)==null||n.call(a),t=s.length;t--;)s[t]=s[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(l=>{var c,d;e[l]=(d=(c=e[l])==null?void 0:c.destroy)==null?void 0:d.call(c)}),r&&(r.innerHTML=lt.emptyHTML,za(r),o&&oc(r)),Sr(e,function(l,c){delete e[c]})}firstRender(){var s;let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=lc(e.series)?e.series:[];e.series=[],i.forEach(function(r){t.initSeries(r)}),t.linkSeries(),t.setSortedData(),it(t,"beforeRender"),t.render(),(s=t.pointer)==null||s.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(t){t&&this.index!==void 0&&t.apply(this,[this])},this),it(this,"load"),it(this,"render"),ge(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":((e==null?void 0:e.element.textContent)||"").replace(/</g,"&lt;")}),t.accessibility&&t.accessibility.enabled===!1||kr('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))}addSeries(t,e,i){let s,r=this;return t&&(e=Pt(e,!0),it(r,"addSeries",{options:t},function(){s=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),it(r,"afterAddSeries",{series:s}),e&&r.redraw(i)})),s}addAxis(t,e,i,s){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:s})}addColorAxis(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})}createAxis(t,e){let i=new $e(this,e.axis,t);return Pt(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,r=function(){o&&Zt(o,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})},o=e.loadingDiv,a=e.loadingSpan;o||(e.loadingDiv=o=vr("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=vr("span",{className:"highcharts-loading-inner"},null,o),br(e,"redraw",r)),o.className="highcharts-loading",lt.setElementHTML(a,Pt(t,i.lang.loading,"")),e.styledMode||(Zt(o,fe(s.style,{zIndex:10})),Zt(a,s.labelStyle),e.loadingShown||(Zt(o,{opacity:0,display:""}),fr(o,{opacity:s.style.opacity||.5},{duration:s.showDuration||0}))),e.loadingShown=!0,r()}hideLoading(){let t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||fr(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){Zt(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let r,o,a,n=this,l={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,d=[];it(n,"update",{options:t}),c||n.setResponsive(!1,!0),t=Da(t,n.options),n.userOptions=ie(n.userOptions,t);let p=t.chart;p&&(ie(!0,n.options.chart,p),this.setZoomOptions(),"className"in p&&n.setClassName(p.className),("inverted"in p||"polar"in p||"type"in p)&&(n.propFromSeries(),r=!0),"alignTicks"in p&&(r=!0),"events"in p&&Oa(this,p),Sr(p,function(x,m){n.propsRequireUpdateSeries.indexOf("chart."+m)!==-1&&(o=!0),n.propsRequireDirtyBox.indexOf(m)!==-1&&(n.isDirtyBox=!0),n.propsRequireReflow.indexOf(m)===-1||(n.isDirtyBox=!0,c||(a=!0))}),!n.styledMode&&p.style&&n.renderer.setStyle(n.options.chart.style||{})),!n.styledMode&&t.colors&&(this.options.colors=t.colors),Sr(t,function(x,m){n[m]&&typeof n[m].update=="function"?n[m].update(x,!1):typeof n[l[m]]=="function"?n[l[m]](x):m!=="colors"&&n.collectionsWithUpdate.indexOf(m)===-1&&ie(!0,n.options[m],t[m]),m!=="chart"&&n.propsRequireUpdateSeries.indexOf(m)!==-1&&(o=!0)}),this.collectionsWithUpdate.forEach(function(x){t[x]&&(ds(t[x]).forEach(function(m,f){let y,b=ge(m.id);b&&(y=n.get(m.id)),!y&&n[x]&&(y=n[x][Pt(m.index,f)])&&(b&&ge(y.options.id)||y.options.isInternal)&&(y=void 0),y&&y.coll===x&&(y.update(m,!1),i&&(y.touched=!0)),!y&&i&&n.collectionsWithInit[x]&&(n.collectionsWithInit[x][0].apply(n,[m].concat(n.collectionsWithInit[x][1]||[]).concat([!1])).touched=!0)}),i&&n[x].forEach(function(m){m.touched||m.options.isInternal?delete m.touched:d.push(m)}))}),d.forEach(function(x){x.chart&&x.remove&&x.remove(!1)}),r&&n.axes.forEach(function(x){x.update({},!1)}),o&&n.getSeriesOrderByLinks().forEach(function(x){x.chart&&x.update({},!1)},this);let u=p==null?void 0:p.width,g=p&&(hs(p.height)?Ba(p.height,u||n.chartWidth):p.height);a||Ke(u)&&u!==n.chartWidth||Ke(g)&&g!==n.chartHeight?n.setSize(u,g,s):Pt(e,!0)&&n.redraw(s),it(n,"afterUpdate",{options:t,redraw:e,animation:s})}setSubtitle(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)}setCaption(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}showResetZoom(){let t=this,e=xr.lang,i=t.zooming.resetButton,s=i.theme,r=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?null:"plotBox";function o(){t.zoomOut()}it(this,"beforeShowResetZoom",null,function(){t.resetZoomButton=t.renderer.button(e.resetZoom,null,null,o,s).attr({align:i.position.align,title:e.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(i.position,!1,r)}),it(this,"afterShowResetZoom")}zoomOut(){it(this,"selection",{resetSelection:!0},()=>this.transform({reset:!0,trigger:"zoom"}))}pan(t,e){let i=this,s=typeof e=="object"?e:{enabled:e,type:"x"},r=s.type,o=r&&i[{x:"xAxis",xy:"axes",y:"yAxis"}[r]].filter(n=>n.options.panningEnabled&&!n.options.isInternal),a=i.options.chart;a!=null&&a.panning&&(a.panning=s),it(this,"pan",{originalEvent:t},()=>{i.transform({axes:o,event:t,to:{x:t.chartX-(i.mouseDownX||0),y:t.chartY-(i.mouseDownY||0)},trigger:"pan"}),Zt(i.container,{cursor:"move"})})}transform(t){var g;let{axes:e=this.axes,event:i,from:s={},reset:r,selection:o,to:a={},trigger:n}=t,{inverted:l,time:c}=this,d=!1,p,u;for(let x of((g=this.hoverPoints)==null||g.forEach(m=>m.setState()),e)){let{horiz:m,len:f,minPointOffset:y=0,options:b,reversed:w}=x,v=m?"width":"height",k=m?"x":"y",S=Pt(a[v],x.len),M=Pt(s[v],x.len),T=10>Math.abs(S)?1:S/M,A=(s[k]||0)+M/2-x.pos,L=A-((a[k]??x.pos)+S/2-x.pos)/T,I=w&&!l||!w&&l?-1:1;if(!r&&(A<0||A>x.len))continue;let E=x.toValue(L,!0)+(o||x.isOrdinal?0:y*I),z=x.toValue(L+f/T,!0)-(o||x.isOrdinal?0:y*I||0),B=x.allExtremes;if(E>z&&([E,z]=[z,E]),T===1&&!r&&x.coll==="yAxis"&&!B){for(let ne of x.series){let $t=ne.getExtremes(ne.getProcessedData(!0).modified.getColumn("y")||[],!0);B??(B={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),Ke($t.dataMin)&&Ke($t.dataMax)&&(B.dataMin=Math.min($t.dataMin,B.dataMin),B.dataMax=Math.max($t.dataMax,B.dataMax))}x.allExtremes=B}let{dataMin:G,dataMax:R,min:j,max:K}=fe(x.getExtremes(),B||{}),q=c.parse(b.min),J=c.parse(b.max),Ot=G??q,_=R??J,st=z-E,Y=x.categories?0:Math.min(st,_-Ot),H=Ot-Y*(ge(q)?0:b.minPadding),ft=_+Y*(ge(J)?0:b.maxPadding),rt=x.allowZoomOutside||T===1||n!=="zoom"&&T>1,at=Math.min(q??H,H,rt?j:H),vt=Math.max(J??ft,ft,rt?K:ft);(!x.isOrdinal||x.options.overscroll||T!==1||r)&&(E<at&&(E=at,T>=1&&(z=E+st)),z>vt&&(z=vt,T>=1&&(E=z-st)),(r||x.series.length&&(E!==j||z!==K)&&E>=at&&z<=vt)&&(o?o[x.coll].push({axis:x,min:E,max:z}):(x.isPanning=n!=="zoom",x.isPanning&&(u=!0),x.setExtremes(r?void 0:E,r?void 0:z,!1,!1,{move:L,trigger:n,scale:T}),!r&&(E>at||z<vt)&&n!=="mousewheel"&&(p=!0)),d=!0),i&&(this[m?"mouseDownX":"mouseDownY"]=i[m?"chartX":"chartY"]))}return d&&(o?it(this,"selection",o,()=>{delete t.selection,t.trigger="zoom",this.transform(t)}):(!p||u||this.resetZoomButton?!p&&this.resetZoomButton&&(this.resetZoomButton=this.resetZoomButton.destroy()):this.showResetZoom(),this.redraw(n==="zoom"&&(this.options.chart.animation??this.pointCount<100)))),d}}fe(me.prototype,{callbacks:[],collectionsWithInit:{xAxis:[me.prototype.addAxis,[!0]],yAxis:[me.prototype.addAxis,[!1]],series:[me.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"]});let{stop:uc}=At,{composed:gc}=O,{addEvent:xe,createElement:cs,css:Tr,defined:Cr,erase:fc,merge:Na,pushUnique:Ra}=W;function mc(){let h=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!h&&(this.scrollablePlotArea=h=new yi(this)),h==null||h.applyFixed()}function Wa(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class yi{static compose(t,e,i){Ra(gc,this.compose)&&(xe(t,"afterInit",Wa),xe(e,"afterSetChartSize",s=>this.afterSetSize(s.target,s)),xe(e,"render",mc),xe(i,"show",Wa))}static afterSetSize(t,e){let i,s,r,{minWidth:o,minHeight:a}=t.options.chart.scrollablePlotArea||{},{clipBox:n,plotBox:l,inverted:c,renderer:d}=t;if(!d.forExport&&(o?(t.scrollablePixelsX=i=Math.max(0,o-t.chartWidth),i&&(t.scrollablePlotBox=Na(t.plotBox),l.width=t.plotWidth+=i,n[c?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=s=Math.max(0,a-t.chartHeight),Cr(s)&&(t.scrollablePlotBox=Na(t.plotBox),l.height=t.plotHeight+=s,n[c?"width":"height"]+=s,r=!1)),Cr(r)&&!e.skipAxes))for(let p of t.axes)(p.horiz===r||t.hasParallelCoordinates&&p.coll==="yAxis")&&(p.setAxisSize(),p.setAxisTranslation())}constructor(t){var u;let e,i=t.options.chart,s=ni.getRendererType(),r=i.scrollablePlotArea||{},o=this.moveFixedElements.bind(this),a={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};t.scrollablePixelsX&&(a.overflowX="auto"),t.scrollablePixelsY&&(a.overflowY="auto"),this.chart=t;let n=this.parentDiv=cs("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),l=this.scrollingContainer=cs("div",{className:"highcharts-scrolling"},a,n),c=this.innerContainer=cs("div",{className:"highcharts-inner-container"},void 0,l),d=this.fixedDiv=cs("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(((u=i.style)==null?void 0:u.zIndex)||0)+2,top:0},void 0,!0),p=this.fixedRenderer=new s(d,t.chartWidth,t.chartHeight,i.style);this.mask=p.path().attr({fill:i.backgroundColor||"#fff","fill-opacity":r.opacity??.85,zIndex:-1}).addClass("highcharts-scrollable-mask").add(),l.parentNode.insertBefore(d,l),Tr(t.renderTo,{overflow:"visible"}),xe(t,"afterShowResetZoom",o),xe(t,"afterApplyDrilldown",o),xe(t,"afterLayOutTitles",o),xe(l,"scroll",()=>{let{pointer:g,hoverPoint:x}=t;g&&(delete g.chartPosition,x&&(e=x),g.runPointActions(void 0,e,!0))}),c.appendChild(t.container)}applyFixed(){var A;let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:s}=this,{axisOffset:r,chartWidth:o,chartHeight:a,container:n,plotHeight:l,plotLeft:c,plotTop:d,plotWidth:p,scrollablePixelsX:u=0,scrollablePixelsY:g=0}=t,{scrollPositionX:x=0,scrollPositionY:m=0}=t.options.chart.scrollablePlotArea||{},f=o+u,y=a+g;e.setSize(o,a),(i??!0)&&(this.isDirty=!1,this.moveFixedElements()),uc(t.container),Tr(n,{width:`${f}px`,height:`${y}px`}),t.renderer.boxWrapper.attr({width:f,height:y,viewBox:[0,0,f,y].join(" ")}),(A=t.chartBackground)==null||A.attr({width:f,height:y}),Tr(s,{width:`${o}px`,height:`${a}px`}),Cr(i)||(s.scrollLeft=u*x,s.scrollTop=g*m);let b=d-r[0]-1,w=c-r[3]-1,v=d+l+r[2]+1,k=c+p+r[1]+1,S=c+p-u,M=d+l-g,T=[["M",0,0]];u?T=[["M",0,b],["L",c-1,b],["L",c-1,v],["L",0,v],["Z"],["M",S,b],["L",o,b],["L",o,v],["L",S,v],["Z"]]:g&&(T=[["M",w,0],["L",w,d-1],["L",k,d-1],["L",k,0],["Z"],["M",w,M],["L",w,a],["L",k,a],["L",k,M],["Z"]]),t.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:T})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:s,scrollablePixelsY:r}=this.chart,o=this.fixedRenderer,a=yi.fixedSelectors;if(s&&!i?t=".highcharts-yaxis":s&&i||r&&!i?t=".highcharts-xaxis":r&&i&&(t=".highcharts-yaxis"),t&&!(this.chart.hasParallelCoordinates&&t===".highcharts-yaxis"))for(let n of[`${t}:not(.highcharts-radial-axis)`,`${t}-labels:not(.highcharts-radial-axis-labels)`])Ra(a,n);else for(let n of[".highcharts-xaxis",".highcharts-yaxis"])for(let l of[`${n}:not(.highcharts-radial-axis)`,`${n}-labels:not(.highcharts-radial-axis-labels)`])fc(a,l);for(let n of a)[].forEach.call(e.querySelectorAll(n),l=>{(l.namespaceURI===o.SVG_NS?o.box:o.box.parentNode).appendChild(l),l.style.pointerEvents="auto"})}}yi.fixedSelectors=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".highcharts-credits",".highcharts-drillup-button",".highcharts-legend",".highcharts-legend-checkbox",".highcharts-navigator-series",".highcharts-navigator-xaxis",".highcharts-navigator-yaxis",".highcharts-navigator",".highcharts-range-selector-group",".highcharts-reset-zoom",".highcharts-scrollbar",".highcharts-subtitle",".highcharts-title"];let{format:xc}=jt,{series:yc}=ut,{destroyObjectProperties:bc,fireEvent:Ha,getAlignFactor:Ar,isNumber:Pr,pick:bi}=W,Xa=class{constructor(h,t,e,i,s){let r=h.chart.inverted,o=h.reversed;this.axis=h;let a=this.isNegative=!!e!=!!o;this.options=t=t||{},this.x=i,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=s,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:t.align||(r?a?"left":"right":"center"),verticalAlign:t.verticalAlign||(r?"middle":a?"bottom":"top"),y:t.y,x:t.x},this.textAlign=t.textAlign||(r?a?"right":"left":"center")}destroy(){bc(this,this.axis)}render(h){let t=this.axis.chart,e=this.options,i=e.format,s=i?xc(i,this,t):e.formatter.call(this);if(this.label)this.label.attr({text:s,visibility:"hidden"});else{this.label=t.renderer.label(s,null,void 0,e.shape,void 0,void 0,e.useHTML,!1,"stack-labels");let r={r:e.borderRadius||0,text:s,padding:bi(e.padding,5),visibility:"hidden"};t.styledMode||(r.fill=e.backgroundColor,r.stroke=e.borderColor,r["stroke-width"]=e.borderWidth,this.label.css(e.style||{})),this.label.attr(r),this.label.added||this.label.add(h)}this.label.labelrank=t.plotSizeY,Ha(this,"afterRender")}setOffset(h,t,e,i,s,r){let{alignOptions:o,axis:a,label:n,options:l,textAlign:c}=this,d=a.chart,p=this.getStackBox({xOffset:h,width:t,boxBottom:e,boxTop:i,defaultX:s,xAxis:r}),{verticalAlign:u}=o;if(n&&p){let g=n.getBBox(void 0,0),x=n.padding,m=bi(l.overflow,"justify")==="justify",f;o.x=l.x||0,o.y=l.y||0;let{x:y,y:b}=this.adjustStackPosition({labelBox:g,verticalAlign:u,textAlign:c});p.x-=y,p.y-=b,n.align(o,!1,p),(f=d.isInsidePlot(n.alignAttr.x+o.x+y,n.alignAttr.y+o.y+b))||(m=!1),m&&yc.prototype.justifyDataLabel.call(a,n,o,n.alignAttr,g,p),n.attr({x:n.alignAttr.x,y:n.alignAttr.y,rotation:l.rotation,rotationOriginX:g.width*Ar(l.textAlign||"center"),rotationOriginY:g.height/2}),bi(!m&&l.crop,!0)&&(f=Pr(n.x)&&Pr(n.y)&&d.isInsidePlot(n.x-x+(n.width||0),n.y)&&d.isInsidePlot(n.x+x,n.y)),n[f?"show":"hide"]()}Ha(this,"afterSetOffset",{xOffset:h,width:t})}adjustStackPosition({labelBox:h,verticalAlign:t,textAlign:e}){return{x:h.width/2+h.width/2*(2*Ar(e)-1),y:h.height/2*2*(1-Ar(t))}}getStackBox(h){let t=this.axis,e=t.chart,{boxTop:i,defaultX:s,xOffset:r,width:o,boxBottom:a}=h,n=t.stacking.usePercentage?100:bi(i,this.total,0),l=t.toPixels(n),c=h.xAxis||e.xAxis[0],d=bi(s,c.translate(this.x))+r,p=Math.abs(l-t.toPixels(a||Pr(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),u=e.inverted,g=this.isNegative;return u?{x:(g?l:l-p)-e.plotLeft,y:c.height-d-o+c.top-e.plotTop,width:p,height:o}:{x:d+c.transB-e.plotLeft,y:(g?l-p:l)-e.plotTop,width:o,height:p}}},{getDeferredAnimation:vc}=At,{series:{prototype:kc}}=ut,{addEvent:Fa,correctFloat:vi,defined:ja,destroyObjectProperties:wc,fireEvent:Mc,isNumber:Or,objectEach:Le,pick:Lr}=W;function Sc(){let h=this.inverted;this.axes.forEach(t=>{var e;(e=t.stacking)!=null&&e.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(t=>{var i;let e=((i=t.xAxis)==null?void 0:i.options)||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Lr(t.options.stack,""),h?e.top:e.left,h?e.height:e.width].join(","))})}function Tc(){var t;let h=this.stacking;if(h){let e=h.stacks;Le(e,(i,s)=>{wc(i),delete e[s]}),(t=h.stackTotalGroup)==null||t.destroy()}}function Cc(){this.stacking||(this.stacking=new Ic(this))}function Ac(h,t,e,i){return!ja(h)||h.x!==t||i&&h.stackKey!==i?h={x:t,index:0,key:i,stackKey:i}:h.index++,h.key=[e,t,h.index].join(","),h}function Pc(){let h,t=this,e=t.yAxis,i=t.stackKey||"",s=e.stacking.stacks,r=t.getColumn("x",!0),o=t.options.stacking,a=t[o+"Stacker"];a&&[i,"-"+i].forEach(n=>{var u;let l=r.length,c,d,p;for(;l--;)c=r[l],h=t.getStackIndicator(h,c,t.index,n),d=(u=s[n])==null?void 0:u[c],(p=d==null?void 0:d.points[h.key||""])&&a.call(t,p,d,l)})}function Oc(h,t,e){let i=t.total?100/t.total:0;h[0]=vi(h[0]*i),h[1]=vi(h[1]*i),this.stackedYData[e]=h[1]}function Lc(h){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?kc.setStackedPoints.call(this,h,"group"):h.stacking.resetStacks())}function Ec(h,t){var M,T;let e,i,s,r,o,a,n,l=t||this.options.stacking;if(!l||!this.reserveSpace()||({group:"xAxis"}[l]||"yAxis")!==h.coll)return;let c=this.getColumn("x",!0),d=this.getColumn(this.pointValKey||"y",!0),p=[],u=d.length,g=this.options,x=g.threshold||0,m=g.startFromThreshold?x:0,f=g.stack,y=t?`${this.type},${l}`:this.stackKey||"",b="-"+y,w=this.negStacks,v=h.stacking,k=v.stacks,S=v.oldStacks;for(v.stacksTouched+=1,n=0;n<u;n++){let A=c[n]||0,L=d[n],I=Or(L)&&L||0;a=(e=this.getStackIndicator(e,A,this.index)).key||"",k[o=(i=w&&I<(m?0:x))?b:y]||(k[o]={}),k[o][A]||((M=S[o])!=null&&M[A]?(k[o][A]=S[o][A],k[o][A].total=null):k[o][A]=new Xa(h,h.options.stackLabels,!!i,A,f)),s=k[o][A],L!==null?(s.points[a]=s.points[this.index]=[Lr(s.cumulative,m)],ja(s.cumulative)||(s.base=a),s.touched=v.stacksTouched,e.index>0&&this.singleStacks===!1&&(s.points[a][0]=s.points[this.index+","+A+",0"][0])):(delete s.points[a],delete s.points[this.index]);let E=s.total||0;l==="percent"?(r=i?y:b,E=w&&((T=k[r])!=null&&T[A])?(r=k[r][A]).total=Math.max(r.total||0,E)+Math.abs(I):vi(E+Math.abs(I))):l==="group"?Or(L)&&E++:E=vi(E+I),l==="group"?s.cumulative=(E||1)-1:s.cumulative=vi(Lr(s.cumulative,m)+I),s.total=E,L!==null&&(s.points[a].push(s.cumulative),p[n]=s.cumulative,s.hasValidPoints=!0)}l==="percent"&&(v.usePercentage=!0),l!=="group"&&(this.stackedYData=p),v.oldStacks={}}class Ic{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,r=i.coll==="xAxis",o=i.options.reversedStacks,a=s.length;for(this.resetStacks(),this.usePercentage=!1,e=a;e--;)t=s[o?e:a-e-1],r&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!r)for(e=0;e<a;e++)s[e].modifyStacks();Mc(i,"afterBuildStacks")}cleanStacks(){this.oldStacks&&(this.stacks=this.oldStacks,Le(this.stacks,t=>{Le(t,e=>{e.cumulative=e.total})}))}resetStacks(){Le(this.stacks,t=>{Le(t,(e,i)=>{Or(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){var a;let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,r=vc(e,((a=t.options.stackLabels)==null?void 0:a.animation)||!1),o=this.stackTotalGroup=this.stackTotalGroup||i.g("stack-labels").attr({zIndex:6,opacity:0}).add();o.translate(e.plotLeft,e.plotTop),Le(s,n=>{Le(n,l=>{l.render(o)})}),o.animate({opacity:1},r)}}(ti||(ti={})).compose=function(h,t,e){let i=t.prototype,s=e.prototype;i.getStacks||(Fa(h,"init",Cc),Fa(h,"destroy",Tc),i.getStacks=Sc,s.getStackIndicator=Ac,s.modifyStacks=Pc,s.percentStacker=Oc,s.setGroupedPoints=Lc,s.setStackedPoints=Ec)};let Dc=ti,{defined:Bc,merge:Ga,isObject:zc}=W;class Ya extends Ht{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach((s,r)=>{let o,a=s.graph,n=a?"animate":"attr",l=s.dashStyle||t.dashStyle;a?(a.endX=this.preventGraphAnimation?null:e.xMap,a.animate({d:e})):e.length&&(s.graph=a=this.chart.renderer.path(e).addClass("highcharts-graph"+(r?` highcharts-zone-graph-${r-1} `:" ")+(r&&s.className||"")).attr({zIndex:1}).add(this.group)),a&&!i&&(o={stroke:!r&&t.lineColor||s.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},l?o.dashstyle=l:t.linecap!=="square"&&(o["stroke-linecap"]=o["stroke-linejoin"]="round"),a[n](o).shadow(t.shadow&&Ga({filterUnits:"userSpaceOnUse"},zc(t.shadow)?t.shadow:{}))),a&&(a.startX=e.xMap,a.isArea=e.isArea)})}getGraphPath(t,e,i){let s=this,r=s.options,o=[],a=[],n,l=r.step,c=(t=t||s.points).reversed;return c&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&c&&(l=4-l),(t=this.getValidPoints(t,!1,r.nullInteraction||!(r.connectNulls&&!e&&!i))).forEach(function(d,p){let u,g=d.plotX,x=d.plotY,m=t[p-1],f=d.isNull||typeof x!="number";(d.leftCliff||m!=null&&m.rightCliff)&&!i&&(n=!0),f&&!Bc(e)&&p>0?n=!r.connectNulls:f&&!e?n=!0:(p===0||n?u=[["M",d.plotX,d.plotY]]:s.getPointSpline?u=[s.getPointSpline(t,d,p)]:l?(u=l===1?[["L",m.plotX,x]]:l===2?[["L",(m.plotX+g)/2,m.plotY],["L",(m.plotX+g)/2,x]]:[["L",g,m.plotY]]).push(["L",g,x]):u=[["L",g,x]],a.push(d.x),l&&(a.push(d.x),l===2&&a.push(d.x)),o.push.apply(o,u),n=!1)}),o.xMap=a,s.graphPath=o,o}}Ya.defaultOptions=Ga(Ht.defaultOptions,{legendSymbol:"lineMarker"}),ut.registerSeriesType("line",Ya);let{seriesTypes:{line:Er}}=ut,{extend:Nc,merge:Rc,objectEach:Wc,pick:ps}=W;class Ir extends Er{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach((i,s)=>{let r={},o=i.fillColor||e.fillColor,a=i.area,n=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(r.zIndex=0,(a=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?` highcharts-zone-area-${s-1} `:" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(r.fill=o||i.color||this.color,r["fill-opacity"]=o?1:e.fillOpacity??.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[n](r),a.startX=t.xMap,a.shiftUnit=e.step?2:1})}getGraphPath(t){let e,i,s,r=Er.prototype.getGraphPath,o=this.options,a=o.stacking,n=this.yAxis,l=[],c=[],d=this.index,p=n.stacking.stacks[this.stackKey],u=o.threshold,g=Math.round(n.getThreshold(o.threshold)),x=ps(o.connectNulls,a==="percent"),m=function(k,S,M){let T=t[k],A=a&&p[T.x].points[d],L=T[M+"Null"]||0,I=T[M+"Cliff"]||0,E,z,B=!0;I||L?(E=(L?A[0]:A[1])+I,z=A[0]+I,B=!!L):!a&&t[S]&&t[S].isNull&&(E=z=u),E!==void 0&&(c.push({plotX:e,plotY:E===null?g:n.getThreshold(E),isNull:B,isCliff:!0}),l.push({plotX:e,plotY:z===null?g:n.getThreshold(z),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let k=0,S=t.length;k<S;++k)a||(t[k].leftCliff=t[k].rightCliff=t[k].leftNull=t[k].rightNull=void 0),i=t[k].isNull,e=ps(t[k].rectPlotX,t[k].plotX),s=a?ps(t[k].yBottom,g):g,i&&!x||(x||m(k,k-1,"left"),i&&!a&&x||(c.push(t[k]),l.push({x:k,plotX:e,plotY:s})),x||m(k,k+1,"right"));let f=r.call(this,c,!0,!0);l.reversed=!0;let y=r.call(this,l,!0,!0),b=y[0];b&&b[0]==="M"&&(y[0]=["L",b[1],b[2]]);let w=f.concat(y);w.length&&w.push(["Z"]);let v=r.call(this,c,!1,x);return this.chart.series.length>1&&a&&c.some(k=>k.isCliff)&&(w.hasStackedCliffs=v.hasStackedCliffs=!0),w.xMap=f.xMap,this.areaPath=w,v}getStackPoints(t){let e=this,i=[],s=[],r=this.xAxis,o=this.yAxis,a=o.stacking.stacks[this.stackKey],n={},l=o.series,c=l.length,d=o.options.reversedStacks?1:-1,p=l.indexOf(e);if(t=t||this.points,this.options.stacking){for(let g=0;g<t.length;g++)t[g].leftNull=t[g].rightNull=void 0,n[t[g].x]=t[g];Wc(a,function(g,x){g.total!==null&&s.push(x)}),s.sort(function(g,x){return g-x});let u=l.map(g=>g.visible);s.forEach(function(g,x){let m=0,f,y;if(n[g]&&!n[g].isNull)i.push(n[g]),[-1,1].forEach(function(b){let w=b===1?"rightNull":"leftNull",v=a[s[x+b]],k=0;if(v){let S=p;for(;S>=0&&S<c;){let M=l[S].index;!(f=v.points[M])&&(M===e.index?n[g][w]=!0:u[S]&&(y=a[g].points[M])&&(k-=y[1]-y[0])),S+=d}}n[g][b===1?"rightCliff":"leftCliff"]=k});else{let b=p;for(;b>=0&&b<c;){let w=l[b].index;if(f=a[g].points[w]){m=f[1];break}b+=d}m=ps(m,0),m=o.translate(m,0,1,0,1),i.push({isNull:!0,plotX:r.translate(g,0,0,0,1),x:g,plotY:m,yBottom:m})}})}return i}}Ir.defaultOptions=Rc(Er.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Nc(Ir.prototype,{singleStacks:!1}),ut.registerSeriesType("area",Ir);let{line:$a}=ut.seriesTypes,{merge:Hc,pick:us}=W;class Dr extends $a{getPointSpline(t,e,i){let s,r,o,a,n=e.plotX||0,l=e.plotY||0,c=t[i-1],d=t[i+1];function p(g){return g&&!g.isNull&&g.doCurve!==!1&&!e.isCliff}if(p(c)&&p(d)){let g=c.plotX||0,x=c.plotY||0,m=d.plotX||0,f=d.plotY||0,y=0;s=(1.5*n+g)/2.5,r=(1.5*l+x)/2.5,o=(1.5*n+m)/2.5,a=(1.5*l+f)/2.5,o!==s&&(y=(a-r)*(o-n)/(o-s)+l-a),r+=y,a+=y,r>x&&r>l?(r=Math.max(x,l),a=2*l-r):r<x&&r<l&&(r=Math.min(x,l),a=2*l-r),a>f&&a>l?(a=Math.max(f,l),r=2*l-a):a<f&&a<l&&(a=Math.min(f,l),r=2*l-a),e.rightContX=o,e.rightContY=a,e.controlPoints={low:[s,r],high:[o,a]}}let u=["C",us(c.rightContX,c.plotX,0),us(c.rightContY,c.plotY,0),us(s,n,0),us(r,l,0),n,l];return c.rightContX=c.rightContY=void 0,u}}Dr.defaultOptions=Hc($a.defaultOptions),ut.registerSeriesType("spline",Dr);let Va=Dr,{area:Xc,area:{prototype:Br}}=ut.seriesTypes,{extend:Fc,merge:jc}=W;class zr extends Va{}zr.defaultOptions=jc(Va.defaultOptions,Xc.defaultOptions),Fc(zr.prototype,{getGraphPath:Br.getGraphPath,getStackPoints:Br.getStackPoints,drawGraph:Br.drawGraph}),ut.registerSeriesType("areaspline",zr);let{animObject:Gc}=At,{parse:Yc}=ht,{noop:$c}=O,{clamp:gs,crisp:fs,defined:Ua,extend:qa,fireEvent:Za,isArray:Ka,isNumber:ms,merge:Nr,pick:ki,objectEach:Vc}=W;class xs extends Ht{animate(t){let e,i,s=this,r=this.yAxis,o=r.pos,a=r.reversed,n=s.options,{clipOffset:l,inverted:c}=this.chart,d={},p=c?"translateX":"translateY";t&&l?(d.scaleY=.001,i=gs(r.toPixels(n.threshold||0),o,o+r.len),c?d.translateX=(i+=a?-Math.floor(l[0]):Math.ceil(l[2]))-r.len:d.translateY=i+=a?Math.ceil(l[0]):-Math.floor(l[2]),s.clipBox&&s.setClip(),s.group.attr(d)):(e=Number(s.group.attr(p)),s.group.animate({scaleY:1},qa(Gc(s.options.animation),{step:function(u,g){s.group&&(d[p]=e+g.pos*(o-e),s.group.attr(d))}})))}init(t,e){super.init.apply(this,arguments);let i=this;(t=i.chart).hasRendered&&t.series.forEach(function(s){s.type===i.type&&(s.isDirty=!0)})}getColumnMetrics(){var x,m;let t=this,e=t.options,i=t.xAxis,s=t.yAxis,r=i.options.reversedStacks,o=i.reversed&&!r||!i.reversed&&r,a={},n,l=0;e.grouping===!1?l=1:t.chart.series.forEach(function(f){let y,b=f.yAxis,w=f.options;f.type===t.type&&f.reserveSpace()&&s.len===b.len&&s.pos===b.pos&&(w.stacking&&w.stacking!=="group"?(a[n=f.stackKey]===void 0&&(a[n]=l++),y=a[n]):w.grouping!==!1&&(y=l++),f.columnIndex=y)});let c=Math.min(Math.abs(i.transA)*(!((x=i.brokenAxis)!=null&&x.hasBreaks)&&((m=i.ordinal)==null?void 0:m.slope)||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),d=c*e.groupPadding,p=(c-2*d)/(l||1),u=Math.min(e.maxPointWidth||i.len,ki(e.pointWidth,p*(1-2*e.pointPadding))),g=(t.columnIndex||0)+ +!!o;return t.columnMetrics={width:u,offset:(p-u)/2+(d+g*p-c/2)*(o?-1:1),paddedWidth:p,columnCount:l},t.columnMetrics}crispCol(t,e,i,s){let r=this.borderWidth,o=this.chart.inverted;return s=fs(e+s,r,o)-(e=fs(e,r,o)),this.options.crisp&&(i=fs(t+i,r)-(t=fs(t,r))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){var r;if(!i.isNull&&s.columnCount>1){let o=this.xAxis.series.filter(c=>c.visible).map(c=>c.index),a=0,n=0;Vc((r=this.xAxis.stacking)==null?void 0:r.stacks,c=>{var g;let d=typeof i.x=="number"?(g=c[i.x.toString()])==null?void 0:g.points:void 0,p=d==null?void 0:d[this.index],u={};if(d&&Ka(p)){let x=this.index,m=Object.keys(d).filter(f=>!f.match(",")&&d[f]&&d[f].length>1).map(parseFloat).filter(f=>o.indexOf(f)!==-1).filter(f=>{let y=this.chart.series[f].options,b=y.stacking&&y.stack;if(Ua(b)){if(ms(u[b]))return x===f&&(x=u[b]),!1;u[b]=f}return!0}).sort((f,y)=>y-f);a=m.indexOf(x),n=m.length}}),a=this.xAxis.reversed?n-1-a:a;let l=(n-1)*s.paddedWidth+e;t=(i.plotX||0)+l/2-e-a*s.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=ki(i.borderWidth,+!s),o=t.xAxis,a=t.yAxis,n=i.threshold,l=ki(i.minPointLength,5),c=t.getColumnMetrics(),d=c.width,p=t.pointXOffset=c.offset,u=t.dataMin,g=t.dataMax,x=t.translatedThreshold=a.getThreshold(n),m=t.barW=Math.max(d,1+2*r);i.pointPadding&&i.crisp&&(m=Math.ceil(m)),Ht.prototype.translate.apply(t),t.points.forEach(function(f){let y=ki(f.yBottom,x),b=999+Math.abs(y),w=f.plotX||0,v=gs(f.plotY,-b,a.len+b),k,S=Math.min(v,y),M=Math.max(v,y)-S,T=d,A=w+p,L=m;l&&Math.abs(M)<l&&(M=l,k=!a.reversed&&!f.negative||a.reversed&&f.negative,ms(n)&&ms(g)&&f.y===n&&g<=n&&(a.min||0)<n&&(u!==g||(a.max||0)<=n)&&(k=!k,f.negative=!f.negative),S=Math.abs(S-x)>l?y-l:x-(k?l:0)),Ua(f.options.pointWidth)&&(A-=Math.round(((T=L=Math.ceil(f.options.pointWidth))-d)/2)),i.centerInCategory&&(A=t.adjustForMissingColumns(A,T,f,c)),f.barX=A,f.pointWidth=T,f.tooltipPos=e.inverted?[gs(a.len+a.pos-e.plotLeft-v,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-A-L/2,M]:[o.left-e.plotLeft+A+L/2,gs(v+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),M],f.shapeType=t.pointClass.prototype.shapeType||"roundedRect",f.shapeArgs=t.crispCol(A,S,L,f.isNull?0:M)}),Za(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i=this.options,s=this.pointAttrToOptions||{},r=s.stroke||"borderColor",o=s["stroke-width"]||"borderWidth",a,n,l,c=t&&t.color||this.color,d=t&&t[r]||i[r]||c,p=t&&t.options.dashStyle||i.dashStyle,u=t&&t[o]||i[o]||this[o]||0,g=t!=null&&t.isNull&&i.nullInteraction?0:(t==null?void 0:t.opacity)??i.opacity??1;t&&this.zones.length&&(n=t.getZone(),c=t.options.color||n&&(n.color||t.nonZonedColor)||this.color,n&&(d=n.borderColor||d,p=n.dashStyle||p,u=n.borderWidth||u)),e&&t&&(l=(a=Nr(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,c=a.color||l!==void 0&&Yc(c).brighten(a.brightness).get()||c,d=a[r]||d,u=a[o]||u,p=a.dashStyle||p,g=ki(a.opacity,g));let x={fill:c,stroke:d,"stroke-width":u,opacity:g};return p&&(x.dashstyle=p),x}drawPoints(t=this.points){let e,i=this,s=this.chart,r=i.options,o=r.nullInteraction,a=s.renderer,n=r.animationLimit||250;t.forEach(function(l){let c=l.plotY,d=l.graphic,p=!!d,u=d&&s.pointCount<n?"animate":"attr";ms(c)&&(l.y!==null||o)?(e=l.shapeArgs,d&&l.hasNewShapeType()&&(d=d.destroy()),i.enabledDataSorting&&(l.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!d&&(l.graphic=d=a[l.shapeType](e).add(l.group||i.group),d&&i.enabledDataSorting&&s.hasRendered&&s.pointCount<n&&(d.attr({x:l.startXPos}),p=!0,u="animate")),d&&p&&d[u](Nr(e)),s.styledMode||d[u](i.pointAttribs(l,l.selected&&"select")).shadow(l.allowShadow!==!1&&r.shadow),d&&(d.addClass(l.getClassName(),!0),d.attr({visibility:l.visible?"inherit":"hidden"}))):d&&(l.graphic=d.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,r=s.pointer,o=function(a){r==null||r.normalize(a);let n=r==null?void 0:r.getPointFromEvent(a);r&&n&&i.options.enableMouseTracking&&(s.isInsidePlot(a.chartX-s.plotLeft,a.chartY-s.plotTop,{visiblePlotOnly:!0})||r!=null&&r.inClass(a.target,"highcharts-data-label"))&&(r.isDirectTouch=!0,n.onMouseOver(a))};t.forEach(function(a){e=Ka(a.dataLabels)?a.dataLabels:a.dataLabel?[a.dataLabel]:[],a.graphic&&(a.graphic.element.point=a),e.forEach(function(n){(n.div||n.element).point=a})}),i._hasTracking||(i.trackerGroups.forEach(function(a){i[a]&&(i[a].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(n){r==null||r.onTrackerMouseOut(n)}).on("touchstart",o),!s.styledMode&&i.options.cursor&&i[a].css({cursor:i.options.cursor}))}),i._hasTracking=!0),Za(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)}),Ht.prototype.remove.apply(t,arguments)}}xs.defaultOptions=Nr(Ht.defaultOptions,{borderRadius:3,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"}),qa(xs.prototype,{directTouch:!0,getSymbol:$c,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),ut.registerSeriesType("column",xs);let ys=xs,{getDeferredAnimation:Uc}=At,{format:qc}=jt,{defined:Ee,extend:_a,fireEvent:Rr,getAlignFactor:Ja,isArray:ye,isString:wi,merge:Mi,objectEach:Zc,pick:Si,pInt:Kc,splat:Qa}=W;(function(h){function t(){return n(this).some(c=>c==null?void 0:c.enabled)}function e(c,d,p,u,g){var A;let{chart:x,enabledDataSorting:m}=this,f=this.isCartesian&&x.inverted,y=c.plotX,b=c.plotY,w=p.rotation||0,v=Ee(y)&&Ee(b)&&x.isInsidePlot(y,Math.round(b),{inverted:f,paneCoordinates:!0,series:this}),k=w===0&&Si(p.overflow,m?"none":"justify")==="justify",S=this.visible&&c.visible!==!1&&Ee(y)&&(c.series.forceDL||m&&!k||v||Si(p.inside,!!this.options.stacking)&&u&&x.isInsidePlot(y,f?u.x+1:u.y+u.height-1,{inverted:f,paneCoordinates:!0,series:this})),M=c.pos();if(S&&M){var T;let L=d.getBBox(),I=d.getBBox(void 0,0);if(u=_a({x:M[0],y:Math.round(M[1]),width:0,height:0},u||{}),p.alignTo==="plotEdges"&&this.isCartesian&&(u[f?"x":"y"]=0,u[f?"width":"height"]=((A=this.yAxis)==null?void 0:A.len)||0),_a(p,{width:L.width,height:L.height}),T=u,m&&this.xAxis&&!k&&this.setDataLabelStartPos(c,d,g,v,T),d.align(Mi(p,{width:I.width,height:I.height}),!1,u,!1),d.alignAttr.x+=Ja(p.align)*(I.width-L.width),d.alignAttr.y+=Ja(p.verticalAlign)*(I.height-L.height),d[d.placed?"animate":"attr"]({"text-align":d.alignAttr["text-align"]||"center",x:d.alignAttr.x+(L.width-I.width)/2,y:d.alignAttr.y+(L.height-I.height)/2,rotationOriginX:(d.width||0)/2,rotationOriginY:(d.height||0)/2}),k&&u.height>=0)this.justifyDataLabel(d,p,d.alignAttr,L,u,g);else if(Si(p.crop,!0)){let{x:E,y:z}=d.alignAttr;S=x.isInsidePlot(E,z,{paneCoordinates:!0,series:this})&&x.isInsidePlot(E+L.width-1,z+L.height-1,{paneCoordinates:!0,series:this})}p.shape&&!w&&d[g?"attr":"animate"]({anchorX:M[0],anchorY:M[1]})}g&&m&&(d.placed=!1),S||m&&!k?(d.show(),d.placed=!0):(d.hide(),d.placed=!1)}function i(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function s(c){let d=this.hasRendered||0,p=this.initDataLabelsGroup().attr({opacity:+d});return!d&&p&&(this.visible&&p.show(),this.options.animation?p.animate({opacity:1},c):p.attr({opacity:1})),p}function r(c){var S;let d;c=c||this.points;let p=this,u=p.chart,g=p.options,x=u.renderer,{backgroundColor:m,plotBackgroundColor:f}=u.options.chart,y=x.getContrast(wi(f)&&f||wi(m)&&m||"#000000"),b=n(p),{animation:w,defer:v}=b[0],k=v?Uc(u,w,p):{defer:0,duration:0};Rr(this,"drawDataLabels"),(S=p.hasDataLabels)!=null&&S.call(p)&&(d=this.initDataLabels(k),c.forEach(M=>{var I,E,z;let T=M.dataLabels||[],A=M.color||p.color;Qa(a(b,M.dlOptions||((I=M.options)==null?void 0:I.dataLabels))).forEach((B,G)=>{var at;let R=B.enabled&&(M.visible||M.dataLabelOnHidden)&&(!M.isNull||M.dataLabelOnNull)&&function(vt,ne){let $t=ne.filter;if($t){let Vt=$t.operator,zt=vt[$t.property],xt=$t.value;return Vt===">"&&zt>xt||Vt==="<"&&zt<xt||Vt===">="&&zt>=xt||Vt==="<="&&zt<=xt||Vt==="=="&&zt==xt||Vt==="==="&&zt===xt||Vt==="!="&&zt!=xt||Vt==="!=="&&zt!==xt||!1}return!0}(M,B),{backgroundColor:j,borderColor:K,distance:q,style:J={}}=B,Ot,_,st,Y={},H=T[G],ft=!H,rt;R&&(_=Ee(Ot=Si(B[M.formatPrefix+"Format"],B.format))?qc(Ot,M,u):(B[M.formatPrefix+"Formatter"]||B.formatter).call(M,B),st=B.rotation,!u.styledMode&&(J.color=Si(B.color,J.color,wi(p.color)?p.color:void 0,"#000000"),J.color==="contrast"?(j!=="none"&&(rt=j),M.contrastColor=x.getContrast(rt!=="auto"&&wi(rt)&&rt||(wi(A)?A:"")),J.color=rt||!Ee(q)&&B.inside||0>Kc(q||0)||g.stacking?M.contrastColor:y):delete M.contrastColor,g.cursor&&(J.cursor=g.cursor)),Y={r:B.borderRadius||0,rotation:st,padding:B.padding,zIndex:1},u.styledMode||(Y.fill=j==="auto"?M.color:j,Y.stroke=K==="auto"?M.color:K,Y["stroke-width"]=B.borderWidth),Zc(Y,(vt,ne)=>{vt===void 0&&delete Y[ne]})),!H||R&&Ee(_)&&!!(H.div||(at=H.text)!=null&&at.foreignObject)==!!B.useHTML&&(H.rotation&&B.rotation||H.rotation===B.rotation)||(H=void 0,ft=!0),R&&Ee(_)&&(H?Y.text=_:(H=x.label(_,0,0,B.shape,void 0,void 0,B.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+M.colorIndex+" "+(B.className||"")+(B.useHTML?" highcharts-tracker":"")),H&&(H.options=B,H.attr(Y),u.styledMode?J.width&&H.css({width:J.width,textOverflow:J.textOverflow,whiteSpace:J.whiteSpace}):H.css(J).shadow(B.shadow),Rr(H,"beforeAddingDataLabel",{labelOptions:B,point:M}),H.added||H.add(d),p.alignDataLabel(M,H,B,void 0,ft),H.isActive=!0,T[G]&&T[G]!==H&&T[G].destroy(),T[G]=H))});let L=T.length;for(;L--;)(E=T[L])!=null&&E.isActive?T[L].isActive=!1:((z=T[L])==null||z.destroy(),T.splice(L,1));M.dataLabel=T[0],M.dataLabels=T})),Rr(this,"afterDrawDataLabels")}function o(c,d,p,u,g,x){let m=this.chart,f=d.align,y=d.verticalAlign,b=c.box?0:c.padding||0,w=m.inverted?this.yAxis:this.xAxis,v=w?w.left-m.plotLeft:0,k=m.inverted?this.xAxis:this.yAxis,S=k?k.top-m.plotTop:0,{x:M=0,y:T=0}=d,A,L;return(A=(p.x||0)+b+v)<0&&(f==="right"&&M>=0?(d.align="left",d.inside=!0):M-=A,L=!0),(A=(p.x||0)+u.width-b+v)>m.plotWidth&&(f==="left"&&M<=0?(d.align="right",d.inside=!0):M+=m.plotWidth-A,L=!0),(A=p.y+b+S)<0&&(y==="bottom"&&T>=0?(d.verticalAlign="top",d.inside=!0):T-=A,L=!0),(A=(p.y||0)+u.height-b+S)>m.plotHeight&&(y==="top"&&T<=0?(d.verticalAlign="bottom",d.inside=!0):T+=m.plotHeight-A,L=!0),L&&(d.x=M,d.y=T,c.placed=!x,c.align(d,void 0,g)),L}function a(c,d){let p=[],u;if(ye(c)&&!ye(d))p=c.map(function(g){return Mi(g,d)});else if(ye(d)&&!ye(c))p=d.map(function(g){return Mi(c,g)});else if(ye(c)||ye(d)){if(ye(c)&&ye(d))for(u=Math.max(c.length,d.length);u--;)p[u]=Mi(c[u],d[u])}else p=Mi(c,d);return p}function n(c){var p,u;let d=c.chart.options.plotOptions;return Qa(a(a((p=d==null?void 0:d.series)==null?void 0:p.dataLabels,(u=d==null?void 0:d[c.type])==null?void 0:u.dataLabels),c.options.dataLabels))}function l(c,d,p,u,g){let x=this.chart,m=x.inverted,f=this.xAxis,y=f.reversed,b=((m?d.height:d.width)||0)/2,w=c.pointWidth,v=w?w/2:0;d.startXPos=m?g.x:y?-b-v:f.width-b+v,d.startYPos=m?y?this.yAxis.height-b+v:-b-v:g.y,u?d.visibility==="hidden"&&(d.show(),d.attr({opacity:0}).animate({opacity:1})):d.attr({opacity:1}).animate({opacity:0},void 0,d.hide),x.hasRendered&&(p&&d.attr({x:d.startXPos,y:d.startYPos}),d.placed=!0)}h.compose=function(c){let d=c.prototype;d.initDataLabels||(d.initDataLabels=s,d.initDataLabelsGroup=i,d.alignDataLabel=e,d.drawDataLabels=r,d.justifyDataLabel=o,d.mergeArrays=a,d.setDataLabelStartPos=l,d.hasDataLabels=t)}})(ei||(ei={}));let bs=ei,{composed:_c}=O,{series:tn}=ut,{merge:Jc,pushUnique:Qc}=W;(function(h){function t(e,i,s,r,o){var x,m;let{chart:a,options:n}=this,l=a.inverted,c=((x=this.xAxis)==null?void 0:x.len)||a.plotSizeX||0,d=((m=this.yAxis)==null?void 0:m.len)||a.plotSizeY||0,p=e.dlBox||e.shapeArgs,u=e.below??(e.plotY||0)>(this.translatedThreshold??d),g=s.inside??!!n.stacking;if(p){if(r=Jc(p),s.overflow!=="allow"||s.crop!==!1||n.clip!==!1){r.y<0&&(r.height+=r.y,r.y=0);let f=r.y+r.height-d;f>0&&f<r.height-1&&(r.height-=f)}l&&(r={x:d-r.y-r.height,y:c-r.x-r.width,width:r.height,height:r.width}),g||(l?(r.x+=u?0:r.width,r.width=0):(r.y+=u?r.height:0,r.height=0))}s.align??(s.align=!l||g?"center":u?"right":"left"),s.verticalAlign??(s.verticalAlign=l||g?"middle":u?"top":"bottom"),tn.prototype.alignDataLabel.call(this,e,i,s,r,o),s.inside&&e.contrastColor&&i.css({color:e.contrastColor})}h.compose=function(e){bs.compose(tn),Qc(_c,"ColumnDataLabel")&&(e.prototype.alignDataLabel=t)}})(Ct||(Ct={}));let tp=Ct,{extend:ep,merge:ip}=W;class Wr extends ys{}Wr.defaultOptions=ip(ys.defaultOptions,{}),ep(Wr.prototype,{inverted:!0}),ut.registerSeriesType("bar",Wr);let{column:sp,line:en}=ut.seriesTypes,{addEvent:rp,extend:op,merge:ap}=W;class vs extends en{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(s,r){["x","y"].forEach(function(o,a){if(e[o]&&!s.isNull){let n=`plot${o.toUpperCase()}`,l=t[`${o}Axis`],c=e[o]*l.transA;if(l&&!l.logarithmic){let d=Math.max(0,(s[n]||0)-c),p=Math.min(l.len,(s[n]||0)+c);s[n]=d+(p-d)*function(u){let g=1e4*Math.sin(u);return g-Math.floor(g)}(r+a*i),o==="x"&&(s.clientX=s.plotX)}}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}vs.defaultOptions=ap(en.defaultOptions,{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}),op(vs.prototype,{drawTracker:sp.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),rp(vs,"afterTranslate",function(){this.applyJitter()}),ut.registerSeriesType("scatter",vs);let{deg2rad:sn}=O,{fireEvent:np,isNumber:Hr,pick:ks,relativeLength:lp}=W;(function(h){h.getCenter=function(){let t=this.options,e=this.chart,i=2*(t.slicedOffset||0),s=e.plotWidth-2*i,r=e.plotHeight-2*i,o=t.center,a=Math.min(s,r),n=t.thickness,l,c=t.size,d=t.innerSize||0,p,u;typeof c=="string"&&(c=parseFloat(c)),typeof d=="string"&&(d=parseFloat(d));let g=[ks(o==null?void 0:o[0],"50%"),ks(o==null?void 0:o[1],"50%"),ks(c&&c<0?void 0:t.size,"100%"),ks(d&&d<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof Ht||(g[3]=0),p=0;p<4;++p)u=g[p],l=p<2||p===2&&/%$/.test(u),g[p]=lp(u,[s,r,a,g[2]][p])+(l?i:0);return g[3]>g[2]&&(g[3]=g[2]),Hr(n)&&2*n<g[2]&&n>0&&(g[3]=g[2]-2*n),np(this,"afterGetCenter",{positions:g}),g},h.getStartAndEndRadians=function(t,e){let i=Hr(t)?t:0,s=Hr(e)&&e>i&&e-i<360?e:i+360;return{start:sn*(i+-90),end:sn*(s+-90)}}})(et||(et={}));let rn=et,{setAnimation:hp}=At,{addEvent:on,defined:dp,extend:cp,isNumber:pp,pick:up,relativeLength:gp}=W;class an extends pe{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,r=this.connectorShapes[s]||s;return e&&r.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})}constructor(t,e,i){super(t,e,i),this.half=0,this.name??(this.name=t.chart.options.lang.pieSliceName);let s=r=>{this.slice(r.type==="select")};on(this,"select",s),on(this,"unselect",s)}isValid(){return pp(this.y)&&this.y>=0}setVisible(t,e=!0){t!==this.visible&&this.update({visible:t??!this.visible},e,void 0,!1)}slice(t,e,i){let s=this.series;hp(i,s.chart),e=up(e,!0),this.sliced=this.options.sliced=t=dp(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}cp(an.prototype,{connectorShapes:{fixedOffset:function(h,t,e){let i=t.breakAt,s=t.touchingSliceAt,r=e.softConnector?["C",h.x+(h.alignment==="left"?-5:5),h.y,2*i.x-s.x,2*i.y-s.y,i.x,i.y]:["L",i.x,i.y];return[["M",h.x,h.y],r,["L",s.x,s.y]]},straight:function(h,t){let e=t.touchingSliceAt;return[["M",h.x,h.y],["L",e.x,e.y]]},crookedLine:function(h,t,e){let{angle:i=this.angle||0,breakAt:s,touchingSliceAt:r}=t,{series:o}=this,[a,n,l]=o.center,c=l/2,{plotLeft:d,plotWidth:p}=o.chart,u=h.alignment==="left",{x:g,y:x}=h,m=s.x;if(e.crookDistance){let y=gp(e.crookDistance,1);m=u?a+c+(p+d-a-c)*(1-y):d+(a-c)*y}else m=a+(n-x)*Math.tan(i-Math.PI/2);let f=[["M",g,x]];return(u?m<=g&&m>=s.x:m>=g&&m<=s.x)&&f.push(["L",m,x]),f.push(["L",s.x,s.y],["L",r.x,r.y]),f}}});let{getStartAndEndRadians:fp}=rn,{noop:nn}=O,{clamp:mp,extend:xp,fireEvent:ln,merge:Xr,pick:yp}=W;class Fr extends Ht{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach(function(r){let o=r.graphic,a=r.shapeArgs;o&&a&&(o.attr({r:yp(r.startR,e.center&&e.center[3]/2),start:s,end:s}),o.animate({r:a.r,start:a.start,end:a.end},e.options.animation))})}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,r=this.options;this.total===0&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:Bo.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":r.borderWidth,fill:r.fillColor||"none",stroke:r.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;this.points.forEach(function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,i,s){let r=this.center,o=this.radii?this.radii[i.index]||0:r[2]/2,a=s.dataLabelPosition,n=(a==null?void 0:a.distance)||0,l=Math.asin(mp((t-r[1])/(o+n),-1,1));return r[0]+Math.cos(l)*(o+n)*(e?-1:1)+(n>0?(e?-1:1)*(s.padding||0):0)}hasData(){return!!this.dataTable.rowCount}redrawPoints(){let t,e,i,s,r=this,o=r.chart;this.drawEmpty(),r.group&&!o.styledMode&&r.group.shadow(r.options.shadow),r.points.forEach(function(a){let n={};e=a.graphic,!a.isNull&&e?(s=a.shapeArgs,t=a.getTranslate(),o.styledMode||(i=r.pointAttribs(a,a.selected&&"select")),a.delayedRendering?(e.setRadialReference(r.center).attr(s).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),a.delayedRendering=!1):(e.setRadialReference(r.center),o.styledMode||Xr(!0,n,i),Xr(!0,n,s,t),e.animate(n)),e.attr({visibility:a.visible?"inherit":"hidden"}),e.addClass(a.getClassName(),!0)):e&&(a.graphic=e.destroy())})}sortByAngle(t,e){t.sort(function(i,s){return i.angle!==void 0&&(s.angle-i.angle)*e})}translate(t){ln(this,"translate"),this.generatePoints();let e=this.options,i=e.slicedOffset,s=fp(e.startAngle,e.endAngle),r=this.startAngleRad=s.start,o=(this.endAngleRad=s.end)-r,a=this.points,n=e.ignoreHiddenPoint,l=a.length,c,d,p,u,g,x,m,f=0;for(t||(this.center=t=this.getCenter()),x=0;x<l;x++){m=a[x],c=r+f*o,m.isValid()&&(!n||m.visible)&&(f+=m.percentage/100),d=r+f*o;let y={x:t[0],y:t[1],r:t[2]/2,innerR:t[3]/2,start:Math.round(1e3*c)/1e3,end:Math.round(1e3*d)/1e3};m.shapeType="arc",m.shapeArgs=y,(p=(d+c)/2)>1.5*Math.PI?p-=2*Math.PI:p<-Math.PI/2&&(p+=2*Math.PI),m.slicedTranslation={translateX:Math.round(Math.cos(p)*i),translateY:Math.round(Math.sin(p)*i)},u=Math.cos(p)*t[2]/2,g=Math.sin(p)*t[2]/2,m.tooltipPos=[t[0]+.7*u,t[1]+.7*g],m.half=+(p<-Math.PI/2||p>Math.PI/2),m.angle=p}ln(this,"afterTranslate")}updateTotals(){let t=this.points,e=t.length,i=this.options.ignoreHiddenPoint,s,r,o=0;for(s=0;s<e;s++)(r=t[s]).isValid()&&(!i||r.visible)&&(o+=r.y);for(s=0,this.total=o;s<e;s++)(r=t[s]).percentage=o>0&&(r.visible||!i)?r.y/o*100:0,r.total=o}}Fr.defaultOptions=Xr(Ht.defaultOptions,{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.isNull?void 0:this.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}}}),xp(Fr.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:ys.prototype.drawTracker,getCenter:rn.getCenter,getSymbol:nn,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:ys.prototype.pointAttribs,pointClass:an,requireSorting:!1,searchPoint:nn,trackerGroups:["group","dataLabelsGroup"]}),ut.registerSeriesType("pie",Fr);let{composed:bp,noop:vp}=O,{distribute:kp}=Ni,{series:hn}=ut,{arrayMax:wp,clamp:dn,defined:cn,pick:Mp,pushUnique:Sp,relativeLength:pn}=W;(function(h){let t={radialDistributionY:function(o,a){var n;return(((n=a.dataLabelPosition)==null?void 0:n.top)||0)+o.distributeBox.pos},radialDistributionX:function(o,a,n,l,c){let d=c.dataLabelPosition;return o.getX(n<((d==null?void 0:d.top)||0)+2||n>((d==null?void 0:d.bottom)||0)-2?l:n,a.half,a,c)},justify:function(o,a,n,l){var c;return l[0]+(o.half?-1:1)*(n+(((c=a.dataLabelPosition)==null?void 0:c.distance)||0))},alignToPlotEdges:function(o,a,n,l){let c=o.getBBox().width;return a?c+l:n-c-l},alignToConnectors:function(o,a,n,l){let c=0,d;return o.forEach(function(p){(d=p.dataLabel.getBBox().width)>c&&(c=d)}),a?c+l:n-c-l}};function e(o,a){let n=Math.PI/2,{start:l=0,end:c=0}=o.shapeArgs||{},d=o.angle||0;a>0&&l<n&&c>n&&d>n/2&&d<1.5*n&&(d=d<=n?Math.max(n/2,(l+n)/2):Math.min(1.5*n,(n+c)/2));let{center:p,options:u}=this,g=p[2]/2,x=Math.cos(d),m=Math.sin(d),f=p[0]+x*g,y=p[1]+m*g,b=Math.min((u.slicedOffset||0)+(u.borderWidth||0),a/5);return{natural:{x:f+x*a,y:y+m*a},computed:{},alignment:a<0?"center":o.half?"right":"left",connectorPosition:{angle:d,breakAt:{x:f+x*b,y:y+m*b},touchingSliceAt:{x:f,y}},distance:a}}function i(){var S;let o=this,a=o.points,n=o.chart,l=n.plotWidth,c=n.plotHeight,d=n.plotLeft,p=Math.round(n.chartWidth/3),u=o.center,g=u[2]/2,x=u[1],m=[[],[]],f=[0,0,0,0],y=o.dataLabelPositioners,b,w,v,k=0;o.visible&&((S=o.hasDataLabels)!=null&&S.call(o))&&(a.forEach(M=>{(M.dataLabels||[]).forEach(T=>{T.shortened&&(T.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),T.shortened=!1)})}),hn.prototype.drawDataLabels.apply(o),a.forEach(M=>{(M.dataLabels||[]).forEach((T,A)=>{var z;let L=u[2]/2,I=T.options,E=pn((I==null?void 0:I.distance)||0,L);A===0&&m[M.half].push(M),!cn((z=I==null?void 0:I.style)==null?void 0:z.width)&&T.getBBox().width>p&&(T.css({width:Math.round(.7*p)+"px"}),T.shortened=!0),T.dataLabelPosition=this.getDataLabelPosition(M,E),k=Math.max(k,E)})}),m.forEach((M,T)=>{let A=M.length,L=[],I,E,z=0,B;A&&(o.sortByAngle(M,T-.5),k>0&&(I=Math.max(0,x-g-k),E=Math.min(x+g+k,n.plotHeight),M.forEach(G=>{(G.dataLabels||[]).forEach(R=>{var K;let j=R.dataLabelPosition;j&&j.distance>0&&(j.top=Math.max(0,x-g-j.distance),j.bottom=Math.min(x+g+j.distance,n.plotHeight),z=R.getBBox().height||21,R.lineHeight=n.renderer.fontMetrics(R.text||R).h+2*R.padding,G.distributeBox={target:(((K=R.dataLabelPosition)==null?void 0:K.natural.y)||0)-j.top+R.lineHeight/2,size:z,rank:G.y},L.push(G.distributeBox))})}),kp(L,B=E+z-I,B/5)),M.forEach(G=>{(G.dataLabels||[]).forEach(R=>{let j=R.options||{},K=G.distributeBox,q=R.dataLabelPosition,J=(q==null?void 0:q.natural.y)||0,Ot=j.connectorPadding||0,_=R.lineHeight||21,st=(_-R.getBBox().height)/2,Y=0,H=J,ft="inherit";if(q){if(L&&cn(K)&&q.distance>0&&(K.pos===void 0?ft="hidden":(v=K.size,H=y.radialDistributionY(G,R))),j.justify)Y=y.justify(G,R,g,u);else switch(j.alignTo){case"connectors":Y=y.alignToConnectors(M,T,l,d);break;case"plotEdges":Y=y.alignToPlotEdges(R,T,l,d);break;default:Y=y.radialDistributionX(o,G,H-st,J,R)}if(q.attribs={visibility:ft,align:q.alignment},q.posAttribs={x:Y+(j.x||0)+({left:Ot,right:-Ot}[q.alignment]||0),y:H+(j.y||0)-_/2},q.computed.x=Y,q.computed.y=H-st,Mp(j.crop,!0)){let rt;Y-(w=R.getBBox().width)<Ot&&T===1?(rt=Math.round(w-Y+Ot),f[3]=Math.max(rt,f[3])):Y+w>l-Ot&&T===0&&(rt=Math.round(Y+w-l+Ot),f[1]=Math.max(rt,f[1])),H-v/2<0?f[0]=Math.max(Math.round(-H+v/2),f[0]):H+v/2>c&&(f[2]=Math.max(Math.round(H+v/2-c),f[2])),q.sideOverflow=rt}}})}))}),(wp(f)===0||this.verifyDataLabelOverflow(f))&&(this.placeDataLabels(),this.points.forEach(M=>{(M.dataLabels||[]).forEach(T=>{var E;let{connectorColor:A,connectorWidth:L=1}=T.options||{},I=T.dataLabelPosition;if(L){let z;b=T.connector,I&&I.distance>0?(z=!b,b||(T.connector=b=n.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+M.colorIndex+(M.className?" "+M.className:"")).add(o.dataLabelsGroup)),n.styledMode||b.attr({"stroke-width":L,stroke:A||M.color||"#666666"}),b[z?"attr":"animate"]({d:M.getConnectorPath(T)}),b.attr({visibility:(E=I.attribs)==null?void 0:E.visibility})):b&&(T.connector=b.destroy())}})})))}function s(){this.points.forEach(o=>{(o.dataLabels||[]).forEach(a=>{var l,c;let n=a.dataLabelPosition;n?(n.sideOverflow&&(a.css({width:Math.max(a.getBBox().width-n.sideOverflow,0)+"px",textOverflow:((c=(l=a.options)==null?void 0:l.style)==null?void 0:c.textOverflow)||"ellipsis"}),a.shortened=!0),a.attr(n.attribs),a[a.moved?"animate":"attr"](n.posAttribs),a.moved=!0):a&&a.attr({y:-9999})}),delete o.distributeBox},this)}function r(o){let a=this.center,n=this.options,l=n.center,c=n.minSize||80,d=c,p=n.size!==null;return!p&&(l[0]!==null?d=Math.max(a[2]-Math.max(o[1],o[3]),c):(d=Math.max(a[2]-o[1]-o[3],c),a[0]+=(o[3]-o[1])/2),l[1]!==null?d=dn(d,c,a[2]-Math.max(o[0],o[2])):(d=dn(d,c,a[2]-o[0]-o[2]),a[1]+=(o[0]-o[2])/2),d<a[2]?(a[2]=d,a[3]=Math.min(n.thickness?Math.max(0,d-2*n.thickness):Math.max(0,pn(n.innerSize||0,d)),d),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):p=!0),p}h.compose=function(o){if(bs.compose(hn),Sp(bp,"PieDataLabel")){let a=o.prototype;a.dataLabelPositioners=t,a.alignDataLabel=vp,a.drawDataLabels=i,a.getDataLabelPosition=e,a.placeDataLabels=s,a.verifyDataLabelOverflow=r}}})(pt||(pt={}));let Tp=pt;(function(h){h.getCenterOfPoints=function(t){let e=t.reduce((i,s)=>(i.x+=s.x,i.y+=s.y,i),{x:0,y:0});return{x:e.x/t.length,y:e.y/t.length}},h.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},h.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},h.pointInPolygon=function({x:t,y:e},i){let s=i.length,r,o,a=!1;for(r=0,o=s-1;r<s;o=r++){let[n,l]=i[r],[c,d]=i[o];l>e!=d>e&&t<(c-n)*(e-l)/(d-l)+n&&(a=!a)}return a}})(yt||(yt={}));let{pointInPolygon:Cp}=yt,{addEvent:Ap,getAlignFactor:Pp,fireEvent:un,objectEach:gn,pick:Op}=W;function Lp(h){let t=h.length,e=(c,d)=>!(d.x>=c.x+c.width||d.x+d.width<=c.x||d.y>=c.y+c.height||d.y+d.height<=c.y),i=(c,d)=>{for(let p of c)if(Cp({x:p[0],y:p[1]},d))return!0;return!1},s,r,o,a,n,l=!1;for(let c=0;c<t;c++)(s=h[c])&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=function(d){var p,u;if(d&&(!d.alignAttr||d.placed)){let g=d.box?0:d.padding||0,x=d.alignAttr||{x:d.attr("x"),y:d.attr("y")},{height:m,polygon:f,width:y}=d.getBBox(),b=Pp(d.alignValue)*y;return d.width=y,d.height=m,{x:x.x+(((p=d.parentGroup)==null?void 0:p.translateX)||0)+g-b,y:x.y+(((u=d.parentGroup)==null?void 0:u.translateY)||0)+g,width:y-2*g,height:m-2*g,polygon:f}}}(s));h.sort((c,d)=>(d.labelrank||0)-(c.labelrank||0));for(let c=0;c<t;++c){a=(r=h[c])&&r.absoluteBox;let d=a==null?void 0:a.polygon;for(let p=c+1;p<t;++p){n=(o=h[p])&&o.absoluteBox;let u=!1;if(a&&n&&r!==o&&r.newOpacity!==0&&o.newOpacity!==0&&r.visibility!=="hidden"&&o.visibility!=="hidden"){let g=n.polygon;if(d&&g&&d!==g?i(d,g)&&(u=!0):e(a,n)&&(u=!0),u){let x=r.labelrank<o.labelrank?r:o,m=x.text;x.newOpacity=0,m!=null&&m.element.querySelector("textPath")&&m.hide()}}}}for(let c of h)fn(c,this)&&(l=!0);l&&un(this,"afterHideAllOverlappingLabels")}function fn(h,t){let e,i=!1;return h&&(e=h.newOpacity,h.oldOpacity!==e&&(h.hasClass("highcharts-data-label")?(h[e?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,h[h.isOld?"animate":"attr"]({opacity:e},void 0,function(){t.styledMode||h.css({pointerEvents:e?"auto":"none"})}),un(t,"afterHideOverlappingLabel")):h.attr({opacity:e})),h.isOld=!0),i}function Ep(){var e;let h=this,t=[];for(let i of h.labelCollectors||[])t=t.concat(i());for(let i of h.yAxis||[])i.stacking&&i.options.stackLabels&&!i.options.stackLabels.allowOverlap&&gn(i.stacking.stacks,s=>{gn(s,r=>{r.label&&t.push(r.label)})});for(let i of h.series||[])if(i.visible&&((e=i.hasDataLabels)!=null&&e.call(i))){let s=r=>{for(let o of r)o.visible&&(o.dataLabels||[]).forEach(a=>{var l;let n=a.options||{};a.labelrank=Op(n.labelrank,o.labelrank,(l=o.shapeArgs)==null?void 0:l.height),n.allowOverlap??Number(n.distance)>0?(a.oldOpacity=a.opacity,a.newOpacity=1,fn(a,h)):t.push(a)})};s(i.nodes||[]),s(i.points)}this.hideOverlappingLabels(t)}let mn={compose:function(h){let t=h.prototype;t.hideOverlappingLabels||(t.hideOverlappingLabels=Lp,Ap(h,"render",Ep))}},{defaultOptions:Ip}=Ft,{noop:xn}=O,{addEvent:yn,extend:Dp,isObject:bn,merge:Bp,relativeLength:jr}=W,zp={radius:0,scope:"stack",where:void 0},vn=xn,kn=xn;function Np(h,t,e,i,s={}){let r=vn(h,t,e,i,s),{innerR:o=0,r:a=e,start:n=0,end:l=0}=s;if(s.open||!s.borderRadius)return r;let c=l-n,d=Math.sin(c/2),p=Math.max(Math.min(jr(s.borderRadius||0,a-o),(a-o)/2,a*d/(1+d)),0),u=Math.min(p,c/Math.PI*2*o),g=r.length-1;for(;g--;)(function(x,m,f){let y,b,w,v=x[m],k=x[m+1];if(k[0]==="Z"&&(k=x[0]),(v[0]==="M"||v[0]==="L")&&k[0]==="A"?(y=v,b=k,w=!0):v[0]==="A"&&(k[0]==="M"||k[0]==="L")&&(y=k,b=v),y&&b&&b.params){let S=b[1],M=b[5],T=b.params,{start:A,end:L,cx:I,cy:E}=T,z=M?S-f:S+f,B=z?Math.asin(f/z):0,G=M?B:-B,R=Math.cos(B)*z;w?(T.start=A+G,y[1]=I+R*Math.cos(A),y[2]=E+R*Math.sin(A),x.splice(m+1,0,["A",f,f,0,0,1,I+S*Math.cos(T.start),E+S*Math.sin(T.start)])):(T.end=L-G,b[6]=I+S*Math.cos(T.end),b[7]=E+S*Math.sin(T.end),x.splice(m+1,0,["A",f,f,0,0,1,I+R*Math.cos(L),E+R*Math.sin(L)])),b[4]=Math.abs(T.end-T.start)<Math.PI?0:1}})(r,g,g>1?u:p);return r}function Rp(){var h,t;if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:e,yAxis:i}=this,s=e.stacking==="percent",r=(t=(h=Ip.plotOptions)==null?void 0:h[this.type])==null?void 0:t.borderRadius,o=Gr(e.borderRadius,bn(r)?r:{}),a=i.options.reversed;for(let n of this.points){let{shapeArgs:l}=n;if(n.shapeType==="roundedRect"&&l){let{width:c=0,height:d=0,y:p=0}=l,u=p,g=d;if(o.scope==="stack"&&n.stackTotal){let y=i.translate(s?100:n.stackTotal,!1,!0,!1,!0),b=i.translate(e.threshold||0,!1,!0,!1,!0),w=this.crispCol(0,Math.min(y,b),0,Math.abs(y-b));u=w.y,g=w.height}let x=(n.negative?-1:1)*(a?-1:1)==-1,m=o.where;!m&&this.is("waterfall")&&Math.abs((n.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(m="all"),m||(m="end");let f=Math.min(jr(o.radius,c),c/2,m==="all"?d/2:1/0)||0;m==="end"&&(x&&(u-=f),g+=f),Dp(l,{brBoxHeight:g,brBoxY:u,r:f})}}}}function Gr(h,t){return bn(h)||(h={radius:h||0}),Bp(zp,t,h)}function Wp(){let h=Gr(this.options.borderRadius);for(let t of this.points){let e=t.shapeArgs;e&&(e.borderRadius=jr(h.radius,(e.r||0)-(e.innerR||0)))}}function Hp(h,t,e,i,s={}){let r=kn(h,t,e,i,s),{r:o=0,brBoxHeight:a=i,brBoxY:n=t}=s,l=t-n,c=n+a-(t+i),d=l-o>-.1?0:o,p=c-o>-.1?0:o,u=Math.max(d&&l,0),g=Math.max(p&&c,0),x=[h+d,t],m=[h+e-d,t],f=[h+e,t+d],y=[h+e,t+i-p],b=[h+e-p,t+i],w=[h+p,t+i],v=[h,t+i-p],k=[h,t+d],S=(M,T)=>Math.sqrt(Math.pow(M,2)-Math.pow(T,2));if(u){let M=S(d,d-u);x[0]-=M,m[0]+=M,f[1]=k[1]=t+d-u}if(i<d-u){let M=S(d,d-u-i);f[0]=y[0]=h+e-d+M,b[0]=Math.min(f[0],b[0]),w[0]=Math.max(y[0],w[0]),v[0]=k[0]=h+d-M,f[1]=k[1]=t+i}if(g){let M=S(p,p-g);b[0]+=M,w[0]-=M,y[1]=v[1]=t+i-p+g}if(i<p-g){let M=S(p,p-g-i);f[0]=y[0]=h+e-p+M,m[0]=Math.min(f[0],m[0]),x[0]=Math.max(y[0],x[0]),v[0]=k[0]=h+p-M,y[1]=v[1]=t}return r.length=0,r.push(["M",...x],["L",...m],["A",d,d,0,0,1,...f],["L",...y],["A",p,p,0,0,1,...b],["L",...w],["A",p,p,0,0,1,...v],["L",...k],["A",d,d,0,0,1,...x],["Z"]),r}let{diffObjects:Xp,extend:Fp,find:jp,merge:Gp,pick:ws,uniqueKey:Yp}=W;(function(h){function t(i,s){let r=i.condition;(r.callback||function(){return this.chartWidth<=ws(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=ws(r.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=ws(r.minWidth,0)&&this.chartHeight>=ws(r.minHeight,0)}).call(this)&&s.push(i._id)}function e(i,s){let r=this.options.responsive,o=this.currentResponsive,a=[],n;!s&&r&&r.rules&&r.rules.forEach(d=>{d._id===void 0&&(d._id=Yp()),this.matchResponsiveRule(d,a)},this);let l=Gp(...a.map(d=>jp((r==null?void 0:r.rules)||[],p=>p._id===d)).map(d=>d==null?void 0:d.chartOptions));l.isResponsiveOptions=!0,a=a.toString()||void 0;let c=o==null?void 0:o.ruleIds;a===c||(o&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(o.undoOptions,i,!0),this.updatingResponsive=!1),a?((n=Xp(l,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:l,undoOptions:n},this.updatingResponsive||this.update(l,i,!0)):this.currentResponsive=void 0)}h.compose=function(i){let s=i.prototype;return s.matchResponsiveRule||Fp(s,{matchResponsiveRule:t,setResponsive:e}),i}})(Be||(Be={}));let $p=Be;O.AST=lt,O.Axis=$e,O.Chart=me,O.Color=ht,O.DataLabel=bs,O.DataTableCore=os,O.Fx=Bt,O.HTMLElement=Ge,O.Legend=Pa,O.LegendSymbol=ga,O.OverlappingDataLabels=O.OverlappingDataLabels||mn,O.PlotLineOrBand=ts,O.Point=pe,O.Pointer=ca,O.RendererRegistry=ni,O.Series=Ht,O.SeriesRegistry=ut,O.StackItem=Xa,O.SVGElement=Jt,O.SVGRenderer=Yi,O.Templating=jt,O.Tick=Ye,O.Time=Is,O.Tooltip=aa,O.animate=At.animate,O.animObject=At.animObject,O.chart=me.chart,O.color=ht.parse,O.dateFormat=jt.dateFormat,O.defaultOptions=Ft.defaultOptions,O.distribute=Ni.distribute,O.format=jt.format,O.getDeferredAnimation=At.getDeferredAnimation,O.getOptions=Ft.getOptions,O.numberFormat=jt.numberFormat,O.seriesType=ut.seriesType,O.setAnimation=At.setAnimation,O.setOptions=Ft.setOptions,O.stop=At.stop,O.time=Ft.defaultTime,O.timers=Bt.timers,{compose:function(h,t,e){let i=h.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let s=e.prototype.symbols;yn(h,"afterColumnTranslate",Rp,{order:9}),yn(i,"afterTranslate",Wp),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY"),vn=s.arc,kn=s.roundedRect,s.arc=Np,s.roundedRect=Hp}},optionsToObject:Gr}.compose(O.Series,O.SVGElement,O.SVGRenderer),tp.compose(O.Series.types.column),bs.compose(O.Series),Bh.compose(O.Axis),Ge.compose(O.SVGRenderer),Pa.compose(O.Chart),Rh.compose(O.Axis),mn.compose(O.Chart),Tp.compose(O.Series.types.pie),ts.compose(O.Chart,O.Axis),ca.compose(O.Chart),$p.compose(O.Chart),yi.compose(O.Axis,O.Chart,O.Series),Dc.compose(O.Axis,O.Chart,O.Series),aa.compose(O.Pointer),W.extend(O,W);let Vp=O;return ke.default})())}(Ts)),Ts.exports}var Tn;function bu(){return Tn||(Tn=1,function(P,C){(function(F,tt){P.exports=tt(yu(),Qp())})(self,(F,tt)=>(()=>{var $={879:Z=>{Z.exports=F},744:Z=>{Z.exports=tt}},N={};function D(Z){var nt=N[Z];if(nt!==void 0)return nt.exports;var It=N[Z]={exports:{}};return $[Z](It,It.exports,D),It.exports}D.n=Z=>{var nt=Z&&Z.__esModule?()=>Z.default:()=>Z;return D.d(nt,{a:nt}),nt},D.d=(Z,nt)=>{for(var It in nt)D.o(nt,It)&&!D.o(Z,It)&&Object.defineProperty(Z,It,{enumerable:!0,get:nt[It]})},D.o=(Z,nt)=>Object.prototype.hasOwnProperty.call(Z,nt),D.r=Z=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Z,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Z,"__esModule",{value:!0})};var U={};return(()=>{D.r(U),D.d(U,{Chart:()=>ti,default:()=>ei});var Z=D(879),nt=D.n(Z),It=function Ct(et,pt){var yt=nt().isArray(et)?[]:{};function Be(Rt,ke){!nt().isObject(Rt,!pt)||nt().isClass(Rt)||nt().isDOMElement(Rt)?yt[ke]=Rt:yt[ke]=Ct(Rt,pt)}return nt().isArray(et)?et.forEach(function(Rt,ke){return Be(Rt,ke)}):nt().objectEach(et,Be),yt},Je=D(744);function Qe(Ct){return function(et){if(Array.isArray(et))return ve(et)}(Ct)||function(et){if(typeof Symbol<"u"&&et[Symbol.iterator]!=null||et["@@iterator"]!=null)return Array.from(et)}(Ct)||function(et,pt){if(et){if(typeof et=="string")return ve(et,pt);var yt=Object.prototype.toString.call(et).slice(8,-1);if(yt==="Object"&&et.constructor&&(yt=et.constructor.name),yt==="Map"||yt==="Set")return Array.from(et);if(yt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(yt))return ve(et,pt)}}(Ct)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ve(Ct,et){(et==null||et>Ct.length)&&(et=Ct.length);for(var pt=0,yt=new Array(et);pt<et;pt++)yt[pt]=Ct[pt];return yt}const De=function(Ct){var et=this;return{render:function(){return(0,Je.h)("div",{ref:"chart"})},beforeUnmount:function(){var pt;return et==null||(pt=et.chart)===null||pt===void 0?void 0:pt.destroy()},props:{constructorType:{type:String,default:"chart"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}},watch:{options:{handler:function(pt){var yt;(yt=this.chart).update.apply(yt,[It(pt,this.deepCopyOnUpdate)].concat(Qe(this.updateArgs)))},deep:!0}},mounted:function(){var pt=this.highcharts||Ct;pt[this.constructorType]?this.options?this.chart=pt[this.constructorType](this.$refs.chart,It(this.options,!0),this.callback?this.callback:null):console.error('The "options" parameter was not passed.'):console.error("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported."))}}};var ti=De(nt());function ei(Ct){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Ct.component(et.tagName||"highcharts",De(et.highcharts||nt()))}})(),U})())}(Yr)),Yr.exports}var zu=bu();const vu={class:"flex flex-col items-start justify-between p-4 md:flex-row md:items-center space-y-3 md:space-y-0","aria-label":"Table navigation"},ku={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},wu={class:"font-semibold text-gray-900 dark:text-white"},Mu={class:"font-semibold text-gray-900 dark:text-white"},Su={class:"inline-flex items-stretch font-mono -space-x-px"},Tu={key:0},Cu=["onClick"],Au={"aria-current":"page",class:"z-10 flex items-center justify-center border border-primary-300 bg-primary-50 px-3 py-2 text-sm leading-tight text-primary-600 dark:border-gray-700 dark:bg-gray-700 hover:bg-primary-100 dark:text-white hover:text-primary-700",hover:"cursor-pointer"},Pu=["onClick"],Ou={key:1},Ss="flex items-center justify-center px-3 py-2 text-sm text-gray-500 bg-white border border-gray-300 hover:bg-gray-100 hover:text-gray-700 dark:bg-gray-800 dark:border-gray-700 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white leading-tight",Nu=Cn({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(P,{emit:C}){const F=P,tt=C,$=An({get(){return F.pagination},set(N){tt("update:pagination",N)}});return(N,D)=>(Et(),Lt("nav",vu,[Q("span",ku,[D[4]||(D[4]=Li(" Showing ")),Q("span",wu,Xt(St($).currentLeft)+"-"+Xt(Math.max(0,St($).currentRight-1)),1),D[5]||(D[5]=Li(" of ")),Q("span",Mu,Xt(St($).totalSize),1)]),Q("ul",Su,[Q("li",null,[Q("a",{class:"ml-0 h-full flex items-center justify-center border border-gray-300 rounded-l-lg bg-white px-3 py-1.5 text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:D[0]||(D[0]=U=>St($).onPageChange({diff:-1}))},D[6]||(D[6]=[Q("span",{class:"sr-only"},"Previous",-1),Q("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Q("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"})],-1)]))]),St($).currentPage!==0?(Et(),Lt("li",Tu,[Q("a",{class:Nt(Ss),hover:"cursor-pointer",onClick:D[1]||(D[1]=U=>St($).onPageChange({to:0}))}," 1 ")])):Vr("",!0),(Et(!0),Lt(Pi,null,Oi(St($).leftDecrPage,U=>(Et(),Lt("li",{key:U},[Q("a",{class:Nt(Ss),hover:"cursor-pointer",onClick:Z=>St($).onPageChange({to:U})},Xt(U+1),9,Cu)]))),128)),Q("li",null,[Q("a",Au,Xt(St($).currentPage+1),1)]),(Et(!0),Lt(Pi,null,Oi(St($).rightIncrPage,U=>(Et(),Lt("li",{key:U},[Q("a",{hover:"cursor-pointer",class:Nt(Ss),onClick:Z=>St($).onPageChange({to:U})},Xt(U+1),9,Pu)]))),128)),St($).currentPage!==St($).totalPage-1&&St($).totalPage>1?(Et(),Lt("li",Ou,[Q("a",{hover:"cursor-pointer",class:Nt(Ss),onClick:D[2]||(D[2]=U=>St($).onPageChange({to:St($).totalPage-1}))},Xt(St($).totalPage),1)])):Vr("",!0),Q("li",null,[Q("a",{class:"h-full flex items-center justify-center border border-gray-300 rounded-r-lg bg-white px-3 py-1.5 leading-tight text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:D[3]||(D[3]=U=>St($).onPageChange({diff:1}))},D[7]||(D[7]=[Q("span",{class:"sr-only"},"Next",-1),Q("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[Q("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1)]))])])]))}});class Ru{constructor(){Ms(this,"totalSize");Ms(this,"currentPage");Ms(this,"pageSize");this.totalSize=0,this.currentPage=0,this.pageSize=16}get totalPage(){return Math.floor((this.totalSize+this.pageSize-1)/this.pageSize)}get currentLeft(){return this.currentPage*this.pageSize}get currentRight(){return Math.min(this.totalSize,(this.currentPage+1)*this.pageSize)}get leftDecrPage(){const C=[];let F=1,tt=this.currentPage-F;for(;tt>0;)C.push(tt),F=F<<1,tt-=F;return C.reverse()}get rightIncrPage(){const C=[];let F=1,tt=this.currentPage+F;for(;tt+1<this.totalPage;)C.push(tt),F=F<<1,tt+=F;return C}onPageChange(C){const F=this.totalPage;let tt=this.currentPage;if((C==null?void 0:C.to)!==void 0&&(tt=C.to),(C==null?void 0:C.diff)!==void 0){const $=C.diff;tt=tt+$}tt<0||tt>=F||(this.currentPage=tt)}}export{Ru as P,Du as T,Iu as _,Nu as a,zu as h,Bu as w};