@xcpcio/board-app 0.76.2 → 0.76.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/404.html +1 -1
  2. package/dist/assets/{Balloon.vue_vue_type_script_setup_true_lang-Dlfh7XQR.js → Balloon.vue_vue_type_script_setup_true_lang-CiivhHtA.js} +1 -1
  3. package/dist/assets/{Board-CW8yOHRC.js → Board-wzoWgXpa.js} +1 -1
  4. package/dist/assets/{ContestStateBadge-epSjmdcu.js → ContestStateBadge-BRWXZNe4.js} +1 -1
  5. package/dist/assets/{Countdown-BG5y77oO.js → Countdown-DqW9j4q4.js} +1 -1
  6. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-X3VXUfHp.js → DataSourceInput.vue_vue_type_script_setup_true_lang-CRgnB3_2.js} +1 -1
  7. package/dist/assets/{NavBar-BIlaBvNh.js → NavBar-BWpakDwl.js} +1 -1
  8. package/dist/assets/{Resolver-KhHeQDG7.js → Resolver-YBTWG4T5.js} +1 -1
  9. package/dist/assets/{RightArrowIcon-BVFiJpZo.js → RightArrowIcon-C9VFfy-R.js} +1 -1
  10. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-C27NaS0X.js → TheInput.vue_vue_type_script_setup_true_lang-CXjFVUJA.js} +1 -1
  11. package/dist/assets/{Tooltip.vue_vue_type_script_setup_true_lang-BAeWWG52.js → Tooltip.vue_vue_type_script_setup_true_lang-CZtrBaQ0.js} +1 -1
  12. package/dist/assets/{_...all_-BtPy69Rb.js → _...all_-B9k8Q2DR.js} +1 -1
  13. package/dist/assets/{_...all_-DxZgYtBx.js → _...all_-bd0XH0PR.js} +1 -1
  14. package/dist/assets/{board-layout-CAmt2jxI.js → board-layout-BMK0s3_z.js} +1 -1
  15. package/dist/assets/constant-BkpkGfD6.js +1 -0
  16. package/dist/assets/{dayjs-EDzvyf9e.js → dayjs-C3TTWpvI.js} +1 -1
  17. package/dist/assets/default-BCqXGDda.js +1 -0
  18. package/dist/assets/{headless-DL1aVfVC.js → headless-lPQLG0a2.js} +1 -1
  19. package/dist/assets/{index-DHyLkWwO.js → index-BCm7THhM.js} +1 -1
  20. package/dist/assets/{index-_YrXRQnG.js → index-BKgCHvE3.js} +1 -1
  21. package/dist/assets/index-BtjYAI3N.js +1 -0
  22. package/dist/assets/{index-C758FO5n.js → index-BzXhNmOZ.js} +2 -2
  23. package/dist/assets/{index-DdisZ-Uy.js → index-CYSG2BbL.js} +1 -1
  24. package/dist/assets/{index-DUozE9xD.js → index-D2BOxElt.js} +1 -1
  25. package/dist/assets/index-DWoY1v-z.js +1 -0
  26. package/dist/assets/{index-layout-BSszpCck.js → index-layout-De3FaqcQ.js} +1 -1
  27. package/dist/assets/{pagination-BGnjGZ4C.js → pagination-Cv8YKKFe.js} +1 -1
  28. package/dist/assets/{person-DstXIVLf.js → person-BRRHdjf0.js} +1 -1
  29. package/dist/assets/rank-CfgxrVeL.js +1 -0
  30. package/dist/assets/{use-vmodel-Djfj-mGU.js → use-vmodel-D9T6WDK7.js} +1 -1
  31. package/dist/index.html +1 -1
  32. package/package.json +3 -3
  33. package/dist/assets/constant-6n0KQZAM.js +0 -1
  34. package/dist/assets/default-bwJD_bgo.js +0 -1
  35. package/dist/assets/index-BTz1WG1Y.js +0 -1
  36. package/dist/assets/index-DjDSNR3b.js +0 -1
  37. package/dist/assets/rank-BWoI1IPk.js +0 -1
@@ -1,3 +1,3 @@
1
- import{e as $r,h as Mn,_ as jp,C as $p,c as Ct,o as Tt,n as Bt,b as _,L as Si,t as Xt,$ as Ht,S as ie,F as Ti,E as Ci,d as Ai,I as Yr,q as jr,v as Vp,x as Up,m as qp,G as Zp,u as yt,a0 as Kp}from"./index-C758FO5n.js";const _p={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},Jp={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},Qp={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Ou=$r({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null,mt:null},emits:["update:isHidden","onBeforeClose"],setup(P,{emit:A}){const Y=P,V=A,j=Mn({get(){return Y.isHidden},set(U){V("update:isHidden",U)}});function B(){V("onBeforeClose"),j.value=!0}const{Escape:E}=jp();return $p(E,U=>{U&&B()}),(U,$)=>(Tt(),Ct("div",{class:Bt(["md:inset-0 w-[100%] h-[100%]",[Y.mt??"md:mt-32 sm:mt-16"]]),fixed:"","z-1997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":""},[_("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-1998":"",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:B}),_("div",{class:Bt(["relative p-4",[Y.width??"w-[78%]"]]),"z-1999":""},[_("div",_p,[_("div",Jp,[Si(U.$slots,"header",{},()=>[_("h3",Qp,Xt(Y.title),1)]),_("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:B},[...$[0]||($[0]=[_("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),_("span",{"sr-only":""}," Close modal ",-1)])])]),Si(U.$slots,"default")])],2)],2))}}),wt={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 A=P.pointer-1,Y=P.$el.offsetHeight*A;A>=0&&(P.pointer=A),P.$refs.menu.scrollTop=Y},nextItem(P){const A=P.pointer+1,Y=P.$el.offsetHeight*A;A<=P.filteredOptions.length-1&&(P.pointer=A);const V=P.$refs.menu.offsetHeight,j=Math.ceil((P.$refs.menu.scrollTop+P.$el.offsetHeight)/V),B=Math.ceil(Y/V);j!==B&&(P.$refs.menu.scrollTop=(B-1)*P.$refs.menu.offsetHeight)},enterItem(P){const A=P.filteredOptions[P.pointer],Y=A.disabled;A&&!Y&&P.selectItem(A)},pointerSet(P,A){P.pointer=A},pointerAdjust(P){P.pointer>=P.filteredOptions.length-1&&(P.pointer=P.filteredOptions.length?P.filteredOptions.length-1:0)},mousedownItem(P){P.mousedownState=!0}};function tu(P){return new RegExp(P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Sn={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,A)=>P.match(tu(A))}}},Tn=(P,A)=>{const Y=P.__vccOpts||P;for(const[V,j]of A)Y[V]=j;return Y},eu={name:"ModelSelect",mixins:[Sn],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(A=>A.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(){wt.openOptions(this)},blurInput(){wt.blurInput(this)},closeOptions(){wt.closeOptions(this)},prevItem(){wt.prevItem(this)},nextItem(){wt.nextItem(this)},enterItem(){wt.enterItem(this)},pointerSet(P){wt.pointerSet(this,P)},pointerAdjust(){wt.pointerAdjust(this)},mousedownItem(){wt.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}}},iu=_("i",{class:"dropdown icon"},null,-1),su=["disabled","tabindex","id","name","value"],ru=["data-vss-custom-attr"],ou=["data-vss-custom-attr","onClick","onMouseenter"];function au(P,A,Y,V,j,B){return Tt(),Ct("div",{class:Bt(["ui fluid search selection dropdown",{"active visible":j.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:A[11]||(A[11]=(...E)=>B.openOptions&&B.openOptions(...E)),onFocus:A[12]||(A[12]=(...E)=>B.openOptions&&B.openOptions(...E))},[iu,_("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,value:j.searchText,onInput:A[0]||(A[0]=E=>j.searchText=E.target.value),ref:"input",onFocus:A[1]||(A[1]=ie((...E)=>B.openOptions&&B.openOptions(...E),["prevent"])),onKeyup:[A[2]||(A[2]=Ht((...E)=>B.closeOptions&&B.closeOptions(...E),["esc"])),A[7]||(A[7]=Ht(ie((...E)=>B.enterItem&&B.enterItem(...E),["prevent"]),["enter"]))],onBlur:A[3]||(A[3]=(...E)=>B.blurInput&&B.blurInput(...E)),onKeydown:[A[4]||(A[4]=Ht((...E)=>B.prevItem&&B.prevItem(...E),["up"])),A[5]||(A[5]=Ht((...E)=>B.nextItem&&B.nextItem(...E),["down"])),A[6]||(A[6]=Ht(ie(()=>{},["prevent"]),["enter"])),A[8]||(A[8]=Ht((...E)=>B.deleteTextOrItem&&B.deleteTextOrItem(...E),["delete"]))]},null,40,su),_("div",{class:Bt(["text",B.textClass]),"data-vss-custom-attr":B.searchTextCustomAttr},Xt(B.inputText),11,ru),_("div",{class:Bt(["menu",B.menuClass]),ref:"menu",onMousedown:A[10]||(A[10]=ie(()=>{},["prevent"])),style:Yr(B.menuStyle),tabindex:"-1"},[(Tt(!0),Ct(Ti,null,Ci(B.filteredOptions,(E,U)=>(Tt(),Ct("div",{key:U,class:Bt(["item",{selected:E.selected||j.pointer===U,disabled:E.disabled}]),"data-vss-custom-attr":B.customAttrs[U]?B.customAttrs[U]:"",onClick:ie($=>B.selectItem(E),["stop"]),onMousedown:A[9]||(A[9]=(...$)=>B.mousedownItem&&B.mousedownItem(...$)),onMouseenter:$=>B.pointerSet(U)},[Si(P.$slots,"default",{option:E,idx:U},()=>[Ai(Xt(E.text),1)])],42,ou))),128))],38)],34)}const Lu=Tn(eu,[["render",au]]),nu={name:"MultiSelect",mixins:[Sn],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(A=>A.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(){wt.openOptions(this)},blurInput(){wt.blurInput(this)},closeOptions(){wt.closeOptions(this)},prevItem(){wt.prevItem(this),this.openOptions()},nextItem(){wt.nextItem(this),this.openOptions()},enterItem(){wt.enterItem(this)},pointerSet(P){wt.pointerSet(this,P)},pointerAdjust(){wt.pointerAdjust(this)},mousedownItem(){wt.mousedownItem(this)},selectItem(P){const A=this.selectedOptions.concat(P),Y=A.filter((V,j)=>A.indexOf(V)===j);this.closeOptions(),this.searchText="",this.$emit("select",Y,P,"insert")},deleteItem(P){const A=this.selectedOptions.filter(Y=>Y.value!==P.value);this.$emit("select",A,P,"delete")},accentsTidy(P){let A=P.toString().toLowerCase();return A=A.replace(new RegExp("[àáâãäå]","g"),"a"),A=A.replace(new RegExp("æ","g"),"ae"),A=A.replace(new RegExp("ç","g"),"c"),A=A.replace(new RegExp("[èéêë]","g"),"e"),A=A.replace(new RegExp("[ìíîï]","g"),"i"),A=A.replace(new RegExp("ñ","g"),"n"),A=A.replace(new RegExp("[òóôõö]","g"),"o"),A=A.replace(new RegExp("œ","g"),"oe"),A=A.replace(new RegExp("[ùúûü]","g"),"u"),A=A.replace(new RegExp("[ýÿ]","g"),"y"),A}}},lu=_("i",{class:"dropdown icon"},null,-1),hu=["data-vss-custom-attr"],du=["onClick"],cu=["disabled","tabindex","id","name"],pu=["data-vss-custom-attr","onClick","onMouseenter"];function uu(P,A,Y,V,j,B){return Tt(),Ct("div",{class:Bt(["ui fluid search dropdown selection multiple",{"active visible":j.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:A[11]||(A[11]=(...E)=>B.openOptions&&B.openOptions(...E)),onFocus:A[12]||(A[12]=(...E)=>B.openOptions&&B.openOptions(...E))},[lu,Y.hideSelectedOptions?jr("",!0):(Tt(!0),Ct(Ti,{key:0},Ci(Y.selectedOptions,(E,U)=>(Tt(),Ct("a",{key:U,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":Y.customAttr(E)},[Si(P.$slots,"selected",{option:E,idx:U},()=>[Ai(Xt(E.text),1),_("i",{class:"delete icon",onClick:$=>B.deleteItem(E)},null,8,du)])],8,hu))),128)),Vp(_("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,"onUpdate:modelValue":A[0]||(A[0]=E=>j.searchText=E),ref:"input",style:Yr(B.inputWidth),onFocus:A[1]||(A[1]=ie((...E)=>B.openOptions&&B.openOptions(...E),["prevent"])),onKeyup:[A[2]||(A[2]=Ht((...E)=>B.closeOptions&&B.closeOptions(...E),["esc"])),A[7]||(A[7]=Ht(ie((...E)=>B.enterItem&&B.enterItem(...E),["prevent"]),["enter"]))],onBlur:A[3]||(A[3]=(...E)=>B.blurInput&&B.blurInput(...E)),onKeydown:[A[4]||(A[4]=Ht((...E)=>B.prevItem&&B.prevItem(...E),["up"])),A[5]||(A[5]=Ht((...E)=>B.nextItem&&B.nextItem(...E),["down"])),A[6]||(A[6]=Ht(ie(()=>{},["prevent"]),["enter"])),A[8]||(A[8]=Ht((...E)=>B.deleteTextOrLastItem&&B.deleteTextOrLastItem(...E),["delete"]))]},null,44,cu),[[Up,j.searchText]]),_("div",{class:Bt(["text",B.textClass])},Xt(B.inputText),3),_("div",{class:Bt(["menu",B.menuClass]),ref:"menu",onMousedown:A[10]||(A[10]=ie(()=>{},["prevent"])),style:Yr(B.menuStyle),tabindex:"-1"},[(Tt(!0),Ct(Ti,null,Ci(B.filteredOptions,(E,U)=>(Tt(),Ct("div",{key:U,class:Bt(["item",{selected:E.selected||j.pointer===U,disabled:E.disabled}]),"data-vss-custom-attr":Y.customAttr(E),onClick:ie($=>B.selectItem(E),["stop"]),onMousedown:A[9]||(A[9]=(...$)=>B.mousedownItem&&B.mousedownItem(...$)),onMouseenter:$=>B.pointerSet(U)},[Si(P.$slots,"default",{option:E,idx:U},()=>[Ai(Xt(E.text),1)])],42,pu))),128))],38)],34)}const gu=Tn(nu,[["render",uu]]),Eu=$r({__name:"TheMultiSelect",props:{options:null,selectedOptions:null},emits:["select"],setup(P,{emit:A}){const Y=A,V=qp(!1);function j(){V.value=!0}function B(){V.value=!1}function E($){V.value&&$.stopPropagation()}function U($,st){Y("select",$,st)}return($,st)=>(Tt(),Zp(yt(gu),{class:Bt({"is-composing":yt(V)}),options:P.options,"selected-options":P.selectedOptions,onSelect:U,onCompositionstart:j,onCompositionend:B,onKeydownCapture:Ht(E,["delete"])},null,8,["class","options","selected-options"]))}});var Gr={exports:{}},ws={exports:{}},fu=ws.exports,kn;function mu(){return kn||(kn=1,(function(P,A){(function(Y,V){Y._Highcharts=V(),P.exports=Y._Highcharts})(typeof window>"u"?fu:window,()=>(()=>{let Y,V;var j,B,E,U,$,st,At,Ke,_e,be,De,Je,Qe,Mt,J,ut,mt,Be,Rt={};Rt.d=(l,t)=>{for(var e in t)Rt.o(t,e)&&!Rt.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:t[e]})},Rt.o=(l,t)=>Object.prototype.hasOwnProperty.call(l,t);var ve={};Rt.d(ve,{default:()=>Yp}),(function(l){l.SVG_NS="http://www.w3.org/2000/svg",l.product="Highcharts",l.version="12.4.0",l.win=typeof window<"u"?window:{},l.doc=l.win.document,l.svg=!!l.doc?.createElementNS?.(l.SVG_NS,"svg")?.createSVGRect,l.pageLang=l.doc?.documentElement?.closest("[lang]")?.lang,l.userAgent=l.win.navigator?.userAgent||"",l.isChrome=l.win.chrome,l.isFirefox=l.userAgent.indexOf("Firefox")!==-1,l.isMS=/(edge|msie|trident)/i.test(l.userAgent)&&!l.win.opera,l.isSafari=!l.isChrome&&l.userAgent.indexOf("Safari")!==-1,l.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(l.userAgent),l.isWebKit=l.userAgent.indexOf("AppleWebKit")!==-1,l.deg2rad=2*Math.PI/360,l.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],l.noop=function(){},l.supportsPassiveEvents=(function(){let t=!1;if(!l.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});l.win.addEventListener&&l.win.removeEventListener&&(l.win.addEventListener("testPassive",l.noop,e),l.win.removeEventListener("testPassive",l.noop,e))}return t})(),l.charts=[],l.composed=[],l.dateFormats={},l.seriesTypes={},l.symbolSizes={},l.chartCount=0})(j||(j={}));let O=j,{charts:Cn,doc:Pi,win:ke}=O;function ti(l,t,e,i){let s=t?"Highcharts error":"Highcharts warning";l===32&&(l=`${s}: Deprecated member`);let r=Ss(l),o=r?`${s} #${l}: www.highcharts.com/errors/${l}/`:l.toString();if(i!==void 0){let a="";r&&(o+="?"),we(i,function(n,h){a+=`
1
+ import{e as $r,h as Mn,_ as jp,C as $p,c as Ct,o as Tt,n as Bt,b as _,L as Si,t as Xt,$ as Ht,S as ie,F as Ti,E as Ci,d as Ai,I as Yr,q as jr,v as Vp,x as Up,m as qp,G as Zp,u as yt,a0 as Kp}from"./index-BzXhNmOZ.js";const _p={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},Jp={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},Qp={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},Ou=$r({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null,mt:null},emits:["update:isHidden","onBeforeClose"],setup(P,{emit:A}){const Y=P,V=A,j=Mn({get(){return Y.isHidden},set(U){V("update:isHidden",U)}});function B(){V("onBeforeClose"),j.value=!0}const{Escape:E}=jp();return $p(E,U=>{U&&B()}),(U,$)=>(Tt(),Ct("div",{class:Bt(["md:inset-0 w-[100%] h-[100%]",[Y.mt??"md:mt-32 sm:mt-16"]]),fixed:"","z-1997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":""},[_("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-1998":"",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:B}),_("div",{class:Bt(["relative p-4",[Y.width??"w-[78%]"]]),"z-1999":""},[_("div",_p,[_("div",Jp,[Si(U.$slots,"header",{},()=>[_("h3",Qp,Xt(Y.title),1)]),_("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:B},[...$[0]||($[0]=[_("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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),_("span",{"sr-only":""}," Close modal ",-1)])])]),Si(U.$slots,"default")])],2)],2))}}),wt={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 A=P.pointer-1,Y=P.$el.offsetHeight*A;A>=0&&(P.pointer=A),P.$refs.menu.scrollTop=Y},nextItem(P){const A=P.pointer+1,Y=P.$el.offsetHeight*A;A<=P.filteredOptions.length-1&&(P.pointer=A);const V=P.$refs.menu.offsetHeight,j=Math.ceil((P.$refs.menu.scrollTop+P.$el.offsetHeight)/V),B=Math.ceil(Y/V);j!==B&&(P.$refs.menu.scrollTop=(B-1)*P.$refs.menu.offsetHeight)},enterItem(P){const A=P.filteredOptions[P.pointer],Y=A.disabled;A&&!Y&&P.selectItem(A)},pointerSet(P,A){P.pointer=A},pointerAdjust(P){P.pointer>=P.filteredOptions.length-1&&(P.pointer=P.filteredOptions.length?P.filteredOptions.length-1:0)},mousedownItem(P){P.mousedownState=!0}};function tu(P){return new RegExp(P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Sn={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,A)=>P.match(tu(A))}}},Tn=(P,A)=>{const Y=P.__vccOpts||P;for(const[V,j]of A)Y[V]=j;return Y},eu={name:"ModelSelect",mixins:[Sn],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(A=>A.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(){wt.openOptions(this)},blurInput(){wt.blurInput(this)},closeOptions(){wt.closeOptions(this)},prevItem(){wt.prevItem(this)},nextItem(){wt.nextItem(this)},enterItem(){wt.enterItem(this)},pointerSet(P){wt.pointerSet(this,P)},pointerAdjust(){wt.pointerAdjust(this)},mousedownItem(){wt.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}}},iu=_("i",{class:"dropdown icon"},null,-1),su=["disabled","tabindex","id","name","value"],ru=["data-vss-custom-attr"],ou=["data-vss-custom-attr","onClick","onMouseenter"];function au(P,A,Y,V,j,B){return Tt(),Ct("div",{class:Bt(["ui fluid search selection dropdown",{"active visible":j.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:A[11]||(A[11]=(...E)=>B.openOptions&&B.openOptions(...E)),onFocus:A[12]||(A[12]=(...E)=>B.openOptions&&B.openOptions(...E))},[iu,_("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,value:j.searchText,onInput:A[0]||(A[0]=E=>j.searchText=E.target.value),ref:"input",onFocus:A[1]||(A[1]=ie((...E)=>B.openOptions&&B.openOptions(...E),["prevent"])),onKeyup:[A[2]||(A[2]=Ht((...E)=>B.closeOptions&&B.closeOptions(...E),["esc"])),A[7]||(A[7]=Ht(ie((...E)=>B.enterItem&&B.enterItem(...E),["prevent"]),["enter"]))],onBlur:A[3]||(A[3]=(...E)=>B.blurInput&&B.blurInput(...E)),onKeydown:[A[4]||(A[4]=Ht((...E)=>B.prevItem&&B.prevItem(...E),["up"])),A[5]||(A[5]=Ht((...E)=>B.nextItem&&B.nextItem(...E),["down"])),A[6]||(A[6]=Ht(ie(()=>{},["prevent"]),["enter"])),A[8]||(A[8]=Ht((...E)=>B.deleteTextOrItem&&B.deleteTextOrItem(...E),["delete"]))]},null,40,su),_("div",{class:Bt(["text",B.textClass]),"data-vss-custom-attr":B.searchTextCustomAttr},Xt(B.inputText),11,ru),_("div",{class:Bt(["menu",B.menuClass]),ref:"menu",onMousedown:A[10]||(A[10]=ie(()=>{},["prevent"])),style:Yr(B.menuStyle),tabindex:"-1"},[(Tt(!0),Ct(Ti,null,Ci(B.filteredOptions,(E,U)=>(Tt(),Ct("div",{key:U,class:Bt(["item",{selected:E.selected||j.pointer===U,disabled:E.disabled}]),"data-vss-custom-attr":B.customAttrs[U]?B.customAttrs[U]:"",onClick:ie($=>B.selectItem(E),["stop"]),onMousedown:A[9]||(A[9]=(...$)=>B.mousedownItem&&B.mousedownItem(...$)),onMouseenter:$=>B.pointerSet(U)},[Si(P.$slots,"default",{option:E,idx:U},()=>[Ai(Xt(E.text),1)])],42,ou))),128))],38)],34)}const Lu=Tn(eu,[["render",au]]),nu={name:"MultiSelect",mixins:[Sn],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(A=>A.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(){wt.openOptions(this)},blurInput(){wt.blurInput(this)},closeOptions(){wt.closeOptions(this)},prevItem(){wt.prevItem(this),this.openOptions()},nextItem(){wt.nextItem(this),this.openOptions()},enterItem(){wt.enterItem(this)},pointerSet(P){wt.pointerSet(this,P)},pointerAdjust(){wt.pointerAdjust(this)},mousedownItem(){wt.mousedownItem(this)},selectItem(P){const A=this.selectedOptions.concat(P),Y=A.filter((V,j)=>A.indexOf(V)===j);this.closeOptions(),this.searchText="",this.$emit("select",Y,P,"insert")},deleteItem(P){const A=this.selectedOptions.filter(Y=>Y.value!==P.value);this.$emit("select",A,P,"delete")},accentsTidy(P){let A=P.toString().toLowerCase();return A=A.replace(new RegExp("[àáâãäå]","g"),"a"),A=A.replace(new RegExp("æ","g"),"ae"),A=A.replace(new RegExp("ç","g"),"c"),A=A.replace(new RegExp("[èéêë]","g"),"e"),A=A.replace(new RegExp("[ìíîï]","g"),"i"),A=A.replace(new RegExp("ñ","g"),"n"),A=A.replace(new RegExp("[òóôõö]","g"),"o"),A=A.replace(new RegExp("œ","g"),"oe"),A=A.replace(new RegExp("[ùúûü]","g"),"u"),A=A.replace(new RegExp("[ýÿ]","g"),"y"),A}}},lu=_("i",{class:"dropdown icon"},null,-1),hu=["data-vss-custom-attr"],du=["onClick"],cu=["disabled","tabindex","id","name"],pu=["data-vss-custom-attr","onClick","onMouseenter"];function uu(P,A,Y,V,j,B){return Tt(),Ct("div",{class:Bt(["ui fluid search dropdown selection multiple",{"active visible":j.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:A[11]||(A[11]=(...E)=>B.openOptions&&B.openOptions(...E)),onFocus:A[12]||(A[12]=(...E)=>B.openOptions&&B.openOptions(...E))},[lu,Y.hideSelectedOptions?jr("",!0):(Tt(!0),Ct(Ti,{key:0},Ci(Y.selectedOptions,(E,U)=>(Tt(),Ct("a",{key:U,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":Y.customAttr(E)},[Si(P.$slots,"selected",{option:E,idx:U},()=>[Ai(Xt(E.text),1),_("i",{class:"delete icon",onClick:$=>B.deleteItem(E)},null,8,du)])],8,hu))),128)),Vp(_("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,"onUpdate:modelValue":A[0]||(A[0]=E=>j.searchText=E),ref:"input",style:Yr(B.inputWidth),onFocus:A[1]||(A[1]=ie((...E)=>B.openOptions&&B.openOptions(...E),["prevent"])),onKeyup:[A[2]||(A[2]=Ht((...E)=>B.closeOptions&&B.closeOptions(...E),["esc"])),A[7]||(A[7]=Ht(ie((...E)=>B.enterItem&&B.enterItem(...E),["prevent"]),["enter"]))],onBlur:A[3]||(A[3]=(...E)=>B.blurInput&&B.blurInput(...E)),onKeydown:[A[4]||(A[4]=Ht((...E)=>B.prevItem&&B.prevItem(...E),["up"])),A[5]||(A[5]=Ht((...E)=>B.nextItem&&B.nextItem(...E),["down"])),A[6]||(A[6]=Ht(ie(()=>{},["prevent"]),["enter"])),A[8]||(A[8]=Ht((...E)=>B.deleteTextOrLastItem&&B.deleteTextOrLastItem(...E),["delete"]))]},null,44,cu),[[Up,j.searchText]]),_("div",{class:Bt(["text",B.textClass])},Xt(B.inputText),3),_("div",{class:Bt(["menu",B.menuClass]),ref:"menu",onMousedown:A[10]||(A[10]=ie(()=>{},["prevent"])),style:Yr(B.menuStyle),tabindex:"-1"},[(Tt(!0),Ct(Ti,null,Ci(B.filteredOptions,(E,U)=>(Tt(),Ct("div",{key:U,class:Bt(["item",{selected:E.selected||j.pointer===U,disabled:E.disabled}]),"data-vss-custom-attr":Y.customAttr(E),onClick:ie($=>B.selectItem(E),["stop"]),onMousedown:A[9]||(A[9]=(...$)=>B.mousedownItem&&B.mousedownItem(...$)),onMouseenter:$=>B.pointerSet(U)},[Si(P.$slots,"default",{option:E,idx:U},()=>[Ai(Xt(E.text),1)])],42,pu))),128))],38)],34)}const gu=Tn(nu,[["render",uu]]),Eu=$r({__name:"TheMultiSelect",props:{options:null,selectedOptions:null},emits:["select"],setup(P,{emit:A}){const Y=A,V=qp(!1);function j(){V.value=!0}function B(){V.value=!1}function E($){V.value&&$.stopPropagation()}function U($,st){Y("select",$,st)}return($,st)=>(Tt(),Zp(yt(gu),{class:Bt({"is-composing":yt(V)}),options:P.options,"selected-options":P.selectedOptions,onSelect:U,onCompositionstart:j,onCompositionend:B,onKeydownCapture:Ht(E,["delete"])},null,8,["class","options","selected-options"]))}});var Gr={exports:{}},ws={exports:{}},fu=ws.exports,kn;function mu(){return kn||(kn=1,(function(P,A){(function(Y,V){Y._Highcharts=V(),P.exports=Y._Highcharts})(typeof window>"u"?fu:window,()=>(()=>{let Y,V;var j,B,E,U,$,st,At,Ke,_e,be,De,Je,Qe,Mt,J,ut,mt,Be,Rt={};Rt.d=(l,t)=>{for(var e in t)Rt.o(t,e)&&!Rt.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:t[e]})},Rt.o=(l,t)=>Object.prototype.hasOwnProperty.call(l,t);var ve={};Rt.d(ve,{default:()=>Yp}),(function(l){l.SVG_NS="http://www.w3.org/2000/svg",l.product="Highcharts",l.version="12.4.0",l.win=typeof window<"u"?window:{},l.doc=l.win.document,l.svg=!!l.doc?.createElementNS?.(l.SVG_NS,"svg")?.createSVGRect,l.pageLang=l.doc?.documentElement?.closest("[lang]")?.lang,l.userAgent=l.win.navigator?.userAgent||"",l.isChrome=l.win.chrome,l.isFirefox=l.userAgent.indexOf("Firefox")!==-1,l.isMS=/(edge|msie|trident)/i.test(l.userAgent)&&!l.win.opera,l.isSafari=!l.isChrome&&l.userAgent.indexOf("Safari")!==-1,l.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(l.userAgent),l.isWebKit=l.userAgent.indexOf("AppleWebKit")!==-1,l.deg2rad=2*Math.PI/360,l.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],l.noop=function(){},l.supportsPassiveEvents=(function(){let t=!1;if(!l.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});l.win.addEventListener&&l.win.removeEventListener&&(l.win.addEventListener("testPassive",l.noop,e),l.win.removeEventListener("testPassive",l.noop,e))}return t})(),l.charts=[],l.composed=[],l.dateFormats={},l.seriesTypes={},l.symbolSizes={},l.chartCount=0})(j||(j={}));let O=j,{charts:Cn,doc:Pi,win:ke}=O;function ti(l,t,e,i){let s=t?"Highcharts error":"Highcharts warning";l===32&&(l=`${s}: Deprecated member`);let r=Ss(l),o=r?`${s} #${l}: www.highcharts.com/errors/${l}/`:l.toString();if(i!==void 0){let a="";r&&(o+="?"),we(i,function(n,h){a+=`
2
2
  - ${h}: ${n}`,r&&(o+=encodeURI(h)+"="+encodeURI(n))}),o+=a}Qr(O,"displayError",{chart:e,code:l,message:o,params:i},function(){if(t)throw Error(o);ke.console&&ti.messages.indexOf(o)===-1&&console.warn(o)}),ti.messages.push(o)}function Vr(l,t){return parseInt(l,t||10)}function ei(l){return typeof l=="string"}function Oi(l){let t=Object.prototype.toString.call(l);return t==="[object Array]"||t==="[object Array Iterator]"}function Ne(l,t){return!!l&&typeof l=="object"&&(!t||!Oi(l))}function Ms(l){return Ne(l)&&typeof l.nodeType=="number"}function Ur(l){let t=l?.constructor;return!!(Ne(l,!0)&&!Ms(l)&&t?.name&&t.name!=="Object")}function Ss(l){return typeof l=="number"&&!isNaN(l)&&l<1/0&&l>-1/0}function ze(l){return l!=null}function qr(l,t,e){let i,s=ei(t)&&!ze(e),r=(o,a)=>{ze(o)?l.setAttribute(a,o):s?(i=l.getAttribute(a))||a!=="class"||(i=l.getAttribute(a+"Name")):l.removeAttribute(a)};return ei(t)?r(e,t):we(t,r),i}function Zr(l){return Oi(l)?l:[l]}function Re(l,t){let e;for(e in l||(l={}),t)l[e]=t[e];return l}function ii(){let l=arguments,t=l.length;for(let e=0;e<t;e++){let i=l[e];if(i!=null)return i}}function Ts(l,t){Re(l.style,t)}function Kr(l){return Math.pow(10,Math.floor(Math.log(l)/Math.LN10))}function _r(l,t){return l>1e14?l:parseFloat(l.toPrecision(t||14))}(ti||(ti={})).messages=[],Math.easeInOutSine=function(l){return-.5*(Math.cos(Math.PI*l)-1)};let An=Array.prototype.find?function(l,t){return l.find(t)}:function(l,t){let e,i=l.length;for(e=0;e<i;e++)if(t(l[e],e))return l[e]};function we(l,t,e){for(let i in l)Object.hasOwnProperty.call(l,i)&&t.call(e||l[i],l[i],i,l)}function Jr(l,t,e){function i(o,a){let n=l.removeEventListener;n&&n.call(l,o,a,!1)}function s(o){let a,n;l.nodeName&&(t?(a={})[t]=!0:a=o,we(a,function(h,c){if(o[c])for(n=o[c].length;n--;)i(c,o[c][n].fn)}))}let r=typeof l=="function"&&l.prototype||l;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 Qr(l,t,e,i){if(e=e||{},Pi?.createEvent&&(l.dispatchEvent||l.fireEvent&&l!==O)){let s=Pi.createEvent("Events");s.initEvent(t,!0,!0),e=Re(s,e),l.dispatchEvent?l.dispatchEvent(e):l.fireEvent(t,e)}else if(l.hcEvents){e.target||Re(e,{preventDefault:function(){e.defaultPrevented=!0},target:l,type:t});let s=[],r=l,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(l,e)===!1&&e.preventDefault()})}i&&!e.defaultPrevented&&i.call(l,e)}let Pn=(function(){let l=Math.random().toString(36).substring(2,9)+"-",t=0;return function(){return"highcharts-"+(Y?"":l)+t++}})();ke.jQuery&&(ke.jQuery.fn.highcharts=function(){let l=[].slice.call(arguments);if(this[0])return l[0]?(new O[ei(l[0])?l.shift():"Chart"](this[0],l[0],l[1]),this):Cn[qr(this[0],"data-highcharts-chart")]});let X={addEvent:function(l,t,e,i={}){let s=typeof l=="function"&&l.prototype||l;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let r=s.hcEvents;O.Point&&l instanceof O.Point&&l.series&&l.series.chart&&(l.series.chart.runTrackerClick=!0);let o=l.addEventListener;o&&o.call(l,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,h)=>n.order-h.order),function(){Jr(l,t,e)}},arrayMax:function(l){let t=l.length,e=l[0];for(;t--;)l[t]>e&&(e=l[t]);return e},arrayMin:function(l){let t=l.length,e=l[0];for(;t--;)l[t]<e&&(e=l[t]);return e},attr:qr,clamp:function(l,t,e){return l>t?l<e?l:e:t},clearTimeout:function(l){ze(l)&&clearTimeout(l)},correctFloat:_r,createElement:function(l,t,e,i,s){let r=Pi.createElement(l);return t&&Re(r,t),s&&Ts(r,{padding:"0",border:"none",margin:"0"}),e&&Ts(r,e),i&&i.appendChild(r),r},crisp:function(l,t=0,e){let i=t%2/2,s=e?-1:1;return(Math.round(l*s-i)+i)*s},css:Ts,defined:ze,destroyObjectProperties:function(l,t,e){we(l,function(i,s){i!==t&&i?.destroy&&i.destroy(),(i?.destroy||!e)&&delete l[s]})},diffObjects:function(l,t,e,i){let s={};return(function r(o,a,n,h){let c=e?a:o;we(o,function(d,p){if(!h&&i&&i.indexOf(p)>-1&&a[p]){d=Zr(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],h+1)))}else Ne(d,!0)&&!d.nodeType?(n[p]=Oi(d)?[]:{},r(d,a[p]||{},n[p],h+1),Object.keys(n[p]).length===0&&(p!=="colorAxis"||h!==0)&&delete n[p]):(o[p]!==a[p]||p in o&&!(p in a))&&p!=="__proto__"&&p!=="constructor"&&(n[p]=c[p])})})(l,t,s,0),s},discardElement:function(l){l?.parentElement?.removeChild(l)},erase:function(l,t){let e=l.length;for(;e--;)if(l[e]===t){l.splice(e,1);break}},error:ti,extend:Re,extendClass:function(l,t){let e=function(){};return e.prototype=new l,Re(e.prototype,t),e},find:An,fireEvent:Qr,getAlignFactor:(l="")=>({center:.5,right:1,middle:.5,bottom:1})[l]||0,getClosestDistance:function(l,t){let e,i,s,r=!t;return l.forEach(o=>{if(o.length>1)for(s=o.length-1;s>0;s--)(i=o[s]-o[s-1])<0&&!r?(t?.(),t=void 0):i&&(e===void 0||i<e)&&(e=i)}),e},getMagnitude:Kr,getNestedProperty:function(l,t){let e=l.split(".");for(;e.length&&ze(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(!ze(s)||typeof s=="function"||typeof s.nodeType=="number"||s===ke)return;t=s}return t},getStyle:function l(t,e,i){let s;if(e==="width"){let o=Math.min(t.offsetWidth,t.scrollWidth),a=t.getBoundingClientRect?.().width;return a<o&&a>=o-1&&(o=Math.floor(a)),Math.max(0,o-(l(t,"padding-left",!0)||0)-(l(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(l(t,"padding-top",!0)||0)-(l(t,"padding-bottom",!0)||0));let r=ke.getComputedStyle(t,void 0);return r&&(s=r.getPropertyValue(e),ii(i,e!=="opacity")&&(s=Vr(s))),s},insertItem:function(l,t){let e,i=l.options.index,s=t.length;for(e=l.options.isInternal?s:0;e<s+1;e++)if(!t[e]||Ss(i)&&i<ii(t[e].options.index,t[e]._i)||t[e].options.isInternal){t.splice(e,0,l);break}return e},isArray:Oi,isClass:Ur,isDOMElement:Ms,isFunction:function(l){return typeof l=="function"},isNumber:Ss,isObject:Ne,isString:ei,merge:function(l,...t){let e,i=[l,...t],s={},r=function(a,n){return typeof a!="object"&&(a={}),we(n,function(h,c){c!=="__proto__"&&c!=="constructor"&&(!Ne(h,!0)||Ur(h)||Ms(h)?a[c]=n[c]:a[c]=r(a[c]||{},h))}),a};l===!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(l,t,e,i,s){let r,o=l;e=ii(e,Kr(l));let a=l/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>=l))&&(s||!(a<=(t[r]+(t[r+1]||t[r]))/2)));r++);return _r(o*e,-Math.round(Math.log(.001)/Math.LN10))},objectEach:we,offset:function(l){let t=Pi.documentElement,e=l.parentElement||l.parentNode?l.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(ke.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(ke.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(l,t,e){return Array((t||2)+1-String(l).replace("-","").length).join(e||"0")+l},pick:ii,pInt:Vr,pushUnique:function(l,t){return 0>l.indexOf(t)&&!!l.push(t)},relativeLength:function(l,t,e){return/%$/.test(l)?t*parseFloat(l)/100+(e||0):parseFloat(l)},removeEvent:Jr,replaceNested:function(l,...t){let e,i;do for(i of(e=l,t))l=l.replace(i[0],i[1]);while(l!==e);return l},splat:Zr,stableSort:function(l,t){let e,i,s=l.length;for(i=0;i<s;i++)l[i].safeI=i;for(l.sort(function(r,o){return(e=t(r,o))===0?r.safeI-o.safeI:e}),i=0;i<s;i++)delete l[i].safeI},syncTimeout:function(l,t,e){return t>0?setTimeout(l,t,e):(l.call(0,e),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(l){return ei(l)?l.substring(0,1).toUpperCase()+l.substring(1):String(l)},uniqueKey:Pn,useSerialIds:function(l){return Y=ii(l,Y)},wrap:function(l,t,e){let i=l[t];l[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:On,win:Li}=O,{defined:to,error:eo,extend:Cs,isNumber:io,isObject:As,isString:si,merge:Ln,objectEach:En,pad:ae,splat:In,timeUnits:Ps,ucfirst:Dn}=X,Bn=O.isSafari&&Li.Intl&&!Li.Intl.DateTimeFormat.prototype.formatRange,Nn=l=>l.main===void 0,zn=class{constructor(l,t){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Li.Date,this.update(l),this.lang=t}update(l={}){this.dTLCache={},this.options=l=Ln(!0,this.options,l);let{timezoneOffset:t,useUTC:e,locale:i}=l;this.Date=l.Date||Li.Date||Date;let s=l.timezone;to(e)&&(s=e?"UTC":void 0),t&&t%60==0&&(s="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=s!=="UTC"&&s?.indexOf("Etc/GMT")!==0,this.timezone=s,this.lang&&i&&(this.lang.locale=i),["months","shortMonths","weekdays","shortWeekdays"].forEach(r=>{let o=/months/i.test(r),a=/short/.test(r),n={timeZone:"UTC"};n[o?"month":"weekday"]=a?"short":"long",this[r]=(o?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(h=>this.dateFormat(n,(o?31:1)*24*36e5*h))})}toParts(l){let[t,e,i,s,r,o,a]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},l,"es").split(/(?:, | |\/|:)/g);return[s,i-1,e,r,o,a,Math.floor(Number(l)||0)%1e3,"DLMXJVS".indexOf(t)].map(Number)}dateTimeFormat(l,t,e=this.options.locale||On){let i=JSON.stringify(l)+e;si(l)&&(l=this.str2dtf(l));let s=this.dTLCache[i];if(!s){l.timeZone??(l.timeZone=this.timezone);try{s=new Intl.DateTimeFormat(e,l)}catch(r){/Invalid time zone/i.test(r.message)?(eo(34),l.timeZone="UTC",s=new Intl.DateTimeFormat(e,l)):eo(r.message,!1)}}return this.dTLCache[i]=s,s?.format(t)||""}str2dtf(l,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=>{l.indexOf(i)!==-1&&Cs(t,e[i])}),t}makeTime(l,t,e=1,i=0,s,r,o){let a=this.Date.UTC(l,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 h=this.getTimezoneOffset(a);n!==h?a+=h-n:n-36e5!==this.getTimezoneOffset(a-36e5)||Bn||(a-=36e5)}}return a}parse(l){if(!si(l))return l??void 0;let t=(l=l.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(l),e=/^[0-9]{4}-[0-9]{2}(-[0-9]{2}|)$/.test(l);t||e||(l+="Z");let i=Date.parse(l);if(io(i))return i+(!t||e?this.getTimezoneOffset(i):0)}getTimezoneOffset(l){if(this.timezone!=="UTC"){let[t,e,i,s,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},l,"en").split(/(GMT|:)/).map(Number),o=-(60*(i+r/60)*6e4);if(io(o))return o}return 0}dateFormat(l,t,e){let i=this.lang;if(!to(t)||isNaN(t))return i?.invalidDate||"";if(si(l=l??"%Y-%m-%d %H:%M:%S")){let s,r=/%\[([a-zA-Z]+)\]/g;for(;s=r.exec(l);)l=l.replace(s[0],this.dateTimeFormat(s[1],t,i?.locale))}if(si(l)&&l.indexOf("%")!==-1){let s=this,[r,o,a,n,h,c,d,p]=this.toParts(t),u=i?.weekdays||this.weekdays,g=i?.shortWeekdays||this.shortWeekdays,x=i?.months||this.months,m=i?.shortMonths||this.shortMonths;En(Cs({a:g?g[p]:u[p].substr(0,3),A:u[p],d:ae(a),e:ae(a,2," "),w:p,v:i?.weekFrom??"",b:m[o],B:x[o],m:ae(o+1),o:o+1,y:r.toString().substr(2,2),Y:r,H:ae(n),k:n,I:ae(n%12||12),l:n%12||12,M:ae(h),p:n<12?"AM":"PM",P:n<12?"am":"pm",S:ae(c),L:ae(d,3)},O.dateFormats),function(f,y){if(si(l))for(;l.indexOf("%"+y)!==-1;)l=l.replace("%"+y,typeof f=="function"?f.call(s,t):f)})}else if(As(l)){let s=(this.getTimezoneOffset(t)||0)/36e5,r=this.timezone||"Etc/GMT"+(s>=0?"+":"")+s,{prefix:o="",suffix:a=""}=l;l=o+this.dateTimeFormat(Cs({timeZone:r},l),t)+a}return e?Dn(l):l}resolveDTLFormat(l){return As(l,!0)?As(l,!0)&&Nn(l)?{main:l}:l:{main:(l=In(l))[0],from:l[1],to:l[2]}}getDateFormat(l,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 Ps){if(l&&l===Ps.week&&+this.dateFormat("%w",t)===e&&s.substr(6)===r.substr(6)){a="week";break}if(l&&Ps[a]>l){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:so,extend:Rn,timeUnits:ft}=X,Os=class extends zn{getTimeTicks(l,t,e,i){let s=this,r=[],o={},{count:a=1,unitRange:n}=l,[h,c,d,p,u,g]=s.toParts(t),x=(t||0)%1e3,m;if(i??(i=1),so(t)){if(x=n>=ft.second?0:a*Math.floor(x/a),n>=ft.second&&(g=n>=ft.minute?0:a*Math.floor(g/a)),n>=ft.minute&&(u=n>=ft.hour?0:a*Math.floor(u/a)),n>=ft.hour&&(p=n>=ft.day?0:a*Math.floor(p/a)),n>=ft.day&&(d=n>=ft.month?1:Math.max(1,a*Math.floor(d/a))),n>=ft.month&&(c=n>=ft.year?0:a*Math.floor(c/a)),n>=ft.year&&(h-=h%a),n===ft.week){a&&(t=s.makeTime(h,c,d,p,u,g,x));let b=this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"),v="DLMXJVS".indexOf(b);d+=-v+i+(v<i?-7:0)}t=s.makeTime(h,c,d,p,u,g,x),s.variableTimezone&&so(e)&&(m=e-t>4*ft.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(e));let f=t,y=1;for(;f<e;)r.push(f),n===ft.year?f=s.makeTime(h+y*a,0):n===ft.month?f=s.makeTime(h,c+y*a):m&&(n===ft.day||n===ft.week)?f=s.makeTime(h,c,d+y*a*(n===ft.day?1:7)):m&&n===ft.hour&&a>1?f=s.makeTime(h,c,d,p+y*a):f+=n*a,y++;r.push(f),n<=ft.hour&&r.length<1e4&&r.forEach(b=>{b%18e5==0&&s.dateFormat("%H%M%S%L",b)==="000000000"&&(o[b]="day")})}return r.info=Rn(l,{higherRanks:o,totalRange:n*a}),r}},{isTouchDevice:Wn}=O,{fireEvent:Xn,merge:Hn}=X,se={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:{color:"#333333",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:l=>Math.sqrt(1-Math.pow(l-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:Wn?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"}},Ls=new Os(se.time,se.lang),Ft={defaultOptions:se,defaultTime:Ls,getOptions:function(){return se},setOptions:function(l){return Xn(O,"setOptions",{options:l}),Hn(!0,se,l),l.time&&Ls.update(se.time),l.lang&&"locale"in l.lang&&Ls.update({locale:l.lang.locale}),l.lang?.chartTitle&&(se.title={...se.title,text:l.lang.chartTitle}),se}},{win:Fn}=O,{isNumber:ri,isString:Gn,merge:Yn,pInt:Pt,defined:ro}=X,oo=(l,t,e)=>`color-mix(in srgb,${l},${t} ${100*e}%)`,Es=l=>Gn(l)&&!!l&&l!=="none";class lt{static parse(t){return t?new lt(t):lt.None}constructor(t){let e,i,s,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let o=O.Color;if(o&&o!==lt)return new o(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map(a=>new lt(a[1]));else if(typeof t=="string")for(this.input=t=lt.names[t.toLowerCase()]||t,s=lt.parsers.length;s--&&!i;)(e=(r=lt.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=Yn(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&&ri(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(ri(t)&&t!==0)if(ri(e[0]))for(let i=0;i<3;i++)e[i]+=Pt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);else lt.useColorMix&&Es(this.input)&&(this.output=oo(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(!ri(i[0])||!ri(s[0]))return lt.useColorMix&&Es(this.input)&&Es(t.input)&&e<.99?oo(this.input,t.input,e):t.input||"none";let r=s[3]!==1||i[3]!==1,o=(n,h)=>n+(i[h]-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(",")+")"}}lt.names={white:"#ffffff",black:"#000000"},lt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(l){return[Pt(l[1]),Pt(l[2]),Pt(l[3]),parseFloat(l[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(l){return[Pt(l[1]),Pt(l[2]),Pt(l[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(l){return[Pt(l[1]+l[1],16),Pt(l[2]+l[2],16),Pt(l[3]+l[3],16),ro(l[4])?Pt(l[4]+l[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(l){return[Pt(l[1],16),Pt(l[2],16),Pt(l[3],16),ro(l[4])?Pt(l[4],16)/255:1]}}],lt.useColorMix=Fn.CSS?.supports("color","color-mix(in srgb,red,blue 9%)"),lt.None=new lt("");let{parse:ao}=lt,{win:jn}=O,{isNumber:Is,objectEach:$n}=X;class Ot{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t?.[0],i=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],h=[];for(let c=0;c<n.length;c++){let d=a[c],p=n[c];Is(d)&&Is(p)&&(n[0]!=="A"||c!==4&&c!==5)?h[c]=d+s*(p-d):h[c]=p}r.push(h)}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(h){return!o.stopped&&s.step(h)},a=jn.requestAnimationFrame||function(h){setTimeout(h,13)},n=function(){for(let h=0;h<Ot.timers.length;h++)Ot.timers[h]()||Ot.timers.splice(h--,1);Ot.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()&&Ot.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,h=r.curAnim;return o.attr&&!o.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,$n(h,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,h=e&&i.length>e.length&&i.hasStackedCliffs,c,d,p,u,g=e?.slice();if(!g||h)return[o,o];function x(f,y){for(;f.length<d;){let b=f[0],v=y[d-f.length];if(v&&b[0]==="M"&&(v[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 k=f.pop();f.push(f[f.length-1],k)}}}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}else if(s[0]===r[r.length-s.length+p]){c=p,u=!0;break}else if(s[s.length-1]===r[r.length-s.length+p]){c=s.length-p;break}c===void 0&&(g=[])}return g.length&&Is(c)&&(d=o.length+c*n,u?(x(g,o),m(o)):(x(o,g),m(g))),[g,o]}fillSetter(){Ot.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,ao(this.start).tweenTo(ao(this.end),this.pos),void 0,!0)}}Ot.timers=[];let{defined:Vn,getStyle:Un,isArray:qn,isNumber:Zn,isObject:Ds,merge:no,objectEach:Kn,pick:_n}=X;function Bs(l){return Ds(l)?no({duration:500,defer:0},l):{duration:500*!!l,defer:0}}function lo(l,t){let e=Ot.timers.length;for(;e--;)Ot.timers[e].elem!==l||t&&t!==Ot.timers[e].prop||(Ot.timers[e].stopped=!0)}let St={animate:function(l,t,e){let i,s="",r,o,a;Ds(e)||(a=arguments,e={duration:a[2],easing:a[3],complete:a[4]}),Zn(e.duration)||(e.duration=400),e.easing=typeof e.easing=="function"?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=no(t),Kn(t,function(n,h){lo(l,h),o=new Ot(l,e,h),r=void 0,h==="d"&&qn(t.d)?(o.paths=o.initPath(l,l.pathArray,t.d),o.toD=t.d,i=0,r=1):l.attr?i=l.attr(h):(i=parseFloat(Un(l,h))||0,h!=="opacity"&&(s="px")),r||(r=n),typeof r=="string"&&r.match("px")&&(r=r.replace(/px/g,"")),o.run(i,r,s)})},animObject:Bs,getDeferredAnimation:function(l,t,e){let i=Bs(t),s=e?[e]:l.series,r=0,o=0;return s.forEach(a=>{let n=Bs(a.options.animation);r=Ds(t)&&Vn(t.defer)?i.defer:Math.max(r,n.duration+n.defer),o=Math.min(i.duration,n.duration)}),l.renderer.forExport&&(r=0),{defer:Math.max(0,r-o),duration:Math.min(r,o)}},setAnimation:function(l,t){t.renderer.globalAnimation=_n(l,t.options.chart.animation,!0)},stop:lo},{SVG_NS:ho,win:Jn}=O,{attr:Qn,createElement:tl,css:el,error:co,isFunction:il,isString:po,objectEach:uo,splat:sl}=X,{trustedTypes:Ns}=Jn,Ei=Ns&&il(Ns.createPolicy)&&Ns.createPolicy("highcharts",{createHTML:l=>l}),rl=Ei?Ei.createHTML(""):"";class nt{static filterUserAttributes(t){return uo(t,(e,i)=>{let s=!0;nt.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(s=po(e)&&nt.allowedReferences.some(r=>e.indexOf(r)===0)),s||(co(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),po(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=nt.emptyHTML,e&&new nt(e).addToDOM(t)}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t}addToDOM(t){return(function e(i,s){let r;return sl(i).forEach(function(o){let a,n=o.tagName,h=o.textContent?O.doc.createTextNode(o.textContent):void 0,c=nt.bypassHTMLFiltering;if(n)if(n==="#text")a=h;else if(nt.allowedTags.indexOf(n)!==-1||c){let d=n==="svg"?ho:s.namespaceURI||ho,p=O.doc.createElementNS(d,n),u=o.attributes||{};uo(o,function(g,x){x!=="tagName"&&x!=="attributes"&&x!=="children"&&x!=="style"&&x!=="textContent"&&(u[x]=g)}),Qn(p,c?u:nt.filterUserAttributes(u)),o.style&&el(p,o.style),h&&p.appendChild(h),e(o.children||[],p),a=p}else co(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(Ei?Ei.createHTML(t):t,"text/html")}catch{}if(!e){let r=tl("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 h=r.attributes;if(h){let c={};[].forEach.call(h,d=>{d.name==="data-style"?n.style=nt.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}}nt.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","disabled","dx","dy","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","result","role","rowspan","scope","slope","src","startOffset","stdDeviation","stroke-linecap","stroke-width","stroke","style","summary","tabindex","tableValues","target","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],nt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],nt.allowedTags=["#text","a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMerge","feMergeNode","feMorphology","feOffset","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","tbody","td","text","textPath","th","thead","title","tr","tspan","u","ul"],nt.emptyHTML=rl,nt.bypassHTMLFiltering=!1;let{defaultOptions:go,defaultTime:fo}=Ft,{pageLang:ol}=O,{extend:al,getNestedProperty:nl,isArray:ll,isNumber:mo,isObject:hl,isString:dl,pick:cl,ucfirst:pl}=X,Ii={add:(l,t)=>l+t,divide:(l,t)=>t!==0?l/t:"",eq:(l,t)=>l==t,each:function(l){let t=arguments[arguments.length-1];return!!ll(l)&&l.map((e,i)=>Di(t.body,al(hl(e)?e:{"@this":e},{"@index":i,"@first":i===0,"@last":i===l.length-1}))).join("")},ge:(l,t)=>l>=t,gt:(l,t)=>l>t,if:l=>!!l,le:(l,t)=>l<=t,lt:(l,t)=>l<t,multiply:(l,t)=>l*t,ne:(l,t)=>l!=t,subtract:(l,t)=>l-t,ucfirst:pl,unless:l=>!l},xo={},yo=l=>/^["'].+["']$/.test(l);function Di(l="",t,e){let i=/\{([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/g,s=/\(([a-zA-Z\u00C0-\u017F\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/g,r=[],o=/f$/,a=/\.(\d)/,n=e?.options?.lang||go.lang,h=e?.time||fo,c=e?.numberFormatter||bo.bind(e),d=(m="")=>{let f;return m==="true"||m!=="false"&&((f=Number(m)).toString()===m?f:yo(m)?m.slice(1,-1):nl(m,t))},p,u,g=0,x;for(;(p=i.exec(l))!==null;){let m=p,f=s.exec(p[1]);f&&(p=f,x=!0),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 y=(u.isBlock?m:p)[1].split(" ")[0].replace("#","");Ii[y]&&(u.isBlock&&y===u.fn&&g++,u.fn||(u.fn=y));let b=p[1]==="else";if(u.isBlock&&u.fn&&(p[1]===`/${u.fn}`||b))if(g)!b&&g--;else{let v=u.startInner,k=l.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],b||(r.push(u),u=void 0)}else u.isBlock||r.push(u);if(f&&!u?.isBlock)break}return r.forEach(m=>{let f,y,{body:b,elseBody:v,expression:k,fn:w}=m;if(w){let S=[m],M=[],C=k.length,L=0,T;for(y=0;y<=C;y++){let D=k.charAt(y);T||D!=='"'&&D!=="'"?T===D&&(T=""):T=D,T||D!==" "&&y!==C||(M.push(k.substr(L,y-L)),L=y+1)}for(y=Ii[w].length;y--;)S.unshift(d(M[y+1]));f=Ii[w].apply(t,S),m.isBlock&&typeof f=="boolean"&&(f=Di(f?b:v,t,e))}else{let S=yo(k)?[k]:k.split(":"),M=(f=d(S.shift()||""))%1!=0;if(typeof f=="number"&&(S.length||M)){let C=S.join(":");if(o.test(C)||M){let L=parseInt((C.match(a)||["","-1"])[1],10);f!==null&&(f=c(f,L,n.decimalPoint,C.indexOf(",")>-1?n.thousandsSep:""))}else f=h.dateFormat(C,f)}s.lastIndex=0,s.test(m.find)&&dl(f)&&(f=`"${f}"`)}l=l.replace(m.find,cl(f,""))}),x?Di(l,t,e):l}function bo(l,t,e,i){t*=1;let s,r,[o,a]=(l=+l||0).toString().split("e").map(Number),n=this?.options?.lang||go.lang,h=(l.toString().split(".")[1]||"").split("e")[0].length,c=t,d={};e??(e=n.decimalPoint),i??(i=n.thousandsSep),t===-1?t=Math.min(h,20):mo(t)?t&&a<0&&((r=t+a)>=0?(o=+o.toExponential(r).split("e")[0],t=r):(o=Math.floor(o),l=t<20?+(o*Math.pow(10,a)).toFixed(t):0,a=0)):t=2,a&&(t??(t=2),l=o),mo(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),i===""&&(d.useGrouping=!1);let p=i||e,u=p?"en":this?.locale||n.locale||ol,g=JSON.stringify(d)+u;return s=(xo[g]??(xo[g]=new Intl.NumberFormat(u,d))).format(l),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 Gt={dateFormat:function(l,t,e){return fo.dateFormat(l,t,e)},format:Di,helpers:Ii,numberFormat:bo};(function(l){let t;l.rendererTypes={},l.getRendererType=function(e=t){return l.rendererTypes[e]||l.rendererTypes[t]},l.registerRendererType=function(e,i,s){l.rendererTypes[e]=i,(!t||s)&&(t=e,O.Renderer=i)}})(B||(B={}));let oi=B,{clamp:ul,pick:gl,pushUnique:fl,stableSort:zs}=X;(E||(E={})).distribute=function l(t,e,i){let s=t,r=s.reducedLen||e,o=(b,v)=>b.target-v.target,a=[],n=t.length,h=[],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(zs(t,(b,v)=>(v.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)],fl(h,d)&&(f-=x.size),p+=u,y&&p>=t.length&&(u/=2,p=u);h.sort((b,v)=>v-b).forEach(b=>c.apply(a,t.splice(b,1)))}for(zs(t,o),t=t.map(b=>({size:b.size,targets:[b.target],align:gl(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=ul(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 v=0;return(b.targets||[]).some(()=>(s[d].pos=b.pos+v,i!==void 0&&Math.abs(s[d].pos-s[d].target)>i?(s.slice(0,d+1).forEach(k=>delete k.pos),s.reducedLen=(s.reducedLen||e)-.1*e,s.reducedLen>.1*e&&l(s,e,i),!0):(v+=s[d].size,d++,!1)))}),zs(s,o),s};let Bi=E,{animate:ml,animObject:xl,stop:vo}=St,{deg2rad:ko,doc:We,svg:yl,SVG_NS:Ni,win:bl,isFirefox:vl}=O,{addEvent:kl,attr:Rs,createElement:wl,crisp:zi,css:wo,defined:Zt,erase:Ml,extend:ai,fireEvent:Ws,getAlignFactor:Xs,isArray:Mo,isFunction:So,isNumber:Sl,isObject:Tl,isString:To,merge:Hs,objectEach:Xe,pick:re,pInt:Ri,pushUnique:Cl,replaceNested:Al,syncTimeout:Pl,uniqueKey:Co}=X;class bt{_defaultGetter(t){let e=re(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||To(i)?i||"renderer":void 0;n&&(a&&Cl(o,this),i=void 0);let h=re(i,r[n],r),c=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*Xs(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*Xs(t.verticalAlign),p={"text-align":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=xl(re(e,this.renderer.globalAnimation,!0)),r=s.defer;return We.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),Pl(()=>{this.element&&ml(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=We.createElementNS(Ni,"tspan");Rs(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 h=We.createElementNS(Ni,"tspan");h.textContent="​",Rs(h,{x:Number(e.getAttribute("x")),dy:-n}),o.appendChild(h),a.insertBefore(o,a.firstChild)}}attr(t,e,i,s){let{element:r}=this,o=bt.symbolCustomAttribs,a,n,h=this,c;return typeof t=="string"&&e!==void 0&&(a=t,(t={})[a]=e),typeof t=="string"?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,r):(Xe(t,function(d,p){c=!1,s||vo(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),h}clip(t){if(t&&!t.clipPath){let e=Co()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);ai(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=zi(i,e),n=zi(s,e);return ai(t,{x:a,y:n,width:zi(r,e)-a,height:zi(o,e)-n}),Zt(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,r,o,a,n,h,c,d,p,u,g,x=[],m;Ws(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],h=s.gradients,c=t.stops,u=i.radialReference,Mo(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),o==="radialGradient"&&u&&!Zt(a.gradientUnits)&&(n=a,a=Hs(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)}),h[x=x.join(",")])g=h[x].attr("id");else{a.id=g=Co();let f=h[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=lt.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=ai(e,i)),t.width===null||t.width==="auto"?delete this.textWidth:s.nodeName.toLowerCase()==="text"&&t.width&&(r=this.textWidth=Ri(t.width)),ai(this.styles,t),r&&!yl&&this.renderer.forExport&&delete t.width;let a=vl&&t.fontSize||null;a&&(Sl(a)||/^\d+$/.test(a))&&(t.fontSize+="px");let n=Hs(t);s.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","whiteSpace","width"].forEach(h=>n&&delete n[h]),n.color&&(n.fill=n.color,delete n.color)),wo(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]=""+Ri(s[e])*re(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,vo(t),t.clipPath&&s){let n=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),function(h){h.getAttribute("clip-path").indexOf(n.element.id)>-1&&h.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?.div&&r.div.childNodes.length===0;)o=r.parentGroup,t.safeRemoveChild(r.div),delete r.div,r=o;t.alignOptions&&Ml(i.alignedObjects,t),Xe(t,(n,h)=>{(t[h]?.parentGroup===t||["connector","foreignObject"].indexOf(h)!==-1)&&t[h]?.destroy?.(),delete t[h]})}dSetter(t,e,i){Mo(t)&&(typeof t[0]=="string"&&(t=this.renderer.pathToSegments(t)),this.pathArray=t,t=t.reduce((s,r,o)=>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:h,styles:c,textStr:d}=this,{cache:p,cacheKeys:u}=h,g=n.namespaceURI===this.SVG_NS,x=re(e,this.rotation,0),m=h.styledMode?n&&bt.prototype.getStyle.call(n,"font-size"):c.fontSize;if(Zt(d)&&((o=d.toString()).indexOf("<")===-1&&(o=o.replace(/\d/g,"0")),o+=["",h.rootFontSize,m,x,this.textWidth,a,c.lineClamp,c.textOverflow,c.fontWeight].join(",")),o&&!t&&(i=p[o]),!i||i.polygon){if(g||h.forExport){try{r=this.fakeTS&&function(y){let b=n.querySelector(".highcharts-text-outline");b&&wo(b,{display:y})},So(r)&&r("none"),i=n.getBBox?ai({},n.getBBox()):{width:n.offsetWidth,height:n.offsetHeight,x:0,y:0},So(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};Ws(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:h=0,rotationOriginY:c=0}=this,d=Xs(a),p=Number(this.element.getAttribute("y")||0)-(n?0:s),u=e*ko,g=(e-90)*ko,x=Math.cos(u),m=Math.sin(u),f=r*x,y=r*m,b=Math.cos(g),v=Math.sin(g),[[k,w],[S,M]]=[h,c].map(G=>[G-G*x,G*m]),C=i+d*(r-f)+k+M+p*b,L=C+f,T=L-o*b,D=T-f,z=s+p-d*y-w+S+p*v,W=z+y,I=W-o*v,N=I-y,R=Math.min(C,L,T,D),it=Math.min(z,W,I,N),K=Math.max(C,L,T,D)-R,Et=Math.max(z,W,I,N)-it;return{x:R,y:it,width:K,height:Et,polygon:[[C,z],[L,W],[T,I],[D,N]]}}getStyle(t){return bl.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=Ni,this.element=e==="span"||e==="body"?wl(e):We.createElementNS(this.SVG_NS,e),this.renderer=t,this.styles={},Ws(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=kl(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}reAlign(){this.alignOptions?.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(To(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?.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}shadow(t){let{renderer:e}=this,i=Hs(this.parentGroup?.rotation===90?{offsetX:-1,offsetY:-1}:{},Tl(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=Ri(t):t!==""&&(Rs(i=We.createElementNS(Ni,"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;bt.symbolCustomAttribs.forEach(function(i){e[i]=re(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]||We.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=Al(re(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:h,scaleY:c,text:d,translateX:p=0,translateY:u=0}=this,g=["translate("+p+","+u+")"];Zt(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?.element.tagName!=="SPAN"||d?.foreignObject||d.attr({rotation:o,rotationOriginX:(a||0)-r,rotationOriginY:(n||0)-r})),(Zt(h)||Zt(c))&&g.push("scale("+re(h,1)+" "+re(c,1)+")"),g.length&&!(d||this).textPath&&(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,h,c,d=!1,p,u=this.added,g;if(Zt(t)?(o.setAttribute("data-z-index",t),t*=1,this[e]===t&&(u=!1)):Zt(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=!Zt(c=(h=n[g]).getAttribute("data-z-index")),h!==o&&(t<0&&p&&!a&&!g?(r.insertBefore(o,n[g]),d=!0):(Ri(c)<=t||p&&(!Zt(t)||t>=0))&&(r.insertBefore(o,n[g+1]),d=!0));d||(r.insertBefore(o,n[3*!!a]),d=!0)}return d}}bt.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],bt.prototype.strokeSetter=bt.prototype.fillSetter,bt.prototype.yGetter=bt.prototype.xGetter,bt.prototype.matrixSetter=bt.prototype.rotationOriginXSetter=bt.prototype.rotationOriginYSetter=bt.prototype.rotationSetter=bt.prototype.scaleXSetter=bt.prototype.scaleYSetter=bt.prototype.translateXSetter=bt.prototype.translateYSetter=bt.prototype.verticalAlignSetter=function(l,t){this[t]=l,this.doTransform=!0};let Kt=bt,{defined:Ao,extend:Ol,getAlignFactor:Po,isNumber:ni,merge:Ll,pick:Wi,removeEvent:Oo}=X;class Me extends Kt{constructor(t,e,i,s,r,o,a,n,h,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=h,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=Me.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||d,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e=Po(t);this.textAlign=t,e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&ni(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=Ll(t),Me.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 Kt.prototype.css.call(this,t)}destroy(){Oo(this.element,"mouseenter"),Oo(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),Kt.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=Wi(this.paddingLeft,i),h=e??(this.rotation||0),c={width:a,height:s,x:r+this.bBox.x-n,y:o+this.bBox.y-i+this.baselineOffset};return h&&(c=this.getRotatedBox(c,h)),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:Wi(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&Ao(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){ni(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=(!ni(this.widthSetting)||!ni(this.heightSetting)||this.textAlign)&&Ao(e.textStr)?e.getBBox(void 0,0):Me.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(Ol(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)+Po(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=ni(t)?t:void 0,this.doUpdate=!0}getPaddedWidth(){let t=this.padding,e=Wi(this.paddingLeft,t),i=Wi(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.anchorX&&(this["forceAnimate:anchorX"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)}ySetter(t){this.anchorY&&(this["forceAnimate:anchorY"]=!0),this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}Me.emptyBBox={width:0,height:0,x:0,y:0},Me.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineClamp","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"];let{defined:Lo,isNumber:El,pick:li}=X;function Eo(l,t,e,i,s){let r=[];if(s){let o=s.start||0,a=s.end||0,n=li(s.r,e),h=li(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=li(s.open,d),g=Math.cos(o),x=Math.sin(o),m=Math.cos(a),f=Math.sin(a),y=li(s.longArc,a-o-Math.PI<c?0:1),b=["A",n,h,0,y,li(s.clockwise,1),l+n*m,t+h*f];b.params={start:o,end:a,cx:l,cy:t},r.push(["M",l+n*g,t+h*x],b),Lo(p)&&((b=["A",p,p,0,y,Lo(s.clockwise)?1-s.clockwise:0,l+p*g,t+p*x]).params={start:a,end:o,cx:l,cy:t},r.push(u?["M",l+p*m,t+p*f]:["L",l+p*m,t+p*f],b)),u||r.push(["Z"])}return r}function Io(l,t,e,i,s){return s?.r?Fs(l,t,e,i,s):[["M",l,t],["L",l+e,t],["L",l+e,t+i],["L",l,t+i],["Z"]]}function Fs(l,t,e,i,s){let r=s?.r||0;return[["M",l+r,t],["L",l+e-r,t],["A",r,r,0,0,1,l+e,t+r],["L",l+e,t+i-r],["A",r,r,0,0,1,l+e-r,t+i],["L",l+r,t+i],["A",r,r,0,0,1,l,t+i-r],["L",l,t+r],["A",r,r,0,0,1,l+r,t],["Z"]]}let Do={arc:Eo,callout:function(l,t,e,i,s){let r=Math.min(s?.r||0,e,i),o=r+6,a=s?.anchorX,n=s?.anchorY||0,h=Fs(l,t,e,i,{r});if(!El(a)||a<e&&a>0&&n<i&&n>0)return h;if(l+a>e-o)if(n>t+o&&n<t+i-o)h.splice(3,1,["L",l+e,n-6],["L",l+e+6,n],["L",l+e,n+6],["L",l+e,t+i-r]);else if(a<e){let c=n<t+o,d=c?t:t+i;h.splice(c?2:5,0,["L",a,n],["L",l+e-r,d])}else h.splice(3,1,["L",l+e,i/2],["L",a,n],["L",l+e,i/2],["L",l+e,t+i-r]);else if(l+a<o)if(n>t+o&&n<t+i-o)h.splice(7,1,["L",l,n+6],["L",l-6,n],["L",l,n-6],["L",l,t+r]);else if(a>0){let c=n<t+o,d=c?t:t+i;h.splice(c?1:6,0,["L",a,n],["L",l+r,d])}else h.splice(7,1,["L",l,i/2],["L",a,n],["L",l,i/2],["L",l,t+r]);else n>i&&a<e-o?h.splice(5,1,["L",a+6,t+i],["L",a,t+i+6],["L",a-6,t+i],["L",l+r,t+i]):n<0&&a>o&&h.splice(1,1,["L",a-6,t],["L",a,t-6],["L",a+6,t],["L",e-r,t]);return h},circle:function(l,t,e,i){return Eo(l+e/2,t+i/2,e/2,i/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(l,t,e,i){return[["M",l+e/2,t],["L",l+e,t+i/2],["L",l+e/2,t+i],["L",l,t+i/2],["Z"]]},rect:Io,roundedRect:Fs,square:Io,triangle:function(l,t,e,i){return[["M",l+e/2,t],["L",l+e,t+i],["L",l,t+i],["Z"]]},"triangle-down":function(l,t,e,i){return[["M",l,t],["L",l+e,t],["L",l+e/2,t+i],["Z"]]}},{doc:Gs,SVG_NS:Il,win:Bo}=O,{attr:Ys,extend:Dl,fireEvent:Bl,isString:Nl,objectEach:zl,pick:Rl}=X,js=(l,t)=>l.substring(0,t)+"…",Wl=class{constructor(l){let t=l.styles;this.renderer=l.renderer,this.svgElement=l,this.width=l.textWidth,this.textLineHeight=t?.lineHeight,this.textOutline=t?.textOutline,this.ellipsis=t?.textOverflow==="ellipsis",this.lineClamp=t?.lineClamp,this.noWrap=t?.whiteSpace==="nowrap"}buildSVG(){let l=this.svgElement,t=l.element,e=l.renderer,i=Rl(l.textStr,"").toString(),s=i.indexOf("<")!==-1,r=t.childNodes,o=!l.added&&e.box,a=[i,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,l.getStyle("font-size"),l.styles.lineClamp,this.width].join(",");if(a!==l.textCache){l.textCache=a,delete l.actualWidth;for(let n=r.length;n--;)t.removeChild(r[n]);if(s||this.ellipsis||this.width||l.textPath||i.indexOf(" ")!==-1&&(!this.noWrap||/<br.*?>/g.test(i))){if(i!==""){o&&o.appendChild(t);let n=new nt(i);this.modifyTree(n.nodes),n.addToDOM(t),this.modifyDOM(),this.ellipsis&&(t.textContent||"").indexOf("…")!==-1&&l.attr("title",this.unescapeEntities(l.textStr||"",["&lt;","&gt;"])),o&&o.removeChild(t)}}else t.appendChild(Gs.createTextNode(this.unescapeEntities(i)));Nl(this.textOutline)&&l.applyTextOutline&&l.applyTextOutline(this.textOutline)}}modifyDOM(){let l,t=this.svgElement,e=Ys(t.element,"x");for(t.firstLineMetrics=void 0;(l=t.element.firstChild)&&/^[\s\u200B]*$/.test(l.textContent||" ");)t.element.removeChild(l);[].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)),Ys(o,{dy:this.getLineHeight(o.nextSibling),x:e}))});let i=this.width||0;if(!i)return;let s=(o,a)=>{let n=o.textContent||"",h=n.replace(/([^\^])-/g,"$1- ").split(" "),c=!this.noWrap&&(h.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 x=[],m=[];for(;a.firstChild&&a.firstChild!==o;)m.push(a.firstChild),a.removeChild(a.firstChild);for(;h.length;)if(h.length&&!this.noWrap&&u>0&&(x.push(o.textContent||""),o.textContent=h.join(" ").replace(/- /g,"-")),this.truncate(o,void 0,h,u===0&&g||0,i,p,(f,y)=>h.slice(0,y).join(" ").replace(/- /g,"-")),g=t.actualWidth,u++,this.lineClamp&&u>=this.lineClamp){h.length&&(this.truncate(o,o.textContent||"",void 0,0,i,p,js),o.textContent=o.textContent?.replace("…","")+"…");break}m.forEach(f=>{a.insertBefore(f,o)}),x.forEach(f=>{a.insertBefore(Gs.createTextNode(f),o);let y=Gs.createElementNS(Il,"tspan");y.textContent="​",Ys(y,{dy:d,x:e}),a.insertBefore(y,o)})}else this.ellipsis&&n&&this.truncate(o,n,void 0,0,i,p,js)},r=o=>{[].slice.call(o.childNodes).forEach(a=>{a.nodeType===Bo.Node.TEXT_NODE?s(a,o):(a.className.baseVal.indexOf("highcharts-br")!==-1&&(t.actualWidth=0),r(a))})};r(t.element)}getLineHeight(l){let t=l.nodeType===Bo.Node.TEXT_NODE?l.parentElement:l;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(t||this.svgElement.element).h}modifyTree(l){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?.color&&(o.fill=o.color),a==="br"){s.class="highcharts-br",e.textContent="​";let h=l[i+1];h?.textContent&&(h.textContent=h.textContent.replace(/^ +/gm,""))}else a==="a"&&r&&r.some(h=>h.tagName==="#text")&&(e.children=[{children:r,tagName:"tspan"}]);a!=="#text"&&a!=="a"&&(e.tagName="tspan"),Dl(e,{attributes:s,style:o}),r&&r.filter(h=>h.tagName!=="#text").forEach(t)};l.forEach(t),Bl(this.svgElement,"afterModifyTree",{nodes:l})}truncate(l,t,e,i,s,r,o){let a,n,h=this.svgElement,{rotation:c}=h,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=l.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(h.rotation=0,i+(n=x(l.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?l.textContent="":t&&u===t.length-1||(l.textContent=a||o(t||e,g)),this.ellipsis&&n>s&&this.truncate(l,l.textContent||"",void 0,0,s,r,js)}e&&e.splice(0,g),h.actualWidth=n,h.rotation=c}unescapeEntities(l,t){return zl(this.renderer.escapes,function(e,i){t&&t.indexOf(e)!==-1||(l=l.toString().replace(RegExp(e,"g"),i))}),l}},{defaultOptions:Xl}=Ft,{charts:Hl,deg2rad:No,doc:He,isFirefox:zo,isMS:Ro,isWebKit:Fl,noop:Gl,SVG_NS:Yl,symbolSizes:$s,win:Vs}=O,{addEvent:Xi,attr:Hi,createElement:jl,crisp:Wo,css:Fi,defined:Se,destroyObjectProperties:$l,extend:Te,isArray:Vl,isNumber:Ce,isObject:hi,isString:Ul,merge:Us,pick:qs,pInt:ql,replaceNested:Zl,uniqueKey:Kl}=X;class Gi{constructor(t,e,i,s,r,o,a){let n,h;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),Hi(t,"dir","ltr"),t.innerHTML.indexOf("xmlns")===-1&&Hi(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=c,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(He.createTextNode("Created with Highcharts 12.4.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),zo&&t.getBoundingClientRect&&((n=function(){Fi(t,{left:0,top:0}),h=t.getBoundingClientRect(),Fi(t,{left:Math.ceil(h.left)-h.left+"px",top:Math.ceil(h.top)-h.top+"px"})})(),this.unSubPixelFix=Xi(Vs,"resize",n))}definition(t){return new nt([t]).addToDOM(this.defs.element)}getReferenceURL(){if((zo||Fl)&&He.getElementsByTagName("base").length){if(!Se(V)){let t=Kl(),e=new nt([{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(He.body);Fi(e,{position:"fixed",top:0,left:0,zIndex:9e5}),V=He.elementFromPoint(6,6)?.id==="hitme",He.body.removeChild(e)}if(V)return Zl(Vs.location.href.split("#")[0],[/<[^>]*>/g,""],[/([\('\)])/g,"\\$1"],[/ /g,"%20"])}return""}getStyle(t){return this.style=Te({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(),$l(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=Us({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 Wl(t).buildSVG()}getContrast(t){if(t==="transparent")return"#000000";let e=lt.parse(t).rgba,i=" clamp(0,calc(9e9*(0.5 - (0.2126*r + 0.7152*g + 0.0722*b))),1)";if(Ce(e[0])||!lt.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,h,c){let d=this.label(t,e,i,h,void 0,void 0,c,void 0,"button"),p=this.styledMode,u=arguments,g=0;r=Us(Xl.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=[nt.filterUserAttributes(r)],y=[m];return p||["hover","select","disabled"].forEach((b,v)=>{f.push(Us(f[0],nt.filterUserAttributes(u[v+5]||x[b]||{}))),y.push(f[v+1].style),delete f[v+1].style}),Xi(d.element,Ro?"mouseover":"mouseenter",function(){g!==3&&d.setState(1)}),Xi(d.element,Ro?"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 v=y[b];hi(v)&&d.css(v)}},d.attr(f[0]),!p&&(d.css(Te({cursor:"default"},m)),c&&d.text.css({pointerEvents:"none"})),d.on("touchstart",b=>b.stopPropagation()).on("click",function(b){g!==3&&s?.call(d,b)})}crispLine(t,e){let[i,s]=t;return Se(i[1])&&i[1]===s[1]&&(i[1]=s[1]=Wo(i[1],e)),Se(i[2])&&i[2]===s[2]&&(i[2]=s[2]=Wo(i[2],e)),t}path(t){let e=this.styledMode?{}:{fill:"none"};return Vl(t)?e.d=t:hi(t)&&Te(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=hi(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;hi(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=hi(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,Te(a,n.crisp(a))),a.fill="none"),n.rSetter=function(h,c,d){n.r=h,Hi(d,{rx:h,ry:h})},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:qs(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"};Ce(e)&&(a.x=e),Ce(i)&&(a.y=i),Ce(s)&&(a.width=s),Ce(r)&&(a.height=r);let n=this.createElement("image").attr(a),h=function(c){n.attr({href:t}),o.call(n,c)};if(o){n.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let c=new Vs.Image;Xi(c,"load",h),c.src=t,c.complete&&h({})}else n.attr({href:t});return n}symbol(t,e,i,s,r,o){let a,n,h,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"),Te(a,{symbolName:g||void 0,x:e,y:i,width:s,height:r}),o&&Te(a,o);else if(u){h=t.match(p)[1];let m=a=this.image(h);m.imgwidth=qs(o?.width,$s[h]?.width),m.imgheight=qs(o?.height,$s[h]?.height),c=f=>f.attr({width:f.width,height:f.height}),["width","height"].forEach(f=>{m[`${f}Setter`]=function(y,b){this[b]=y;let{alignByTranslate:v,element:k,width:w,height:S,imgwidth:M,imgheight:C}=this,L=b==="width"?M:C,T=1;o&&o.backgroundSize==="within"&&w&&S&&M&&C?(T=Math.min(w/M,S/C),Hi(k,{width:Math.round(M*T),height:Math.round(C*T)})):k&&L&&k.setAttribute(b,L),!v&&M&&C&&this.translate(((w||0)-M*T)/2,((S||0)-C*T)/2)}}),Se(e)&&m.attr({x:e,y:i}),m.isImg=!0,m.symbolUrl=t,Se(m.imgwidth)&&Se(m.imgheight)?c(m):(m.attr({width:0,height:0}),jl("img",{onload:function(){let f=Hl[d.chartIndex];this.width===0&&(Fi(this,{position:"absolute",top:"-999em"}),He.body.appendChild(this)),$s[h]={width:this.width,height:this.height},m.imgwidth=this.width,m.imgheight=this.height,m.element&&c(m),this.parentNode&&this.parentNode.removeChild(this),d.imgCount--,d.imgCount||!f||f.hasLoaded||f.onload()},src:h}),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)),Se(t)&&(r.text=t);let o=this.createElement("text").attr(r);return s&&(!this.forExport||this.allowHTML)||(o.xSetter=function(a,n,h){let c=h.getElementsByTagName("tspan"),d=h.getAttribute(n);for(let p=0,u;p<c.length;p++)(u=c[p]).getAttribute(n)===d&&u.setAttribute(n,a);h.setAttribute(n,a)}),o}fontMetrics(t){let e=Ce(t)?t:ql(Kt.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++)Ul(i[0])&&Ce(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,h){return new Me(this,t,e,i,s,r,o,a,n,h)}alignElements(){this.alignedObjects.forEach(t=>t.align())}}Te(Gi.prototype,{Element:Kt,SVG_NS:Yl,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:Do,draw:Gl}),oi.registerRendererType("svg",Gi,!0);let{composed:_l,isFirefox:Jl}=O,{attr:Ql,css:ne,createElement:th,defined:Xo,extend:eh,getAlignFactor:ih,isNumber:Yi,pInt:sh,pushUnique:rh}=X;function Ho(l,t,e){let i=this.div?.style;Kt.prototype[`${t}Setter`].call(this,l,t,e),i&&(e.style[t]=i[t]=l)}let oh=(l,t)=>{if(!l.div){let e=Ql(l.element,"class"),i=l.css,s=th("div",e?{className:e}:void 0,{position:"absolute",left:`${l.translateX||0}px`,top:`${l.translateY||0}px`,...l.styles,display:l.display,opacity:l.opacity,visibility:l.visibility},l.parentGroup?.div||t);l.classSetter=(r,o,a)=>{a.setAttribute("class",r),s.className=r},l.translateXSetter=l.translateYSetter=(r,o)=>{l[o]=r,s.style[o==="translateX"?"left":"top"]=`${r}px`,l.doTransform=!0},l.scaleXSetter=l.scaleYSetter=(r,o)=>{l[o]=r,l.doTransform=!0},l.opacitySetter=l.visibilitySetter=Ho,l.css=r=>(i.call(l,r),r.cursor&&(s.style.cursor=r.cursor),r.pointerEvents&&(s.style.pointerEvents=r.pointerEvents),l),l.on=function(){return Kt.prototype.on.apply({element:s,onEvents:l.onEvents},arguments),l},l.div=s}return l.div};class Fe extends Kt{static compose(t){rh(_l,this.compose)&&(t.prototype.html=function(e,i,s){return new Fe(this,"span").attr({text:e,x:Math.round(i),y:Math.round(s)})})}constructor(t,e){super(t,e),Fe.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=sh(r)||void 0,e=!0),t?.textOverflow==="ellipsis"&&(t.overflow="hidden",t.whiteSpace="nowrap"),t?.lineClamp&&(t.display="-webkit-box",t.WebkitLineClamp=t.lineClamp,t.WebkitBoxOrient="vertical",t.overflow="hidden"),Yi(Number(t?.fontSize))&&(t.fontSize+="px"),eh(this.styles,t),ne(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(){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:h,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||ne(t,{marginLeft:`${g}px`,marginTop:`${x}px`}),t.tagName==="SPAN"){let y,b=[r,p,t.innerHTML,u,this.textAlign].join(","),v=-(this.parentGroup?.padding*1)||0;if(u!==i){let M=this.textPxLength?this.textPxLength:(ne(t,{width:"",whiteSpace:d||"nowrap"}),t.offsetWidth),C=u||0,L=!s.styledMode&&t.style.textOverflow===""&&t.style.webkitLineClamp;(C>i||M>C||L)&&(/[\-\s\u00AD]/.test(t.textContent||t.innerText)||t.style.textOverflow==="ellipsis")&&(ne(t,{width:(r||n||M>C||L)&&Yi(u)?u+"px":"auto",display:c,whiteSpace:d||"normal"}),this.oldTextWidth=u)}e&&(ne(t,{display:"inline-block",verticalAlign:"top"}),e.attr({width:s.width,height:s.height})),b!==this.cTT&&(y=s.fontMetrics(t).b,Xo(r)&&!e&&(r!==(this.oldRotation||0)||p!==this.oldAlign)&&ne(t,{transform:`rotate(${r}deg)`,transformOrigin:`${v}% ${v}px`}),this.getSpanCorrection(!Xo(r)&&!this.textWidth&&this.textPxLength||t.offsetWidth,y,ih(p)));let{xCorr:k=0,yCorr:w=0}=this,S={left:`${m+k}px`,top:`${f+w}px`,textAlign:p,transformOrigin:`${(o??m)-k-m-v}px ${(a??f)-w-f-v}px`};(n||h)&&(S.transform=`scale(${n??1},${h??1})`),e?(super.updateTransform(),Yi(m)&&Yi(f)?(e.attr({x:m+k,y:f+w,width:t.offsetWidth+3,height:t.offsetHeight,"transform-origin":t.getAttribute("transform-origin")||"0 0"}),ne(t,{display:c,textAlign:p})):Jl&&e.attr({width:0,height:0})):ne(t,S),this.cTT=b,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=oh(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,nt.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=Fe.prototype;Ae.visibilitySetter=Ae.opacitySetter=Ho,Ae.ySetter=Ae.rotationSetter=Ae.rotationOriginXSetter=Ae.rotationOriginYSetter=Ae.xSetter,(function(l){l.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"},l.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 ah=U,{addEvent:nh,isFunction:lh,objectEach:hh,removeEvent:dh}=X;($||($={})).registerEventOptions=function(l,t){l.eventOptions=l.eventOptions||{},hh(t.events,function(e,i){l.eventOptions[i]!==e&&(l.eventOptions[i]&&(dh(l,i,l.eventOptions[i]),delete l.eventOptions[i]),lh(e)&&(l.eventOptions[i]=e,nh(l,i,e,{order:0})))})};let ji=$,{deg2rad:Zs}=O,{clamp:ch,correctFloat:$i,defined:Ks,destroyObjectProperties:ph,extend:Fo,fireEvent:di,getAlignFactor:uh,isNumber:Vi,merge:gh,objectEach:fh,pick:_t}=X,Ge=class{constructor(l,t,e,i,s){this.isNew=!0,this.isNewLabel=!0,this.axis=l,this.pos=t,this.type=e||"",this.parameters=s||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,di(this,"init"),e||i||this.addLabel()}addLabel(){let l=this,t=l.axis,e=t.options,i=t.chart,s=t.categories,r=t.logarithmic,o=t.names,a=l.pos,n=_t(l.options?.labels,e.labels),h=t.tickPositions,c=a===h[0],d=a===h[h.length-1],p=(!n.step||n.step===1)&&t.tickInterval===1,u=h.info,g=l.label,x,m,f,y=this.parameters.category||(s?_t(s[a],o[a],a):a);r&&Vi(y)&&(y=$i(r.lin2log(y))),t.dateTime&&(u?x=(m=i.time.resolveDTLFormat(e.dateTimeLabelFormats[!e.grid?.enabled&&u.higherRanks[a]||u.unitName])).main:Vi(y)&&(x=t.dateTime.getXDateFormat(y,e.dateTimeLabelFormats||{}))),l.isFirst=c,l.isLast=d;let b={axis:t,chart:i,dateTimeLabelFormat:x,isFirst:c,isLast:d,pos:a,tick:l,tickPositionInfo:u,value:y};di(this,"labelFormat",b);let v=S=>n.formatter?n.formatter.call(S,S):n.format?(S.text=t.defaultLabelFormatter.call(S),Gt.format(n.format,S,i)):t.defaultLabelFormatter.call(S),k=v.call(b,b),w=m?.list;w?l.shortenLabel=function(){for(f=0;f<w.length;f++)if(Fo(b,{dateTimeLabelFormat:w[f]}),g.attr({text:v.call(b,b)}),g.getBBox().width<t.getSlotWidth(l)-2*(n.padding||0))return;g.attr({text:""})}:l.shortenLabel=void 0,p&&t._addedPlotLB&&l.moveLabel(k,n),Ks(g)||l.movedLabel?g&&g.textStr!==k&&!p&&(!g.textWidth||n.style.width||g.styles.width||g.css({width:null}),g.attr({text:k}),g.textPxLength=g.getBBox().width):(l.label=g=l.createLabel(k,n),l.rotation=0)}createLabel(l,t,e){let i=this.axis,{renderer:s,styledMode:r}=i.chart,o=t.style.whiteSpace,a=Ks(l)&&t.enabled?s.text(l,e?.x,e?.y,t.useHTML).add(i.labelGroup):void 0;return a&&(r||a.css(gh(t.style)),a.textPxLength=a.getBBox().width,!r&&o&&a.css({whiteSpace:o})),a}destroy(){ph(this,this.axis)}getPosition(l,t,e,i){let s=this.axis,r=s.chart,o=i&&r.oldChartHeight||r.chartHeight,a={x:l?$i(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:l?o-s.bottom+s.offset-(s.opposite?s.height:0):$i(o-s.translate(t+e,void 0,void 0,i)-s.transB)};return a.y=ch(a.y,-1e9,1e9),di(this,"afterGetPosition",{pos:a}),a}getLabelPosition(l,t,e,i,s,r,o,a){let n,h,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*Zs)*(g.y-e.getBBox(!1,0).height/2),Ks(s.y)&&(n=c.side===0&&c.horiz?s.y+n:s.y),l=l+_t(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&&(h=o/(a||1)%u,c.opposite&&(h=u-h-1),t+=h*(c.labelOffset/u)),f.x=l,f.y=Math.round(t),di(this,"afterGetLabelPosition",{pos:f,tickmarkOffset:r,index:o}),f}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(l,t,e,i,s=!1,r){return r.crispLine([["M",l,t],["L",l+(s?0:-e),t+(s?e:0)]],i)}handleOverflow(l){let t=this.axis,e=t.options.labels,i=l.x,s=t.chart.chartWidth,r=t.chart.spacing,o=_t(t.labelLeft,Math.min(t.pos,r[3])),a=_t(t.labelRight,Math.max(t.isRadial?0:t.pos+t.len,s-r[1])),n=this.label,h=this.rotation,c=uh(t.labelAlign||n.attr("align")),d=n.getBBox().width,p=t.getSlotWidth(this),u=p,g=1,x;h||e.overflow!=="justify"?h<0&&i-c*d<o?x=Math.round(i/Math.cos(h*Zs)-o):h>0&&i+c*d>a&&(x=Math.round((s-i)/Math.cos(h*Zs))):(i-c*d<o?u=l.x+u*(1-c)-o:i+(1-c)*d>a&&(u=a-l.x+u*c,g=-1),(u=Math.min(p,u))<p&&t.labelAlign==="center"&&(l.x+=g*(p-u-c*(p-Math.min(d,u)))),(d>u||t.autoRotation&&n?.styles?.width)&&(x=u)),x&&n&&(this.shortenLabel?this.shortenLabel():n.css(Fo({},{width:Math.floor(x)+"px",lineClamp:+!t.isRadial})))}moveLabel(l,t){let e=this,i=e.label,s=e.axis,r=!1,o;i&&i.textStr===l?(e.movedLabel=i,r=!0,delete e.label):fh(s.ticks,function(a){r||a.isNew||a===e||!a.label||a.label.textStr!==l||(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(l,t,o),e.movedLabel&&e.movedLabel.attr({opacity:0}))}render(l,t,e){let i=this.axis,s=i.horiz,r=this.pos,o=_t(this.tickmarkOffset,i.tickmarkOffset),a=this.getPosition(s,r,o,t),n=a.x,h=a.y,c=i.pos,d=c+i.len,p=s?n:h,u=_t(e,this.label?.newOpacity,1);!i.chart.polar&&($i(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,l),this.isNew=!1,di(this,"afterRender")}renderGridLine(l,t){let e=this.axis,i=e.options,s={},r=this.pos,o=this.type,a=_t(this.tickmarkOffset,e.tickmarkOffset),n=e.chart.renderer,h=this.gridLine,c,d=i.gridLineWidth,p=i.gridLineColor,u=i.gridLineDashStyle;this.type==="minor"&&(d=i.minorGridLineWidth,p=i.minorGridLineColor,u=i.minorGridLineDashStyle),h||(e.chart.styledMode||(s.stroke=p,s["stroke-width"]=d||0,s.dashstyle=u),o||(s.zIndex=1),l&&(t=0),this.gridLine=h=n.path().attr(s).addClass("highcharts-"+(o?o+"-":"")+"grid-line").add(e.gridGroup)),h&&(c=e.getPlotLinePath({value:r+a,lineWidth:h.strokeWidth(),force:"pass",old:l,acrossPanes:!1}))&&h[l||this.isNew?"attr":"animate"]({d:c,opacity:t})}renderMark(l,t){let e=this.axis,i=e.options,s=e.chart.renderer,r=this.type,o=e.tickSize(r?r+"Tick":"tick"),a=l.x,n=l.y,h=_t(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":h})),d[p?"attr":"animate"]({d:this.getMarkPath(a,n,o[0],d.strokeWidth(),e.horiz,s),opacity:t}))}renderLabel(l,t,e,i){let s=this.axis,r=s.horiz,o=s.options,a=this.label,n=o.labels,h=n.step,c=_t(this.tickmarkOffset,s.tickmarkOffset),d=l.x,p=l.y,u=!0;a&&Vi(d)&&(a.xy=l=this.getLabelPosition(d,p,a,r,n,c,i,h),(!this.isFirst||this.isLast||o.showFirstLabel)&&(!this.isLast||this.isFirst||o.showLastLabel)?!r||n.step||n.rotation||t||e===0||this.handleOverflow(l):u=!1,h&&i%h&&(u=!1),u&&Vi(l.y)?(l.opacity=e,a[this.isNewLabel?"attr":"animate"](l).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let l=this.label,t=this.axis;l&&!this.isNew&&(l.animate({opacity:0},void 0,l.destroy),delete this.label),t.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}},{animObject:mh}=St,{xAxis:Go,yAxis:xh}=ah,{defaultOptions:_s}=Ft,{registerEventOptions:yh}=ji,{deg2rad:bh}=O,{arrayMax:Yo,arrayMin:vh,clamp:Js,correctFloat:Wt,defined:rt,destroyObjectProperties:kh,erase:jo,error:Qs,extend:Ui,fireEvent:ht,getClosestDistance:$o,insertItem:wh,isArray:Vo,isNumber:H,isString:Uo,merge:qi,normalizeTickInterval:Mh,objectEach:Zi,pick:q,relativeLength:Ki,removeEvent:Sh,splat:Th,syncTimeout:Ch}=X,qo=(l,t)=>Mh(t,void 0,void 0,q(l.options.allowDecimals,t<.5||l.tickAmount!==void 0),!!l.tickAmount);Ui(_s,{xAxis:Go,yAxis:qi(Go,xh)});class Ye{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,ht(this,"init",{userOptions:e}),this.opposite=q(e.opposite,this.opposite),this.side=q(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),ht(this,"afterSetType"),this.userOptions=e,this.minPixelPadding=0,this.reversed=q(o.reversed,this.reversed),this.visible=o.visible,this.zoomEnabled=o.zoomEnabled,this.hasNames=this.type==="category"||o.categories===!0,this.categories=Vo(o.categories)&&o.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=rt(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=q(o.crosshair,Th(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),wh(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!rt(this.reversed)&&(this.reversed=!0),this.labelRotation=H(a.rotation)?a.rotation:void 0,yh(this,o),ht(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=qi(e,this.coll==="yAxis"?{title:{text:this.chart.options.lang.yAxisTitle}}:{},_s[this.coll],t),ht(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(){let t=this.axis,{numberFormatter:e}=this.chart,i=H(this.value)?this.value:NaN,s=t.chart.time,r=t.categories,o=this.dateTimeLabelFormat,a=_s.lang,n=a.numericSymbols,h=a.numericSymbolMagnitude||1e3,c=t.logarithmic?Math.abs(i):t.tickInterval,d=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(h,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;ht(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(h=>h>0):r,a=(t=i.getXExtremes(r)).min,n=t.max,H(a)||a instanceof Date||(r=r.filter(H),a=(t=i.getXExtremes(r)).min,n=t.max),r.length&&(e.dataMin=Math.min(q(e.dataMin,a),a),e.dataMax=Math.max(q(e.dataMax,n),n)));else{let h=i.applyExtremes();H(h.dataMin)&&(a=h.dataMin,e.dataMin=Math.min(q(e.dataMin,a),a)),H(h.dataMax)&&(n=h.dataMax,e.dataMax=Math.max(q(e.dataMax,n),n)),rt(o)&&(e.threshold=o),(!s.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}})}),ht(this,"afterGetSeriesExtremes")}translate(t,e,i,s,r,o){let a=this.linkedParent||this,n=s&&a.old?a.old.min:a.min;if(!H(n))return NaN;let h=a.minPixelPadding,c=(a.isOrdinal||a.brokenAxis?.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-h)/u+n,c&&(g=a.lin2val(g))):(c&&(t=a.val2lin(t)),g=d*(t-n)*u+p+d*h+(H(o)?u*o:0),a.isRadial||(g=Wt(g))),g}toPixels(t,e){return this.translate(this.chart?.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,h=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(k,w,S){return u!=="pass"&&(k<w||k>S)&&(u?k=Js(k,w,S):y=!0),k}let v={value:a,lineWidth:n,old:o,force:u,acrossPanes:t.acrossPanes,translatedValue:p};return ht(this,"getPlotLinePath",v,function(k){g=m=(p=Js(p=q(p,e.translate(a,void 0,void 0,o)),-1e9,1e9))+d,x=f=h-p-d,H(p)?e.horiz?(x=r,f=h-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),k.path=y&&!u?void 0:i.renderer.crispLine([["M",g,x],["L",m,f]],n||1)}),v.path}getLinearTickPositions(t,e,i){let s,r,o,a=Wt(Math.floor(e/t)*t),n=Wt(Math.ceil(i/t)*t),h=[];if(Wt(a+t)===a&&(o=20),this.single)return[e];for(s=a;s<=n&&(h.push(s),(s=Wt(s+t,o))!==r);)r=s;return h}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return t===!0?q(e,"auto"):t!==!1?e:void 0}getMinorTickPositions(){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=this.brokenAxis?.hasBreaks?this.brokenAxis.unitLength:o-r,n=[],h;if(a&&a/i<this.len/3){let c=this.logarithmic;if(c)this.paddedTicks.forEach(function(d,p,u){p&&n.push.apply(n,c.getLogTickPositions(i,u[p-1],u[p],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")n=n.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(i),r,o,t.startOfWeek));else for(h=r+(e[0]-r)%i;h<=o&&h!==n[0];h+=i)n.push(h)}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,h,c;this.isXAxis&&o===void 0&&!e&&(o=rt(t.min)||rt(t.max)||rt(t.floor)||rt(t.ceiling)?null:Math.min(5*($o(this.series.map(d=>{let p=d.getColumn("x");return d.xIncrement?p.slice(0,2):p}))||0),this.dataMax-this.dataMin)),H(s)&&H(r)&&H(o)&&s-r<o&&(n=this.dataMax-this.dataMin>=o,a=(o-s+r)/2,h=[r-a,i.parse(t.min)??r-a],n&&(h[2]=e?e.log2lin(this.dataMin):this.dataMin),c=[(r=Yo(h))+o,i.parse(t.max)??r+o],n&&(c[2]=e?e.log2lin(this.dataMax):this.dataMax),(s=vh(c))-r<o&&(h[0]=s-o,h[1]=i.parse(t.min)??s-o,r=Yo(h))),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&&rt(r)&&s.reserveSpace()&&(e=rt(e)?Math.min(e,r):r)}),i.length&&(i.sort((s,r)=>s-r),t=$o([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e=Vo(this.options.categories),i=e?this.categories:this.names,s=t.options.x,r;return t.series.requireSorting=!1,rt(s)||(s=this.uniqueNames&&i?e?i.indexOf(t.name):q(i.keys[t.name],-1):t.series.autoIncrement()),s===-1?!e&&i&&(r=i.length):H(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?.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(){let t=this,e=t.max-t.min,i=t.linkedParent,s=!!t.categories,r=t.isXAxis,o=t.axisPointRange||0,a,n=0,h=0,c,d=t.transA;(r||s||o)&&(a=t.getClosest(),i?(n=i.minPointOffset,h=i.pointRangePadding):t.series.forEach(function(p){let u=s?1:r?q(p.options.pointRange,a,0):t.axisPointRange||0,g=p.options.pointPlacement;if(o=Math.max(o,u),!t.single||s){let x=p.is("xrange")?!r:r;n=Math.max(n,x&&Uo(g)?0:u/2),h=Math.max(h,x&&g==="on"?0:u)}}),c=t.ordinal?.slope&&a?t.ordinal.slope/a:1,t.minPointOffset=n*=c,t.pointRangePadding=h*=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+h||1),t.transB=t.horiz?t.left:t.bottom,t.minPixelPadding=d*n,ht(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return H(t)&&H(e)&&t-e||void 0}setTickInterval(t){let{categories:e,chart:i,dataMax:s,dataMin:r,dateTime:o,isXAxis:a,logarithmic:n,options:h,softThreshold:c}=this,d=i.time,p=H(this.threshold)?this.threshold:void 0,u=this.minRange||0,{ceiling:g,floor:x,linkedTo:m,softMax:f,softMin:y}=h,b=H(m)&&i[this.coll]?.[m],v=h.tickPixelInterval,k=h.maxPadding,w=h.minPadding,S=0,M,C=H(h.tickInterval)&&h.tickInterval>=0?h.tickInterval:void 0,L,T,D,z;if(o||e||b||this.getTickAmount(),D=q(this.userMin,d.parse(h.min)),z=q(this.userMax,d.parse(h.max)),b?(this.linkedParent=b,M=b.getExtremes(),this.min=q(M.min,M.dataMin),this.max=q(M.max,M.dataMax),this.type!==b.type&&Qs(11,!0,i)):(c&&rt(p)&&H(s)&&H(r)&&(r>=p?(L=p,w=0):s<=p&&(T=p,k=0)),this.min=q(D,L,r),this.max=q(z,T,s)),H(this.max)&&H(this.min)&&(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,q(r,this.min))&&Qs(10,!0,i),this.min=Wt(n.log2lin(this.min),16),this.max=Wt(n.log2lin(this.max),16)),this.range&&H(r)&&(this.userMin=this.min=D=Math.max(r,this.minFromRange()||0),this.userMax=z=this.max,this.range=void 0)),ht(this,"foundExtremes"),this.adjustForMinRange(),H(this.min)&&H(this.max)){if(!H(this.userMin)&&H(y)&&y<this.min&&(this.min=D=y),!H(this.userMax)&&H(f)&&f>this.max&&(this.max=z=f),e||this.axisPointRange||this.stacking?.usePercentage||b||(S=this.max-this.min)&&(!rt(D)&&w&&(this.min-=S*w),!rt(z)&&k&&(this.max+=S*k)),!H(this.userMin)&&H(x)&&(this.min=Math.max(this.min,x)),!H(this.userMax)&&H(g)&&(this.max=Math.min(this.max,g)),c&&H(r)&&H(s)){let I=p||0;!rt(D)&&this.min<I&&r>=I?this.min=h.minRange?Math.min(I,this.max-u):I:!rt(z)&&this.max>I&&s<=I&&(this.max=h.minRange?Math.max(I,this.min+u):I)}!i.polar&&this.min>this.max&&(rt(h.min)?this.max=this.min:rt(h.max)&&(this.min=this.max)),S=this.max-this.min}if(this.min!==this.max&&H(this.min)&&H(this.max)?b&&!C&&v===b.options.tickPixelInterval?this.tickInterval=C=b.tickInterval:this.tickInterval=q(C,this.tickAmount?S/Math.max(this.tickAmount-1,1):void 0,e?1:S*v/Math.max(this.len,v)):this.tickInterval=1,a&&!t){let I=this.min!==this.old?.min||this.max!==this.old?.max;this.series.forEach(function(N){N.forceCrop=N.forceCropping?.(),N.processData(I)}),ht(this,"postProcessData",{hasExtremesChanged:I})}this.setAxisTranslation(),ht(this,"initialAxisTranslation"),this.pointRange&&!C&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let W=q(h.minTickInterval,o&&!this.series.some(I=>!I.sorted)?this.closestPointRange:0);!C&&W&&this.tickInterval<W&&(this.tickInterval=W),o||n||C||(this.tickInterval=qo(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){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=[],h;if(this.tickmarkOffset=this.categories&&t.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.single=this.min===this.max&&rt(this.min)&&!this.tickAmount&&(this.min%1==0||t.allowDecimals!==!1),e)n=e.slice();else if(H(this.min)&&H(this.max)){if(!this.ordinal?.positions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))n=[this.min,this.max],Qs(19,!1,this.chart);else if(this.dateTime)n=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal?.positions,this.closestPointRange,!0);else if(this.logarithmic)n=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let c=this.tickInterval,d=c;for(;d<=2*c&&(n=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&n.length>this.tickAmount);)this.tickInterval=qo(this,d*=1.1)}n.length>this.len&&(n=[n[0],n[n.length-1]])[0]===n[1]&&(n.length=1),i&&(this.tickPositions=n,(h=i.apply(this,[this.min,this.max]))&&(n=h))}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&&H(this.min)&&H(this.max)&&(this.single&&n.length<2&&!this.categories&&!this.series.some(c=>c.is("heatmap")&&c.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),e||h||this.adjustTickAmount()),ht(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],r=t[t.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(ht(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&&rt(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 h=d=>{let{horiz:p,options:u}=d;return[p?u.left:u.top,u.width,u.height,u.pane].join(",")},c=h(this);i[this.coll].forEach(function(d){let{series:p}=d;p.length&&p.some(u=>u.visible)&&d!==e&&h(d)===c&&(t=!0,s.push(d))})}if(t&&a){s.forEach(c=>{let d=c.getThresholdAlignment(e);H(d)&&n.push(d)});let h=n.length>1?n.reduce((c,d)=>c+=d,0)/n.length:void 0;s.forEach(c=>{c.thresholdAlignment=h})}return t}getThresholdAlignment(t){if((!H(this.dataMin)||this!==t&&this.series.some(e=>e.isDirty||e.isDirtyData))&&this.getSeriesExtremes(),H(this.threshold)){let e=Js((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;rt(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,h=o?.length,c=q(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(H(n)&&(g=n<.5?Math.ceil(n*(a-1)):Math.floor(n*(a-1)),r.reversed&&(g=a-1-g)),t.hasData()&&H(s)&&H(i)){let f=()=>{t.transA*=(h-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(H(g)&&H(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(h<a){for(;o.length<a;)o.length%2||s===c?x():m();f()}if(rt(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(){let{coll:t,stacking:e}=this,i=!1,s=!1;this.series.forEach(o=>{i=i||o.isDirtyData||o.isDirty,s=s||o.xAxis?.isDirty||!1}),this.setAxisSize();let r=this.len!==this.old?.len;r||i||s||this.isLinked||this.forceRedraw||this.userMin!==this.old?.userMin||this.userMax!==this.old?.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!==this.old?.min||this.max!==this.old?.max)):e&&e.cleanStacks(),i&&delete this.allExtremes,ht(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),ht(this,"setExtremes",r=Ui(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(Ki(q(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),o=this.height=Math.round(Ki(q(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),a=this.top=Math.round(Ki(q(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),n=this.left=Math.round(Ki(q(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=(q(t,0)-90*this.side+720)%360,i={align:"center"};return ht(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=q(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 ht(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),h=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&&(H(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=h(Math.abs(a/Math.sin(bh*m))))+Math.abs(m/360))<p&&(p=x,d=m,c=g)}}else c=h(.75*a);return this.autoRotation=u,this.labelRotation=q(d,H(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&&H(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(!this.opposite&&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(),h=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;Uo(r.rotation)||(c.rotation=r.rotation||0),i.forEach(function(m){let f=s[m];f.movedLabel&&f.replaceMovedLabel();let y=f.label?.textPxLength||0;y>x&&(x=y)}),this.maxLabelLength=x,this.autoRotation?x>h&&x>d.h?c.rotation=this.labelRotation:this.labelRotation=0:n&&(u=h),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?.label,b=o.width,v={};y&&(y.attr(c),f.shortenLabel?f.shortenLabel():u&&!b&&o.whiteSpace!=="nowrap"&&(u<(y.textPxLength||0)||y.element.tagName==="SPAN")?y.css(Ui(v,{width:`${u}px`,lineClamp:g})):!y.styles.width||v.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&&rt(this.min)&&rt(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(qi(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 Ge(this,t)}createGroups(){let{axisParent:t,chart:e,coll:i,options:s}=this,r=e.renderer,o=(a,n,h)=>r.g(a).attr({zIndex:h}).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,h=e.inverted&&!t.isZAxis?[1,0,3,2][r]:r,c=t.hasData(),d=s.title,p=s.labels,u=H(s.crossing),g=e.axisOffset,x=e.clipOffset,m=[-1,1,1,-1][r],f,y=0,b,v=0,k=0,w,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,q(p.reserveSpace,!u&&null,t.labelAlign==="center"||null,t.reserveSpaceDefault)&&a.forEach(function(M){k=Math.max(o[M].getLabelSize(),k)}),t.staggerLines&&(k*=t.staggerLines),t.labelOffset=k*(t.opposite?-1:1)):Zi(o,function(M,C){M.destroy(),delete o[C]}),d?.text&&d.enabled!==!1&&(t.addTitle(f),f&&!u&&d.reserveSpace!==!1&&(t.titleOffset=y=t.axisTitle.getBBox()[i?"height":"width"],v=rt(b=d.offset)?0:q(d.margin,i?5:10))),t.renderLine(),t.offset=m*q(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,w=Math.abs(k)+v,k&&(w-=S,w+=m*(i?q(p.y,t.tickRotCorr.y+m*p.distance):q(p.x,m*p.distance))),t.axisTitleMargin=q(b,w),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,w,a?.length&&M?M[0]+m*t.offset:0);let C=!t.axisLine||s.offset?0:t.axisLine.strokeWidth()/2;x[h]=Math.max(x[h],C)}ht(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,h=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)+h+c,y:e?x+d-(n?this.height:0)+h:g+d};return ht(this,"afterGetTitlePosition",{titlePosition:m}),m}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new Ge(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){let s=this.isLinked,r=this.ticks;(!s||t>=this.min&&t<=this.max||this.grid?.isColumn)&&(r[t]||(r[t]=new Ge(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,h=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,v=mh(o.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[d,p,u].forEach(function(k){Zi(k,function(w){w.isActive=!1})}),H(m)){let k=this.isXAxis?s.yAxis[0]:s.xAxis[0],w=[1,-1,-1,1][this.side];if(k){let S=k.toPixels(m,!0);i.horiz&&(S=k.len-S),i.offset=w*S}}if(i.hasData()||n){let k=i.chart.hasRendered&&i.old&&H(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach(function(w){i.renderMinorTick(w,k)}),h.length&&(h.forEach(function(w,S){i.renderTick(w,S,k)}),f&&(i.min===0||i.single)&&(d[-1]||(d[-1]=new Ge(i,-1,null,!0)),d[-1].render(-1))),x&&h.forEach(function(w,S){e=h[S+1]!==void 0?h[S+1]+f:i.max-f,S%2==0&&w<i.max&&e<=i.max+(s.polar?-f:f)&&(u[w]||(u[w]=new O.PlotLineOrBand(i,{})),t=w+f,u[w].options={from:r?r.lin2log(t):t,to:r?r.lin2log(e):e,color:x,className:"highcharts-alternate-grid"},u[w].render(),u[w].isActive=!0)}),i._addedPlotLB||(i._addedPlotLB=!0,(a.plotLines||[]).concat(a.plotBands||[]).forEach(function(w){i.addPlotBandOrLine(w)}))}[d,p,u].forEach(function(k){let w=[],S=v.duration;Zi(k,function(M,C){M.isActive||(M.render(C,!1,0),M.isActive=!1,w.push(C))}),Ch(function(){let M=w.length;for(;M--;)k[w[M]]&&!k[w[M]].isActive&&(k[w[M]].destroy(),delete k[w[M]])},k!==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?.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,ht(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||Ye.keepProps}destroy(t){let e=this,i=e.plotLinesAndBands,s=this.eventOptions;if(ht(this,"destroy",{keepEvents:t}),t||Sh(e),[e.ticks,e.minorTicks,e.alternateBands].forEach(function(r){kh(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();Zi(e,function(r,o){e.getKeepProps().indexOf(o)===-1&&delete e[o]}),this.eventOptions=s}drawCrosshair(t,e){let i=this.crosshair,s=i?.snap??!0,r=this.chart,o,a,n,h=this.cross,c;if(ht(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross?.e),i&&(rt(e)||!s)!==!1){if(s?rt(e)&&(a=q(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),rt(a)&&(c={value:e&&(this.isXAxis?e.x:q(e.stackY,e.y)),translatedValue:a},r.polar&&Ui(c,{isCrosshair:!0,chartX:t?.chartX,chartY:t?.chartY,point:e}),o=this.getPlotLinePath(c)||null),!rt(o))return void this.hideCrosshair();n=this.categories&&!this.isRadial,h||(this.cross=h=r.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(n?"category ":"thin ")+(i.className||"")).attr({zIndex:q(i.zIndex,2)}).add(),!r.styledMode&&(h.attr({stroke:i.color||(n?lt.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":q(i.width,1)}).css({"pointer-events":"none"}),i.dashStyle&&h.attr({dashstyle:i.dashStyle}))),h.show().attr({d:o}),n&&!i.width&&h.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();ht(this,"afterDrawCrosshair",{e:t,point:e})}hideCrosshair(){this.cross&&this.cross.hide(),ht(this,"afterHideCrosshair")}update(t,e){let i=this.chart;t=qi(this.userOptions,t),this.destroy(!0),this.init(i,t),i.isDirtyBox=!0,q(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);jo(e.axes,this),jo(e[i]||[],this),e.orderItems(i),this.destroy(),e.isDirtyBox=!0,q(t,!0)&&e.redraw()}setTitle(t,e){this.update({title:t},e)}setCategories(t,e){this.update({categories:t},e)}}Ye.keepProps=["coll","extKey","hcEvents","len","names","series","userMax","userMin"];let{addEvent:Ah,getMagnitude:Ph,normalizeTickInterval:Oh,timeUnits:_i}=X;(function(l){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))}l.compose=function(s){return s.keepProps.includes("dateTime")||(s.keepProps.push("dateTime"),s.prototype.getTimeTicks=t,Ah(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],h=_i[n[0]],c=n[1],d;for(d=0;d<a.length&&(h=_i[(n=a[d])[0]],c=n[1],!a[d+1]||!(r<=(h*c[c.length-1]+_i[a[d+1][0]])/2));d++);h===_i.year&&r<5*h&&(c=[1,2,5]);let p=Oh(r/h,c,n[0]==="year"?Math.max(Ph(r/h),1):1);return{unitRange:h,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}}l.Additions=i})(st||(st={}));let Lh=st,{addEvent:Zo,normalizeTickInterval:Eh,pick:Ih}=X;(function(l){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)})}l.compose=function(s){return s.keepProps.includes("logarithmic")||(s.keepProps.push("logarithmic"),Zo(s,"afterSetType",t),Zo(s,"afterInit",e)),s};class i{constructor(r){this.axis=r}getLogTickPositions(r,o,a,n){let h=this.axis,c=h.len,d=h.options,p=[];if(n||(this.minorAutoInterval=void 0),r>=.5)r=Math.round(r),p=h.getLinearTickPositions(r,o,a);else if(r>=.08){let u,g,x,m,f,y,b,v=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=v;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?h.getMinorTickInterval():d.tickInterval,m=d.tickPixelInterval/(n?5:1),f=n?c/h.tickPositions.length:c;r=Eh(r=Ih(x==="auto"?null:x,this.minorAutoInterval,(g-u)*m/(f||1))),p=h.getLinearTickPositions(r,u,g).map(this.log2lin),n||(this.minorAutoInterval=r/5)}return n||(h.tickInterval=r),p}lin2log(r){return Math.pow(10,r)}log2lin(r){return Math.log(r)/Math.LN10}}l.Additions=i})(At||(At={}));let Dh=At,{erase:Bh,extend:Nh,isNumber:Ko}=X;(function(l){let t;function e(h){return this.addPlotBandOrLine(h,"plotBands")}function i(h,c){let d=this.userOptions,p=new t(this,h);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(h),d[c]=u}this.plotLinesAndBands.push(p)}return p}function s(h){return this.addPlotBandOrLine(h,"plotLines")}function r(h,c,d){d=d||this.options;let p=this.getPlotLinePath({value:c,force:!0,acrossPanes:d.acrossPanes}),u=[],g=this.horiz,x=!Ko(this.min)||!Ko(this.max)||h<this.min&&c<this.min||h>this.max&&c>this.max,m=this.getPlotLinePath({value:h,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 v=m[f],k=m[f+1],w=p[f],S=p[f+1];(v[0]==="M"||v[0]==="L")&&(k[0]==="M"||k[0]==="L")&&(w[0]==="M"||w[0]==="L")&&(S[0]==="M"||S[0]==="L")&&(g&&w[1]===v[1]?(w[1]+=y,S[1]+=y):g||w[2]!==v[2]||(w[2]+=y,S[2]+=y),u.push(["M",v[1],v[2]],["L",k[1],k[2]],["L",S[1],S[2]],["L",w[1],w[2]],["Z"])),u.isFlat=b}return u}function o(h){this.removePlotBandOrLine(h)}function a(h){let c=this.plotLinesAndBands,d=this.options,p=this.userOptions;if(c){let u=c.length;for(;u--;)c[u].id===h&&c[u].destroy();[d.plotLines||[],p.plotLines||[],d.plotBands||[],p.plotBands||[]].forEach(function(g){for(u=g.length;u--;)g[u]?.id===h&&Bh(g,g[u])})}}function n(h){this.removePlotBandOrLine(h)}l.compose=function(h,c){let d=c.prototype;return d.addPlotBand||(t=h,Nh(d,{addPlotBand:e,addPlotLine:s,addPlotBandOrLine:i,getPlotBandPath:r,removePlotBand:o,removePlotLine:n,removePlotBandOrLine:a})),c}})(Ke||(Ke={}));let zh=Ke,{addEvent:Rh,arrayMax:_o,arrayMin:Jo,defined:Jt,destroyObjectProperties:Wh,erase:Xh,fireEvent:Hh,merge:Qo,objectEach:Fh,pick:Gh}=X;class Ji{static compose(t,e){return Rh(t,"afterInit",function(){this.labelCollectors.push(()=>{let i=[];for(let s of this.axes)for(let{label:r,options:o}of s.plotLinesAndBands)r&&!o?.label?.allowOverlap&&i.push(r);return i})}),zh.compose(Ji,e)}constructor(t,e){this.axis=t,this.options=e,this.id=e.id}render(){Hh(this,"render");let{axis:t,options:e}=this,{horiz:i,logarithmic:s}=t,{color:r,events:o,zIndex:a=0}=e,{renderer:n,time:h}=t.chart,c={},d=h.parse(e.to),p=h.parse(e.from),u=h.parse(e.value),g=e.borderWidth,x=e.label,{label:m,svgElem:f}=this,y=[],b,v=Jt(p)&&Jt(d),k=Jt(u),w=!f,S={class:"highcharts-plot-"+(v?"band ":"line ")+(e.className||"")},M=v?"bands":"lines";if(!t.chart.styledMode&&(k?(S.stroke=r||"#999999",S["stroke-width"]=Gh(e.width,1),e.dashStyle&&(S.dashstyle=e.dashStyle)):v&&(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)),Jt(u))y=t.getPlotLinePath({value:s?.log2lin(u)??u,lineWidth:f.strokeWidth(),acrossPanes:e.acrossPanes});else{if(!(Jt(p)&&Jt(d)))return;y=t.getPlotBandPath(s?.log2lin(p)??p,s?.log2lin(d)??d,e)}return!this.eventsAdded&&o&&(Fh(o,(C,L)=>{f?.on(L,T=>{o[L].apply(this,[T])})}),this.eventsAdded=!0),(w||!f.d)&&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&&(Jt(x.text)||Jt(x.formatter))&&y?.length&&t.width>0&&t.height>0&&!y.isFlat?(x=Qo({align:i&&v?"center":void 0,x:i?!v&&4:10,verticalAlign:!i&&v?"middle":void 0,y:i?v?16:10:v?6:-4,rotation:i&&!v?90:0,...v?{inside:!0}:{}},x),this.renderLabel(x,y,v,a)):m&&m.hide(),this}renderLabel(t,e,i,s){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(Qo({color:r.chart.options.title?.style?.color,fontSize:"0.8em",textOverflow:i&&!a?"":"ellipsis"},t.style)),n.add());let h=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=Jo(h),p=Jo(c),u=_o(h)-d;n.align(t,!1,{x:d,y:p,width:u,height:_o(c)-p}),n.alignAttr.y-=o.fontMetrics(n).b,(!n.alignValue||n.alignValue==="left"||Jt(a))&&n.css({width:(t.style?.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 Jt(t.formatter)?t.formatter.call(this):t.text}destroy(){Xh(this.axis.plotLinesAndBands,this),delete this.axis,Wh(this)}}let{animObject:Yh}=St,{format:ta}=Gt,{composed:jh,dateFormats:$h,doc:ea,isSafari:Vh}=O,{distribute:Uh}=Bi,{addEvent:qh,clamp:je,css:ia,discardElement:Zh,extend:Kh,fireEvent:tr,getAlignFactor:sa,isArray:_h,isNumber:Jh,isObject:Qh,isString:er,merge:td,pick:$e,pushUnique:ed,splat:ir,syncTimeout:id}=X;class sr{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?.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})}defaultFormatter(t){let e,i=this.points||ir(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(),Zh(this.container)),X.clearTimeout(this.hideTimer)}getAnchor(t,e){let i,{chart:s,pointer:r}=this,o=s.inverted,a=s.plotTop,n=s.plotLeft;if(t=ir(t),t[0].series?.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]}let h={point:t[0],ret:i};return tr(this,"getAnchor",h),h.ret.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-"+$e(t.colorIndex,r.colorIndex),o?.className].filter(er).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 h=!this.label.hasClass("highcharts-label");(!o&&h||o&&!h)&&this.destroy()}if(!this.label){if(this.outside){let h=this.chart,c=h.options.chart.style,d=oi.getRendererType();this.container=a=O.doc.createElement("div"),a.className="highcharts-tooltip-container "+(h.renderTo.className.match(/(highcharts[a-zA-Z0-9-]+)\s?/gm)||""),ia(a,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||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 h=this.label;[h.xSetter,h.ySetter].forEach((c,d)=>{h[d?"ySetter":"xSetter"]=p=>{c.call(h,i.distance),h[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}=ea,{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){let{distance:s,chart:r,outside:o,pointer:a}=this,{inverted:n,plotLeft:h,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=I=>I*y.scaleX,v=I=>I*y.scaleY,k=I=>{let N=I==="x";return[I,N?f:m,N?t:e].concat(o?[N?b(t):v(e),N?y.left-s+b(p+h):y.top-s+v(u+c),0,N?f:m]:[N?t:e,N?p+h:u+c,N?h:c,N?h+r.plotWidth:c+r.plotHeight])},w=k("y"),S=k("x"),M,C=!!i.negative;!d&&r.hoverSeries?.yAxis?.reversed&&(C=!C);let L=!this.followPointer&&$e(i.ttBelow,!d&&!n===C),T=function(I,N,R,it,K,Et,G){let F=o?I==="y"?v(s):b(s):s,tt=(R-it)/2,Z=it<K-s,ot=K+s+it<N,at=K-F-R+tt,et=K+F-tt;if(L&&ot)g[I]=et;else if(!L&&Z)g[I]=at;else if(Z)g[I]=Math.min(G-it,at-x<0?at:at-x);else{if(!ot)return g[I]=0,!1;g[I]=Math.max(Et,et+x+R>N?et:et+x)}},D=function(I,N,R,it,K){if(K<s||K>N-s)return!1;K<R/2?g[I]=1:K>N-it/2?g[I]=N-it-2:g[I]=K-R/2},z=function(I){[w,S]=[S,w],M=I},W=()=>{T.apply(0,w)!==!1?D.apply(0,S)!==!1||M||(z(!0),W()):M?g.x=g.y=0:(z(!0),W())};return(n&&!d||this.len>1)&&z(),W(),g}getFixedPosition(t,e,i){let s=i.series,{chart:r,options:o,split:a}=this,n=o.position,h=n.relativeTo,c=o.shared||s?.yAxis?.isRadial&&(h==="pane"||!h)?"plotBox":h,d=c==="chart"?r.renderer:r[c]||r.getClipBox(s,!0);return{x:d.x+(d.width-t)*sa(n.align)+n.x,y:d.y+(d.height-e)*sa(n.verticalAlign)+(!a&&n.y||0)}}hide(t){let e=this;X.clearTimeout(this.hideTimer),t=$e(t,this.options.hideDelay),this.isHidden||(this.hideTimer=id(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=$e(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=Yh(!r&&!this.isHidden&&!o.fixed&&o.animation),n=r||(this.len||0)>1,h={x:t,y:e};n?h.anchorX=h.anchorY=NaN:(h.anchorX=i,h.anchorY=s),a.step=()=>this.drawTracker(),this.getLabel().animate(h,a)}refresh(t,e){let{chart:i,options:s,pointer:r,shared:o}=this,a=ir(t),n=a[0],h=s.format,c=s.formatter||this.defaultFormatter,d=i.styledMode,p=this.allowShared;if(!s.enabled||!n.series)return;X.clearTimeout(this.hideTimer),this.allowShared=!(!_h(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=er(h)?ta(h,n,i):c.call(n,this);n.points=void 0;let f=n.series;if(this.distance=$e(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(v=>r.isDirectTouch||v.series.shouldShowTooltip(y,b))))return void this.hide();{let v=this.getLabel(p&&this.tt||{});(!s.style.width||d)&&v.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),v.attr({class:this.getClassName(n),text:m&&m.join?m.join(""):m}),this.outside&&v.attr({x:je(v.x||0,0,this.getPlayingField().width-(v.width||0)-1)}),d||v.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})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}tr(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:r,chartHeight:o,plotHeight:a,plotLeft:n,plotTop:h,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:v=0}=s.scrollablePlotArea?.scrollingContainer||{},k=i.outside&&typeof d!="number"?ea.documentElement.getBoundingClientRect():{left:b,right:b+r},w=i.getLabel(),S=this.renderer||s.renderer,M=!!s.xAxis[0]?.opposite,{left:C,top:L}=y.getChartPosition(),T=f||x,D=h+v,z=0,W=a-c,I=function(G,F,tt,Z=[0,0],ot=!0){let at,et;if(tt.isHeader)et=M?0:W,at=je(Z[0]-G/2,k.left,k.right-G-(i.outside?C:0));else if(x&&tt){let pt=i.getFixedPosition(G,F,tt);at=pt.x,et=pt.y-D}else et=Z[1]-D,at=je(at=ot?Z[0]-G-u:Z[0]+u,ot?at:k.left,k.right);return{x:at,y:et}};er(t)&&(t=[!1,t]);let N=t.slice(0,e.length+1).reduce(function(G,F,tt){if(F!==!1&&F!==""){let Z=e[tt-1]||{isHeader:!0,plotX:e[0].plotX,plotY:a,series:{}},ot=Z.isHeader,at=ot?i:Z.series,et=at.tt=(function(Ut,Dt,ee){let ye=Ut,{isHeader:Ie,series:Mi}=Dt,qt=Mi.tooltipOptions||g;if(!ye){let Ze={padding:qt.padding,r:qt.borderRadius};p||(Ze.fill=qt.backgroundColor,Ze["stroke-width"]=qt.borderWidth??(x&&!Ie?0:1)),ye=S.label("",0,0,qt[Ie?"headerShape":"shape"]||(x&&!Ie?"rect":"callout"),void 0,void 0,qt.useHTML).addClass(i.getClassName(Dt,!0,Ie)).attr(Ze).add(w)}return ye.isActive=!0,ye.attr({text:ee}),p||ye.css(qt.style).attr({stroke:qt.borderColor||Dt.color||Mi.color||"#333333"}),ye})(at.tt,Z,F.toString()),pt=et.getBBox(),It=pt.width+et.strokeWidth();ot&&(z=pt.height,W+=z,M&&(D-=z));let{anchorX:zt,anchorY:xe}=(function(Ut){let Dt,ee,{isHeader:ye,plotX:Ie=0,plotY:Mi=0,series:qt}=Ut;if(ye)Dt=Math.max(n+Ie,n),ee=h+a/2;else{let{xAxis:Ze,yAxis:vn}=qt;Dt=Ze.pos+je(Ie,-u,Ze.len+u),qt.shouldShowTooltip(0,vn.pos-h+Mi,{ignoreX:!0})&&(ee=vn.pos+Mi)}return{anchorX:Dt=je(Dt,k.left-u,k.right+u),anchorY:ee}})(Z);if(typeof xe=="number"){let Ut=pt.height+1,Dt=(f||I).call(i,It,Ut,Z,[zt,xe]);G.push({align:T?0:void 0,anchorX:zt,anchorY:xe,boxWidth:It,point:Z,rank:$e(Dt.rank,+!!ot),size:Ut,target:Dt.y,tt:et,x:Dt.x})}else et.isActive=!1}return G},[]);!T&&N.some(G=>{let{outside:F}=i,tt=(F?C:0)+G.anchorX;return tt<k.left&&tt+G.boxWidth<k.right||tt<C-k.left+G.boxWidth&&k.right-tt>tt})&&(N=N.map(G=>{let{x:F,y:tt}=I.call(this,G.boxWidth,G.size,G.point,[G.anchorX,G.anchorY],!1);return Kh(G,{target:tt,x:F})})),i.cleanSplit(),Uh(N,W);let R={left:C,right:C};N.forEach(function(G){let{x:F,boxWidth:tt,isHeader:Z}=G;!Z&&(i.outside&&C+F<R.left&&(R.left=C+F),!Z&&i.outside&&R.left+tt>R.right&&(R.right=C+F))}),N.forEach(function(G){let{x:F,anchorX:tt,anchorY:Z,pos:ot,point:{isHeader:at}}=G,et={visibility:ot===void 0?"hidden":"inherit",x:F,y:(ot||0)+D+(x&&m.y||0),anchorX:tt,anchorY:Z};if(i.outside&&F<tt){let pt=C-R.left;pt>0&&(at||(et.x=F+pt,et.anchorX=tt+pt),at&&(et.x=(R.right-R.left)/2,et.anchorX=tt+pt))}G.tt.attr(et)});let{container:it,outside:K,renderer:Et}=i;if(K&&it&&Et){let{width:G,height:F,x:tt,y:Z}=w.getBBox();Et.setSize(G+tt,F+Z,!1),it.style.left=R.left+"px",it.style.top=L+"px"}Vh&&w.attr({opacity:w.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?.dateTime,a={isFooter:e,point:t},n=s.xDateFormat||"",h=s[e?"footerFormat":"headerFormat"];return tr(this,"headerFormatter",a,function(c){if(o&&!n&&Jh(t.key)&&(n=o.getXDateFormat(t.key,s.dateTimeLabelFormats)),o&&n){if(Qh(n)){let d=n;$h[0]=p=>i.chart.time.dateFormat(d,p),n="%0"}(t.tooltipDateKeys||["key"]).forEach(d=>{h=h.replace(RegExp("point\\."+d+"([ \\)}])"),`(point.${d}:${n})$1`)})}i.chart.styledMode&&(h=this.styledModeFormat(h)),c.text=ta(h,t,this.chart)}),a.text||""}update(t){this.destroy(),this.init(this.chart,td(!0,this.options,t))}updatePosition(t){let{chart:e,container:i,distance:s,options:r,pointer:o,renderer:a}=this,{height:n=0,width:h=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,h,n,t),f=O.doc,y=(t.plotX||0)+e.plotLeft,b=(t.plotY||0)+e.plotTop,v;if(a&&i){if(d||c){let{scrollLeft:k=0,scrollTop:w=0}=e.scrollablePlotArea?.scrollingContainer||{};m.x+=k+p-s,m.y+=w+u-s}v=(r.borderWidth||0)+2*s+2,a.setSize(je(h+v,0,f.documentElement.clientWidth)-1,n+v,!1),(g!==1||x!==1)&&(ia(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(l){l.compose=function(t){ed(jh,"Core.Tooltip")&&qh(t,"afterInit",function(){let e=this.chart;e.options.tooltip&&(e.tooltip=new l(e,e.options.tooltip,this))})}})(sr||(sr={}));let ra=sr,{animObject:sd}=St,{defaultOptions:rd}=Ft,{format:od}=Gt,{addEvent:ad,crisp:nd,erase:ld,extend:Qi,fireEvent:rr,getNestedProperty:hd,isArray:dd,isFunction:cd,isNumber:le,isObject:ts,merge:oa,pick:he,syncTimeout:pd,removeEvent:aa,uniqueKey:ud}=X;class ci{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(Qi({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 Qi(this,t=ci.prototype.optionsToObject.call(this,t)),this.options=this.options?Qi(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=ci.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():le(t.x)&&i.options.relativeXValue?this.x=i.autoIncrement(t.x):typeof this.x=="string"&&(e??(e=i.chart.time.parse(this.x)),le(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=sd(t.series.chart.renderer.globalAnimation),a=()=>{for(let n in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(aa(t),t.destroyElements()),t)delete t[n]};t.legendItem&&i.legend.destroyItem(t),r&&(t.setState(),ld(r,t),r.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s?.enabled?(this.animateBeforeDestroy(),pd(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?.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)}),rr(s,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(this.colorIndex!==void 0?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone?.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){if(t)return t.indexOf("custom.")===0?hd(t,this.options):this[t]}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?.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=ud()),this.resolveColor(),this.dataLabelOnNull??(this.dataLabelOnNull=t.options.nullInteraction),t.chart.pointCount++,rr(this,"afterInit")}isValid(){return(le(this.x)||this.x instanceof Date)&&le(this.y)}optionsToObject(t){let e=this.series,i=e.options.keys,s=i||e.pointArrayMap||["y"],r=s.length,o={},a,n=0,h=0;if(le(t)||t===null)o[s[0]]=t;else if(dd(t))for(!i&&t.length>r&&((a=typeof t[0])=="string"?e.xAxis?.dateTime?o.x=e.chart.time.parse(t[0]):o.name=t[0]:a==="number"&&(o.x=t[0]),n++);h<r;)i&&t[n]===void 0||(s[h].indexOf(".")>0?ci.prototype.setNestedProperty(o,t[n],s[h]):o[s[h]]=t[n]),n++,h++;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,h=0;if(le(i)&&le(e))return t&&(n=o?o.pos:r.plotLeft,h=a?a.pos:r.plotTop),r.inverted&&o&&a?[a.len-e+h,o.len-i+n]:[i+n,e+h]}}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=he(this.options.colorIndex,a),this.color=he(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:ts(s[r],!0)?s[r]:{},s[r]},t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let{chart:e,pointArrayMap:i=["y"],tooltipOptions:s}=this.series,{valueDecimals:r="",valuePrefix:o="",valueSuffix:a=""}=s;return e.styledMode&&(t=e.tooltip?.styledModeFormat(t)||t),i.forEach(n=>{n="{point."+n,(o||a)&&(t=t.replace(RegExp(n+"}","g"),o+n+"}"+a)),t=t.replace(RegExp(n+"}","g"),n+":,."+r+"f}")}),od(t,this,e)}update(t,e,i,s){let r,o=this,a=o.series,n=o.graphic,h=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),ts(t,!0)&&(n?.element&&t&&t.marker&&t.marker.symbol!==void 0&&(o.graphic=n.destroy()),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]=ts(c.data[r],!0)||ts(t,!0)?o.options:he(t,c.data[r]),a.isDirty=a.isDirtyData=!0,!a.fixedBox&&a.hasCartesianSeries&&(h.isDirtyBox=!0),c.legendType==="point"&&(h.isDirtyLegend=!0),e&&h.redraw(i)}e=he(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=he(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){let e=oa(this.series.options.point,this.options),i=e.events?.[t];cd(i)&&(!this.hcEvents?.[t]||this.hcEvents?.[t]?.map(s=>s.fn).indexOf(i)===-1)?(this.importedUserEvent?.(),this.importedUserEvent=ad(this,t,i),this.hcEvents&&(this.hcEvents[t].userEvent=!0)):this.importedUserEvent&&!i&&this.hcEvents?.[t]&&this.hcEvents?.[t].userEvent&&(aa(this,t),delete this.hcEvents[t],Object.keys(this.hcEvents)||delete this.importedUserEvent)}setState(t,e){let i=this.series,s=this.state,r=i.options.states[t||"normal"]||{},o=rd.plotOptions[i.type].marker&&i.options.marker,a=o&&o.enabled===!1,n=o?.states?.[t||"normal"]||{},h=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&&(h||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=he(d.options.chart.animation,r.animation);let w=x.opacity;i.options.inactiveOtherPoints&&le(w)&&(this.dataLabels||[]).forEach(function(S){S&&!S.hasClass("highcharts-data-label-hidden")&&(S.animate({opacity:w},m),S.connector&&S.connector.animate({opacity:w},m))}),this.graphic.animate(x,m)}g&&this.graphic.animate(g,he(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,oa(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,v=this.graphic||f,k=v?.visibility||"inherit";b?.size&&v&&k!=="hidden"&&!this.isCluster?(u||(i.halo=u=d.renderer.path().add(v.parentGroup)),u.show()[e?"animate":"attr"]({d:this.haloPath(b.size)}),u.attr({class:"highcharts-halo highcharts-color-"+he(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:k,zIndex:-1}),u.point=this,d.styledMode||u.attr(Qi({fill:this.color||i.color,"fill-opacity":b.opacity},nt.filterUserAttributes(b.attributes||{})))):u?.point?.haloPath&&!u.point.destroyed&&u.animate({d:u.point.haloPath(0)},null,u.hide),rr(this,"afterSetState",{state:t})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(nd(e[0],1)-t,e[1]-t,2*t,2*t):[]}}let de=ci,{parse:gd}=lt,{charts:or,composed:fd,isTouchDevice:md}=O,{addEvent:Yt,attr:xd,css:ar,extend:nr,find:na,fireEvent:ce,isNumber:es,isObject:is,objectEach:yd,offset:bd,pick:Qt,pushUnique:vd,splat:la}=X;class vt{applyInactiveState(t=[]){let e=[];for(let i of(t.forEach(s=>{let r=s.series;e.push(r),r.linkedParent&&e.push(r.linkedParent),r.linkedSeries&&e.push.apply(e,r.linkedSeries),r.navigatorSeries&&e.push(r.navigatorSeries),r.boosted&&r.markerGroup&&e.push.apply(e,this.chart.series.filter(o=>o.markerGroup===r.markerGroup))}),this.chart.series)){let s=i.options;s.states?.inactive?.enabled!==!1&&(e.indexOf(i)===-1?i.setState("inactive",!0):s.inactiveOtherPoints&&i.setAllPointsToState("inactive"))}}destroy(){let t=this;this.eventsToUnbind.forEach(e=>e()),this.eventsToUnbind=[],!O.chartCount&&(vt.unbindDocumentMouseUp.forEach(e=>e.unbind()),vt.unbindDocumentMouseUp.length=0,vt.unbindDocumentTouchEnd&&(vt.unbindDocumentTouchEnd=vt.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),yd(t,function(e,i){t[i]=void 0})}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return ce(this,"getSelectionMarkerAttrs",i,s=>{let r,{chart:o,zoomHor:a,zoomVert:n}=this,{mouseDownX:h=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-h)),d.x=(r>0?0:r)+h),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,h=e.plotTop,c=e.plotWidth,d=e.plotHeight,p=is(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<h?x=h:x>h+d&&(x=h+d),this.hasDragged=Math.sqrt(Math.pow(i-g,2)+Math.pow(s-x,2)),this.hasDragged>10)){m=e.isInsidePlot(i-n,s-h,{visiblePlotOnly:!0});let{shapeType:y,attrs:b}=this.getSelectionMarkerAttrs(g,x);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||gd("#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 ce(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})}es(i.index)&&(this.selectionMarker=s.destroy())}i&&es(i.index)&&(ar(i.container,{cursor:i._cursor}),i.cancelClick=this.hasDragged>10,i.mouseIsDown=!1,this.hasDragged=0,this.pinchDown=[],this.hasPinchMoved=!1)}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);is(a,!0)&&a.series&&(!is(s,!0)||(function(n,h){let c=n.distX-h.distX,d=n.dist-h.dist,p=h.series.group?.zIndex-n.series.group?.zIndex;return c!==0&&e?c:d!==0?d:p!==0?p:n.series.index>h.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&&es(r.x)&&es(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?.x&&r.y)return{chartX:r.x,chartY:r.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=bd(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)&&Qt(u.options.enableMouseTracking,!0)},h=e,c,d={chartX:o?o.chartX:void 0,chartY:o?o.chartY:void 0,shared:r};ce(this,"beforeGetHoverData",d),c=h&&!h.stickyTracking?[h]:i.filter(u=>u.stickyTracking&&(d.filter||n)(u));let p=s&&t||!o?t:this.findNearestKDPoint(c,r,o);return h=p?.series,p&&(r&&!h.noSharedTooltip?(c=i.filter(function(u){return d.filter?d.filter(u):n(u)&&!u.noSharedTooltip})).forEach(function(u){let g=u.options?.nullInteraction,x=na(u.points,function(m){return m.x===p.x&&(!m.isNull||!!g)});is(x)&&(u.boosted&&u.boost&&(x=u.boost.getPoint(x)),a.push(x))}):a.push(p)),ce(this,"afterGetHoverData",d={hoverPoint:p}),{hoverPoint:d.hoverPoint,hoverSeries:h,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=xd(i,"class")){if(s.indexOf(e)!==-1)return!0;if(s.indexOf("highcharts-container")!==-1)return!1}i=i.parentElement}}constructor(t,e){this.hasDragged=0,this.pointerCaptureEventsToUnbind=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!!e.chart.events?.click,this.pinchDown=[],this.setDOMEvents(),ce(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):Qt(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let r=s.pageX-e.left,o=s.pageY-e.top;return nr(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")?(ce(i.series,"click",nr(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(nr(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-r,s.chartY-o,{visiblePlotOnly:!0})&&ce(e,"click",s)))}onContainerMouseDown(t){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&&t.preventDefault?.(),this.dragStart(t))}onContainerMouseLeave(t){let{pointer:e}=or[Qt(vt.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.exporting?.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&!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?.shouldStickOnContact(r)||r.target!==e.container.ownerDocument&&this.inClass(r.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){t?.touches&&this.hasPinchMoved&&t?.preventDefault?.(),or[Qt(vt.hoverChartIndex,-1)]?.pointer?.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),h=i.tooltip,c=a===1&&Qt(h?.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&&(ce(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?.shared?o:r;t&&n&&la(n).forEach(function(h){h.series.isCartesian&&h.plotX===void 0&&(t=!1)}),t?a&&n&&la(n).length&&(a.refresh(n),a.shared&&o?o.forEach(function(h){h.setState(h.state,!0),h.series.isCartesian&&(h.series.xAxis.crosshair&&h.series.xAxis.drawCrosshair(null,h),h.series.yAxis.crosshair&&h.series.yAxis.drawCrosshair(null,h))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(h){h.crosshair&&r.series[h.coll]===h&&h.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&o.forEach(function(h){h.setState()}),s&&s.onMouseOut(),a&&a.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(h){h.hideCrosshair()}),i.hoverPoints=i.hoverPoint=void 0)}runPointActions(t,e,i){let s=this.chart,r=s.series,o=s.tooltip?.options.enabled?s.tooltip:void 0,a=!!o&&o.shared,n=e||s.hoverPoint,h=n?.series||s.hoverSeries,c=(!t||t.type!=="touchmove")&&(!!e||h?.directTouch&&this.isDirectTouch),d=this.getHoverData(n,h,r,c,a,t);n=d.hoverPoint,h=d.hoverSeries;let p=d.hoverPoints,u=h?.tooltipOptions.followPointer&&!h.tooltipOptions.split,g=a&&h&&!h.noSharedTooltip;if(n&&(i||n!==s.hoverPoint||o?.isHidden)){if((s.hoverPoints||[]).forEach(function(x){p.indexOf(x)===-1&&x.setState()}),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(p),(p||[]).forEach(function(x){x.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 x=o.getAnchor([{}],t);s.isInsidePlot(x[0],x[1],{visiblePlotOnly:!0})&&o.updatePosition({plotX:x[0],plotY:x[1]})}this.unDocMouseMove||(this.unDocMouseMove=Yt(s.container.ownerDocument,"mousemove",x=>or[vt.hoverChartIndex??-1]?.pointer?.onDocumentMouseMove(x)),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach(function(x){let m,f=x.crosshair?.snap??!0;f&&((m=s.hoverPoint)&&m.series[x.coll]===x||(m=na(p,y=>y.series?.[x.coll]===x))),m||!f?x.drawCrosshair(t,m):x.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(Yt(t,"mouseenter",this.onContainerMouseEnter.bind(this)),Yt(t,"mouseleave",this.onContainerMouseLeave.bind(this))),vt.unbindDocumentMouseUp.some(s=>s.doc===e)||vt.unbindDocumentMouseUp.push({doc:e,unbind:Yt(e,"mouseup",this.onDocumentMouseUp.bind(this))});let i=this.chart.renderTo.parentElement;for(;i&&i.tagName!=="BODY";)this.eventsToUnbind.push(Yt(i,"scroll",()=>{delete this.chartPosition})),i=i.parentElement;this.eventsToUnbind.push(Yt(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1}),Yt(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),vt.unbindDocumentTouchEnd||(vt.unbindDocumentTouchEnd=Yt(e,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})),this.setPointerCapture(),Yt(this.chart,"redraw",this.setPointerCapture.bind(this))}setPointerCapture(){if(!md)return;let t=this.pointerCaptureEventsToUnbind,e=this.chart,i=e.container,s=Qt(e.options.tooltip?.followTouchMove,!0)&&e.series.some(r=>r.options.findNearestPointBy.indexOf("y")>-1);!this.hasPointerCapture&&s?(t.push(Yt(i,"pointerdown",r=>{r.target?.hasPointerCapture(r.pointerId)&&r.target?.releasePointerCapture(r.pointerId)}),Yt(i,"pointermove",r=>{e.pointer?.getPointFromEvent(r)?.onMouseOver(r)})),e.styledMode||ar(i,{"touch-action":"none"}),i.className+=" highcharts-no-touch-action",this.hasPointerCapture=!0):this.hasPointerCapture&&!s&&(t.forEach(r=>r()),t.length=0,e.styledMode||ar(i,{"touch-action":Qt(e.options.chart.style?.["touch-action"],"manipulation")}),i.className=i.className.replace(" highcharts-no-touch-action",""),this.hasPointerCapture=!1)}setHoverChartIndex(t){let e=this.chart,i=O.charts[Qt(vt.hoverChartIndex,-1)];if(i&&i!==e){let s={relatedTarget:e.container};t&&!t?.relatedTarget&&Object.assign({},t,s),i.pointer?.onContainerMouseLeave(t||s)}i?.mouseIsDown||(vt.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.exporting?.openMenu?(e&&this.runPointActions(t),t.type==="touchmove"&&(this.hasPinchMoved=i=!!r[0]&&Math.pow(r[0].chartX-t.chartX,2)+Math.pow(r[0].chartY-t.chartY,2)>=16),Qt(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=Qt(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}}vt.unbindDocumentMouseUp=[],(function(l){l.compose=function(t){vd(fd,"Core.Pointer")&&Yt(t,"beforeRender",function(){this.pointer=new l(this,this.options)})}})(vt||(vt={}));let ha=vt;(function(l){l.setLength=function(t,e,i){return Array.isArray(t)?(t.length=e,t):t[i?"subarray":"slice"](0,e)},l.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}}})(_e||(_e={}));let{setLength:kd,splice:da}=_e,{fireEvent:lr,objectEach:pi,uniqueKey:ui}=X,ss=class{constructor(l={}){this.autoId=!l.id,this.columns={},this.id=l.id||ui(),this.modified=this,this.rowCount=0,this.versionTag=ui();let t=0;pi(l.columns||{},(e,i)=>{this.columns[i]=e.slice(),t=Math.max(t,e.length)}),this.applyRowCount(t)}applyRowCount(l){this.rowCount=l,pi(this.columns,(t,e)=>{t.length!==l&&(this.columns[e]=kd(t,l))})}deleteRows(l,t=1){if(t>0&&l<this.rowCount){let e=0;pi(this.columns,(i,s)=>{this.columns[s]=da(i,l,t).array,e=i.length}),this.rowCount=e}lr(this,"afterDeleteRows",{rowIndex:l,rowCount:t}),this.versionTag=ui()}getColumn(l,t){return this.columns[l]}getColumns(l,t){return(l||Object.keys(this.columns)).reduce((e,i)=>(e[i]=this.columns[i],e),{})}getRow(l,t){return(t||Object.keys(this.columns)).map(e=>this.columns[e]?.[l])}setColumn(l,t=[],e=0,i){this.setColumns({[l]:t},e,i)}setColumns(l,t,e){let i=this.rowCount;pi(l,(s,r)=>{this.columns[r]=s.slice(),i=s.length}),this.applyRowCount(i),e?.silent||(lr(this,"afterSetColumns"),this.versionTag=ui())}setRow(l,t=this.rowCount,e,i){let{columns:s}=this,r=e?this.rowCount+1:t+1;pi(l,(o,a)=>{let n=s[a]||i?.addColumns!==!1&&Array(r);n&&(e?n=da(n,t,0,!0,[o]).array:n[t]=o,s[a]=n)}),r>this.rowCount&&this.applyRowCount(r),i?.silent||(lr(this,"afterSetRows"),this.versionTag=ui())}},{extend:wd,merge:Md,pick:ca}=X;(function(l){function t(e,i,s){let r=this.legendItem=this.legendItem||{},{chart:o,options:a}=this,{baseline:n=0,symbolWidth:h,symbolHeight:c}=e,d=this.symbol||"circle",p=c/2,u=o.renderer,g=r.group,x=n-Math.round((e.fontMetrics?.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(),h)/2),h){let v=[["M",b,x],["L",h-b,x]];r.line.attr({d:v}),r.area?.attr({d:[...v,["L",h-b,n],["L",b,n]]})}if(y&&y.enabled!==!1&&h){let v=Math.min(ca(y.radius,p),p);d.indexOf("url")===0&&(y=Md(y,{width:c,height:c}),v=0),r.symbol=f=u.symbol(d,h/2-v,x-v,2*v,2*v,wd({context:"legend"},y)).addClass("highcharts-point").add(g),f.isMarker=!0}}l.areaMarker=function(e,i){t.call(this,e,i,!0)},l.lineMarker=t,l.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,ca(e.options.symbolRadius,o/2)).addClass("highcharts-point").attr({zIndex:3}).add(s.group)}})(be||(be={}));let pa=be,{defaultOptions:ua}=Ft,{extend:Sd,extendClass:Td,merge:Cd}=X;(function(l){function t(e,i){let s=ua.plotOptions||{},r=i.defaultOptions,o=i.prototype;return o.type=e,o.pointClass||(o.pointClass=de),!l.seriesTypes[e]&&(r&&(s[e]=r),l.seriesTypes[e]=i,!0)}l.seriesTypes=O.seriesTypes,l.registerSeriesType=t,l.seriesType=function(e,i,s,r,o){let a=ua.plotOptions||{};if(i=i||"",a[e]=Cd(a[i],s),delete l.seriesTypes[e],t(e,Td(l.seriesTypes[i]||Nt,r)),l.seriesTypes[e].prototype.type=e,o){class n extends de{}Sd(n.prototype,o),l.seriesTypes[e].prototype.pointClass=n}return l.seriesTypes[e]}})(De||(De={}));let gt=De,{animObject:ga,setAnimation:Ad}=St,{defaultOptions:rs}=Ft,{registerEventOptions:Pd}=ji,{svg:Od,win:Ld}=O,{seriesTypes:Ve}=gt,{format:Ed}=Gt,{arrayMax:hr,arrayMin:fa,clamp:ma,correctFloat:xa,crisp:Id,defined:xt,destroyObjectProperties:Dd,diffObjects:Bd,erase:ya,error:os,extend:Ue,find:Nd,fireEvent:dt,getClosestDistance:zd,getNestedProperty:ba,insertItem:va,isArray:ka,isNumber:kt,isString:Rd,merge:gi,objectEach:dr,pick:ct,removeEvent:Wd,syncTimeout:wa}=X;class jt{constructor(){this.zoneAxis="y"}init(t,e){let i;dt(this,"init",{options:e}),this.dataTable??(this.dataTable=new ss);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(),Ue(this,{name:r.name,state:"",visible:o,selected:r.selected===!0}),Pd(this,r),(r.events?.click||r.point?.events?.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?._i,-1)+1,this.opacity=this.options.opacity,t.orderItems("series",va(this,s)),r.dataSorting?.enabled?this.setDataSortingOptions():this.points||this.data||this.setData(r.data,!1),dt(this,"afterInit")}is(t){return Ve[t]&&this instanceof Ve[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;dt(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)&&(va(e,o.series),e[r]=o,o.isDirty=!0)}),e[r]||e.optionalAxis===r||os(18,!0,s)})}),dt(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&&kt(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&&kt(t)?a+e:(this.xIncrement=a+e,a)}setDataSortingOptions(){let t=this.options;Ue(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),xt(t.pointRange)||(t.pointRange=1)}setOptions(t){let e,i=this.chart,s=i.options.plotOptions,r=i.userOptions||{},o=gi(t),a=i.styledMode,n={plotOptions:s,userOptions:o};dt(this,"setOptions",n);let h=n.plotOptions[this.type],c=r.plotOptions||{},d=c.series||{},p=rs.plotOptions[this.type]||{},u=c[this.type]||{};h.dataLabels=this.mergeArrays(p.dataLabels,h.dataLabels),this.userOptions=n.userOptions;let g=gi(h,s.series,u,o);this.tooltipOptions=gi(rs.tooltip,rs.plotOptions.series?.tooltip,p?.tooltip,i.userOptions.tooltip,c.series?.tooltip,u.tooltip,o.tooltip),this.stickyTracking=ct(o.stickyTracking,u.stickyTracking,d.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||g.stickyTracking),h.marker===null&&delete g.marker,this.zoneAxis=g.zoneAxis||"y";let x=this.zones=(g.zones||[]).map(m=>({...m}));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&&xt(x[x.length-1].value)&&x.push(a?{}:{color:this.color,fillColor:this.fillColor}),dt(this,"afterSetOptions",{options:g}),g}getName(){return this.options.name??Ed(this.chart.options.lang.seriesName,this,this.chart)}getCyclic(t,e,i){let s,r,o=this.chart,a=`${t}Index`,n=`${t}Counter`,h=i?.length||o.options.chart.colorCount;!e&&(xt(r=ct(t==="color"?this.options.colorIndex:void 0,this[a]))?s=r:(o.series.length||(o[n]=0),s=o[n]%h,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||rs.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){let i,s,r,{id:o,x:a}=t,n=this.points,h=this.options.dataSorting,c=this.cropStart||0;if(o){let d=this.chart.get(o);d instanceof de&&(i=d)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let d=p=>!p.touched&&p.index===t.index;if(h?.matchByName?d=p=>!p.touched&&p.name===t.name:this.options.relativeXValue&&(d=p=>!p.touched&&p.options.x===t.x),!(i=Nd(n,d)))return}return i&&(r=i?.index)!==void 0&&(s=!0),r===void 0&&kt(a)&&(r=this.getColumn("x").indexOf(a,e)),r!==-1&&r!==void 0&&this.cropped&&(r=r>=c?r-c:r),!s&&kt(r)&&n[r]?.touched&&(r=void 0),r}updateData(t,e){let{options:i,requireSorting:s}=this,r=i.dataSorting,o=this.points,a=[],n=t.length===o.length,h,c,d,p,u=!0;if(this.xIncrement=null,t.forEach((x,m)=>{let f,y=xt(x)&&this.pointClass.prototype.optionsToObject.call({series:this},x)||{},{id:b,x:v}=y;b||kt(v)?((f=this.findPointIndex(y,p))===-1||f===void 0?a.push(x):o[f]&&x!==i.data?.[f]?(o[f].update(x,!1,void 0,!1),o[f].touched=!0,s&&(p=f+1)):o[f]&&(o[f].touched=!0),(!n||m!==f||r?.enabled||this.hasDerivedData)&&(h=!0)):a.push(x)},this),h)for(c=o.length;c--;)(d=o[c])&&!d.touched&&d.remove?.(!1,e);else n&&!r?.enabled?(t.forEach((x,m)=>{x===o[m].y||o[m].destroyed||o[m].update(x,!1,void 0,!1)}),a.length=0):u=!1;if(o.forEach(x=>{x&&(x.touched=!1)}),!u)return!1;a.forEach(x=>{this.addPoint(x,!1,void 0,void 0,!1)},this);let g=this.getColumn("x");return this.xIncrement===null&&g.length&&(this.xIncrement=hr(g),this.autoIncrement()),!0}dataColumnKeys(){return["x",...this.pointArrayMap||["y"]]}setData(t,e=!0,i,s){let r=this.points,o=r?.length||0,a=this.options,n=this.chart,h=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,v=1,k;n.options.chart.allowMutatingData||(a.data&&delete this.options.data,this.userOptions.data&&delete this.userOptions.data,k=gi(!0,t));let w=(t=k||t||[]).length;if(h?.enabled&&(t=this.sortData(t)),n.options.chart.allowMutatingData&&s!==!1&&w&&o&&!this.cropped&&!this.hasGroupedData&&this.visible&&!this.boosted&&(y=this.updateData(t,i)),!y){this.xIncrement=null,this.colorCounter=0;let S=d&&!a.relativeXValue&&w>d;if(S){let M=this.getFirstValidPoint(t),C=this.getFirstValidPoint(t,w-1,-1),L=T=>!!(ka(T)&&(m||kt(T[0])));if(kt(M)&&kt(C)){let T=[],D=[];for(let z of t)T.push(this.autoIncrement()),D.push(z);p.setColumns({x:T,[g]:D})}else if(L(M)&&L(C))if(x){let T=+(M.length===x),D=Array(u.length).fill(0).map(()=>[]);for(let z of t){T&&D[0].push(this.autoIncrement());for(let W=T;W<=x;W++)D[W]?.push(z[W-T])}p.setColumns(u.reduce((z,W,I)=>(z[W]=D[I],z),{}))}else{m&&(b=m.indexOf("x"),v=m.indexOf("y"),b=b>=0?b:0,v=v>=0?v:1),M.length===1&&(v=0);let T=[],D=[];if(b===v)for(let z of t)T.push(this.autoIncrement()),D.push(z[v]);else for(let z of t)T.push(z[b]),D.push(z[v]);p.setColumns({x:T,[g]:D})}else S=!1}if(!S){let M=u.reduce((C,L)=>(C[L]=[],C),{});for(f=0;f<w;f++){let C=this.pointClass.prototype.applyOptions.apply({series:this},[t[f]]);for(let L of u)M[L][f]=C[L]}p.setColumns(M)}for(Rd(this.getColumn("y")[0])&&os(14,!0,n),this.data=[],this.options.data=this.userOptions.data=t,f=o;f--;)r[f]?.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 xt(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=ba(i,r),n=ba(i,o);return n<a?-1:+(n>a)}).forEach(function(r,o){r.x=o},this),e.linkedSeries&&e.linkedSeries.forEach(function(r){let o=r.options,a=o.data;!o.dataSorting?.enabled&&a&&(a.forEach(function(n,h){a[h]=s(r,n),t[h]&&(a[h].x=t[h].x,a[h].index=h)}),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,h=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 ss: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:zd([h?f.map(h.log2lin):f],()=>e.requireSorting&&!b&&os(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,dt(this,"afterProcessData")}cropData(t,e,i){let s=t.getColumn("x",!0)||[],r=s.length,o={},a,n,h=0,c=r;for(a=0;a<r;a++)if(s[a]>=e){h=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(h,c))}return{modified:new ss({columns:o}),start:h,end:c}}generatePoints(){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,h=t.keys,c=[],d=t.dataGrouping?.groupAll?a:0,p=this.xAxis?.categories,u=this.pointArrayMap||["y"],g=this.dataColumnKeys(),x,m,f,y,b=this.data,v;if(!b&&!n){let k=[];k.length=e?.length||0,b=this.data=k}for(h&&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],f.dataGroup?.options&&(f.options=f.dataGroup.options,Ue(f,f.dataGroup.options),delete f.dataLabels)):(f=b[m],v=e?e[m]:i.getRow(y,u),f||v===void 0||(b[m]=f=new r(this,v,s[y]))),f&&(f.index=n?d+y:m,c[y]=f,f.category=p?.[f.x]??f.x,f.key=f.name??f.category);if(this.options.keys=h,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,dt(this,"afterGeneratePoints")}getXExtremes(t){return{min:fa(t),max:hr(t)}}getExtremes(t,e){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,h=n?[n]:(this.keysAffectYAxis||this.pointArrayMap||["y"])?.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 h){let w=k[f];kt(w)&&(w>0||!u)&&d.push(w)}let v={activeYData:d,dataMin:fa(d),dataMax:hr(d)};return dt(this,"afterGetExtremes",{dataExtremes:v}),v}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(xt(t[r]))return t[r];r+=i}}translate(){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(),h=!!n,c=t.threshold,d=t.startFromThreshold?c:0,p=t?.nullInteraction&&r.len,u,g,x,m,f=Number.MAX_VALUE;function y(b){return ma(b,-1e9,1e9)}for(u=0;u<a;u++){let b,v=o[u],k=v.x,w,S,M=v.y,C=v.low,L=e&&r.stacking?.stacks[(this.negStacks&&M<(d?0:c)?"-":"")+this.stackKey];v.plotX=kt(g=i.translate(k,!1,!1,!1,!0,n))?xa(y(g)):void 0,e&&this.visible&&L&&L[k]&&(m=this.getStackIndicator(m,k,this.index),!v.isNull&&m.key&&(S=(w=L[k]).points[m.key]),w&&ka(S)&&(C=S[0],M=S[1],C===d&&m.key===L[k].base&&(C=ct(kt(c)?c:r.min)),r.positiveValuesOnly&&xt(C)&&C<=0&&(C=void 0),v.total=v.stackTotal=ct(w.total),v.percentage=xt(v.y)&&w.total?v.y/w.total*100:void 0,v.stackY=M,this.irregularWidths||w.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),v.yBottom=xt(C)?y(r.translate(C,!1,!0,!1,!0)):void 0,this.dataModify&&(M=this.dataModify.modifyValue(M,u)),kt(M)&&v.plotX!==void 0?b=kt(b=r.translate(M,!1,!0,!1,!0))?y(b):void 0:!kt(M)&&p&&(b=p),v.plotY=b,v.isInside=this.isPointInside(v),v.clientX=h?xa(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,dt(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&&!!kt(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=ga(this.options.animation),a=[this.getSharedClipKey(),o.duration,o.easing,o.defer].join(","),n=e.sharedClips[a],h=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};h=e.renderer.clipRect(d),e.sharedClips[a+"m"]=h}i.clip(n),s?.clip(h)}else if(n&&!n.hasClass("highcharts-animating")){let c=e.getClipBox(this),d=o.step;(s?.element.childNodes.length||e.series.length>1)&&(o.step=function(p,u){d&&d.apply(u,arguments),u.prop==="width"&&h?.element&&h.attr(r?"height":"width",p+99)}),n.addClass("highcharts-animating").animate(c,o)}}afterAnimate(){this.setClip(),dr(this.chart.sharedClips,(t,e,i)=>{t&&!this.chart.container.querySelector(`[clip-path="url(#${t.id})"]`)&&(t.destroy(),delete i[e])}),this.finishedAnimating=!0,dt(this,"afterAnimate")}drawPoints(t=this.points){let e,i,s,r,o,a,n,h=this.chart,c=h.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&&!xt(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 v=i.isInside!==!1;if(!s&&v&&((n.width||0)>0||i.hasImage)&&(i.graphic=s=h.renderer.symbol(b,n.x,n.y,n.width,n.height,a?o:u).add(x),this.enabledDataSorting&&h.hasRendered&&(s.attr({x:i.startXPos}),r="animate")),s&&r==="animate"&&s[v?"show":"hide"](v).animate(n),s){let k=this.pointAttribs(i,c||!i.selected?void 0:"select");c?d&&s.css({fill:k.fill}):s[r](k)}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,h,c=ct(r.radius,s?.radius);e&&(n=s.states[e],h=r.states&&r.states[e],c=ct(h?.radius,n?.radius,c&&c+(n?.radiusPlus||0))),t.hasImage=o&&o.indexOf("url")===0,t.hasImage&&(c=0);let d=t.pos();return kt(c)&&d&&(i.crisp&&(d[0]=Id(d[0],t.hasImage?0:o==="rect"?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){let i=this.options,s=i.marker,r=t?.options,o=r?.marker||{},a=r?.color,n=t?.color,h=t?.zone?.color,c,d,p=this.color,u,g,x=ct(o.lineWidth,s.lineWidth),m=t?.isNull&&i.nullInteraction?0:1;return p=a||h||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){let e,i,s=this,r=s.chart,o=/AppleWebKit\/533/.test(Ld.navigator.userAgent),a=s.data||[];for(dt(s,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(s.axisTypes||[]).forEach(function(n){i=s[n],i?.series&&(ya(i.series,s),i.isDirty=i.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),e=a.length;e--;)a[e]?.destroy?.();for(let n of s.zones)Dd(n,void 0,!0);X.clearTimeout(s.animationTimeout),dr(s,function(n,h){n instanceof Kt&&!n.survive&&n[o&&h==="group"?"hide":"destroy"]()}),r.hoverSeries===s&&(r.hoverSeries=void 0),ya(r.series,s),r.orderItems("series"),dr(s,function(n,h){t&&h==="hcEvents"||delete s[h]})}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:r,xAxis:o,yAxis:a,zoneAxis:n}=this,{inverted:h,renderer:c}=e,d=this[`${n}Axis`],{isXAxis:p,len:u=0,minPointOffset:g=0}=d||{},x=(i?.strokeWidth()||0)/2+1,m=(f,y=0,b=0)=>{h&&(b=u-b);let{translated:v=0,lineClip:k}=f,w=b-v;k?.push(["L",y,Math.abs(w)<x?b-x*(w<=0?-1:1):v])};if(s.length&&(i||t)&&d&&kt(d.min)){let f=d.getExtremes().max+g,y=k=>{k.forEach((w,S)=>{(w[0]==="M"||w[0]==="L")&&(k[S]=[w[0],p?u-w[1]:w[1],p?w[2]:u-w[2]])})};if(s.forEach(k=>{k.lineClip=[],k.translated=ma(d.toPixels(ct(k.value,f),!0)||0,0,u)}),i&&!this.showLine&&i.hide(),t&&t.hide(),n==="y"&&r.length<o.len)for(let k of r){let{plotX:w,plotY:S,zone:M}=k,C=M&&s[s.indexOf(M)-1];M&&m(M,w,S),C&&m(C,w,S)}let b=[],v=d.toPixels(d.getExtremes().min-g,!0);s.forEach(k=>{let w=k.lineClip||[],S=Math.round(k.translated||0);o.reversed&&w.reverse();let{clip:M,simpleClip:C}=k,L=0,T=0,D=o.len,z=a.len;p?(L=S,D=v):(T=S,z=v);let W=[["M",L,T],["L",D,T],["L",D,z],["L",L,z],["Z"]],I=[W[0],...w,W[1],W[2],...b,W[3],W[4]];b=w.reverse(),v=S,h&&(y(I),t&&y(W)),M?(M.animate({d:I}),C?.animate({d:W})):(M=k.clip=c.path(I),t&&(C=k.simpleClip=c.path(W))),i&&k.graph?.clip(M),t&&k.area?.clip(C)})}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 xt(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 "+(xt(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";s.inverted&&(e=i,i=this.xAxis);let o={scale:1,translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,name:t};dt(this,"getPlotBox",o);let{scale:a,translateX:n,translateY:h}=o;return{translateX:n,translateY:h,rotation:90*!!r,rotationOriginX:r?a*(e.len-i.len)/2:0,rotationOriginY:r?a*(e.len+i.len)/2:0,scaleX:r?-a:a,scaleY:a}}removeEvents(t){let{eventsToUnbind:e}=this;t||Wd(this),e.length&&(e.forEach(i=>{i()}),e.length=0)}render(){let t=this,{chart:e,options:i,hasRendered:s}=t,r=ga(i.animation),o=t.visible?"inherit":"hidden",a=i.zIndex,n=e.seriesGroup,h=t.finishedAnimating?0:r.duration;dt(this,"render"),t.plotGroup("group","series",o,a,n),t.markerGroup=t.plotGroup("markerGroup","markers",o,a,n),i.clip!==!1&&t.setClip(),h&&t.animate?.(!0),t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels?.(),t.redrawPoints?.(),i.enableMouseTracking&&t.drawTracker?.(),h&&t.animate?.(),s||(h&&r.defer&&(h+=r.defer),t.animationTimeout=wa(()=>{t.afterAnimate()},h||0)),t.isDirty=!1,t.hasRendered=!0,dt(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,wa(function(){e.kdTree=(function r(o,a,n){let h,c,d=o?.length;if(d)return h=e.kdAxisArray[a%n],o.sort((p,u)=>(p[h]||0)-(u[h]||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?.nullInteraction),s,s),e.buildingKdTree=!1},i.kdNow||t?.type==="touchstart"?0:1)}searchKDTree(t,e,i,s,r){let o=this,[a,n]=this.kdAxisArray,h=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){let b=m.point,v=o.kdAxisArray[f%y],k=b,w=!1;(function(L,T){let D=L[a],z=T[a],W=xt(D)&&xt(z)?D-z:null,I=L[n],N=T[n],R=xt(I)&&xt(N)?I-N:0,it=d&&T.marker?.radius||0;T.dist=Math.sqrt((W&&W*W||0)+R*R)-it,T.distX=xt(W)?Math.abs(W)-it:Number.MAX_VALUE})(x,b);let S=(x[v]||0)-(b[v]||0)+(d&&b.marker?.radius||0),M=S<0?"left":"right",C=S<0?"right":"left";return m[M]&&([k,w]=p(b,g(x,m[M],f+1,y),h)),m[C]&&u(Math.sqrt(S*S),k[h],w)&&(k=p(k,g(x,m[C],f+1,y),h)[0]),k})(t,this.kdTree,c,c)}pointPlacementToXValue(){let{options:t,xAxis:e}=this,i=t.pointPlacement;return i==="between"&&(i=e.reversed?-.5:.5),kt(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(){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=r.options.tooltip?.snap||0,h=()=>{e.enableMouseTracking&&r.hoverSeries!==t&&t.onMouseOver()},c="rgba(192,192,192,"+(Od?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(p=>{p&&(p.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",u=>{o?.onTrackerMouseOut(u)}),e.cursor&&!r.styledMode&&p.css({cursor:e.cursor}),p.on("touchstart",h))})),dt(this,"afterDrawTracker")}addPoint(t,e,i,s,r){let o,a,n=this.options,{chart:h,data:c,dataTable:d,xAxis:p}=this,u=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?.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(xt).forEach(y=>{y.shift()}),d.deleteRows(0))),r!==!1&&dt(this,"addPoint",{point:m}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(s)}removePoint(t,e,i){let s=this,{chart:r,data:o,points:a,dataTable:n}=s,h=o[t],c=function(){[a?.length===o.length?a:void 0,o,s.options.data].filter(xt).forEach(d=>{d.splice(t,1)}),n.deleteRows(t),h?.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&r.redraw()};Ad(i,r),e=ct(e,!0),h?h.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?dt(r,"remove",null,a):a()}update(t,e){dt(this,"update",{options:t=Bd(t,this.userOptions)});let i=this,s=i.chart,r=i.userOptions,o=i.initialType||i.type,a=s.options.plotOptions,n=Ve[o].prototype,h=i.finishedAnimating&&{animation:!1},c={},d,p,u=jt.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(f=>i.hasOptionChanged(f)));g=g||o,x?(u.push.apply(u,jt.keepPropsForPoints),t.visible!==!1&&u.push("area","graph"),i.parallelArrays.forEach(function(f){u.push(f+"Data")}),t.data&&(t.dataSorting&&Ue(i.options.dataSorting,t.dataSorting),this.setData(t.data,!1))):this.dataTable.modified=this.dataTable,t=gi(r,{index:r.index===void 0?i.index:r.index,pointStart:a?.series?.pointStart??r.pointStart??i.getColumn("x")[0]},!x&&{data:i.options.data},t,h),x&&t.data&&(t.data=i.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach(function(f){u[f]=i[f],delete i[f]});let m=!1;if(Ve[g]){if(m=g!==i.type,i.remove(!1,!1,!1,!0),m)if(s.propFromSeries(),Object.setPrototypeOf)Object.setPrototypeOf(i,Ve[g].prototype);else{let f=Object.hasOwnProperty.call(i,"hcEvents")&&i.hcEvents;for(p in n)i[p]=void 0;Ue(i,Ve[g].prototype),f?i.hcEvents=f:delete i.hcEvents}}else os(17,!0,s,{missingModuleFor:g});if(u.forEach(function(f){i[f]=u[f]}),i.init(s,t),x&&this.points)for(let f of((d=i.options).visible===!1?(c.graphic=1,c.dataLabel=1):(this.hasMarkerChanged(d,r)&&(c.graphic=1),i.hasDataLabels?.()||(c.dataLabel=1)),this.points))f?.series&&(f.resolveColor(),Object.keys(c).length&&f.destroyElements(c),d.showInLegend===!1&&f.legendItem&&s.legend.destroyItem(f));i.initialType=o,s.linkSeries(),s.setSortedData(),m&&i.linkedSeries.length&&(i.isDirtyData=!0),dt(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){let e=this.chart,i=this.options[t],s=e.options.plotOptions,r=this.userOptions[t],o=ct(s?.[this.type]?.[t],s?.series?.[t]);return r&&!xt(o)?i!==r:i!==ct(o,i)}onMouseOver(){let t=this.chart,e=t.hoverSeries;t.pointer?.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&dt(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&&dt(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),h=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&&(h=a[t].lineWidth||h+(a[t].lineWidthPlus||0),c=ct(a[t].opacity,c)),r&&!r.dashstyle&&kt(h))for(let d of[r,...this.zones.map(p=>p.graph)])d?.animate({"stroke-width":h},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){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(n=>{i[n]?.[a]()}),(s.hoverSeries===i||s.hoverPoint?.series===i)&&i.onMouseOut(),i.legendItem&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach(n=>{n.options.stacking&&n.visible&&(n.isDirty=!0)}),i.linkedSeries.forEach(n=>{n.setVisible(t,!1)}),r&&(s.isDirtyBox=!0),dt(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),dt(this,t?"select":"unselect")}shouldShowTooltip(t,e,i={}){return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){pa[this.options.legendSymbol||"rectangle"]?.call(this,t,e)}}jt.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:l}=this.series.chart;return typeof this.y!="number"?"":l(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"},jt.types=gt.seriesTypes,jt.registerType=gt.registerSeriesType,jt.keepProps=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],jt.keepPropsForPoints=["data","isDirtyData","isDirtyCanvas","points","dataTable","processedData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX","transformGroups"],Ue(jt.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,invertible:!0,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:de,requireSorting:!0,sorted:!0}),gt.series=jt;let Nt=jt,{animObject:Xd,setAnimation:Hd}=St,{registerEventOptions:Ma}=ji,{composed:Fd,marginNames:Sa}=O,{distribute:Gd}=Bi,{format:Yd}=Gt,{addEvent:as,createElement:jd,css:$d,defined:cr,discardElement:Vd,find:Ud,fireEvent:oe,isNumber:Ta,merge:Pe,pick:$t,pushUnique:qd,relativeLength:Zd,stableSort:Kd,syncTimeout:_d}=X;class pr{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(),Ma(this,e),as(this.chart,"endResize",function(){this.legend.positionCheckboxes()})),as(this.chart,"render",()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())})}setOptions(t){let e=$t(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=$t(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&&Ma(this,this.options),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,$t(e,!0)&&i.redraw(),oe(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let i=t.color,{area:s,group:r,label:o,line:a,symbol:n}=t.legendItem||{};if((t instanceof Nt||t instanceof de)&&(t.color=t.options?.legendSymbolColor||i),r?.[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:h={}}=this,c=h.color,{fillColor:d,fillOpacity:p,lineColor:u,marker:g}=t.options,x=m=>(!e&&(m.fill&&(m.fill=c),m.stroke&&(m.stroke=c)),m);o?.css(Pe(e?this.itemStyle:h)),a?.attr(x({stroke:u||t.color})),n&&n.attr(x(g&&n.isMarker?t.pointAttribs():{fill:t.color})),s?.attr(x({fill:d||t.color,"fill-opacity":d?1:p??.75}))}t.color=i,oe(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?.element){let h={translateX:a?i:this.legendWidth-i-2*o-4,translateY:s};e[cr(e.translateY)?"animate":"attr"](h,void 0,()=>{oe(this,"afterPositionItem",{item:t})})}n&&(n.x=i,n.y=s)}destroyItem(t){let e=t.legendItem||{};for(let i of["group","label","line","symbol"])e[i]&&(e[i]=e[i].destroy());t.checkbox=Vd(t.checkbox),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(){let t,e=this.group?.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach(function(r){let o,a=r.checkbox;a&&(o=t+s+a.y+(this.scrollOffset||0)+3,$d(a,{left:e.translateX+r.checkboxOffset+a.x-20+"px",top:o+"px",display:this.proximate||o>t-6&&o<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?Yd(e.labelFormat,t,this.chart):e.labelFormatter.call(t)})}renderItem(t){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,h=this.itemStyle,c=this.itemHiddenStyle,d=o?$t(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,v=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?h: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=$t(r.symbolHeight,this.fontMetrics.f),r.squareSymbol&&(this.symbolWidth=$t(r.symbolWidth,Math.max(this.symbolHeight,16)),v=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||!h.width)&&b.css({width:(r.itemWidth||this.widthOption||i.spacingBox.width)-v+"px"}),this.setText(t);let k=b.getBBox(),w=this.fontMetrics?.h||0;t.itemWidth=t.checkboxOffset=r.itemWidth||e.labelWidth||k.width+v,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(e.labelHeight||(k.height>1.5*w?k.height:w))}layoutItem(t){let e=this.options,i=this.padding,s=e.layout==="horizontal",r=t.itemHeight,o=this.itemMarginBottom,a=this.itemMarginTop,n=s?$t(e.itemDistance,20):0,h=this.maxLegendWidth,c=e.alignColumns&&this.totalItemWidth>h?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+c>h&&(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){let i=e?.options;e&&$t(i.showInLegend,!cr(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItem?.labels||(i.legendType==="point"?e.data:e)))}),oe(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((o,a)=>{o.test(r)&&!cr(t[a])&&(i[Sa[a]]=Math.max(i[Sa[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+(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,h=s,c,d;o.yAxis&&(o.xAxis.options.reversed&&(h=!h),o.points&&(a=Ud(h?o.points:o.points.slice(0).reverse(),function(p){return Ta(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),Gd(i,e.plotHeight)))t=r.item.legendItem||{},Ta(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,h=this.group,c,d=this.box;this.itemX=s,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=Zd(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,h||(this.group=h=e.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(h),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle(),Kd(r,(p,u)=>(p.options?.legendIndex||0)-(u.options?.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(h)),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())),h[o?"show":"hide"](),t.styledMode&&h.getStyle("display")==="none"&&(a=n=0),this.legendWidth=a,this.legendHeight=n,o&&this.align(),this.proximate||this.positionItems(),oe(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,h=r.maxHeight,c=r.navigation,d=$t(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(w),i.styledMode||e[M].attr("fill","rgba(0,0,0,0.0001)"),e[M]},f,y,b,v,k=i.spacingBox.height+(a?-o:o)-n,w=this.nav,S=this.clipRect;return r.layout!=="horizontal"||r.verticalAlign==="middle"||r.floating||(k/=2),h&&(k=Math.min(k,h)),u.length=0,t&&k>0&&t>k&&c.enabled!==!1?(this.clipHeight=f=Math.max(k-20-this.titleHeight-n,0),this.currentPage=$t(this.currentPage,1),this.fullHeight=t,g.forEach((M,C)=>{let L=(b=M.legendItem||{}).y||0,T=Math.round(b.label.getBBox().height),D=u.length;(!D||L-u[D-1]>f&&(y||L)!==u[D-1])&&(u.push(y||L),D++),b.pageIx=D-1,y&&v&&(v.pageIx=D-1),C===g.length-1&&L+T-u[D-1]>f&&L>u[D-1]&&(u.push(L),b.pageIx=D),L!==y&&(y=L),v=b}),S||(S=e.clipRect=s.clipRect(0,n-2,9999,0),e.contentGroup.clip(S)),x(f),w||(this.nav=w=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,p,p).add(w),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(w),this.down=s.symbol("triangle-down",0,0,p,p).add(w),m("downTracker").on("click",function(){e.scroll(1,d)})),e.scroll(0),t=k):w&&(x(),this.nav=w.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,h=this.padding,c=this.currentPage+t;c>r&&(c=r),c>0&&(e!==void 0&&Hd(e,i),this.nav.attr({translateX:h,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(),_d(()=>{oe(this,"afterScroll",{currentPage:c})},Xd($t(e,i.renderer.globalAnimation,!0)).duration))}setItemEvents(t,e,i){let s=this,r=t.legendItem||{},o=s.chart.renderer.boxWrapper,a=t instanceof de,n=t instanceof Nt,h="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(h),c||e.css(s.options.itemHoverStyle)}).on("mouseout",function(){s.chart.styledMode||e.css(Pe(t.visible?s.itemStyle:s.itemHiddenStyle)),p(""),o.removeClass(h),t.setState()}).on("click",function(g){let x=function(){t.setVisible&&t.setVisible(),p(t.visible?"inactive":"")};o.removeClass(h),oe(s,"itemClick",{browserEvent:g,legendItem:t},x),a?t.firePointEvent("legendItemClick",{browserEvent:g}):n&&oe(t,"legendItemClick",{browserEvent:g})})}createCheckboxForItem(t){t.checkbox=jd("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),as(t.checkbox,"click",function(e){let i=e.target;oe(t.series||t,"checkboxClick",{checked:i.checked,item:t},function(){t.select()})})}}(function(l){l.compose=function(t){qd(Fd,"Core.Legend")&&as(t,"beforeMargins",function(){this.legend=new l(this,this.options.legend)})}})(pr||(pr={}));let Ca=pr,{animate:ur,animObject:Jd,setAnimation:gr}=St,{defaultOptions:fr}=Ft,{numberFormat:Qd}=Gt,{registerEventOptions:Aa}=ji,{charts:Oe,doc:fi,marginNames:Pa,svg:tc,win:Oa}=O,{seriesTypes:mr}=gt,{addEvent:xr,attr:La,createElement:yr,css:Vt,defined:pe,diffObjects:Ea,discardElement:ec,erase:ic,error:br,extend:ue,find:vr,fireEvent:Q,getAlignFactor:sc,getStyle:kr,isArray:rc,isNumber:qe,isObject:oc,isString:ns,merge:te,objectEach:wr,pick:Lt,pInt:ac,relativeLength:Ia,removeEvent:Da,splat:ls,syncTimeout:nc,uniqueKey:lc}=X;class ge{static chart(t,e,i){return new ge(t,e,i)}constructor(t,e,i){this.sharedClips={};let s=[...arguments];(ns(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:Lt(t.zoomType,e.type),key:Lt(t.zoomKey,e.key),pinchType:Lt(t.pinchType,e.pinchType),singleTouch:Lt(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:te(e.resetButton,t.resetZoomButton)}}init(t,e){Q(this,"init",{args:arguments},function(){let i=te(fr,t),s=i.chart,r=this.renderTo||s.renderTo;this.userOptions=ue({},t),(this.renderTo=ns(r)?fi.getElementById(r):r)||br(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??this.renderTo.closest("[lang]")?.lang,this.time=new Os(ue(i.time||{},{locale:this.locale}),i.lang),i.time=this.time.options,this.numberFormatter=(s.numberFormatter||Qd).bind(this),this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=Oe.length,Oe.push(this),O.chartCount++,Aa(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),Q(this,"afterInit"),this.firstRender()})}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=mr[i];s||br(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]=ls(this.options[t]).slice(),r=this.userOptions[t]=this.userOptions[t]?ls(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 Nt&&(n.name=n.getName()),n.options.isInternal||(s[o]=n.options,r[o]=n.userOptions))}}getClipBox(t,e){let i=this.inverted,{xAxis:s,yAxis:r}=t||{},{x:o,y:a,width:n,height:h}=te(this.clipBox);return t&&(s&&s.len!==this.plotSizeX&&(n=s.len),r&&r.len!==this.plotSizeY&&(h=r.len),i&&!t.invertible&&([n,h]=[h,n])),e&&(o+=(i?r:s)?.pos??this.plotLeft,a+=(i?s:r)?.pos??this.plotTop),{x:o,y:a,width:n,height:h}}isInsidePlot(t,e,i={}){let{inverted:s,plotBox:r,plotLeft:o,plotTop:a,scrollablePlotBox:n}=this,{scrollLeft:h=0,scrollTop:c=0}=i.visiblePlotOnly&&this.scrollablePlotArea?.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 m=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:o,len:1/0},f=i.paneCoordinates?m.pos+u:o+u;f>=Math.max(h+o,m.pos)&&f<=Math.min(h+o+p.width,m.pos+m.len)||(x.isInsidePlot=!1)}if(!i.ignoreY&&x.isInsidePlot){let m=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:a,len:1/0},f=i.paneCoordinates?m.pos+g:a+g;f>=Math.max(c+a,m.pos)&&f<=Math.min(c+a+p.height,m.pos+m.len)||(x.isInsidePlot=!1)}return Q(this,"afterIsInsidePlot",x),x.isInsidePlot}redraw(t){Q(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(),h=[],c,d,p,u=this.isDirtyBox,g=this.isDirtyLegend,x;for(a.rootFontSize=a.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),gr(!!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&&Q(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,h.push(function(){Q(m,"afterSetExtremes",ue(m.eventArgs,m.getExtremes())),delete m.eventArgs})),(u||d)&&m.redraw()}),u&&this.drawChartBox(),Q(this,"predraw"),i.forEach(function(m){(u||m.isDirty)&&m.visible&&m.redraw(),m.isDirtyData=!1}),s&&s.reset(!0),a.draw(),Q(this,"redraw"),Q(this,"render"),n&&this.temporaryDisplay(!0),h.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=vr(this.axes,i)||vr(this.series,i);for(let r=0;!s&&r<e.length;r++)s=vr(e[r].points||[],i);return s}createAxes(){let t=this.userOptions;for(let e of(Q(this,"createAxes"),["xAxis","yAxis"]))for(let i of t[e]=ls(t[e]||{}))new Ye(this,i,e);Q(this,"afterCreateAxes")}getSelectedPoints(){return this.series.reduce((t,e)=>(e.getPointsCollection().forEach(i=>{Lt(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){let i=this,s=this.options[t]=te(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(o,a){i.applyDescription(t,o),i.layOutTitles(a)},this.styledMode||r.css(ue(t==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),r.textPxLength=r.getBBox().width,r.css({whiteSpace:s.style?.whiteSpace}),this[t]=r)}layOutTitles(t=!0){let e=[0,0,0],{options:i,renderer:s,spacingBox:r}=this;["title","subtitle","caption"].forEach(a=>{let n=this[a],h=this.options[a],c=te(r),d=n?.textPxLength||0;if(n&&h){Q(this,"layOutTitle",{alignTo:c,key:a,textPxLength:d});let p=s.fontMetrics(n),u=p.b,g=p.h,x=h.verticalAlign||"top",m=x==="top",f=m&&h.minScale||1,y=a==="title"?m?-3:0:m?e[0]+2:0,b=Math.min(c.width/d,1),v=Math.max(f,b),k=te({y:x==="bottom"?u:y+u},{align:a==="title"?b<f?"left":"center":this.title?.alignValue},h),w=(h.width||(b>f?this.chartWidth:c.width)/v)+"px";n.alignValue!==k.align&&(n.placed=!1);let S=Math.round(n.css({width:w}).getBBox(h.useHTML).height);if(k.height=S,n.align(k,!1,c).attr({align:k.align,scaleX:v,scaleY:v,"transform-origin":`${c.x+d*v*sc(k.align)} ${g}`}),!h.floating){let M=S*(S<1.2*g?1:v);x==="top"?e[0]=Math.ceil(e[0]+M):x==="bottom"&&(e[2]=Math.ceil(e[2]+M))}}},this),e[0]&&(i.title?.verticalAlign||"top")==="top"&&(e[0]+=i.title?.margin||0),e[2]&&i.caption?.verticalAlign==="bottom"&&(e[2]+=i.caption?.margin||0);let o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,Q(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:kr(this.renderTo,"width",!0)||0,height:kr(this.renderTo,"height",!0)||0};return t.filter(Boolean).forEach(([i,s])=>{i.style.display=s}),e}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox(),r=s.height<=1||!this.renderTo.parentElement?.style.height&&this.renderTo.style.height==="100%";this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,Ia(i,this.chartWidth)||(r?400:s.height)),this.containerBox=s}temporaryDisplay(t){let e=this.renderTo,i;if(t)for(;e?.style;)e.hcOrigStyle&&(Vt(e,e.hcOrigStyle),delete e.hcOrigStyle),e.hcOrigDetached&&(fi.body.removeChild(e),e.hcOrigDetached=!1),e=e.parentNode;else for(;e?.style&&(fi.body.contains(e)||e.parentNode||(e.hcOrigDetached=!0,fi.body.appendChild(e)),(kr(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),Vt(e,i),e.offsetWidth||e.style.setProperty("display","block","important")),(e=e.parentNode)!==fi.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",r=lc(),o=this.renderTo,a=ac(La(o,s));qe(a)&&Oe[a]&&Oe[a].hasRendered&&Oe[a].destroy(),La(o,s,this.index),o.innerHTML=nt.emptyHTML,i.skipClone||o.offsetWidth||this.temporaryDisplay(),this.getChartSize();let n=this.chartHeight,h=this.chartWidth;Vt(o,{overflow:"hidden"}),this.styledMode||(t=ue({position:"relative",overflow:"hidden",width:h+"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=yr("div",{id:r},t,o);this.container=c,this.getChartSize(),h!==this.chartWidth&&(h=this.chartWidth,this.styledMode||Vt(c,{width:Lt(i.style?.width,h+"px")})),this.containerBox=this.getContainerBox(),this._cursor=c.style.cursor;let d=i.renderer||!tc?oi.getRendererType(i.renderer):Gi;if(this.renderer=new d(c,h,n,void 0,i.forExport,e.exporting?.allowHTML,this.styledMode),gr(void 0,this),this.setClassName(i.className),this.styledMode)for(let p in e.defs)this.renderer.definition(e.defs[p]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,Q(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!pe(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!pe(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend?.display&&this.legend.adjustMargins(i,e),Q(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,r=o=>{o.forEach(a=>{a.visible&&a.getOffset()})};t.hasCartesianSeries?r(t.axes):i?.length&&r(i),Pa.forEach((o,a)=>{pe(s[a])||(t[o]+=e[a])}),t.setChartSize()}getOptions(){return Ea(this.userOptions,fr)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer?.chartPosition,!e.exporting?.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(X.clearTimeout(e.reflowTimeout),e.reflowTimeout=nc(function(){e.container&&e.setSize(void 0,void 0,!1)},100*!!t)),e.containerBox=s)}setReflow(){let t=this,e=i=>{t.options?.chart.reflow&&t.hasLoaded&&t.reflow(i)};if(typeof ResizeObserver=="function")new ResizeObserver(e).observe(t.renderTo);else{let i=xr(Oa,"resize",e);xr(this,"destroy",i)}}setSize(t,e,i){let s=this,r=s.renderer;s.isResizing+=1,gr(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:h=0,scrollablePixelsY:c=0}=s;(s.isDirtyBox||a!==s.oldChartWidth||n!==s.oldChartHeight)&&(s.styledMode||(o?ur:Vt)(s.container,{width:`${a+h}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,Q(s,"resize"),setTimeout(()=>{s&&Q(s,"endResize")},Jd(o).duration)),s.isResizing-=1}setChartSize(t){let e,i,s,r,{chartHeight:o,chartWidth:a,inverted:n,spacing:h,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:h[3],y:h[0],width:a-h[3]-h[1],height:o-h[0]-h[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()),Q(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){Q(this,"resetMargins");let t=this,e=t.options.chart,i=e.plotBorderWidth||0,s=Math.round(i)/2;["margin","spacing"].forEach(r=>{let o=e[r],a=oc(o)?o:[o,o,o,o];["Top","Right","Bottom","Left"].forEach((n,h)=>{t[r][h]=e[`${r}${n}`]??a[h]})}),Pa.forEach((r,o)=>{t[r]=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,h=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,v,k,w,S="animate";f||(this.chartBackground=f=e.rect().addClass("highcharts-background").add(),S="attr"),r?v=k=f.strokeWidth():(k=(v=t.borderWidth||0)+8*!!t.shadow,w={fill:a||"none"},(v||f["stroke-width"])&&(w.stroke=t.borderColor,w["stroke-width"]=v),f.attr(w).shadow(t.shadow)),f[S]({x:k/2,y:k/2,width:i-k-v%2,height:s-k-v%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),h&&(o?(h!==o.attr("href")&&o.attr("href",h),o.animate(g)):this.plotBGImage=e.image(h,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,Q(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=mr[r.type],i=r[a]||e&&e.prototype[a],t=o?.length;!i&&t--;)(e=mr[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(ns(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=Lt(s.options.visible,o.options.visible,s.visible))}}),Q(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach(function(t){t.translate(),t.render()})}render(){let t=this.axes,e=this.colorAxis,i=this.renderer,s=this.options.chart.axisLayoutRuns||2,r=c=>{c.forEach(d=>{d.visible&&d.render()})},o=0,a=!0,n,h=0;for(let c of(this.setTitle(),Q(this,"beforeMargins"),this.getStacks?.(),this.getMargins(!0),this.setChartSize(),t)){let{options:d}=c,{labels:p}=d;if(this.hasCartesianSeries&&c.horiz&&c.visible&&p.enabled&&c.series.length&&c.coll!=="colorAxis"&&!this.polar){o=d.tickLength,c.createGroups();let u=new Ge(c,0,"",!0),g=u.createLabel("x",p);if(u.destroy(),g&&Lt(p.reserveSpace,!qe(d.crossing))&&(o=g.getBBox().height+p.distance+Math.max(d.offset||0,0)),o){g?.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-o,0);(a||n||s>1)&&h<s;){let c=this.plotWidth,d=this.plotHeight;for(let p of t)h===0?p.setScale():(p.horiz&&a||!p.horiz&&n)&&p.setTickInterval(!0);h===0?this.getAxisMargins():this.getMargins(),a=c/this.plotWidth>(h?1:1.1),n=d/this.plotHeight>(h?1:1.05),h++}this.drawChartBox(),this.hasCartesianSeries?r(t):e?.length&&r(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.dataLabelsGroup||(this.dataLabelsGroup=i.g("datalabels-group").attr({zIndex:6}).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=te(!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&&(Oa.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(){let t,e=this,i=e.axes,s=e.series,r=e.container,o=r?.parentNode;for(Q(e,"destroy"),e.renderer.forExport?ic(Oe,e):Oe[e.index]=void 0,O.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),Da(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller?.destroy?.(),t=s.length;t--;)s[t]=s[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach(a=>{e[a]=e[a]?.destroy?.()}),r&&(r.innerHTML=nt.emptyHTML,Da(r),o&&ec(r)),wr(e,function(a,n){delete e[n]})}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.createAxes();let i=rc(e.series)?e.series:[];e.series=[],i.forEach(function(s){t.initSeries(s)}),t.linkSeries(),t.setSortedData(),Q(t,"beforeRender"),t.render(),t.pointer?.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),Q(this,"load"),Q(this,"render"),pe(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?.element.textContent||"").replace(/</g,"&lt;")}),t.accessibility&&t.accessibility.enabled===!1||br('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=Lt(e,!0),Q(r,"addSeries",{options:t},function(){s=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),s.enabledDataSorting&&s.setData(t.data,!1),Q(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 Ye(this,e.axis,t);return Lt(e.redraw,!0)&&this.redraw(e.animation),i}showLoading(t){let e=this,i=e.options,s=i.loading,r=function(){o&&Vt(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=yr("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container)),a||(e.loadingSpan=a=yr("span",{className:"highcharts-loading-inner"},null,o),xr(e,"redraw",r)),o.className="highcharts-loading",nt.setElementHTML(a,Lt(t,i.lang.loading,"")),!e.styledMode&&(Vt(o,ue(s.style,{zIndex:10})),Vt(a,s.labelStyle),e.loadingShown||(Vt(o,{opacity:0,display:""}),ur(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||ur(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){Vt(e,{display:"none"})}})),this.loadingShown=!1}update(t,e,i,s){let r,o,a,n=this,h={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},c=t.isResponsiveOptions,d=[];Q(n,"update",{options:t}),c||n.setResponsive(!1,!0),t=Ea(t,n.options),n.userOptions=te(n.userOptions,t);let p=t.chart;p&&(te(!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&&Aa(this,p),wr(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),wr(t,function(x,m){n[m]&&typeof n[m].update=="function"?n[m].update(x,!1):typeof n[h[m]]=="function"?n[h[m]](x):m!=="colors"&&n.collectionsWithUpdate.indexOf(m)===-1&&te(!0,n.options[m],t[m]),m!=="chart"&&n.propsRequireUpdateSeries.indexOf(m)!==-1&&(o=!0)}),this.collectionsWithUpdate.forEach(function(x){t[x]&&(ls(t[x]).forEach(function(m,f){let y,b=pe(m.id);b&&(y=n.get(m.id)),!y&&n[x]&&(y=n[x][Lt(m.index,f)])&&(b&&pe(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?.width,g=p&&(ns(p.height)?Ia(p.height,u||n.chartWidth):p.height);a||qe(u)&&u!==n.chartWidth||qe(g)&&g!==n.chartHeight?n.setSize(u,g,s):Lt(e,!0)&&n.redraw(s),Q(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=fr.lang,i=t.zooming.resetButton,s=i.theme,r=i.relativeTo==="chart"||i.relativeTo==="spacingBox"?null:"plotBox";function o(){t.zoomOut()}Q(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)}),Q(this,"afterShowResetZoom")}zoomOut(){Q(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?.panning&&(a.panning=s),Q(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"}),Vt(i.container,{cursor:"move"})})}transform(t){let{axes:e=this.axes,event:i,from:s={},reset:r,selection:o,to:a={},trigger:n}=t,{inverted:h,time:c}=this;this.hoverPoints?.forEach(g=>g.setState()),Q(this,"transform",t);let d=t.hasZoomed||!1,p,u;for(let g of e){let{horiz:x,len:m,minPointOffset:f=0,options:y,reversed:b}=g,v=x?"width":"height",k=x?"x":"y",w=Lt(a[v],g.len),S=Lt(s[v],g.len),M=10>Math.abs(w)?1:w/S,C=(s[k]||0)+S/2-g.pos,L=C-((a[k]??g.pos)+w/2-g.pos)/M,T=b&&!h||!b&&h?-1:1;if(!r&&(C<0||C>g.len))continue;let D=g.chart.polar||g.isOrdinal?0:f*T||0,z=g.toValue(L,!0),W=g.toValue(L+m/M,!0),I=z+D,N=W-D,R=g.allExtremes;if(o&&o[g.coll].push({axis:g,min:Math.min(z,W),max:Math.max(z,W)}),I>N&&([I,N]=[N,I]),M===1&&!r&&g.coll==="yAxis"&&!R){for(let Dt of g.series){let ee=Dt.getExtremes(Dt.getProcessedData(!0).modified.getColumn("y")||[],!0);R??(R={dataMin:Number.MAX_VALUE,dataMax:-Number.MAX_VALUE}),qe(ee.dataMin)&&qe(ee.dataMax)&&(R.dataMin=Math.min(ee.dataMin,R.dataMin),R.dataMax=Math.max(ee.dataMax,R.dataMax))}g.allExtremes=R}let{dataMin:it,dataMax:K,min:Et,max:G}=ue(g.getExtremes(),R||{}),F=c.parse(y.min),tt=c.parse(y.max),Z=it??F,ot=K??tt,at=N-I,et=g.categories?0:Math.min(at,ot-Z),pt=Z-et*(pe(F)?0:y.minPadding),It=ot+et*(pe(tt)?0:y.maxPadding),zt=g.allowZoomOutside||M===1||n!=="zoom"&&M>1,xe=Math.min(F??pt,pt,zt?Et:pt),Ut=Math.max(tt??It,It,zt?G:It);(!g.isOrdinal||M!==1||r)&&(I<xe&&(I=xe,M>=1&&(N=I+at)),N>Ut&&(N=Ut,M>=1&&(I=N-at)),(r||g.series.length&&(I!==Et||N!==G)&&I>=xe&&N<=Ut)&&(o?o[g.coll].push({axis:g,min:I,max:N}):(g.isPanning=n!=="zoom",g.isPanning&&(u=!0),g.setExtremes(r?void 0:I,r?void 0:N,!1,!1,{move:L,trigger:n,scale:M}),!r&&(I>xe||N<Ut)&&n!=="mousewheel"&&(p=!0)),d=!0),this.hasCartesianSeries||r||n==="mousewheel"||(p=!0),i&&(this[x?"mouseDownX":"mouseDownY"]=i[x?"chartX":"chartY"]))}return d&&(o?Q(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}}ue(ge.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ge.prototype.addAxis,[!0]],yAxis:[ge.prototype.addAxis,[!1]],series:[ge.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:hc}=St,{composed:dc}=O,{addEvent:fe,createElement:hs,css:Mr,defined:Sr,erase:cc,merge:Ba,pushUnique:Na}=X;function pc(){let l=this.scrollablePlotArea;(this.scrollablePixelsX||this.scrollablePixelsY)&&!l&&(this.scrollablePlotArea=l=new mi(this)),l?.applyFixed()}function za(){this.chart.scrollablePlotArea&&(this.chart.scrollablePlotArea.isDirty=!0)}class mi{static compose(t,e,i){Na(dc,this.compose)&&(fe(t,"afterInit",za),fe(e,"afterSetChartSize",s=>this.afterSetSize(s.target,s)),fe(e,"render",pc),fe(i,"show",za))}static afterSetSize(t,e){let i,s,r,{minWidth:o,minHeight:a}=t.options.chart.scrollablePlotArea||{},{clipBox:n,plotBox:h,inverted:c,renderer:d}=t;if(!d.forExport)if(o?(t.scrollablePixelsX=i=Math.max(0,o-t.chartWidth),i&&(t.scrollablePlotBox=Ba(t.plotBox),h.width=t.plotWidth+=i,n[c?"height":"width"]+=i,r=!0)):a&&(t.scrollablePixelsY=s=Math.max(0,a-t.chartHeight),Sr(s)&&(t.scrollablePlotBox=Ba(t.plotBox),h.height=t.plotHeight+=s,n[c?"width":"height"]+=s,r=!1)),Sr(r)){if(!e.skipAxes)for(let p of t.axes)(p.horiz===r||t.hasParallelCoordinates&&p.coll==="yAxis")&&(p.setAxisSize(),p.setAxisTranslation())}else delete t.scrollablePlotBox}constructor(t){let e,i=t.options.chart,s=oi.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=hs("div",{className:"highcharts-scrolling-parent"},{position:"relative"},t.renderTo),h=this.scrollingContainer=hs("div",{className:"highcharts-scrolling"},a,n),c=this.innerContainer=hs("div",{className:"highcharts-inner-container"},void 0,h),d=this.fixedDiv=hs("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(i.style?.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(),h.parentNode.insertBefore(d,h),Mr(t.renderTo,{overflow:"visible"}),fe(t,"afterShowResetZoom",o),fe(t,"afterApplyDrilldown",o),fe(t,"afterLayOutTitles",o),fe(h,"scroll",()=>{let{pointer:u,hoverPoint:g}=t;u&&(delete u.chartPosition,g&&(e=g),u.runPointActions(void 0,e,!0))}),c.appendChild(t.container)}applyFixed(){let{chart:t,fixedRenderer:e,isDirty:i,scrollingContainer:s}=this,{axisOffset:r,chartWidth:o,chartHeight:a,container:n,plotHeight:h,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()),hc(t.container),Mr(n,{width:`${f}px`,height:`${y}px`}),t.renderer.boxWrapper.attr({width:f,height:y,viewBox:[0,0,f,y].join(" ")}),t.chartBackground?.attr({width:f,height:y}),Mr(s,{width:`${o}px`,height:`${a}px`}),Sr(i)||(s.scrollLeft=u*x,s.scrollTop=g*m);let b=d-r[0]-1,v=c-r[3]-1,k=d+h+r[2]+1,w=c+p+r[1]+1,S=c+p-u,M=d+h-g,C=[["M",0,0]];u?C=[["M",0,b],["L",c-1,b],["L",c-1,k],["L",0,k],["Z"],["M",S,b],["L",o,b],["L",o,k],["L",S,k],["Z"]]:g&&(C=[["M",v,0],["L",v,d-1],["L",w,d-1],["L",w,0],["Z"],["M",v,M],["L",v,a],["L",w,a],["L",w,M],["Z"]]),t.redrawTrigger!=="adjustHeight"&&this.mask.attr({d:C})}moveFixedElements(){let t,{container:e,inverted:i,scrollablePixelsX:s,scrollablePixelsY:r}=this.chart,o=this.fixedRenderer,a=mi.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)`])Na(a,n);else for(let n of[".highcharts-xaxis",".highcharts-yaxis"])for(let h of[`${n}:not(.highcharts-radial-axis)`,`${n}-labels:not(.highcharts-radial-axis-labels)`])cc(a,h);for(let n of a)[].forEach.call(e.querySelectorAll(n),h=>{(h.namespaceURI===o.SVG_NS?o.box:o.box.parentNode).appendChild(h),h.style.pointerEvents="auto"})}}mi.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:uc}=Gt,{series:gc}=gt,{destroyObjectProperties:fc,fireEvent:Ra,getAlignFactor:Tr,isNumber:Cr,pick:xi}=X,Wa=class{constructor(l,t,e,i,s){let r=l.chart.inverted,o=l.reversed;this.axis=l;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(){fc(this,this.axis)}render(l){let t=this.axis.chart,e=this.options,i=e.format,s=i?uc(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:xi(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(l)}this.label.labelrank=t.plotSizeY,Ra(this,"afterRender")}setOffset(l,t,e,i,s,r){let{alignOptions:o,axis:a,label:n,options:h,textAlign:c}=this,d=a.chart,p=this.getStackBox({xOffset:l,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=xi(h.overflow,"justify")==="justify",f;o.x=h.x||0,o.y=h.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&&gc.prototype.justifyDataLabel.call(a,n,o,n.alignAttr,g,p),n.attr({x:n.alignAttr.x,y:n.alignAttr.y,rotation:h.rotation,rotationOriginX:g.width*Tr(h.textAlign||"center"),rotationOriginY:g.height/2}),xi(!m&&h.crop,!0)&&(f=Cr(n.x)&&Cr(n.y)&&d.isInsidePlot(n.x-x+(n.width||0),n.y)&&d.isInsidePlot(n.x+x,n.y)),n[f?"show":"hide"]()}Ra(this,"afterSetOffset",{xOffset:l,width:t})}adjustStackPosition({labelBox:l,verticalAlign:t,textAlign:e}){return{x:l.width/2+l.width/2*(2*Tr(e)-1),y:l.height/2*2*(1-Tr(t))}}getStackBox(l){let t=this.axis,e=t.chart,{boxTop:i,defaultX:s,xOffset:r,width:o,boxBottom:a}=l,n=t.stacking.usePercentage?100:xi(i,this.total,0),h=t.toPixels(n),c=l.xAxis||e.xAxis[0],d=xi(s,c.translate(this.x))+r,p=Math.abs(h-t.toPixels(a||Cr(t.min)&&t.logarithmic&&t.logarithmic.lin2log(t.min)||0)),u=e.inverted,g=this.isNegative;return u?{x:(g?h:h-p)-e.plotLeft,y:c.height-d-o+c.top-e.plotTop,width:p,height:o}:{x:d+c.transB-e.plotLeft,y:(g?h-p:h)-e.plotTop,width:o,height:p}}},{getDeferredAnimation:mc}=St,{series:{prototype:xc}}=gt,{addEvent:Xa,correctFloat:yi,defined:Ha,destroyObjectProperties:yc,fireEvent:bc,isNumber:Ar,objectEach:Le,pick:Pr}=X;function vc(){let l=this.inverted;this.axes.forEach(t=>{t.stacking?.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)}),this.series.forEach(t=>{let e=t.xAxis?.options||{};t.options.stacking&&t.reserveSpace()&&(t.stackKey=[t.type,Pr(t.options.stack,""),l?e.top:e.left,l?e.height:e.width].join(","))})}function kc(){let l=this.stacking;if(l){let t=l.stacks;Le(t,(e,i)=>{yc(e),delete t[i]}),l.stackTotalGroup?.destroy()}}function wc(){this.stacking||(this.stacking=new Pc(this))}function Mc(l,t,e,i){return!Ha(l)||l.x!==t||i&&l.stackKey!==i?l={x:t,index:0,key:i,stackKey:i}:l.index++,l.key=[e,t,l.index].join(","),l}function Sc(){let l,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=>{let h=r.length,c,d,p;for(;h--;)c=r[h],l=t.getStackIndicator(l,c,t.index,n),d=s[n]?.[c],(p=d?.points[l.key||""])&&a.call(t,p,d,h)})}function Tc(l,t,e){let i=t.total?100/t.total:0;l[0]=yi(l[0]*i),l[1]=yi(l[1]*i),this.stackedYData[e]=l[1]}function Cc(l){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&this.chart.series.length>1?xc.setStackedPoints.call(this,l,"group"):l.stacking.resetStacks())}function Ac(l,t){let e,i,s,r,o,a,n,h=t||this.options.stacking;if(!h||!this.reserveSpace()||({group:"xAxis"}[h]||"yAxis")!==l.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},${h}`:this.stackKey||"",b="-"+y,v=this.negStacks,k=l.stacking,w=k.stacks,S=k.oldStacks;for(k.stacksTouched+=1,n=0;n<u;n++){let M=c[n]||0,C=d[n],L=Ar(C)&&C||0;a=(e=this.getStackIndicator(e,M,this.index)).key||"",w[o=(i=v&&L<(m?0:x))?b:y]||(w[o]={}),w[o][M]||(S[o]?.[M]?(w[o][M]=S[o][M],w[o][M].total=null):w[o][M]=new Wa(l,l.options.stackLabels,!!i,M,f)),s=w[o][M],C!==null?(s.points[a]=s.points[this.index]=[Pr(s.cumulative,m)],Ha(s.cumulative)||(s.base=a),s.touched=k.stacksTouched,e.index>0&&this.singleStacks===!1&&(s.points[a][0]=s.points[this.index+","+M+",0"][0])):(delete s.points[a],delete s.points[this.index]);let T=s.total||0;h==="percent"?(r=i?y:b,T=v&&w[r]?.[M]?(r=w[r][M]).total=Math.max(r.total||0,T)+Math.abs(L):yi(T+Math.abs(L))):h==="group"?Ar(C)&&T++:T=yi(T+L),h==="group"?s.cumulative=(T||1)-1:s.cumulative=yi(Pr(s.cumulative,m)+L),s.total=T,C!==null&&(s.points[a].push(s.cumulative),p[n]=s.cumulative,s.hasValidPoints=!0)}h==="percent"&&(k.usePercentage=!0),h!=="group"&&(this.stackedYData=p),k.oldStacks={}}class Pc{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();bc(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)=>{Ar(e.touched)&&e.touched<this.stacksTouched?(e.destroy(),delete t[i]):(e.total=null,e.cumulative=null)})})}renderStackTotals(){let t=this.axis,e=t.chart,i=e.renderer,s=this.stacks,r=mc(e,t.options.stackLabels?.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,a=>{Le(a,n=>{n.render(o)})}),o.animate({opacity:1},r)}}(Je||(Je={})).compose=function(l,t,e){let i=t.prototype,s=e.prototype;i.getStacks||(Xa(l,"init",wc),Xa(l,"destroy",kc),i.getStacks=vc,s.getStackIndicator=Mc,s.modifyStacks=Sc,s.percentStacker=Tc,s.setGroupedPoints=Cc,s.setStackedPoints=Ac)};let Oc=Je,{defined:Lc,merge:Fa,isObject:Ec}=X;class Ga extends Nt{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",h=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"},h?o.dashstyle=h:t.linecap!=="square"&&(o["stroke-linecap"]=o["stroke-linejoin"]="round"),a[n](o).shadow(t.shadow&&Fa({filterUnits:"userSpaceOnUse"},Ec(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,h=r.step,c=(t=t||s.points).reversed;return c&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&c&&(h=4-h),(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?.rightCliff)&&!i&&(n=!0),f&&!Lc(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)]:h?(u=h===1?[["L",m.plotX,x]]:h===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),h&&(a.push(d.x),h===2&&a.push(d.x)),o.push.apply(o,u),n=!1)}),o.xMap=a,s.graphPath=o,o}}Ga.defaultOptions=Fa(Nt.defaultOptions,{legendSymbol:"lineMarker"}),gt.registerSeriesType("line",Ga);let{seriesTypes:{line:Or}}=gt,{extend:Ic,merge:Dc,objectEach:Bc,pick:ds}=X;class Lr extends Or{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=Or.prototype.getGraphPath,o=this.options,a=o.stacking,n=this.yAxis,h=[],c=[],d=this.index,p=n.stacking.stacks[this.stackKey],u=o.threshold,g=Math.round(n.getThreshold(o.threshold)),x=ds(o.connectNulls,a==="percent"),m=function(w,S,M){let C=t[w],L=a&&p[C.x].points[d],T=C[M+"Null"]||0,D=C[M+"Cliff"]||0,z,W,I=!0;D||T?(z=(T?L[0]:L[1])+D,W=L[0]+D,I=!!T):!a&&t[S]&&t[S].isNull&&(z=W=u),z!==void 0&&(c.push({plotX:e,plotY:z===null?g:n.getThreshold(z),isNull:I,isCliff:!0}),h.push({plotX:e,plotY:W===null?g:n.getThreshold(W),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let w=0,S=t.length;w<S;++w)a||(t[w].leftCliff=t[w].rightCliff=t[w].leftNull=t[w].rightNull=void 0),i=t[w].isNull,e=ds(t[w].rectPlotX,t[w].plotX),s=a?ds(t[w].yBottom,g):g,(!i||x)&&(x||m(w,w-1,"left"),i&&!a&&x||(c.push(t[w]),h.push({x:w,plotX:e,plotY:s})),x||m(w,w+1,"right"));let f=r.call(this,c,!0,!0);h.reversed=!0;let y=r.call(this,h,!0,!0),b=y[0];b&&b[0]==="M"&&(y[0]=["L",b[1],b[2]]);let v=f.concat(y);v.length&&v.push(["Z"]);let k=r.call(this,c,!1,x);return this.chart.series.length>1&&a&&c.some(w=>w.isCliff)&&(v.hasStackedCliffs=k.hasStackedCliffs=!0),v.xMap=f.xMap,this.areaPath=v,k}getStackPoints(t){let e=this,i=[],s=[],r=this.xAxis,o=this.yAxis,a=o.stacking.stacks[this.stackKey],n={},h=o.series,c=h.length,d=o.options.reversedStacks?1:-1,p=h.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];Bc(a,function(g,x){g.total!==null&&s.push(x)}),s.sort(function(g,x){return g-x});let u=h.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 v=b===1?"rightNull":"leftNull",k=a[s[x+b]],w=0;if(k){let S=p;for(;S>=0&&S<c;){let M=h[S].index;!(f=k.points[M])&&(M===e.index?n[g][v]=!0:u[S]&&(y=a[g].points[M])&&(w-=y[1]-y[0])),S+=d}}n[g][b===1?"rightCliff":"leftCliff"]=w});else{let b=p;for(;b>=0&&b<c;){let v=h[b].index;if(f=a[g].points[v]){m=f[1];break}b+=d}m=ds(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}}Lr.defaultOptions=Dc(Or.defaultOptions,{threshold:0,legendSymbol:"areaMarker"}),Ic(Lr.prototype,{singleStacks:!1}),gt.registerSeriesType("area",Lr);let{line:Ya}=gt.seriesTypes,{merge:Nc,pick:cs}=X;class Er extends Ya{getPointSpline(t,e,i){let s,r,o,a,n=e.plotX||0,h=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*h+x)/2.5,o=(1.5*n+m)/2.5,a=(1.5*h+f)/2.5,o!==s&&(y=(a-r)*(o-n)/(o-s)+h-a),r+=y,a+=y,r>x&&r>h?(r=Math.max(x,h),a=2*h-r):r<x&&r<h&&(r=Math.min(x,h),a=2*h-r),a>f&&a>h?(a=Math.max(f,h),r=2*h-a):a<f&&a<h&&(a=Math.min(f,h),r=2*h-a),e.rightContX=o,e.rightContY=a,e.controlPoints={low:[s,r],high:[o,a]}}let u=["C",cs(c.rightContX,c.plotX,0),cs(c.rightContY,c.plotY,0),cs(s,n,0),cs(r,h,0),n,h];return c.rightContX=c.rightContY=void 0,u}}Er.defaultOptions=Nc(Ya.defaultOptions),gt.registerSeriesType("spline",Er);let ja=Er,{area:zc,area:{prototype:Ir}}=gt.seriesTypes,{extend:Rc,merge:Wc}=X;class Dr extends ja{}Dr.defaultOptions=Wc(ja.defaultOptions,zc.defaultOptions),Rc(Dr.prototype,{getGraphPath:Ir.getGraphPath,getStackPoints:Ir.getStackPoints,drawGraph:Ir.drawGraph}),gt.registerSeriesType("areaspline",Dr);let{animObject:Xc}=St,{parse:Hc}=lt,{noop:Fc}=O,{clamp:ps,crisp:us,defined:$a,extend:Va,fireEvent:Ua,isArray:qa,isNumber:gs,merge:Br,pick:bi,objectEach:Gc}=X;class fs extends Nt{animate(t){let e,i,s=this,r=this.yAxis,o=r.pos,a=r.reversed,n=s.options,{clipOffset:h,inverted:c}=this.chart,d={},p=c?"translateX":"translateY";t&&h?(d.scaleY=.001,i=ps(r.toPixels(n.threshold||0),o,o+r.len),c?d.translateX=(i+=a?-Math.floor(h[0]):Math.ceil(h[2]))-r.len:d.translateY=i+=a?Math.ceil(h[0]):-Math.floor(h[2]),s.clipBox&&s.setClip(),s.group.attr(d)):(e=Number(s.group.attr(p)),s.group.animate({scaleY:1},Va(Xc(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(){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,h=0;e.grouping===!1?h=1:t.chart.series.forEach(function(x){let m,f=x.yAxis,y=x.options;x.type===t.type&&x.reserveSpace()&&s.len===f.len&&s.pos===f.pos&&(y.stacking&&y.stacking!=="group"?(a[n=x.stackKey]===void 0&&(a[n]=h++),m=a[n]):y.grouping!==!1&&(m=h++),x.columnIndex=m)});let c=Math.min(Math.abs(i.transA)*(!i.brokenAxis?.hasBreaks&&i.ordinal?.slope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),d=c*e.groupPadding,p=(c-2*d)/(h||1),u=Math.min(e.maxPointWidth||i.len,bi(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:h},t.columnMetrics}crispCol(t,e,i,s){let r=this.borderWidth,o=this.chart.inverted;return s=us(e+s,r,o)-(e=us(e,r,o)),this.options.crisp&&(i=us(t+i,r)-(t=us(t,r))),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){let r=this.xAxis.series.filter(h=>h.visible).map(h=>h.index),o=0,a=0;Gc(this.xAxis.stacking?.stacks,h=>{let c=typeof i.x=="number"?h[i.x.toString()]?.points:void 0,d=c?.[this.index],p={};if(c&&qa(d)){let u=this.index,g=Object.keys(c).filter(x=>!x.match(",")&&c[x]&&c[x].length>1).map(parseFloat).filter(x=>r.indexOf(x)!==-1).filter(x=>{let m=this.chart.series[x].options,f=m.stacking&&m.stack;if($a(f)){if(gs(p[f]))return u===x&&(u=p[f]),!1;p[f]=x}return!0}).sort((x,m)=>m-x);o=g.indexOf(u),a=g.length}}),o=this.xAxis.reversed?a-1-o:o;let n=(a-1)*s.paddedWidth+e;t=(i.plotX||0)+n/2-e-o*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=bi(i.borderWidth,+!s),o=t.xAxis,a=t.yAxis,n=i.threshold,h=bi(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)),Nt.prototype.translate.apply(t),t.points.forEach(function(f){let y=bi(f.yBottom,x),b=999+Math.abs(y),v=f.plotX||0,k=ps(f.plotY,-b,a.len+b),w,S=Math.min(k,y),M=Math.max(k,y)-S,C=d,L=v+p,T=m;h&&Math.abs(M)<h&&(M=h,w=!a.reversed&&!f.negative||a.reversed&&f.negative,gs(n)&&gs(g)&&f.y===n&&g<=n&&(a.min||0)<n&&(u!==g||(a.max||0)<=n)&&(w=!w,f.negative=!f.negative),S=Math.abs(S-x)>h?y-h:x-(w?h:0)),$a(f.options.pointWidth)&&(L-=Math.round(((C=T=Math.ceil(f.options.pointWidth))-d)/2)),i.centerInCategory&&(L=t.adjustForMissingColumns(L,C,f,c)),f.barX=L,f.pointWidth=C,f.tooltipPos=e.inverted?[ps(a.len+a.pos-e.plotLeft-k,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),o.len+o.pos-e.plotTop-L-T/2,M]:[o.left-e.plotLeft+L+T/2,ps(k+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(L,S,T,f.isNull?0:M)}),Ua(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,h,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?.isNull&&i.nullInteraction?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&&(h=(a=Br(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,c=a.color||h!==void 0&&Hc(c).brighten(a.brightness).get()||c,d=a[r]||d,u=a[o]||u,p=a.dashStyle||p,g=bi(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(h){let c=h.plotY,d=h.graphic,p=!!d,u=d&&s.pointCount<n?"animate":"attr";gs(c)&&(h.y!==null||o)?(e=h.shapeArgs,d&&h.hasNewShapeType()&&(d=d.destroy()),i.enabledDataSorting&&(h.startXPos=i.xAxis.reversed?-(e&&e.width||0):i.xAxis.width),!d&&(h.graphic=d=a[h.shapeType](e).add(h.group||i.group),d&&i.enabledDataSorting&&s.hasRendered&&s.pointCount<n&&(d.attr({x:h.startXPos}),p=!0,u="animate")),d&&p&&d[u](Br(e)),s.styledMode||d[u](i.pointAttribs(h,h.selected&&"select")).shadow(h.allowShadow!==!1&&r.shadow),d&&(d.addClass(h.getClassName(),!0),d.attr({visibility:h.visible?"inherit":"hidden"}))):d&&(h.graphic=d.destroy())})}drawTracker(t=this.points){let e,i=this,s=i.chart,r=s.pointer,o=function(a){r?.normalize(a);let n=r?.getPointFromEvent(a);r&&n&&i.options.enableMouseTracking&&(s.isInsidePlot(a.chartX-s.plotLeft,a.chartY-s.plotTop,{visiblePlotOnly:!0})||r?.inClass(a.target,"highcharts-data-label"))&&(r.isDirectTouch=!0,n.onMouseOver(a))};t.forEach(function(a){e=qa(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?.onTrackerMouseOut(n)}).on("touchstart",o),!s.styledMode&&i.options.cursor&&i[a].css({cursor:i.options.cursor}))}),i._hasTracking=!0),Ua(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(i){i.type===t.type&&(i.isDirty=!0)}),Nt.prototype.remove.apply(t,arguments)}}fs.defaultOptions=Br(Nt.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"}),Va(fs.prototype,{directTouch:!0,getSymbol:Fc,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),gt.registerSeriesType("column",fs);let ms=fs,{getDeferredAnimation:Yc}=St,{format:jc}=Gt,{defined:Ee,extend:Za,fireEvent:Nr,getAlignFactor:Ka,isArray:me,isString:vi,merge:ki,objectEach:$c,pick:wi,pInt:Vc,splat:_a}=X;(function(l){function t(){return n(this).some(c=>c?.enabled)}function e(c,d,p,u,g){let{chart:x,enabledDataSorting:m}=this,f=this.isCartesian&&x.inverted,y=c.plotX,b=c.plotY,v=p.rotation||0,k=Ee(y)&&Ee(b)&&x.isInsidePlot(y,Math.round(b),{inverted:f,paneCoordinates:!0,series:this}),w=v===0&&wi(p.overflow,m?"none":"justify")==="justify",S=this.visible&&c.visible!==!1&&Ee(y)&&(c.series.forceDL||m&&!w||k||wi(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 C;let L=d.getBBox(),T=d.getBBox(void 0,0);if(u=Za({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"]=this.yAxis?.len||0),Za(p,{width:L.width,height:L.height}),C=u,m&&this.xAxis&&!w&&this.setDataLabelStartPos(c,d,g,k,C),d.align(ki(p,{width:T.width,height:T.height}),!1,u,!1),d.alignAttr.x+=Ka(p.align)*(T.width-L.width),d.alignAttr.y+=Ka(p.verticalAlign)*(T.height-L.height),d[d.placed?"animate":"attr"]({"text-align":d.alignAttr["text-align"]||"center",x:d.alignAttr.x+(L.width-T.width)/2,y:d.alignAttr.y+(L.height-T.height)/2,rotationOriginX:(d.width||0)/2,rotationOriginY:(d.height||0)/2}),w&&u.height>=0)this.justifyDataLabel(d,p,d.alignAttr,L,u,g);else if(wi(p.crop,!0)){let{x:D,y:z}=d.alignAttr;S=x.isInsidePlot(D,z,{paneCoordinates:!0,series:this})&&x.isInsidePlot(D+L.width-1,z+L.height-1,{paneCoordinates:!0,series:this})}p.shape&&!v&&d[g?"attr":"animate"]({anchorX:M[0],anchorY:M[1]})}g&&m&&(d.placed=!1),S||m&&!w?(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,this.chart.dataLabelsGroup)}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){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(vi(f)&&f||vi(m)&&m||"#000000"),b=n(p),{animation:v,defer:k}=b[0],w=k?Yc(u,v,p):{defer:0,duration:0};Nr(this,"drawDataLabels"),p.hasDataLabels?.()&&(d=this.initDataLabels(w),c.forEach(S=>{let M=S.dataLabels||[],C=S.color||p.color;_a(a(b,S.dlOptions||S.options?.dataLabels)).forEach((T,D)=>{let z=T.enabled&&(S.visible||S.dataLabelOnHidden)&&(!S.isNull||S.dataLabelOnNull)&&(function(ot,at){let et=at.filter;if(et){let pt=et.operator,It=ot[et.property],zt=et.value;return pt===">"&&It>zt||pt==="<"&&It<zt||pt===">="&&It>=zt||pt==="<="&&It<=zt||pt==="=="&&It==zt||pt==="==="&&It===zt||pt==="!="&&It!=zt||pt==="!=="&&It!==zt||!1}return!0})(S,T),{backgroundColor:W,borderColor:I,distance:N,style:R={}}=T,it,K,Et,G={},F=M[D],tt=!F,Z;z&&(K=Ee(it=wi(T[S.formatPrefix+"Format"],T.format))?jc(it,S,u):(T[S.formatPrefix+"Formatter"]||T.formatter).call(S,T),Et=T.rotation,!u.styledMode&&(R.color=wi(T.color,R.color,vi(p.color)?p.color:void 0,"#000000"),R.color==="contrast"?(W!=="none"&&(Z=W),S.contrastColor=x.getContrast(Z!=="auto"&&vi(Z)&&Z||(vi(C)?C:"")),R.color=Z||!Ee(N)&&T.inside||0>Vc(N||0)||g.stacking?S.contrastColor:y):delete S.contrastColor,g.cursor&&(R.cursor=g.cursor)),G={r:T.borderRadius||0,rotation:Et,padding:T.padding,zIndex:1},u.styledMode||(G.fill=W==="auto"?S.color:W,G.stroke=I==="auto"?S.color:I,G["stroke-width"]=T.borderWidth),$c(G,(ot,at)=>{ot===void 0&&delete G[at]})),!F||z&&Ee(K)&&!!(F.div||F.text?.foreignObject)==!!T.useHTML&&(F.rotation&&T.rotation||F.rotation===T.rotation)||(F=void 0,tt=!0),z&&Ee(K)&&K!==""&&(F?G.text=K:(F=x.label(K,0,0,T.shape,void 0,void 0,T.useHTML,void 0,"data-label")).addClass(" highcharts-data-label-color-"+S.colorIndex+" "+(T.className||"")+(T.useHTML?" highcharts-tracker":"")),F&&(F.options=T,F.attr(G),u.styledMode?R.width&&F.css({width:R.width,textOverflow:R.textOverflow,whiteSpace:R.whiteSpace}):F.css(R).shadow(T.shadow),Nr(F,"beforeAddingDataLabel",{labelOptions:T,point:S}),F.added||F.add(d),p.alignDataLabel(S,F,T,void 0,tt),F.isActive=!0,M[D]&&M[D]!==F&&M[D].destroy(),M[D]=F))});let L=M.length;for(;L--;)M[L]?.isActive?M[L].isActive=!1:(M[L]?.destroy(),M.splice(L,1));S.dataLabel=M[0],S.dataLabels=M})),Nr(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,v=m.inverted?this.yAxis:this.xAxis,k=v?v.left-m.plotLeft:0,w=m.inverted?this.xAxis:this.yAxis,S=w?w.top-m.plotTop:0,{x:M=0,y:C=0}=d,L,T;return(L=(p.x||0)+b+k)<0&&(f==="right"&&M>=0?(d.align="left",d.inside=!0):M-=L,T=!0),(L=(p.x||0)+u.width-b+k)>m.plotWidth&&(f==="left"&&M<=0?(d.align="right",d.inside=!0):M+=m.plotWidth-L,T=!0),(L=p.y+b+S)<0&&(y==="bottom"&&C>=0?(d.verticalAlign="top",d.inside=!0):C-=L,T=!0),(L=(p.y||0)+u.height-b+S)>m.plotHeight&&(y==="top"&&C<=0?(d.verticalAlign="bottom",d.inside=!0):C+=m.plotHeight-L,T=!0),T&&(d.x=M,d.y=C,c.placed=!x,c.align(d,void 0,g)),T}function a(c,d){let p=[],u;if(me(c)&&!me(d))p=c.map(function(g){return ki(g,d)});else if(me(d)&&!me(c))p=d.map(function(g){return ki(c,g)});else if(me(c)||me(d)){if(me(c)&&me(d))for(u=Math.max(c.length,d.length);u--;)p[u]=ki(c[u],d[u])}else p=ki(c,d);return p}function n(c){let d=c.chart.options.plotOptions;return _a(a(a(d?.series?.dataLabels,d?.[c.type]?.dataLabels),c.options.dataLabels))}function h(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,v=c.pointWidth,k=v?v/2:0;d.startXPos=m?g.x:y?-b-k:f.width-b+k,d.startYPos=m?y?this.yAxis.height-b+k:-b-k: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)}l.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=h,d.hasDataLabels=t)}})(Qe||(Qe={}));let xs=Qe,{composed:Uc}=O,{series:Ja}=gt,{merge:qc,pushUnique:Zc}=X;(function(l){function t(e,i,s,r,o){let{chart:a,options:n}=this,h=a.inverted,c=this.xAxis?.len||a.plotSizeX||0,d=this.yAxis?.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=qc(p),s.overflow!=="allow"||s.crop!==!1||n.clip!==!1){r.y<0&&(r.height+=r.y,r.y=0);let x=r.y+r.height-d;x>0&&x<r.height-1&&(r.height-=x)}h&&(r={x:d-r.y-r.height,y:c-r.x-r.width,width:r.height,height:r.width}),g||(h?(r.x+=u?0:r.width,r.width=0):(r.y+=u?r.height:0,r.height=0))}s.align??(s.align=!h||g?"center":u?"right":"left"),s.verticalAlign??(s.verticalAlign=h||g?"middle":u?"top":"bottom"),Ja.prototype.alignDataLabel.call(this,e,i,s,r,o),s.inside&&e.contrastColor&&i.css({color:e.contrastColor})}l.compose=function(e){xs.compose(Ja),Zc(Uc,"ColumnDataLabel")&&(e.prototype.alignDataLabel=t)}})(Mt||(Mt={}));let Kc=Mt,{extend:_c,merge:Jc}=X;class zr extends ms{}zr.defaultOptions=Jc(ms.defaultOptions,{}),_c(zr.prototype,{inverted:!0}),gt.registerSeriesType("bar",zr);let{column:Qc,line:Qa}=gt.seriesTypes,{addEvent:tp,extend:ep,merge:ip}=X;class ys extends Qa{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()}`,h=t[`${o}Axis`],c=e[o]*h.transA;if(h&&!h.logarithmic){let d=Math.max(0,(s[n]||0)-c),p=Math.min(h.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())}}ys.defaultOptions=ip(Qa.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/>"}}),ep(ys.prototype,{drawTracker:Qc.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),tp(ys,"afterTranslate",function(){this.applyJitter()}),gt.registerSeriesType("scatter",ys);let{deg2rad:tn}=O,{fireEvent:sp,isNumber:Rr,pick:bs,relativeLength:rp}=X;(function(l){l.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,h,c=t.size,d=t.innerSize||0,p,u;typeof c=="string"&&(c=parseFloat(c)),typeof d=="string"&&(d=parseFloat(d));let g=[bs(o?.[0],"50%"),bs(o?.[1],"50%"),bs(c&&c<0?void 0:t.size,"100%"),bs(d&&d<0?void 0:t.innerSize||0,"0%")];for(!e.angular||this instanceof Nt||(g[3]=0),p=0;p<4;++p)u=g[p],h=p<2||p===2&&/%$/.test(u),g[p]=rp(u,[s,r,a,g[2]][p])+(h?i:0);return g[3]>g[2]&&(g[3]=g[2]),Rr(n)&&2*n<g[2]&&n>0&&(g[3]=g[2]-2*n),sp(this,"afterGetCenter",{positions:g}),g},l.getStartAndEndRadians=function(t,e){let i=Rr(t)?t:0,s=Rr(e)&&e>i&&e-i<360?e:i+360;return{start:tn*(i+-90),end:tn*(s+-90)}}})(J||(J={}));let en=J,{setAnimation:op}=St,{addEvent:sn,defined:ap,extend:np,isNumber:lp,pick:hp,relativeLength:dp}=X;class rn extends de{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")};sn(this,"select",s),sn(this,"unselect",s)}isValid(){return lp(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;op(i,s.chart),e=hp(e,!0),this.sliced=this.options.sliced=t=ap(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}np(rn.prototype,{connectorShapes:{fixedOffset:function(l,t,e){let i=t.breakAt,s=t.touchingSliceAt,r=e.softConnector?["C",l.x+(l.alignment==="left"?-5:5),l.y,2*i.x-s.x,2*i.y-s.y,i.x,i.y]:["L",i.x,i.y];return[["M",l.x,l.y],r,["L",s.x,s.y]]},straight:function(l,t){let e=t.touchingSliceAt;return[["M",l.x,l.y],["L",e.x,e.y]]},crookedLine:function(l,t,e){let{angle:i=this.angle||0,breakAt:s,touchingSliceAt:r}=t,{series:o}=this,[a,n,h]=o.center,c=h/2,{plotLeft:d,plotWidth:p}=o.chart,u=l.alignment==="left",{x:g,y:x}=l,m=s.x;if(e.crookDistance){let y=dp(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:cp}=en,{noop:on}=O,{clamp:pp,extend:up,fireEvent:an,merge:Wr,pick:gp}=X;class Xr extends Nt{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:gp(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:Do.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?.distance||0,h=Math.asin(pp((t-r[1])/(o+n),-1,1));return r[0]+Math.cos(h)*(o+n)*(e?-1:1)+(n>0?(e?-1:1)*(s.padding||0):0)}hasData(){return this.points.some(t=>t.visible)}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||Wr(!0,n,i),Wr(!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){an(this,"translate"),this.generatePoints();let e=this.options,i=e.slicedOffset,s=cp(e.startAngle,e.endAngle),r=this.startAngleRad=s.start,o=(this.endAngleRad=s.end)-r,a=this.points,n=e.ignoreHiddenPoint,h=a.length,c,d,p,u,g,x,m,f=0;for(t||(this.center=t=this.getCenter()),x=0;x<h;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}an(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}}Xr.defaultOptions=Wr(Nt.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}}}),up(Xr.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:ms.prototype.drawTracker,getCenter:en.getCenter,getSymbol:on,invertible:!1,isCartesian:!1,noSharedTooltip:!0,pointAttribs:ms.prototype.pointAttribs,pointClass:rn,requireSorting:!1,searchPoint:on,trackerGroups:["group","dataLabelsGroup"]}),gt.registerSeriesType("pie",Xr);let{composed:fp,noop:mp}=O,{distribute:xp}=Bi,{series:nn}=gt,{arrayMax:yp,clamp:ln,defined:hn,isNumber:bp,pick:vp,pushUnique:kp,relativeLength:dn}=X;(function(l){let t={radialDistributionY:function(o,a){return(a.dataLabelPosition?.top||0)+o.distributeBox.pos},radialDistributionX:function(o,a,n,h,c){let d=c.dataLabelPosition;return o.getX(n<(d?.top||0)+2||n>(d?.bottom||0)-2?h:n,a.half,a,c)},justify:function(o,a,n,h){return h[0]+(o.half?-1:1)*(n+(a.dataLabelPosition?.distance||0))},alignToPlotEdges:function(o,a,n,h){let c=o.getBBox().width;return a?c+h:n-c-h},alignToConnectors:function(o,a,n,h){let c=0,d;return o.forEach(function(p){(d=p.dataLabel.getBBox().width)>c&&(c=d)}),a?c+h:n-c-h}};function e(o,a){let n=Math.PI/2,{start:h=0,end:c=0}=o.shapeArgs||{},d=o.angle||0;a>0&&h<n&&c>n&&d>n/2&&d<1.5*n&&(d=d<=n?Math.max(n/2,(h+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(){let o=this,a=o.points,n=o.chart,h=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,v,k,w=0;o.visible&&o.hasDataLabels?.()&&(a.forEach(S=>{(S.dataLabels||[]).forEach(M=>{M.shortened&&(M.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),M.shortened=!1)})}),nn.prototype.drawDataLabels.apply(o),a.forEach(S=>{(S.dataLabels||[]).forEach((M,C)=>{let L=u[2]/2,T=M.options,D=dn(T?.distance||0,L);C===0&&m[S.half].push(S),!hn(T?.style?.width)&&M.getBBox().width>p&&(M.css({width:Math.round(.7*p)+"px"}),M.shortened=!0),M.dataLabelPosition=this.getDataLabelPosition(S,D),w=Math.max(w,D)})}),m.forEach((S,M)=>{let C=S.length,L=[],T,D,z=0,W;C&&(o.sortByAngle(S,M-.5),w>0&&(T=Math.max(0,x-g-w),D=Math.min(x+g+w,n.plotHeight),S.forEach(I=>{(I.dataLabels||[]).forEach(N=>{let R=N.dataLabelPosition;R&&R.distance>0&&(R.top=Math.max(0,x-g-R.distance),R.bottom=Math.min(x+g+R.distance,n.plotHeight),z=N.getBBox().height||21,N.lineHeight=n.renderer.fontMetrics(N.text||N).h+2*N.padding,I.distributeBox={target:(N.dataLabelPosition?.natural.y||0)-R.top+N.lineHeight/2,size:z,rank:I.y},L.push(I.distributeBox))})}),xp(L,W=D+z-T,W/5)),S.forEach(I=>{(I.dataLabels||[]).forEach(N=>{let R=N.options||{},it=I.distributeBox,K=N.dataLabelPosition,Et=K?.natural.y||0,G=R.connectorPadding||0,F=N.lineHeight||21,tt=(F-N.getBBox().height)/2,Z=0,ot=Et,at="inherit";if(K){if(L&&hn(it)&&K.distance>0&&(it.pos===void 0?at="hidden":(k=it.size,ot=y.radialDistributionY(I,N))),R.justify)Z=y.justify(I,N,g,u);else switch(R.alignTo){case"connectors":Z=y.alignToConnectors(S,M,h,d);break;case"plotEdges":Z=y.alignToPlotEdges(N,M,h,d);break;default:Z=y.radialDistributionX(o,I,ot-tt,Et,N)}if(K.attribs={visibility:at,align:K.alignment},K.posAttribs={x:Z+(R.x||0)+({left:G,right:-G}[K.alignment]||0),y:ot+(R.y||0)-F/2},K.computed.x=Z,K.computed.y=ot-tt,vp(R.crop,!0)){let et;Z-(v=N.getBBox().width)<G&&M===1?(et=Math.round(v-Z+G),f[3]=Math.max(et,f[3])):Z+v>h-G&&M===0&&(et=Math.round(Z+v-h+G),f[1]=Math.max(et,f[1])),ot-k/2<0?f[0]=Math.max(Math.round(-ot+k/2),f[0]):ot+k/2>c&&(f[2]=Math.max(Math.round(ot+k/2-c),f[2])),K.sideOverflow=et}}})}))}),(yp(f)===0||this.verifyDataLabelOverflow(f))&&(this.placeDataLabels(),this.points.forEach(S=>{(S.dataLabels||[]).forEach(M=>{let{connectorColor:C,connectorWidth:L=1}=M.options||{},T=M.dataLabelPosition;if(bp(L)){let D;b=M.connector,T&&T.distance>0?(D=!b,b||(M.connector=b=n.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+S.colorIndex+(S.className?" "+S.className:"")).add(o.dataLabelsGroup)),n.styledMode||b.attr({"stroke-width":L,stroke:C||S.color||"#666666"}),b[D?"attr":"animate"]({d:S.getConnectorPath(M)}),b.attr({visibility:T.attribs?.visibility})):b&&(M.connector=b.destroy())}})})))}function s(){this.points.forEach(o=>{(o.dataLabels||[]).forEach(a=>{let n=a.dataLabelPosition;n?(n.sideOverflow&&(a.css({width:Math.max(a.getBBox().width-n.sideOverflow,0)+"px",textOverflow:a.options?.style?.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,h=n.center,c=n.minSize||80,d=c,p=n.size!==null;return!p&&(h[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),h[1]!==null?d=ln(d,c,a[2]-Math.max(o[0],o[2])):(d=ln(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,dn(n.innerSize||0,d)),d),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):p=!0),p}l.compose=function(o){if(xs.compose(nn),kp(fp,"PieDataLabel")){let a=o.prototype;a.dataLabelPositioners=t,a.alignDataLabel=mp,a.drawDataLabels=i,a.getDataLabelPosition=e,a.placeDataLabels=s,a.verifyDataLabelOverflow=r}}})(ut||(ut={}));let wp=ut;(function(l){l.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}},l.getDistanceBetweenPoints=function(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))},l.getAngleBetweenPoints=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)},l.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,h]=i[r],[c,d]=i[o];h>e!=d>e&&t<(c-n)*(e-h)/(d-h)+n&&(a=!a)}return a}})(mt||(mt={}));let{pointInPolygon:Mp}=mt,{addEvent:Sp,getAlignFactor:Tp,fireEvent:cn,objectEach:pn,pick:Cp}=X;function Ap(l){let t=l.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(Mp({x:p[0],y:p[1]},d))return!0;return!1},s,r,o,a,n,h=!1;for(let c=0;c<t;c++)(s=l[c])&&(s.oldOpacity=s.opacity,s.newOpacity=1,s.absoluteBox=(function(d){if(d&&(!d.alignAttr||d.placed)){let p=d.box?0:d.padding||0,u=d.alignAttr||{x:d.attr("x"),y:d.attr("y")},{height:g,polygon:x,width:m}=d.getBBox(),f=Tp(d.alignValue)*m;return d.width=m,d.height=g,{x:u.x+(d.parentGroup?.translateX||0)+p-f,y:u.y+(d.parentGroup?.translateY||0)+p,width:m-2*p,height:g-2*p,polygon:x}}})(s));l.sort((c,d)=>(d.labelrank||0)-(c.labelrank||0));for(let c=0;c<t;++c){a=(r=l[c])&&r.absoluteBox;let d=a?.polygon;for(let p=c+1;p<t;++p){n=(o=l[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?.element.querySelector("textPath")&&m.hide()}}}}for(let c of l)un(c,this)&&(h=!0);h&&cn(this,"afterHideAllOverlappingLabels")}function un(l,t){let e,i=!1;return l&&(e=l.newOpacity,l.oldOpacity!==e&&(l.hasClass("highcharts-data-label")?(l[e?"removeClass":"addClass"]("highcharts-data-label-hidden"),i=!0,l[l.isOld?"animate":"attr"]({opacity:e},void 0,function(){t.styledMode||l.css({pointerEvents:e?"auto":"none"})}),cn(t,"afterHideOverlappingLabel")):l.attr({opacity:e})),l.isOld=!0),i}function Pp(){let l=this,t=[];for(let e of l.labelCollectors||[])t=t.concat(e());for(let e of l.yAxis||[])e.stacking&&e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&pn(e.stacking.stacks,i=>{pn(i,s=>{s.label&&t.push(s.label)})});for(let e of l.series||[])if(e.visible&&e.hasDataLabels?.()){let i=s=>{for(let r of s)r.visible&&(r.dataLabels||[]).forEach(o=>{let a=o.options||{};o.labelrank=Cp(a.labelrank,r.labelrank,r.shapeArgs?.height),a.allowOverlap??Number(a.distance)>0?(o.oldOpacity=o.opacity,o.newOpacity=1,un(o,l)):t.push(o)})};i(e.nodes||[]),i(e.points)}this.hideOverlappingLabels(t)}let gn={compose:function(l){let t=l.prototype;t.hideOverlappingLabels||(t.hideOverlappingLabels=Ap,Sp(l,"render",Pp))}},{defaultOptions:Op}=Ft,{noop:fn}=O,{addEvent:mn,extend:Lp,isObject:xn,merge:Ep,relativeLength:Hr}=X,Ip={radius:0,scope:"stack",where:void 0},yn=fn,bn=fn;function Dp(l,t,e,i,s={}){let r=yn(l,t,e,i,s),{brStart:o=!0,brEnd:a=!0,innerR:n=0,r:h=e,start:c=0,end:d=0}=s;if(s.open||!s.borderRadius)return r;let p=d-c,u=Math.sin(p/2),g=Math.max(Math.min(Hr(s.borderRadius||0,h-n),(h-n)/2,h*u/(1+u)),0),x=Math.min(g,p/Math.PI*2*n),m=r.length-1;for(;m--;)(o||m!==0&&m!==3)&&(a||m!==1&&m!==2)&&(function(f,y,b){let v,k,w,S=f[y],M=f[y+1];if(M[0]==="Z"&&(M=f[0]),(S[0]==="M"||S[0]==="L")&&M[0]==="A"?(v=S,k=M,w=!0):S[0]==="A"&&(M[0]==="M"||M[0]==="L")&&(v=M,k=S),v&&k&&k.params){let C=k[1],L=k[5],T=k.params,{start:D,end:z,cx:W,cy:I}=T,N=L?C-b:C+b,R=N?Math.asin(b/N):0,it=L?R:-R,K=Math.cos(R)*N;w?(T.start=D+it,v[1]=W+K*Math.cos(D),v[2]=I+K*Math.sin(D),f.splice(y+1,0,["A",b,b,0,0,1,W+C*Math.cos(T.start),I+C*Math.sin(T.start)])):(T.end=z-it,k[6]=W+C*Math.cos(T.end),k[7]=I+C*Math.sin(T.end),f.splice(y+1,0,["A",b,b,0,0,1,W+K*Math.cos(z),I+K*Math.sin(z)])),k[4]=Math.abs(T.end-T.start)<Math.PI?0:1}})(r,m,m>1?x:g);return r}function Bp(){if(this.options.borderRadius&&!(this.chart.is3d&&this.chart.is3d())){let{options:l,yAxis:t}=this,e=l.stacking==="percent",i=Op.plotOptions?.[this.type]?.borderRadius,s=Fr(l.borderRadius,xn(i)?i:{}),r=t.options.reversed;for(let o of this.points){let{shapeArgs:a}=o;if(o.shapeType==="roundedRect"&&a){let{width:n=0,height:h=0,y:c=0}=a,d=c,p=h;if(s.scope==="stack"&&o.stackTotal){let m=t.translate(e?100:o.stackTotal,!1,!0,!1,!0),f=t.translate(l.threshold||0,!1,!0,!1,!0),y=this.crispCol(0,Math.min(m,f),0,Math.abs(m-f));d=y.y,p=y.height}let u=(o.negative?-1:1)*(r?-1:1)==-1,g=s.where;!g&&this.is("waterfall")&&Math.abs((o.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(g="all"),g||(g="end");let x=Math.min(Hr(s.radius,n),n/2,g==="all"?h/2:1/0)||0;g==="end"&&(u&&(d-=x),p+=x),Lp(a,{brBoxHeight:p,brBoxY:d,r:x})}}}}function Fr(l,t){return xn(l)||(l={radius:l||0}),Ep(Ip,t,l)}function Np(){let l=Fr(this.options.borderRadius);for(let t of this.points){let e=t.shapeArgs;e&&(e.borderRadius=Hr(l.radius,(e.r||0)-(e.innerR||0)))}}function zp(l,t,e,i,s={}){let r=bn(l,t,e,i,s),{r:o=0,brBoxHeight:a=i,brBoxY:n=t}=s,h=t-n,c=n+a-(t+i),d=h-o>-.1?0:o,p=c-o>-.1?0:o,u=Math.max(d&&h,0),g=Math.max(p&&c,0),x=[l+d,t],m=[l+e-d,t],f=[l+e,t+d],y=[l+e,t+i-p],b=[l+e-p,t+i],v=[l+p,t+i],k=[l,t+i-p],w=[l,t+d],S=(M,C)=>Math.sqrt(Math.pow(M,2)-Math.pow(C,2));if(u){let M=S(d,d-u);x[0]-=M,m[0]+=M,f[1]=w[1]=t+d-u}if(i<d-u){let M=S(d,d-u-i);f[0]=y[0]=l+e-d+M,b[0]=Math.min(f[0],b[0]),v[0]=Math.max(y[0],v[0]),k[0]=w[0]=l+d-M,f[1]=w[1]=t+i}if(g){let M=S(p,p-g);b[0]+=M,v[0]-=M,y[1]=k[1]=t+i-p+g}if(i<p-g){let M=S(p,p-g-i);f[0]=y[0]=l+e-p+M,m[0]=Math.min(f[0],m[0]),x[0]=Math.max(y[0],x[0]),k[0]=w[0]=l+p-M,y[1]=k[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",...v],["A",p,p,0,0,1,...k],["L",...w],["A",d,d,0,0,1,...x],["Z"]),r}let{diffObjects:Rp,extend:Wp,find:Xp,merge:Hp,pick:vs,uniqueKey:Fp}=X;(function(l){function t(i,s){let r=i.condition;(r.callback||function(){return this.chartWidth<=vs(r.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=vs(r.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=vs(r.minWidth,0)&&this.chartHeight>=vs(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=Fp()),this.matchResponsiveRule(d,a)},this);let h=Hp(...a.map(d=>Xp(r?.rules||[],p=>p._id===d)).map(d=>d?.chartOptions));h.isResponsiveOptions=!0,a=a.toString()||void 0;let c=o?.ruleIds;a!==c&&(o&&(this.currentResponsive=void 0,this.updatingResponsive=!0,this.update(o.undoOptions,i,!0),this.updatingResponsive=!1),a?((n=Rp(h,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:a,mergedOptions:h,undoOptions:n},this.updatingResponsive||this.update(h,i,!0)):this.currentResponsive=void 0)}l.compose=function(i){let s=i.prototype;return s.matchResponsiveRule||Wp(s,{matchResponsiveRule:t,setResponsive:e}),i}})(Be||(Be={}));let Gp=Be;O.AST=nt,O.Axis=Ye,O.Chart=ge,O.Color=lt,O.DataLabel=xs,O.DataTableCore=ss,O.Fx=Ot,O.HTMLElement=Fe,O.Legend=Ca,O.LegendSymbol=pa,O.OverlappingDataLabels=O.OverlappingDataLabels||gn,O.PlotLineOrBand=Ji,O.Point=de,O.Pointer=ha,O.RendererRegistry=oi,O.Series=Nt,O.SeriesRegistry=gt,O.StackItem=Wa,O.SVGElement=Kt,O.SVGRenderer=Gi,O.Templating=Gt,O.Tick=Ge,O.Time=Os,O.Tooltip=ra,O.animate=St.animate,O.animObject=St.animObject,O.chart=ge.chart,O.color=lt.parse,O.dateFormat=Gt.dateFormat,O.defaultOptions=Ft.defaultOptions,O.distribute=Bi.distribute,O.format=Gt.format,O.getDeferredAnimation=St.getDeferredAnimation,O.getOptions=Ft.getOptions,O.numberFormat=Gt.numberFormat,O.seriesType=gt.seriesType,O.setAnimation=St.setAnimation,O.setOptions=Ft.setOptions,O.stop=St.stop,O.time=Ft.defaultTime,O.timers=Ot.timers,{compose:function(l,t,e){let i=l.types.pie;if(!t.symbolCustomAttribs.includes("borderRadius")){let s=e.prototype.symbols;mn(l,"afterColumnTranslate",Bp,{order:9}),mn(i,"afterTranslate",Np),t.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY","brEnd","brStart"),yn=s.arc,bn=s.roundedRect,s.arc=Dp,s.roundedRect=zp}},optionsToObject:Fr}.compose(O.Series,O.SVGElement,O.SVGRenderer),Kc.compose(O.Series.types.column),xs.compose(O.Series),Lh.compose(O.Axis),Fe.compose(O.SVGRenderer),Ca.compose(O.Chart),Dh.compose(O.Axis),gn.compose(O.Chart),wp.compose(O.Series.types.pie),Ji.compose(O.Chart,O.Axis),ha.compose(O.Chart),Gp.compose(O.Chart),mi.compose(O.Axis,O.Chart,O.Series),Oc.compose(O.Axis,O.Chart,O.Series),ra.compose(O.Pointer),X.extend(O,X);let Yp=O;return ve.default})())})(ws)),ws.exports}var wn;function xu(){return wn||(wn=1,(function(P,A){(function(Y,V){P.exports=V(mu(),Kp())})(self,((Y,V)=>(()=>{var j={879:$=>{$.exports=Y},744:$=>{$.exports=V}},B={};function E($){var st=B[$];if(st!==void 0)return st.exports;var At=B[$]={exports:{}};return j[$](At,At.exports,E),At.exports}E.n=$=>{var st=$&&$.__esModule?()=>$.default:()=>$;return E.d(st,{a:st}),st},E.d=($,st)=>{for(var At in st)E.o(st,At)&&!E.o($,At)&&Object.defineProperty($,At,{enumerable:!0,get:st[At]})},E.o=($,st)=>Object.prototype.hasOwnProperty.call($,st),E.r=$=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty($,Symbol.toStringTag,{value:"Module"}),Object.defineProperty($,"__esModule",{value:!0})};var U={};return(()=>{E.r(U),E.d(U,{Chart:()=>Je,default:()=>Qe});var $=E(879),st=E.n($),At=function Mt(J,ut){var mt=st().isArray(J)?[]:{};function Be(Rt,ve){!st().isObject(Rt,!ut)||st().isClass(Rt)||st().isDOMElement(Rt)?mt[ve]=Rt:mt[ve]=Mt(Rt,ut)}return st().isArray(J)?J.forEach((function(Rt,ve){return Be(Rt,ve)})):st().objectEach(J,Be),mt},Ke=E(744);function _e(Mt){return(function(J){if(Array.isArray(J))return be(J)})(Mt)||(function(J){if(typeof Symbol<"u"&&J[Symbol.iterator]!=null||J["@@iterator"]!=null)return Array.from(J)})(Mt)||(function(J,ut){if(J){if(typeof J=="string")return be(J,ut);var mt=Object.prototype.toString.call(J).slice(8,-1);if(mt==="Object"&&J.constructor&&(mt=J.constructor.name),mt==="Map"||mt==="Set")return Array.from(J);if(mt==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(mt))return be(J,ut)}})(Mt)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function be(Mt,J){(J==null||J>Mt.length)&&(J=Mt.length);for(var ut=0,mt=new Array(J);ut<J;ut++)mt[ut]=Mt[ut];return mt}const De=function(Mt){var J=this;return{render:function(){return(0,Ke.h)("div",{ref:"chart"})},beforeUnmount:function(){var ut;return J==null||(ut=J.chart)===null||ut===void 0?void 0:ut.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(ut){var mt;(mt=this.chart).update.apply(mt,[At(ut,this.deepCopyOnUpdate)].concat(_e(this.updateArgs)))},deep:!0}},mounted:function(){var ut=this.highcharts||Mt;ut[this.constructorType]?this.options?this.chart=ut[this.constructorType](this.$refs.chart,At(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 Je=De(st());function Qe(Mt){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Mt.component(J.tagName||"highcharts",De(J.highcharts||st()))}})(),U})()))})(Gr)),Gr.exports}var Iu=xu();const yu={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"},bu={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},vu={class:"font-semibold text-gray-900 dark:text-white"},ku={class:"font-semibold text-gray-900 dark:text-white"},wu={class:"inline-flex items-stretch font-mono -space-x-px"},Mu={key:0},Su=["onClick"],Tu={"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"},Cu=["onClick"],Au={key:1},ks="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",Du=$r({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(P,{emit:A}){const Y=P,V=A,j=Mn({get(){return Y.pagination},set(B){V("update:pagination",B)}});return(B,E)=>(Tt(),Ct("nav",yu,[_("span",bu,[E[4]||(E[4]=Ai(" Showing ",-1)),_("span",vu,Xt(yt(j).currentLeft)+"-"+Xt(Math.max(0,yt(j).currentRight-1)),1),E[5]||(E[5]=Ai(" of ",-1)),_("span",ku,Xt(yt(j).totalSize),1)]),_("ul",wu,[_("li",null,[_("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:E[0]||(E[0]=U=>yt(j).onPageChange({diff:-1}))},[...E[6]||(E[6]=[_("span",{class:"sr-only"},"Previous",-1),_("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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)])])]),yt(j).currentPage!==0?(Tt(),Ct("li",Mu,[_("a",{class:Bt(ks),hover:"cursor-pointer",onClick:E[1]||(E[1]=U=>yt(j).onPageChange({to:0}))}," 1 ")])):jr("",!0),(Tt(!0),Ct(Ti,null,Ci(yt(j).leftDecrPage,U=>(Tt(),Ct("li",{key:U},[_("a",{class:Bt(ks),hover:"cursor-pointer",onClick:$=>yt(j).onPageChange({to:U})},Xt(U+1),9,Su)]))),128)),_("li",null,[_("a",Tu,Xt(yt(j).currentPage+1),1)]),(Tt(!0),Ct(Ti,null,Ci(yt(j).rightIncrPage,U=>(Tt(),Ct("li",{key:U},[_("a",{hover:"cursor-pointer",class:Bt(ks),onClick:$=>yt(j).onPageChange({to:U})},Xt(U+1),9,Cu)]))),128)),yt(j).currentPage!==yt(j).totalPage-1&&yt(j).totalPage>1?(Tt(),Ct("li",Au,[_("a",{hover:"cursor-pointer",class:Bt(ks),onClick:E[2]||(E[2]=U=>yt(j).onPageChange({to:yt(j).totalPage-1}))},Xt(yt(j).totalPage),1)])):jr("",!0),_("li",null,[_("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:E[3]||(E[3]=U=>yt(j).onPageChange({diff:1}))},[...E[7]||(E[7]=[_("span",{class:"sr-only"},"Next",-1),_("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("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 Bu{constructor(){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 A=[];let Y=1,V=this.currentPage-Y;for(;V>0;)A.push(V),Y=Y<<1,V-=Y;return A.reverse()}get rightIncrPage(){const A=[];let Y=1,V=this.currentPage+Y;for(;V+1<this.totalPage;)A.push(V),Y=Y<<1,V+=Y;return A}onPageChange(A){const Y=this.totalPage;let V=this.currentPage;if(A?.to!==void 0&&(V=A.to),A?.diff!==void 0){const j=A.diff;V=V+j}V<0||V>=Y||(this.currentPage=V)}}export{Bu as P,Lu as T,Eu as _,Ou as a,Du as b,Iu as h};