@xcpcio/board-app 0.27.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/assets/{Board-f6dd53aa.css → Board-2cad79eb.css} +1 -1
  2. package/dist/assets/Board-9442407d.js +3 -0
  3. package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-effb1be0.js → DataSourceInput.vue_vue_type_script_setup_true_lang-d16f2a12.js} +1 -1
  4. package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-2b1997a6.js → TheInput.vue_vue_type_script_setup_true_lang-1dafe5cb.js} +1 -1
  5. package/dist/assets/{_...all_-bb67b33f.js → _...all_-d54370e4.js} +1 -1
  6. package/dist/assets/{_name_-d0a3d653.js → _name_-c7264d89.js} +1 -1
  7. package/dist/assets/{about-8e4f6558.js → about-55b7ba92.js} +1 -1
  8. package/dist/assets/{board-c38fef02.js → board-88a98e6a.js} +1 -1
  9. package/dist/assets/{board-layout-2f8b4c8e.js → board-layout-e4e0bae6.js} +1 -1
  10. package/dist/assets/{headless-04b3d2be.js → headless-3466779c.js} +1 -1
  11. package/dist/assets/{home-f7c22489.js → home-37e85146.js} +1 -1
  12. package/dist/assets/{index-522cf95a.css → index-a0a089d2.css} +1 -1
  13. package/dist/assets/{index-e972e718.js → index-bc173751.js} +1 -1
  14. package/dist/assets/{index-7955279c.js → index-f1d19db1.js} +35 -35
  15. package/dist/assets/{index-layout-f3e9e819.js → index-layout-c91f7cfd.js} +1 -1
  16. package/dist/assets/{test-94bf1ee1.js → test-133c6df2.js} +1 -1
  17. package/dist/assets/{useQueryBoardData-78fadedd.js → useQueryBoardData-c0567554.js} +1 -1
  18. package/dist/assets/{user-c31467e6.js → user-6ae7ff90.js} +1 -1
  19. package/dist/assets/{virtual_pwa-register-d035b16b.js → virtual_pwa-register-7ea4486e.js} +1 -1
  20. package/dist/index.html +3 -3
  21. package/dist/sw.js +1 -1
  22. package/package.json +3 -3
  23. package/src/components/board/ProblemBlock.vue +57 -0
  24. package/src/components/board/ProblemInfoModal.vue +111 -0
  25. package/src/components/board/Standings.vue +7 -13
  26. package/src/components/board/SubmissionsTable.vue +15 -23
  27. package/src/components/flowbite/Tooltip.vue +2 -2
  28. package/src/components.d.ts +2 -0
  29. package/src/composables/statistics.ts +3 -3
  30. package/src/composables/useQueryBoardData.ts +5 -0
  31. package/dist/assets/Board-88436e20.js +0 -3
@@ -0,0 +1,3 @@
1
+ var Re=Object.defineProperty;var ze=(lt,st,nt)=>st in lt?Re(lt,st,{enumerable:!0,configurable:!0,writable:!0,value:nt}):lt[st]=nt;var ee=(lt,st,nt)=>(ze(lt,typeof st!="symbol"?st+"":st,nt),nt);import{g as Dt,h as wt,S as He,w as ne,o as ut,c as ft,d as ot,k as qt,T as de,t as vt,n as Tt,U as Xt,G as $t,F as Et,z as It,l as St,Q as Wt,K as Ne,L as $e,I as Jt,V as Ce,q as Ut,i as Pt,A as Ht,P as Yt,j as et,b as Ot,E as Rt,D as We,W as Zt,X as Ge,Y as Me,Z as Te,$ as Fe,a0 as pe,a1 as Xe,a2 as Ae,a3 as Ye,a4 as Ue,a5 as Ve,a6 as Pe,a7 as Qt,a8 as te,a as Ft,a9 as Vt,aa as qe,u as Ke,H as Oe,ab as Le,O as Ze,ac as Je,p as Qe,ad as ue,ae as ti,s as ei,v as ii,x as si,af as fe,ag as oi,ah as ni,y as ri,R as ai,ai as li,aj as hi}from"./index-f1d19db1.js";import{u as ci}from"./useQueryBoardData-c0567554.js";const di={class:"md:inset-0 w-[100%] h-[100%]",fixed:"","z-9997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":"","md:mt-32":"","sm:mt-16":""},pi={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},ui={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},fi={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},gi=ot("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[ot("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),mi=ot("span",{"sr-only":""}," Close modal ",-1),xi=[gi,mi],re=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(lt,{emit:st}){const nt=lt,A=wt({get(){return nt.isHidden},set(W){st("update:isHidden",W)}});function j(){A.value=!0}const{Escape:P}=He();return ne(P,W=>{W&&j()}),(W,J)=>(ut(),ft("div",di,[ot("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:qt({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:j},null,4),ot("div",{class:Tt(["relative p-4",[nt.width??"w-[78%]"]]),"z-9999":""},[ot("div",pi,[ot("div",ui,[de(W.$slots,"header",{},()=>[ot("h3",fi,vt(nt.title),1)]),ot("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:j},xi)]),de(W.$slots,"default")])],2)]))}}),jt={openOptions(lt){lt.$refs.input.focus(),lt.showMenu=!0,lt.mousedownState=!1},blurInput(lt){lt.mousedownState||(lt.searchText="",lt.closeOptions()),lt.$emit("blur")},closeOptions(lt){lt.$refs.input.blur(),lt.showMenu=!1},prevItem(lt){const st=lt.pointer-1,nt=lt.$el.offsetHeight*st;st>=0&&(lt.pointer=st),lt.$refs.menu.scrollTop=nt},nextItem(lt){const st=lt.pointer+1,nt=lt.$el.offsetHeight*st;st<=lt.filteredOptions.length-1&&(lt.pointer=st);const A=lt.$refs.menu.offsetHeight,j=Math.ceil((lt.$refs.menu.scrollTop+lt.$el.offsetHeight)/A),P=Math.ceil(nt/A);j!==P&&(lt.$refs.menu.scrollTop=(P-1)*lt.$refs.menu.offsetHeight)},enterItem(lt){const st=lt.filteredOptions[lt.pointer],nt=st.disabled;st&&!nt&&lt.selectItem(st)},pointerSet(lt,st){lt.pointer=st},pointerAdjust(lt){lt.pointer>=lt.filteredOptions.length-1&&(lt.pointer=lt.filteredOptions.length?lt.filteredOptions.length-1:0)},mousedownItem(lt){lt.mousedownState=!0}};function yi(lt){return new RegExp(lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const _e={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:(lt,st)=>lt.match(yi(st))}}},Ee=(lt,st)=>{const nt=lt.__vccOpts||lt;for(const[A,j]of st)nt[A]=j;return nt},vi={name:"ModelSelect",mixins:[_e],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(lt){this.pointer=this.filteredOptions.findIndex(st=>st.value===this.optionValue(lt))},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 lt=this.placeholder;return this.selectedOption&&(lt=this.selectedOption.text),lt}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(lt=>this.customAttr(lt))}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(lt=>{try{return this.filterPredicate(lt.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(lt=>lt.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){jt.openOptions(this)},blurInput(){jt.blurInput(this)},closeOptions(){jt.closeOptions(this)},prevItem(){jt.prevItem(this)},nextItem(){jt.nextItem(this)},enterItem(){jt.enterItem(this)},pointerSet(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",lt):(this.$emit("update:modelValue",lt.value),lt.value!==void 0&&lt.value===lt.text&&(this.searchText=lt.value))},optionValue(lt){return typeof lt=="object"&&lt!==null?lt.value:lt}}},ki=ot("i",{class:"dropdown icon"},null,-1),bi=["disabled","tabindex","id","name","value"],wi=["data-vss-custom-attr"],Si=["data-vss-custom-attr","onClick","onMouseenter"];function Ci(lt,st,nt,A,j,P){return ut(),ft("div",{class:Tt(["ui fluid search selection dropdown",{"active visible":j.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:st[11]||(st[11]=(...W)=>P.openOptions&&P.openOptions(...W)),onFocus:st[12]||(st[12]=(...W)=>P.openOptions&&P.openOptions(...W))},[ki,ot("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,value:j.searchText,onInput:st[0]||(st[0]=W=>j.searchText=W.target.value),ref:"input",onFocus:st[1]||(st[1]=Xt((...W)=>P.openOptions&&P.openOptions(...W),["prevent"])),onKeyup:[st[2]||(st[2]=$t((...W)=>P.closeOptions&&P.closeOptions(...W),["esc"])),st[7]||(st[7]=$t(Xt((...W)=>P.enterItem&&P.enterItem(...W),["prevent"]),["enter"]))],onBlur:st[3]||(st[3]=(...W)=>P.blurInput&&P.blurInput(...W)),onKeydown:[st[4]||(st[4]=$t((...W)=>P.prevItem&&P.prevItem(...W),["up"])),st[5]||(st[5]=$t((...W)=>P.nextItem&&P.nextItem(...W),["down"])),st[6]||(st[6]=$t(Xt(()=>{},["prevent"]),["enter"])),st[8]||(st[8]=$t((...W)=>P.deleteTextOrItem&&P.deleteTextOrItem(...W),["delete"]))]},null,40,bi),ot("div",{class:Tt(["text",P.textClass]),"data-vss-custom-attr":P.searchTextCustomAttr},vt(P.inputText),11,wi),ot("div",{class:Tt(["menu",P.menuClass]),ref:"menu",onMousedown:st[10]||(st[10]=Xt(()=>{},["prevent"])),style:qt(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Et,null,It(P.filteredOptions,(W,J)=>(ut(),ft("div",{key:J,class:Tt(["item",{selected:W.selected||j.pointer===J,disabled:W.disabled}]),"data-vss-custom-attr":P.customAttrs[J]?P.customAttrs[J]:"",onClick:Xt(K=>P.selectItem(W),["stop"]),onMousedown:st[9]||(st[9]=(...K)=>P.mousedownItem&&P.mousedownItem(...K)),onMouseenter:K=>P.pointerSet(J)},vt(W.text),43,Si))),128))],38)],34)}const Mi=Ee(vi,[["render",Ci]]),Ti={name:"MultiSelect",mixins:[_e],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(lt=>this.selectedOptions.findIndex(st=>st.value===lt.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(lt=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(lt.text),this.searchText):this.filterPredicate(lt.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(){jt.openOptions(this)},blurInput(){jt.blurInput(this)},closeOptions(){jt.closeOptions(this)},prevItem(){jt.prevItem(this),this.openOptions()},nextItem(){jt.nextItem(this),this.openOptions()},enterItem(){jt.enterItem(this)},pointerSet(lt){jt.pointerSet(this,lt)},pointerAdjust(){jt.pointerAdjust(this)},mousedownItem(){jt.mousedownItem(this)},selectItem(lt){const st=this.selectedOptions.concat(lt),nt=st.filter((A,j)=>st.indexOf(A)===j);this.closeOptions(),this.searchText="",this.$emit("select",nt,lt,"insert")},deleteItem(lt){const st=this.selectedOptions.filter(nt=>nt.value!==lt.value);this.$emit("select",st,lt,"delete")},accentsTidy(lt){let st=lt.toString().toLowerCase();return st=st.replace(new RegExp("[àáâãäå]","g"),"a"),st=st.replace(new RegExp("æ","g"),"ae"),st=st.replace(new RegExp("ç","g"),"c"),st=st.replace(new RegExp("[èéêë]","g"),"e"),st=st.replace(new RegExp("[ìíîï]","g"),"i"),st=st.replace(new RegExp("ñ","g"),"n"),st=st.replace(new RegExp("[òóôõö]","g"),"o"),st=st.replace(new RegExp("œ","g"),"oe"),st=st.replace(new RegExp("[ùúûü]","g"),"u"),st=st.replace(new RegExp("[ýÿ]","g"),"y"),st}}},Ai=ot("i",{class:"dropdown icon"},null,-1),Pi=["data-vss-custom-attr"],Oi=["onClick"],Li=["disabled","tabindex","id","name"],_i=["data-vss-custom-attr","onClick","onMouseenter"];function Ei(lt,st,nt,A,j,P){return ut(),ft("div",{class:Tt(["ui fluid search dropdown selection multiple",{"active visible":j.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:st[11]||(st[11]=(...W)=>P.openOptions&&P.openOptions(...W)),onFocus:st[12]||(st[12]=(...W)=>P.openOptions&&P.openOptions(...W))},[Ai,nt.hideSelectedOptions?St("",!0):(ut(!0),ft(Et,{key:0},It(nt.selectedOptions,(W,J)=>(ut(),ft("a",{key:J,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":nt.customAttr(W)},[Wt(vt(W.text),1),ot("i",{class:"delete icon",onClick:K=>P.deleteItem(W)},null,8,Oi)],8,Pi))),128)),Ne(ot("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,"onUpdate:modelValue":st[0]||(st[0]=W=>j.searchText=W),ref:"input",style:qt(P.inputWidth),onFocus:st[1]||(st[1]=Xt((...W)=>P.openOptions&&P.openOptions(...W),["prevent"])),onKeyup:[st[2]||(st[2]=$t((...W)=>P.closeOptions&&P.closeOptions(...W),["esc"])),st[7]||(st[7]=$t(Xt((...W)=>P.enterItem&&P.enterItem(...W),["prevent"]),["enter"]))],onBlur:st[3]||(st[3]=(...W)=>P.blurInput&&P.blurInput(...W)),onKeydown:[st[4]||(st[4]=$t((...W)=>P.prevItem&&P.prevItem(...W),["up"])),st[5]||(st[5]=$t((...W)=>P.nextItem&&P.nextItem(...W),["down"])),st[6]||(st[6]=$t(Xt(()=>{},["prevent"]),["enter"])),st[8]||(st[8]=$t((...W)=>P.deleteTextOrLastItem&&P.deleteTextOrLastItem(...W),["delete"]))]},null,44,Li),[[$e,j.searchText]]),ot("div",{class:Tt(["text",P.textClass])},vt(P.inputText),3),ot("div",{class:Tt(["menu",P.menuClass]),ref:"menu",onMousedown:st[10]||(st[10]=Xt(()=>{},["prevent"])),style:qt(P.menuStyle),tabindex:"-1"},[(ut(!0),ft(Et,null,It(P.filteredOptions,(W,J)=>(ut(),ft("div",{key:J,class:Tt(["item",{selected:W.selected||j.pointer===J,disabled:W.disabled}]),"data-vss-custom-attr":nt.customAttr(W),onClick:Xt(K=>P.selectItem(W),["stop"]),onMousedown:st[9]||(st[9]=(...K)=>P.mousedownItem&&P.mousedownItem(...K)),onMouseenter:K=>P.pointerSet(J)},vt(W.text),43,_i))),128))],38)],34)}const ge=Ee(Ti,[["render",Ei]]);function Di(){return`filter-organizations-${Jt().path}`}function Ii(){return`filter-teams-${Jt().path}`}function ji(){const st=`filter-organizations-${Jt().path}`;return Ce(st,[])}function Bi(){const st=`filter-teams-${Jt().path}`;return Ce(st,[])}const Ri={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},zi={key:0,flex:"","flex-col":"","w-full":""},Hi={"w-full":"","mt-2":""},Ni={flex:"","flex-col":"","w-full":""},$i=ot("div",null," Filter Team ",-1),Wi={"w-full":"","mt-2":""},Gi={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},Fi=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(lt,{emit:st}){const nt=lt,{t:A}=Ut(),j=wt({get(){return nt.isHidden},set(v){st("update:isHidden",v)}}),P=wt({get(){return nt.rankOptions},set(v){st("update:rankOptions",v)}}),W=wt(()=>nt.rank),J=wt(()=>A("type_menu.options")),K=wt(()=>W.value.organizations.map(f=>({value:f,text:f}))),Y=Pt(P.value.filterOrganizations),U=Pt({});function O(v,f){Y.value=v,U.value=f}const N=wt(()=>W.value.originTeams.map(f=>({value:f.id,text:f.organization?`${f.name} - ${f.organization}`:f.name}))),R=Pt(P.value.filterTeams),x=Pt({});function b(v,f){R.value=v,x.value=f}function _(){j.value=!0}const I=Di(),d=Ii();function y(){P.value.setFilterOrganizations(Y.value),P.value.setFilterTeams(R.value),localStorage.setItem(I,JSON.stringify(Y.value)),localStorage.setItem(d,JSON.stringify(R.value)),_()}return(v,f)=>{const T=re;return ut(),Ht(T,{isHidden:et(j),"onUpdate:isHidden":f[0]||(f[0]=k=>Rt(j)?j.value=k:null),title:et(J),width:"w-180"},{default:Yt(()=>[ot("div",Ri,[et(W).contest.organization?(ut(),ft("div",zi,[ot("div",null," Filter "+vt(et(W).contest.organization),1),ot("div",Hi,[Ot(et(ge),{options:et(K),"selected-options":et(Y),onSelect:O},null,8,["options","selected-options"])])])):St("",!0),ot("div",Ni,[$i,ot("div",Wi,[Ot(et(ge),{options:et(N),"selected-options":et(R),onSelect:b},null,8,["options","selected-options"])])]),ot("div",Gi,[ot("button",{type:"submit",class:"text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800","font-medium":"","text-sm":"","rounded-md":"",onClick:y},vt(et(A)("button.confirm")),1),ot("button",{type:"reset",class:"py-2.5 px-5 text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700","font-medium":"","text-sm":"","rounded-md":"",onClick:_},vt(et(A)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}}),Xi={"w-full":"",flex:"","mt-4":"","gap-4":""},Yi=["href"],Ui={btn:"",title:"Submissions",disabled:"true"},Vi=Dt({__name:"Utility",setup(lt){const{t:st}=Ut(),nt=Jt(),A=We(),j=wt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${nt.path}`);function P(){A.push(`/balloon/?data-source=${nt.path}`)}return(W,J)=>(ut(),ft("div",Xi,[ot("a",{btn:"",href:et(j),target:"_blank",title:"Resolver"},vt(et(st)("type_menu.resolver")),9,Yi),ot("button",{btn:"",title:"Balloon",onClick:P},vt(et(st)("type_menu.balloon")),1),ot("button",Ui,vt(et(st)("type_menu.submissions")),1)]))}});var De={exports:{}};(function(lt,st){(function(nt,A){A()})(Zt,function(){function nt(Y,U){return typeof U>"u"?U={autoBom:!1}:typeof U!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),U={autoBom:!U}),U.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(Y.type)?new Blob(["\uFEFF",Y],{type:Y.type}):Y}function A(Y,U,O){var N=new XMLHttpRequest;N.open("GET",Y),N.responseType="blob",N.onload=function(){K(N.response,U,O)},N.onerror=function(){console.error("could not download file")},N.send()}function j(Y){var U=new XMLHttpRequest;U.open("HEAD",Y,!1);try{U.send()}catch{}return 200<=U.status&&299>=U.status}function P(Y){try{Y.dispatchEvent(new MouseEvent("click"))}catch{var U=document.createEvent("MouseEvents");U.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),Y.dispatchEvent(U)}}var W=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Zt=="object"&&Zt.global===Zt?Zt:void 0,J=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),K=W.saveAs||(typeof window!="object"||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!J?function(Y,U,O){var N=W.URL||W.webkitURL,R=document.createElement("a");U=U||Y.name||"download",R.download=U,R.rel="noopener",typeof Y=="string"?(R.href=Y,R.origin===location.origin?P(R):j(R.href)?A(Y,U,O):P(R,R.target="_blank")):(R.href=N.createObjectURL(Y),setTimeout(function(){N.revokeObjectURL(R.href)},4e4),setTimeout(function(){P(R)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,U,O){if(U=U||Y.name||"download",typeof Y!="string")navigator.msSaveOrOpenBlob(nt(Y,O),U);else if(j(Y))A(Y,U,O);else{var N=document.createElement("a");N.href=Y,N.target="_blank",setTimeout(function(){P(N)})}}:function(Y,U,O,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof Y=="string")return A(Y,U,O);var R=Y.type==="application/octet-stream",x=/constructor/i.test(W.HTMLElement)||W.safari,b=/CriOS\/[\d]+/.test(navigator.userAgent);if((b||R&&x||J)&&typeof FileReader<"u"){var _=new FileReader;_.onloadend=function(){var y=_.result;y=b?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=y:location=y,N=null},_.readAsDataURL(Y)}else{var I=W.URL||W.webkitURL,d=I.createObjectURL(Y);N?N.location=d:location.href=d,N=null,setTimeout(function(){I.revokeObjectURL(d)},4e4)}});W.saveAs=K.saveAs=K,lt.exports=K})})(De);var qi=De.exports;const Ki=Ge(qi);var Zi=setTimeout;function Ji(lt,st){var nt=st.useCachedSetTimeout?Zi:setTimeout;return new Promise(function(A){nt(A,lt)})}function Qi(lt){var st=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},nt=st.useCachedSetTimeout,A=Ji(lt,{useCachedSetTimeout:nt});function j(P){return A.then(function(){return P})}return j.then=function(){return A.then.apply(A,arguments)},j.catch=Promise.resolve().catch,j}const ts={flex:"","flex-col":""},es={"w-160":"","font-bold":""},is={"mt-8":""},ss={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},os=["disabled"],ns=["disabled"],rs={key:1,flex:"","justify-center":""},as=["disabled"],ls=Dt({__name:"Export",props:{rank:null},setup(lt){const st=lt,nt=Me.useToast(),{copy:A,isSupported:j}=Te(),P=wt(()=>st.rank),W=Pt({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),J=Pt([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),K=Pt({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function Y(){await Fe(),await Qi(16)}async function U(){K.value.CfDatDownload=!0,await Y();const x=new pe().convert(P.value),b=new Blob([x],{type:"text/plain;charset=utf-8"});Ki.saveAs(b,"contest.dat"),K.value.CfDatDownload=!1}async function O(){if(!j.value){nt.warning("clipboard is not supported");return}K.value.CfDatCopy=!0,await Y();const x=new pe().convert(P.value);A(x),K.value.CfDatCopy=!1,nt.success("Copy Success")}async function N(){K.value.GeneralXLSXDownload=!0,await Y(),new Xe().convertAndWrite(P.value,`${P.value.contest.name}.xlsx`),K.value.GeneralXLSXDownload=!1}return(R,x)=>(ut(),ft("div",ts,[ot("div",es,[Ot(et(Mi),{modelValue:et(W),"onUpdate:modelValue":x[0]||(x[0]=b=>Rt(W)?W.value=b:null),options:et(J),placeholder:"Export Type"},null,8,["modelValue","options"])]),ot("div",is,[et(W).value==="cf-dat"?(ut(),ft("div",ss,[ot("button",{disabled:et(K).CfDatDownload,btn:"",onClick:U}," Download ",8,os),ot("button",{disabled:et(K).CfDatCopy,btn:"",onClick:O}," Copy to Clipboard ",8,ns)])):St("",!0),et(W).value==="general-xlsx"?(ut(),ft("div",rs,[ot("button",{disabled:et(K).GeneralXLSXDownload,btn:"",onClick:N}," Download ",8,as)])):St("",!0)])]))}});function he(lt,st,nt,A,j,P){return{colors:P,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:lt},xAxis:{categories:A,labels:{style:{fontSize:"16px"}},title:{text:st,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:nt,style:{fontSize:"16px",height:"320px"}},stackLabels:{enabled:!0,style:{fontSize:"16px"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"{series.name}:{point.y}"},plotOptions:{bar:{stacking:"normal"},column:{stacking:"normal"}},credits:{enabled:!1},series:j}}function hs(lt){const st=[];lt.contest.problems.forEach((P,W)=>{st.push({problem_id:P.label,index:W,solved:P.statistics.acceptedNum})}),st.sort((P,W)=>P.solved>W.solved?-1:P.solved<W.solved?1:P.index<W.index?-1:P.index>W.index?1:0);const{cat:nt,series:A,colors:j}=(()=>{const P=[],W=[];return st.forEach(Y=>{P.push(Y.problem_id),W.push(Y.solved)}),{cat:P,series:[{name:"队伍数",showInLegend:!1,data:W}],colors:["rgb(124, 181, 236)"]}})();return he("题目通过数","题目编号","通过数",nt,A,j)}function cs(lt){const st=lt.rankStatistics.teamSolvedNum.map((P,W)=>({index:W,cnt:P})),{cat:nt,series:A,colors:j}=(()=>{const P=[],W=[];return st.forEach(Y=>{P.push(Y.index),W.push(Y.cnt)}),{cat:P,series:[{name:"队伍数",showInLegend:!1,data:W}],colors:["rgb(124, 181, 236)"]}})();return he("队伍过题数","过题数","队伍数",nt,A,j)}function ds(lt){const{cat:st,series:nt,colors:A}=(()=>{const j=[],P=[],W=[],J=[];return lt.contest.problems.forEach(U=>{P.push(U.statistics.acceptedNum),W.push(U.statistics.rejectedNum),J.push(U.statistics.pendingNum),j.push(U.label)}),{cat:j,series:[{name:"Accepted",showInLegend:!1,data:P},{name:"Rejected",showInLegend:!1,data:W},{name:"Pending",showInLegend:!1,data:J}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return he("提交分类","题目编号","提交数",st,nt,A)}function ps(lt,st){const nt=st.placeChartPoints.map(j=>{var P,W;return{x:j.timePoint,y:j.rank,showX:Ae(j.timePoint),lastSolved:(P=j.lastSolvedProblem)!=null&&P.label?`Last Solved Problem ${(W=j.lastSolvedProblem)==null?void 0:W.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:nt,marker:{symbol:"circle",radius:4,lineWidth:2,fillColor:"yellow",lineColor:"yellow"}}],xAxis:[{allowDecimals:!1,title:{text:"Time(min)"},crosshair:!0}],yAxis:[{allowDecimals:!1,title:{text:"Place"},reversed:!0,gridLineWidth:1}],plotOptions:{line:{color:"#efbc47",dataLabels:{enabled:!1},enableMouseTracking:!0,marker:{enabled:!0,fillColor:"#fff566"}}},tooltip:{enabled:!0,headerFormat:"",pointFormat:"Time: {point.showX} <br/> Place: {point.y} <br/> {point.lastSolved}"},credits:{enabled:!1},exporting:{enabled:!0},navigation:{menuItemStyle:{fontSize:"10px"}}}}var Ie={exports:{}},le={exports:{}},me;function us(){return me||(me=1,function(lt){(function(st,nt){lt.exports?(nt.default=nt,lt.exports=st.document?nt(st):nt):(st.Highcharts&&st.Highcharts.error(16,!0),st.Highcharts=nt(st))})(typeof window<"u"?window:Zt,function(st){function nt(j,P,W,J){j.hasOwnProperty(P)||(j[P]=J.apply(null,W),typeof CustomEvent=="function"&&st.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:P,module:j[P]}})))}var A={};return nt(A,"Core/Globals.js",[],function(){var j;return function(P){P.SVG_NS="http://www.w3.org/2000/svg",P.product="Highcharts",P.version="11.1.0",P.win=typeof st<"u"?st:{},P.doc=P.win.document,P.svg=P.doc&&P.doc.createElementNS&&!!P.doc.createElementNS(P.SVG_NS,"svg").createSVGRect,P.userAgent=P.win.navigator&&P.win.navigator.userAgent||"",P.isChrome=P.userAgent.indexOf("Chrome")!==-1,P.isFirefox=P.userAgent.indexOf("Firefox")!==-1,P.isMS=/(edge|msie|trident)/i.test(P.userAgent)&&!P.win.opera,P.isSafari=!P.isChrome&&P.userAgent.indexOf("Safari")!==-1,P.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(P.userAgent),P.isWebKit=P.userAgent.indexOf("AppleWebKit")!==-1,P.deg2rad=2*Math.PI/360,P.hasBidiBug=P.isFirefox&&4>parseInt(P.userAgent.split("Firefox/")[1],10),P.hasTouch=!!P.win.TouchEvent,P.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],P.noop=function(){},P.supportsPassiveEvents=function(){let W=!1;if(!P.isMS){const J=Object.defineProperty({},"passive",{get:function(){W=!0}});P.win.addEventListener&&P.win.removeEventListener&&(P.win.addEventListener("testPassive",P.noop,J),P.win.removeEventListener("testPassive",P.noop,J))}return W}(),P.charts=[],P.dateFormats={},P.seriesTypes={},P.symbolSizes={},P.chartCount=0}(j||(j={})),j}),nt(A,"Core/Utilities.js",[A["Core/Globals.js"]],function(j){function P(t,i,l,u){const L=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${L}: Deprecated member`);const r=N(t);let S=r?`${L} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof u<"u"){let F="";r&&(S+="?"),T(u,function(q,rt){F+=`
2
+ - ${rt}: ${q}`,r&&(S+=encodeURI(rt)+"="+encodeURI(q))}),S+=F}w(j,"displayError",{chart:l,code:t,message:S,params:u},function(){if(i)throw Error(S);p.console&&P.messages.indexOf(S)===-1&&console.warn(S)}),P.messages.push(S)}function W(t,i){return parseInt(t,i||10)}function J(t){return typeof t=="string"}function K(t){return t=Object.prototype.toString.call(t),t==="[object Array]"||t==="[object Array Iterator]"}function Y(t,i){return!!t&&typeof t=="object"&&(!i||!K(t))}function U(t){return Y(t)&&typeof t.nodeType=="number"}function O(t){const i=t&&t.constructor;return!(!Y(t,!0)||U(t)||!i||!i.name||i.name==="Object")}function N(t){return typeof t=="number"&&!isNaN(t)&&1/0>t&&-1/0<t}function R(t){return typeof t<"u"&&t!==null}function x(t,i,l){const u=J(i)&&!R(l);let L;const r=(S,F)=>{R(S)?t.setAttribute(F,S):u?(L=t.getAttribute(F))||F!=="class"||(L=t.getAttribute(F+"Name")):t.removeAttribute(F)};return J(i)?r(l,i):T(i,r),L}function b(t){return K(t)?t:[t]}function _(t,i){let l;t||(t={});for(l in i)t[l]=i[l];return t}function I(){const t=arguments,i=t.length;for(let l=0;l<i;l++){const u=t[l];if(typeof u<"u"&&u!==null)return u}}function d(t,i){j.isMS&&!j.svg&&i&&R(i.opacity)&&(i.filter=`alpha(opacity=${100*i.opacity})`),_(t.style,i)}function y(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function v(t,i){return 1e14<t?t:parseFloat(t.toPrecision(i||14))}function f(t,i,l){let u;return i==="width"?(i=Math.min(t.offsetWidth,t.scrollWidth),l=t.getBoundingClientRect&&t.getBoundingClientRect().width,l<i&&l>=i-1&&(i=Math.floor(l)),Math.max(0,i-(f(t,"padding-left",!0)||0)-(f(t,"padding-right",!0)||0))):i==="height"?Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(f(t,"padding-top",!0)||0)-(f(t,"padding-bottom",!0)||0)):((t=p.getComputedStyle(t,void 0))&&(u=t.getPropertyValue(i),I(l,i!=="opacity")&&(u=W(u))),u)}function T(t,i,l){for(const u in t)Object.hasOwnProperty.call(t,u)&&i.call(l||t[u],t[u],u,t)}function k(t,i,l){function u(S,F){const q=t.removeEventListener;q&&q.call(t,S,F,!1)}function L(S){let F,q;t.nodeName&&(i?(F={},F[i]=!0):F=S,T(F,function(rt,B){if(S[B])for(q=S[B].length;q--;)u(B,S[B][q].fn)}))}var r=typeof t=="function"&&t.prototype||t;if(Object.hasOwnProperty.call(r,"hcEvents")){const S=r.hcEvents;i?(r=S[i]||[],l?(S[i]=r.filter(function(F){return l!==F.fn}),u(i,l)):(L(S),S[i]=[])):(L(S),delete r.hcEvents)}}function w(t,i,l,u){if(l=l||{},a.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==j)){var L=a.createEvent("Events");L.initEvent(i,!0,!0),l=_(L,l),t.dispatchEvent?t.dispatchEvent(l):t.fireEvent(i,l)}else if(t.hcEvents){l.target||_(l,{preventDefault:function(){l.defaultPrevented=!0},target:t,type:i}),L=[];let r=t,S=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(L.length&&(S=!0),L.unshift.apply(L,r.hcEvents[i])),r=Object.getPrototypeOf(r);S&&L.sort((F,q)=>F.order-q.order),L.forEach(F=>{F.fn.call(t,l)===!1&&l.preventDefault()})}u&&!l.defaultPrevented&&u.call(t,l)}const{charts:n,doc:a,win:p}=j;(P||(P={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var h=Array.prototype.find?function(t,i){return t.find(i)}:function(t,i){let l;const u=t.length;for(l=0;l<u;l++)if(i(t[l],l))return t[l]};T({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(t,i){j[i]=function(l){return P(32,!1,void 0,{[`Highcharts.${i}`]:`use Array.${t}`}),Array.prototype[t].apply(l,[].slice.call(arguments,1))}});let c;const e=function(){const t=Math.random().toString(36).substring(2,9)+"-";let i=0;return function(){return"highcharts-"+(c?"":t)+i++}}();return p.jQuery&&(p.jQuery.fn.highcharts=function(){const t=[].slice.call(arguments);if(this[0])return t[0]?(new j[J(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):n[x(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,l,u={}){var L=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(L,"hcEvents")||(L.hcEvents={}),L=L.hcEvents,j.Point&&t instanceof j.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const r=t.addEventListener;return r&&r.call(t,i,l,j.supportsPassiveEvents?{passive:u.passive===void 0?i.indexOf("touch")!==-1:u.passive,capture:!1}:!1),L[i]||(L[i]=[]),L[i].push({fn:l,order:typeof u.order=="number"?u.order:1/0}),L[i].sort((S,F)=>S.order-F.order),function(){k(t,i,l)}},arrayMax:function(t){let i=t.length,l=t[0];for(;i--;)t[i]>l&&(l=t[i]);return l},arrayMin:function(t){let i=t.length,l=t[0];for(;i--;)t[i]<l&&(l=t[i]);return l},attr:x,clamp:function(t,i,l){return t>i?t<l?t:l:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:v,createElement:function(t,i,l,u,L){return t=a.createElement(t),i&&_(t,i),L&&d(t,{padding:"0",border:"none",margin:"0"}),l&&d(t,l),u&&u.appendChild(t),t},css:d,defined:R,destroyObjectProperties:function(t,i){T(t,function(l,u){l&&l!==i&&l.destroy&&l.destroy(),delete t[u]})},diffObjects:function(t,i,l,u){function L(S,F,q,rt){const B=l?F:S;T(S,function(s,M){if(!rt&&u&&-1<u.indexOf(M)&&F[M]){s=b(s),q[M]=[];for(let z=0;z<Math.max(s.length,F[M].length);z++)F[M][z]&&(s[z]===void 0?q[M][z]=F[M][z]:(q[M][z]={},L(s[z],F[M][z],q[M][z],rt+1)))}else Y(s,!0)&&!s.nodeType?(q[M]=K(s)?[]:{},L(s,F[M]||{},q[M],rt+1),Object.keys(q[M]).length!==0||M==="colorAxis"&&rt===0||delete q[M]):(S[M]!==F[M]||M in S&&!(M in F))&&(q[M]=B[M])})}const r={};return L(t,i,r,0),r},discardElement:function(t){t&&t.parentElement&&t.parentElement.removeChild(t)},erase:function(t,i){let l=t.length;for(;l--;)if(t[l]===i){t.splice(l,1);break}},error:P,extend:_,extendClass:function(t,i){const l=function(){};return l.prototype=new t,_(l.prototype,i),l},find:h,fireEvent:w,getClosestDistance:function(t,i){const l=!i;let u,L,r;return t.forEach(S=>{if(1<S.length)for(r=S.length-1;0<r;r--)L=S[r]-S[r-1],0>L&&!l?(i==null||i(),i=void 0):L&&(typeof u>"u"||L<u)&&(u=L)}),u},getMagnitude:y,getNestedProperty:function(t,i){for(t=t.split(".");t.length&&R(i);){const l=t.shift();if(typeof l>"u"||l==="__proto__")return;if(l==="this"){let u;return Y(i)&&(u=i["@this"]),u??i}if(i=i[l],!R(i)||typeof i=="function"||typeof i.nodeType=="number"||i===p)return}return i},getStyle:f,inArray:function(t,i,l){return P(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,l)},insertItem:function(t,i){const l=t.options.index,u=i.length;let L;for(L=t.options.isInternal?u:0;L<u+1;L++)if(!i[L]||N(l)&&l<I(i[L].options.index,i[L]._i)||i[L].options.isInternal){i.splice(L,0,t);break}return L},isArray:K,isClass:O,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:N,isObject:Y,isString:J,keys:function(t){return P(32,!1,void 0,{"Highcharts.keys":"use Object.keys"}),Object.keys(t)},merge:function(){let t,i=arguments,l={};const u=function(r,S){return typeof r!="object"&&(r={}),T(S,function(F,q){q!=="__proto__"&&q!=="constructor"&&(!Y(F,!0)||O(F)||U(F)?r[q]=S[q]:r[q]=u(r[q]||{},F))}),r};i[0]===!0&&(l=i[1],i=Array.prototype.slice.call(i,2));const L=i.length;for(t=0;t<L;t++)l=u(l,i[t]);return l},normalizeTickInterval:function(t,i,l,u,L){let r=t;l=I(l,y(t));const S=t/l;for(i||(i=L?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],u===!1&&(l===1?i=i.filter(function(F){return F%1===0}):.1>=l&&(i=[1/l]))),u=0;u<i.length&&(r=i[u],!(L&&r*l>=t||!L&&S<=(i[u]+(i[u+1]||i[u]))/2));u++);return r=v(r*l,-Math.round(Math.log(.001)/Math.LN10))},objectEach:T,offset:function(t){const i=a.documentElement;return t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0},{top:t.top+(p.pageYOffset||i.scrollTop)-(i.clientTop||0),left:t.left+(p.pageXOffset||i.scrollLeft)-(i.clientLeft||0),width:t.width,height:t.height}},pad:function(t,i,l){return Array((i||2)+1-String(t).replace("-","").length).join(l||"0")+t},pick:I,pInt:W,pushUnique:function(t,i){return 0>t.indexOf(i)&&!!t.push(i)},relativeLength:function(t,i,l){return/%$/.test(t)?i*parseFloat(t)/100+(l||0):parseFloat(t)},removeEvent:k,splat:b,stableSort:function(t,i){const l=t.length;let u,L;for(L=0;L<l;L++)t[L].safeI=L;for(t.sort(function(r,S){return u=i(r,S),u===0?r.safeI-S.safeI:u}),L=0;L<l;L++)delete t[L].safeI},syncTimeout:function(t,i,l){return 0<i?setTimeout(t,i,l):(t.call(0,l),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:e,useSerialIds:function(t){return c=I(t,c)},wrap:function(t,i,l){const u=t[i];t[i]=function(){const L=arguments,r=this;return l.apply(this,[function(){return u.apply(r,arguments.length?arguments:L)}].concat([].slice.call(arguments)))}}},h}),nt(A,"Core/Chart/ChartDefaults.js",[],function(){return{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},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"}}),nt(A,"Core/Color/Color.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P){const{isNumber:W,merge:J,pInt:K}=P;class Y{static parse(O){return O?new Y(O):Y.None}constructor(O){this.rgba=[NaN,NaN,NaN,NaN],this.input=O;const N=j.Color;if(N&&N!==Y)return new N(O);this.init(O)}init(O){let N,R;if(typeof O=="object"&&typeof O.stops<"u")this.stops=O.stops.map(_=>new Y(_[1]));else if(typeof O=="string"){if(this.input=O=Y.names[O.toLowerCase()]||O,O.charAt(0)==="#"){var x=O.length,b=parseInt(O.substr(1),16);x===7?N=[(b&16711680)>>16,(b&65280)>>8,b&255,1]:x===4&&(N=[(b&3840)>>4|(b&3840)>>8,(b&240)>>4|b&240,(b&15)<<4|b&15,1])}if(!N)for(b=Y.parsers.length;b--&&!N;)R=Y.parsers[b],(x=R.regex.exec(O))&&(N=R.parse(x))}N&&(this.rgba=N)}get(O){const N=this.input,R=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const x=J(N);return x.stops=[].slice.call(x.stops),this.stops.forEach((b,_)=>{x.stops[_]=[x.stops[_][0],b.get(O)]}),x}return R&&W(R[0])?O==="rgb"||!O&&R[3]===1?"rgb("+R[0]+","+R[1]+","+R[2]+")":O==="a"?`${R[3]}`:"rgba("+R.join(",")+")":N}brighten(O){const N=this.rgba;if(this.stops)this.stops.forEach(function(R){R.brighten(O)});else if(W(O)&&O!==0)for(let R=0;3>R;R++)N[R]+=K(255*O),0>N[R]&&(N[R]=0),255<N[R]&&(N[R]=255);return this}setOpacity(O){return this.rgba[3]=O,this}tweenTo(O,N){const R=this.rgba,x=O.rgba;return!W(R[0])||!W(x[0])?O.input||"none":(O=x[3]!==1||R[3]!==1,(O?"rgba(":"rgb(")+Math.round(x[0]+(R[0]-x[0])*(1-N))+","+Math.round(x[1]+(R[1]-x[1])*(1-N))+","+Math.round(x[2]+(R[2]-x[2])*(1-N))+(O?","+(x[3]+(R[3]-x[3])*(1-N)):"")+")")}}return Y.names={white:"#ffffff",black:"#000000"},Y.parsers=[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(U){return[K(U[1]),K(U[2]),K(U[3]),parseFloat(U[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(U){return[K(U[1]),K(U[2]),K(U[3]),1]}}],Y.None=new Y(""),Y}),nt(A,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),nt(A,"Core/Time.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P){const{win:W}=j,{defined:J,error:K,extend:Y,isObject:U,merge:O,objectEach:N,pad:R,pick:x,splat:b,timeUnits:_}=P,I=j.isSafari&&W.Intl&&W.Intl.DateTimeFormat.prototype.formatRange,d=j.isSafari&&W.Intl&&!W.Intl.DateTimeFormat.prototype.formatRange;class y{constructor(f){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=W.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(f)}get(f,T){if(this.variableTimezone||this.timezoneOffset){const k=T.getTime(),w=k-this.getTimezoneOffset(T);return T.setTime(w),f=T["getUTC"+f](),T.setTime(k),f}return this.useUTC?T["getUTC"+f]():T["get"+f]()}set(f,T,k){if(this.variableTimezone||this.timezoneOffset){if(f==="Milliseconds"||f==="Seconds"||f==="Minutes"&&this.getTimezoneOffset(T)%36e5===0)return T["setUTC"+f](k);var w=this.getTimezoneOffset(T);return w=T.getTime()-w,T.setTime(w),T["setUTC"+f](k),f=this.getTimezoneOffset(T),w=T.getTime()+f,T.setTime(w)}return this.useUTC||I&&f==="FullYear"?T["setUTC"+f](k):T["set"+f](k)}update(f={}){const T=x(f.useUTC,!0);this.options=f=O(!0,this.options,f),this.Date=f.Date||W.Date||Date,this.timezoneOffset=(this.useUTC=T)&&f.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=T&&!(!f.getTimezoneOffset&&!f.timezone)}makeTime(f,T,k,w,n,a){let p,h,c;return this.useUTC?(p=this.Date.UTC.apply(0,arguments),h=this.getTimezoneOffset(p),p+=h,c=this.getTimezoneOffset(p),h!==c?p+=c-h:h-36e5!==this.getTimezoneOffset(p-36e5)||d||(p-=36e5)):p=new this.Date(f,T,x(k,1),x(w,0),x(n,0),x(a,0)).getTime(),p}timezoneOffsetFunction(){const f=this,T=this.options,k=T.getTimezoneOffset,w=T.moment||W.moment;if(!this.useUTC)return function(n){return 6e4*new Date(n.toString()).getTimezoneOffset()};if(T.timezone){if(w)return function(n){return 6e4*-w.tz(n,T.timezone).utcOffset()};K(25)}return this.useUTC&&k?function(n){return 6e4*k(n.valueOf())}:function(){return 6e4*(f.timezoneOffset||0)}}dateFormat(f,T,k){if(!J(T)||isNaN(T))return j.defaultOptions.lang&&j.defaultOptions.lang.invalidDate||"";f=x(f,"%Y-%m-%d %H:%M:%S");const w=this;var n=new this.Date(T);const a=this.get("Hours",n),p=this.get("Day",n),h=this.get("Date",n),c=this.get("Month",n),e=this.get("FullYear",n),t=j.defaultOptions.lang,i=t&&t.weekdays,l=t&&t.shortWeekdays;return n=Y({a:l?l[p]:i[p].substr(0,3),A:i[p],d:R(h),e:R(h,2," "),w:p,b:t.shortMonths[c],B:t.months[c],m:R(c+1),o:c+1,y:e.toString().substr(2,2),Y:e,H:R(a),k:a,I:R(a%12||12),l:a%12||12,M:R(this.get("Minutes",n)),p:12>a?"AM":"PM",P:12>a?"am":"pm",S:R(n.getSeconds()),L:R(Math.floor(T%1e3),3)},j.dateFormats),N(n,function(u,L){for(;f.indexOf("%"+L)!==-1;)f=f.replace("%"+L,typeof u=="function"?u.call(w,T):u)}),k?f.substr(0,1).toUpperCase()+f.substr(1):f}resolveDTLFormat(f){return U(f,!0)?f:(f=b(f),{main:f[0],from:f[1],to:f[2]})}getTimeTicks(f,T,k,w){const n=this,a=[],p={};var h=new n.Date(T);const c=f.unitRange,e=f.count||1;let t;if(w=x(w,1),J(T)){if(n.set("Milliseconds",h,c>=_.second?0:e*Math.floor(n.get("Milliseconds",h)/e)),c>=_.second&&n.set("Seconds",h,c>=_.minute?0:e*Math.floor(n.get("Seconds",h)/e)),c>=_.minute&&n.set("Minutes",h,c>=_.hour?0:e*Math.floor(n.get("Minutes",h)/e)),c>=_.hour&&n.set("Hours",h,c>=_.day?0:e*Math.floor(n.get("Hours",h)/e)),c>=_.day&&n.set("Date",h,c>=_.month?1:Math.max(1,e*Math.floor(n.get("Date",h)/e))),c>=_.month){n.set("Month",h,c>=_.year?0:e*Math.floor(n.get("Month",h)/e));var i=n.get("FullYear",h)}c>=_.year&&n.set("FullYear",h,i-i%e),c===_.week&&(i=n.get("Day",h),n.set("Date",h,n.get("Date",h)-i+w+(i<w?-7:0))),i=n.get("FullYear",h),w=n.get("Month",h);const l=n.get("Date",h),u=n.get("Hours",h);for(T=h.getTime(),!n.variableTimezone&&n.useUTC||!J(k)||(t=k-T>4*_.month||n.getTimezoneOffset(T)!==n.getTimezoneOffset(k)),T=h.getTime(),h=1;T<k;)a.push(T),T=c===_.year?n.makeTime(i+h*e,0):c===_.month?n.makeTime(i,w+h*e):!t||c!==_.day&&c!==_.week?t&&c===_.hour&&1<e?n.makeTime(i,w,l,u+h*e):T+c*e:n.makeTime(i,w,l+h*e*(c===_.day?1:7)),h++;a.push(T),c<=_.hour&&1e4>a.length&&a.forEach(function(L){L%18e5===0&&n.dateFormat("%H%M%S%L",L)==="000000000"&&(p[L]="day")})}return a.info=Y(f,{higherRanks:p,totalRange:c*e}),a}getDateFormat(f,T,k,w){const n=this.dateFormat("%m-%d %H:%M:%S.%L",T),a={millisecond:15,second:12,minute:9,hour:6,day:3};let p,h="millisecond";for(p in _){if(f===_.week&&+this.dateFormat("%w",T)===k&&n.substr(6)==="00:00:00.000"){p="week";break}if(_[p]>f){p=h;break}if(a[p]&&n.substr(a[p])!=="01-01 00:00:00.000".substr(a[p]))break;p!=="week"&&(h=p)}return this.resolveDTLFormat(w[p]).main}}return y}),nt(A,"Core/Defaults.js",[A["Core/Chart/ChartDefaults.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Color/Palettes.js"],A["Core/Time.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y){const{isTouchDevice:U,svg:O}=W,{merge:N}=Y,R={colors:J.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:j,title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:"",align:"center",widthAdjust:-44},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",layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:O,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %e %b, %H:%M:%S.%L",second:"%A, %e %b, %H:%M:%S",minute:"%A, %e %b, %H:%M",hour:"%A, %e %b, %H:%M",day:"%A, %e %b %Y",week:"Week from %A, %e %b %Y",month:"%B %Y",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:U?25:10,headerFormat:'<span style="font-size: 0.8em">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,shadow:!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"}};R.chart.styledMode=!1;const x=new K(R.time);return j={defaultOptions:R,defaultTime:x,getOptions:function(){return R},setOptions:function(b){return N(!0,R,b),(b.time||b.global)&&(W.time?W.time.update(N(R.global,R.time,b.global,b.time)):W.time=x),R}},j}),nt(A,"Core/Animation/Fx.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P,W){const{parse:J}=j,{win:K}=P,{isNumber:Y,objectEach:U}=W;class O{constructor(R,x,b){this.pos=NaN,this.options=x,this.elem=R,this.prop=b}dSetter(){var R=this.paths;const x=R&&R[0];R=R&&R[1];const b=this.now||0;let _=[];if(b!==1&&x&&R)if(x.length===R.length&&1>b)for(let I=0;I<R.length;I++){const d=x[I],y=R[I],v=[];for(let f=0;f<y.length;f++){const T=d[f],k=y[f];Y(T)&&Y(k)&&(y[0]!=="A"||f!==4&&f!==5)?v[f]=T+b*(k-T):v[f]=k}_.push(v)}else _=R;else _=this.toD||[];this.elem.attr("d",_,void 0,!0)}update(){const R=this.elem,x=this.prop,b=this.now,_=this.options.step;this[x+"Setter"]?this[x+"Setter"]():R.attr?R.element&&R.attr(x,b,null,!0):R.style[x]=b+this.unit,_&&_.call(R,b,this)}run(R,x,b){const _=this,I=_.options,d=function(f){return d.stopped?!1:_.step(f)},y=K.requestAnimationFrame||function(f){setTimeout(f,13)},v=function(){for(let f=0;f<O.timers.length;f++)O.timers[f]()||O.timers.splice(f--,1);O.timers.length&&y(v)};R!==x||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=R,this.end=x,this.unit=b,this.now=this.start,this.pos=0,d.elem=this.elem,d.prop=this.prop,d()&&O.timers.push(d)===1&&y(v)):(delete I.curAnim[this.prop],I.complete&&Object.keys(I.curAnim).length===0&&I.complete.call(this.elem))}step(R){const x=+new Date,b=this.options,_=this.elem,I=b.complete,d=b.duration,y=b.curAnim;let v;return _.attr&&!_.element?R=!1:R||x>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),v=y[this.prop]=!0,U(y,function(f){f!==!0&&(v=!1)}),v&&I&&I.call(_),R=!1):(this.pos=b.easing((x-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),R=!0),R}initPath(R,x,b){function _(n,a){for(;n.length<k;){var p=n[0];const h=a[k-n.length];h&&p[0]==="M"&&(n[0]=h[0]==="C"?["C",p[1],p[2],p[1],p[2],p[1],p[2]]:["L",p[1],p[2]]),n.unshift(p),v&&(p=n.pop(),n.push(n[n.length-1],p))}}function I(n,a){for(;n.length<k;)if(a=n[Math.floor(n.length/f)-1].slice(),a[0]==="C"&&(a[1]=a[5],a[2]=a[6]),v){const p=n[Math.floor(n.length/f)].slice();n.splice(n.length/2,0,a,p)}else n.push(a)}const d=R.startX,y=R.endX;b=b.slice();const v=R.isArea,f=v?2:1;let T,k,w;if(x=x&&x.slice(),!x)return[b,b];if(d&&y&&y.length){for(R=0;R<d.length;R++)if(d[R]===y[0]){T=R;break}else if(d[0]===y[y.length-d.length+R]){T=R,w=!0;break}else if(d[d.length-1]===y[y.length-d.length+R]){T=d.length-R;break}typeof T>"u"&&(x=[])}return x.length&&Y(T)&&(k=b.length+T*f,w?(_(x,b),I(b,x)):(_(b,x),I(x,b))),[x,b]}fillSetter(){O.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,J(this.start).tweenTo(J(this.end),this.pos),void 0,!0)}}return O.timers=[],O}),nt(A,"Core/Animation/AnimationUtilities.js",[A["Core/Animation/Fx.js"],A["Core/Utilities.js"]],function(j,P){function W(_){return N(_)?R({duration:500,defer:0},_):{duration:_?500:0,defer:0}}function J(_,I){let d=j.timers.length;for(;d--;)j.timers[d].elem!==_||I&&I!==j.timers[d].prop||(j.timers[d].stopped=!0)}const{defined:K,getStyle:Y,isArray:U,isNumber:O,isObject:N,merge:R,objectEach:x,pick:b}=P;return{animate:function(_,I,d){let y,v="",f,T,k;N(d)||(k=arguments,d={duration:k[2],easing:k[3],complete:k[4]}),O(d.duration)||(d.duration=400),d.easing=typeof d.easing=="function"?d.easing:Math[d.easing]||Math.easeInOutSine,d.curAnim=R(I),x(I,function(w,n){J(_,n),T=new j(_,d,n),f=void 0,n==="d"&&U(I.d)?(T.paths=T.initPath(_,_.pathArray,I.d),T.toD=I.d,y=0,f=1):_.attr?y=_.attr(n):(y=parseFloat(Y(_,n))||0,n!=="opacity"&&(v="px")),f||(f=w),typeof f=="string"&&f.match("px")&&(f=f.replace(/px/g,"")),T.run(y,f,v)})},animObject:W,getDeferredAnimation:function(_,I,d){const y=W(I);let v=0,f=0;return(d?[d]:_.series).forEach(T=>{T=W(T.options.animation),v=I&&K(I.defer)?y.defer:Math.max(v,T.duration+T.defer),f=Math.min(y.duration,T.duration)}),_.renderer.forExport&&(v=0),{defer:Math.max(0,v-f),duration:Math.min(v,f)}},setAnimation:function(_,I){I.renderer.globalAnimation=b(_,I.options.chart.animation,!0)},stop:J}}),nt(A,"Core/Renderer/HTML/AST.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P){const{SVG_NS:W,win:J}=j,{attr:K,createElement:Y,css:U,error:O,isFunction:N,isString:R,objectEach:x,splat:b}=P;({trustedTypes:P}=J);const _=P&&N(P.createPolicy)&&P.createPolicy("highcharts",{createHTML:v=>v});P=_?_.createHTML(""):"";try{var I=!!new DOMParser().parseFromString(P,"text/html")}catch{I=!1}const d=I;class y{static filterUserAttributes(f){return x(f,(T,k)=>{let w=!0;y.allowedAttributes.indexOf(k)===-1&&(w=!1),["background","dynsrc","href","lowsrc","src"].indexOf(k)!==-1&&(w=R(T)&&y.allowedReferences.some(n=>T.indexOf(n)===0)),w||(O(33,!1,void 0,{"Invalid attribute in config":`${k}`}),delete f[k]),R(T)&&f[k]&&(f[k]=T.replace(/</g,"&lt;"))}),f}static parseStyle(f){return f.split(";").reduce((T,k)=>{k=k.split(":").map(n=>n.trim());const w=k.shift();return w&&k.length&&(T[w.replace(/-([a-z])/g,n=>n[1].toUpperCase())]=k.join(":")),T},{})}static setElementHTML(f,T){f.innerHTML=y.emptyHTML,T&&new y(T).addToDOM(f)}constructor(f){this.nodes=typeof f=="string"?this.parseMarkup(f):f}addToDOM(f){function T(k,w){let n;return b(k).forEach(function(a){var p=a.tagName;const h=a.textContent?j.doc.createTextNode(a.textContent):void 0,c=y.bypassHTMLFiltering;let e;if(p)if(p==="#text")e=h;else if(y.allowedTags.indexOf(p)!==-1||c){p=j.doc.createElementNS(p==="svg"?W:w.namespaceURI||W,p);const t=a.attributes||{};x(a,function(i,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(t[l]=i)}),K(p,c?t:y.filterUserAttributes(t)),a.style&&U(p,a.style),h&&p.appendChild(h),T(a.children||[],p),e=p}else O(33,!1,void 0,{"Invalid tagName in config":p});e&&w.appendChild(e),n=e}),n}return T(this.nodes,f)}parseMarkup(f){const T=[];if(f=f.trim().replace(/ style=(["'])/g," data-style=$1"),d)f=new DOMParser().parseFromString(_?_.createHTML(f):f,"text/html");else{const w=Y("div");w.innerHTML=f,f={body:w}}const k=(w,n)=>{var a=w.nodeName.toLowerCase();const p={tagName:a};if(a==="#text"&&(p.textContent=w.textContent||""),a=w.attributes){const h={};[].forEach.call(a,c=>{c.name==="data-style"?p.style=y.parseStyle(c.value):h[c.name]=c.value}),p.attributes=h}if(w.childNodes.length){const h=[];[].forEach.call(w.childNodes,c=>{k(c,h)}),h.length&&(p.children=h)}n.push(p)};return[].forEach.call(f.body.childNodes,w=>k(w,T)),T}}return y.allowedAttributes="alt aria-controls aria-describedby aria-expanded aria-haspopup aria-hidden aria-label aria-labelledby aria-live aria-pressed aria-readonly aria-roledescription aria-selected class clip-path color colspan cx cy d dx dy disabled fill flood-color flood-opacity height href id in markerHeight markerWidth offset opacity orient padding paddingLeft paddingRight patternUnits r refX refY role scope slope src startOffset stdDeviation stroke stroke-linecap stroke-width style tableValues result rowspan summary target tabindex text-align text-anchor textAnchor textLength title type valign width x x1 x2 xlink:href y y1 y2 zIndex".split(" "),y.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),y.allowedTags="a abbr b br button caption circle clipPath code dd defs div dl dt em feComponentTransfer feDropShadow feFuncA feFuncB feFuncG feFuncR feGaussianBlur feOffset feMerge feMergeNode filter h1 h2 h3 h4 h5 h6 hr i img li linearGradient marker ol p path pattern pre rect small span stop strong style sub sup svg table text textPath thead title tbody tspan td th tr u ul #text".split(" "),y.emptyHTML=P,y.bypassHTMLFiltering=!1,y}),nt(A,"Core/Templating.js",[A["Core/Defaults.js"],A["Core/Utilities.js"]],function(j,P){function W(d="",y,v){const f=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,T=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,k=[],w=/f$/,n=/\.([0-9])/,a=K.lang,p=v&&v.time||Y,h=v&&v.numberFormatter||J,c=(r="")=>{let S;return r==="true"?!0:r==="false"?!1:(S=Number(r)).toString()===r?S:O(r,y)};let e,t,i=0,l;for(;(e=f.exec(d))!==null;){const r=T.exec(e[1]);r&&(e=r,l=!0),t&&t.isBlock||(t={ctx:y,expression:e[1],find:e[0],isBlock:e[1].charAt(0)==="#",start:e.index,startInner:e.index+e[0].length,length:e[0].length});var u=e[1].split(" ")[0].replace("#","");if(I[u]&&(t.isBlock&&u===t.fn&&i++,t.fn||(t.fn=u)),u=e[1]==="else",t.isBlock&&t.fn&&(e[1]===`/${t.fn}`||u))if(i)u||i--;else{var L=t.startInner;L=d.substr(L,e.index-L),t.body===void 0?(t.body=L,t.startInner=e.index+e[0].length):t.elseBody=L,t.find+=L+e[0],u||(k.push(t),t=void 0)}else t.isBlock||k.push(t);if(r&&(t==null||!t.isBlock))break}return k.forEach(r=>{const{body:S,elseBody:F,expression:q,fn:rt}=r;var B;if(rt){var s=[r],M=q.split(" ");for(B=I[rt].length;B--;)s.unshift(c(M[B+1]));B=I[rt].apply(y,s),r.isBlock&&typeof B=="boolean"&&(B=W(B?S:F,y))}else s=q.split(":"),B=c(s.shift()||""),s.length&&typeof B=="number"&&(s=s.join(":"),w.test(s)?(M=parseInt((s.match(n)||["","-1"])[1],10),B!==null&&(B=h(B,M,a.decimalPoint,-1<s.indexOf(",")?a.thousandsSep:""))):B=p.dateFormat(s,B));d=d.replace(r.find,b(B,""))}),l?W(d,y,v):d}function J(d,y,v,f){d=+d||0,y=+y;const T=K.lang;var k=(d.toString().split(".")[1]||"").split("e")[0].length;const w=d.toString().split("e"),n=y;if(y===-1)y=Math.min(k,20);else if(!R(y))y=2;else if(y&&w[1]&&0>w[1]){var a=y+ +w[1];0<=a?(w[0]=(+w[0]).toExponential(a).split("e")[0],y=a):(w[0]=w[0].split(".")[0]||0,d=20>y?(w[0]*Math.pow(10,w[1])).toFixed(y):0,w[1]=0)}a=(Math.abs(w[1]?w[0]:d)+Math.pow(10,-Math.max(y,k)-1)).toFixed(y),k=String(_(a));const p=3<k.length?k.length%3:0;return v=b(v,T.decimalPoint),f=b(f,T.thousandsSep),d=(0>d?"-":"")+(p?k.substr(0,p)+f:""),d=0>+w[1]&&!n?"0":d+k.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+f),y&&(d+=v+a.slice(-y)),w[1]&&+d!=0&&(d+="e"+w[1]),d}const{defaultOptions:K,defaultTime:Y}=j,{extend:U,getNestedProperty:O,isArray:N,isNumber:R,isObject:x,pick:b,pInt:_}=P,I={add:(d,y)=>d+y,divide:(d,y)=>y!==0?d/y:"",eq:(d,y)=>d==y,each:function(d){const y=arguments[arguments.length-1];return N(d)?d.map((v,f)=>W(y.body,U(x(v)?v:{"@this":v},{"@index":f,"@first":f===0,"@last":f===d.length-1}))).join(""):!1},ge:(d,y)=>d>=y,gt:(d,y)=>d>y,if:d=>!!d,le:(d,y)=>d<=y,lt:(d,y)=>d<y,multiply:(d,y)=>d*y,ne:(d,y)=>d!=y,subtract:(d,y)=>d-y,unless:d=>!d};return{dateFormat:function(d,y,v){return Y.dateFormat(d,y,v)},format:W,helpers:I,numberFormat:J}}),nt(A,"Core/Renderer/RendererUtilities.js",[A["Core/Utilities.js"]],function(j){const{clamp:P,pick:W,stableSort:J}=j;var K;return function(Y){function U(O,N,R){const x=O;var b=x.reducedLen||N,_=(T,k)=>(k.rank||0)-(T.rank||0);const I=(T,k)=>T.target-k.target;let d,y=!0,v=[],f=0;for(d=O.length;d--;)f+=O[d].size;if(f>b){for(J(O,_),f=d=0;f<=b;)f+=O[d].size,d++;v=O.splice(d-1,O.length)}for(J(O,I),O=O.map(T=>({size:T.size,targets:[T.target],align:W(T.align,.5)}));y;){for(d=O.length;d--;)b=O[d],_=(Math.min.apply(0,b.targets)+Math.max.apply(0,b.targets))/2,b.pos=P(_-b.size*b.align,0,N-b.size);for(d=O.length,y=!1;d--;)0<d&&O[d-1].pos+O[d-1].size>O[d].pos&&(O[d-1].size+=O[d].size,O[d-1].targets=O[d-1].targets.concat(O[d].targets),O[d-1].align=.5,O[d-1].pos+O[d-1].size>N&&(O[d-1].pos=N-O[d-1].size),O.splice(d,1),y=!0)}return x.push.apply(x,v),d=0,O.some(T=>{let k=0;return(T.targets||[]).some(()=>(x[d].pos=T.pos+k,typeof R<"u"&&Math.abs(x[d].pos-x[d].target)>R?(x.slice(0,d+1).forEach(w=>delete w.pos),x.reducedLen=(x.reducedLen||N)-.1*N,x.reducedLen>.1*N&&U(x,N,R),!0):(k+=x[d].size,d++,!1)))}),J(x,I),x}Y.distribute=U}(K||(K={})),K}),nt(A,"Core/Renderer/SVG/SVGElement.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P,W,J){const{animate:K,animObject:Y,stop:U}=j,{deg2rad:O,doc:N,svg:R,SVG_NS:x,win:b}=W,{addEvent:_,attr:I,createElement:d,css:y,defined:v,erase:f,extend:T,fireEvent:k,isArray:w,isFunction:n,isObject:a,isString:p,merge:h,objectEach:c,pick:e,pInt:t,syncTimeout:i,uniqueKey:l}=J;class u{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=x}_defaultGetter(r){return r=e(this[r+"Value"],this[r],this.element?this.element.getAttribute(r):null,0),/^[\-0-9\.]+$/.test(r)&&(r=parseFloat(r)),r}_defaultSetter(r,S,F){F.setAttribute(S,r)}add(r){const S=this.renderer,F=this.element;let q;return r&&(this.parentGroup=r),typeof this.textStr<"u"&&this.element.nodeName==="text"&&S.buildText(this),this.added=!0,(!r||r.handleZ||this.zIndex)&&(q=this.zIndexSetter()),q||(r?r.element:S.box).appendChild(F),this.onAdd&&this.onAdd(),this}addClass(r,S){const F=S?"":this.attr("class")||"";return r=(r||"").split(/ /g).reduce(function(q,rt){return F.indexOf(rt)===-1&&q.push(rt),q},F?[F]:[]).join(" "),r!==F&&this.attr("class",r),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(r,S,F){const q={};var rt=this.renderer,B=rt.alignedObjects,s;let M,z;r?(this.alignOptions=r,this.alignByTranslate=S,(!F||p(F))&&(this.alignTo=s=F||"renderer",f(B,this),B.push(this),F=void 0)):(r=this.alignOptions,S=this.alignByTranslate,s=this.alignTo),F=e(F,rt[s],s==="scrollablePlotBox"?rt.plotBox:void 0,rt),s=r.align;const D=r.verticalAlign;return rt=(F.x||0)+(r.x||0),B=(F.y||0)+(r.y||0),s==="right"?M=1:s==="center"&&(M=2),M&&(rt+=(F.width-(r.width||0))/M),q[S?"translateX":"x"]=Math.round(rt),D==="bottom"?z=1:D==="middle"&&(z=2),z&&(B+=(F.height-(r.height||0))/z),q[S?"translateY":"y"]=Math.round(B),this[this.placed?"animate":"attr"](q),this.placed=!0,this.alignAttr=q,this}alignSetter(r){const S={left:"start",center:"middle",right:"end"};S[r]&&(this.alignValue=r,this.element.setAttribute("text-anchor",S[r]))}animate(r,S,F){const q=Y(e(S,this.renderer.globalAnimation,!0));return S=q.defer,N.hidden&&(q.duration=0),q.duration!==0?(F&&(q.complete=F),i(()=>{this.element&&K(this,r,q)},S)):(this.attr(r,void 0,F||q.complete),c(r,function(rt,B){q.step&&q.step.call(this,rt,{prop:B,pos:1,elem:this})},this)),this}applyTextOutline(r){const S=this.element;r.indexOf("contrast")!==-1&&(r=r.replace(/contrast/g,this.renderer.getContrast(S.style.fill)));var F=r.split(" ");if(r=F[F.length-1],(F=F[0])&&F!=="none"&&W.svg){this.fakeTS=!0,F=F.replace(/(^[\d\.]+)(.*?)$/g,function(B,s,M){return 2*Number(s)+M}),this.removeTextOutline();const q=N.createElementNS(x,"tspan");I(q,{class:"highcharts-text-outline",fill:r,stroke:r,"stroke-width":F,"stroke-linejoin":"round"}),r=S.querySelector("textPath")||S,[].forEach.call(r.childNodes,B=>{const s=B.cloneNode(!0);s.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(M=>s.removeAttribute(M)),q.appendChild(s)});let rt=0;[].forEach.call(r.querySelectorAll("text tspan"),B=>{rt+=Number(B.getAttribute("dy"))}),F=N.createElementNS(x,"tspan"),F.textContent="​",I(F,{x:Number(S.getAttribute("x")),dy:-rt}),q.appendChild(F),r.insertBefore(q,r.firstChild)}}attr(r,S,F,q){const rt=this.element,B=u.symbolCustomAttribs;let s,M,z=this,D,V;return typeof r=="string"&&typeof S<"u"&&(s=r,r={},r[s]=S),typeof r=="string"?z=(this[r+"Getter"]||this._defaultGetter).call(this,r,rt):(c(r,function(o,g){D=!1,q||U(this,g),this.symbolName&&B.indexOf(g)!==-1&&(M||(this.symbolAttr(r),M=!0),D=!0),!this.rotation||g!=="x"&&g!=="y"||(this.doTransform=!0),D||(V=this[g+"Setter"]||this._defaultSetter,V.call(this,o,g,rt))},this),this.afterSetters()),F&&F.call(this),z}clip(r){return this.attr("clip-path",r?"url("+this.renderer.url+"#"+r.id+")":"none")}crisp(r,S){S=S||r.strokeWidth||0;const F=Math.round(S)%2/2;return r.x=Math.floor(r.x||this.x||0)+F,r.y=Math.floor(r.y||this.y||0)+F,r.width=Math.floor((r.width||this.width||0)-2*F),r.height=Math.floor((r.height||this.height||0)-2*F),v(r.strokeWidth)&&(r.strokeWidth=S),r}complexColor(r,S,F){const q=this.renderer;let rt,B,s,M,z,D,V,o,g,m,H=[],G;k(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?B="radialGradient":r.linearGradient&&(B="linearGradient"),B){if(s=r[B],z=q.gradients,D=r.stops,g=F.radialReference,w(s)&&(r[B]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),B==="radialGradient"&&g&&!v(s.gradientUnits)&&(M=s,s=h(s,q.getRadialAttr(g,M),{gradientUnits:"userSpaceOnUse"})),c(s,function($,tt){tt!=="id"&&H.push(tt,$)}),c(D,function($){H.push($)}),H=H.join(","),z[H])m=z[H].attr("id");else{s.id=m=l();const $=z[H]=q.createElement(B).attr(s).add(q.defs);$.radAttr=M,$.stops=[],D.forEach(function(tt){tt[1].indexOf("rgba")===0?(rt=P.parse(tt[1]),V=rt.get("rgb"),o=rt.get("a")):(V=tt[1],o=1),tt=q.createElement("stop").attr({offset:tt[0],"stop-color":V,"stop-opacity":o}).add($),$.stops.push(tt)})}G="url("+q.url+"#"+m+")",F.setAttribute(S,G),F.gradient=H,r.toString=function(){return G}}})}css(r){const S=this.styles,F={},q=this.element;let rt,B=!S;if(S&&c(r,function(s,M){S&&S[M]!==s&&(F[M]=s,B=!0)}),B){S&&(r=T(S,F)),r.width===null||r.width==="auto"?delete this.textWidth:q.nodeName.toLowerCase()==="text"&&r.width&&(rt=this.textWidth=t(r.width)),this.styles=r,rt&&!R&&this.renderer.forExport&&delete r.width;const s=h(r);q.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach(M=>s&&delete s[M]),s.color&&(s.fill=s.color)),y(q,s)}return this.added&&(this.element.nodeName==="text"&&this.renderer.buildText(this),r.textOutline&&this.applyTextOutline(r.textOutline)),this}dashstyleSetter(r){let S=this["stroke-width"];if(S==="inherit"&&(S=1),r=r&&r.toLowerCase()){const F=r.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(r=F.length;r--;)F[r]=""+t(F[r])*e(S,NaN);r=F.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",r)}}destroy(){const r=this;var S=r.element||{};const F=r.renderer;var q=S.ownerSVGElement;let rt=S.nodeName==="SPAN"&&r.parentGroup||void 0;if(S.onclick=S.onmouseout=S.onmouseover=S.onmousemove=S.point=null,U(r),r.clipPath&&q){const B=r.clipPath;[].forEach.call(q.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(B.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=B.destroy()}if(r.stops){for(q=0;q<r.stops.length;q++)r.stops[q].destroy();r.stops.length=0,r.stops=void 0}for(r.safeRemoveChild(S);rt&&rt.div&&rt.div.childNodes.length===0;)S=rt.parentGroup,r.safeRemoveChild(rt.div),delete rt.div,rt=S;r.alignTo&&f(F.alignedObjects,r),c(r,function(B,s){r[s]&&r[s].parentGroup===r&&r[s].destroy&&r[s].destroy(),delete r[s]})}dSetter(r,S,F){w(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((q,rt,B)=>rt&&rt.join?(B?q+" ":"")+rt.join(" "):(rt||"").toString(),"")),/(NaN| {2}|^$)/.test(r)&&(r="M 0 0"),this[S]!==r&&(F.setAttribute(S,r),this[S]=r)}fadeOut(r){const S=this;S.animate({opacity:0},{duration:e(r,150),complete:function(){S.hide()}})}fillSetter(r,S,F){typeof r=="string"?F.setAttribute(S,r):r&&this.complexColor(r,S,F)}getBBox(r,S){const{alignValue:F,element:q,renderer:rt,styles:B,textStr:s}=this,{cache:M,cacheKeys:z}=rt;var D=q.namespaceURI===this.SVG_NS;S=e(S,this.rotation,0);var V=rt.styledMode?q&&u.prototype.getStyle.call(q,"font-size"):B&&B.fontSize;let o,g;if(v(s)&&(g=s.toString(),g.indexOf("<")===-1&&(g=g.replace(/[0-9]/g,"0")),g+=["",rt.rootFontSize,V,S,this.textWidth,F,B&&B.textOverflow,B&&B.fontWeight].join()),g&&!r&&(o=M[g]),!o){if(D||rt.forExport){try{var m=this.fakeTS&&function(it){const at=q.querySelector(".highcharts-text-outline");at&&y(at,{display:it})};n(m)&&m("none"),o=q.getBBox?T({},q.getBBox()):{width:q.offsetWidth,height:q.offsetHeight,x:0,y:0},n(m)&&m("")}catch{}(!o||0>o.width)&&(o={x:0,y:0,width:0,height:0})}else o=this.htmlGetBBox();if(m=o.width,r=o.height,D&&(o.height=r={"11px,17":14,"13px,20":16}[`${V||""},${Math.round(r)}`]||r),S){D=Number(q.getAttribute("y")||0)-o.y,V={right:1,center:.5}[F||0]||0;var H=S*O,G=(S-90)*O,$=m*Math.cos(H);S=m*Math.sin(H);var tt=Math.cos(G);H=Math.sin(G),m=o.x+V*(m-$)+D*tt,G=m+$,tt=G-r*tt,$=tt-$,D=o.y+D-V*S+D*H,V=D+S,r=V-r*H,S=r-S,o.x=Math.min(m,G,tt,$),o.y=Math.min(D,V,r,S),o.width=Math.max(m,G,tt,$)-o.x,o.height=Math.max(D,V,r,S)-o.y}}if(g&&(s===""||0<o.height)){for(;250<z.length;)delete M[z.shift()];M[g]||z.push(g),M[g]=o}return o}getStyle(r){return b.getComputedStyle(this.element||this,"").getPropertyValue(r)}hasClass(r){return(""+this.attr("class")).split(" ").indexOf(r)!==-1}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}init(r,S){this.element=S==="span"?d(S):N.createElementNS(this.SVG_NS,S),this.renderer=r,k(this,"afterInit")}on(r,S){const{onEvents:F}=this;return F[r]&&F[r](),F[r]=_(this.element,r,S),this}opacitySetter(r,S,F){this.opacity=r=Number(Number(r).toFixed(3)),F.setAttribute(S,r)}removeClass(r){return this.attr("class",(""+this.attr("class")).replace(p(r)?new RegExp(`(^| )${r}( |$)`):r," ").replace(/ +/g," ").trim())}removeTextOutline(){const r=this.element.querySelector("tspan.highcharts-text-outline");r&&this.safeRemoveChild(r)}safeRemoveChild(r){const S=r.parentNode;S&&S.removeChild(r)}setRadialReference(r){const S=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=r,S&&S.radAttr&&S.animate(this.renderer.getRadialAttr(r,S.radAttr)),this}setTextPath(r,S){S=h(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},S);const F=this.renderer.url,q=this.text||this,rt=q.textPath,{attributes:B,enabled:s}=S;return r=r||rt&&rt.path,rt&&rt.undo(),r&&s?(S=_(q,"afterModifyTree",M=>{if(r&&s){let D=r.attr("id");D||r.attr("id",D=l());var z={x:0,y:0};v(B.dx)&&(z.dx=B.dx,delete B.dx),v(B.dy)&&(z.dy=B.dy,delete B.dy),q.attr(z),this.attr({transform:""}),this.box&&(this.box=this.box.destroy()),z=M.nodes.slice(0),M.nodes.length=0,M.nodes[0]={tagName:"textPath",attributes:T(B,{"text-anchor":B.textAnchor,href:`${F}#${D}`}),children:z}}}),q.textPath={path:r,undo:S}):(q.attr({dx:0,dy:0}),delete q.textPath),this.added&&(q.textCache="",this.renderer.buildText(q)),this}shadow(r){var S;const{renderer:F}=this,q=h(((S=this.parentGroup)===null||S===void 0?void 0:S.rotation)===90?{offsetX:-1,offsetY:-1}:{},a(r)?r:{});return S=F.shadowDefinition(q),this.attr({filter:r?`url(${F.url}#${S})`:"none"})}show(r=!0){return this.attr({visibility:r?"inherit":"visible"})}"stroke-widthSetter"(r,S,F){this[S]=r,F.setAttribute(S,r)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;const r=this.getStyle("stroke-width");let S=0,F;return r.indexOf("px")===r.length-2?S=t(r):r!==""&&(F=N.createElementNS(x,"rect"),I(F,{width:r,"stroke-width":0}),this.element.parentNode.appendChild(F),S=F.getBBox().width,F.parentNode.removeChild(F)),S}symbolAttr(r){const S=this;u.symbolCustomAttribs.forEach(function(F){S[F]=e(r[F],S[F])}),S.attr({d:S.renderer.symbols[S.symbolName](S.x,S.y,S.width,S.height,S)})}textSetter(r){r!==this.textStr&&(delete this.textPxLength,this.textStr=r,this.added&&this.renderer.buildText(this))}titleSetter(r){const S=this.element,F=S.getElementsByTagName("title")[0]||N.createElementNS(this.SVG_NS,"title");S.insertBefore?S.insertBefore(F,S.firstChild):S.appendChild(F),F.textContent=String(e(r,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")}toFront(){const r=this.element;return r.parentNode.appendChild(r),this}translate(r,S){return this.attr({translateX:r,translateY:S})}updateTransform(){const{element:r,matrix:S,rotation:F=0,scaleX:q,scaleY:rt,translateX:B=0,translateY:s=0}=this,M=["translate("+B+","+s+")"];v(S)&&M.push("matrix("+S.join(",")+")"),F&&M.push("rotate("+F+" "+e(this.rotationOriginX,r.getAttribute("x"),0)+" "+e(this.rotationOriginY,r.getAttribute("y")||0)+")"),(v(q)||v(rt))&&M.push("scale("+e(q,1)+" "+e(rt,1)+")"),M.length&&!(this.text||this).textPath&&r.setAttribute("transform",M.join(" "))}visibilitySetter(r,S,F){r==="inherit"?F.removeAttribute(S):this[S]!==r&&F.setAttribute(S,r),this[S]=r}xGetter(r){return this.element.nodeName==="circle"&&(r==="x"?r="cx":r==="y"&&(r="cy")),this._defaultGetter(r)}zIndexSetter(r,S){var F=this.renderer,q=this.parentGroup;const rt=(q||F).element||F.box,B=this.element;F=rt===F.box;let s=!1,M;var z=this.added;let D;if(v(r)?(B.setAttribute("data-z-index",r),r=+r,this[S]===r&&(z=!1)):v(this[S])&&B.removeAttribute("data-z-index"),this[S]=r,z){for((r=this.zIndex)&&q&&(q.handleZ=!0),S=rt.childNodes,D=S.length-1;0<=D&&!s;D--)q=S[D],z=q.getAttribute("data-z-index"),M=!v(z),q!==B&&(0>r&&M&&!F&&!D?(rt.insertBefore(B,S[D]),s=!0):(t(z)<=r||M&&(!v(r)||0<=r))&&(rt.insertBefore(B,S[D+1]),s=!0));s||(rt.insertBefore(B,S[F?3:0]),s=!0)}return s}}return u.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),u.prototype.strokeSetter=u.prototype.fillSetter,u.prototype.yGetter=u.prototype.xGetter,u.prototype.matrixSetter=u.prototype.rotationOriginXSetter=u.prototype.rotationOriginYSetter=u.prototype.rotationSetter=u.prototype.scaleXSetter=u.prototype.scaleYSetter=u.prototype.translateXSetter=u.prototype.translateYSetter=u.prototype.verticalAlignSetter=function(L,r){this[r]=L,this.doTransform=!0},u}),nt(A,"Core/Renderer/RendererRegistry.js",[A["Core/Globals.js"]],function(j){var P;return function(W){W.rendererTypes={};let J;W.getRendererType=function(K=J){return W.rendererTypes[K]||W.rendererTypes[J]},W.registerRendererType=function(K,Y,U){W.rendererTypes[K]=Y,(!J||U)&&(J=K,j.Renderer=Y)}}(P||(P={})),P}),nt(A,"Core/Renderer/SVG/SVGLabel.js",[A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(j,P){const{defined:W,extend:J,isNumber:K,merge:Y,pick:U,removeEvent:O}=P;class N extends j{constructor(x,b,_,I,d,y,v,f,T,k){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(x,"g"),this.textStr=b,this.x=_,this.y=I,this.anchorX=y,this.anchorY=v,this.baseline=T,this.className=k,this.addClass(k==="button"?"highcharts-no-tooltip":"highcharts-label"),k&&this.addClass("highcharts-"+k),this.text=x.text(void 0,0,0,f).attr({zIndex:1});let w;typeof d=="string"&&((w=/^url\((.*?)\)$/.test(d))||this.renderer.symbols[d])&&(this.symbolKey=d),this.bBox=N.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=x.styledMode||w,this.deferredAttr={},this.alignFactor=0}alignSetter(x){x={left:0,center:.5,right:1}[x],x!==this.alignFactor&&(this.alignFactor=x,this.bBox&&K(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(x,b){this.anchorX=x,this.boxAttr(b,Math.round(x)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(x,b){this.anchorY=x,this.boxAttr(b,x-this.ySetting)}boxAttr(x,b){this.box?this.box.attr(x,b):this.deferredAttr[x]=b}css(x){if(x){const b={};x=Y(x),N.textProps.forEach(_=>{typeof x[_]<"u"&&(b[_]=x[_],delete x[_])}),this.text.css(b),"fontSize"in b||"fontWeight"in b?this.updateTextPadding():("width"in b||"textOverflow"in b)&&this.updateBoxSize()}return j.prototype.css.call(this,x)}destroy(){O(this.element,"mouseenter"),O(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),j.prototype.destroy.call(this)}fillSetter(x,b){x&&(this.needsBox=!0),this.fill=x,this.boxAttr(b,x)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const x=this.padding,b=U(this.paddingLeft,x);return{width:this.width,height:this.height,x:this.bBox.x-b,y:this.bBox.y-x}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(x){this.heightSetting=x}onAdd(){this.text.add(this),this.attr({text:U(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&W(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(x,b){K(x)?x!==this[b]&&(this[b]=x,this.updateTextPadding()):this[b]=void 0}rSetter(x,b){this.boxAttr(b,x)}strokeSetter(x,b){this.stroke=x,this.boxAttr(b,x)}"stroke-widthSetter"(x,b){x&&(this.needsBox=!0),this["stroke-width"]=x,this.boxAttr(b,x)}"text-alignSetter"(x){this.textAlign=x}textSetter(x){typeof x<"u"&&this.text.attr({text:x}),this.updateTextPadding()}updateBoxSize(){var x=this.text;const b={},_=this.padding,I=this.bBox=K(this.widthSetting)&&K(this.heightSetting)&&!this.textAlign||!W(x.textStr)?N.emptyBBox:x.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||I.height||0)+2*_;const d=this.renderer.fontMetrics(x);this.baselineOffset=_+Math.min((this.text.firstLineMetrics||d).b,I.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2),this.needsBox&&!x.textPath&&(this.box||(x=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),x.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),x.add(this)),x=this.getCrispAdjust(),b.x=x,b.y=(this.baseline?-this.baselineOffset:0)+x,b.width=Math.round(this.width),b.height=Math.round(this.height),this.box.attr(J(b,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const x=this.text;if(!x.textPath){this.updateBoxSize();const b=this.baseline?0:this.baselineOffset;let _=U(this.paddingLeft,this.padding);W(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(_+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(_!==x.x||b!==x.y)&&(x.attr("x",_),x.hasBoxWidthChanged&&(this.bBox=x.getBBox(!0)),typeof b<"u"&&x.attr("y",b)),x.x=_,x.y=b}}widthSetter(x){this.widthSetting=K(x)?x:void 0}getPaddedWidth(){var x=this.padding;const b=U(this.paddingLeft,x);return x=U(this.paddingRight,x),(this.widthSetting||this.bBox.width||0)+b+x}xSetter(x){this.x=x,this.alignFactor&&(x-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(x),this.attr("translateX",this.xSetting)}ySetter(x){this.ySetting=this.y=Math.round(x),this.attr("translateY",this.ySetting)}}return N.emptyBBox={width:0,height:0,x:0,y:0},N.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),N}),nt(A,"Core/Renderer/SVG/Symbols.js",[A["Core/Utilities.js"]],function(j){function P(O,N,R,x,b){const _=[];if(b){const I=b.start||0,d=U(b.r,R);R=U(b.r,x||R),x=(b.end||0)-.001;const y=b.innerR,v=U(b.open,.001>Math.abs((b.end||0)-I-2*Math.PI)),f=Math.cos(I),T=Math.sin(I),k=Math.cos(x),w=Math.sin(x),n=U(b.longArc,.001>x-I-Math.PI?0:1);let a=["A",d,R,0,n,U(b.clockwise,1),O+d*k,N+R*w];a.params={start:I,end:x,cx:O,cy:N},_.push(["M",O+d*f,N+R*T],a),K(y)&&(a=["A",y,y,0,n,K(b.clockwise)?1-b.clockwise:0,O+y*f,N+y*T],a.params={start:x,end:I,cx:O,cy:N},_.push(v?["M",O+y*k,N+y*w]:["L",O+y*k,N+y*w],a)),v||_.push(["Z"])}return _}function W(O,N,R,x,b){return b&&b.r?J(O,N,R,x,b):[["M",O,N],["L",O+R,N],["L",O+R,N+x],["L",O,N+x],["Z"]]}function J(O,N,R,x,b){return b=(b==null?void 0:b.r)||0,[["M",O+b,N],["L",O+R-b,N],["A",b,b,0,0,1,O+R,N+b],["L",O+R,N+x-b],["A",b,b,0,0,1,O+R-b,N+x],["L",O+b,N+x],["A",b,b,0,0,1,O,N+x-b],["L",O,N+b],["A",b,b,0,0,1,O+b,N],["Z"]]}const{defined:K,isNumber:Y,pick:U}=j;return{arc:P,callout:function(O,N,R,x,b){const _=Math.min(b&&b.r||0,R,x),I=_+6,d=b&&b.anchorX;b=b&&b.anchorY||0;const y=J(O,N,R,x,{r:_});return Y(d)&&(O+d>=R?b>N+I&&b<N+x-I?y.splice(3,1,["L",O+R,b-6],["L",O+R+6,b],["L",O+R,b+6],["L",O+R,N+x-_]):y.splice(3,1,["L",O+R,x/2],["L",d,b],["L",O+R,x/2],["L",O+R,N+x-_]):0>=O+d?b>N+I&&b<N+x-I?y.splice(7,1,["L",O,b+6],["L",O-6,b],["L",O,b-6],["L",O,N+_]):y.splice(7,1,["L",O,x/2],["L",d,b],["L",O,x/2],["L",O,N+_]):b&&b>x&&d>O+I&&d<O+R-I?y.splice(5,1,["L",d+6,N+x],["L",d,N+x+6],["L",d-6,N+x],["L",O+_,N+x]):b&&0>b&&d>O+I&&d<O+R-I&&y.splice(1,1,["L",d-6,N],["L",d,N-6],["L",d+6,N],["L",R-_,N])),y},circle:function(O,N,R,x){return P(O+R/2,N+x/2,R/2,x/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(O,N,R,x){return[["M",O+R/2,N],["L",O+R,N+x/2],["L",O+R/2,N+x],["L",O,N+x/2],["Z"]]},rect:W,roundedRect:J,square:W,triangle:function(O,N,R,x){return[["M",O+R/2,N],["L",O+R,N+x],["L",O,N+x],["Z"]]},"triangle-down":function(O,N,R,x){return[["M",O,N],["L",O+R,N],["L",O+R/2,N+x],["Z"]]}}}),nt(A,"Core/Renderer/SVG/TextBuilder.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P,W){const{doc:J,SVG_NS:K,win:Y}=P,{attr:U,extend:O,fireEvent:N,isString:R,objectEach:x,pick:b}=W;class _{constructor(d){const y=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=y&&y.lineHeight,this.textOutline=y&&y.textOutline,this.ellipsis=!(!y||y.textOverflow!=="ellipsis"),this.noWrap=!(!y||y.whiteSpace!=="nowrap")}buildSVG(){const d=this.svgElement,y=d.element;var v=d.renderer,f=b(d.textStr,"").toString();const T=f.indexOf("<")!==-1,k=y.childNodes;v=!d.added&&v.box;const w=/<br.*?>/g;var n=[f,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,d.getStyle("font-size"),this.width].join();if(n!==d.textCache){for(d.textCache=n,delete d.actualWidth,n=k.length;n--;)y.removeChild(k[n]);T||this.ellipsis||this.width||d.textPath||f.indexOf(" ")!==-1&&(!this.noWrap||w.test(f))?f!==""&&(v&&v.appendChild(y),f=new j(f),this.modifyTree(f.nodes),f.addToDOM(y),this.modifyDOM(),this.ellipsis&&(y.textContent||"").indexOf("…")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["&lt;","&gt;"])),v&&v.removeChild(y)):y.appendChild(J.createTextNode(this.unescapeEntities(f))),R(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){const d=this.svgElement,y=U(d.element,"x");d.firstLineMetrics=void 0;let v;for(;(v=d.element.firstChild)&&/^[\s\u200B]*$/.test(v.textContent||" ");)d.element.removeChild(v);[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),(w,n)=>{w.nextSibling&&w.previousSibling&&(n===0&&w.previousSibling.nodeType===1&&(d.firstLineMetrics=d.renderer.fontMetrics(w.previousSibling)),U(w,{dy:this.getLineHeight(w.nextSibling),x:y}))});const f=this.width||0;if(f){var T=(w,n)=>{var a=w.textContent||"";const p=a.replace(/([^\^])-/g,"$1- ").split(" ");var h=!this.noWrap&&(1<p.length||1<d.element.childNodes.length);const c=this.getLineHeight(n);let e=0,t=d.actualWidth;if(this.ellipsis)a&&this.truncate(w,a,void 0,0,Math.max(0,f-.8*c),(i,l)=>i.substring(0,l)+"…");else if(h){for(a=[],h=[];n.firstChild&&n.firstChild!==w;)h.push(n.firstChild),n.removeChild(n.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(a.push(w.textContent||""),w.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(w,void 0,p,e===0&&t||0,f,(i,l)=>p.slice(0,l).join(" ").replace(/- /g,"-")),t=d.actualWidth,e++;h.forEach(i=>{n.insertBefore(i,w)}),a.forEach(i=>{n.insertBefore(J.createTextNode(i),w),i=J.createElementNS(K,"tspan"),i.textContent="​",U(i,{dy:c,x:y}),n.insertBefore(i,w)})}},k=w=>{[].slice.call(w.childNodes).forEach(n=>{n.nodeType===Y.Node.TEXT_NODE?T(n,w):(n.className.baseVal.indexOf("highcharts-br")!==-1&&(d.actualWidth=0),k(n))})};k(d.element)}}getLineHeight(d){return d=d.nodeType===Y.Node.TEXT_NODE?d.parentElement:d,this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(d||this.svgElement.element).h}modifyTree(d){const y=(v,f)=>{const{attributes:T={},children:k,style:w={},tagName:n}=v,a=this.renderer.styledMode;n==="b"||n==="strong"?a?T.class="highcharts-strong":w.fontWeight="bold":(n==="i"||n==="em")&&(a?T.class="highcharts-emphasized":w.fontStyle="italic"),w&&w.color&&(w.fill=w.color),n==="br"?(T.class="highcharts-br",v.textContent="​",(f=d[f+1])&&f.textContent&&(f.textContent=f.textContent.replace(/^ +/gm,""))):n==="a"&&k&&k.some(p=>p.tagName==="#text")&&(v.children=[{children:k,tagName:"tspan"}]),n!=="#text"&&n!=="a"&&(v.tagName="tspan"),O(v,{attributes:T,style:w}),k&&k.filter(p=>p.tagName!=="#text").forEach(y)};d.forEach(y),N(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,y,v,f,T,k){const w=this.svgElement,{rotation:n}=w,a=[];let p=v?1:0,h=(y||v||"").length,c=h,e,t;const i=function(l,u){if(l=u||l,(u=d.parentNode)&&typeof a[l]>"u"&&u.getSubStringLength)try{a[l]=f+u.getSubStringLength(0,v?l+1:l)}catch{}return a[l]};if(w.rotation=0,t=i(d.textContent.length),f+t>T){for(;p<=h;)c=Math.ceil((p+h)/2),v&&(e=k(v,c)),t=i(c,e&&e.length-1),p===h?p=h+1:t>T?h=c-1:p=c;h===0?d.textContent="":y&&h===y.length-1||(d.textContent=e||k(y||v,c))}v&&v.splice(0,c),w.actualWidth=t,w.rotation=n}unescapeEntities(d,y){return x(this.renderer.escapes,function(v,f){y&&y.indexOf(v)!==-1||(d=d.toString().replace(new RegExp(v,"g"),f))}),d}}return _}),nt(A,"Core/Renderer/SVG/SVGRenderer.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGLabel.js"],A["Core/Renderer/SVG/Symbols.js"],A["Core/Renderer/SVG/TextBuilder.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y,U,O,N){const{charts:R,deg2rad:x,doc:b,isFirefox:_,isMS:I,isWebKit:d,noop:y,SVG_NS:v,symbolSizes:f,win:T}=W,{addEvent:k,attr:w,createElement:n,css:a,defined:p,destroyObjectProperties:h,extend:c,isArray:e,isNumber:t,isObject:i,isString:l,merge:u,pick:L,pInt:r,uniqueKey:S}=N;let F;class q{constructor(B,s,M,z,D,V,o){this.width=this.url=this.style=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(B,s,M,z,D,V,o)}init(B,s,M,z,D,V,o){const g=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),m=g.element;o||g.css(this.getStyle(z)),B.appendChild(m),w(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&w(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=g,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(b.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=V,this.forExport=D,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=g.getStyle("font-size"),this.setSize(s,M,!1);let H;_&&B.getBoundingClientRect&&(s=function(){a(B,{left:0,top:0}),H=B.getBoundingClientRect(),a(B,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})},s(),this.unSubPixelFix=k(T,"resize",s))}definition(B){return new j([B]).addToDOM(this.defs.element)}getReferenceURL(){if((_||d)&&b.getElementsByTagName("base").length){if(!p(F)){var B=S();B=new j([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:B},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${B})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(b.body),a(B,{position:"fixed",top:0,left:0,zIndex:9e5});const s=b.elementFromPoint(6,6);F=(s&&s.id)==="hitme",b.body.removeChild(B)}if(F)return T.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(B){return this.style=c({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},B)}setStyle(B){this.boxWrapper.css(this.getStyle(B))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const B=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,this.defs=B.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(B){const s=new this.Element;return s.init(this,B),s}getRadialAttr(B,s){return{cx:B[0]-B[2]/2+(s.cx||0)*B[2],cy:B[1]-B[2]/2+(s.cy||0)*B[2],r:(s.r||0)*B[2]}}shadowDefinition(B){const s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(B).map(z=>B[z])].join("-").replace(/[^a-z0-9\-]/g,""),M=u({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},B);return this.defs.element.querySelector(`#${s}`)||this.definition({tagName:"filter",attributes:{id:s},children:[{tagName:"feDropShadow",attributes:{dx:M.offsetX,dy:M.offsetY,"flood-color":M.color,"flood-opacity":Math.min(5*M.opacity,1),stdDeviation:M.width/2}}]}),s}buildText(B){new O(B).buildSVG()}getContrast(B){return B=P.parse(B).rgba.map(s=>(s/=255,.03928>=s?s/12.92:Math.pow((s+.055)/1.055,2.4))),B=.2126*B[0]+.7152*B[1]+.0722*B[2],1.05/(B+.05)>(B+.05)/.05?"#FFFFFF":"#000000"}button(B,s,M,z,D={},V,o,g,m,H){const G=this.label(B,s,M,m,void 0,void 0,H,void 0,"button"),$=this.styledMode;B=D.states||{};let tt=0;D=u(D),delete D.states;const it=u({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},D.style);delete D.style;let at=j.filterUserAttributes(D);G.attr(u({padding:8,r:2},at));let ht,pt,E;return $||(at=u({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},at),V=u(at,{fill:"#e6e6e6"},j.filterUserAttributes(V||B.hover||{})),ht=V.style,delete V.style,o=u(at,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},j.filterUserAttributes(o||B.select||{})),pt=o.style,delete o.style,g=u(at,{style:{color:"#cccccc"}},j.filterUserAttributes(g||B.disabled||{})),E=g.style,delete g.style),k(G.element,I?"mouseover":"mouseenter",function(){tt!==3&&G.setState(1)}),k(G.element,I?"mouseout":"mouseleave",function(){tt!==3&&G.setState(tt)}),G.setState=function(C){C!==1&&(G.state=tt=C),G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][C||0]),$||(G.attr([at,V,o,g][C||0]),C=[it,ht,pt,E][C||0],i(C)&&G.css(C))},$||(G.attr(at).css(c({cursor:"default"},it)),H&&G.text.css({pointerEvents:"none"})),G.on("touchstart",C=>C.stopPropagation()).on("click",function(C){tt!==3&&z.call(G,C)})}crispLine(B,s,M="round"){const z=B[0],D=B[1];return p(z[1])&&z[1]===D[1]&&(z[1]=D[1]=Math[M](z[1])-s%2/2),p(z[2])&&z[2]===D[2]&&(z[2]=D[2]=Math[M](z[2])+s%2/2),B}path(B){const s=this.styledMode?{}:{fill:"none"};return e(B)?s.d=B:i(B)&&c(s,B),this.createElement("path").attr(s)}circle(B,s,M){return B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:M},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,D,V){V.setAttribute("c"+D,z)},s.attr(B)}arc(B,s,M,z,D,V){return i(B)?(z=B,s=z.y,M=z.r,B=z.x):z={innerR:z,start:D,end:V},B=this.symbol("arc",B,s,M,M,z),B.r=M,B}rect(B,s,M,z,D,V){B=i(B)?B:typeof B>"u"?{}:{x:B,y:s,r:D,width:Math.max(M||0,0),height:Math.max(z||0,0)};const o=this.createElement("rect");return this.styledMode||(typeof V<"u"&&(B["stroke-width"]=V,c(B,o.crisp(B))),B.fill="none"),o.rSetter=function(g,m,H){o.r=g,w(H,{rx:g,ry:g})},o.rGetter=function(){return o.r||0},o.attr(B)}roundedRect(B){return this.symbol("roundedRect").attr(B)}setSize(B,s,M){this.width=B,this.height=s,this.boxWrapper.animate({width:B,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:L(M,!0)?void 0:0}),this.alignElements()}g(B){const s=this.createElement("g");return B?s.attr({class:"highcharts-"+B}):s}image(B,s,M,z,D,V){const o={preserveAspectRatio:"none"};t(s)&&(o.x=s),t(M)&&(o.y=M),t(z)&&(o.width=z),t(D)&&(o.height=D);const g=this.createElement("image").attr(o);return s=function(m){g.attr({href:B}),V.call(g,m)},V?(g.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),M=new T.Image,k(M,"load",s),M.src=B,M.complete&&s({})):g.attr({href:B}),g}symbol(B,s,M,z,D,V){const o=this,g=/^url\((.*?)\)$/,m=g.test(B),H=!m&&(this.symbols[B]?B:"circle"),G=H&&this.symbols[H];let $,tt,it,at;if(G)typeof s=="number"&&(tt=G.call(this.symbols,Math.round(s||0),Math.round(M||0),z||0,D||0,V)),$=this.path(tt),o.styledMode||$.attr("fill","none"),c($,{symbolName:H||void 0,x:s,y:M,width:z,height:D}),V&&c($,V);else if(m){it=B.match(g)[1];const ht=$=this.image(it);ht.imgwidth=L(V&&V.width,f[it]&&f[it].width),ht.imgheight=L(V&&V.height,f[it]&&f[it].height),at=pt=>pt.attr({width:pt.width,height:pt.height}),["width","height"].forEach(function(pt){ht[pt+"Setter"]=function(E,C){this[C]=E;const{alignByTranslate:Z,element:X,width:Q,height:dt,imgwidth:ct,imgheight:xt}=this;if(E=this["img"+C],p(E)){let yt=1;V&&V.backgroundSize==="within"&&Q&&dt?(yt=Math.min(Q/ct,dt/xt),w(X,{width:Math.round(ct*yt),height:Math.round(xt*yt)})):X&&X.setAttribute(C,E),Z||this.translate(((Q||0)-ct*yt)/2,((dt||0)-xt*yt)/2)}}}),p(s)&&ht.attr({x:s,y:M}),ht.isImg=!0,p(ht.imgwidth)&&p(ht.imgheight)?at(ht):(ht.attr({width:0,height:0}),n("img",{onload:function(){const pt=R[o.chartIndex];this.width===0&&(a(this,{position:"absolute",top:"-999em"}),b.body.appendChild(this)),f[it]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&at(ht),this.parentNode&&this.parentNode.removeChild(this),o.imgCount--,!o.imgCount&&pt&&!pt.hasLoaded&&pt.onload()},src:it}),this.imgCount++)}return $}clipRect(B,s,M,z){const D=S()+"-",V=this.createElement("clipPath").attr({id:D}).add(this.defs);return B=this.rect(B,s,M,z,0).add(V),B.id=D,B.clipPath=V,B.count=0,B}text(B,s,M,z){const D={};return z&&(this.allowHTML||!this.forExport)?this.html(B,s,M):(D.x=Math.round(s||0),M&&(D.y=Math.round(M)),p(B)&&(D.text=B),B=this.createElement("text").attr(D),(!z||this.forExport&&!this.allowHTML)&&(B.xSetter=function(V,o,g){const m=g.getElementsByTagName("tspan"),H=g.getAttribute(o);for(let G=0,$;G<m.length;G++)$=m[G],$.getAttribute(o)===H&&$.setAttribute(o,V);g.setAttribute(o,V)}),B)}fontMetrics(B){B=r(K.prototype.getStyle.call(B,"font-size")||0);const s=24>B?B+3:Math.round(1.2*B);return{h:s,b:Math.round(.8*s),f:B}}rotCorr(B,s,M){let z=B;return s&&M&&(z=Math.max(z*Math.cos(s*x),4)),{x:-B/3*Math.sin(s*x),y:z}}pathToSegments(B){const s=[],M=[],z={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2};for(let D=0;D<B.length;D++)l(M[0])&&t(B[D])&&M.length===z[M[0].toUpperCase()]&&B.splice(D,0,M[0].replace("M","L").replace("m","l")),typeof B[D]=="string"&&(M.length&&s.push(M.slice(0)),M.length=0),M.push(B[D]);return s.push(M.slice(0)),s}label(B,s,M,z,D,V,o,g,m){return new Y(this,B,s,M,z,D,V,o,g,m)}alignElements(){this.alignedObjects.forEach(B=>B.align())}}return c(q.prototype,{Element:K,SVG_NS:v,escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},symbols:U,draw:y}),J.registerRendererType("svg",q,!0),q}),nt(A,"Core/Renderer/HTML/HTMLElement.js",[A["Core/Globals.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(j,P,W){const{isFirefox:J,isMS:K,isWebKit:Y,win:U}=j,{css:O,defined:N,extend:R,pick:x,pInt:b}=W,_=[];class I extends P{static compose(y){if(W.pushUnique(_,y)){const v=I.prototype,f=y.prototype;f.getSpanCorrection=v.getSpanCorrection,f.htmlCss=v.htmlCss,f.htmlGetBBox=v.htmlGetBBox,f.htmlUpdateTransform=v.htmlUpdateTransform,f.setSpanRotation=v.setSpanRotation}return y}getSpanCorrection(y,v,f){this.xCorr=-y*f,this.yCorr=-v}htmlCss(y){const v=this.element.tagName==="SPAN"&&y&&"width"in y,f=x(v&&y.width,void 0);let T;return v&&(delete y.width,this.textWidth=f,T=!0),y&&y.textOverflow==="ellipsis"&&(y.whiteSpace="nowrap",y.overflow="hidden"),this.styles=R(this.styles,y),O(this.element,y),T&&this.htmlUpdateTransform(),this}htmlGetBBox(){const y=this.element;return{x:y.offsetLeft,y:y.offsetTop,width:y.offsetWidth,height:y.offsetHeight}}htmlUpdateTransform(){if(this.added){var y=this.renderer,v=this.element,f=this.x||0,T=this.y||0,k=this.textAlign||"left",w={left:0,center:.5,right:1}[k],n=this.styles,a=n&&n.whiteSpace;if(O(v,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),v.tagName==="SPAN"){n=this.rotation;const h=this.textWidth&&b(this.textWidth),c=[n,k,v.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else O(v,{width:"",whiteSpace:a||"nowrap"}),p=v.offsetWidth;(h>this.oldTextWidth||p>h)&&(/[ \-]/.test(v.textContent||v.innerText)||v.style.textOverflow==="ellipsis")&&(O(v,{width:p>h||n?h+"px":"auto",display:"block",whiteSpace:a||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,c!==this.cTT&&(y=y.fontMetrics(v).b,!N(n)||n===(this.oldRotation||0)&&k===this.oldAlign||this.setSpanRotation(n,w,y),this.getSpanCorrection(!N(n)&&this.textPxLength||v.offsetWidth,y,w,n,k)),O(v,{left:f+(this.xCorr||0)+"px",top:T+(this.yCorr||0)+"px"}),this.cTT=c,this.oldRotation=n,this.oldAlign=k}}else this.alignOnAdd=!0}setSpanRotation(y,v,f){const T={},k=K&&!/Edge/.test(U.navigator.userAgent)?"-ms-transform":Y?"-webkit-transform":J?"MozTransform":U.opera?"-o-transform":void 0;k&&(T[k]=T.transform="rotate("+y+"deg)",T[k+(J?"Origin":"-origin")]=T.transformOrigin=100*v+"% "+f+"px",O(this.element,T))}}return I}),nt(A,"Core/Renderer/HTML/HTMLRenderer.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Utilities.js"]],function(j,P,W,J){const{attr:K,createElement:Y,extend:U,pick:O}=J,N=[];class R extends W{static compose(b){return J.pushUnique(N,b)&&(b.prototype.html=R.prototype.html),b}html(b,_,I){const d=this.createElement("span"),y=d.element,v=d.renderer,f=function(T,k){["opacity","visibility"].forEach(function(w){T[w+"Setter"]=function(n,a,p){const h=T.div?T.div.style:k;P.prototype[w+"Setter"].call(this,n,a,p),h&&(h[a]=n)}}),T.addedSetters=!0};return d.textSetter=function(T){T!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,j.setElementHTML(this.element,O(T,"")),this.textStr=T,d.doTransform=!0)},f(d,d.element.style),d.xSetter=d.ySetter=d.alignSetter=d.rotationSetter=function(T,k){k==="align"?d.alignValue=d.textAlign=T:d[k]=T,d.doTransform=!0},d.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},d.attr({text:b,x:Math.round(_),y:Math.round(I)}).css({position:"absolute"}),v.styledMode||d.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),y.style.whiteSpace="nowrap",d.css=d.htmlCss,d.add=function(T){const k=v.box.parentNode,w=[];let n;if(this.parentGroup=T){if(n=T.div,!n){for(;T;)w.push(T),T=T.parentGroup;w.reverse().forEach(function(a){function p(t,i){a[i]=t,i==="translateX"?e.left=t+"px":e.top=t+"px",a.doTransform=!0}const h=K(a.element,"class"),c=a.styles||{};n=a.div=a.div||Y("div",h?{className:h}:void 0,{position:"absolute",left:(a.translateX||0)+"px",top:(a.translateY||0)+"px",display:a.display,opacity:a.opacity,visibility:a.visibility},n||k);const e=n.style;U(a,{classSetter:function(t){return function(i){this.element.setAttribute("class",i),t.className=i}}(n),css:function(t){return d.css.call(a,t),["cursor","pointerEvents"].forEach(i=>{t[i]&&(e[i]=t[i])}),a},on:function(){return w[0].div&&d.on.apply({element:w[0].div,onEvents:a.onEvents},arguments),a},translateXSetter:p,translateYSetter:p}),a.addedSetters||f(a),a.css(c)})}}else n=k;return n.appendChild(y),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d},d}}return R}),nt(A,"Core/Axis/AxisDefaults.js",[],function(){var j;return function(P){P.defaultXAxisOptions={alignTicks:!0,allowDecimals:void 0,panningEnabled:!0,zIndex:2,zoomEnabled:!0,dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e %b"},week:{main:"%e %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,gridLineDashStyle:"Solid",gridZIndex:1,labels:{autoRotation:void 0,autoRotationLimit:80,distance:15,enabled:!0,indentation:10,overflow:"justify",padding:5,reserveSpace:void 0,rotation:void 0,staggerLines:0,step:0,useHTML:!1,zIndex:7,style:{color:"#333333",cursor:"default",fontSize:"0.8em"}},maxPadding:.01,minorGridLineDashStyle:"Solid",minorTickLength:2,minorTickPosition:"outside",minorTicksPerMajor:5,minPadding:.01,offset:void 0,opposite:!1,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",rotation:0,useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},P.defaultYAxisOptions={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){const{numberFormatter:W}=this.axis.chart;return W(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},P.defaultLeftAxisOptions={title:{rotation:270}},P.defaultRightAxisOptions={title:{rotation:90}},P.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},P.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(j||(j={})),j}),nt(A,"Core/Foundation.js",[A["Core/Utilities.js"]],function(j){const{addEvent:P,isFunction:W,objectEach:J,removeEvent:K}=j;var Y;return function(U){U.registerEventOptions=function(O,N){O.eventOptions=O.eventOptions||{},J(N.events,function(R,x){O.eventOptions[x]!==R&&(O.eventOptions[x]&&(K(O,x,O.eventOptions[x]),delete O.eventOptions[x]),W(R)&&(O.eventOptions[x]=R,P(O,x,R,{order:0})))})}}(Y||(Y={})),Y}),nt(A,"Core/Axis/Tick.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P,W){const{deg2rad:J}=P,{clamp:K,correctFloat:Y,defined:U,destroyObjectProperties:O,extend:N,fireEvent:R,isNumber:x,merge:b,objectEach:_,pick:I}=W;class d{constructor(v,f,T,k,w){this.isNewLabel=this.isNew=!0,this.axis=v,this.pos=f,this.type=T||"",this.parameters=w||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),T||k||this.addLabel()}addLabel(){const v=this,f=v.axis;var T=f.options;const k=f.chart;var w=f.categories;const n=f.logarithmic,a=f.names,p=v.pos,h=I(v.options&&v.options.labels,T.labels);var c=f.tickPositions;const e=p===c[0],t=p===c[c.length-1],i=(!h.step||h.step===1)&&f.tickInterval===1;c=c.info;let l=v.label,u,L,r;w=this.parameters.category||(w?I(w[p],a[p],p):p),n&&x(w)&&(w=Y(n.lin2log(w))),f.dateTime&&(c?(L=k.time.resolveDTLFormat(T.dateTimeLabelFormats[!T.grid&&c.higherRanks[p]||c.unitName]),u=L.main):x(w)&&(u=f.dateTime.getXDateFormat(w,T.dateTimeLabelFormats||{}))),v.isFirst=e,v.isLast=t;const S={axis:f,chart:k,dateTimeLabelFormat:u,isFirst:e,isLast:t,pos:p,tick:v,tickPositionInfo:c,value:w};R(this,"labelFormat",S);const F=rt=>h.formatter?h.formatter.call(rt,rt):h.format?(rt.text=f.defaultLabelFormatter.call(rt,rt),j.format(h.format,rt,k)):f.defaultLabelFormatter.call(rt,rt);T=F.call(S,S);const q=L&&L.list;v.shortenLabel=q?function(){for(r=0;r<q.length;r++)if(N(S,{dateTimeLabelFormat:q[r]}),l.attr({text:F.call(S,S)}),l.getBBox().width<f.getSlotWidth(v)-2*h.padding)return;l.attr({text:""})}:void 0,i&&f._addedPlotLB&&v.moveLabel(T,h),U(l)||v.movedLabel?l&&l.textStr!==T&&!i&&(!l.textWidth||h.style.width||l.styles.width||l.css({width:null}),l.attr({text:T}),l.textPxLength=l.getBBox().width):(v.label=l=v.createLabel({x:0,y:0},T,h),v.rotation=0)}createLabel(v,f,T){const k=this.axis,w=k.chart;return(v=U(f)&&T.enabled?w.renderer.text(f,v.x,v.y,T.useHTML).add(k.labelGroup):null)&&(w.styledMode||v.css(b(T.style)),v.textPxLength=v.getBBox().width),v}destroy(){O(this,this.axis)}getPosition(v,f,T,k){const w=this.axis,n=w.chart,a=k&&n.oldChartHeight||n.chartHeight;return v={x:v?Y(w.translate(f+T,void 0,void 0,k)+w.transB):w.left+w.offset+(w.opposite?(k&&n.oldChartWidth||n.chartWidth)-w.right-w.left:0),y:v?a-w.bottom+w.offset-(w.opposite?w.height:0):Y(a-w.translate(f+T,void 0,void 0,k)-w.transB)},v.y=K(v.y,-1e5,1e5),R(this,"afterGetPosition",{pos:v}),v}getLabelPosition(v,f,T,k,w,n,a,p){const h=this.axis,c=h.transA,e=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,t=h.staggerLines,i=h.tickRotCorr||{x:0,y:0},l=k||h.reserveSpaceDefault?0:-h.labelOffset*(h.labelAlign==="center"?.5:1),u=w.distance,L={};return T=h.side===0?T.rotation?-u:-T.getBBox().height:h.side===2?i.y+u:Math.cos(T.rotation*J)*(i.y-T.getBBox(!1,0).height/2),U(w.y)&&(T=h.side===0&&h.horiz?w.y+T:w.y),v=v+I(w.x,[0,1,0,-1][h.side]*u)+l+i.x-(n&&k?n*c*(e?-1:1):0),f=f+T-(n&&!k?n*c*(e?1:-1):0),t&&(k=a/(p||1)%t,h.opposite&&(k=t-k-1),f+=h.labelOffset/t*k),L.x=v,L.y=Math.round(f),R(this,"afterGetLabelPosition",{pos:L,tickmarkOffset:n,index:a}),L}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(v,f,T,k,w,n){return n.crispLine([["M",v,f],["L",v+(w?0:-T),f+(w?T:0)]],k)}handleOverflow(v){const f=this.axis,T=f.options.labels,k=v.x;var w=f.chart.chartWidth,n=f.chart.spacing;const a=I(f.labelLeft,Math.min(f.pos,n[3]));n=I(f.labelRight,Math.max(f.isRadial?0:f.pos+f.len,w-n[1]));const p=this.label,h=this.rotation,c={left:0,center:.5,right:1}[f.labelAlign||p.attr("align")],e=p.getBBox().width,t=f.getSlotWidth(this),i={};let l=t,u=1,L;h||T.overflow!=="justify"?0>h&&k-c*e<a?L=Math.round(k/Math.cos(h*J)-a):0<h&&k+c*e>n&&(L=Math.round((w-k)/Math.cos(h*J))):(w=k+(1-c)*e,k-c*e<a?l=v.x+l*(1-c)-a:w>n&&(l=n-v.x+l*c,u=-1),l=Math.min(t,l),l<t&&f.labelAlign==="center"&&(v.x+=u*(t-l-c*(t-Math.min(e,l)))),(e>l||f.autoRotation&&(p.styles||{}).width)&&(L=l)),L&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(L)+"px",(T.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(v,f){const T=this;var k=T.label;const w=T.axis;let n=!1;k&&k.textStr===v?(T.movedLabel=k,n=!0,delete T.label):_(w.ticks,function(a){n||a.isNew||a===T||!a.label||a.label.textStr!==v||(T.movedLabel=a.label,n=!0,a.labelPos=T.movedLabel.xy,delete a.label)}),n||!T.labelPos&&!k||(k=T.labelPos||k.xy,T.movedLabel=T.createLabel(k,v,f),T.movedLabel&&T.movedLabel.attr({opacity:0}))}render(v,f,T){var k=this.axis,w=k.horiz,n=this.pos,a=I(this.tickmarkOffset,k.tickmarkOffset);n=this.getPosition(w,n,a,f),a=n.x;const p=n.y;k=w&&a===k.pos+k.len||!w&&p===k.pos?-1:1,w=I(T,this.label&&this.label.newOpacity,1),T=I(T,1),this.isActive=!0,this.renderGridLine(f,T,k),this.renderMark(n,T,k),this.renderLabel(n,f,w,v),this.isNew=!1,R(this,"afterRender")}renderGridLine(v,f,T){const k=this.axis,w=k.options,n={},a=this.pos,p=this.type,h=I(this.tickmarkOffset,k.tickmarkOffset),c=k.chart.renderer;let e=this.gridLine,t=w.gridLineWidth,i=w.gridLineColor,l=w.gridLineDashStyle;this.type==="minor"&&(t=w.minorGridLineWidth,i=w.minorGridLineColor,l=w.minorGridLineDashStyle),e||(k.chart.styledMode||(n.stroke=i,n["stroke-width"]=t||0,n.dashstyle=l),p||(n.zIndex=1),v&&(f=0),this.gridLine=e=c.path().attr(n).addClass("highcharts-"+(p?p+"-":"")+"grid-line").add(k.gridGroup)),e&&(T=k.getPlotLinePath({value:a+h,lineWidth:e.strokeWidth()*T,force:"pass",old:v,acrossPanes:!1}))&&e[v||this.isNew?"attr":"animate"]({d:T,opacity:f})}renderMark(v,f,T){const k=this.axis;var w=k.options;const n=k.chart.renderer,a=this.type,p=k.tickSize(a?a+"Tick":"tick"),h=v.x;v=v.y;const c=I(w[a!=="minor"?"tickWidth":"minorTickWidth"],!a&&k.isXAxis?1:0);w=w[a!=="minor"?"tickColor":"minorTickColor"];let e=this.mark;const t=!e;p&&(k.opposite&&(p[0]=-p[0]),e||(this.mark=e=n.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(k.axisGroup),k.chart.styledMode||e.attr({stroke:w,"stroke-width":c})),e[t?"attr":"animate"]({d:this.getMarkPath(h,v,p[0],e.strokeWidth()*T,k.horiz,n),opacity:f}))}renderLabel(v,f,T,k){var w=this.axis;const n=w.horiz,a=w.options,p=this.label,h=a.labels,c=h.step;w=I(this.tickmarkOffset,w.tickmarkOffset);const e=v.x;v=v.y;let t=!0;p&&x(e)&&(p.xy=v=this.getLabelPosition(e,v,p,n,h,w,k,c),this.isFirst&&!this.isLast&&!a.showFirstLabel||this.isLast&&!this.isFirst&&!a.showLastLabel?t=!1:!n||h.step||h.rotation||f||T===0||this.handleOverflow(v),c&&k%c&&(t=!1),t&&x(v.y)?(v.opacity=T,p[this.isNewLabel?"attr":"animate"](v).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const v=this.label,f=this.axis;v&&!this.isNew&&(v.animate({opacity:0},void 0,v.destroy),delete this.label),f.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return d}),nt(A,"Core/Axis/Axis.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/AxisDefaults.js"],A["Core/Color/Color.js"],A["Core/Defaults.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Axis/Tick.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y,U,O){const{animObject:N}=j,{defaultOptions:R}=J,{registerEventOptions:x}=K,{deg2rad:b}=Y,{arrayMax:_,arrayMin:I,clamp:d,correctFloat:y,defined:v,destroyObjectProperties:f,erase:T,error:k,extend:w,fireEvent:n,getClosestDistance:a,insertItem:p,isArray:h,isNumber:c,isString:e,merge:t,normalizeTickInterval:i,objectEach:l,pick:u,relativeLength:L,removeEvent:r,splat:S,syncTimeout:F}=O,q=(B,s)=>i(s,void 0,void 0,u(B.options.allowDecimals,.5>s||B.tickAmount!==void 0),!!B.tickAmount);class rt{constructor(s,M,z){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.index=this.height=this.hasVisibleSeries=this.hasNames=this.eventOptions=this.coll=this.closestPointRange=this.chart=this.bottom=this.alternateBands=void 0,this.init(s,M,z)}init(s,M,z=this.coll){const D=z==="xAxis";this.chart=s,this.horiz=this.isZAxis||(s.inverted?!D:D),this.isXAxis=D,this.coll=z,n(this,"init",{userOptions:M}),this.opposite=u(M.opposite,this.opposite),this.side=u(M.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(M),z=this.options;const V=z.labels,o=z.type;this.userOptions=M,this.minPixelPadding=0,this.reversed=u(z.reversed,this.reversed),this.visible=z.visible,this.zoomEnabled=z.zoomEnabled,this.hasNames=o==="category"||z.categories===!0,this.categories=z.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=v(z.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=z.minRange||z.maxZoom,this.range=z.range,this.offset=z.offset||0,this.min=this.max=null,M=u(z.crosshair,S(s.options.tooltip.crosshairs)[D?0:1]),this.crosshair=M===!0?{}:M,s.axes.indexOf(this)===-1&&(D?s.axes.splice(s.xAxis.length,0,this):s.axes.push(this),p(this,s[this.coll])),s.orderItems(this.coll),this.series=this.series||[],s.inverted&&!this.isZAxis&&D&&typeof this.reversed>"u"&&(this.reversed=!0),this.labelRotation=c(V.rotation)?V.rotation:void 0,x(this,z),n(this,"afterInit")}setOptions(s){this.options=t(P.defaultXAxisOptions,this.coll==="yAxis"&&P.defaultYAxisOptions,[P.defaultTopAxisOptions,P.defaultRightAxisOptions,P.defaultBottomAxisOptions,P.defaultLeftAxisOptions][this.side],t(R[this.coll],s)),n(this,"afterSetOptions",{userOptions:s})}defaultLabelFormatter(s){var M=this.axis;({numberFormatter:s}=this.chart);const z=c(this.value)?this.value:NaN,D=M.chart.time,V=this.dateTimeLabelFormat;var o=R.lang;const g=o.numericSymbols;o=o.numericSymbolMagnitude||1e3;const m=M.logarithmic?Math.abs(z):M.tickInterval;let H=g&&g.length,G;if(M.categories)G=`${this.value}`;else if(V)G=D.dateFormat(V,z);else if(H&&1e3<=m)for(;H--&&typeof G>"u";)M=Math.pow(o,H+1),m>=M&&10*z%M===0&&g[H]!==null&&z!==0&&(G=s(z/M,-1)+g[H]);return typeof G>"u"&&(G=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),G}getSeriesExtremes(){const s=this,M=s.chart;let z;n(this,"getSeriesExtremes",null,function(){s.hasVisibleSeries=!1,s.dataMin=s.dataMax=s.threshold=null,s.softThreshold=!s.isXAxis,s.series.forEach(function(D){if(D.visible||!M.options.chart.ignoreHiddenSeries){var V=D.options;let o=V.threshold,g,m;s.hasVisibleSeries=!0,s.positiveValuesOnly&&0>=o&&(o=null),s.isXAxis?(V=D.xData)&&V.length&&(V=s.logarithmic?V.filter(H=>0<H):V,z=D.getXExtremes(V),g=z.min,m=z.max,c(g)||g instanceof Date||(V=V.filter(c),z=D.getXExtremes(V),g=z.min,m=z.max),V.length&&(s.dataMin=Math.min(u(s.dataMin,g),g),s.dataMax=Math.max(u(s.dataMax,m),m))):(D=D.applyExtremes(),c(D.dataMin)&&(g=D.dataMin,s.dataMin=Math.min(u(s.dataMin,g),g)),c(D.dataMax)&&(m=D.dataMax,s.dataMax=Math.max(u(s.dataMax,m),m)),v(o)&&(s.threshold=o),(!V.softThreshold||s.positiveValuesOnly)&&(s.softThreshold=!1))}})}),n(this,"afterGetSeriesExtremes")}translate(s,M,z,D,V,o){const g=this.linkedParent||this,m=D&&g.old?g.old.min:g.min;if(!c(m))return NaN;const H=g.minPixelPadding;V=(g.isOrdinal||g.brokenAxis&&g.brokenAxis.hasBreaks||g.logarithmic&&V)&&g.lin2val;let G=1,$=0;return D=D&&g.old?g.old.transA:g.transA,D||(D=g.transA),z&&(G*=-1,$=g.len),g.reversed&&(G*=-1,$-=G*(g.sector||g.len)),M?(o=(s*G+$-H)/D+m,V&&(o=g.lin2val(o))):(V&&(s=g.val2lin(s)),s=G*(s-m)*D,o=(g.isRadial?s:y(s))+$+G*H+(c(o)?D*o:0)),o}toPixels(s,M){return this.translate(s,!1,!this.horiz,void 0,!0)+(M?0:this.pos)}toValue(s,M){return this.translate(s-(M?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(s){function M(X,Q,dt){return at!=="pass"&&(X<Q||X>dt)&&(at?X=d(X,Q,dt):Z=!0),X}const z=this,D=z.chart,V=z.left,o=z.top,g=s.old,m=s.value,H=s.lineWidth,G=g&&D.oldChartHeight||D.chartHeight,$=g&&D.oldChartWidth||D.chartWidth,tt=z.transB;let it=s.translatedValue,at=s.force,ht,pt,E,C,Z;return s={value:m,lineWidth:H,old:g,force:at,acrossPanes:s.acrossPanes,translatedValue:it},n(this,"getPlotLinePath",s,function(X){it=u(it,z.translate(m,void 0,void 0,g)),it=d(it,-1e5,1e5),ht=E=Math.round(it+tt),pt=C=Math.round(G-it-tt),c(it)?z.horiz?(pt=o,C=G-z.bottom,ht=E=M(ht,V,V+z.width)):(ht=V,E=$-z.right,pt=C=M(pt,o,o+z.height)):(Z=!0,at=!1),X.path=Z&&!at?null:D.renderer.crispLine([["M",ht,pt],["L",E,C]],H||1)}),s.path}getLinearTickPositions(s,M,z){const D=y(Math.floor(M/s)*s);z=y(Math.ceil(z/s)*s);const V=[];let o,g;if(y(D+s)===D&&(g=20),this.single)return[M];for(M=D;M<=z&&(V.push(M),M=y(M+s,g),M!==o);)o=M;return V}getMinorTickInterval(){const s=this.options;return s.minorTicks===!0?u(s.minorTickInterval,"auto"):s.minorTicks===!1?null:s.minorTickInterval}getMinorTickPositions(){var s=this.options;const M=this.tickPositions,z=this.minorTickInterval;var D=this.pointRangePadding||0;const V=this.min-D;D=this.max+D;const o=D-V;let g=[];if(o&&o/z<this.len/3){const m=this.logarithmic;if(m)this.paddedTicks.forEach(function(H,G,$){G&&g.push.apply(g,m.getLogTickPositions(z,$[G-1],$[G],!0))});else if(this.dateTime&&this.getMinorTickInterval()==="auto")g=g.concat(this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(z),V,D,s.startOfWeek));else for(s=V+(M[0]-V)%z;s<=D&&s!==g[0];s+=z)g.push(s)}return g.length!==0&&this.trimTicks(g),g}adjustForMinRange(){const s=this.options,M=this.logarithmic;let z=this.min;var D=this.max;let V,o;if(this.isXAxis&&typeof this.minRange>"u"&&!M)if(v(s.min)||v(s.max)||v(s.floor)||v(s.ceiling))this.minRange=null;else{var g=a(this.series.map(m=>{var H;return(m.xIncrement?(H=m.xData)===null||H===void 0?void 0:H.slice(0,2):m.xData)||[]}))||0;this.minRange=Math.min(5*g,this.dataMax-this.dataMin)}D-z<this.minRange&&(g=this.dataMax-this.dataMin>=this.minRange,o=this.minRange,D=(o-D+z)/2,V=[z-D,u(s.min,z-D)],g&&(V[2]=M?M.log2lin(this.dataMin):this.dataMin),z=_(V),D=[z+o,u(s.max,z+o)],g&&(D[2]=M?M.log2lin(this.dataMax):this.dataMax),D=I(D),D-z<o&&(V[0]=D-o,V[1]=u(s.min,D-o),z=_(V))),this.min=z,this.max=D}getClosest(){let s,M;if(this.categories)M=1;else{const z=[];this.series.forEach(function(D){var V;const o=D.closestPointRange,g=D.visible||!D.chart.options.chart.ignoreHiddenSeries;((V=D.xData)===null||V===void 0?void 0:V.length)===1?z.push(D.xData[0]):!D.noSharedTooltip&&v(o)&&g&&(M=v(M)?Math.min(M,o):o)}),z.length&&(z.sort((D,V)=>D-V),s=a([z]))}return s&&M?Math.min(s,M):s||M}nameToX(s){const M=h(this.options.categories),z=M?this.categories:this.names;let D=s.options.x,V;return s.series.requireSorting=!1,v(D)||(D=this.options.uniqueNames&&z?M?z.indexOf(s.name):u(z.keys[s.name],-1):s.series.autoIncrement()),D===-1?!M&&z&&(V=z.length):V=D,typeof V<"u"?(this.names[V]=s.name,this.names.keys[s.name]=V):s.x&&(V=s.x),V}updateNames(){const s=this,M=this.names;0<M.length&&(Object.keys(M.keys).forEach(function(z){delete M.keys[z]}),M.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(z){z.xIncrement=null,(!z.points||z.isDirtyData)&&(s.max=Math.max(s.max,z.xData.length-1),z.processData(),z.generatePoints()),z.data.forEach(function(D,V){let o;D&&D.options&&typeof D.name<"u"&&(o=s.nameToX(D),typeof o<"u"&&o!==D.x&&(D.x=o,z.xData[V]=o))})}))}setAxisTranslation(){const s=this,M=s.max-s.min;var z=s.linkedParent;const D=!!s.categories,V=s.isXAxis;let o=s.axisPointRange||0,g,m=0,H=0,G=s.transA;(V||D||o)&&(g=s.getClosest(),z?(m=z.minPointOffset,H=z.pointRangePadding):s.series.forEach(function($){const tt=D?1:V?u($.options.pointRange,g,0):s.axisPointRange||0,it=$.options.pointPlacement;o=Math.max(o,tt),(!s.single||D)&&($=$.is("xrange")?!V:V,m=Math.max(m,$&&e(it)?0:tt/2),H=Math.max(H,$&&it==="on"?0:tt))}),z=s.ordinal&&s.ordinal.slope&&g?s.ordinal.slope/g:1,s.minPointOffset=m*=z,s.pointRangePadding=H*=z,s.pointRange=Math.min(o,s.single&&D?1:M),V&&g&&(s.closestPointRange=g)),s.translationSlope=s.transA=G=s.staticScale||s.len/(M+H||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=G*m,n(this,"afterSetAxisTranslation")}minFromRange(){return this.max-this.range}setTickInterval(s){var M=this.chart;const z=this.logarithmic,D=this.options,V=this.isXAxis,o=this.isLinked,g=D.tickPixelInterval,m=this.categories,H=this.softThreshold;let G=D.maxPadding,$=D.minPadding,tt=c(D.tickInterval)&&0<=D.tickInterval?D.tickInterval:void 0,it=c(this.threshold)?this.threshold:null,at,ht,pt;if(this.dateTime||m||o||this.getTickAmount(),ht=u(this.userMin,D.min),pt=u(this.userMax,D.max),o){this.linkedParent=M[this.coll][D.linkedTo];var E=this.linkedParent.getExtremes();this.min=u(E.min,E.dataMin),this.max=u(E.max,E.dataMax),D.type!==this.linkedParent.options.type&&k(11,1,M)}else H&&v(it)&&(this.dataMin>=it?(E=it,$=0):this.dataMax<=it&&(at=it,G=0)),this.min=u(ht,E,this.dataMin),this.max=u(pt,at,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,u(this.dataMin,this.min))&&k(10,1,M),this.min=y(z.log2lin(this.min),16),this.max=y(z.log2lin(this.max),16)),this.range&&v(this.max)&&(this.userMin=this.min=ht=Math.max(this.dataMin,this.minFromRange()),this.userMax=pt=this.max,this.range=null),n(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!c(this.userMin)&&c(D.softMin)&&D.softMin<this.min&&(this.min=ht=D.softMin),!c(this.userMax)&&c(D.softMax)&&D.softMax>this.max&&(this.max=pt=D.softMax),!(m||this.axisPointRange||this.stacking&&this.stacking.usePercentage||o)&&v(this.min)&&v(this.max)&&(M=this.max-this.min)&&(!v(ht)&&$&&(this.min-=M*$),!v(pt)&&G&&(this.max+=M*G)),!c(this.userMin)&&c(D.floor)&&(this.min=Math.max(this.min,D.floor)),!c(this.userMax)&&c(D.ceiling)&&(this.max=Math.min(this.max,D.ceiling)),H&&v(this.dataMin)&&(it=it||0,!v(ht)&&this.min<it&&this.dataMin>=it?this.min=this.options.minRange?Math.min(it,this.max-this.minRange):it:!v(pt)&&this.max>it&&this.dataMax<=it&&(this.max=this.options.minRange?Math.max(it,this.min+this.minRange):it)),c(this.min)&&c(this.max)&&!this.chart.polar&&this.min>this.max&&(v(this.options.min)?this.max=this.min:v(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||typeof this.min>"u"||typeof this.max>"u"?1:o&&this.linkedParent&&!tt&&g===this.linkedParent.options.tickPixelInterval?tt=this.linkedParent.tickInterval:u(tt,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g)),V&&!s){const C=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(Z){Z.forceCrop=Z.forceCropping&&Z.forceCropping(),Z.processData(C)}),n(this,"postProcessData",{hasExtremesChanged:C})}this.setAxisTranslation(),n(this,"initialAxisTranslation"),this.pointRange&&!tt&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(D.minTickInterval,this.dateTime&&!this.series.some(C=>C.noSharedTooltip)?this.closestPointRange:0),!tt&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||tt||(this.tickInterval=q(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const M=s.tickPositions,z=s.tickPositioner;var D=this.getMinorTickInterval(),V=this.hasVerticalPanning(),o=this.coll==="colorAxis";const g=(o||!V)&&s.startOnTick;V=(o||!V)&&s.endOnTick,o=[];let m;if(this.tickmarkOffset=this.categories&&s.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=D==="auto"&&this.tickInterval?this.tickInterval/s.minorTicksPerMajor:D,this.single=this.min===this.max&&v(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||s.allowDecimals!==!1),M)o=M.slice();else if(c(this.min)&&c(this.max)){if(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)))if(this.dateTime)o=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,s.units),this.min,this.max,s.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0);else if(this.logarithmic)o=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else for(D=s=this.tickInterval;D<=2*s&&(o=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&o.length>this.tickAmount);)this.tickInterval=q(this,D*=1.1);else o=[this.min,this.max],k(19,!1,this.chart);o.length>this.len&&(o=[o[0],o[o.length-1]],o[0]===o[1]&&(o.length=1)),z&&(this.tickPositions=o,(m=z.apply(this,[this.min,this.max]))&&(o=m))}this.tickPositions=o,this.paddedTicks=o.slice(0),this.trimTicks(o,g,V),!this.isLinked&&c(this.min)&&c(this.max)&&(this.single&&2>o.length&&!this.categories&&!this.series.some(H=>H.is("heatmap")&&H.options.pointPlacement==="between")&&(this.min-=.5,this.max+=.5),M||m||this.adjustTickAmount()),n(this,"afterSetTickPositions")}trimTicks(s,M,z){const D=s[0],V=s[s.length-1],o=!this.isOrdinal&&this.minPointOffset||0;if(n(this,"trimTicks"),!this.isLinked){if(M&&D!==-1/0)this.min=D;else for(;this.min-o>s[0];)s.shift();if(z)this.max=V;else for(;this.max+o<s[s.length-1];)s.pop();s.length===0&&v(D)&&!this.options.tickPositions&&s.push((V+D)/2)}}alignToOthers(){const s=this,M=[this],z=s.options,D=this.coll==="yAxis"&&this.chart.options.chart.alignThresholds,V=[];let o;if(s.thresholdAlignment=void 0,(this.chart.options.chart.alignTicks!==!1&&z.alignTicks||D)&&z.startOnTick!==!1&&z.endOnTick!==!1&&!s.logarithmic){const g=H=>{const{horiz:G,options:$}=H;return[G?$.left:$.top,$.width,$.height,$.pane].join()},m=g(this);this.chart[this.coll].forEach(function(H){const{series:G}=H;G.length&&G.some($=>$.visible)&&H!==s&&g(H)===m&&(o=!0,M.push(H))})}if(o&&D){M.forEach(m=>{m=m.getThresholdAlignment(s),c(m)&&V.push(m)});const g=1<V.length?V.reduce((m,H)=>m+H,0)/V.length:void 0;M.forEach(m=>{m.thresholdAlignment=g})}return o}getThresholdAlignment(s){if((!c(this.dataMin)||this!==s&&this.series.some(M=>M.isDirty||M.isDirtyData))&&this.getSeriesExtremes(),c(this.threshold))return s=d((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1),this.options.reversed&&(s=1-s),s}getTickAmount(){const s=this.options,M=s.tickPixelInterval;let z=s.tickAmount;!v(s.tickInterval)&&!z&&this.len<M&&!this.isRadial&&!this.logarithmic&&s.startOnTick&&s.endOnTick&&(z=2),!z&&this.alignToOthers()&&(z=Math.ceil(this.len/M)+1),4>z&&(this.finalTickAmt=z,z=5),this.tickAmount=z}adjustTickAmount(){const s=this,{finalTickAmt:M,max:z,min:D,options:V,tickPositions:o,tickAmount:g,thresholdAlignment:m}=s,H=o&&o.length;var G=u(s.threshold,s.softThreshold?0:null),$=s.tickInterval;let tt;if(c(m)&&(tt=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),V.reversed&&(tt=g-1-tt)),s.hasData()&&c(D)&&c(z)){const it=()=>{s.transA*=(H-1)/(g-1),s.min=V.startOnTick?o[0]:Math.min(D,o[0]),s.max=V.endOnTick?o[o.length-1]:Math.max(z,o[o.length-1])};if(c(tt)&&c(s.threshold)){for(;o[tt]!==G||o.length!==g||o[0]>D||o[o.length-1]<z;){for(o.length=0,o.push(s.threshold);o.length<g;)o[tt]===void 0||o[tt]>s.threshold?o.unshift(y(o[0]-$)):o.push(y(o[o.length-1]+$));if($>8*s.tickInterval)break;$*=2}it()}else if(H<g){for(;o.length<g;)o.length%2||D===G?o.push(y(o[o.length-1]+$)):o.unshift(y(o[0]-$));it()}if(v(M)){for($=G=o.length;$--;)(M===3&&$%2===1||2>=M&&0<$&&$<G-1)&&o.splice($,1);s.finalTickAmt=void 0}}}setScale(){let s=!1,M=!1;this.series.forEach(function(D){s=s||D.isDirtyData||D.isDirty,M=M||D.xAxis&&D.xAxis.isDirty||!1}),this.setAxisSize();const z=this.len!==(this.old&&this.old.len);z||s||M||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(this.stacking&&(this.stacking.resetStacks(),this.stacking.buildStacks()),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),this.isDirty||(this.isDirty=z||this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max))):this.stacking&&this.stacking.cleanStacks(),s&&this.panningState&&(this.panningState.isDirty=!0),n(this,"afterSetScale")}setExtremes(s,M,z,D,V){const o=this,g=o.chart;z=u(z,!0),o.series.forEach(function(m){delete m.kdTree}),V=w(V,{min:s,max:M}),n(o,"setExtremes",V,function(){o.userMin=s,o.userMax=M,o.eventArgs=V,z&&g.redraw(D)})}zoom(s,M){const z=this,D=this.dataMin,V=this.dataMax,o=this.options,g=Math.min(D,u(o.min,D)),m=Math.max(V,u(o.max,V));return s={newMin:s,newMax:M},n(this,"zoom",s,function(H){let G=H.newMin,$=H.newMax;(G!==z.min||$!==z.max)&&(z.allowZoomOutside||(v(D)&&(G<g&&(G=g),G>m&&(G=m)),v(V)&&($<g&&($=g),$>m&&($=m))),z.displayBtn=typeof G<"u"||typeof $<"u",z.setExtremes(G,$,!1,void 0,{trigger:"zoom"})),H.zoomed=!0}),s.zoomed}setAxisSize(){const s=this.chart;var M=this.options;const z=M.offsets||[0,0,0,0],D=this.horiz,V=this.width=Math.round(L(u(M.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),o=this.height=Math.round(L(u(M.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),g=this.top=Math.round(L(u(M.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));M=this.left=Math.round(L(u(M.left,s.plotLeft+z[3]),s.plotWidth,s.plotLeft)),this.bottom=s.chartHeight-o-g,this.right=s.chartWidth-V-M,this.len=Math.max(D?V:o,0),this.pos=D?M:g}getExtremes(){const s=this.logarithmic;return{min:s?y(s.lin2log(this.min)):this.min,max:s?y(s.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(s){var M=this.logarithmic;const z=M?M.lin2log(this.min):this.min;return M=M?M.lin2log(this.max):this.max,s===null||s===-1/0?s=z:s===1/0?s=M:z>s?s=z:M<s&&(s=M),this.translate(s,0,1,0,1)}autoLabelAlign(s){const M=(u(s,0)-90*this.side+720)%360;return s={align:"center"},n(this,"autoLabelAlign",s,function(z){15<M&&165>M?z.align="right":195<M&&345>M&&(z.align="left")}),s.align}tickSize(s){const M=this.options,z=u(M[s==="tick"?"tickWidth":"minorTickWidth"],s==="tick"&&this.isXAxis&&!this.categories?1:0);let D=M[s==="tick"?"tickLength":"minorTickLength"],V;return z&&D&&(M[s+"Position"]==="inside"&&(D=-D),V=[D,z]),s={tickSize:V},n(this,"afterTickSize",s),s.tickSize}labelMetrics(){const s=this.chart.renderer;var M=this.ticks;return M=M[Object.keys(M)[0]]||{},this.chart.renderer.fontMetrics(M.label||M.movedLabel||s.box)}unsquish(){const s=this.options.labels;var M=this.horiz;const z=this.tickInterval,D=this.len/(((this.categories?1:0)+this.max-this.min)/z),V=s.rotation,o=.75*this.labelMetrics().h,g=Math.max(this.max-this.min,0),m=function(it){let at=it/(D||1);return at=1<at?Math.ceil(at):1,at*z>g&&it!==1/0&&D!==1/0&&g&&(at=Math.ceil(g/z)),y(at*z)};let H=z,G,$=Number.MAX_VALUE,tt;if(M){if(s.staggerLines||(c(V)?tt=[V]:D<s.autoRotationLimit&&(tt=s.autoRotation)),tt){let it;for(const at of tt)(at===V||at&&-90<=at&&90>=at)&&(M=m(Math.abs(o/Math.sin(b*at))),it=M+Math.abs(at/360),it<$&&($=it,G=at,H=M))}}else H=m(o);return this.autoRotation=tt,this.labelRotation=u(G,c(V)?V:0),s.step?z:H}getSlotWidth(s){const M=this.chart,z=this.horiz,D=this.options.labels,V=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=M.margin[3];if(s&&c(s.slotWidth))return s.slotWidth;if(z&&2>D.step)return D.rotation?0:(this.staggerLines||1)*this.len/V;if(!z){if(s=D.style.width,s!==void 0)return parseInt(String(s),10);if(o)return o-M.spacing[3]}return .33*M.chartWidth}renderUnsquish(){const s=this.chart,M=s.renderer,z=this.tickPositions,D=this.ticks,V=this.options.labels,o=V.style,g=this.horiz,m=this.getSlotWidth();var H=Math.max(1,Math.round(m-2*V.padding));const G={},$=this.labelMetrics(),tt=o.textOverflow;let it,at,ht=0;if(e(V.rotation)||(G.rotation=V.rotation||0),z.forEach(function(E){E=D[E],E.movedLabel&&E.replaceMovedLabel(),E&&E.label&&E.label.textPxLength>ht&&(ht=E.label.textPxLength)}),this.maxLabelLength=ht,this.autoRotation)ht>H&&ht>$.h?G.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(it=H,!tt))for(at="clip",H=z.length;!g&&H--;){var pt=z[H];(pt=D[pt].label)&&(pt.styles&&pt.styles.textOverflow==="ellipsis"?pt.css({textOverflow:"clip"}):pt.textPxLength>m&&pt.css({width:m+"px"}),pt.getBBox().height>this.len/z.length-($.h-$.f)&&(pt.specificTextOverflow="ellipsis"))}G.rotation&&(it=ht>.5*s.chartHeight?.33*s.chartHeight:ht,tt||(at="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(G.align=this.labelAlign),z.forEach(function(E){const C=(E=D[E])&&E.label,Z=o.width,X={};C&&(C.attr(G),E.shortenLabel?E.shortenLabel():it&&!Z&&o.whiteSpace!=="nowrap"&&(it<C.textPxLength||C.element.tagName==="SPAN")?(X.width=it+"px",tt||(X.textOverflow=C.specificTextOverflow||at),C.css(X)):C.styles&&C.styles.width&&!X.width&&!Z&&C.css({width:null}),delete C.specificTextOverflow,E.rotation=G.rotation)},this),this.tickRotCorr=M.rotCorr($.b,this.labelRotation||0,this.side!==0)}hasData(){return this.series.some(function(s){return s.hasData()})||this.options.showEmpty&&v(this.min)&&v(this.max)}addTitle(s){const M=this.chart.renderer,z=this.horiz,D=this.opposite,V=this.options.title,o=this.chart.styledMode;let g;this.axisTitle||((g=V.textAlign)||(g=(z?{low:"left",middle:"center",high:"right"}:{low:D?"right":"left",middle:"center",high:D?"left":"right"})[V.align]),this.axisTitle=M.text(V.text||"",0,0,V.useHTML).attr({zIndex:7,rotation:V.rotation,align:g}).addClass("highcharts-axis-title"),o||this.axisTitle.css(t(V.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),o||V.style.width||this.isRadial||this.axisTitle.css({width:this.len+"px"}),this.axisTitle[s?"show":"hide"](s)}generateTick(s){const M=this.ticks;M[s]?M[s].addLabel():M[s]=new U(this,s)}getOffset(){const s=this,{chart:M,horiz:z,options:D,side:V,ticks:o,tickPositions:g,coll:m,axisParent:H}=s,G=M.renderer,$=M.inverted&&!s.isZAxis?[1,0,3,2][V]:V;var tt=s.hasData();const it=D.title;var at=D.labels;const ht=c(D.crossing);var pt=M.axisOffset;const E=M.clipOffset,C=[-1,1,1,-1][V],Z=D.className;let X,Q=0,dt;var ct=0;let xt=0;if(s.showAxis=X=tt||D.showEmpty,s.staggerLines=s.horiz&&at.staggerLines||void 0,!s.axisGroup){const yt=(gt,mt,Ct)=>G.g(gt).attr({zIndex:Ct}).addClass(`highcharts-${m.toLowerCase()}${mt} `+(this.isRadial?`highcharts-radial-axis${mt} `:"")+(Z||"")).add(H);s.gridGroup=yt("grid","-grid",D.gridZIndex),s.axisGroup=yt("axis","",D.zIndex),s.labelGroup=yt("axis-labels","-labels",at.zIndex)}tt||s.isLinked?(g.forEach(function(yt){s.generateTick(yt)}),s.renderUnsquish(),s.reserveSpaceDefault=V===0||V===2||{1:"left",3:"right"}[V]===s.labelAlign,u(at.reserveSpace,ht?!1:null,s.labelAlign==="center"?!0:null,s.reserveSpaceDefault)&&g.forEach(function(yt){xt=Math.max(o[yt].getLabelSize(),xt)}),s.staggerLines&&(xt*=s.staggerLines),s.labelOffset=xt*(s.opposite?-1:1)):l(o,function(yt,gt){yt.destroy(),delete o[gt]}),it&&it.text&&it.enabled!==!1&&(s.addTitle(X),X&&!ht&&it.reserveSpace!==!1&&(s.titleOffset=Q=s.axisTitle.getBBox()[z?"height":"width"],dt=it.offset,ct=v(dt)?0:u(it.margin,z?5:10))),s.renderLine(),s.offset=C*u(D.offset,pt[V]?pt[V]+(D.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},tt=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-tt+C*(z?u(at.y,s.tickRotCorr.y+C*at.distance):u(at.x,C*at.distance))),s.axisTitleMargin=u(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(o,g)),m!=="colorAxis"&&(at=this.tickSize("tick"),pt[V]=Math.max(pt[V],(s.axisTitleMargin||0)+Q+C*s.offset,ct,g&&g.length&&at?at[0]+C*s.offset:0),pt=!s.axisLine||D.offset?0:2*Math.floor(s.axisLine.strokeWidth()/2),E[$]=Math.max(E[$],pt)),n(this,"afterGetOffset")}getLinePath(s){const M=this.chart,z=this.opposite;var D=this.offset;const V=this.horiz,o=this.left+(z?this.width:0)+D;return D=M.chartHeight-this.bottom-(z?this.height:0)+D,z&&(s*=-1),M.renderer.crispLine([["M",V?this.left:o,V?D:this.top],["L",V?M.chartWidth-this.right:o,V?D:M.chartHeight-this.bottom]],s)}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(s){var M=this.horiz,z=this.left;const D=this.top;var V=this.len;const o=this.options.title,g=M?z:D,m=this.opposite,H=this.offset,G=o.x,$=o.y,tt=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-tt.h-1,0):0,V={low:g+(M?0:V),middle:g+V/2,high:g+(M?V:0)}[o.align],z=(M?D+this.height:z)+(M?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,tt.f,-s][this.side],M={x:M?V+G:z+(m?this.width:0)+H+G,y:M?z+$-(m?this.height:0)+H:V+$},n(this,"afterGetTitlePosition",{titlePosition:M}),M}renderMinorTick(s,M){const z=this.minorTicks;z[s]||(z[s]=new U(this,s,"minor")),M&&z[s].isNew&&z[s].render(null,!0),z[s].render(null,!1,1)}renderTick(s,M,z){const D=this.ticks;(!this.isLinked||s>=this.min&&s<=this.max||this.grid&&this.grid.isColumn)&&(D[s]||(D[s]=new U(this,s)),z&&D[s].isNew&&D[s].render(M,!0,-1),D[s].render(M))}render(){const s=this,M=s.chart,z=s.logarithmic,D=s.options,V=s.isLinked,o=s.tickPositions,g=s.axisTitle,m=s.ticks,H=s.minorTicks,G=s.alternateBands,$=D.stackLabels,tt=D.alternateGridColor;var it=D.crossing;const at=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,E=N(M.renderer.globalAnimation);let C,Z;if(s.labelEdge.length=0,s.overlap=!1,[m,H,G].forEach(function(X){l(X,function(Q){Q.isActive=!1})}),c(it)){const X=this.isXAxis?M.yAxis[0]:M.xAxis[0],Q=[1,-1,-1,1][this.side];X&&(it=X.toPixels(it,!0),s.horiz&&(it=X.len-it),s.offset=Q*it)}if(s.hasData()||V){const X=s.chart.hasRendered&&s.old&&c(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(Q){s.renderMinorTick(Q,X)}),o.length&&(o.forEach(function(Q,dt){s.renderTick(Q,dt,X)}),at&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new U(s,-1,null,!0)),m[-1].render(-1))),tt&&o.forEach(function(Q,dt){Z=typeof o[dt+1]<"u"?o[dt+1]+at:s.max-at,dt%2===0&&Q<s.max&&Z<=s.max+(M.polar?-at:at)&&(G[Q]||(G[Q]=new Y.PlotLineOrBand(s)),C=Q+at,G[Q].options={from:z?z.lin2log(C):C,to:z?z.lin2log(Z):Z,color:tt,className:"highcharts-alternate-grid"},G[Q].render(),G[Q].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(D.plotLines||[]).concat(D.plotBands||[]).forEach(function(Q){s.addPlotBandOrLine(Q)}))}[m,H,G].forEach(function(X){const Q=[],dt=E.duration;l(X,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,Q.push(xt))}),F(function(){let ct=Q.length;for(;ct--;)X[Q[ct]]&&!X[Q[ct]].isActive&&(X[Q[ct]].destroy(),delete X[Q[ct]])},X!==G&&M.hasRendered&&dt?dt:0)}),ht&&(ht[ht.isPlaced?"animate":"attr"]({d:this.getLinePath(ht.strokeWidth())}),ht.isPlaced=!0,ht[pt?"show":"hide"](pt)),g&&pt&&(g[g.isNew?"attr":"animate"](s.getTitlePosition(g)),g.isNew=!1),$&&$.enabled&&s.stacking&&s.stacking.renderStackTotals(),s.old={len:s.len,max:s.max,min:s.min,transA:s.transA,userMax:s.userMax,userMin:s.userMin},s.isDirty=!1,n(this,"afterRender")}redraw(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(s){s.render()})),this.series.forEach(function(s){s.isDirty=!0})}getKeepProps(){return this.keepProps||rt.keepProps}destroy(s){const M=this,z=M.plotLinesAndBands,D=this.eventOptions;if(n(this,"destroy",{keepEvents:s}),s||r(M),[M.ticks,M.minorTicks,M.alternateBands].forEach(function(V){f(V)}),z)for(s=z.length;s--;)z[s].destroy();"axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(V){M[V]&&(M[V]=M[V].destroy())});for(const V in M.plotLinesAndBandsGroups)M.plotLinesAndBandsGroups[V]=M.plotLinesAndBandsGroups[V].destroy();l(M,function(V,o){M.getKeepProps().indexOf(o)===-1&&delete M[o]}),this.eventOptions=D}drawCrosshair(s,M){const z=this.crosshair;var D=u(z&&z.snap,!0);const V=this.chart;let o,g=this.cross;if(n(this,"drawCrosshair",{e:s,point:M}),s||(s=this.cross&&this.cross.e),z&&(v(M)||!D)!==!1){if(D?v(M)&&(o=u(this.coll!=="colorAxis"?M.crosshairPos:null,this.isXAxis?M.plotX:this.len-M.plotY)):o=s&&(this.horiz?s.chartX-this.pos:this.len-s.chartY+this.pos),v(o)){var m={value:M&&(this.isXAxis?M.x:u(M.stackY,M.y)),translatedValue:o};V.polar&&w(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:M}),m=this.getPlotLinePath(m)||null}if(!v(m)){this.hideCrosshair();return}D=this.categories&&!this.isRadial,g||(this.cross=g=V.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(D?"category ":"thin ")+(z.className||"")).attr({zIndex:u(z.zIndex,2)}).add(),V.styledMode||(g.attr({stroke:z.color||(D?W.parse("#ccd3ff").setOpacity(.25).get():"#cccccc"),"stroke-width":u(z.width,1)}).css({"pointer-events":"none"}),z.dashStyle&&g.attr({dashstyle:z.dashStyle}))),g.show().attr({d:m}),D&&!z.width&&g.attr({"stroke-width":this.transA}),this.cross.e=s}else this.hideCrosshair();n(this,"afterDrawCrosshair",{e:s,point:M})}hideCrosshair(){this.cross&&this.cross.hide(),n(this,"afterHideCrosshair")}hasVerticalPanning(){const s=this.chart.options.chart.panning;return!!(s&&s.enabled&&/y/.test(s.type))}update(s,M){const z=this.chart;s=t(this.userOptions,s),this.destroy(!0),this.init(z,s),z.isDirtyBox=!0,u(M,!0)&&z.redraw()}remove(s){const M=this.chart,z=this.coll,D=this.series;let V=D.length;for(;V--;)D[V]&&D[V].remove(!1);T(M.axes,this),T(M[z]||[],this),M.orderItems(z),this.destroy(),M.isDirtyBox=!0,u(s,!0)&&M.redraw()}setTitle(s,M){this.update({title:s},M)}setCategories(s,M){this.update({categories:s},M)}}return rt.defaultOptions=P.defaultXAxisOptions,rt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),rt}),nt(A,"Core/Axis/DateTimeAxis.js",[A["Core/Utilities.js"]],function(j){const{addEvent:P,getMagnitude:W,normalizeTickInterval:J,timeUnits:K}=j;var Y;return function(U){function O(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function N(b){b.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new x(this))}const R=[];U.compose=function(b){return j.pushUnique(R,b)&&(b.keepProps.push("dateTime"),b.prototype.getTimeTicks=O,P(b,"init",N)),b};class x{constructor(_){this.axis=_}normalizeTimeTickInterval(_,I){const d=I||[["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]];I=d[d.length-1];let y=K[I[0]],v=I[1],f;for(f=0;f<d.length&&(I=d[f],y=K[I[0]],v=I[1],!(d[f+1]&&_<=(y*v[v.length-1]+K[d[f+1][0]])/2));f++);return y===K.year&&_<5*y&&(v=[1,2,5]),_=J(_/y,v,I[0]==="year"?Math.max(W(_/y),1):1),{unitRange:y,count:_,unitName:I[0]}}getXDateFormat(_,I){const{axis:d}=this,y=d.chart.time;return d.closestPointRange?y.getDateFormat(d.closestPointRange,_,d.options.startOfWeek,I)||y.resolveDTLFormat(I.year).main:y.resolveDTLFormat(I.day).main}}U.Additions=x}(Y||(Y={})),Y}),nt(A,"Core/Axis/LogarithmicAxis.js",[A["Core/Utilities.js"]],function(j){const{addEvent:P,normalizeTickInterval:W,pick:J}=j;var K;return function(Y){function U(x){let b=this.logarithmic;x.userOptions.type!=="logarithmic"?this.logarithmic=void 0:b||(this.logarithmic=new R(this))}function O(){const x=this.logarithmic;x&&(this.lin2val=function(b){return x.lin2log(b)},this.val2lin=function(b){return x.log2lin(b)})}const N=[];Y.compose=function(x){return j.pushUnique(N,x)&&(x.keepProps.push("logarithmic"),P(x,"init",U),P(x,"afterInit",O)),x};class R{constructor(b){this.axis=b}getLogTickPositions(b,_,I,d){const y=this.axis;var v=y.len,f=y.options;let T=[];if(d||(this.minorAutoInterval=void 0),.5<=b)b=Math.round(b),T=y.getLinearTickPositions(b,_,I);else if(.08<=b){f=Math.floor(_);let k,w,n,a,p;for(v=.3<b?[1,2,4]:.15<b?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<I+1&&!p;f++)for(w=v.length,k=0;k<w&&!p;k++)n=this.log2lin(this.lin2log(f)*v[k]),n>_&&(!d||a<=I)&&typeof a<"u"&&T.push(a),a>I&&(p=!0),a=n}else _=this.lin2log(_),I=this.lin2log(I),b=d?y.getMinorTickInterval():f.tickInterval,b=J(b==="auto"?null:b,this.minorAutoInterval,f.tickPixelInterval/(d?5:1)*(I-_)/((d?v/y.tickPositions.length:v)||1)),b=W(b),T=y.getLinearTickPositions(b,_,I).map(this.log2lin),d||(this.minorAutoInterval=b/5);return d||(y.tickInterval=b),T}lin2log(b){return Math.pow(10,b)}log2lin(b){return Math.log(b)/Math.LN10}}Y.Additions=R}(K||(K={})),K}),nt(A,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[A["Core/Utilities.js"]],function(j){const{erase:P,extend:W,isNumber:J}=j;var K;return function(Y){function U(y){return this.addPlotBandOrLine(y,"plotBands")}function O(y,v){const f=this.userOptions;let T=new d(this,y);if(this.visible&&(T=T.render()),T){if(this._addedPlotLB||(this._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(k=>{this.addPlotBandOrLine(k)})),v){const k=f[v]||[];k.push(y),f[v]=k}this.plotLinesAndBands.push(T)}return T}function N(y){return this.addPlotBandOrLine(y,"plotLines")}function R(y,v,f=this.options){const T=this.getPlotLinePath({value:v,force:!0,acrossPanes:f.acrossPanes}),k=[],w=this.horiz;v=!J(this.min)||!J(this.max)||y<this.min&&v<this.min||y>this.max&&v>this.max,y=this.getPlotLinePath({value:y,force:!0,acrossPanes:f.acrossPanes}),f=1;let n;if(y&&T)for(v&&(n=y.toString()===T.toString(),f=0),v=0;v<y.length;v+=2){const a=y[v],p=y[v+1],h=T[v],c=T[v+1];a[0]!=="M"&&a[0]!=="L"||p[0]!=="M"&&p[0]!=="L"||h[0]!=="M"&&h[0]!=="L"||c[0]!=="M"&&c[0]!=="L"||(w&&h[1]===a[1]?(h[1]+=f,c[1]+=f):w||h[2]!==a[2]||(h[2]+=f,c[2]+=f),k.push(["M",a[1],a[2]],["L",p[1],p[2]],["L",c[1],c[2]],["L",h[1],h[2]],["Z"])),k.isFlat=n}return k}function x(y){this.removePlotBandOrLine(y)}function b(y){const v=this.plotLinesAndBands,f=this.options,T=this.userOptions;if(v){let k=v.length;for(;k--;)v[k].id===y&&v[k].destroy();[f.plotLines||[],T.plotLines||[],f.plotBands||[],T.plotBands||[]].forEach(function(w){for(k=w.length;k--;)(w[k]||{}).id===y&&P(w,w[k])})}}function _(y){this.removePlotBandOrLine(y)}const I=[];let d;Y.compose=function(y,v){return d||(d=y),j.pushUnique(I,v)&&W(v.prototype,{addPlotBand:U,addPlotLine:N,addPlotBandOrLine:O,getPlotBandPath:R,removePlotBand:x,removePlotLine:_,removePlotBandOrLine:b}),v}}(K||(K={})),K}),nt(A,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[A["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],A["Core/Utilities.js"]],function(j,P){const{arrayMax:W,arrayMin:J,defined:K,destroyObjectProperties:Y,erase:U,fireEvent:O,merge:N,objectEach:R,pick:x}=P;class b{static compose(I){return j.compose(b,I)}constructor(I,d){this.axis=I,d&&(this.options=d,this.id=d.id)}render(){O(this,"render");const I=this,d=I.axis,y=d.horiz;var v=d.logarithmic;const f=I.options,T=f.color,k=x(f.zIndex,0),w=f.events,n={},a=d.chart.renderer;let p=f.label,h=I.label,c=f.to,e=f.from,t=f.value,i=I.svgElem;var l=[];const u=K(e)&&K(c);l=K(t);const L=!i,r={class:"highcharts-plot-"+(u?"band ":"line ")+(f.className||"")};let S=u?"bands":"lines";if(v&&(e=v.log2lin(e),c=v.log2lin(c),t=v.log2lin(t)),d.chart.styledMode||(l?(r.stroke=T||"#999999",r["stroke-width"]=x(f.width,1),f.dashStyle&&(r.dashstyle=f.dashStyle)):u&&(r.fill=T||"#e6e9ff",f.borderWidth&&(r.stroke=f.borderColor,r["stroke-width"]=f.borderWidth))),n.zIndex=k,S+="-"+k,(v=d.plotLinesAndBandsGroups[S])||(d.plotLinesAndBandsGroups[S]=v=a.g("plot-"+S).attr(n).add()),L&&(I.svgElem=i=a.path().attr(r).add(v)),l)l=d.getPlotLinePath({value:t,lineWidth:i.strokeWidth(),acrossPanes:f.acrossPanes});else if(u)l=d.getPlotBandPath(e,c,f);else return;return!I.eventsAdded&&w&&(R(w,function(F,q){i.on(q,function(rt){w[q].apply(I,[rt])})}),I.eventsAdded=!0),(L||!i.d)&&l&&l.length?i.attr({d:l}):i&&(l?(i.show(),i.animate({d:l})):i.d&&(i.hide(),h&&(I.label=h=h.destroy()))),p&&(K(p.text)||K(p.formatter))&&l&&l.length&&0<d.width&&0<d.height&&!l.isFlat?(p=N({align:y&&u&&"center",x:y?!u&&4:10,verticalAlign:!y&&u&&"middle",y:y?u?16:10:u?6:-4,rotation:y&&!u&&90},p),this.renderLabel(p,l,u,k)):h&&h.hide(),I}renderLabel(I,d,y,v){const f=this.axis;var T=f.chart.renderer;let k=this.label;k||(this.label=k=T.text(this.getLabelText(I),0,0,I.useHTML).attr({align:I.textAlign||I.align,rotation:I.rotation,class:"highcharts-plot-"+(y?"band":"line")+"-label "+(I.className||""),zIndex:v}).add(),f.chart.styledMode||k.css(N({fontSize:"0.8em",textOverflow:"ellipsis"},I.style))),v=d.xBounds||[d[0][1],d[1][1],y?d[2][1]:d[0][1]],d=d.yBounds||[d[0][2],d[1][2],y?d[2][2]:d[0][2]],y=J(v),T=J(d),k.align(I,!1,{x:y,y:T,width:W(v)-y,height:W(d)-T}),k.alignValue&&k.alignValue!=="left"||(I=I.clip?f.width:f.chart.chartWidth,k.css({width:(k.rotation===90?f.height-(k.alignAttr.y-f.top):I-(k.alignAttr.x-f.left))+"px"})),k.show(!0)}getLabelText(I){return K(I.formatter)?I.formatter.call(this):I.text}destroy(){U(this.axis.plotLinesAndBands,this),delete this.axis,Y(this)}}return b}),nt(A,"Core/Tooltip.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Utilities.js"]],function(j,P,W,J,K){const{format:Y}=j,{doc:U,isSafari:O}=P,{distribute:N}=W,{addEvent:R,clamp:x,css:b,discardElement:_,extend:I,fireEvent:d,isArray:y,isNumber:v,isString:f,merge:T,pick:k,splat:w,syncTimeout:n}=K;class a{constructor(h,c){this.allowShared=!0,this.container=void 0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=h,this.init(h,c)}bodyFormatter(h){return h.map(function(c){const e=c.series.tooltipOptions;return(e[(c.point.formatPrefix||"point")+"Formatter"]||c.point.tooltipFormatter).call(c.point,e[(c.point.formatPrefix||"point")+"Format"]||"")})}cleanSplit(h){this.chart.series.forEach(function(c){const e=c&&c.tt;e&&(!e.isActive||h?c.tt=e.destroy():e.isActive=!1)})}defaultFormatter(h){const c=this.points||w(this);let e;return e=[h.tooltipFooterHeaderFormatter(c[0])],e=e.concat(h.bodyFormatter(c)),e.push(h.tooltipFooterHeaderFormatter(c[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(),_(this.container)),K.clearTimeout(this.hideTimer),K.clearTimeout(this.tooltipTimeout)}getAnchor(h,c){var e=this.chart;const t=e.pointer,i=e.inverted,l=e.plotTop;if(e=e.plotLeft,h=w(h),h[0].series&&h[0].series.yAxis&&!h[0].series.yAxis.options.reversedStacks&&(h=h.slice().reverse()),this.followPointer&&c)typeof c.chartX>"u"&&(c=t.normalize(c)),h=[c.chartX-e,c.chartY-l];else if(h[0].tooltipPos)h=h[0].tooltipPos;else{let u=0,L=0;h.forEach(function(r){(r=r.pos(!0))&&(u+=r[0],L+=r[1])}),u/=h.length,L/=h.length,this.shared&&1<h.length&&c&&(i?u=c.chartX:L=c.chartY),h=[u-e,L-l]}return h.map(Math.round)}getClassName(h,c,e){const t=h.series,i=t.options;return[this.options.className,"highcharts-label",e&&"highcharts-tooltip-header",c?"highcharts-tooltip-box":"highcharts-tooltip",!e&&"highcharts-color-"+k(h.colorIndex,t.colorIndex),i&&i.className].filter(f).join(" ")}getLabel(){const h=this,c=this.chart.styledMode,e=this.options,t=this.split&&this.allowShared,i=e.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none");let l,u=this.chart.renderer;if(this.label){var L=!this.label.hasClass("highcharts-label");(!t&&L||t&&!L)&&this.destroy()}if(!this.label){if(this.outside){L=this.chart.options.chart.style;const r=J.getRendererType();this.container=l=P.doc.createElement("div"),l.className="highcharts-tooltip-container",b(l,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(L&&L.zIndex||0)+3)}),P.doc.body.appendChild(l),this.renderer=u=new r(l,0,0,L,void 0,void 0,u.styledMode)}if(t?this.label=u.g("tooltip"):(this.label=u.label("",0,0,e.shape,void 0,void 0,e.useHTML,void 0,"tooltip").attr({padding:e.padding,r:e.borderRadius}),c||this.label.attr({fill:e.backgroundColor,"stroke-width":e.borderWidth||0}).css(e.style).css({pointerEvents:i})),h.outside){const r=this.label,{xSetter:S,ySetter:F}=r;r.xSetter=function(q){S.call(r,h.distance),l.style.left=q+"px"},r.ySetter=function(q){F.call(r,h.distance),l.style.top=q+"px"}}this.label.attr({zIndex:8}).shadow(e.shadow).add()}return this.label}getPlayingField(){const{body:h,documentElement:c}=U,{chart:e,distance:t,outside:i}=this;return{width:i?Math.max(h.scrollWidth,c.scrollWidth,h.offsetWidth,c.offsetWidth,c.clientWidth)-2*t:e.chartWidth,height:i?Math.max(h.scrollHeight,c.scrollHeight,h.offsetHeight,c.offsetHeight,c.clientHeight):e.chartHeight}}getPosition(h,c,e){const t=this.chart,i=this.distance,l={},u=t.inverted&&e.h||0,L=this.outside;var r=this.getPlayingField();const S=r.width,F=r.height,q=t.pointer.getChartPosition();r=g=>{const m=g==="x";return[g,m?S:F,m?h:c].concat(L?[m?h*q.scaleX:c*q.scaleY,m?q.left-i+(e.plotX+t.plotLeft)*q.scaleX:q.top-i+(e.plotY+t.plotTop)*q.scaleY,0,m?S:F]:[m?h:c,m?e.plotX+t.plotLeft:e.plotY+t.plotTop,m?t.plotLeft:t.plotTop,m?t.plotLeft+t.plotWidth:t.plotTop+t.plotHeight])};let rt=r("y"),B=r("x"),s;r=!!e.negative,!t.polar&&t.hoverSeries&&t.hoverSeries.yAxis&&t.hoverSeries.yAxis.reversed&&(r=!r);const M=!this.followPointer&&k(e.ttBelow,!t.inverted===r),z=function(g,m,H,G,$,tt,it){const at=L?g==="y"?i*q.scaleY:i*q.scaleX:i,ht=(H-G)/2,pt=G<$-i,E=$+i+G<m,C=$-at-H+ht;if($=$+at-ht,M&&E)l[g]=$;else if(!M&&pt)l[g]=C;else if(pt)l[g]=Math.min(it-G,0>C-u?C:C-u);else if(E)l[g]=Math.max(tt,$+u+H>m?$:$+u);else return!1},D=function(g,m,H,G,$){let tt;return $<i||$>m-i?tt=!1:l[g]=$<H/2?1:$>m-G/2?m-G-2:$-H/2,tt},V=function(g){const m=rt;rt=B,B=m,s=g},o=function(){z.apply(0,rt)!==!1?D.apply(0,B)!==!1||s||(V(!0),o()):s?l.x=l.y=0:(V(!0),o())};return(t.inverted||1<this.len)&&V(),o(),l}hide(h){const c=this;K.clearTimeout(this.hideTimer),h=k(h,this.options.hideDelay),this.isHidden||(this.hideTimer=n(function(){c.getLabel().fadeOut(h&&void 0),c.isHidden=!0},h))}init(h,c){this.chart=h,this.options=c,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=c.split&&!h.inverted&&!h.polar,this.shared=c.shared||this.split,this.outside=k(c.outside,!(!h.scrollablePixelsX&&!h.scrollablePixelsY))}shouldStickOnContact(h){return!(this.followPointer||!this.options.stickOnContact||h&&!this.chart.pointer.inClass(h.target,"highcharts-tooltip"))}move(h,c,e,t){const i=this,l=i.now,u=i.options.animation!==!1&&!i.isHidden&&(1<Math.abs(h-l.x)||1<Math.abs(c-l.y)),L=i.followPointer||1<i.len;I(l,{x:u?(2*l.x+h)/3:h,y:u?(l.y+c)/2:c,anchorX:L?void 0:u?(2*l.anchorX+e)/3:e,anchorY:L?void 0:u?(l.anchorY+t)/2:t}),i.getLabel().attr(l),i.drawTracker(),u&&(K.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){i&&i.move(h,c,e,t)},32))}refresh(h,c){const e=this.chart,t=this.options,i=e.pointer,l=w(h),u=l[0],L=[];var r=t.format,S=t.formatter||this.defaultFormatter;const F=this.shared,q=e.styledMode;let rt={};if(t.enabled&&u.series){K.clearTimeout(this.hideTimer),this.allowShared=!(!y(h)&&h.series&&h.series.noSharedTooltip),this.followPointer=!this.split&&u.series.tooltipOptions.followPointer,h=this.getAnchor(h,c);var B=h[0],s=h[1];if(F&&this.allowShared?(i.applyInactiveState(l),l.forEach(function(M){M.setState("hover"),L.push(M.getLabelConfig())}),rt=u.getLabelConfig(),rt.points=L):rt=u.getLabelConfig(),this.len=L.length,r=f(r)?Y(r,rt,e):S.call(rt,this),S=u.series,this.distance=k(S.tooltipOptions.distance,16),r===!1)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(r,l);else{let M=B,z=s;if(c&&i.isDirectTouch&&(M=c.chartX-e.plotLeft,z=c.chartY-e.plotTop),e.polar||S.options.clip===!1||l.some(D=>i.isDirectTouch||D.series.shouldShowTooltip(M,z)))c=this.getLabel(),t.style.width&&!q||c.css({width:(this.outside?this.getPlayingField():e.spacingBox).width+"px"}),c.attr({text:r&&r.join?r.join(""):r}),c.addClass(this.getClassName(u),!0),q||c.attr({stroke:t.borderColor||u.color||S.color||"#666666"}),this.updatePosition({plotX:B,plotY:s,negative:u.negative,ttBelow:u.ttBelow,h:h[2]||0});else{this.hide();return}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}d(this,"refresh")}}renderSplit(h,c){function e(X,Q,dt,ct,xt=!0){return dt?(Q=H?0:at,X=x(X-ct/2,o.left,o.right-ct-(t.outside?G:0))):(Q-=tt,X=xt?X-ct-z:X+z,X=x(X,xt?X:o.left,o.right)),{x:X,y:Q}}const t=this,{chart:i,chart:{chartWidth:l,chartHeight:u,plotHeight:L,plotLeft:r,plotTop:S,pointer:F,scrollablePixelsY:q=0,scrollablePixelsX:rt,scrollingContainer:{scrollLeft:B,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:M},distance:z,options:D,options:{positioner:V}}=t,o=t.outside&&typeof rt!="number"?U.documentElement.getBoundingClientRect():{left:B,right:B+l,top:s,bottom:s+u},g=t.getLabel(),m=this.renderer||i.renderer,H=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:G,top:$}=F.getChartPosition();let tt=S+s,it=0,at=L-q;f(h)&&(h=[!1,h]),h=h.slice(0,c.length+1).reduce(function(X,Q,dt){if(Q!==!1&&Q!==""){dt=c[dt-1]||{isHeader:!0,plotX:c[0].plotX,plotY:L,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var yt=dt;Q=Q.toString();var gt=ct.tt;const{isHeader:Mt,series:_t}=yt;gt||(gt={padding:D.padding,r:D.borderRadius},M||(gt.fill=D.backgroundColor,gt["stroke-width"]=(xt=D.borderWidth)!==null&&xt!==void 0?xt:1),gt=m.label("",0,0,D[Mt?"headerShape":"shape"],void 0,void 0,D.useHTML).addClass(t.getClassName(yt,!0,Mt)).attr(gt).add(g)),gt.isActive=!0,gt.attr({text:Q}),M||gt.css(D.style).attr({stroke:D.borderColor||yt.color||_t.color||"#333333"}),xt=gt}xt=ct.tt=xt,yt=xt.getBBox(),ct=yt.width+xt.strokeWidth(),Ct&&(it=yt.height,at+=it,H&&(tt-=it));{const{isHeader:Mt,plotX:_t=0,plotY:At=0,series:Bt}=dt;if(Mt){Q=r+_t;var mt=S+L/2}else{const{xAxis:Nt,yAxis:Lt}=Bt;Q=Nt.pos+x(_t,-z,Nt.len+z),Bt.shouldShowTooltip(0,Lt.pos-S+At,{ignoreX:!0})&&(mt=Lt.pos+At)}Q=x(Q,o.left-z,o.right+z),mt={anchorX:Q,anchorY:mt}}const{anchorX:kt,anchorY:bt}=mt;typeof bt=="number"?(mt=yt.height+1,yt=V?V.call(t,ct,mt,dt):e(kt,bt,Ct,ct),X.push({align:V?0:void 0,anchorX:kt,anchorY:bt,boxWidth:ct,point:dt,rank:k(yt.rank,Ct?1:0),size:mt,target:yt.y,tt:xt,x:yt.x})):xt.isActive=!1}return X},[]),!V&&h.some(X=>{var{outside:Q}=t;return Q=(Q?G:0)+X.anchorX,Q<o.left&&Q+X.boxWidth<o.right?!0:Q<G-o.left+X.boxWidth&&o.right-Q>Q})&&(h=h.map(X=>{const{x:Q,y:dt}=e(X.anchorX,X.anchorY,X.point.isHeader,X.boxWidth,!1);return I(X,{target:dt,x:Q})})),t.cleanSplit(),N(h,at);var ht=G,pt=G;h.forEach(function(X){const{x:Q,boxWidth:dt,isHeader:ct}=X;ct||(t.outside&&G+Q<ht&&(ht=G+Q),!ct&&t.outside&&ht+dt>pt&&(pt=G+Q))}),h.forEach(function(X){const{x:Q,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:yt}}=X,gt={visibility:typeof xt>"u"?"hidden":"inherit",x:Q,y:(xt||0)+tt,anchorX:dt,anchorY:ct};if(t.outside&&Q<dt){const mt=G-ht;0<mt&&(yt||(gt.x=Q+mt,gt.anchorX=dt+mt),yt&&(gt.x=(pt-ht)/2,gt.anchorX=dt+mt))}X.tt.attr(gt)});const{container:E,outside:C,renderer:Z}=t;if(C&&E&&Z){const{width:X,height:Q,x:dt,y:ct}=g.getBBox();Z.setSize(X+dt,Q+ct,!1),E.style.left=ht+"px",E.style.top=$+"px"}O&&g.attr({opacity:g.opacity===1?.999:1})}drawTracker(){if(this.shouldStickOnContact()){var h=this.chart,c=this.label,e=this.shared?h.hoverPoints:h.hoverPoint;if(c&&e){var t={x:0,y:0,width:0,height:0};e=this.getAnchor(e);var i=c.getBBox();e[0]+=h.plotLeft-c.translateX,e[1]+=h.plotTop-c.translateY,t.x=Math.min(0,e[0]),t.y=Math.min(0,e[1]),t.width=0>e[0]?Math.max(Math.abs(e[0]),i.width-e[0]):Math.max(Math.abs(e[0]),i.width),t.height=0>e[1]?Math.max(Math.abs(e[1]),i.height-Math.abs(e[1])):Math.max(Math.abs(e[1]),i.height),this.tracker?this.tracker.attr(t):(this.tracker=c.renderer.rect(t).addClass("highcharts-tracker").add(c),h.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}else this.tracker&&(this.tracker=this.tracker.destroy())}styledModeFormat(h){return h.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}"')}tooltipFooterHeaderFormatter(h,c){const e=h.series,t=e.tooltipOptions;var i=e.xAxis;const l=i&&i.dateTime;i={isFooter:c,labelConfig:h};let u=t.xDateFormat,L=t[c?"footerFormat":"headerFormat"];return d(this,"headerFormatter",i,function(r){l&&!u&&v(h.key)&&(u=l.getXDateFormat(h.key,t.dateTimeLabelFormats)),l&&u&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(S){L=L.replace("{point."+S+"}","{point."+S+":"+u+"}")}),e.chart.styledMode&&(L=this.styledModeFormat(L)),r.text=Y(L,{point:h,series:e},this.chart)}),i.text}update(h){this.destroy(),this.init(this.chart,T(!0,this.options,h))}updatePosition(h){const{chart:c,distance:e,options:t}=this;var i=c.pointer;const l=this.getLabel(),{left:u,top:L,scaleX:r,scaleY:S}=i.getChartPosition();i=(t.positioner||this.getPosition).call(this,l.width,l.height,h);let F=(h.plotX||0)+c.plotLeft;h=(h.plotY||0)+c.plotTop;let q;this.outside&&(t.positioner&&(i.x+=u-e,i.y+=L-e),q=(t.borderWidth||0)+2*e,this.renderer.setSize(l.width+q,l.height+q,!1),(r!==1||S!==1)&&(b(this.container,{transform:`scale(${r}, ${S})`}),F*=r,h*=S),F+=u-i.x,h+=L-i.y),this.move(Math.round(i.x),Math.round(i.y||0),F,h)}}return function(p){const h=[];p.compose=function(c){K.pushUnique(h,c)&&R(c,"afterInit",function(){const e=this.chart;e.options.tooltip&&(e.tooltip=new p(e,e.options.tooltip))})}}(a||(a={})),a}),nt(A,"Core/Series/Point.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Animation/AnimationUtilities.js"],A["Core/Defaults.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(j,P,W,J,K){const{animObject:Y}=P,{defaultOptions:U}=W,{format:O}=J,{addEvent:N,defined:R,erase:x,extend:b,fireEvent:_,getNestedProperty:I,isArray:d,isFunction:y,isNumber:v,isObject:f,merge:T,objectEach:k,pick:w,syncTimeout:n,removeEvent:a,uniqueKey:p}=K;class h{constructor(){this.category=void 0,this.destroyed=!1,this.formatPrefix="point",this.id=void 0,this.isNull=!1,this.percentage=this.options=this.name=void 0,this.selected=!1,this.total=this.shapeArgs=this.series=void 0,this.visible=!0,this.x=void 0}animateBeforeDestroy(){const e=this,t={x:e.startXPos,opacity:0},i=e.getGraphicalProps();i.singular.forEach(function(l){e[l]=e[l].animate(l==="dataLabel"?{x:e[l].startXPos,y:e[l].startYPos,opacity:0}:t)}),i.plural.forEach(function(l){e[l].forEach(function(u){u.element&&u.animate(b({x:e.startXPos},u.startYPos?{x:u.startXPos,y:u.startYPos}:{}))})})}applyOptions(e,t){const i=this.series,l=i.options.pointValKey||i.pointValKey;return e=h.prototype.optionsToObject.call(this,e),b(this,e),this.options=this.options?b(this.options,e):e,e.group&&delete this.group,e.dataLabels&&delete this.dataLabels,l&&(this.y=h.prototype.getNestedProperty.call(this,l)),this.formatPrefix=(this.isNull=this.isValid&&!this.isValid())?"null":"point",this.selected&&(this.state="select"),"name"in this&&typeof t>"u"&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),typeof this.x>"u"&&i?this.x=typeof t>"u"?i.autoIncrement():t:v(e.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(e.x)),this}destroy(){if(!this.destroyed){const t=this;var e=t.series;const i=e.chart;e=e.options.dataSorting;const l=i.hoverPoints,u=Y(t.series.chart.renderer.globalAnimation),L=()=>{(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(a(t),t.destroyElements());for(const r in t)delete t[r]};t.legendItem&&i.legend.destroyItem(t),l&&(t.setState(),x(l,t),l.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),n(L,u.duration)):L(),i.pointCount--}this.destroyed=!0}destroyElements(e){const t=this;e=t.getGraphicalProps(e),e.singular.forEach(function(i){t[i]=t[i].destroy()}),e.plural.forEach(function(i){t[i].forEach(function(l){l&&l.element&&l.destroy()}),delete t[i]})}firePointEvent(e,t,i){const l=this,u=this.series.options;(u.point.events[e]||l.options&&l.options.events&&l.options.events[e])&&l.importEvents(),e==="click"&&u.allowPointSelect&&(i=function(L){l.select&&l.select(null,L.ctrlKey||L.metaKey||L.shiftKey)}),_(l,e,t,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(typeof this.colorIndex<"u"?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(e){const t=this,i=[],l={singular:[],plural:[]};let u,L;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),L=i.length;L--;)u=i[L],t[u]&&l.singular.push(u);return["graphic","dataLabel","connector"].forEach(function(r){const S=r+"s";e[r]&&t[S]&&l.plural.push(S)}),l}getLabelConfig(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}}getNestedProperty(e){if(e)return e.indexOf("custom.")===0?I(e,this.options):this[e]}getZone(){var e=this.series;const t=e.zones;e=e.zoneAxis||"y";let i,l=0;for(i=t[l];this[e]>=i.value;)i=t[++l];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}init(e,t,i){return this.series=e,this.applyOptions(t,i),this.id=R(this.id)?this.id:p(),this.resolveColor(),e.chart.pointCount++,_(this,"afterInit"),this}isValid(){return this.x!==null&&v(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,l=i||t.pointArrayMap||["y"],u=l.length;let L={},r=0,S=0;if(v(e)||e===null)L[l[0]]=e;else if(d(e))for(!i&&e.length>u&&(t=typeof e[0],t==="string"?L.name=e[0]:t==="number"&&(L.x=e[0]),r++);S<u;)i&&typeof e[r]>"u"||(0<l[S].indexOf(".")?h.prototype.setNestedProperty(L,e[r],l[S]):L[l[S]]=e[r]),r++,S++;else typeof e=="object"&&(L=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return L}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:l}=this,{chart:u,xAxis:L,yAxis:r}=l;let S=0,F=0;if(v(i)&&v(t))return e&&(S=L?L.pos:u.plotLeft,F=r?r.pos:u.plotTop),u.inverted&&L&&r?[r.len-t+F,L.len-i+S]:[i+S,t+F]}}resolveColor(){const e=this.series;var t=e.chart.styledMode;let i;var l=e.chart.options.chart.colorCount;delete this.nonZonedColor,e.options.colorByPoint?(t||(l=e.options.colors||e.chart.options.colors,i=l[e.colorCounter],l=l.length),t=e.colorCounter,e.colorCounter++,e.colorCounter===l&&(e.colorCounter=0)):(t||(i=e.color),t=e.colorIndex),this.colorIndex=w(this.options.colorIndex,t),this.color=w(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(l,u,L,r){return l[u]=r.length-1===L?t:f(l[u],!0)?l[u]:{},l[u]},e),e}shouldDraw(){return!this.isNull}tooltipFormatter(e){const t=this.series,i=t.tooltipOptions,l=w(i.valueDecimals,""),u=i.valuePrefix||"",L=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(u||L)&&(e=e.replace(RegExp(r+"}","g"),u+r+"}"+L)),e=e.replace(RegExp(r+"}","g"),r+":,."+l+"f}")}),O(e,{point:this,series:this.series},t.chart)}update(e,t,i,l){function u(){L.applyOptions(e);var B=S&&L.hasMockGraphic;B=L.y===null?!B:B,S&&B&&(L.graphic=S.destroy(),delete L.hasMockGraphic),f(e,!0)&&(S&&S.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(L.graphic=S.destroy()),e&&e.dataLabels&&L.dataLabel&&(L.dataLabel=L.dataLabel.destroy()),L.connector&&(L.connector=L.connector.destroy())),rt=L.index,r.updateParallelArrays(L,rt),q.data[rt]=f(q.data[rt],!0)||f(e,!0)?L.options:w(e,q.data[rt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(F.isDirtyBox=!0),q.legendType==="point"&&(F.isDirtyLegend=!0),t&&F.redraw(i)}const L=this,r=L.series,S=L.graphic,F=r.chart,q=r.options;let rt;t=w(t,!0),l===!1?u():L.firePointEvent("update",{options:e},u)}remove(e,t){this.series.removePoint(this.series.data.indexOf(this),e,t)}select(e,t){const i=this,l=i.series,u=l.chart;this.selectedStaging=e=w(e,!i.selected),i.firePointEvent(e?"select":"unselect",{accumulate:t},function(){i.selected=i.options.selected=e,l.options.data[l.data.indexOf(i)]=i.options,i.setState(e&&"select"),t||u.getSelectedPoints().forEach(function(L){const r=L.series;L.selected&&L!==i&&(L.selected=L.options.selected=!1,r.options.data[r.data.indexOf(L)]=L.options,L.setState(u.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),L.firePointEvent("unselect"))})}),delete this.selectedStaging}onMouseOver(e){const t=this.series.chart,i=t.pointer;e=e?i.normalize(e):i.getChartCoordinatesFromPoint(this,t.inverted),i.runPointActions(e,this)}onMouseOut(){const e=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(e.hoverPoints||[]).forEach(function(t){t.setState()}),e.hoverPoints=e.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){const e=this,t=T(e.series.options.point,e.options).events;e.events=t,k(t,function(i,l){y(i)&&N(e,l,i)}),this.hasImportedEvents=!0}}setState(e,t){const i=this.series;var l=this.state,u=i.options.states[e||"normal"]||{},L=U.plotOptions[i.type].marker&&i.options.marker;const r=L&&L.enabled===!1,S=L&&L.states&&L.states[e||"normal"]||{},F=S.enabled===!1,q=this.marker||{},rt=i.chart,B=L&&i.markerAttribs;let s=i.halo;var M;let z;var D=i.stateMarkerGraphic;if(e=e||"",!(e===this.state&&!t||this.selected&&e!=="select"||u.enabled===!1||e&&(F||r&&S.enabled===!1)||e&&q.states&&q.states[e]&&q.states[e].enabled===!1)){if(this.state=e,B&&(M=i.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(l&&this.graphic.removeClass("highcharts-point-"+l),e&&this.graphic.addClass("highcharts-point-"+e),!rt.styledMode){l=i.pointAttribs(this,e),z=w(rt.options.chart.animation,u.animation);const V=l.opacity;i.options.inactiveOtherPoints&&v(V)&&((this.dataLabels||[]).forEach(function(o){o&&!o.hasClass("highcharts-data-label-hidden")&&o.animate({opacity:V},z)}),this.connector&&this.connector.animate({opacity:V},z)),this.graphic.animate(l,z)}M&&this.graphic.animate(M,w(rt.options.chart.animation,S.animation,L.animation)),D&&D.hide()}else e&&S&&(L=q.symbol||i.symbol,D&&D.currentSymbol!==L&&(D=D.destroy()),M&&(D?D[t?"animate":"attr"]({x:M.x,y:M.y}):L&&(i.stateMarkerGraphic=D=rt.renderer.symbol(L,M.x,M.y,M.width,M.height).add(i.markerGroup),D.currentSymbol=L)),!rt.styledMode&&D&&this.state!=="inactive"&&D.attr(i.pointAttribs(this,e))),D&&(D[e&&this.isInside?"show":"hide"](),D.element.point=this,D.addClass(this.getClassName(),!0));u=u.halo,M=(D=this.graphic||D)&&D.visibility||"inherit",u&&u.size&&D&&M!=="hidden"&&!this.isCluster?(s||(i.halo=s=rt.renderer.path().add(D.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(u.size)}),s.attr({class:"highcharts-halo highcharts-color-"+w(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),s.point=this,rt.styledMode||s.attr(b({fill:this.color||i.color,"fill-opacity":u.opacity},j.filterUserAttributes(u.attributes||{})))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),_(this,"afterSetState",{state:e})}}haloPath(e){const t=this.pos();return t?this.series.chart.renderer.symbols.circle(Math.floor(t[0])-e,t[1]-e,2*e,2*e):[]}}return h}),nt(A,"Core/Pointer.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,P,W){const{parse:J}=j,{charts:K,noop:Y}=P,{addEvent:U,attr:O,css:N,defined:R,extend:x,find:b,fireEvent:_,isNumber:I,isObject:d,objectEach:y,offset:v,pick:f,splat:T}=W;class k{constructor(n,a){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.eventsToUnbind=[],this.chart=n,this.hasDragged=!1,this.options=a,this.init(n,a)}applyInactiveState(n){let a=[],p;(n||[]).forEach(function(h){p=h.series,a.push(p),p.linkedParent&&a.push(p.linkedParent),p.linkedSeries&&(a=a.concat(p.linkedSeries)),p.navigatorSeries&&a.push(p.navigatorSeries)}),this.chart.series.forEach(function(h){a.indexOf(h)===-1?h.setState("inactive",!0):h.options.inactiveOtherPoints&&h.setAllPointsToState("inactive")})}destroy(){const n=this;this.eventsToUnbind.forEach(a=>a()),this.eventsToUnbind=[],P.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),y(n,function(a,p){n[p]=void 0})}getSelectionMarkerAttrs(n,a){const p={args:{chartX:n,chartY:a},attrs:{},shapeType:"rect"};return _(this,"getSelectionMarkerAttrs",p,h=>{const{chart:c,mouseDownX:e=0,mouseDownY:t=0,zoomHor:i,zoomVert:l}=this;h=h.attrs;let u;h.x=c.plotLeft,h.y=c.plotTop,h.width=i?1:c.plotWidth,h.height=l?1:c.plotHeight,i&&(u=n-e,h.width=Math.abs(u),h.x=(0<u?0:u)+e),l&&(u=a-t,h.height=Math.abs(u),h.y=(0<u?0:u)+t)}),p}drag(n){const a=this.chart,p=a.options.chart;var h=a.plotLeft;const c=a.plotTop,e=a.plotWidth,t=a.plotHeight,i=this.mouseDownX||0,l=this.mouseDownY||0,u=d(p.panning)?p.panning&&p.panning.enabled:p.panning,L=p.panKey&&n[p.panKey+"Key"];let r=n.chartX,S=n.chartY,F=this.selectionMarker;if((!F||!F.touch)&&(r<h?r=h:r>h+e&&(r=h+e),S<c?S=c:S>c+t&&(S=c+t),this.hasDragged=Math.sqrt(Math.pow(i-r,2)+Math.pow(l-S,2)),10<this.hasDragged)){h=a.isInsidePlot(i-h,l-c,{visiblePlotOnly:!0});const{shapeType:q,attrs:rt}=this.getSelectionMarkerAttrs(r,S);!a.hasCartesianSeries&&!a.mapView||!this.zoomX&&!this.zoomY||!h||L||F||(this.selectionMarker=F=a.renderer[q](),F.attr({class:"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||F.attr({fill:p.selectionMarkerFill||J("#334eff").setOpacity(.25).get()})),F&&F.attr(rt),h&&!F&&u&&a.pan(n,p.panning)}}dragStart(n){const a=this.chart;a.mouseIsDown=n.type,a.cancelClick=!1,a.mouseDownX=this.mouseDownX=n.chartX,a.mouseDownY=this.mouseDownY=n.chartY}getSelectionBox(n){const a={args:{marker:n},result:{}};return _(this,"getSelectionBox",a,p=>{p.result={x:n.attr?+n.attr("x"):n.x,y:n.attr?+n.attr("y"):n.y,width:n.attr?n.attr("width"):n.width,height:n.attr?n.attr("height"):n.height}}),a.result}drop(n){const a=this,p=this.chart,h=this.hasPinched;if(this.selectionMarker){const{x:c,y:e,width:t,height:i}=this.getSelectionBox(this.selectionMarker),l={originalEvent:n,xAxis:[],yAxis:[],x:c,y:e,width:t,height:i};let u=!!p.mapView;(this.hasDragged||h)&&(p.axes.forEach(function(L){if(L.zoomEnabled&&R(L.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[L.coll]])&&I(c)&&I(e)&&I(t)&&I(i)){var r=L.horiz;const S=n.type==="touchend"?L.minPixelPadding:0,F=L.toValue((r?c:e)+S);r=L.toValue((r?c+t:e+i)-S),l[L.coll].push({axis:L,min:Math.min(F,r),max:Math.max(F,r)}),u=!0}}),u&&_(p,"selection",l,function(L){p.zoom(x(L,h?{animation:!1}:null))})),I(p.index)&&(this.selectionMarker=this.selectionMarker.destroy()),h&&this.scaleGroups()}p&&I(p.index)&&(N(p.container,{cursor:p._cursor}),p.cancelClick=10<this.hasDragged,p.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(n,a,p){let h;return n.forEach(function(c){var e=!(c.noSharedTooltip&&a)&&0>c.options.findNearestPointBy.indexOf("y");if(c=c.searchPoint(p,e),(e=d(c,!0)&&c.series)&&!(e=!d(h,!0))){{e=h.distX-c.distX;const t=h.dist-c.dist,i=(c.series.group&&c.series.group.zIndex)-(h.series.group&&h.series.group.zIndex);e=e!==0&&a?e:t!==0?t:i!==0?i:h.series.index>c.series.index?-1:1}e=0<e}e&&(h=c)}),h}getChartCoordinatesFromPoint(n,a){var p=n.series;const h=p.xAxis;p=p.yAxis;const c=n.shapeArgs;if(h&&p){let e=f(n.clientX,n.plotX),t=n.plotY||0;return n.isNode&&c&&I(c.x)&&I(c.y)&&(e=c.x,t=c.y),a?{chartX:p.len+p.pos-t,chartY:h.len+h.pos-e}:{chartX:e+h.pos,chartY:t+p.pos}}if(c&&c.x&&c.y)return{chartX:c.x,chartY:c.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;var{container:n}=this.chart;const a=v(n);this.chartPosition={left:a.left,top:a.top,scaleX:1,scaleY:1};const p=n.offsetWidth;return n=n.offsetHeight,2<p&&2<n&&(this.chartPosition.scaleX=a.width/p,this.chartPosition.scaleY=a.height/n),this.chartPosition}getCoordinates(n){const a={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(p){a[p.isXAxis?"xAxis":"yAxis"].push({axis:p,value:p.toValue(n[p.horiz?"chartX":"chartY"])})}),a}getHoverData(n,a,p,h,c,e){const t=[];h=!(!h||!n);const i=function(r){return r.visible&&!(!c&&r.directTouch)&&f(r.options.enableMouseTracking,!0)};let l,u={chartX:e?e.chartX:void 0,chartY:e?e.chartY:void 0,shared:c};_(this,"beforeGetHoverData",u),l=a&&!a.stickyTracking?[a]:p.filter(r=>r.stickyTracking&&(u.filter||i)(r));const L=h||!e?n:this.findNearestKDPoint(l,c,e);return a=L&&L.series,L&&(c&&!a.noSharedTooltip?(l=p.filter(function(r){return u.filter?u.filter(r):i(r)&&!r.noSharedTooltip}),l.forEach(function(r){let S=b(r.points,function(F){return F.x===L.x&&!F.isNull});d(S)&&(r.boosted&&r.boost&&(S=r.boost.getPoint(S)),t.push(S))})):t.push(L)),u={hoverPoint:L},_(this,"afterGetHoverData",u),{hoverPoint:u.hoverPoint,hoverSeries:a,hoverPoints:t}}getPointFromEvent(n){n=n.target;let a;for(;n&&!a;)a=n.point,n=n.parentNode;return a}onTrackerMouseOut(n){n=n.relatedTarget;const a=this.chart.hoverSeries;this.isDirectTouch=!1,!a||!n||a.stickyTracking||this.inClass(n,"highcharts-tooltip")||this.inClass(n,"highcharts-series-"+a.index)&&this.inClass(n,"highcharts-tracker")||a.onMouseOut()}inClass(n,a){let p;for(;n;){if(p=O(n,"class")){if(p.indexOf(a)!==-1)return!0;if(p.indexOf("highcharts-container")!==-1)return!1}n=n.parentElement}}init(n,a){this.options=a,this.chart=n,this.runChartClick=!(!a.chart.events||!a.chart.events.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),_(this,"afterInit")}normalize(n,a){var p=n.touches,h=p?p.length?p.item(0):f(p.changedTouches,n.changedTouches)[0]:n;return a||(a=this.getChartPosition()),p=h.pageX-a.left,h=h.pageY-a.top,p/=a.scaleX,h/=a.scaleY,x(n,{chartX:Math.round(p),chartY:Math.round(h)})}onContainerClick(n){const a=this.chart,p=a.hoverPoint;n=this.normalize(n);const h=a.plotLeft,c=a.plotTop;a.cancelClick||(p&&this.inClass(n.target,"highcharts-tracker")?(_(p.series,"click",x(n,{point:p})),a.hoverPoint&&p.firePointEvent("click",n)):(x(n,this.getCoordinates(n)),a.isInsidePlot(n.chartX-h,n.chartY-c,{visiblePlotOnly:!0})&&_(a,"click",n)))}onContainerMouseDown(n){const a=((n.buttons||n.button)&1)===1;n=this.normalize(n),P.isFirefox&&n.button!==0&&this.onContainerMouseMove(n),(typeof n.button>"u"||a)&&(this.zoomOption(n),a&&n.preventDefault&&n.preventDefault(),this.dragStart(n))}onContainerMouseLeave(n){const a=K[f(k.hoverChartIndex,-1)];n=this.normalize(n),a&&n.relatedTarget&&!this.inClass(n.relatedTarget,"highcharts-tooltip")&&(a.pointer.reset(),a.pointer.chartPosition=void 0)}onContainerMouseEnter(n){delete this.chartPosition}onContainerMouseMove(n){const a=this.chart,p=a.tooltip;n=this.normalize(n),this.setHoverChartIndex(),(a.mouseIsDown==="mousedown"||this.touchSelect(n))&&this.drag(n),a.openMenu||!this.inClass(n.target,"highcharts-tracker")&&!a.isInsidePlot(n.chartX-a.plotLeft,n.chartY-a.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(n)||(this.inClass(n.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(n))}onDocumentTouchEnd(n){const a=K[f(k.hoverChartIndex,-1)];a&&a.pointer.drop(n)}onContainerTouchMove(n){this.touchSelect(n)?this.onContainerMouseMove(n):this.touch(n)}onContainerTouchStart(n){this.touchSelect(n)?this.onContainerMouseDown(n):(this.zoomOption(n),this.touch(n,!0))}onDocumentMouseMove(n){const a=this.chart,p=a.tooltip,h=this.chartPosition;n=this.normalize(n,h),!h||a.isInsidePlot(n.chartX-a.plotLeft,n.chartY-a.plotTop,{visiblePlotOnly:!0})||p&&p.shouldStickOnContact(n)||this.inClass(n.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(n){const a=K[f(k.hoverChartIndex,-1)];a&&a.pointer.drop(n)}pinch(n){const a=this,p=a.chart,h=a.pinchDown,c=n.touches||[],e=c.length,t=a.lastValidTouch,i=a.hasZoom,l={},u=e===1&&(a.inClass(n.target,"highcharts-tracker")&&p.runTrackerClick||a.runChartClick),L={};var r=a.chart.tooltip;r=e===1&&f(r&&r.options.followTouchMove,!0);let S=a.selectionMarker;1<e?a.initiated=!0:r&&(a.initiated=!1),i&&a.initiated&&!u&&n.cancelable!==!1&&n.preventDefault(),[].map.call(c,function(F){return a.normalize(F)}),n.type==="touchstart"?([].forEach.call(c,function(F,q){h[q]={chartX:F.chartX,chartY:F.chartY}}),t.x=[h[0].chartX,h[1]&&h[1].chartX],t.y=[h[0].chartY,h[1]&&h[1].chartY],p.axes.forEach(function(F){if(F.zoomEnabled){const q=p.bounds[F.horiz?"h":"v"],rt=F.minPixelPadding,B=F.toPixels(Math.min(f(F.options.min,F.dataMin),F.dataMin)),s=F.toPixels(Math.max(f(F.options.max,F.dataMax),F.dataMax)),M=Math.max(B,s);q.min=Math.min(F.pos,Math.min(B,s)-rt),q.max=Math.max(F.pos+F.len,M+rt)}}),a.res=!0):r?this.runPointActions(a.normalize(n)):h.length&&(_(p,"touchpan",{originalEvent:n},()=>{S||(a.selectionMarker=S=x({destroy:Y,touch:!0},p.plotBox)),a.pinchTranslate(h,c,l,S,L,t),a.hasPinched=i,a.scaleGroups(l,L)}),a.res&&(a.res=!1,this.reset(!1,0)))}pinchTranslate(n,a,p,h,c,e){this.zoomHor&&this.pinchTranslateDirection(!0,n,a,p,h,c,e),this.zoomVert&&this.pinchTranslateDirection(!1,n,a,p,h,c,e)}pinchTranslateDirection(n,a,p,h,c,e,t,i){const l=this.chart,u=n?"x":"y",L=n?"X":"Y",r="chart"+L,S=n?"width":"height",F=l["plot"+(n?"Left":"Top")],q=l.inverted,rt=l.bounds[n?"h":"v"],B=a.length===1,s=a[0][r],M=!B&&a[1][r];a=function(){typeof g=="number"&&20<Math.abs(s-M)&&(V=i||Math.abs(o-g)/Math.abs(s-M)),D=(F-o)/V+s,z=l["plot"+(n?"Width":"Height")]/V};let z,D,V=i||1,o=p[0][r],g=!B&&p[1][r],m;a(),p=D,p<rt.min?(p=rt.min,m=!0):p+z>rt.max&&(p=rt.max-z,m=!0),m?(o-=.8*(o-t[u][0]),typeof g=="number"&&(g-=.8*(g-t[u][1])),a()):t[u]=[o,g],q||(e[u]=D-F,e[S]=z),e=q?1/V:V,c[S]=z,c[u]=p,h[q?n?"scaleY":"scaleX":"scale"+L]=V,h["translate"+L]=e*F+(o-e*s)}reset(n,a){const p=this.chart,h=p.hoverSeries,c=p.hoverPoint,e=p.hoverPoints,t=p.tooltip,i=t&&t.shared?e:c;n&&i&&T(i).forEach(function(l){l.series.isCartesian&&typeof l.plotX>"u"&&(n=!1)}),n?t&&i&&T(i).length&&(t.refresh(i),t.shared&&e?e.forEach(function(l){l.setState(l.state,!0),l.series.isCartesian&&(l.series.xAxis.crosshair&&l.series.xAxis.drawCrosshair(null,l),l.series.yAxis.crosshair&&l.series.yAxis.drawCrosshair(null,l))}):c&&(c.setState(c.state,!0),p.axes.forEach(function(l){l.crosshair&&c.series[l.coll]===l&&l.drawCrosshair(null,c)}))):(c&&c.onMouseOut(),e&&e.forEach(function(l){l.setState()}),h&&h.onMouseOut(),t&&t.hide(a),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),p.axes.forEach(function(l){l.hideCrosshair()}),this.hoverX=p.hoverPoints=p.hoverPoint=null)}runPointActions(n,a,p){const h=this.chart,c=h.tooltip&&h.tooltip.options.enabled?h.tooltip:void 0,e=c?c.shared:!1;let t=a||h.hoverPoint,i=t&&t.series||h.hoverSeries;a=this.getHoverData(t,i,h.series,(!n||n.type!=="touchmove")&&(!!a||i&&i.directTouch&&this.isDirectTouch),e,n),t=a.hoverPoint,i=a.hoverSeries;const l=a.hoverPoints;a=i&&i.tooltipOptions.followPointer&&!i.tooltipOptions.split;const u=e&&i&&!i.noSharedTooltip;if(t&&(p||t!==h.hoverPoint||c&&c.isHidden)){if((h.hoverPoints||[]).forEach(function(L){l.indexOf(L)===-1&&L.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach(function(L){L.setState("hover")}),h.hoverPoint&&h.hoverPoint.firePointEvent("mouseOut"),!t.series)return;h.hoverPoints=l,h.hoverPoint=t,t.firePointEvent("mouseOver",void 0,()=>{c&&t&&c.refresh(u?l:t,n)})}else a&&c&&!c.isHidden&&(p=c.getAnchor([{}],n),h.isInsidePlot(p[0],p[1],{visiblePlotOnly:!0})&&c.updatePosition({plotX:p[0],plotY:p[1]}));this.unDocMouseMove||(this.unDocMouseMove=U(h.container.ownerDocument,"mousemove",function(L){const r=K[k.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(L)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(L){const r=f((L.crosshair||{}).snap,!0);let S;r&&((S=h.hoverPoint)&&S.series[L.coll]===L||(S=b(l,F=>F.series&&F.series[L.coll]===L))),S||!r?L.drawCrosshair(n,S):L.hideCrosshair()})}scaleGroups(n,a){const p=this.chart;p.series.forEach(function(h){const c=n||h.getPlotBox();h.group&&(h.xAxis&&h.xAxis.zoomEnabled||p.mapView)&&(h.group.attr(c),h.markerGroup&&(h.markerGroup.attr(c),h.markerGroup.clip(a?p.clipRect:null)),h.dataLabelsGroup&&h.dataLabelsGroup.attr(c))}),p.clipRect.attr(a||p.clipBox)}setDOMEvents(){const n=this.chart.container,a=n.ownerDocument;n.onmousedown=this.onContainerMouseDown.bind(this),n.onmousemove=this.onContainerMouseMove.bind(this),n.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(U(n,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(U(n,"mouseleave",this.onContainerMouseLeave.bind(this))),k.unbindDocumentMouseUp||(k.unbindDocumentMouseUp=U(a,"mouseup",this.onDocumentMouseUp.bind(this)));let p=this.chart.renderTo.parentElement;for(;p&&p.tagName!=="BODY";)this.eventsToUnbind.push(U(p,"scroll",()=>{delete this.chartPosition})),p=p.parentElement;P.hasTouch&&(this.eventsToUnbind.push(U(n,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(U(n,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),k.unbindDocumentTouchEnd||(k.unbindDocumentTouchEnd=U(a,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(){const n=this.chart,a=P.charts[f(k.hoverChartIndex,-1)];a&&a!==n&&a.pointer.onContainerMouseLeave({relatedTarget:n.container}),a&&a.mouseIsDown||(k.hoverChartIndex=n.index)}touch(n,a){const p=this.chart;let h;this.setHoverChartIndex(),n.touches.length===1?(n=this.normalize(n),p.isInsidePlot(n.chartX-p.plotLeft,n.chartY-p.plotTop,{visiblePlotOnly:!0})&&!p.openMenu?(a&&this.runPointActions(n),n.type==="touchmove"&&(a=this.pinchDown,h=a[0]?4<=Math.sqrt(Math.pow(a[0].chartX-n.chartX,2)+Math.pow(a[0].chartY-n.chartY,2)):!1),f(h,!0)&&this.pinch(n)):a&&this.reset()):n.touches.length===2&&this.pinch(n)}touchSelect(n){return!(!this.chart.zooming.singleTouch||!n.touches||n.touches.length!==1)}zoomOption(n){const a=this.chart,p=a.inverted;var h=a.zooming.type||"";/touch/.test(n.type)&&(h=f(a.zooming.pinchType,h)),this.zoomX=n=/x/.test(h),this.zoomY=h=/y/.test(h),this.zoomHor=n&&!p||h&&p,this.zoomVert=h&&!p||n&&p,this.hasZoom=n||h}}return function(w){const n=[],a=[];w.compose=function(p){W.pushUnique(a,p)&&U(p,"beforeRender",function(){this.pointer=new w(this,this.options)})},w.dissolve=function(){for(let p=0,h=n.length;p<h;++p)n[p]();n.length=0}}(k||(k={})),k}),nt(A,"Core/Legend/Legend.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Series/Point.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y){const{animObject:U,setAnimation:O}=j,{format:N}=P,{marginNames:R}=W,{distribute:x}=K,{addEvent:b,createElement:_,css:I,defined:d,discardElement:y,find:v,fireEvent:f,isNumber:T,merge:k,pick:w,relativeLength:n,stableSort:a,syncTimeout:p}=Y;class h{constructor(e,t){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options=void 0,this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=e,this.init(e,t)}init(e,t){this.chart=e,this.setOptions(t),t.enabled&&(this.render(),b(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),b(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){const t=w(e.padding,8);this.options=e,this.chart.styledMode||(this.itemStyle=e.itemStyle,this.itemHiddenStyle=k(this.itemStyle,e.itemHiddenStyle)),this.itemMarginTop=e.itemMarginTop,this.itemMarginBottom=e.itemMarginBottom,this.padding=t,this.initialItemY=t-5,this.symbolWidth=w(e.symbolWidth,16),this.pages=[],this.proximate=e.layout==="proximate"&&!this.chart.inverted,this.baseline=void 0}update(e,t){const i=this.chart;this.setOptions(k(!0,this.options,e)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,w(t,!0)&&i.redraw(),f(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:l,line:u,symbol:L}=e.legendItem||{};if(i&&i[t?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){const{itemHiddenStyle:r}=this,S=r.color,F=t&&e.color||S,q=e.options&&e.options.marker;let rt={fill:F};l==null||l.css(k(t?this.itemStyle:r)),u==null||u.attr({stroke:F}),L&&(q&&L.isMarker&&(rt=e.pointAttribs(),t||(rt.stroke=rt.fill=S)),L.attr(rt))}f(this,"afterColorizeItem",{item:e,visible:t})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(e){const{group:t,x:i=0,y:l=0}=e.legendItem||{};var u=this.options,L=u.symbolPadding;const r=!u.rtl;u=e.checkbox,t&&t.element&&(L={translateX:r?i:this.legendWidth-i-2*L-4,translateY:l},t[d(t.translateY)?"animate":"attr"](L,void 0,()=>{f(this,"afterPositionItem",{item:e})})),u&&(u.x=i,u.y=l)}destroyItem(e){const t=e.checkbox,i=e.legendItem||{};for(const l of["group","label","line","symbol"])i[l]&&(i[l]=i[l].destroy());t&&y(t),e.legendItem=void 0}destroy(){for(const e of this.getAllItems())this.destroyItem(e);for(const e of"clipRect up down pager nav box title group".split(" "))this[e]&&(this[e]=this[e].destroy());this.display=null}positionCheckboxes(){const e=this.group&&this.group.alignAttr,t=this.clipHeight||this.legendHeight,i=this.titleHeight;let l;e&&(l=e.translateY,this.allItems.forEach(function(u){const L=u.checkbox;let r;L&&(r=l+i+L.y+(this.scrollOffset||0)+3,I(L,{left:e.translateX+u.checkboxOffset+L.x-20+"px",top:r+"px",display:this.proximate||r>l-6&&r<l+t-6?"":"none"}))},this))}renderTitle(){var e=this.options;const t=this.padding,i=e.title;let l=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,t-3,t-4,void 0,void 0,void 0,e.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"}),e=this.title.getBBox(),l=e.height,this.offsetWidth=e.width,this.contentGroup.attr({translateY:l})),this.titleHeight=l}setText(e){const t=this.options;e.legendItem.label.attr({text:t.labelFormat?N(t.labelFormat,e,this.chart):t.labelFormatter.call(e)})}renderItem(e){const t=e.legendItem=e.legendItem||{};var i=this.chart,l=i.renderer;const u=this.options,L=this.symbolWidth,r=u.symbolPadding||0,S=this.itemStyle,F=this.itemHiddenStyle,q=u.layout==="horizontal"?w(u.itemDistance,20):0,rt=!u.rtl,B=!e.series,s=!B&&e.series.drawLegendSymbol?e.series:e;var M=s.options;const z=this.createCheckboxForItem&&M&&M.showCheckbox,D=u.useHTML,V=e.options.className;let o=t.label;M=L+r+q+(z?20:0),o||(t.group=l.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(V?" "+V:"")+(B?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=o=l.text("",rt?L+r:-r,this.baseline||0,D),i.styledMode||o.css(k(e.visible?S:F)),o.attr({align:rt?"left":"right",zIndex:2}).add(t.group),this.baseline||(this.fontMetrics=l.fontMetrics(o),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,o.attr("y",this.baseline),this.symbolHeight=w(u.symbolHeight,this.fontMetrics.f),u.squareSymbol&&(this.symbolWidth=w(u.symbolWidth,Math.max(this.symbolHeight,16)),M=this.symbolWidth+r+q+(z?20:0),rt&&o.attr("x",this.symbolWidth+r))),s.drawLegendSymbol(this,e),this.setItemEvents&&this.setItemEvents(e,o,D)),z&&!e.checkbox&&this.createCheckboxForItem&&this.createCheckboxForItem(e),this.colorizeItem(e,e.visible),!i.styledMode&&S.width||o.css({width:(u.itemWidth||this.widthOption||i.spacingBox.width)-M+"px"}),this.setText(e),i=o.getBBox(),l=this.fontMetrics&&this.fontMetrics.h||0,e.itemWidth=e.checkboxOffset=u.itemWidth||t.labelWidth||i.width+M,this.maxItemWidth=Math.max(this.maxItemWidth,e.itemWidth),this.totalItemWidth+=e.itemWidth,this.itemHeight=e.itemHeight=Math.round(t.labelHeight||(i.height>1.5*l?i.height:l))}layoutItem(e){var t=this.options;const i=this.padding,l=t.layout==="horizontal",u=e.itemHeight,L=this.itemMarginBottom,r=this.itemMarginTop,S=l?w(t.itemDistance,20):0,F=this.maxLegendWidth;t=t.alignColumns&&this.totalItemWidth>F?this.maxItemWidth:e.itemWidth;const q=e.legendItem||{};l&&this.itemX-i+t>F&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=r+this.lastLineHeight+L),this.lastLineHeight=0),this.lastItemY=r+this.itemY+L,this.lastLineHeight=Math.max(u,this.lastLineHeight),q.x=this.itemX,q.y=this.itemY,l?this.itemX+=t:(this.itemY+=r+u+L,this.lastLineHeight=u),this.offsetWidth=this.widthOption||Math.max((l?this.itemX-i-(e.checkbox?0:S):t)+i,this.offsetWidth)}getAllItems(){let e=[];return this.chart.series.forEach(function(t){const i=t&&t.options;t&&w(i.showInLegend,d(i.linkedTo)?!1:void 0,!0)&&(e=e.concat((t.legendItem||{}).labels||(i.legendType==="point"?t.data:t)))}),f(this,"afterGetAllItems",{allItems:e}),e}getAlignment(){const e=this.options;return this.proximate?e.align.charAt(0)+"tv":e.floating?"":e.align.charAt(0)+e.verticalAlign.charAt(0)+e.layout.charAt(0)}adjustMargins(e,t){const i=this.chart,l=this.options,u=this.getAlignment();u&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(L,r){L.test(u)&&!d(e[r])&&(i[R[r]]=Math.max(i[R[r]],i.legend[(r+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][r]*l[r%2?"x":"y"]+w(l.margin,12)+t[r]+(i.titleOffset[r]||0)))})}proximatePositions(){const e=this.chart,t=[],i=this.options.align==="left";this.allItems.forEach(function(u){var L,r=i;let S;u.yAxis&&(u.xAxis.options.reversed&&(r=!r),u.points&&(L=v(r?u.points:u.points.slice(0).reverse(),function(F){return T(F.plotY)})),r=this.itemMarginTop+u.legendItem.label.getBBox().height+this.itemMarginBottom,S=u.yAxis.top-e.plotTop,u.visible?(L=L?L.plotY:u.yAxis.height,L+=S-.3*r):L=S+u.yAxis.height,t.push({target:L,size:r,item:u}))},this);let l;for(const u of x(t,e.plotHeight))l=u.item.legendItem||{},T(u.pos)&&(l.y=e.plotTop-e.spacing[0]+u.pos)}render(){const e=this.chart,t=e.renderer,i=this.options,l=this.padding;var u=this.getAllItems();let L,r=this.group,S=this.box;this.itemX=l,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=n(i.width,e.spacingBox.width-l);var F=e.spacingBox.width-2*l-i.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(F/=2),this.maxLegendWidth=this.widthOption||F,r||(this.group=r=t.g("legend").addClass(i.className||"").attr({zIndex:7}).add(),this.contentGroup=t.g().attr({zIndex:1}).add(r),this.scrollGroup=t.g().add(this.contentGroup)),this.renderTitle(),a(u,(q,rt)=>(q.options&&q.options.legendIndex||0)-(rt.options&&rt.options.legendIndex||0)),i.reversed&&u.reverse(),this.allItems=u,this.display=F=!!u.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,u.forEach(this.renderItem,this),u.forEach(this.layoutItem,this),u=(this.widthOption||this.offsetWidth)+l,L=this.lastItemY+this.lastLineHeight+this.titleHeight,L=this.handleOverflow(L),L+=l,S||(this.box=S=t.rect().addClass("highcharts-legend-box").attr({r:i.borderRadius}).add(r)),e.styledMode||S.attr({stroke:i.borderColor,"stroke-width":i.borderWidth||0,fill:i.backgroundColor||"none"}).shadow(i.shadow),0<u&&0<L&&S[S.placed?"animate":"attr"](S.crisp.call({},{x:0,y:0,width:u,height:L},S.strokeWidth())),r[F?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(u=L=0),this.legendWidth=u,this.legendHeight=L,F&&this.align(),this.proximate||this.positionItems(),f(this,"afterRender")}align(e=this.chart.spacingBox){const t=this.chart,i=this.options;let l=e.y;/(lth|ct|rth)/.test(this.getAlignment())&&0<t.titleOffset[0]?l+=t.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<t.titleOffset[2]&&(l-=t.titleOffset[2]),l!==e.y&&(e=k(e,{y:l})),t.hasRendered||(this.group.placed=!1),this.group.align(k(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,e)}handleOverflow(e){const t=this,i=this.chart,l=i.renderer,u=this.options;var L=u.y;const r=u.verticalAlign==="top",S=this.padding,F=u.maxHeight,q=u.navigation,rt=w(q.animation,!0),B=q.arrowSize||12,s=this.pages,M=this.allItems,z=function(G){typeof G=="number"?H.attr({height:G}):H&&(t.clipRect=H.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=G?"rect("+S+"px,9999px,"+(S+G)+"px,0)":"auto")},D=function(G){return t[G]=l.circle(0,0,1.3*B).translate(B/2,B/2).add(m),i.styledMode||t[G].attr("fill","rgba(0,0,0,0.0001)"),t[G]};let V,o,g;L=i.spacingBox.height+(r?-L:L)-S;let m=this.nav,H=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(L/=2),F&&(L=Math.min(L,F)),s.length=0,e&&0<L&&e>L&&q.enabled!==!1?(this.clipHeight=V=Math.max(L-20-this.titleHeight-S,0),this.currentPage=w(this.currentPage,1),this.fullHeight=e,M.forEach((G,$)=>{g=G.legendItem||{},G=g.y||0;const tt=Math.round(g.label.getBBox().height);let it=s.length;(!it||G-s[it-1]>V&&(o||G)!==s[it-1])&&(s.push(o||G),it++),g.pageIx=it-1,o&&((M[$-1].legendItem||{}).pageIx=it-1),$===M.length-1&&G+tt-s[it-1]>V&&G>s[it-1]&&(s.push(G),g.pageIx=it),G!==o&&(o=G)}),H||(H=t.clipRect=l.clipRect(0,S-2,9999,0),t.contentGroup.clip(H)),z(V),m||(this.nav=m=l.g().attr({zIndex:1}).add(this.group),this.up=l.symbol("triangle",0,0,B,B).add(m),D("upTracker").on("click",function(){t.scroll(-1,rt)}),this.pager=l.text("",15,10).addClass("highcharts-legend-navigation"),!i.styledMode&&q.style&&this.pager.css(q.style),this.pager.add(m),this.down=l.symbol("triangle-down",0,0,B,B).add(m),D("downTracker").on("click",function(){t.scroll(1,rt)})),t.scroll(0),e=L):m&&(z(),this.nav=m.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),e}scroll(e,t){const i=this.chart,l=this.pages,u=l.length,L=this.clipHeight,r=this.options.navigation,S=this.pager,F=this.padding;let q=this.currentPage+e;q>u&&(q=u),0<q&&(typeof t<"u"&&O(t,i),this.nav.attr({translateX:F,translateY:L+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(rt){rt.attr({class:q===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),S.attr({text:q+"/"+u}),[this.down,this.downTracker].forEach(function(rt){rt.attr({x:18+this.pager.getBBox().width,class:q===u?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),i.styledMode||(this.up.attr({fill:q===1?r.inactiveColor:r.activeColor}),this.upTracker.css({cursor:q===1?"default":"pointer"}),this.down.attr({fill:q===u?r.inactiveColor:r.activeColor}),this.downTracker.css({cursor:q===u?"default":"pointer"})),this.scrollOffset=-l[q-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=q,this.positionCheckboxes(),e=U(w(t,i.renderer.globalAnimation,!0)),p(()=>{f(this,"afterScroll",{currentPage:q})},e.duration))}setItemEvents(e,t,i){const l=this,u=e.legendItem||{},L=l.chart.renderer.boxWrapper,r=e instanceof J,S="highcharts-legend-"+(r?"point":"series")+"-active",F=l.chart.styledMode;i=i?[t,u.symbol]:[u.group];const q=rt=>{l.allItems.forEach(B=>{e!==B&&[B].concat(B.linkedSeries||[]).forEach(s=>{s.setState(rt,!r)})})};for(const rt of i)rt&&rt.on("mouseover",function(){e.visible&&q("inactive"),e.setState("hover"),e.visible&&L.addClass(S),F||t.css(l.options.itemHoverStyle)}).on("mouseout",function(){l.chart.styledMode||t.css(k(e.visible?l.itemStyle:l.itemHiddenStyle)),q(""),L.removeClass(S),e.setState()}).on("click",function(B){const s=function(){e.setVisible&&e.setVisible(),q(e.visible?"inactive":"")};L.removeClass(S),B={browserEvent:B},e.firePointEvent?e.firePointEvent("legendItemClick",B,s):f(e,"legendItemClick",B,s)})}createCheckboxForItem(e){e.checkbox=_("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),b(e.checkbox,"click",function(t){f(e.series||e,"checkboxClick",{checked:t.target.checked,item:e},function(){e.select()})})}}return function(c){const e=[];c.compose=function(t){Y.pushUnique(e,t)&&b(t,"beforeMargins",function(){this.legend=new c(this,this.options.legend)})}}(h||(h={})),h}),nt(A,"Core/Legend/LegendSymbol.js",[A["Core/Utilities.js"]],function(j){const{extend:P,merge:W,pick:J}=j;var K;return function(Y){Y.lineMarker=function(U,O){O=this.legendItem=this.legendItem||{};var N=this.options;const R=U.symbolWidth,x=U.symbolHeight,b=x/2,_=this.chart.renderer,I=O.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);let d={},y=N.marker,v=0;this.chart.styledMode||(d={"stroke-width":Math.min(N.lineWidth||0,24)},N.dashStyle?d.dashstyle=N.dashStyle:N.linecap!=="square"&&(d["stroke-linecap"]="round")),O.line=_.path().addClass("highcharts-graph").attr(d).add(I),d["stroke-linecap"]&&(v=Math.min(O.line.strokeWidth(),R)/2),R&&O.line.attr({d:[["M",v,U],["L",R-v,U]]}),y&&y.enabled!==!1&&R&&(N=Math.min(J(y.radius,b),b),this.symbol.indexOf("url")===0&&(y=W(y,{width:x,height:x}),N=0),O.symbol=O=_.symbol(this.symbol,R/2-N,U-N,2*N,2*N,P({context:"legend"},y)).addClass("highcharts-point").add(I),O.isMarker=!0)},Y.rectangle=function(U,O){O=O.legendItem||{};const N=U.symbolHeight,R=U.options.squareSymbol;O.symbol=this.chart.renderer.rect(R?(U.symbolWidth-N)/2:0,U.baseline-N+1,R?N:U.symbolWidth,N,J(U.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(O.group)}}(K||(K={})),K}),nt(A,"Core/Series/SeriesDefaults.js",[],function(){return{lineWidth:1,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(){const{numberFormatter:j}=this.series.chart;return typeof this.y!="number"?"":j(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"}}),nt(A,"Core/Series/SeriesRegistry.js",[A["Core/Globals.js"],A["Core/Defaults.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(j,P,W,J){const{defaultOptions:K}=P,{extendClass:Y,merge:U}=J;var O;return function(N){function R(x,b){const _=K.plotOptions||{},I=b.defaultOptions,d=b.prototype;d.type=x,d.pointClass||(d.pointClass=W),I&&(_[x]=I),N.seriesTypes[x]=b}N.seriesTypes=j.seriesTypes,N.registerSeriesType=R,N.seriesType=function(x,b,_,I,d){const y=K.plotOptions||{};return b=b||"",y[x]=U(y[b],_),R(x,Y(N.seriesTypes[b]||function(){},I)),N.seriesTypes[x].prototype.type=x,d&&(N.seriesTypes[x].prototype.pointClass=Y(W,d)),N.seriesTypes[x]}}(O||(O={})),O}),nt(A,"Core/Series/Series.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Defaults.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Legend/LegendSymbol.js"],A["Core/Series/Point.js"],A["Core/Series/SeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y,U,O,N,R){const{animObject:x,setAnimation:b}=j,{defaultOptions:_}=P,{registerEventOptions:I}=W,{hasTouch:d,svg:y,win:v}=J,{seriesTypes:f}=O,{arrayMax:T,arrayMin:k,clamp:w,correctFloat:n,defined:a,diffObjects:p,erase:h,error:c,extend:e,find:t,fireEvent:i,getClosestDistance:l,getNestedProperty:u,insertItem:L,isArray:r,isNumber:S,isString:F,merge:q,objectEach:rt,pick:B,removeEvent:s,splat:M,syncTimeout:z}=R;class D{constructor(){this.zones=this.yAxis=this.xAxis=this.userOptions=this.tooltipOptions=this.processedYData=this.processedXData=this.points=this.options=this.linkedSeries=this.index=this.eventsToUnbind=this.eventOptions=this.data=this.chart=this._i=void 0}init(o,g){i(this,"init",{options:g});const m=this,H=o.series;this.eventsToUnbind=[],m.chart=o,m.options=m.setOptions(g),g=m.options,m.linkedSeries=[],m.bindAxes(),e(m,{name:g.name,state:"",visible:g.visible!==!1,selected:g.selected===!0}),I(this,g);const G=g.events;(G&&G.click||g.point&&g.point.events&&g.point.events.click||g.allowPointSelect)&&(o.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(tt){m[tt+"Data"]||(m[tt+"Data"]=[])}),m.isCartesian&&(o.hasCartesianSeries=!0);let $;H.length&&($=H[H.length-1]),m._i=B($&&$._i,-1)+1,m.opacity=m.options.opacity,o.orderItems("series",L(this,H)),g.dataSorting&&g.dataSorting.enabled?m.setDataSortingOptions():m.points||m.data||m.setData(g.data,!1),i(this,"afterInit")}is(o){return f[o]&&this instanceof f[o]}bindAxes(){const o=this,g=o.options,m=o.chart;let H;i(this,"bindAxes",null,function(){(o.axisTypes||[]).forEach(function(G){m[G].forEach(function($){H=$.options,(B(g[G],0)===$.index||typeof g[G]<"u"&&g[G]===H.id)&&(L(o,$.series),o[G]=$,$.isDirty=!0)}),o[G]||o.optionalAxis===G||c(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(o,g,m){const H=o.series,G=S(g)?function($){const tt=$==="y"&&H.toYData?H.toYData(o):o[$];H[$+"Data"][g]=tt}:function($){Array.prototype[g].apply(H[$+"Data"],m)};H.parallelArrays.forEach(G)}hasData(){return this.visible&&typeof this.dataMax<"u"&&typeof this.dataMin<"u"||this.visible&&this.yData&&0<this.yData.length}autoIncrement(o){var g=this.options;const m=g.pointIntervalUnit,H=g.relativeXValue,G=this.chart.time;let $=this.xIncrement,tt;return $=B($,g.pointStart,0),this.pointInterval=tt=B(this.pointInterval,g.pointInterval,1),H&&S(o)&&(tt*=o),m&&(g=new G.Date($),m==="day"?G.set("Date",g,G.get("Date",g)+tt):m==="month"?G.set("Month",g,G.get("Month",g)+tt):m==="year"&&G.set("FullYear",g,G.get("FullYear",g)+tt),tt=g.getTime()-$),H&&S(o)?$+tt:(this.xIncrement=$+tt,$)}setDataSortingOptions(){const o=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),a(o.pointRange)||(o.pointRange=1)}setOptions(o){var g,m;const H=this.chart;var G=H.options.plotOptions,$=H.userOptions||{};const tt=q(o);o=H.styledMode;const it={plotOptions:G,userOptions:tt};i(this,"setOptions",it);const at=it.plotOptions[this.type];$=$.plotOptions||{};const ht=$.series||{},pt=_.plotOptions[this.type]||{},E=$[this.type]||{};return this.userOptions=it.userOptions,G=q(at,G.series,E,tt),this.tooltipOptions=q(_.tooltip,(g=_.plotOptions.series)===null||g===void 0?void 0:g.tooltip,pt==null?void 0:pt.tooltip,H.userOptions.tooltip,(m=$.series)===null||m===void 0?void 0:m.tooltip,E.tooltip,tt.tooltip),this.stickyTracking=B(tt.stickyTracking,E.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:G.stickyTracking),at.marker===null&&delete G.marker,this.zoneAxis=G.zoneAxis,m=this.zones=(G.zones||[]).slice(),!G.negativeColor&&!G.negativeFillColor||G.zones||(g={value:G[this.zoneAxis+"Threshold"]||G.threshold||0,className:"highcharts-negative"},o||(g.color=G.negativeColor,g.fillColor=G.negativeFillColor),m.push(g)),m.length&&a(m[m.length-1].value)&&m.push(o?{}:{color:this.color,fillColor:this.fillColor}),i(this,"afterSetOptions",{options:G}),G}getName(){return B(this.options.name,"Series "+(this.index+1))}getCyclic(o,g,m){const H=this.chart,G=`${o}Index`,$=`${o}Counter`,tt=(m==null?void 0:m.length)||H.options.chart.colorCount;if(!g){var it=B(o==="color"?this.options.colorIndex:void 0,this[G]);a(it)||(H.series.length||(H[$]=0),it=H[$]%tt,H[$]+=1),m&&(g=m[it])}typeof it<"u"&&(this[G]=it),this[o]=g}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||_.plotOptions[this.type].color,this.chart.options.colors)}getPointsCollection(){return(this.hasGroupedData?this.points:this.data)||[]}getSymbol(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)}findPointIndex(o,g){const m=o.id,H=o.x,G=this.points;var $=this.options.dataSorting,tt;let it,at;if(m)$=this.chart.get(m),$ instanceof Y&&(tt=$);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(tt=ht=>!ht.touched&&ht.index===o.index,$&&$.matchByName?tt=ht=>!ht.touched&&ht.name===o.name:this.options.relativeXValue&&(tt=ht=>!ht.touched&&ht.options.x===o.x),tt=t(G,tt),!tt))return;return tt&&(at=tt&&tt.index,typeof at<"u"&&(it=!0)),typeof at>"u"&&S(H)&&(at=this.xData.indexOf(H,g)),at!==-1&&typeof at<"u"&&this.cropped&&(at=at>=this.cropStart?at-this.cropStart:at),!it&&S(at)&&G[at]&&G[at].touched&&(at=void 0),at}updateData(o,g){const m=this.options,H=m.dataSorting,G=this.points,$=[],tt=this.requireSorting,it=o.length===G.length;let at,ht,pt,E=!0;if(this.xIncrement=null,o.forEach(function(C,Z){var X=a(C)&&this.pointClass.prototype.optionsToObject.call({series:this},C)||{};const Q=X.x;X.id||S(Q)?(X=this.findPointIndex(X,pt),X===-1||typeof X>"u"?$.push(C):G[X]&&C!==m.data[X]?(G[X].update(C,!1,null,!1),G[X].touched=!0,tt&&(pt=X+1)):G[X]&&(G[X].touched=!0),(!it||Z!==X||H&&H.enabled||this.hasDerivedData)&&(at=!0)):$.push(C)},this),at)for(o=G.length;o--;)(ht=G[o])&&!ht.touched&&ht.remove&&ht.remove(!1,g);else!it||H&&H.enabled?E=!1:(o.forEach(function(C,Z){C===G[Z].y||G[Z].destroyed||G[Z].update(C,!1,null,!1)}),$.length=0);return G.forEach(function(C){C&&(C.touched=!1)}),E?($.forEach(function(C){this.addPoint(C,!1,null,null,!1)},this),this.xIncrement===null&&this.xData&&this.xData.length&&(this.xIncrement=T(this.xData),this.autoIncrement()),!0):!1}setData(o,g=!0,m,H){var G;const $=this,tt=$.points,it=tt&&tt.length||0,at=$.options,ht=$.chart,pt=at.dataSorting,E=$.xAxis,C=at.turboThreshold,Z=this.xData,X=this.yData;var Q=$.pointArrayMap;Q=Q&&Q.length;const dt=at.keys;let ct,xt=0,yt=1,gt=null;if(!ht.options.chart.allowMutatingData){at.data&&delete $.options.data,$.userOptions.data&&delete $.userOptions.data;var mt=q(!0,o)}if(o=mt||o||[],mt=o.length,pt&&pt.enabled&&(o=this.sortData(o)),ht.options.chart.allowMutatingData&&H!==!1&&mt&&it&&!$.cropped&&!$.hasGroupedData&&$.visible&&!$.boosted&&(ct=this.updateData(o,m)),!ct){if($.xIncrement=null,$.colorCounter=0,this.parallelArrays.forEach(function(Ct){$[Ct+"Data"].length=0}),C&&mt>C)if(gt=$.getFirstValidPoint(o),S(gt))for(m=0;m<mt;m++)Z[m]=this.autoIncrement(),X[m]=o[m];else if(r(gt))if(Q)if(gt.length===Q)for(m=0;m<mt;m++)Z[m]=this.autoIncrement(),X[m]=o[m];else for(m=0;m<mt;m++)H=o[m],Z[m]=H[0],X[m]=H.slice(1,Q+1);else if(dt&&(xt=dt.indexOf("x"),yt=dt.indexOf("y"),xt=0<=xt?xt:0,yt=0<=yt?yt:1),gt.length===1&&(yt=0),xt===yt)for(m=0;m<mt;m++)Z[m]=this.autoIncrement(),X[m]=o[m][yt];else for(m=0;m<mt;m++)H=o[m],Z[m]=H[xt],X[m]=H[yt];else c(12,!1,ht);else for(m=0;m<mt;m++)H={series:$},$.pointClass.prototype.applyOptions.apply(H,[o[m]]),$.updateParallelArrays(H,m);for(X&&F(X[0])&&c(14,!0,ht),$.data=[],$.options.data=$.userOptions.data=o,m=it;m--;)(G=tt[m])===null||G===void 0||G.destroy();E&&(E.minRange=E.userMinRange),$.isDirty=ht.isDirtyBox=!0,$.isDirtyData=!!tt,m=!1}at.legendType==="point"&&(this.processData(),this.generatePoints()),g&&ht.redraw(m)}sortData(o){const g=this,m=g.options.dataSorting.sortKey||"y",H=function(G,$){return a($)&&G.pointClass.prototype.optionsToObject.call({series:G},$)||{}};return o.forEach(function(G,$){o[$]=H(g,G),o[$].index=$},this),o.concat().sort((G,$)=>(G=u(m,G),$=u(m,$),$<G?-1:$>G?1:0)).forEach(function(G,$){G.x=$},this),g.linkedSeries&&g.linkedSeries.forEach(function(G){const $=G.options,tt=$.data;$.dataSorting&&$.dataSorting.enabled||!tt||(tt.forEach(function(it,at){tt[at]=H(G,it),o[at]&&(tt[at].x=o[at].x,tt[at].index=at)}),G.setData(tt,!1))}),o}getProcessedData(o){const g=this;var m=g.xAxis,H=g.options;const G=H.cropThreshold,$=o||g.getExtremesFromAll||H.getExtremesFromAll,tt=m==null?void 0:m.logarithmic,it=g.isCartesian;let at=0,ht;o=g.xData,H=g.yData;let pt=!1;const E=o.length;if(m){var C=m.getExtremes();ht=C.min,C=C.max,pt=!(!m.categories||m.names.length)}if(it&&g.sorted&&!$&&(!G||E>G||g.forceCrop)){if(o[E-1]<ht||o[0]>C)o=[],H=[];else if(g.yData&&(o[0]<ht||o[E-1]>C)){var Z=this.cropData(g.xData,g.yData,ht,C);o=Z.xData,H=Z.yData,at=Z.start,Z=!0}}return m=l([tt?o.map(tt.log2lin):o],()=>g.requireSorting&&!pt&&c(15,!1,g.chart)),{xData:o,yData:H,cropped:Z,cropStart:at,closestPointRange:m}}processData(o){const g=this.xAxis;if(this.isCartesian&&!this.isDirty&&!g.isDirty&&!this.yAxis.isDirty&&!o)return!1;o=this.getProcessedData(),this.cropped=o.cropped,this.cropStart=o.cropStart,this.processedXData=o.xData,this.processedYData=o.yData,this.closestPointRange=this.basePointRange=o.closestPointRange,i(this,"afterProcessData")}cropData(o,g,m,H,G){const $=o.length;let tt,it=0,at=$;for(G=B(G,this.cropShoulder),tt=0;tt<$;tt++)if(o[tt]>=m){it=Math.max(0,tt-G);break}for(m=tt;m<$;m++)if(o[m]>H){at=m+G;break}return{xData:o.slice(it,at),yData:g.slice(it,at),start:it,end:at}}generatePoints(){var o=this.options;const g=this.processedData||o.data,m=this.processedXData,H=this.processedYData,G=this.pointClass,$=m.length,tt=this.cropStart||0,it=this.hasGroupedData,at=o.keys,ht=[];o=o.dataGrouping&&o.dataGrouping.groupAll?tt:0;let pt,E,C,Z=this.data;if(!Z&&!it){var X=[];X.length=g.length,Z=this.data=X}for(at&&it&&(this.options.keys=!1),C=0;C<$;C++)X=tt+C,it?(E=new G().init(this,[m[C]].concat(M(H[C]))),E.dataGroup=this.groupMap[o+C],E.dataGroup.options&&(E.options=E.dataGroup.options,e(E,E.dataGroup.options),delete E.dataLabels)):(E=Z[X])||typeof g[X]>"u"||(Z[X]=E=new G().init(this,g[X],m[C])),E&&(E.index=it?o+C:X,ht[C]=E);if(this.options.keys=at,Z&&($!==(pt=Z.length)||it))for(C=0;C<pt;C++)C!==tt||it||(C+=$),Z[C]&&(Z[C].destroyElements(),Z[C].plotX=void 0);this.data=Z,this.points=ht,i(this,"afterGeneratePoints")}getXExtremes(o){return{min:k(o),max:T(o)}}getExtremes(o,g){const m=this.xAxis;var H=this.yAxis;const G=this.processedXData||this.xData,$=[],tt=this.requireSorting?this.cropShoulder:0;H=H?H.positiveValuesOnly:!1;let it,at=0,ht=0,pt=0;o=o||this.stackedYData||this.processedYData||[];const E=o.length;if(m){var C=m.getExtremes();at=C.min,ht=C.max}for(it=0;it<E;it++){var Z=G[it];C=o[it];var X=(S(C)||r(C))&&(C.length||0<C||!H);if(Z=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(G[it+tt]||Z)>=at&&(G[it-tt]||Z)<=ht,X&&Z)if(X=C.length)for(;X--;)S(C[X])&&($[pt++]=C[X]);else $[pt++]=C}return o={activeYData:$,dataMin:k($),dataMax:T($)},i(this,"afterGetExtremes",{dataExtremes:o}),o}applyExtremes(){const o=this.getExtremes();return this.dataMin=o.dataMin,this.dataMax=o.dataMax,o}getFirstValidPoint(o){const g=o.length;let m=0,H=null;for(;H===null&&m<g;)H=o[m],m++;return H}translate(){var o;this.processedXData||this.processData(),this.generatePoints();var g=this.options;const m=g.stacking,H=this.xAxis,G=H.categories,$=this.enabledDataSorting,tt=this.yAxis,it=this.points,at=it.length,ht=this.pointPlacementToXValue(),pt=!!ht,E=g.threshold;g=g.startFromThreshold?E:0;let C,Z,X,Q,dt=Number.MAX_VALUE;for(C=0;C<at;C++){const ct=it[C],xt=ct.x;let yt,gt,mt=ct.y,Ct=ct.low;const kt=m&&((o=tt.stacking)===null||o===void 0?void 0:o.stacks[(this.negStacks&&mt<(g?0:E)?"-":"")+this.stackKey]);Z=H.translate(xt,!1,!1,!1,!0,ht),ct.plotX=S(Z)?n(w(Z,-1e5,1e5)):void 0,m&&this.visible&&kt&&kt[xt]&&(Q=this.getStackIndicator(Q,xt,this.index),!ct.isNull&&Q.key&&(yt=kt[xt],gt=yt.points[Q.key]),yt&&r(gt)&&(Ct=gt[0],mt=gt[1],Ct===g&&Q.key===kt[xt].base&&(Ct=B(S(E)?E:tt.min)),tt.positiveValuesOnly&&a(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=B(yt.total),ct.percentage=a(ct.y)&&yt.total?ct.y/yt.total*100:void 0,ct.stackY=mt,this.irregularWidths||yt.setOffset(this.pointXOffset||0,this.barW||0,void 0,void 0,void 0,this.xAxis))),ct.yBottom=a(Ct)?w(tt.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,C));let bt;S(mt)&&ct.plotX!==void 0&&(bt=tt.translate(mt,!1,!0,!1,!0),bt=S(bt)?w(bt,-1e5,1e5):void 0),ct.plotY=bt,ct.isInside=this.isPointInside(ct),ct.clientX=pt?n(H.translate(xt,!1,!1,!1,!0,ht)):Z,ct.negative=(ct.y||0)<(E||0),ct.category=B(G&&G[ct.x],ct.x),ct.isNull||ct.visible===!1||(typeof X<"u"&&(dt=Math.min(dt,Math.abs(Z-X))),X=Z),ct.zone=this.zones.length?ct.getZone():void 0,!ct.graphic&&this.group&&$&&(ct.isNew=!0)}this.closestPointRangePx=dt,i(this,"afterTranslate")}getValidPoints(o,g,m){const H=this.chart;return(o||this.points||[]).filter(function(G){const{plotX:$,plotY:tt}=G;return!m&&(G.isNull||!S(tt))||g&&!H.isInsidePlot($,tt,{inverted:H.inverted})?!1:G.visible!==!1})}getClipBox(){const{chart:o,xAxis:g,yAxis:m}=this,H=q(o.clipBox);return g&&g.len!==o.plotSizeX&&(H.width=g.len),m&&m.len!==o.plotSizeY&&(H.height=m.len),H}getSharedClipKey(){return this.sharedClipKey=(this.options.xAxis||0)+","+(this.options.yAxis||0)}setClip(){const{chart:o,group:g,markerGroup:m}=this,H=o.sharedClips,G=o.renderer,$=this.getClipBox(),tt=this.getSharedClipKey();let it=H[tt];it?it.animate($):H[tt]=it=G.clipRect($),g&&g.clip(this.options.clip===!1?void 0:it),m&&m.clip()}animate(o){const{chart:g,group:m,markerGroup:H}=this,G=g.inverted;var $=x(this.options.animation),tt=[this.getSharedClipKey(),$.duration,$.easing,$.defer].join();let it=g.sharedClips[tt],at=g.sharedClips[tt+"m"];if(o&&m)$=this.getClipBox(),it?it.attr("height",$.height):($.width=0,G&&($.x=g.plotHeight),it=g.renderer.clipRect($),g.sharedClips[tt]=it,at=g.renderer.clipRect({x:-99,y:-99,width:G?g.plotWidth+199:99,height:G?99:g.plotHeight+199}),g.sharedClips[tt+"m"]=at),m.clip(it),H&&H.clip(at);else if(it&&!it.hasClass("highcharts-animating")){tt=this.getClipBox();const ht=$.step;H&&H.element.childNodes.length&&($.step=function(pt,E){ht&&ht.apply(E,arguments),E.prop==="width"&&at&&at.element&&at.attr(G?"height":"width",pt+99)}),it.addClass("highcharts-animating").animate(tt,$)}}afterAnimate(){this.setClip(),rt(this.chart.sharedClips,(o,g,m)=>{o&&!this.chart.container.querySelector(`[clip-path="url(#${o.id})"]`)&&(o.destroy(),delete m[g])}),this.finishedAnimating=!0,i(this,"afterAnimate")}drawPoints(o=this.points){const g=this.chart,m=g.styledMode,{colorAxis:H,options:G}=this,$=G.marker,tt=this[this.specialGroup||"markerGroup"],it=this.xAxis,at=B($.enabled,!it||it.isRadial?!0:null,this.closestPointRangePx>=$.enabledThreshold*$.radius);let ht,pt,E,C,Z,X;if($.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<o.length;ht++){pt=o[ht],C=(E=pt.graphic)?"animate":"attr";var Q=pt.marker||{};if(Z=!!pt.marker,(at&&typeof Q.enabled>"u"||Q.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=B(Q.symbol,this.symbol,"rect");X=this.markerAttribs(pt,pt.selected&&"select"),this.enabledDataSorting&&(pt.startXPos=it.reversed?-(X.width||0):it.width);const ct=pt.isInside!==!1;!E&&ct&&(0<(X.width||0)||pt.hasImage)&&(pt.graphic=E=g.renderer.symbol(dt,X.x,X.y,X.width,X.height,Z?Q:$).add(tt),this.enabledDataSorting&&g.hasRendered&&(E.attr({x:pt.startXPos}),C="animate")),E&&C==="animate"&&E[ct?"show":"hide"](ct).animate(X),E&&(Q=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?H&&E.css({fill:Q.fill}):E[C](Q)),E&&E.addClass(pt.getClassName(),!0)}else E&&(pt.graphic=E.destroy())}}markerAttribs(o,g){const m=this.options;var H=m.marker;const G=o.marker||{},$=G.symbol||H.symbol,tt={};let it=B(G.radius,H&&H.radius);return g&&(H=H.states[g],g=G.states&&G.states[g],it=B(g&&g.radius,H&&H.radius,it&&it+(H&&H.radiusPlus||0))),o.hasImage=$&&$.indexOf("url")===0,o.hasImage&&(it=0),o=o.pos(),S(it)&&o&&(tt.x=o[0]-it,tt.y=o[1]-it,m.crisp&&(tt.x=Math.floor(tt.x))),it&&(tt.width=tt.height=2*it),tt}pointAttribs(o,g){var m=this.options.marker,H=o&&o.options;const G=H&&H.marker||{};var $=H&&H.color,tt=o&&o.color;const it=o&&o.zone&&o.zone.color;let at=this.color;return o=B(G.lineWidth,m.lineWidth),H=1,at=$||it||tt||at,$=G.fillColor||m.fillColor||at,tt=G.lineColor||m.lineColor||at,g=g||"normal",m=m.states[g]||{},g=G.states&&G.states[g]||{},o=B(g.lineWidth,m.lineWidth,o+B(g.lineWidthPlus,m.lineWidthPlus,0)),$=g.fillColor||m.fillColor||$,tt=g.lineColor||m.lineColor||tt,H=B(g.opacity,m.opacity,H),{stroke:tt,"stroke-width":o,fill:$,opacity:H}}destroy(o){const g=this,m=g.chart,H=/AppleWebKit\/533/.test(v.navigator.userAgent),G=g.data||[];let $,tt,it,at;for(i(g,"destroy",{keepEventsForUpdate:o}),this.removeEvents(o),(g.axisTypes||[]).forEach(function(ht){(at=g[ht])&&at.series&&(h(at.series,g),at.isDirty=at.forceRedraw=!0)}),g.legendItem&&g.chart.legend.destroyItem(g),tt=G.length;tt--;)(it=G[tt])&&it.destroy&&it.destroy();g.clips&&g.clips.forEach(ht=>ht.destroy()),R.clearTimeout(g.animationTimeout),rt(g,function(ht,pt){ht instanceof N&&!ht.survive&&($=H&&pt==="group"?"hide":"destroy",ht[$]())}),m.hoverSeries===g&&(m.hoverSeries=void 0),h(m.series,g),m.orderItems("series"),rt(g,function(ht,pt){o&&pt==="hcEvents"||delete g[pt]})}applyZones(){const o=this,g=this.chart,m=g.renderer,H=this.zones,G=this.clips||[],$=this.graph,tt=this.area,it=Math.max(g.plotWidth,g.plotHeight),at=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let pt,E,C,Z,X,Q,dt,ct,xt,yt,gt,mt=!1;H.length&&($||tt)&&at&&typeof at.min<"u"?(X=at.reversed,Q=at.horiz,$&&!this.showLine&&$.hide(),tt&&tt.hide(),Z=at.getExtremes(),H.forEach(function(Ct,kt){pt=X?Q?g.plotWidth:0:Q?0:at.toPixels(Z.min)||0,pt=w(B(E,pt),0,it),E=w(Math.round(at.toPixels(B(Ct.value,Z.max),!0)||0),0,it),mt&&(pt=E=at.toPixels(Z.max)),dt=Math.abs(pt-E),ct=Math.min(pt,E),xt=Math.max(pt,E),at.isXAxis?(C={x:ht?xt:ct,y:0,width:dt,height:it},Q||(C.x=g.plotHeight-C.x)):(C={x:0,y:ht?xt:ct,width:it,height:dt},Q&&(C.y=g.plotWidth-C.y)),G[kt]?G[kt].animate(C):G[kt]=m.clipRect(C),yt=o["zone-area-"+kt],gt=o["zone-graph-"+kt],$&&gt&&gt.clip(G[kt]),tt&&yt&&yt.clip(G[kt]),mt=Ct.value>Z.max,o.resetZones&&E===0&&(E=void 0)}),this.clips=G):o.visible&&($&&$.show(),tt&&tt.show())}plotGroup(o,g,m,H,G){let $=this[o];const tt=!$;return m={visibility:m,zIndex:H||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),tt&&(this[o]=$=this.chart.renderer.g().add(G)),$.addClass("highcharts-"+g+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+($.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),$.attr(m)[tt?"attr":"animate"](this.getPlotBox(g)),$}getPlotBox(o){let g=this.xAxis,m=this.yAxis;const H=this.chart;return o=H.inverted&&!H.polar&&g&&this.invertible!==!1&&o==="series",H.inverted&&(g=m,m=this.xAxis),{translateX:g?g.left:H.plotLeft,translateY:m?m.top:H.plotTop,rotation:o?90:0,rotationOriginX:o?(g.len-m.len)/2:0,rotationOriginY:o?(g.len+m.len)/2:0,scaleX:o?-1:1,scaleY:1}}removeEvents(o){o||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(g){g()}),this.eventsToUnbind.length=0)}render(){const o=this;var g=o.chart;const m=o.options,H=x(m.animation),G=o.visible?"inherit":"hidden",$=m.zIndex,tt=o.hasRendered;g=g.seriesGroup;let it=o.finishedAnimating?0:H.duration;i(this,"render"),o.plotGroup("group","series",G,$,g),o.markerGroup=o.plotGroup("markerGroup","markers",G,$,g),m.clip!==!1&&o.setClip(),o.animate&&it&&o.animate(!0),o.drawGraph&&(o.drawGraph(),o.applyZones()),o.visible&&o.drawPoints(),o.drawDataLabels&&o.drawDataLabels(),o.redrawPoints&&o.redrawPoints(),o.drawTracker&&m.enableMouseTracking&&o.drawTracker(),o.animate&&it&&o.animate(),tt||(it&&H.defer&&(it+=H.defer),o.animationTimeout=z(function(){o.afterAnimate()},it||0)),o.isDirty=!1,o.hasRendered=!0,i(o,"afterRender")}redraw(){const o=this.isDirty||this.isDirtyData;this.translate(),this.render(),o&&delete this.kdTree}searchPoint(o,g){const m=this.xAxis,H=this.yAxis,G=this.chart.inverted;return this.searchKDTree({clientX:G?m.len-o.chartY+m.pos:o.chartX-m.pos,plotY:G?H.len-o.chartX+H.pos:o.chartY-H.pos},g,o)}buildKDTree(o){function g(G,$,tt){var it=G&&G.length;let at;if(it)return at=m.kdAxisArray[$%tt],G.sort(function(ht,pt){return ht[at]-pt[at]}),it=Math.floor(it/2),{point:G[it],left:g(G.slice(0,it),$+1,tt),right:g(G.slice(it+1),$+1,tt)}}this.buildingKdTree=!0;const m=this,H=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=g(m.getValidPoints(null,!m.directTouch),H,H),m.buildingKdTree=!1},m.options.kdNow||o&&o.type==="touchstart"?0:1)}searchKDTree(o,g,m){function H(at,ht,pt,E){const C=ht.point;var Z=G.kdAxisArray[pt%E];let X=C;var Q=a(at[$])&&a(C[$])?Math.pow(at[$]-C[$],2):null,dt=a(at[tt])&&a(C[tt])?Math.pow(at[tt]-C[tt],2):null;return dt=(Q||0)+(dt||0),C.dist=a(dt)?Math.sqrt(dt):Number.MAX_VALUE,C.distX=a(Q)?Math.sqrt(Q):Number.MAX_VALUE,Z=at[Z]-C[Z],dt=0>Z?"left":"right",Q=0>Z?"right":"left",ht[dt]&&(dt=H(at,ht[dt],pt+1,E),X=dt[it]<X[it]?dt:C),ht[Q]&&Math.sqrt(Z*Z)<X[it]&&(at=H(at,ht[Q],pt+1,E),X=at[it]<X[it]?at:X),X}const G=this,$=this.kdAxisArray[0],tt=this.kdAxisArray[1],it=g?"distX":"dist";if(g=-1<G.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(m),this.kdTree)return H(o,this.kdTree,g,g)}pointPlacementToXValue(){const{options:{pointPlacement:o,pointRange:g},xAxis:m}=this;let H=o;return H==="between"&&(H=m.reversed?-.5:.5),S(H)?H*(g||m.pointRange):0}isPointInside(o){const{chart:g,xAxis:m,yAxis:H}=this;return typeof o.plotY<"u"&&typeof o.plotX<"u"&&0<=o.plotY&&o.plotY<=(H?H.len:g.plotHeight)&&0<=o.plotX&&o.plotX<=(m?m.len:g.plotWidth)}drawTracker(){const o=this,g=o.options,m=g.trackByArea,H=[].concat(m?o.areaPath:o.graphPath),G=o.chart,$=G.pointer,tt=G.renderer,it=G.options.tooltip.snap,at=o.tracker,ht=function(E){g.enableMouseTracking&&G.hoverSeries!==o&&o.onMouseOver()},pt="rgba(192,192,192,"+(y?1e-4:.002)+")";at?at.attr({d:H}):o.graph&&(o.tracker=tt.path(H).attr({visibility:o.visible?"inherit":"hidden",zIndex:2}).addClass(m?"highcharts-tracker-area":"highcharts-tracker-line").add(o.group),G.styledMode||o.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:pt,fill:m?pt:"none","stroke-width":o.graph.strokeWidth()+(m?0:2*it)}),[o.tracker,o.markerGroup,o.dataLabelsGroup].forEach(function(E){E&&(E.addClass("highcharts-tracker").on("mouseover",ht).on("mouseout",function(C){$.onTrackerMouseOut(C)}),g.cursor&&!G.styledMode&&E.css({cursor:g.cursor}),d)&&E.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(o,g,m,H,G){const $=this.options,tt=this.data,it=this.chart;var at=this.xAxis;at=at&&at.hasNames&&at.names;const ht=$.data,pt=this.xData;let E,C;g=B(g,!0);const Z={series:this};this.pointClass.prototype.applyOptions.apply(Z,[o]);const X=Z.x;if(C=pt.length,this.requireSorting&&X<pt[C-1])for(E=!0;C&&pt[C-1]>X;)C--;this.updateParallelArrays(Z,"splice",[C,0,0]),this.updateParallelArrays(Z,C),at&&Z.name&&(at[X]=Z.name),ht.splice(C,0,o),(E||this.processedData)&&(this.data.splice(C,0,null),this.processData()),$.legendType==="point"&&this.generatePoints(),m&&(tt[0]&&tt[0].remove?tt[0].remove(!1):(tt.shift(),this.updateParallelArrays(Z,"shift"),ht.shift())),G!==!1&&i(this,"addPoint",{point:Z}),this.isDirtyData=this.isDirty=!0,g&&it.redraw(H)}removePoint(o,g,m){const H=this,G=H.data,$=G[o],tt=H.points,it=H.chart,at=function(){tt&&tt.length===G.length&&tt.splice(o,1),G.splice(o,1),H.options.data.splice(o,1),H.updateParallelArrays($||{series:H},"splice",[o,1]),$&&$.destroy(),H.isDirty=!0,H.isDirtyData=!0,g&&it.redraw()};b(m,it),g=B(g,!0),$?$.firePointEvent("remove",null,at):at()}remove(o,g,m,H){function G(){$.destroy(H),tt.isDirtyLegend=tt.isDirtyBox=!0,tt.linkSeries(H),B(o,!0)&&tt.redraw(g)}const $=this,tt=$.chart;m!==!1?i($,"remove",null,G):G()}update(o,g){o=p(o,this.userOptions),i(this,"update",{options:o});const m=this,H=m.chart;var G=m.userOptions;const $=m.initialType||m.type;var tt=H.options.plotOptions;const it=f[$].prototype;var at=m.finishedAnimating&&{animation:!1};const ht={};let pt,E=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],C=o.type||G.type||H.options.chart.type;const Z=!(this.hasDerivedData||C&&C!==this.type||typeof o.pointStart<"u"||typeof o.pointInterval<"u"||typeof o.relativeXValue<"u"||o.joinBy||o.mapData||m.hasOptionChanged("dataGrouping")||m.hasOptionChanged("pointStart")||m.hasOptionChanged("pointInterval")||m.hasOptionChanged("pointIntervalUnit")||m.hasOptionChanged("keys"));if(C=C||$,Z&&(E.push("data","isDirtyData","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","clips","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),o.visible!==!1&&E.push("area","graph"),m.parallelArrays.forEach(function(X){E.push(X+"Data")}),o.data&&(o.dataSorting&&e(m.options.dataSorting,o.dataSorting),this.setData(o.data,!1))),o=q(G,at,{index:typeof G.index>"u"?m.index:G.index,pointStart:B(tt&&tt.series&&tt.series.pointStart,G.pointStart,m.xData[0])},!Z&&{data:m.options.data},o),Z&&o.data&&(o.data=m.options.data),E=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(E),E.forEach(function(X){E[X]=m[X],delete m[X]}),tt=!1,f[C]){if(tt=C!==m.type,m.remove(!1,!1,!1,!0),tt)if(Object.setPrototypeOf)Object.setPrototypeOf(m,f[C].prototype);else{at=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in it)m[pt]=void 0;e(m,f[C].prototype),at?m.hcEvents=at:delete m.hcEvents}}else c(17,!0,H,{missingModuleFor:C});if(E.forEach(function(X){m[X]=E[X]}),m.init(H,o),Z&&this.points){if(o=m.options,o.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!m._hasPointLabels){const{marker:X,dataLabels:Q}=o;G=G.marker||{},!X||X.enabled!==!1&&G.symbol===X.symbol&&G.height===X.height&&G.width===X.width||(ht.graphic=1),Q&&Q.enabled===!1&&(ht.dataLabel=1)}for(const X of this.points)X&&X.series&&(X.resolveColor(),Object.keys(ht).length&&X.destroyElements(ht),o.showInLegend===!1&&X.legendItem&&H.legend.destroyItem(X))}m.initialType=$,H.linkSeries(),tt&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),B(g,!0)&&H.redraw(Z?void 0:!1)}setName(o){this.name=this.options.name=this.userOptions.name=o,this.chart.isDirtyLegend=!0}hasOptionChanged(o){const g=this.options[o],m=this.chart.options.plotOptions,H=this.userOptions[o];return H?g!==H:g!==B(m&&m[this.type]&&m[this.type][o],m&&m.series&&m.series[o],g)}onMouseOver(){const o=this.chart,g=o.hoverSeries;o.pointer.setHoverChartIndex(),g&&g!==this&&g.onMouseOut(),this.options.events.mouseOver&&i(this,"mouseOver"),this.setState("hover"),o.hoverSeries=this}onMouseOut(){const o=this.options,g=this.chart,m=g.tooltip,H=g.hoverPoint;g.hoverSeries=null,H&&H.onMouseOut(),this&&o.events.mouseOut&&i(this,"mouseOut"),!m||this.stickyTracking||m.shared&&!this.noSharedTooltip||m.hide(),g.series.forEach(function(G){G.setState("",!0)})}setState(o,g){const m=this;var H=m.options;const G=m.graph,$=H.inactiveOtherPoints,tt=H.states,it=B(tt[o||"normal"]&&tt[o||"normal"].animation,m.chart.options.chart.animation);let at=H.lineWidth,ht=0,pt=H.opacity;if(o=o||"",m.state!==o&&([m.group,m.markerGroup,m.dataLabelsGroup].forEach(function(E){E&&(m.state&&E.removeClass("highcharts-series-"+m.state),o&&E.addClass("highcharts-series-"+o))}),m.state=o,!m.chart.styledMode)){if(tt[o]&&tt[o].enabled===!1)return;if(o&&(at=tt[o].lineWidth||at+(tt[o].lineWidthPlus||0),pt=B(tt[o].opacity,pt)),G&&!G.dashstyle&&S(at))for(H={"stroke-width":at},G.animate(H,it);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(H,it),ht+=1;$||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(E){E&&E.animate({opacity:pt},it)})}g&&$&&m.points&&m.setAllPointsToState(o||void 0)}setAllPointsToState(o){this.points.forEach(function(g){g.setState&&g.setState(o)})}setVisible(o,g){const m=this,H=m.chart,G=H.options.chart.ignoreHiddenSeries,$=m.visible,tt=(m.visible=o=m.options.visible=m.userOptions.visible=typeof o>"u"?!$:o)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(it){m[it]&&m[it][tt]()}),(H.hoverSeries===m||(H.hoverPoint&&H.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&H.legend.colorizeItem(m,o),m.isDirty=!0,m.options.stacking&&H.series.forEach(function(it){it.options.stacking&&it.visible&&(it.isDirty=!0)}),m.linkedSeries.forEach(function(it){it.setVisible(o,!1)}),G&&(H.isDirtyBox=!0),i(m,tt),g!==!1&&H.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(o){this.selected=o=this.options.selected=typeof o>"u"?!this.selected:o,this.checkbox&&(this.checkbox.checked=o),i(this,o?"select":"unselect")}shouldShowTooltip(o,g,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(o,g,m)}drawLegendSymbol(o,g){var m;(m=K[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,o,g)}}return D.defaultOptions=U,D.types=O.seriesTypes,D.registerType=O.registerSeriesType,e(D.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:Y,requireSorting:!0,sorted:!0}),O.series=D,D}),nt(A,"Core/Chart/Chart.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Defaults.js"],A["Core/Templating.js"],A["Core/Foundation.js"],A["Core/Globals.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Time.js"],A["Core/Utilities.js"],A["Core/Renderer/HTML/AST.js"]],function(j,P,W,J,K,Y,U,O,N,R,x,b,_){const{animate:I,animObject:d,setAnimation:y}=j,{defaultOptions:v,defaultTime:f}=W,{numberFormat:T}=J,{registerEventOptions:k}=K,{charts:w,doc:n,marginNames:a,svg:p,win:h}=Y,{seriesTypes:c}=N,{addEvent:e,attr:t,createElement:i,css:l,defined:u,diffObjects:L,discardElement:r,erase:S,error:F,extend:q,find:rt,fireEvent:B,getStyle:s,isArray:M,isNumber:z,isObject:D,isString:V,merge:o,objectEach:g,pick:m,pInt:H,relativeLength:G,removeEvent:$,splat:tt,syncTimeout:it,uniqueKey:at}=b;class ht{static chart(E,C,Z){return new ht(E,C,Z)}constructor(E,C,Z){this.series=this.renderTo=this.renderer=this.pointer=this.pointCount=this.plotWidth=this.plotTop=this.plotLeft=this.plotHeight=this.plotBox=this.options=this.numberFormatter=this.margin=this.labelCollectors=this.isResizing=this.index=this.eventOptions=this.container=this.colorCounter=this.clipBox=this.chartWidth=this.chartHeight=this.bounds=this.axisOffset=this.axes=void 0,this.sharedClips={},this.zooming=this.yAxis=this.xAxis=this.userOptions=this.titleOffset=this.time=this.symbolCounter=this.spacingBox=this.spacing=void 0,this.getArgs(E,C,Z)}getArgs(E,C,Z){V(E)||E.nodeName?(this.renderTo=E,this.init(C,Z)):this.init(E,C)}setZoomOptions(){const E=this.options.chart,C=E.zooming;this.zooming=Object.assign(Object.assign({},C),{type:m(E.zoomType,C.type),key:m(E.zoomKey,C.key),pinchType:m(E.pinchType,C.pinchType),singleTouch:m(E.zoomBySingleTouch,C.singleTouch,!1),resetButton:o(C.resetButton,E.resetZoomButton)})}init(E,C){B(this,"init",{args:arguments},function(){const Z=o(v,E),X=Z.chart;this.userOptions=q({},E),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=C,this.isResizing=0,this.options=Z,this.axes=[],this.series=[],this.time=E.time&&Object.keys(E.time).length?new x(E.time):Y.time,this.numberFormatter=X.numberFormatter||T,this.styledMode=X.styledMode,this.hasCartesianSeries=X.showAxes,this.index=w.length,w.push(this),Y.chartCount++,k(this,X),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),B(this,"afterInit"),this.firstRender()})}initSeries(E){var C=this.options.chart;C=E.type||C.type;const Z=c[C];return Z||F(17,!0,this,{missingModuleFor:C}),C=new Z,typeof C.init=="function"&&C.init(this,E),C}setSeriesData(){this.getSeriesOrderByLinks().forEach(function(E){E.points||E.data||!E.enabledDataSorting||E.setData(E.options.data,!1)})}getSeriesOrderByLinks(){return this.series.concat().sort(function(E,C){return E.linkedSeries.length||C.linkedSeries.length?C.linkedSeries.length-E.linkedSeries.length:0})}orderItems(E,C=0){const Z=this[E],X=this.options[E]=tt(this.options[E]).slice();if(E=this.userOptions[E]=this.userOptions[E]?tt(this.userOptions[E]).slice():[],this.hasRendered&&(X.splice(C),E.splice(C)),Z)for(let Q=C,dt=Z.length;Q<dt;++Q)(C=Z[Q])&&(C.index=Q,C instanceof O&&(C.name=C.getName()),C.options.isInternal||(X[Q]=C.options,E[Q]=C.userOptions))}isInsidePlot(E,C,Z={}){const{inverted:X,plotBox:Q,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var yt=0;let gt=0;Z.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:yt,scrollTop:gt}=this.scrollingContainer);const mt=Z.series,Ct=Z.visiblePlotOnly&&xt||Q;var kt=Z.inverted?C:E;if(C=Z.inverted?E:C,E={x:kt,y:C,isInsidePlot:!0,options:Z},!Z.ignoreX){const bt=mt&&(X&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};kt=Z.paneCoordinates?bt.pos+kt:dt+kt,kt>=Math.max(yt+dt,bt.pos)&&kt<=Math.min(yt+dt+Ct.width,bt.pos+bt.len)||(E.isInsidePlot=!1)}return!Z.ignoreY&&E.isInsidePlot&&(yt=!X&&Z.axis&&!Z.axis.isXAxis&&Z.axis||mt&&(X?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},Z=Z.paneCoordinates?yt.pos+C:ct+C,Z>=Math.max(gt+ct,yt.pos)&&Z<=Math.min(gt+ct+Ct.height,yt.pos+yt.len)||(E.isInsidePlot=!1)),B(this,"afterIsInsidePlot",E),E.isInsidePlot}redraw(E){B(this,"beforeRedraw");const C=this.hasCartesianSeries?this.axes:this.colorAxis||[],Z=this.series,X=this.pointer,Q=this.legend,dt=this.userOptions.legend,ct=this.renderer,xt=ct.isHidden(),yt=[];let gt,mt,Ct=this.isDirtyBox,kt=this.isDirtyLegend,bt;for(ct.rootFontSize=ct.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),y(this.hasRendered?E:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),E=Z.length;E--;)if(bt=Z[E],(bt.options.stacking||bt.options.centerInCategory)&&(mt=!0,bt.isDirty)){gt=!0;break}if(gt)for(E=Z.length;E--;)bt=Z[E],bt.options.stacking&&(bt.isDirty=!0);Z.forEach(function(Mt){Mt.isDirty&&(Mt.options.legendType==="point"?(typeof Mt.updateTotals=="function"&&Mt.updateTotals(),kt=!0):dt&&(dt.labelFormatter||dt.labelFormat)&&(kt=!0)),Mt.isDirtyData&&B(Mt,"updatedData")}),kt&&Q&&Q.options.enabled&&(Q.render(),this.isDirtyLegend=!1),mt&&this.getStacks(),C.forEach(function(Mt){Mt.updateNames(),Mt.setScale()}),this.getMargins(),C.forEach(function(Mt){Mt.isDirty&&(Ct=!0)}),C.forEach(function(Mt){const _t=Mt.min+","+Mt.max;Mt.extKey!==_t&&(Mt.extKey=_t,yt.push(function(){B(Mt,"afterSetExtremes",q(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||mt)&&Mt.redraw()}),Ct&&this.drawChartBox(),B(this,"predraw"),Z.forEach(function(Mt){(Ct||Mt.isDirty)&&Mt.visible&&Mt.redraw(),Mt.isDirtyData=!1}),X&&X.reset(!0),ct.draw(),B(this,"redraw"),B(this,"render"),xt&&this.temporaryDisplay(!0),yt.forEach(function(Mt){Mt.call()})}get(E){function C(Q){return Q.id===E||Q.options&&Q.options.id===E}const Z=this.series;let X=rt(this.axes,C)||rt(this.series,C);for(let Q=0;!X&&Q<Z.length;Q++)X=rt(Z[Q].points||[],C);return X}getAxes(){const E=this.options;B(this,"getAxes");for(const C of["xAxis","yAxis"]){const Z=E[C]=tt(E[C]||{});for(const X of Z)new P(this,X,C)}B(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((E,C)=>(C.getPointsCollection().forEach(Z=>{m(Z.selectedStaging,Z.selected)&&E.push(Z)}),E),[])}getSelectedSeries(){return this.series.filter(function(E){return E.selected})}setTitle(E,C,Z){this.applyDescription("title",E),this.applyDescription("subtitle",C),this.applyDescription("caption",void 0),this.layOutTitles(Z)}applyDescription(E,C){const Z=this,X=this.options[E]=o(this.options[E],C);let Q=this[E];Q&&C&&(this[E]=Q=Q.destroy()),X&&!Q&&(Q=this.renderer.text(X.text,0,0,X.useHTML).attr({align:X.align,class:"highcharts-"+E,zIndex:X.zIndex||4}).add(),Q.update=function(dt,ct){Z.applyDescription(E,dt),Z.layOutTitles(ct)},this.styledMode||Q.css(q(E==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},X.style)),this[E]=Q)}layOutTitles(E=!0){const C=[0,0,0],Z=this.renderer,X=this.spacingBox;["title","subtitle","caption"].forEach(function(dt){const ct=this[dt],xt=this.options[dt],yt=xt.verticalAlign||"top";if(dt=dt==="title"?yt==="top"?-3:0:yt==="top"?C[0]+2:0,ct){ct.css({width:(xt.width||X.width+(xt.widthAdjust||0))+"px"});const gt=Z.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(q({y:yt==="bottom"?gt:dt+gt,height:mt},xt),!1,"spacingBox"),xt.floating||(yt==="top"?C[0]=Math.ceil(C[0]+mt):yt==="bottom"&&(C[2]=Math.ceil(C[2]+mt)))}},this),C[0]&&(this.options.title.verticalAlign||"top")==="top"&&(C[0]+=this.options.title.margin),C[2]&&this.options.caption.verticalAlign==="bottom"&&(C[2]+=this.options.caption.margin);const Q=!this.titleOffset||this.titleOffset.join(",")!==C.join(",");this.titleOffset=C,B(this,"afterLayOutTitles"),!this.isDirtyBox&&Q&&(this.isDirtyBox=this.isDirtyLegend=Q,this.hasRendered&&E&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:s(this.renderTo,"width",!0)||0,height:s(this.renderTo,"height",!0)||0}}getChartSize(){var E=this.options.chart;const C=E.width;E=E.height;const Z=this.getContainerBox();this.chartWidth=Math.max(0,C||Z.width||600),this.chartHeight=Math.max(0,G(E,this.chartWidth)||(1<Z.height?Z.height:400)),this.containerBox=Z}temporaryDisplay(E){let C=this.renderTo;if(E)for(;C&&C.style;)C.hcOrigStyle&&(l(C,C.hcOrigStyle),delete C.hcOrigStyle),C.hcOrigDetached&&(n.body.removeChild(C),C.hcOrigDetached=!1),C=C.parentNode;else for(;C&&C.style&&(n.body.contains(C)||C.parentNode||(C.hcOrigDetached=!0,n.body.appendChild(C)),(s(C,"display",!1)==="none"||C.hcOricDetached)&&(C.hcOrigStyle={display:C.style.display,height:C.style.height,overflow:C.style.overflow},E={display:"block",overflow:"hidden"},C!==this.renderTo&&(E.height=0),l(C,E),C.offsetWidth||C.style.setProperty("display","block","important")),C=C.parentNode,C!==n.body););}setClassName(E){this.container.className="highcharts-container "+(E||"")}getContainer(){const E=this.options,C=E.chart;var Z=at();let X,Q=this.renderTo;Q||(this.renderTo=Q=C.renderTo),V(Q)&&(this.renderTo=Q=n.getElementById(Q)),Q||F(13,!0,this);var dt=H(t(Q,"data-highcharts-chart"));z(dt)&&w[dt]&&w[dt].hasRendered&&w[dt].destroy(),t(Q,"data-highcharts-chart",this.index),Q.innerHTML=_.emptyHTML,C.skipClone||Q.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(l(Q,{overflow:"hidden"}),this.styledMode||(X=q({position:"relative",overflow:"hidden",width:dt+"px",height:ct+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},C.style||{})),this.container=Z=i("div",{id:Z},X,Q),this._cursor=Z.style.cursor,this.renderer=new(C.renderer||!p?U.getRendererType(C.renderer):R)(Z,dt,ct,void 0,C.forExport,E.exporting&&E.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),y(void 0,this),this.setClassName(C.className),this.styledMode)for(const xt in E.defs)this.renderer.definition(E.defs[xt]);else this.renderer.setStyle(C.style);this.renderer.chartIndex=this.index,B(this,"afterGetContainer")}getMargins(E){const{spacing:C,margin:Z,titleOffset:X}=this;this.resetMargins(),X[0]&&!u(Z[0])&&(this.plotTop=Math.max(this.plotTop,X[0]+C[0])),X[2]&&!u(Z[2])&&(this.marginBottom=Math.max(this.marginBottom,X[2]+C[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(Z,C),B(this,"getMargins"),E||this.getAxisMargins()}getAxisMargins(){const E=this,C=E.axisOffset=[0,0,0,0],Z=E.colorAxis,X=E.margin,Q=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};E.hasCartesianSeries?Q(E.axes):Z&&Z.length&&Q(Z),a.forEach(function(dt,ct){u(X[ct])||(E[dt]+=C[ct])}),E.setChartSize()}getOptions(){return L(this.userOptions,v)}reflow(E){const C=this;var Z=C.options.chart;Z=u(Z.width)&&u(Z.height);const X=C.containerBox,Q=C.getContainerBox();delete C.pointer.chartPosition,!Z&&!C.isPrinting&&X&&Q.width&&((Q.width!==X.width||Q.height!==X.height)&&(b.clearTimeout(C.reflowTimeout),C.reflowTimeout=it(function(){C.container&&C.setSize(void 0,void 0,!1)},E?100:0)),C.containerBox=Q)}setReflow(){const E=this;var C=Z=>{var X;!((X=E.options)===null||X===void 0)&&X.chart.reflow&&E.hasLoaded&&E.reflow(Z)};typeof ResizeObserver=="function"?new ResizeObserver(C).observe(E.renderTo):(C=e(h,"resize",C),e(this,"destroy",C))}setSize(E,C,Z){const X=this,Q=X.renderer;X.isResizing+=1,y(Z,X),Z=Q.globalAnimation,X.oldChartHeight=X.chartHeight,X.oldChartWidth=X.chartWidth,typeof E<"u"&&(X.options.chart.width=E),typeof C<"u"&&(X.options.chart.height=C),X.getChartSize(),X.styledMode||(Z?I:l)(X.container,{width:X.chartWidth+"px",height:X.chartHeight+"px"},Z),X.setChartSize(!0),Q.setSize(X.chartWidth,X.chartHeight,Z),X.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),X.isDirtyLegend=!0,X.isDirtyBox=!0,X.layOutTitles(),X.getMargins(),X.redraw(Z),X.oldChartHeight=null,B(X,"resize"),it(function(){X&&B(X,"endResize",null,function(){--X.isResizing})},d(Z).duration)}setChartSize(E){var C=this.inverted;const Z=this.renderer;var X=this.chartWidth,Q=this.chartHeight;const dt=this.options.chart,ct=this.spacing,xt=this.clipOffset;let yt,gt,mt,Ct;this.plotLeft=yt=Math.round(this.plotLeft),this.plotTop=gt=Math.round(this.plotTop),this.plotWidth=mt=Math.max(0,Math.round(X-yt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(Q-gt-this.marginBottom)),this.plotSizeX=C?Ct:mt,this.plotSizeY=C?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=Z.spacingBox={x:ct[3],y:ct[0],width:X-ct[3]-ct[1],height:Q-ct[0]-ct[2]},this.plotBox=Z.plotBox={x:yt,y:gt,width:mt,height:Ct},C=2*Math.floor(this.plotBorderWidth/2),X=Math.ceil(Math.max(C,xt[3])/2),Q=Math.ceil(Math.max(C,xt[0])/2),this.clipBox={x:X,y:Q,width:Math.floor(this.plotSizeX-Math.max(C,xt[1])/2-X),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(C,xt[2])/2-Q))},E||(this.axes.forEach(function(kt){kt.setAxisSize(),kt.setAxisTranslation()}),Z.alignElements()),B(this,"afterSetChartSize",{skipAxes:E})}resetMargins(){B(this,"resetMargins");const E=this,C=E.options.chart;["margin","spacing"].forEach(function(Z){const X=C[Z],Q=D(X)?X:[X,X,X,X];["Top","Right","Bottom","Left"].forEach(function(dt,ct){E[Z][ct]=m(C[Z+dt],Q[ct])})}),a.forEach(function(Z,X){E[Z]=m(E.margin[X],E.spacing[X])}),E.axisOffset=[0,0,0,0],E.clipOffset=[0,0,0,0]}drawChartBox(){const E=this.options.chart,C=this.renderer,Z=this.chartWidth,X=this.chartHeight,Q=this.styledMode,dt=this.plotBGImage;var ct=E.backgroundColor;const xt=E.plotBackgroundColor,yt=E.plotBackgroundImage,gt=this.plotLeft,mt=this.plotTop,Ct=this.plotWidth,kt=this.plotHeight,bt=this.plotBox,Mt=this.clipRect,_t=this.clipBox;let At=this.chartBackground,Bt=this.plotBackground,Nt=this.plotBorder,Lt,Gt,zt="animate";At||(this.chartBackground=At=C.rect().addClass("highcharts-background").add(),zt="attr"),Q?Lt=Gt=At.strokeWidth():(Lt=E.borderWidth||0,Gt=Lt+(E.shadow?8:0),ct={fill:ct||"none"},(Lt||At["stroke-width"])&&(ct.stroke=E.borderColor,ct["stroke-width"]=Lt),At.attr(ct).shadow(E.shadow)),At[zt]({x:Gt/2,y:Gt/2,width:Z-Gt-Lt%2,height:X-Gt-Lt%2,r:E.borderRadius}),zt="animate",Bt||(zt="attr",this.plotBackground=Bt=C.rect().addClass("highcharts-plot-background").add()),Bt[zt](bt),Q||(Bt.attr({fill:xt||"none"}).shadow(E.plotShadow),yt&&(dt?(yt!==dt.attr("href")&&dt.attr("href",yt),dt.animate(bt)):this.plotBGImage=C.image(yt,gt,mt,Ct,kt).add())),Mt?Mt.animate({width:_t.width,height:_t.height}):this.clipRect=C.clipRect(_t),zt="animate",Nt||(zt="attr",this.plotBorder=Nt=C.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Q||Nt.attr({stroke:E.plotBorderColor,"stroke-width":E.plotBorderWidth||0,fill:"none"}),Nt[zt](Nt.crisp({x:gt,y:mt,width:Ct,height:kt},-Nt.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){const E=this,C=E.options.chart,Z=E.options.series;let X,Q,dt;["inverted","angular","polar"].forEach(function(ct){for(Q=c[C.type],dt=C[ct]||Q&&Q.prototype[ct],X=Z&&Z.length;!dt&&X--;)(Q=c[Z[X].type])&&Q.prototype[ct]&&(dt=!0);E[ct]=dt})}linkSeries(E){const C=this,Z=C.series;Z.forEach(function(X){X.linkedSeries.length=0}),Z.forEach(function(X){let Q=X.options.linkedTo;V(Q)&&(Q=Q===":previous"?C.series[X.index-1]:C.get(Q))&&Q.linkedParent!==X&&(Q.linkedSeries.push(X),X.linkedParent=Q,Q.enabledDataSorting&&X.setDataSortingOptions(),X.visible=m(X.options.visible,Q.options.visible,X.visible))}),B(this,"afterLinkSeries",{isUpdating:E})}renderSeries(){this.series.forEach(function(E){E.translate(),E.render()})}render(){const E=this.axes,C=this.colorAxis,Z=this.renderer,X=function(gt){gt.forEach(function(mt){mt.visible&&mt.render()})};let Q=0;this.setTitle(),B(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const dt=this.plotWidth;E.some(function(gt){if(gt.horiz&&gt.visible&&gt.options.labels.enabled&&gt.series.length)return Q=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-Q,0);E.forEach(function(gt){gt.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,yt=1.05<ct/this.plotHeight;(xt||yt)&&(E.forEach(function(gt){(gt.horiz&&xt||!gt.horiz&&yt)&&gt.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?X(E):C&&C.length&&X(C),this.seriesGroup||(this.seriesGroup=Z.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(E){const C=this,Z=o(!0,this.options.credits,E);Z.enabled&&!this.credits&&(this.credits=this.renderer.text(Z.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){Z.href&&(h.location.href=Z.href)}).attr({align:Z.position.align,zIndex:8}),C.styledMode||this.credits.css(Z.style),this.credits.add().align(Z.position),this.credits.update=function(X){C.credits=C.credits.destroy(),C.addCredits(X)})}destroy(){const E=this,C=E.axes,Z=E.series,X=E.container,Q=X&&X.parentNode;let dt;for(B(E,"destroy"),E.renderer.forExport?S(w,E):w[E.index]=void 0,Y.chartCount--,E.renderTo.removeAttribute("data-highcharts-chart"),$(E),dt=C.length;dt--;)C[dt]=C[dt].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),dt=Z.length;dt--;)Z[dt]=Z[dt].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(ct){const xt=E[ct];xt&&xt.destroy&&(E[ct]=xt.destroy())}),X&&(X.innerHTML=_.emptyHTML,$(X),Q&&r(X)),g(E,function(ct,xt){delete E[xt]})}firstRender(){const E=this,C=E.options;E.getContainer(),E.resetMargins(),E.setChartSize(),E.propFromSeries(),E.getAxes();const Z=M(C.series)?C.series:[];C.series=[],Z.forEach(function(X){E.initSeries(X)}),E.linkSeries(),E.setSeriesData(),B(E,"beforeRender"),E.render(),E.pointer.getChartPosition(),!E.renderer.imgCount&&!E.hasLoaded&&E.onload(),E.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach(function(E){E&&typeof this.index<"u"&&E.apply(this,[this])},this),B(this,"load"),B(this,"render"),u(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){const{options:E,title:C}=this;E&&!this.accessibility&&(this.renderer.boxWrapper.attr({role:"img","aria-label":(C&&C.element.textContent||"").replace(/</g,"&lt;")}),E.accessibility&&E.accessibility.enabled===!1||F('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(E,C,Z){const X=this;let Q;return E&&(C=m(C,!0),B(X,"addSeries",{options:E},function(){Q=X.initSeries(E),X.isDirtyLegend=!0,X.linkSeries(),Q.enabledDataSorting&&Q.setData(E.data,!1),B(X,"afterAddSeries",{series:Q}),C&&X.redraw(Z)})),Q}addAxis(E,C,Z,X){return this.createAxis(C?"xAxis":"yAxis",{axis:E,redraw:Z,animation:X})}addColorAxis(E,C,Z){return this.createAxis("colorAxis",{axis:E,redraw:C,animation:Z})}createAxis(E,C){return E=new P(this,C.axis,E),m(C.redraw,!0)&&this.redraw(C.animation),E}showLoading(E){const C=this,Z=C.options,X=Z.loading,Q=function(){dt&&l(dt,{left:C.plotLeft+"px",top:C.plotTop+"px",width:C.plotWidth+"px",height:C.plotHeight+"px"})};let dt=C.loadingDiv,ct=C.loadingSpan;dt||(C.loadingDiv=dt=i("div",{className:"highcharts-loading highcharts-loading-hidden"},null,C.container)),ct||(C.loadingSpan=ct=i("span",{className:"highcharts-loading-inner"},null,dt),e(C,"redraw",Q)),dt.className="highcharts-loading",_.setElementHTML(ct,m(E,Z.lang.loading,"")),C.styledMode||(l(dt,q(X.style,{zIndex:10})),l(ct,X.labelStyle),C.loadingShown||(l(dt,{opacity:0,display:""}),I(dt,{opacity:X.style.opacity||.5},{duration:X.showDuration||0}))),C.loadingShown=!0,Q()}hideLoading(){const E=this.options,C=this.loadingDiv;C&&(C.className="highcharts-loading highcharts-loading-hidden",this.styledMode||I(C,{opacity:0},{duration:E.loading.hideDuration||100,complete:function(){l(C,{display:"none"})}})),this.loadingShown=!1}update(E,C,Z,X){const Q=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=E.isResponsiveOptions,xt=[];let yt,gt;B(Q,"update",{options:E}),ct||Q.setResponsive(!1,!0),E=L(E,Q.options),Q.userOptions=o(Q.userOptions,E);var mt=E.chart;if(mt){if(o(!0,Q.options.chart,mt),this.setZoomOptions(),"className"in mt&&Q.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){Q.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&k(this,mt),g(mt,function(kt,bt){Q.propsRequireUpdateSeries.indexOf("chart."+bt)!==-1&&(yt=!0),Q.propsRequireDirtyBox.indexOf(bt)!==-1&&(Q.isDirtyBox=!0),Q.propsRequireReflow.indexOf(bt)!==-1&&(ct?Q.isDirtyBox=!0:gt=!0)}),!Q.styledMode&&mt.style&&Q.renderer.setStyle(Q.options.chart.style||{})}!Q.styledMode&&E.colors&&(this.options.colors=E.colors),E.time&&(this.time===f&&(this.time=new x(E.time)),o(!0,Q.options.time,E.time)),g(E,function(kt,bt){Q[bt]&&typeof Q[bt].update=="function"?Q[bt].update(kt,!1):typeof Q[dt[bt]]=="function"?Q[dt[bt]](kt):bt!=="colors"&&Q.collectionsWithUpdate.indexOf(bt)===-1&&o(!0,Q.options[bt],E[bt]),bt!=="chart"&&Q.propsRequireUpdateSeries.indexOf(bt)!==-1&&(yt=!0)}),this.collectionsWithUpdate.forEach(function(kt){E[kt]&&(tt(E[kt]).forEach(function(bt,Mt){const _t=u(bt.id);let At;_t&&(At=Q.get(bt.id)),!At&&Q[kt]&&(At=Q[kt][m(bt.index,Mt)])&&(_t&&u(At.options.id)||At.options.isInternal)&&(At=void 0),At&&At.coll===kt&&(At.update(bt,!1),Z&&(At.touched=!0)),!At&&Z&&Q.collectionsWithInit[kt]&&(Q.collectionsWithInit[kt][0].apply(Q,[bt].concat(Q.collectionsWithInit[kt][1]||[]).concat([!1])).touched=!0)}),Z&&Q[kt].forEach(function(bt){bt.touched||bt.options.isInternal?delete bt.touched:xt.push(bt)}))}),xt.forEach(function(kt){kt.chart&&kt.remove&&kt.remove(!1)}),Ct&&Q.axes.forEach(function(kt){kt.update({},!1)}),yt&&Q.getSeriesOrderByLinks().forEach(function(kt){kt.chart&&kt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(V(mt.height)?G(mt.height,Ct||Q.chartWidth):mt.height),gt||z(Ct)&&Ct!==Q.chartWidth||z(mt)&&mt!==Q.chartHeight?Q.setSize(Ct,mt,X):m(C,!0)&&Q.redraw(X),B(Q,"afterUpdate",{options:E,redraw:C,animation:X})}setSubtitle(E,C){this.applyDescription("subtitle",E),this.layOutTitles(C)}setCaption(E,C){this.applyDescription("caption",E),this.layOutTitles(C)}showResetZoom(){function E(){C.zoomOut()}const C=this,Z=v.lang,X=C.zooming.resetButton,Q=X.theme,dt=X.relativeTo==="chart"||X.relativeTo==="spacingBox"?null:"scrollablePlotBox";B(this,"beforeShowResetZoom",null,function(){C.resetZoomButton=C.renderer.button(Z.resetZoom,null,null,E,Q).attr({align:X.position.align,title:Z.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(X.position,!1,dt)}),B(this,"afterShowResetZoom")}zoomOut(){B(this,"selection",{resetSelection:!0},this.zoom)}zoom(E){const C=this,Z=C.pointer;let X=!1,Q;!E||E.resetSelection?(C.axes.forEach(function(ct){Q=ct.zoom()}),Z.initiated=!1):E.xAxis.concat(E.yAxis).forEach(function(ct){const xt=ct.axis;(Z[xt.isXAxis?"zoomX":"zoomY"]&&u(Z.mouseDownX)&&u(Z.mouseDownY)&&C.isInsidePlot(Z.mouseDownX-C.plotLeft,Z.mouseDownY-C.plotTop,{axis:xt})||!u(C.inverted?Z.mouseDownX:Z.mouseDownY))&&(Q=xt.zoom(ct.min,ct.max),xt.displayBtn&&(X=!0))});const dt=C.resetZoomButton;X&&!dt?C.showResetZoom():!X&&D(dt)&&(C.resetZoomButton=dt.destroy()),Q&&C.redraw(m(C.options.chart.animation,E&&E.animation,100>C.pointCount))}pan(E,C){const Z=this,X=Z.hoverPoints;C=typeof C=="object"?C:{enabled:C,type:"x"};const Q=Z.options.chart;Q&&Q.panning&&(Q.panning=C);const dt=C.type;let ct;B(this,"pan",{originalEvent:E},function(){X&&X.forEach(function(gt){gt.setState()});let xt=Z.xAxis;dt==="xy"?xt=xt.concat(Z.yAxis):dt==="y"&&(xt=Z.yAxis);const yt={};xt.forEach(function(gt){if(gt.options.panningEnabled&&!gt.options.isInternal){var mt=gt.horiz,Ct=E[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var kt=Z[mt],bt=gt.minPointOffset||0,Mt=gt.reversed&&!Z.inverted||!gt.reversed&&Z.inverted?-1:1,_t=gt.getExtremes(),At=gt.toValue(kt-Ct,!0)+bt*Mt,Bt=gt.toValue(kt+gt.len-Ct,!0)-(bt*Mt||gt.isXAxis&&gt.pointRangePadding||0),Nt=Bt<At;Mt=gt.hasVerticalPanning(),kt=Nt?Bt:At,At=Nt?At:Bt;var Lt=gt.panningState;!Mt||gt.isXAxis||Lt&&!Lt.isDirty||gt.series.forEach(function(Gt){var zt=Gt.getProcessedData(!0);zt=Gt.getExtremes(zt.yData,!0),Lt||(Lt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(zt.dataMin)&&z(zt.dataMax)&&(Lt.startMin=Math.min(m(Gt.options.threshold,1/0),zt.dataMin,Lt.startMin),Lt.startMax=Math.max(m(Gt.options.threshold,-1/0),zt.dataMax,Lt.startMax))}),Mt=Math.min(m(Lt&&Lt.startMin,_t.dataMin),bt?_t.min:gt.toValue(gt.toPixels(_t.min)-gt.minPixelPadding)),Bt=Math.max(m(Lt&&Lt.startMax,_t.dataMax),bt?_t.max:gt.toValue(gt.toPixels(_t.max)+gt.minPixelPadding)),gt.panningState=Lt,gt.isOrdinal||(bt=Mt-kt,0<bt&&(At+=bt,kt=Mt),bt=At-Bt,0<bt&&(At=Bt,kt-=bt),gt.series.length&&kt!==_t.min&&At!==_t.max&&kt>=Mt&&At<=Bt&&(gt.setExtremes(kt,At,!1,!1,{trigger:"pan"}),!Z.resetZoomButton&&kt!==Mt&&At!==Bt&&dt.match("y")&&(Z.showResetZoom(),gt.displayBtn=!1),ct=!0),yt[mt]=Ct)}}),g(yt,(gt,mt)=>{Z[mt]=gt}),ct&&Z.redraw(!1),l(Z.container,{cursor:"move"})})}}return q(ht.prototype,{callbacks:[],collectionsWithInit:{xAxis:[ht.prototype.addAxis,[!0]],yAxis:[ht.prototype.addAxis,[!1]],series:[ht.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" ")}),ht}),nt(A,"Extensions/ScrollablePlotArea.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Chart/Chart.js"],A["Core/Series/Series.js"],A["Core/Renderer/RendererRegistry.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y){const{stop:U}=j,{addEvent:O,createElement:N,defined:R,merge:x,pick:b}=Y;O(W,"afterSetChartSize",function(_){var I=this.options.chart.scrollablePlotArea,d=I&&I.minWidth;I=I&&I.minHeight;let y;this.renderer.forExport||(d?(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.width=this.plotWidth+=d,this.inverted?this.clipBox.height+=d:this.clipBox.width+=d,y={1:{name:"right",value:d}}):I&&(this.scrollablePixelsY=d=Math.max(0,I-this.chartHeight),R(d)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=x(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,y={2:{name:"bottom",value:d}})),y&&!_.skipAxes&&this.axes.forEach(function(v){y[v.side]?v.getPlotLinePath=function(){let f=y[v.side].name,T=this[f],k;return this[f]=T-y[v.side].value,k=P.prototype.getPlotLinePath.apply(this,arguments),this[f]=T,k}:(v.setAxisSize(),v.setAxisTranslation())}))}),O(W,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),W.prototype.setUpScrolling=function(){const _={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(_.overflowX="auto"),this.scrollablePixelsY&&(_.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},_,this.scrollingParent);let I;O(this.scrollingContainer,"scroll",()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(I=this.hoverPoint),this.pointer.runPointActions(void 0,I,!0))}),this.innerContainer=N("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},W.prototype.moveFixedElements=function(){let _=this.container,I=this.fixedRenderer,d=".highcharts-breadcrumbs-group .highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-drillup-button .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" "),y;this.scrollablePixelsX&&!this.inverted?y=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?y=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(y=".highcharts-yaxis"),y&&d.push(`${y}:not(.highcharts-radial-axis)`,`${y}-labels:not(.highcharts-radial-axis-labels)`),d.forEach(function(v){[].forEach.call(_.querySelectorAll(v),function(f){(f.namespaceURI===I.SVG_NS?I.box:I.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})})},W.prototype.applyFixed=function(){var _=!this.fixedDiv,I=this.options.chart,d=I.scrollablePlotArea,y=K.getRendererType();_?(this.fixedDiv=N("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:(I.style&&I.style.zIndex||0)+2,top:0},null,!0),this.scrollingContainer&&this.scrollingContainer.parentNode.insertBefore(this.fixedDiv,this.scrollingContainer),this.renderTo.style.overflow="visible",this.fixedRenderer=I=new y(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=I.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":b(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),O(this,"afterShowResetZoom",this.moveFixedElements),O(this,"afterApplyDrilldown",this.moveFixedElements),O(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||_)&&(this.scrollableDirty=!1,this.moveFixedElements()),I=this.chartWidth+(this.scrollablePixelsX||0),y=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=I+"px",this.container.style.height=y+"px",this.renderer.boxWrapper.attr({width:I,height:y,viewBox:[0,0,I,y].join(" ")}),this.chartBackground.attr({width:I,height:y}),this.scrollingContainer.style.height=this.chartHeight+"px",_&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*d.scrollPositionY)),y=this.axisOffset,_=this.plotTop-y[0]-1,d=this.plotLeft-y[3]-1,I=this.plotTop+this.plotHeight+y[2]+1,y=this.plotLeft+this.plotWidth+y[1]+1;let v=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),f=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);_=this.scrollablePixelsX?[["M",0,_],["L",this.plotLeft-1,_],["L",this.plotLeft-1,I],["L",0,I],["Z"],["M",v,_],["L",this.chartWidth,_],["L",this.chartWidth,I],["L",v,I],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-1],["L",y,this.plotTop-1],["L",y,0],["Z"],["M",d,f],["L",d,this.chartHeight],["L",y,this.chartHeight],["L",y,f],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:_})},O(P,"afterInit",function(){this.chart.scrollableDirty=!0}),O(J,"show",function(){this.chart.scrollableDirty=!0})}),nt(A,"Core/Axis/Stacking/StackItem.js",[A["Core/Templating.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{format:J}=j,{series:K}=P,{destroyObjectProperties:Y,fireEvent:U,isNumber:O,pick:N}=W;class R{constructor(b,_,I,d,y){const v=b.chart.inverted,f=b.reversed;this.axis=b,b=this.isNegative=!!I!=!!f,this.options=_=_||{},this.x=d,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=y,this.rightCliff=this.leftCliff=0,this.alignOptions={align:_.align||(v?b?"left":"right":"center"),verticalAlign:_.verticalAlign||(v?"middle":b?"bottom":"top"),y:_.y,x:_.x},this.textAlign=_.textAlign||(v?b?"right":"left":"center")}destroy(){Y(this,this.axis)}render(b){const _=this.axis.chart,I=this.options;var d=I.format;d=d?J(d,this,_):I.formatter.call(this),this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=_.renderer.label(d,null,void 0,I.shape,void 0,void 0,I.useHTML,!1,"stack-labels"),d={r:I.borderRadius||0,text:d,padding:N(I.padding,5),visibility:"hidden"},_.styledMode||(d.fill=I.backgroundColor,d.stroke=I.borderColor,d["stroke-width"]=I.borderWidth,this.label.css(I.style||{})),this.label.attr(d),this.label.added||this.label.add(b)),this.label.labelrank=_.plotSizeY,U(this,"afterRender")}setOffset(b,_,I,d,y,v){const{alignOptions:f,axis:T,label:k,options:w,textAlign:n}=this,a=T.chart;I=this.getStackBox({xOffset:b,width:_,boxBottom:I,boxTop:d,defaultX:y,xAxis:v});var{verticalAlign:p}=f;if(k&&I){d=k.getBBox(),y=k.padding,v=N(w.overflow,"justify")==="justify",f.x=w.x||0,f.y=w.y||0;const{x:h,y:c}=this.adjustStackPosition({labelBox:d,verticalAlign:p,textAlign:n});I.x-=h,I.y-=c,k.align(f,!1,I),(p=a.isInsidePlot(k.alignAttr.x+f.x+h,k.alignAttr.y+f.y+c))||(v=!1),v&&K.prototype.justifyDataLabel.call(T,k,f,k.alignAttr,d,I),k.attr({x:k.alignAttr.x,y:k.alignAttr.y,rotation:w.rotation,rotationOriginX:d.width/2,rotationOriginY:d.height/2}),N(!v&&w.crop,!0)&&(p=O(k.x)&&O(k.y)&&a.isInsidePlot(k.x-y+k.width,k.y)&&a.isInsidePlot(k.x+y,k.y)),k[p?"show":"hide"]()}U(this,"afterSetOffset",{xOffset:b,width:_})}adjustStackPosition({labelBox:b,verticalAlign:_,textAlign:I}){const d={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:b.width/2+b.width/2*d[I],y:b.height/2*d[_]}}getStackBox(b){var _=this.axis;const I=_.chart,{boxTop:d,defaultX:y,xOffset:v,width:f,boxBottom:T}=b;var k=_.stacking.usePercentage?100:N(d,this.total,0);k=_.toPixels(k),b=b.xAxis||I.xAxis[0];const w=N(y,b.translate(this.x))+v;_=_.toPixels(T||O(_.min)&&_.logarithmic&&_.logarithmic.lin2log(_.min)||0),_=Math.abs(k-_);const n=this.isNegative;return I.inverted?{x:(n?k:k-_)-I.plotLeft,y:b.height-w-f,width:_,height:f}:{x:w+b.transB-I.plotLeft,y:(n?k-_:k)-I.plotTop,width:f,height:_}}}return R}),nt(A,"Core/Axis/Stacking/StackingAxis.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Axis/Axis.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Axis/Stacking/StackItem.js"],A["Core/Utilities.js"]],function(j,P,W,J,K){function Y(){const e=this,t=e.inverted;e.yAxis.forEach(i=>{i.stacking&&i.stacking.stacks&&i.hasVisibleSeries&&(i.stacking.oldStacks=i.stacking.stacks)}),e.series.forEach(i=>{const l=i.xAxis&&i.xAxis.options||{};!i.options.stacking||i.visible!==!0&&e.options.chart.ignoreHiddenSeries!==!1||(i.stackKey=[i.type,p(i.options.stack,""),t?l.top:l.left,t?l.height:l.width].join())})}function U(){const e=this.stacking;if(e){var t=e.stacks;a(t,function(i,l){T(i),t[l]=null}),e&&e.stackTotalGroup&&e.stackTotalGroup.destroy()}}function O(){this.coll!=="yAxis"||this.stacking||(this.stacking=new h(this))}function N(e,t,i,l){return!f(e)||e.x!==t||l&&e.stackKey!==l?e={x:t,index:0,key:l,stackKey:l}:e.index++,e.key=[i,t,e.index].join(),e}function R(){const e=this,t=e.stackKey,i=e.yAxis.stacking.stacks,l=e.processedXData,u=e[e.options.stacking+"Stacker"];let L;u&&[t,"-"+t].forEach(r=>{let S=l.length,F;for(;S--;){var q=l[S];L=e.getStackIndicator(L,q,e.index,r),(F=(q=i[r]&&i[r][q])&&q.points[L.key])&&u.call(e,F,q,S)}})}function x(e,t,i){t=t.total?100/t.total:0,e[0]=v(e[0]*t),e[1]=v(e[1]*t),this.stackedYData[i]=e[1]}function b(){const e=this.yAxis.stacking;this.options.centerInCategory&&(this.is("column")||this.is("columnrange"))&&!this.options.stacking&&1<this.chart.series.length?d.setStackedPoints.call(this,"group"):e&&a(e.stacks,(t,i)=>{i.slice(-5)==="group"&&(a(t,l=>l.destroy()),delete e.stacks[i])})}function _(e){var t=this.chart;const i=e||this.options.stacking;if(i&&(this.visible===!0||t.options.chart.ignoreHiddenSeries===!1)){var l=this.processedXData,u=this.processedYData,L=[],r=u.length,S=this.options,F=S.threshold,q=p(S.startFromThreshold&&F,0);S=S.stack,e=e?`${this.type},${i}`:this.stackKey;var rt="-"+e,B=this.negStacks;t=i==="group"?t.yAxis[0]:this.yAxis;var s=t.stacking.stacks,M=t.stacking.oldStacks,z,D;for(t.stacking.stacksTouched+=1,D=0;D<r;D++){var V=l[D],o=u[D],g=this.getStackIndicator(g,V,this.index),m=g.key,H=(z=B&&o<(q?0:F))?rt:e;s[H]||(s[H]={}),s[H][V]||(M[H]&&M[H][V]?(s[H][V]=M[H][V],s[H][V].total=null):s[H][V]=new J(t,t.options.stackLabels,!!z,V,S)),H=s[H][V],o!==null?(H.points[m]=H.points[this.index]=[p(H.cumulative,q)],f(H.cumulative)||(H.base=m),H.touched=t.stacking.stacksTouched,0<g.index&&this.singleStacks===!1&&(H.points[m][0]=H.points[this.index+","+V+",0"][0])):H.points[m]=H.points[this.index]=null,i==="percent"?(z=z?e:rt,B&&s[z]&&s[z][V]?(z=s[z][V],H.total=z.total=Math.max(z.total,H.total)+Math.abs(o)||0):H.total=v(H.total+(Math.abs(o)||0))):i==="group"?(w(o)&&(o=o[0]),o!==null&&(H.total=(H.total||0)+1)):H.total=v(H.total+(o||0)),H.cumulative=i==="group"?(H.total||1)-1:v(p(H.cumulative,q)+(o||0)),o!==null&&(H.points[m].push(H.cumulative),L[D]=H.cumulative,H.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=L),t.stacking.oldStacks={}}}const{getDeferredAnimation:I}=j,{series:{prototype:d}}=W,{addEvent:y,correctFloat:v,defined:f,destroyObjectProperties:T,fireEvent:k,isArray:w,isNumber:n,objectEach:a,pick:p}=K;class h{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){const t=this.axis,i=t.series,l=t.options.reversedStacks,u=i.length;let L,r;for(this.usePercentage=!1,r=u;r--;)L=i[l?r:u-r-1],L.setStackedPoints(),L.setGroupedPoints();for(r=0;r<u;r++)i[r].modifyStacks();k(t,"afterBuildStacks")}cleanStacks(){let t;this.oldStacks&&(t=this.stacks=this.oldStacks),a(t,function(i){a(i,function(l){l.cumulative=l.total})})}resetStacks(){a(this.stacks,t=>{a(t,(i,l)=>{n(i.touched)&&i.touched<this.stacksTouched?(i.destroy(),delete t[l]):(i.total=null,i.cumulative=null)})})}renderStackTotals(){var t=this.axis;const i=t.chart,l=i.renderer,u=this.stacks;t=I(i,t.options.stackLabels&&t.options.stackLabels.animation||!1);const L=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();L.translate(i.plotLeft,i.plotTop),a(u,function(r){a(r,function(S){S.render(L)})}),L.animate({opacity:1},t)}}var c;return function(e){const t=[];e.compose=function(i,l,u){K.pushUnique(t,i)&&(y(i,"init",O),y(i,"destroy",U)),K.pushUnique(t,l)&&(l.prototype.getStacks=Y),K.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=N,i.modifyStacks=R,i.percentStacker=x,i.setGroupedPoints=b,i.setStackedPoints=_)}}(c||(c={})),c}),nt(A,"Series/Line/LineSeries.js",[A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{defined:J,merge:K}=W;class Y extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const O=this,N=this.options,R=(this.gappedPath||this.getGraphPath).call(this),x=this.chart.styledMode;let b=[["graph","highcharts-graph"]];x||b[0].push(N.lineColor||this.color||"#cccccc",N.dashStyle),b=O.getZonesGraphs(b),b.forEach(function(_,I){var d=_[0];let y=O[d];const v=y?"animate":"attr";y?(y.endX=O.preventGraphAnimation?null:R.xMap,y.animate({d:R})):R.length&&(O[d]=y=O.chart.renderer.path(R).addClass(_[1]).attr({zIndex:1}).add(O.group)),y&&!x&&(d={stroke:_[2],"stroke-width":N.lineWidth||0,fill:O.fillGraph&&O.color||"none"},_[3]?d.dashstyle=_[3]:N.linecap!=="square"&&(d["stroke-linecap"]=d["stroke-linejoin"]="round"),y[v](d).shadow(2>I&&N.shadow)),y&&(y.startX=R.xMap,y.isArea=R.isArea)})}getGraphPath(O,N,R){const x=this,b=x.options,_=[],I=[];let d,y=b.step;O=O||x.points;const v=O.reversed;return v&&O.reverse(),(y={right:1,center:2}[y]||y&&3)&&v&&(y=4-y),O=this.getValidPoints(O,!1,!(b.connectNulls&&!N&&!R)),O.forEach(function(f,T){const k=f.plotX,w=f.plotY,n=O[T-1],a=f.isNull||typeof w!="number";(f.leftCliff||n&&n.rightCliff)&&!R&&(d=!0),a&&!J(N)&&0<T?d=!b.connectNulls:a&&!N?d=!0:(T===0||d?T=[["M",f.plotX,f.plotY]]:x.getPointSpline?T=[x.getPointSpline(O,f,T)]:y?(T=y===1?[["L",n.plotX,w]]:y===2?[["L",(n.plotX+k)/2,n.plotY],["L",(n.plotX+k)/2,w]]:[["L",k,n.plotY]],T.push(["L",k,w])):T=[["L",k,w]],I.push(f.x),y&&(I.push(f.x),y===2&&I.push(f.x)),_.push.apply(_,T),d=!1)}),_.xMap=I,x.graphPath=_}getZonesGraphs(O){return this.zones.forEach(function(N,R){R=["zone-graph-"+R,"highcharts-graph highcharts-zone-graph-"+R+" "+(N.className||"")],this.chart.styledMode||R.push(N.color||this.color,N.dashStyle||this.options.dashStyle),O.push(R)},this),O}}return Y.defaultOptions=K(j.defaultOptions,{legendSymbol:"lineMarker"}),P.registerSeriesType("line",Y),Y}),nt(A,"Series/Area/AreaSeries.js",[A["Core/Color/Color.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{seriesTypes:{line:J}}=P,{extend:K,merge:Y,objectEach:U,pick:O}=W;class N extends J{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const x=this,b=this.areaPath,_=this.options,I=[["area","highcharts-area",this.color,_.fillColor]];this.zones.forEach(function(d,y){I.push(["zone-area-"+y,"highcharts-area highcharts-zone-area-"+y+" "+d.className,d.color||x.color,d.fillColor||_.fillColor])}),I.forEach(function(d){const y=d[0],v={};let f=x[y];const T=f?"animate":"attr";f?(f.endX=x.preventGraphAnimation?null:b.xMap,f.animate({d:b})):(v.zIndex=0,f=x[y]=x.chart.renderer.path(b).addClass(d[1]).add(x.group),f.isArea=!0),x.chart.styledMode||(d[3]?v.fill=d[3]:(v.fill=d[2],v["fill-opacity"]=O(_.fillOpacity,.75))),f[T](v),f.startX=b.xMap,f.shiftUnit=_.step?2:1})}getGraphPath(x){var b=J.prototype.getGraphPath,_=this.options;const I=_.stacking,d=this.yAxis,y=[],v=[],f=this.index,T=d.stacking.stacks[this.stackKey],k=_.threshold,w=Math.round(d.getThreshold(_.threshold));_=O(_.connectNulls,I==="percent");var n=function(c,e,t){var i=x[c];c=I&&T[i.x].points[f];const l=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let u,L;i=!0,t||l?(u=(l?c[0]:c[1])+t,L=c[0]+t,i=!!l):!I&&x[e]&&x[e].isNull&&(u=L=k),typeof u<"u"&&(v.push({plotX:a,plotY:u===null?w:d.getThreshold(u),isNull:i,isCliff:!0}),y.push({plotX:a,plotY:L===null?w:d.getThreshold(L),doCurve:!1}))};let a;x=x||this.points,I&&(x=this.getStackPoints(x));for(let c=0,e=x.length;c<e;++c){I||(x[c].leftCliff=x[c].rightCliff=x[c].leftNull=x[c].rightNull=void 0);var p=x[c].isNull;a=O(x[c].rectPlotX,x[c].plotX);var h=I?O(x[c].yBottom,w):w;(!p||_)&&(_||n(c,c-1,"left"),p&&!I&&_||(v.push(x[c]),y.push({x:c,plotX:a,plotY:h})),_||n(c,c+1,"right"))}return n=b.call(this,v,!0,!0),y.reversed=!0,p=b.call(this,y,!0,!0),(h=p[0])&&h[0]==="M"&&(p[0]=["L",h[1],h[2]]),p=n.concat(p),p.length&&p.push(["Z"]),b=b.call(this,v,!1,_),p.xMap=n.xMap,this.areaPath=p,b}getStackPoints(x){const b=this,_=[],I=[],d=this.xAxis,y=this.yAxis,v=y.stacking.stacks[this.stackKey],f={},T=y.series,k=T.length,w=y.options.reversedStacks?1:-1,n=T.indexOf(b);if(x=x||this.points,this.options.stacking){for(let p=0;p<x.length;p++)x[p].leftNull=x[p].rightNull=void 0,f[x[p].x]=x[p];U(v,function(p,h){p.total!==null&&I.push(h)}),I.sort(function(p,h){return p-h});const a=T.map(p=>p.visible);I.forEach(function(p,h){let c=0,e,t;if(f[p]&&!f[p].isNull)_.push(f[p]),[-1,1].forEach(function(i){const l=i===1?"rightNull":"leftNull",u=v[I[h+i]];let L=0;if(u){let r=n;for(;0<=r&&r<k;){const S=T[r].index;e=u.points[S],e||(S===b.index?f[p][l]=!0:a[r]&&(t=v[p].points[S])&&(L-=t[1]-t[0])),r+=w}}f[p][i===1?"rightCliff":"leftCliff"]=L});else{let i=n;for(;0<=i&&i<k;){if(e=v[p].points[T[i].index]){c=e[1];break}i+=w}c=O(c,0),c=y.translate(c,0,1,0,1),_.push({isNull:!0,plotX:d.translate(p,0,0,0,1),x:p,plotY:c,yBottom:c})}})}return _}}return N.defaultOptions=Y(J.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),K(N.prototype,{singleStacks:!1}),P.registerSeriesType("area",N),N}),nt(A,"Series/Spline/SplineSeries.js",[A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P){const{line:W}=j.seriesTypes,{merge:J,pick:K}=P;class Y extends W{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(O,N,R){const x=N.plotX||0,b=N.plotY||0,_=O[R-1];R=O[R+1];let I,d,y;if(_&&!_.isNull&&_.doCurve!==!1&&!N.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!N.isCliff){O=_.plotY||0;var v=R.plotX||0;R=R.plotY||0;let f=0;I=(1.5*x+(_.plotX||0))/2.5,d=(1.5*b+O)/2.5,v=(1.5*x+v)/2.5,y=(1.5*b+R)/2.5,v!==I&&(f=(y-d)*(v-x)/(v-I)+b-y),d+=f,y+=f,d>O&&d>b?(d=Math.max(O,b),y=2*b-d):d<O&&d<b&&(d=Math.min(O,b),y=2*b-d),y>R&&y>b?(y=Math.max(R,b),d=2*b-y):y<R&&y<b&&(y=Math.min(R,b),d=2*b-y),N.rightContX=v,N.rightContY=y}return N=["C",K(_.rightContX,_.plotX,0),K(_.rightContY,_.plotY,0),K(I,x,0),K(d,b,0),x,b],_.rightContX=_.rightContY=void 0,N}}return Y.defaultOptions=J(W.defaultOptions),j.registerSeriesType("spline",Y),Y}),nt(A,"Series/AreaSpline/AreaSplineSeries.js",[A["Series/Spline/SplineSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{area:J,area:{prototype:K}}=P.seriesTypes,{extend:Y,merge:U}=W;class O extends j{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return O.defaultOptions=U(j.defaultOptions,J.defaultOptions),Y(O.prototype,{getGraphPath:K.getGraphPath,getStackPoints:K.getStackPoints,drawGraph:K.drawGraph}),P.registerSeriesType("areaspline",O),O}),nt(A,"Series/Column/ColumnSeriesDefaults.js",[],function(){return{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"}}),nt(A,"Series/Column/ColumnSeries.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Color/Color.js"],A["Series/Column/ColumnSeriesDefaults.js"],A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y,U){const{animObject:O}=j,{parse:N}=P,{hasTouch:R,noop:x}=J,{clamp:b,defined:_,extend:I,fireEvent:d,isArray:y,isNumber:v,merge:f,pick:T,objectEach:k}=U;class w extends K{constructor(){super(...arguments),this.points=this.options=this.group=this.data=this.borderWidth=void 0}animate(a){const p=this,h=this.yAxis,c=h.pos,e=p.options,t=this.chart.inverted,i={},l=t?"translateX":"translateY";let u;a?(i.scaleY=.001,a=b(h.toPixels(e.threshold),c,c+h.len),t?i.translateX=a-h.len:i.translateY=a,p.clipBox&&p.setClip(),p.group.attr(i)):(u=Number(p.group.attr(l)),p.group.animate({scaleY:1},I(O(p.options.animation),{step:function(L,r){p.group&&(i[l]=u+r.pos*(c-u),p.group.attr(i))}})))}init(a,p){super.init.apply(this,arguments);const h=this;a=h.chart,a.hasRendered&&a.series.forEach(function(c){c.type===h.type&&(c.isDirty=!0)})}getColumnMetrics(){const a=this;var p=a.options;const h=a.xAxis,c=a.yAxis;var e=h.options.reversedStacks;e=h.reversed&&!e||!h.reversed&&e;const t={};let i,l=0;p.grouping===!1?l=1:a.chart.series.forEach(function(S){const F=S.yAxis,q=S.options;let rt;S.type!==a.type||!S.visible&&a.chart.options.chart.ignoreHiddenSeries||c.len!==F.len||c.pos!==F.pos||(q.stacking&&q.stacking!=="group"?(i=S.stackKey,typeof t[i]>"u"&&(t[i]=l++),rt=t[i]):q.grouping!==!1&&(rt=l++),S.columnIndex=rt)});const u=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||p.pointRange||h.closestPointRange||h.tickInterval||1),h.len),L=u*p.groupPadding,r=(u-2*L)/(l||1);return p=Math.min(p.maxPointWidth||h.len,T(p.pointWidth,r*(1-2*p.pointPadding))),a.columnMetrics={width:p,offset:(r-p)/2+(L+((a.columnIndex||0)+(e?1:0))*r-u/2)*(e?-1:1),paddedWidth:r,columnCount:l},a.columnMetrics}crispCol(a,p,h,c){var e=this.borderWidth,t=-(e%2?.5:0);return e=e%2?.5:1,this.options.crisp&&(h=Math.round(a+h)+t,a=Math.round(a)+t,h-=a),c=Math.round(p+c)+e,t=.5>=Math.abs(p)&&.5<c,p=Math.round(p)+e,c-=p,t&&c&&(--p,c+=1),{x:a,y:p,width:h,height:c}}adjustForMissingColumns(a,p,h,c){const e=this.options.stacking;if(!h.isNull&&1<c.columnCount){const t=this.yAxis.options.reversedStacks;let i=0,l=t?0:-c.columnCount;k(this.yAxis.stacking&&this.yAxis.stacking.stacks,u=>{if(typeof h.x=="number"){const L=u[h.x.toString()];L&&(u=L.points[this.index],e?(u&&(i=l),L.hasValidPoints&&(t?l++:l--)):y(u)&&(u=Object.keys(L.points).filter(r=>!r.match(",")&&L.points[r]&&1<L.points[r].length).map(parseFloat).sort((r,S)=>S-r),i=u.indexOf(this.index),l=u.length))}}),a=(h.plotX||0)+((l-1)*c.paddedWidth+p)/2-p-i*c.paddedWidth}return a}translate(){const a=this,p=a.chart,h=a.options;var c=a.dense=2>a.closestPointRange*a.xAxis.transA;c=a.borderWidth=T(h.borderWidth,c?0:1);const e=a.xAxis,t=a.yAxis,i=h.threshold,l=T(h.minPointLength,5),u=a.getColumnMetrics(),L=u.width,r=a.pointXOffset=u.offset,S=a.dataMin,F=a.dataMax;let q=a.barW=Math.max(L,1+2*c),rt=a.translatedThreshold=t.getThreshold(i);p.inverted&&(rt-=.5),h.pointPadding&&(q=Math.ceil(q)),K.prototype.translate.apply(a),a.points.forEach(function(B){const s=T(B.yBottom,rt);var M=999+Math.abs(s),z=B.plotX||0;M=b(B.plotY,-M,t.len+M);let D=Math.min(M,s),V=Math.max(M,s)-D,o=L,g=z+r,m=q;l&&Math.abs(V)<l&&(V=l,z=!t.reversed&&!B.negative||t.reversed&&B.negative,v(i)&&v(F)&&B.y===i&&F<=i&&(t.min||0)<i&&(S!==F||(t.max||0)<=i)&&(z=!z,B.negative=!B.negative),D=Math.abs(D-rt)>l?s-l:rt-(z?l:0)),_(B.options.pointWidth)&&(o=m=Math.ceil(B.options.pointWidth),g-=Math.round((o-L)/2)),h.centerInCategory&&(g=a.adjustForMissingColumns(g,o,B,u)),B.barX=g,B.pointWidth=o,B.tooltipPos=p.inverted?[b(t.len+t.pos-p.plotLeft-M,t.pos-p.plotLeft,t.len+t.pos-p.plotLeft),e.len+e.pos-p.plotTop-g-m/2,V]:[e.left-p.plotLeft+g+m/2,b(M+t.pos-p.plotTop,t.pos-p.plotTop,t.len+t.pos-p.plotTop),V],B.shapeType=a.pointClass.prototype.shapeType||"roundedRect",B.shapeArgs=a.crispCol(g,B.isNull?rt:D,m,B.isNull?0:V)}),d(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(a,p){const h=this.options;var c=this.pointAttrToOptions||{},e=c.stroke||"borderColor";const t=c["stroke-width"]||"borderWidth";let i,l=a&&a.color||this.color,u=a&&a[e]||h[e]||l;c=a&&a.options.dashStyle||h.dashStyle;let L=a&&a[t]||h[t]||this[t]||0,r=T(a&&a.opacity,h.opacity,1);return a&&this.zones.length&&(i=a.getZone(),l=a.options.color||i&&(i.color||a.nonZonedColor)||this.color,i&&(u=i.borderColor||u,c=i.dashStyle||c,L=i.borderWidth||L)),p&&a&&(a=f(h.states[p],a.options.states&&a.options.states[p]||{}),p=a.brightness,l=a.color||typeof p<"u"&&N(l).brighten(a.brightness).get()||l,u=a[e]||u,L=a[t]||L,c=a.dashStyle||c,r=T(a.opacity,r)),e={fill:l,stroke:u,"stroke-width":L,opacity:r},c&&(e.dashstyle=c),e}drawPoints(a=this.points){const p=this,h=this.chart,c=p.options,e=h.renderer,t=c.animationLimit||250;let i;a.forEach(function(l){let u=l.graphic,L=!!u,r=u&&h.pointCount<t?"animate":"attr";v(l.plotY)&&l.y!==null?(i=l.shapeArgs,u&&l.hasNewShapeType()&&(u=u.destroy()),p.enabledDataSorting&&(l.startXPos=p.xAxis.reversed?-(i&&i.width||0):p.xAxis.width),u||(l.graphic=u=e[l.shapeType](i).add(l.group||p.group))&&p.enabledDataSorting&&h.hasRendered&&h.pointCount<t&&(u.attr({x:l.startXPos}),L=!0,r="animate"),u&&L&&u[r](f(i)),h.styledMode||u[r](p.pointAttribs(l,l.selected&&"select")).shadow(l.allowShadow!==!1&&c.shadow),u&&(u.addClass(l.getClassName(),!0),u.attr({visibility:l.visible?"inherit":"hidden"}))):u&&(l.graphic=u.destroy())})}drawTracker(a=this.points){const p=this,h=p.chart,c=h.pointer,e=function(i){const l=c.getPointFromEvent(i);typeof l<"u"&&p.options.enableMouseTracking&&(c.isDirectTouch=!0,l.onMouseOver(i))};let t;a.forEach(function(i){t=y(i.dataLabels)?i.dataLabels:i.dataLabel?[i.dataLabel]:[],i.graphic&&(i.graphic.element.point=i),t.forEach(function(l){l.div?l.div.point=i:l.element.point=i})}),p._hasTracking||(p.trackerGroups.forEach(function(i){p[i]&&(p[i].addClass("highcharts-tracker").on("mouseover",e).on("mouseout",function(l){c.onTrackerMouseOut(l)}),R&&p[i].on("touchstart",e),!h.styledMode&&p.options.cursor&&p[i].css({cursor:p.options.cursor}))}),p._hasTracking=!0),d(this,"afterDrawTracker")}remove(){const a=this,p=a.chart;p.hasRendered&&p.series.forEach(function(h){h.type===a.type&&(h.isDirty=!0)}),K.prototype.remove.apply(a,arguments)}}return w.defaultOptions=f(K.defaultOptions,W),I(w.prototype,{cropShoulder:0,directTouch:!0,getSymbol:x,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("column",w),w}),nt(A,"Core/Series/DataLabel.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(j,P,W){const{getDeferredAnimation:J}=j,{format:K}=P,{defined:Y,extend:U,fireEvent:O,isArray:N,isString:R,merge:x,objectEach:b,pick:_,splat:I}=W;var d;return function(y){function v(c,e,t,i,l){const u=this.chart;var L=this.isCartesian&&u.inverted;const r=this.enabledDataSorting;var S=c.plotX,F=c.plotY;const q=t.rotation;var rt=t.align;F=Y(S)&&Y(F)&&u.isInsidePlot(S,Math.round(F),{inverted:L,paneCoordinates:!0,series:this});let B=_(t.overflow,r?"none":"justify")==="justify";if(L=this.visible&&c.visible!==!1&&Y(S)&&(c.series.forceDL||r&&!B||F||_(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(S,L?i.x+1:i.y+i.height-1,{inverted:L,paneCoordinates:!0,series:this})),S=c.pos(),L&&S){q&&e.attr({align:rt}),rt=e.getBBox(!0);var s=[0,0],M=u.renderer.fontMetrics(e).b;if(i=U({x:S[0],y:Math.round(S[1]),width:0,height:0},i),U(t,{width:rt.width,height:rt.height}),q?(B=!1,s=u.renderer.rotCorr(M,q),M={x:i.x+(t.x||0)+i.width/2+s.x,y:i.y+(t.y||0)+{top:0,middle:.5,bottom:1}[t.verticalAlign]*i.height},s=[rt.x-Number(e.attr("x")),rt.y-Number(e.attr("y"))],r&&this.xAxis&&!B&&this.setDataLabelStartPos(c,e,l,F,M),e[l?"attr":"animate"](M)):(r&&this.xAxis&&!B&&this.setDataLabelStartPos(c,e,l,F,i),e.align(t,void 0,i),M=e.alignAttr),B&&0<=i.height)this.justifyDataLabel(e,t,M,rt,i,l);else if(_(t.crop,!0)){let{x:z,y:D}=M;z+=s[0],D+=s[1],L=u.isInsidePlot(z,D,{paneCoordinates:!0,series:this})&&u.isInsidePlot(z+rt.width,D+rt.height,{paneCoordinates:!0,series:this})}t.shape&&!q&&e[l?"attr":"animate"]({anchorX:S[0],anchorY:S[1]})}l&&r&&(e.placed=!1),L||r&&!B?e.show():(e.hide(),e.placed=!1)}function f(c,e){var t=e.filter;return t?(e=t.operator,c=c[t.property],t=t.value,e===">"&&c>t||e==="<"&&c<t||e===">="&&c>=t||e==="<="&&c<=t||e==="=="&&c==t||e==="==="&&c===t):!0}function T(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function k(c){const e=this.hasRendered||0,t=this.initDataLabelsGroup().attr({opacity:+e});return!e&&t&&(this.visible&&t.show(),this.options.animation?t.animate({opacity:1},c):t.attr({opacity:1})),t}function w(c=this.points){var e,t;const i=this,l=i.chart,u=i.options,L=l.renderer,{backgroundColor:r,plotBackgroundColor:S}=l.options.chart,F=l.options.plotOptions,q=L.getContrast(R(S)&&S||R(r)&&r||"#000000");let rt=u.dataLabels,B,s;var M=I(rt)[0];const z=M.animation;M=M.defer?J(l,z,i):{defer:0,duration:0},rt=a(a((e=F==null?void 0:F.series)===null||e===void 0?void 0:e.dataLabels,(t=F==null?void 0:F[i.type])===null||t===void 0?void 0:t.dataLabels),rt),O(this,"drawDataLabels"),(N(rt)||rt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(M),c.forEach(D=>{var V;const o=D.dataLabels||[];for(B=I(a(rt,D.dlOptions||((V=D.options)===null||V===void 0?void 0:V.dataLabels))),B.forEach((g,m)=>{var H,G=g.enabled&&(!D.isNull||D.dataLabelOnNull)&&f(D,g);const $=D.connectors?D.connectors[m]:D.connector,tt=g.style||{};let it={},at=o[m],ht=!at;const pt=_(g.distance,D.labelDistance);if(G){var E=_(g[D.formatPrefix+"Format"],g.format),C=D.getLabelConfig();if(C=Y(E)?K(E,C,l):(g[D.formatPrefix+"Formatter"]||g.formatter).call(C,g),E=g.rotation,l.styledMode||(tt.color=_(g.color,tt.color,R(i.color)?i.color:void 0,"#000000"),tt.color==="contrast"?(D.contrastColor=L.getContrast(D.color||i.color),tt.color=!Y(pt)&&g.inside||0>(pt||0)||u.stacking?D.contrastColor:q):delete D.contrastColor,u.cursor&&(tt.cursor=u.cursor)),it={r:g.borderRadius||0,rotation:E,padding:g.padding,zIndex:1},!l.styledMode){const{backgroundColor:Z,borderColor:X}=g;it.fill=Z==="auto"?D.color:Z,it.stroke=X==="auto"?D.color:X,it["stroke-width"]=g.borderWidth}b(it,(Z,X)=>{typeof Z>"u"&&delete it[X]})}!at||G&&Y(C)&&!!at.div==!!g.useHTML&&(at.rotation&&g.rotation||at.rotation===g.rotation)||(at=void 0,ht=!0,$&&D.connector&&(D.connector=D.connector.destroy(),D.connectors&&(D.connectors.length===1?delete D.connectors:delete D.connectors[m]))),G&&Y(C)&&(at?it.text=C:(at=E?L.text(C,0,0,g.useHTML).addClass("highcharts-data-label"):L.label(C,0,0,g.shape,void 0,void 0,g.useHTML,void 0,"data-label"))&&at.addClass(" highcharts-data-label-color-"+D.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":"")),at&&(at.options=g,at.attr(it),l.styledMode||at.css(tt).shadow(g.shadow),(G=g[D.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(at.setTextPath(((H=D.getDataLabelPath)===null||H===void 0?void 0:H.call(D,at))||D.graphic,G),D.dataLabelPath&&!G.enabled&&(D.dataLabelPath=D.dataLabelPath.destroy())),at.added||at.add(s),i.alignDataLabel(D,at,g,void 0,ht),at.isActive=!0,o[m]&&o[m]!==at&&o[m].destroy(),o[m]=at))}),V=o.length;V--;)o[V].isActive?o[V].isActive=!1:(o[V].destroy(),o.splice(V,1));D.dataLabel=o[0],D.dataLabels=o})),O(this,"afterDrawDataLabels")}function n(c,e,t,i,l,u){const L=this.chart,r=e.align,S=e.verticalAlign,F=c.box?0:c.padding||0;let{x:q=0,y:rt=0}=e,B,s;return B=(t.x||0)+F,0>B&&(r==="right"&&0<=q?(e.align="left",e.inside=!0):q-=B,s=!0),B=(t.x||0)+i.width-F,B>L.plotWidth&&(r==="left"&&0>=q?(e.align="right",e.inside=!0):q+=L.plotWidth-B,s=!0),B=t.y+F,0>B&&(S==="bottom"&&0<=rt?(e.verticalAlign="top",e.inside=!0):rt-=B,s=!0),B=(t.y||0)+i.height-F,B>L.plotHeight&&(S==="top"&&0>=rt?(e.verticalAlign="bottom",e.inside=!0):rt+=L.plotHeight-B,s=!0),s&&(e.x=q,e.y=rt,c.placed=!u,c.align(e,void 0,l)),s}function a(c,e){let t=[],i;if(N(c)&&!N(e))t=c.map(function(l){return x(l,e)});else if(N(e)&&!N(c))t=e.map(function(l){return x(c,l)});else if(!N(c)&&!N(e))t=x(c,e);else if(N(c)&&N(e))for(i=Math.max(c.length,e.length);i--;)t[i]=x(c[i],e[i]);return t}function p(c,e,t,i,l){const u=this.chart,L=u.inverted,r=this.xAxis,S=r.reversed,F=L?e.height/2:e.width/2;c=(c=c.pointWidth)?c/2:0,e.startXPos=L?l.x:S?-F-c:r.width-F+c,e.startYPos=L?S?this.yAxis.height-F+c:-F-c:l.y,i?e.visibility==="hidden"&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),u.hasRendered&&(t&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}const h=[];y.compose=function(c){W.pushUnique(h,c)&&(c=c.prototype,c.initDataLabelsGroup=T,c.initDataLabels=k,c.alignDataLabel=v,c.drawDataLabels=w,c.justifyDataLabel=n,c.setDataLabelStartPos=p)}}(d||(d={})),d}),nt(A,"Series/Column/ColumnDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{series:J}=P,{merge:K,pick:Y}=W;var U;return function(O){function N(x,b,_,I,d){let y=this.chart.inverted;var v=x.series;let f=(v.xAxis?v.xAxis.len:this.chart.plotSizeX)||0;v=(v.yAxis?v.yAxis.len:this.chart.plotSizeY)||0;var T=x.dlBox||x.shapeArgs;let k=Y(x.below,x.plotY>Y(this.translatedThreshold,v)),w=Y(_.inside,!!this.options.stacking);T&&(I=K(T),0>I.y&&(I.height+=I.y,I.y=0),T=I.y+I.height-v,0<T&&T<I.height&&(I.height-=T),y&&(I={x:v-I.y-I.height,y:f-I.x-I.width,width:I.height,height:I.width}),w||(y?(I.x+=k?0:I.width,I.width=0):(I.y+=k?I.height:0,I.height=0))),_.align=Y(_.align,!y||w?"center":k?"right":"left"),_.verticalAlign=Y(_.verticalAlign,y||w?"middle":k?"top":"bottom"),J.prototype.alignDataLabel.call(this,x,b,_,I,d),_.inside&&x.contrastColor&&b.css({color:x.contrastColor})}const R=[];O.compose=function(x){j.compose(J),W.pushUnique(R,x)&&(x.prototype.alignDataLabel=N)}}(U||(U={})),U}),nt(A,"Series/Bar/BarSeries.js",[A["Series/Column/ColumnSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{extend:J,merge:K}=W;class Y extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return Y.defaultOptions=K(j.defaultOptions,{}),J(Y.prototype,{inverted:!0}),P.registerSeriesType("bar",Y),Y}),nt(A,"Series/Scatter/ScatterSeriesDefaults.js",[],function(){return{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 0.8em"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}}}),nt(A,"Series/Scatter/ScatterSeries.js",[A["Series/Scatter/ScatterSeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W){const{column:J,line:K}=P.seriesTypes,{addEvent:Y,extend:U,merge:O}=W;class N extends K{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const x=this,b=this.options.jitter,_=this.points.length;b&&this.points.forEach(function(I,d){["x","y"].forEach(function(y,v){let f="plot"+y.toUpperCase(),T,k;if(b[y]&&!I.isNull){var w=x[y+"Axis"];k=b[y]*w.transA,w&&!w.isLog&&(T=Math.max(0,I[f]-k),w=Math.min(w.len,I[f]+k),v=1e4*Math.sin(d+v*_),v-=Math.floor(v),I[f]=T+(w-T)*v,y==="x"&&(I.clientX=I.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return N.defaultOptions=O(K.defaultOptions,j),U(N.prototype,{drawTracker:J.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Y(N,"afterTranslate",function(){this.applyJitter()}),P.registerSeriesType("scatter",N),N}),nt(A,"Series/CenteredUtilities.js",[A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Utilities.js"]],function(j,P,W){const{deg2rad:J}=j,{fireEvent:K,isNumber:Y,pick:U,relativeLength:O}=W;var N;return function(R){R.getCenter=function(){var x=this.options,b=this.chart;const _=2*(x.slicedOffset||0),I=b.plotWidth-2*_,d=b.plotHeight-2*_;var y=x.center;const v=Math.min(I,d),f=x.thickness;var T=x.size;let k=x.innerSize||0;for(typeof T=="string"&&(T=parseFloat(T)),typeof k=="string"&&(k=parseFloat(k)),x=[U(y[0],"50%"),U(y[1],"50%"),U(T&&0>T?void 0:x.size,"100%"),U(k&&0>k?void 0:x.innerSize||0,"0%")],!b.angular||this instanceof P||(x[3]=0),y=0;4>y;++y)T=x[y],b=2>y||y===2&&/%$/.test(T),x[y]=O(T,[I,d,v,x[2]][y])+(b?_:0);return x[3]>x[2]&&(x[3]=x[2]),Y(f)&&2*f<x[2]&&0<f&&(x[3]=x[2]-2*f),K(this,"afterGetCenter",{positions:x}),x},R.getStartAndEndRadians=function(x,b){return x=Y(x)?x:0,b=Y(b)&&b>x&&360>b-x?b:x+360,{start:J*(x+-90),end:J*(b+-90)}}}(N||(N={})),N}),nt(A,"Series/Pie/PiePoint.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(j,P,W){const{setAnimation:J}=j,{addEvent:K,defined:Y,extend:U,isNumber:O,pick:N,relativeLength:R}=W;class x extends P{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const _=this.labelPosition,I=this.series.options.dataLabels,d=this.connectorShapes;let y=I.connectorShape;return d[y]&&(y=d[y]),y.call(this,{x:_.computed.x,y:_.computed.y,alignment:_.alignment},_.connectorPosition,I)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(_){const I=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(I.x,I.y,I.r+_,I.r+_,{innerR:I.r-1,start:I.start,end:I.end,borderRadius:I.borderRadius})}init(){super.init.apply(this,arguments),this.name=N(this.name,"Slice");const _=I=>{this.slice(I.type==="select")};return K(this,"select",_),K(this,"unselect",_),this}isValid(){return O(this.y)&&0<=this.y}setVisible(_,I){const d=this.series,y=d.chart,v=d.options.ignoreHiddenPoint;I=N(I,v),_!==this.visible&&(this.visible=this.options.visible=_=typeof _>"u"?!this.visible:_,d.options.data[d.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(f=>{this[f]&&this[f][_?"show":"hide"](_)}),this.legendItem&&y.legend.colorizeItem(this,_),_||this.state!=="hover"||this.setState(""),v&&(d.isDirty=!0),I&&y.redraw())}slice(_,I,d){const y=this.series;J(d,y.chart),N(I,!0),this.sliced=this.options.sliced=Y(_)?_:!this.sliced,y.options.data[y.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return U(x.prototype,{connectorShapes:{fixedOffset:function(b,_,I){const d=_.breakAt;return _=_.touchingSliceAt,[["M",b.x,b.y],I.softConnector?["C",b.x+(b.alignment==="left"?-5:5),b.y,2*d.x-_.x,2*d.y-_.y,d.x,d.y]:["L",d.x,d.y],["L",_.x,_.y]]},straight:function(b,_){return _=_.touchingSliceAt,[["M",b.x,b.y],["L",_.x,_.y]]},crookedLine:function(b,_,I){const{breakAt:d,touchingSliceAt:y}=_;({series:_}=this);const[v,f,T]=_.center,k=T/2,w=_.chart.plotWidth,n=_.chart.plotLeft;_=b.alignment==="left";const{x:a,y:p}=b;return I.crookDistance?(b=R(I.crookDistance,1),b=_?v+k+(w+n-v-k)*(1-b):n+(v-k)*b):b=v+(f-p)*Math.tan((this.angle||0)-Math.PI/2),I=[["M",a,p]],(_?b<=a&&b>=d.x:b>=a&&b<=d.x)&&I.push(["L",b,p]),I.push(["L",d.x,d.y],["L",y.x,y.y]),I}}}),x}),nt(A,"Series/Pie/PieSeriesDefaults.js",[],function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}}}),nt(A,"Series/Pie/PieSeries.js",[A["Series/CenteredUtilities.js"],A["Series/Column/ColumnSeries.js"],A["Core/Globals.js"],A["Series/Pie/PiePoint.js"],A["Series/Pie/PieSeriesDefaults.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/Symbols.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y,U,O,N){const{getStartAndEndRadians:R}=j;({noop:W}=W);const{clamp:x,extend:b,fireEvent:_,merge:I,pick:d,relativeLength:y}=N;class v extends Y{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(T){const k=this,w=k.points,n=k.startAngleRad;T||w.forEach(function(a){const p=a.graphic,h=a.shapeArgs;p&&h&&(p.attr({r:d(a.startR,k.center&&k.center[3]/2),start:n,end:n}),p.animate({r:h.r,start:h.start,end:h.end},k.options.animation))})}drawEmpty(){const T=this.startAngleRad,k=this.endAngleRad,w=this.options;let n,a;this.total===0&&this.center?(n=this.center[0],a=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(n,a,this.center[1]/2,0,T,k).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:O.arc(n,a,this.center[2]/2,0,{start:T,end:k,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":w.borderWidth,fill:w.fillColor||"none",stroke:w.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){const T=this.chart.renderer;this.points.forEach(function(k){k.graphic&&k.hasNewShapeType()&&(k.graphic=k.graphic.destroy()),k.graphic||(k.graphic=T[k.shapeType](k.shapeArgs).add(k.series.group),k.delayedRendering=!0)})}generatePoints(){super.generatePoints(),this.updateTotals()}getX(T,k,w){const n=this.center,a=this.radii?this.radii[w.index]||0:n[2]/2;return T=Math.asin(x((T-n[1])/(a+w.labelDistance),-1,1)),n[0]+(k?-1:1)*Math.cos(T)*(a+w.labelDistance)+(0<w.labelDistance?(k?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const T=this,k=T.chart;let w,n,a,p;this.drawEmpty(),T.group&&!k.styledMode&&T.group.shadow(T.options.shadow),T.points.forEach(function(h){const c={};n=h.graphic,!h.isNull&&n?(p=h.shapeArgs,w=h.getTranslate(),k.styledMode||(a=T.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(n.setRadialReference(T.center).attr(p).attr(w),k.styledMode||n.attr(a).attr({"stroke-linejoin":"round"}),h.delayedRendering=!1):(n.setRadialReference(T.center),k.styledMode||I(!0,c,a),I(!0,c,p,w),n.animate(c)),n.attr({visibility:h.visible?"inherit":"hidden"}),n.addClass(h.getClassName(),!0)):n&&(h.graphic=n.destroy())})}sortByAngle(T,k){T.sort(function(w,n){return typeof w.angle<"u"&&(n.angle-w.angle)*k})}translate(T){_(this,"translate"),this.generatePoints();var k=this.options;const w=k.slicedOffset,n=w+(k.borderWidth||0);var a=R(k.startAngle,k.endAngle);const p=this.startAngleRad=a.start;a=(this.endAngleRad=a.end)-p;const h=this.points,c=k.dataLabels.distance;k=k.ignoreHiddenPoint;const e=h.length;let t,i,l,u=0;for(T||(this.center=T=this.getCenter()),i=0;i<e;i++){l=h[i];var L=p+u*a;!l.isValid()||k&&!l.visible||(u+=l.percentage/100);var r=p+u*a,S={x:T[0],y:T[1],r:T[2]/2,innerR:T[3]/2,start:Math.round(1e3*L)/1e3,end:Math.round(1e3*r)/1e3};l.shapeType="arc",l.shapeArgs=S,l.labelDistance=d(l.options.dataLabels&&l.options.dataLabels.distance,c),l.labelDistance=y(l.labelDistance,S.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),r=(r+L)/2,r>1.5*Math.PI?r-=2*Math.PI:r<-Math.PI/2&&(r+=2*Math.PI),l.slicedTranslation={translateX:Math.round(Math.cos(r)*w),translateY:Math.round(Math.sin(r)*w)},S=Math.cos(r)*T[2]/2,t=Math.sin(r)*T[2]/2,l.tooltipPos=[T[0]+.7*S,T[1]+.7*t],l.half=r<-Math.PI/2||r>Math.PI/2?1:0,l.angle=r,L=Math.min(n,l.labelDistance/5),l.labelPosition={natural:{x:T[0]+S+Math.cos(r)*l.labelDistance,y:T[1]+t+Math.sin(r)*l.labelDistance},computed:{},alignment:0>l.labelDistance?"center":l.half?"right":"left",connectorPosition:{breakAt:{x:T[0]+S+Math.cos(r)*L,y:T[1]+t+Math.sin(r)*L},touchingSliceAt:{x:T[0]+S,y:T[1]+t}}}}_(this,"afterTranslate")}updateTotals(){const T=this.points,k=T.length,w=this.options.ignoreHiddenPoint;let n,a,p=0;for(n=0;n<k;n++)a=T[n],!a.isValid()||w&&!a.visible||(p+=a.y);for(this.total=p,n=0;n<k;n++)a=T[n],a.percentage=0<p&&(a.visible||!w)?a.y/p*100:0,a.total=p}}return v.defaultOptions=I(Y.defaultOptions,K),b(v.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:P.prototype.drawTracker,getCenter:j.getCenter,getSymbol:W,isCartesian:!1,noSharedTooltip:!0,pointAttribs:P.prototype.pointAttribs,pointClass:J,requireSorting:!1,searchPoint:W,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("pie",v),v}),nt(A,"Series/Pie/PieDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Globals.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,P,W,J,K){const{noop:Y}=P,{distribute:U}=W,{series:O}=J,{arrayMax:N,clamp:R,defined:x,merge:b,pick:_,relativeLength:I}=K;var d;return function(y){function v(){const n=this,a=n.data,p=n.chart,h=n.options.dataLabels||{},c=h.connectorPadding,e=p.plotWidth,t=p.plotHeight,i=p.plotLeft,l=Math.round(p.chartWidth/3),u=n.center,L=u[2]/2,r=u[1],S=[[],[]],F=[0,0,0,0],q=n.dataLabelPositioners;let rt,B,s,M,z,D,V,o,g,m,H,G;n.visible&&(h.enabled||n._hasPointLabels)&&(a.forEach(function($){$.dataLabel&&$.visible&&$.dataLabel.shortened&&($.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),$.dataLabel.shortened=!1)}),O.prototype.drawDataLabels.apply(n),a.forEach(function($){$.dataLabel&&($.visible?(S[$.half].push($),$.dataLabel._pos=null,!x(h.style.width)&&!x($.options.dataLabels&&$.options.dataLabels.style&&$.options.dataLabels.style.width)&&$.dataLabel.getBBox().width>l&&($.dataLabel.css({width:Math.round(.7*l)+"px"}),$.dataLabel.shortened=!0)):($.dataLabel=$.dataLabel.destroy(),$.dataLabels&&$.dataLabels.length===1&&delete $.dataLabels))}),S.forEach(($,tt)=>{const it=$.length,at=[];let ht,pt=0;if(it){if(n.sortByAngle($,tt-.5),0<n.maxLabelDistance){var E=Math.max(0,r-L-n.maxLabelDistance);ht=Math.min(r+L+n.maxLabelDistance,p.plotHeight),$.forEach(function(C){0<C.labelDistance&&C.dataLabel&&(C.top=Math.max(0,r-L-C.labelDistance),C.bottom=Math.min(r+L+C.labelDistance,p.plotHeight),pt=C.dataLabel.getBBox().height||21,C.distributeBox={target:C.labelPosition.natural.y-C.top+pt/2,size:pt,rank:C.y},at.push(C.distributeBox))}),E=ht+pt-E,U(at,E,E/5)}for(H=0;H<it;H++){if(rt=$[H],D=rt.labelPosition,M=rt.dataLabel,m=rt.visible===!1?"hidden":"inherit",g=E=D.natural.y,at&&x(rt.distributeBox)&&(typeof rt.distributeBox.pos>"u"?m="hidden":(V=rt.distributeBox.size,g=q.radialDistributionY(rt))),delete rt.positionIndex,h.justify)o=q.justify(rt,L,u);else switch(h.alignTo){case"connectors":o=q.alignToConnectors($,tt,e,i);break;case"plotEdges":o=q.alignToPlotEdges(M,tt,e,i);break;default:o=q.radialDistributionX(n,rt,g,E)}M._attr={visibility:m,align:D.alignment},G=rt.options.dataLabels||{},M._pos={x:o+_(G.x,h.x)+({left:c,right:-c}[D.alignment]||0),y:g+_(G.y,h.y)-M.getBBox().height/2},D&&(D.computed.x=o,D.computed.y=g),_(h.crop,!0)&&(z=M.getBBox().width,E=null,o-z<c&&tt===1?(E=Math.round(z-o+c),F[3]=Math.max(E,F[3])):o+z>e-c&&tt===0&&(E=Math.round(o+z-e+c),F[1]=Math.max(E,F[1])),0>g-V/2?F[0]=Math.max(Math.round(-g+V/2),F[0]):g+V/2>t&&(F[2]=Math.max(Math.round(g+V/2-t),F[2])),M.sideOverflow=E)}}}),N(F)===0||this.verifyDataLabelOverflow(F))&&(this.placeDataLabels(),this.points.forEach(function($){if(G=b(h,$.options.dataLabels),B=_(G.connectorWidth,1)){let tt;s=$.connector,(M=$.dataLabel)&&M._pos&&$.visible&&0<$.labelDistance?(m=M._attr.visibility,(tt=!s)&&($.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+$.colorIndex+($.className?" "+$.className:"")).add(n.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":B,stroke:G.connectorColor||$.color||"#666666"})),s[tt?"attr":"animate"]({d:$.getConnectorPath()}),s.attr("visibility",m)):s&&($.connector=s.destroy())}}))}function f(){this.points.forEach(function(n){let a=n.dataLabel,p;a&&n.visible&&((p=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](p),a.moved=!0):a&&a.attr({y:-9999})),delete n.distributeBox},this)}function T(n){let a=this.center,p=this.options,h=p.center,c=p.minSize||80,e,t=p.size!==null;return t||(h[0]!==null?e=Math.max(a[2]-Math.max(n[1],n[3]),c):(e=Math.max(a[2]-n[1]-n[3],c),a[0]+=(n[3]-n[1])/2),h[1]!==null?e=R(e,c,a[2]-Math.max(n[0],n[2])):(e=R(e,c,a[2]-n[0]-n[2]),a[1]+=(n[0]-n[2])/2),e<a[2]?(a[2]=e,a[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,I(p.innerSize||0,e)),e),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const k=[],w={radialDistributionY:function(n){return n.top+n.distributeBox.pos},radialDistributionX:function(n,a,p,h){return n.getX(p<a.top+2||p>a.bottom-2?h:p,a.half,a)},justify:function(n,a,p){return p[0]+(n.half?-1:1)*(a+n.labelDistance)},alignToPlotEdges:function(n,a,p,h){return n=n.getBBox().width,a?n+h:p-n-h},alignToConnectors:function(n,a,p,h){let c=0,e;return n.forEach(function(t){e=t.dataLabel.getBBox().width,e>c&&(c=e)}),a?c+h:p-c-h}};y.compose=function(n){j.compose(O),K.pushUnique(k,n)&&(n=n.prototype,n.dataLabelPositioners=w,n.alignDataLabel=Y,n.drawDataLabels=v,n.placeDataLabels=f,n.verifyDataLabelOverflow=T)}}(d||(d={})),d}),nt(A,"Extensions/OverlappingDataLabels.js",[A["Core/Chart/Chart.js"],A["Core/Utilities.js"]],function(j,P){function W(R,x){let b,_=!1;return R&&(b=R.newOpacity,R.oldOpacity!==b&&(R.alignAttr&&R.placed?(R[b?"removeClass":"addClass"]("highcharts-data-label-hidden"),_=!0,R.alignAttr.opacity=b,R[R.isOld?"animate":"attr"](R.alignAttr,null,function(){x.styledMode||R.css({pointerEvents:b?"auto":"none"})}),K(x,"afterHideOverlappingLabel")):R.attr({opacity:b})),R.isOld=!0),_}const{addEvent:J,fireEvent:K,isArray:Y,isNumber:U,objectEach:O,pick:N}=P;J(j,"render",function(){let R=this,x=[];(this.labelCollectors||[]).forEach(function(b){x=x.concat(b())}),(this.yAxis||[]).forEach(function(b){b.stacking&&b.options.stackLabels&&!b.options.stackLabels.allowOverlap&&O(b.stacking.stacks,function(_){O(_,function(I){I.label&&x.push(I.label)})})}),(this.series||[]).forEach(function(b){var _=b.options.dataLabels;b.visible&&(_.enabled!==!1||b._hasPointLabels)&&(_=I=>I.forEach(d=>{d.visible&&(Y(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[]).forEach(function(y){const v=y.options;y.labelrank=N(v.labelrank,d.labelrank,d.shapeArgs&&d.shapeArgs.height),v.allowOverlap?(y.oldOpacity=y.opacity,y.newOpacity=1,W(y,R)):x.push(y)})}),_(b.nodes||[]),_(b.points))}),this.hideOverlappingLabels(x)}),j.prototype.hideOverlappingLabels=function(R){let x=this,b=R.length,_=x.renderer;var I;let d,y,v,f,T=!1;var k=function(w){let n,a;var p;let h=w.box?0:w.padding||0,c=p=0,e,t;if(w&&(!w.alignAttr||w.placed))return n=w.alignAttr||{x:w.attr("x"),y:w.attr("y")},a=w.parentGroup,w.width||(p=w.getBBox(),w.width=p.width,w.height=p.height,p=_.fontMetrics(w.element).h),e=w.width-2*h,(t={left:"0",center:"0.5",right:"1"}[w.alignValue])?c=+t*e:U(w.x)&&Math.round(w.x)!==w.translateX&&(c=w.x-w.translateX),{x:n.x+(a.translateX||0)+h-(c||0),y:n.y+(a.translateY||0)+h-p,width:w.width-2*h,height:w.height-2*h}};for(d=0;d<b;d++)(I=R[d])&&(I.oldOpacity=I.opacity,I.newOpacity=1,I.absoluteBox=k(I));for(R.sort(function(w,n){return(n.labelrank||0)-(w.labelrank||0)}),d=0;d<b;d++)for(v=(k=R[d])&&k.absoluteBox,I=d+1;I<b;++I)f=(y=R[I])&&y.absoluteBox,!v||!f||k===y||k.newOpacity===0||y.newOpacity===0||k.visibility==="hidden"||y.visibility==="hidden"||f.x>=v.x+v.width||f.x+f.width<=v.x||f.y>=v.y+v.height||f.y+f.height<=v.y||((k.labelrank<y.labelrank?k:y).newOpacity=0);R.forEach(function(w){W(w,x)&&(T=!0)}),T&&K(x,"afterHideAllOverlappingLabels")}}),nt(A,"Extensions/BorderRadius.js",[A["Core/Defaults.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Utilities.js"]],function(j,P,W,J,K,Y){const{defaultOptions:U}=j;({seriesTypes:j}=W);const{addEvent:O,extend:N,isObject:R,merge:x,relativeLength:b}=Y,_={radius:0,scope:"stack",where:void 0},I=(d,y)=>(R(d)||(d={radius:d||0}),x(_,y,d));if(J.symbolCustomAttribs.indexOf("borderRadius")===-1){J.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const d=K.prototype.symbols.arc;K.prototype.symbols.arc=function(v,f,T,k,w={}){v=d(v,f,T,k,w);const{innerR:n=0,r:a=T,start:p=0,end:h=0}=w;if(w.open||!w.borderRadius)return v;for(T=h-p,f=Math.sin(T/2),w=Math.max(Math.min(b(w.borderRadius||0,a-n),(a-n)/2,a*f/(1+f)),0),T=Math.min(w,T/Math.PI*2*n),f=v.length-1;f--;){let L,r,S;k=v;var c=f,e=1<f?T:w,t=k[c],i=k[c+1];if(i[0]==="Z"&&(i=k[0]),t[0]!=="M"&&t[0]!=="L"||i[0]!=="A"?t[0]!=="A"||i[0]!=="M"&&i[0]!=="L"||(S=i,r=t):(S=t,r=i,L=!0),S&&r&&r.params){t=r[1];var l=r[5];i=r.params;const{start:F,end:q,cx:rt,cy:B}=i;var u=l?t-e:t+e;const s=u?Math.asin(e/u):0;l=l?s:-s,u*=Math.cos(s),L?(i.start=F+l,S[1]=rt+u*Math.cos(F),S[2]=B+u*Math.sin(F),k.splice(c+1,0,["A",e,e,0,0,1,rt+t*Math.cos(i.start),B+t*Math.sin(i.start)])):(i.end=q-l,r[6]=rt+t*Math.cos(i.end),r[7]=B+t*Math.sin(i.end),k.splice(c+1,0,["A",e,e,0,0,1,rt+u*Math.cos(q),B+u*Math.sin(q)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return v};const y=K.prototype.symbols.roundedRect;K.prototype.symbols.roundedRect=function(v,f,T,k,w={}){const n=y(v,f,T,k,w),{r:a=0,brBoxHeight:p=k,brBoxY:h=f}=w;var c=f-h,e=h+p-(f+k);w=-.1<c-a?0:a;const t=-.1<e-a?0:a;var i=Math.max(w&&c,0);const l=Math.max(t&&e,0);e=[v+w,f],c=[v+T-w,f];const u=[v+T,f+w],L=[v+T,f+k-t],r=[v+T-t,f+k],S=[v+t,f+k],F=[v,f+k-t],q=[v,f+w];if(i){const rt=Math.sqrt(Math.pow(w,2)-Math.pow(w-i,2));e[0]-=rt,c[0]+=rt,u[1]=q[1]=f+w-i}return k<w-i&&(i=Math.sqrt(Math.pow(w,2)-Math.pow(w-i-k,2)),u[0]=L[0]=v+T-w+i,r[0]=Math.min(u[0],r[0]),S[0]=Math.max(L[0],S[0]),F[0]=q[0]=v+w-i,u[1]=q[1]=f+k),l&&(i=Math.sqrt(Math.pow(t,2)-Math.pow(t-l,2)),r[0]+=i,S[0]-=i,L[1]=F[1]=f+k-t+l),k<t-l&&(k=Math.sqrt(Math.pow(t,2)-Math.pow(t-l-k,2)),u[0]=L[0]=v+T-t+k,c[0]=Math.min(u[0],c[0]),e[0]=Math.max(L[0],e[0]),F[0]=q[0]=v+t-k,L[1]=F[1]=f),n.length=0,n.push(["M",...e],["L",...c],["A",w,w,0,0,1,...u],["L",...L],["A",t,t,0,0,1,...r],["L",...S],["A",t,t,0,0,1,...F],["L",...q],["A",w,w,0,0,1,...e],["Z"]),n},O(j.pie,"afterTranslate",function(){const v=I(this.options.borderRadius);for(const f of this.points){const T=f.shapeArgs;T&&(T.borderRadius=b(v.radius,(T.r||0)-(T.innerR||0)))}}),O(P,"afterColumnTranslate",function(){var v,f;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:n,yAxis:a}=this,p=n.stacking==="percent";var T=(f=(v=U.plotOptions)===null||v===void 0?void 0:v[this.type])===null||f===void 0?void 0:f.borderRadius;v=I(n.borderRadius,R(T)?T:{}),f=a.options.reversed;for(const h of this.points)if({shapeArgs:T}=h,h.shapeType==="roundedRect"&&T){const{width:c=0,height:e=0,y:t=0}=T;var k=t,w=e;v.scope==="stack"&&h.stackTotal&&(k=a.translate(p?100:h.stackTotal,!1,!0,!1,!0),w=a.translate(n.threshold||0,!1,!0,!1,!0),w=this.crispCol(0,Math.min(k,w),0,Math.abs(k-w)),k=w.y,w=w.height);const i=(h.negative?-1:1)*(f?-1:1)===-1;let l=v.where;!l&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(l="all"),l||(l="end");const u=Math.min(b(v.radius,c),c/2,l==="all"?e/2:1/0)||0;l==="end"&&(i&&(k-=u),w+=u),N(T,{brBoxHeight:w,brBoxY:k,r:u})}}},{order:9})}return P={optionsToObject:I},P}),nt(A,"Core/Responsive.js",[A["Core/Utilities.js"]],function(j){const{diffObjects:P,extend:W,find:J,merge:K,pick:Y,uniqueKey:U}=j;var O;return function(N){function R(_,I){const d=_.condition;(d.callback||function(){return this.chartWidth<=Y(d.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=Y(d.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=Y(d.minWidth,0)&&this.chartHeight>=Y(d.minHeight,0)}).call(this)&&I.push(_._id)}function x(_,I){const d=this.options.responsive;var y=this.currentResponsive;let v=[];!I&&d&&d.rules&&d.rules.forEach(f=>{typeof f._id>"u"&&(f._id=U()),this.matchResponsiveRule(f,v)},this),I=K(...v.map(f=>J((d||{}).rules||[],T=>T._id===f)).map(f=>f&&f.chartOptions)),I.isResponsiveOptions=!0,v=v.toString()||void 0,v!==(y&&y.ruleIds)&&(y&&this.update(y.undoOptions,_,!0),v?(y=P(I,this.options,!0,this.collectionsWithUpdate),y.isResponsiveOptions=!0,this.currentResponsive={ruleIds:v,mergedOptions:I,undoOptions:y},this.update(I,_,!0)):this.currentResponsive=void 0)}const b=[];N.compose=function(_){return j.pushUnique(b,_)&&W(_.prototype,{matchResponsiveRule:R,setResponsive:x}),_}}(O||(O={})),O}),nt(A,"masters/highcharts.src.js",[A["Core/Globals.js"],A["Core/Utilities.js"],A["Core/Defaults.js"],A["Core/Animation/Fx.js"],A["Core/Animation/AnimationUtilities.js"],A["Core/Renderer/HTML/AST.js"],A["Core/Templating.js"],A["Core/Renderer/RendererUtilities.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Renderer/SVG/SVGRenderer.js"],A["Core/Renderer/HTML/HTMLElement.js"],A["Core/Renderer/HTML/HTMLRenderer.js"],A["Core/Axis/Axis.js"],A["Core/Axis/DateTimeAxis.js"],A["Core/Axis/LogarithmicAxis.js"],A["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],A["Core/Axis/Tick.js"],A["Core/Tooltip.js"],A["Core/Series/Point.js"],A["Core/Pointer.js"],A["Core/Legend/Legend.js"],A["Core/Chart/Chart.js"],A["Core/Axis/Stacking/StackingAxis.js"],A["Core/Axis/Stacking/StackItem.js"],A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Series/Column/ColumnSeries.js"],A["Series/Column/ColumnDataLabel.js"],A["Series/Pie/PieSeries.js"],A["Series/Pie/PieDataLabel.js"],A["Core/Series/DataLabel.js"],A["Core/Responsive.js"],A["Core/Color/Color.js"],A["Core/Time.js"]],function(j,P,W,J,K,Y,U,O,N,R,x,b,_,I,d,y,v,f,T,k,w,n,a,p,h,c,e,t,i,l,u,L,r,S){return j.animate=K.animate,j.animObject=K.animObject,j.getDeferredAnimation=K.getDeferredAnimation,j.setAnimation=K.setAnimation,j.stop=K.stop,j.timers=J.timers,j.AST=Y,j.Axis=_,j.Chart=n,j.chart=n.chart,j.Fx=J,j.Legend=w,j.PlotLineOrBand=y,j.Point=T,j.Pointer=k,j.Series=h,j.StackItem=p,j.SVGElement=N,j.SVGRenderer=R,j.Templating=U,j.Tick=v,j.Time=S,j.Tooltip=f,j.Color=r,j.color=r.parse,b.compose(R),x.compose(N),k.compose(n),w.compose(n),j.defaultOptions=W.defaultOptions,j.getOptions=W.getOptions,j.time=W.defaultTime,j.setOptions=W.setOptions,j.dateFormat=U.dateFormat,j.format=U.format,j.numberFormat=U.numberFormat,j.addEvent=P.addEvent,j.arrayMax=P.arrayMax,j.arrayMin=P.arrayMin,j.attr=P.attr,j.clearTimeout=P.clearTimeout,j.correctFloat=P.correctFloat,j.createElement=P.createElement,j.css=P.css,j.defined=P.defined,j.destroyObjectProperties=P.destroyObjectProperties,j.discardElement=P.discardElement,j.distribute=O.distribute,j.erase=P.erase,j.error=P.error,j.extend=P.extend,j.extendClass=P.extendClass,j.find=P.find,j.fireEvent=P.fireEvent,j.getMagnitude=P.getMagnitude,j.getStyle=P.getStyle,j.inArray=P.inArray,j.isArray=P.isArray,j.isClass=P.isClass,j.isDOMElement=P.isDOMElement,j.isFunction=P.isFunction,j.isNumber=P.isNumber,j.isObject=P.isObject,j.isString=P.isString,j.keys=P.keys,j.merge=P.merge,j.normalizeTickInterval=P.normalizeTickInterval,j.objectEach=P.objectEach,j.offset=P.offset,j.pad=P.pad,j.pick=P.pick,j.pInt=P.pInt,j.relativeLength=P.relativeLength,j.removeEvent=P.removeEvent,j.seriesType=c.seriesType,j.splat=P.splat,j.stableSort=P.stableSort,j.syncTimeout=P.syncTimeout,j.timeUnits=P.timeUnits,j.uniqueKey=P.uniqueKey,j.useSerialIds=P.useSerialIds,j.wrap=P.wrap,t.compose(e),u.compose(h),I.compose(_),d.compose(_),l.compose(i),y.compose(_),L.compose(n),a.compose(_,n,h),f.compose(k),j}),A["masters/highcharts.src.js"]._modules=A,A["masters/highcharts.src.js"]})}(le)),le.exports}(function(lt,st){(function(nt,A){lt.exports=A(us(),Ye)})(window,function(nt,A){return P=[function(J,K){J.exports=nt},function(J,K){J.exports=A},function(J,U,Y){Y.r(U),Y.d(U,"Chart",function(){return f}),Y.d(U,"default",function(){return T});var U=Y(0),O=Y.n(U);function N(k,w){return function n(a,p,h){function c(e,t){!O.a.isObject(e,!h)||O.a.isClass(e)||O.a.isDOMElement(e)?a[t]=p[t]:a[t]=n(a[t]||O.a.isArray(e)?[]:{},e,h)}return O.a.isArray(p)?p.forEach(c):O.a.objectEach(p,c),a}({},k,w)}var R=Y(1);function x(k){return(x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(w){return typeof w}:function(w){return w&&typeof Symbol=="function"&&w.constructor===Symbol&&w!==Symbol.prototype?"symbol":typeof w})(k)}function b(k){return function(w){if(Array.isArray(w))return _(w)}(k)||function(w){if(typeof Symbol<"u"&&w[Symbol.iterator]!=null||w["@@iterator"]!=null)return Array.from(w)}(k)||function(w,n){var a;if(w)return typeof w=="string"?_(w,n):(a=(a=Object.prototype.toString.call(w).slice(8,-1))==="Object"&&w.constructor?w.constructor.name:a)==="Map"||a==="Set"?Array.from(w):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_(w,n):void 0}(k)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
3
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function _(k,w){(w==null||w>k.length)&&(w=k.length);for(var n=0,a=new Array(w);n<w;n++)a[n]=k[n];return a}function I(k,w){var n,a=Object.keys(k);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(k),w&&(n=n.filter(function(p){return Object.getOwnPropertyDescriptor(k,p).enumerable})),a.push.apply(a,n)),a}function d(k){for(var w=1;w<arguments.length;w++){var n=arguments[w]!=null?arguments[w]:{};w%2?I(Object(n),!0).forEach(function(a){var p,h;p=k,h=n[a=a],(a=function(c){return c=function(e,t){if(x(e)!=="object"||e===null)return e;var i=e[Symbol.toPrimitive];if(i===void 0)return(t==="string"?String:Number)(e);if(i=i.call(e,t||"default"),x(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(c,"string"),x(c)==="symbol"?c:String(c)}(a))in p?Object.defineProperty(p,a,{value:h,enumerable:!0,configurable:!0,writable:!0}):p[a]=h}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach(function(a){Object.defineProperty(k,a,Object.getOwnPropertyDescriptor(n,a))})}return k}var y={template:'<div ref="chart"></div>',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}}},v=function(k,w){return w.split(".")[0]<3?d(d({},y),{},{render:function(n){return n("div",{ref:"chart"})},beforeDestroy:function(){this.chart&&this.chart.destroy()},watch:{options:{handler:function(n){var a;(a=this.chart).update.apply(a,[N(n,this.deepCopyOnUpdate)].concat(b(this.updateArgs)))},deep:!0}},mounted:function(){var n=this.highcharts||k;this.options&&n[this.constructorType]?this.chart=n[this.constructorType](this.$refs.chart,N(this.options,!0),this.callback||null):this.options?console.warn("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}}):d(d({},y),{},{render:function(){return Object(R.h)("div",{ref:"chartContainer"})},setup:function(n){var a=Object(R.ref)(null),p=Object(R.shallowRef)({});return Object(R.onMounted)(function(){var h=n.highcharts||k;n.options&&h[n.constructorType]?p.value=h[n.constructorType](a.value,N(n.options,!0),n.callback||null):n.options?console.warn("'".concat(n.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')}),Object(R.watch)(function(){return n.options},function(h,c){var e;(e=p.value).update.apply(e,[N(h,n.deepCopyOnUpdate)].concat(b(n.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:a,props:n}}})},f=v(O.a,R.version||Y.n(R).a.version);function T(k){var w=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};k.component(w.tagName||"highcharts",v(w.highcharts||O.a,k.version))}}],W={},j.m=P,j.c=W,j.d=function(J,K,Y){j.o(J,K)||Object.defineProperty(J,K,{enumerable:!0,get:Y})},j.r=function(J){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(J,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(J,"__esModule",{value:!0})},j.t=function(J,K){if(1&K&&(J=j(J)),8&K||4&K&&typeof J=="object"&&J&&J.__esModule)return J;var Y=Object.create(null);if(j.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:J}),2&K&&typeof J!="string")for(var U in J)j.d(Y,U,(function(O){return J[O]}).bind(null,U));return Y},j.n=function(J){var K=J&&J.__esModule?function(){return J.default}:function(){return J};return j.d(K,"a",K),K},j.o=function(J,K){return Object.prototype.hasOwnProperty.call(J,K)},j.p="",j(j.s=2);function j(J){var K;return(W[J]||(K=W[J]={i:J,l:!1,exports:{}},P[J].call(K.exports,K,K.exports,j),K.l=!0,K)).exports}var P,W})})(Ie);var oe=Ie.exports;const fs={class:"w-88vw flex flex-col md:w-92vw"},gs={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},ms={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},xs={class:"mx-auto max-w-[16rem] flex flex-col border border-gray-100 rounded-lg bg-white p-6 text-center text-gray-900 shadow dark:border-gray-600 dark:bg-gray-800 xl:p-8 dark:text-white"},ys={class:"mb-4 text-2xl font-semibold"},vs={class:"my-8 flex items-baseline justify-center"},ks={class:"mr-2 text-5xl font-extrabold"},bs={class:"mt-8 flex flex-col gap-8"},ws=Dt({__name:"Statistics",props:{rank:null},setup(lt){const st=lt,{t:nt}=Ut(),A=wt(()=>st.rank);function j(){const P=[];return P.push({title:"standings.statistics.head_data.problems",data:A.value.contest.problems.length}),P.push({title:"standings.statistics.head_data.teams",data:A.value.teams.length}),P.push({title:"standings.statistics.head_data.submissions",data:A.value.getSubmissions().length}),P}return(P,W)=>(ut(),ft("div",fs,[ot("section",null,[ot("div",gs,[ot("div",ms,[(ut(!0),ft(Et,null,It(j(),J=>(ut(),ft("div",{key:J.title},[ot("div",xs,[ot("h3",ys,vt(et(nt)(J.title)),1),ot("div",vs,[ot("span",ks,vt(J.data),1)])])]))),128))])])]),ot("div",bs,[ot("div",null,[Ot(et(oe.Chart),{options:("getSubmitChart"in P?P.getSubmitChart:et(ds))(et(A))},null,8,["options"])]),ot("div",null,[Ot(et(oe.Chart),{options:("getProblemChart"in P?P.getProblemChart:et(hs))(et(A))},null,8,["options"])]),ot("div",null,[Ot(et(oe.Chart),{options:("getTeamChart"in P?P.getTeamChart:et(cs))(et(A))},null,8,["options"])])])]))}}),Ss={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"},Cs={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},Ms={class:"font-semibold text-gray-900 dark:text-white"},Ts={class:"font-semibold text-gray-900 dark:text-white"},As={class:"inline-flex items-stretch font-mono -space-x-px"},Ps=ot("span",{class:"sr-only"},"Previous",-1),Os=ot("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[ot("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),Ls=[Ps,Os],_s={key:0},Es=["onClick"],Ds={"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"},Is=["onClick"],js={key:1},Bs=ot("span",{class:"sr-only"},"Next",-1),Rs=ot("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[ot("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),zs=[Bs,Rs],ie="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",Hs=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(lt,{emit:st}){const nt=lt,A=wt({get(){return nt.pagination},set(j){st("update:pagination",j)}});return(j,P)=>(ut(),ft("nav",Ss,[ot("span",Cs,[Wt(" Showing "),ot("span",Ms,vt(et(A).currentLeft)+"-"+vt(Math.max(0,et(A).currentRight-1)),1),Wt(" of "),ot("span",Ts,vt(et(A).totalSize),1)]),ot("ul",As,[ot("li",null,[ot("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:P[0]||(P[0]=W=>et(A).onPageChange({diff:-1}))},Ls)]),et(A).currentPage!==0?(ut(),ft("li",_s,[ot("a",{class:Tt(ie),hover:"cursor-pointer",onClick:P[1]||(P[1]=W=>et(A).onPageChange({to:0}))}," 1 ")])):St("",!0),(ut(!0),ft(Et,null,It(et(A).leftDecrPage,W=>(ut(),ft("li",{key:W},[ot("a",{class:Tt(ie),hover:"cursor-pointer",onClick:J=>et(A).onPageChange({to:W})},vt(W+1),9,Es)]))),128)),ot("li",null,[ot("a",Ds,vt(et(A).currentPage+1),1)]),(ut(!0),ft(Et,null,It(et(A).rightIncrPage,W=>(ut(),ft("li",{key:W},[ot("a",{hover:"cursor-pointer",class:Tt(ie),onClick:J=>et(A).onPageChange({to:W})},vt(W+1),9,Is)]))),128)),et(A).currentPage!==et(A).totalPage-1&&et(A).totalPage>1?(ut(),ft("li",js,[ot("a",{hover:"cursor-pointer",class:Tt(ie),onClick:P[2]||(P[2]=W=>et(A).onPageChange({to:et(A).totalPage-1}))},vt(et(A).totalPage),1)])):St("",!0),ot("li",null,[ot("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:P[3]||(P[3]=W=>et(A).onPageChange({diff:1}))},zs)])])]))}});class Ns{constructor(){ee(this,"totalSize");ee(this,"currentPage");ee(this,"pageSize");this.totalSize=0,this.currentPage=0,this.pageSize=16}get totalPage(){return Math.floor((this.totalSize+this.pageSize-1)/this.pageSize)}get currentLeft(){return this.currentPage*this.pageSize}get currentRight(){return Math.min(this.totalSize,(this.currentPage+1)*this.pageSize)}get leftDecrPage(){const st=[];let nt=1,A=this.currentPage-nt;for(;A>0;)st.push(A),nt=nt<<1,A-=nt;return st.reverse()}get rightIncrPage(){const st=[];let nt=1,A=this.currentPage+nt;for(;A+1<this.totalPage;)st.push(A),nt=nt<<1,A+=nt;return st}onPageChange(st){const nt=this.totalPage;let A=this.currentPage;if((st==null?void 0:st.to)!==void 0&&(A=st.to),(st==null?void 0:st.diff)!==void 0){const j=st.diff;A=A+j}A<0||A>=nt||(this.currentPage=A)}}const Kt=lt=>(Qt("data-v-e1cd75f7"),lt=lt(),te(),lt),$s={class:"mx-auto w-full","px-4":""},Ws={class:"lg:flex-row lg:items-center lg:justify-between space-y-3 lg:space-x-4 lg:space-y-0",flex:"","flex-col":"","px-4":"","py-3":""},Gs={class:"flex flex-shrink-0 flex-col md:flex-row md:items-center lg:justify-end space-y-3 md:space-x-3 md:space-y-0"},Fs={key:0,type:"button",class:"flex items-center justify-center rounded-lg bg-primary-700 px-4 py-2 text-sm font-medium text-white dark:bg-primary-600 hover:bg-primary-800 focus:outline-none focus:ring-4 focus:ring-primary-300 dark:hover:bg-primary-700 dark:focus:ring-primary-800"},Xs=Kt(()=>ot("svg",{class:"mr-2 h-3.5 w-3.5",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[ot("path",{"clip-rule":"evenodd","fill-rule":"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"})],-1)),Ys={key:1,type:"button",class:"flex flex-shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 focus:z-10 dark:border-gray-600 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"},Us=Kt(()=>ot("svg",{class:"mr-2 h-4 w-4",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"none",viewbox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[ot("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"})],-1)),Vs={key:2,type:"button",class:"flex flex-shrink-0 items-center justify-center border border-gray-200 rounded-lg bg-white px-3 py-2 text-sm font-medium text-gray-900 focus:z-10 dark:border-gray-600 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-primary-700 focus:outline-none focus:ring-4 focus:ring-gray-200 dark:hover:bg-gray-700 dark:hover:text-white dark:focus:ring-gray-700"},qs=Kt(()=>ot("div",{"i-pajamas-export":"",class:"mr-2 h-4 w-4"},null,-1)),Ks={class:"overflow-x-auto"},Zs={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},Js={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},Qs=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),to={key:0,scope:"col",class:"px-4 py-3"},eo=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),io=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),so={key:1,scope:"col",class:"px-4 py-3"},oo={key:2,scope:"col",class:"px-4 py-3"},no={key:3,scope:"col",class:"px-4 py-3"},ro=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),ao={"px-4":"","py-2":""},lo={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},ho={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},co={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},po={flex:"","items-center":""},uo={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},fo={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},go={flex:"","items-center":""},mo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},xo={flex:"","items-center":""},yo=Dt({__name:"SubmissionsTable",props:{rank:{},submissions:{},pageSize:{},removeBorder:{type:Boolean}},setup(lt){const st=lt,nt=wt(()=>st.rank),A=wt(()=>st.submissions.sort(Ue.compare).reverse()),j=Pt(new Ns);j.value.currentPage=0,j.value.pageSize=st.pageSize??16,j.value.totalSize=A.value.length,ne(A,()=>{j.value.totalSize=A.value.length,j.value.currentPage>=j.value.totalPage&&(j.value.currentPage=j.value.totalPage-1)});const P=wt(()=>A.value.slice(j.value.currentLeft,j.value.currentRight)),W=Pt(!1);function J(Y){const U="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",O=Y.problemId,N=nt.value.contest.problemsMap.get(O);if(N==null||!N.balloonColor)return U}function K(Y){const U=Y.problemId,O=nt.value.contest.problemsMap.get(U);if(O==null||!O.balloonColor)return;const N=O.balloonColor;return{backgroundColor:N.background_color,color:N.color}}return(Y,U)=>{const O=Pe,N=Hs;return ut(),ft("section",null,[ot("div",$s,[ot("div",{class:Tt(["relative overflow-hidden bg-white dark:bg-gray-800",{"shadow-md":st.removeBorder!==!0,"sm:rounded-sm":st.removeBorder!==!0}])},[ot("div",Ws,[ot("div",Gs,[et(W)?(ut(),ft("button",Fs,[Xs,Wt(" Add new product ")])):St("",!0),et(W)?(ut(),ft("button",Ys,[Us,Wt(" Update stocks 1/250 ")])):St("",!0),et(W)?(ut(),ft("button",Vs,[qs,Wt(" Export ")])):St("",!0)])]),ot("div",Ks,[ot("table",Zs,[ot("thead",Js,[ot("tr",null,[Qs,et(nt).contest.organization?(ut(),ft("th",to,vt(et(nt).contest.organization),1)):St("",!0),eo,io,et(nt).contest.options.submissionHasTimeField?(ut(),ft("th",so," Time ")):St("",!0),et(W)?(ut(),ft("th",oo," Memory ")):St("",!0),et(nt).contest.options.submissionHasLanguageField?(ut(),ft("th",no," Answer ")):St("",!0),ro])]),ot("tbody",null,[(ut(!0),ft(Et,null,It(et(P),R=>{var x,b,_;return ut(),ft("tr",{key:R.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[ot("td",ao,[ot("span",{class:Tt(["rounded px-2 py-0.5 text-sm",[J(R)]]),style:qt(K(R))},vt((x=et(nt).contest.problemsMap.get(R.problemId))==null?void 0:x.label),7)]),et(nt).contest.organization?(ut(),ft("td",lo,vt((b=et(nt).teamsMap.get(R.teamId))==null?void 0:b.organization),1)):St("",!0),ot("td",ho,vt((_=et(nt).teamsMap.get(R.teamId))==null?void 0:_.name),1),ot("td",{scope:"row",class:Tt([R.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},vt(et(Ve)[R.status]),3),et(nt).contest.options.submissionHasTimeField?(ut(),ft("td",co,[ot("div",po,vt(`${R.time??0} ms`),1)])):St("",!0),et(W)?(ut(),ft("td",uo," 0.47 ")):St("",!0),et(nt).contest.options.submissionHasLanguageField?(ut(),ft("td",fo,[ot("div",go,vt(R.language),1)])):St("",!0),ot("td",mo,[ot("div",xo,[Ot(O,null,{popper:Yt(()=>[Wt(vt(R.timestampDisplayFormatWithMilliSecond),1)]),default:Yt(()=>[Wt(vt(R.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),Ot(N,{pagination:et(j),"onUpdate:pagination":U[0]||(U[0]=R=>Rt(j)?j.value=R:null)},null,8,["pagination"])],2)])])}}});const ae=Ft(yo,[["__scopeId","data-v-e1cd75f7"]]),ce=lt=>(Qt("data-v-e6b57d04"),lt=lt(),te(),lt),vo={class:"statistics-0"},ko=["colspan"],bo={class:"stnd"},wo={class:"statistics-1"},So=["colspan"],Co={class:"stnd"},Mo=ce(()=>ot("br",null,null,-1)),To={class:"statistics-0"},Ao=["colspan"],Po={class:"stnd"},Oo=ce(()=>ot("br",null,null,-1)),Lo={class:"statistics-1"},_o=["colspan"],Eo={class:"stnd"},Do=ce(()=>ot("br",null,null,-1)),Io={class:"statistics-0"},jo=["colspan"],Bo={class:"stnd"},Ro={class:"statistics-1"},zo=["colspan"],Ho={class:"stnd"},No=Dt({__name:"BottomStatistics",props:{rank:null},setup(lt){const st=lt,{t:nt}=Ut(),A=wt(()=>st.rank);function j(){let U=3;return A.value.contest.organization&&U++,A.value.contest.badge&&U++,U}function P(U){return U.submittedNum===0?"NaN":`${Math.floor(U.attemptedNum*100/U.submittedNum)}%`}function W(U){return U.submittedNum===0?"NaN":`${Math.floor(U.acceptedNum*100/U.submittedNum)}%`}function J(U){return U.attemptedNum===0?"NaN":`${U.dirt}%`}function K(U){return U.firstSolveSubmissions.length===0?"Null":`${Math.floor(U.firstSolveSubmissions[0].timestamp/60)}`}function Y(U){return U.lastSolveSubmissions.length===0?"Null":`${Math.floor(U.lastSolveSubmissions[0].timestamp/60)}`}return(U,O)=>(ut(),ft(Et,null,[ot("tr",vo,[ot("td",{class:"empty",colspan:j()},null,8,ko),ot("td",bo,[ot("b",null,vt(et(nt)("standings.statistics.submitted")),1)]),(ut(!0),ft(Et,null,It(et(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.submittedNum),1)]))),128))]),ot("tr",wo,[ot("td",{class:"empty",colspan:j()},null,8,So),ot("td",Co,[ot("b",null,vt(et(nt)("standings.statistics.attempted")),1)]),(ut(!0),ft(Et,null,It(et(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.attemptedNum),1),Mo,ot("b",null," ("+vt(P(N.statistics))+") ",1)]))),128))]),ot("tr",To,[ot("td",{class:"empty",colspan:j()},null,8,Ao),ot("td",Po,[ot("b",null,vt(et(nt)("standings.statistics.accepted")),1)]),(ut(!0),ft(Et,null,It(et(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.acceptedNum),1),Oo,ot("b",null," ("+vt(W(N.statistics))+") ",1)]))),128))]),ot("tr",Lo,[ot("td",{class:"empty",colspan:j()},null,8,_o),ot("td",Eo,[ot("b",null,vt(et(nt)("standings.statistics.dirt")),1)]),(ut(!0),ft(Et,null,It(et(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.attemptedNum-N.statistics.acceptedNum),1),Do,ot("b",null," ("+vt(J(N.statistics))+") ",1)]))),128))]),ot("tr",Io,[ot("td",{class:"empty",colspan:j()},null,8,jo),ot("td",Bo,[ot("b",null,vt(et(nt)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Et,null,It(et(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[ot("b",null,vt(K(N.statistics)),1)]))),128))]),ot("tr",Ro,[ot("td",{class:"empty",colspan:j()},null,8,zo),ot("td",Ho,[ot("b",null,vt(et(nt)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Et,null,It(et(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[ot("b",null,vt(Y(N.statistics)),1)]))),128))])],64))}});const $o=Ft(No,[["__scopeId","data-v-e6b57d04"]]),Wo={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},Go=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(lt,{emit:st}){const nt=lt,A=wt({get(){return nt.isHidden},set(K){st("update:isHidden",K)}}),j=wt(()=>nt.rank),P=wt(()=>nt.team),W=wt(()=>nt.p),J=wt(()=>`${P.value.name} - ${W.value.problem.label}`);return(K,Y)=>{const U=ae,O=re;return ut(),Ht(O,{isHidden:et(A),"onUpdate:isHidden":Y[0]||(Y[0]=N=>Rt(A)?A.value=N:null),title:et(J)},{default:Yt(()=>[ot("div",Wo,[Ot(U,{"w-full":"",rank:et(j),submissions:et(W).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),Fo=lt=>(Qt("data-v-dbdd6e30"),lt=lt(),te(),lt),Xo=Fo(()=>ot("br",null,null,-1)),Yo=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(lt){const st=lt,nt=Pt(!0);function A(){nt.value=!1}const j=wt(()=>st.rank),P=wt(()=>st.team),W=wt(()=>st.p);function J(U){return U.isSolved?"+":U.isWrongAnswer?"-":U.isPending?`? ${U.pendingCount}`:""}function K(U){let O="";return U.isUnSubmitted||(O+=`${U.failedCount+Number(U.isSolved)}`),(U.isSolved&&j.value.contest.statusTimeDisplay.correct||U.isPending&&j.value.contest.statusTimeDisplay.pending||U.isWrongAnswer&&j.value.contest.statusTimeDisplay.incorrect)&&(O+=`/${Math.floor(U.lastSubmitTimestamp/60)}`),O}function Y(U){return U.isFirstSolved?"first-solve":U.isSolved?"correct":U.isWrongAnswer?"incorrect":U.isPending?"pending":"unattempted"}return(U,O)=>{const N=Go;return ut(),ft("td",{class:Tt(["stnd",[Y(et(W))]])},[ot("div",{"cursor-pointer":"",onClick:A},[Wt(vt(J(et(W)))+" ",1),Xo,Wt(" "+vt(K(et(W))),1)]),ot("div",null,[et(nt)?St("",!0):(ut(),Ht(N,{key:0,isHidden:et(nt),"onUpdate:isHidden":O[0]||(O[0]=R=>Rt(nt)?nt.value=R:null),rank:et(j),team:et(P),p:et(W)},null,8,["isHidden","rank","team","p"]))])],2)}}});const Uo=Ft(Yo,[["__scopeId","data-v-dbdd6e30"]]),Vo={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":""},qo={key:0},Ko={key:1,flex:"","flex-col":"","gap-2":""},Zo={key:2},Jo=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(lt){const st=lt,nt=wt(()=>st.team),A=wt(()=>st.rank),j=wt(()=>st.team.problemStatistics.filter(W=>!!W.isFirstSolved).map(W=>W.problem.label).join(",")),P=wt(()=>{const W=st.team.awards;return W.includes(Vt.GOLD)?{text:"Gold"}:W.includes(Vt.SILVER)?{text:"Silver"}:W.includes(Vt.BRONZE)?{text:"Bronze"}:W.includes(Vt.HONORABLE)?{text:"Honorable"}:null});return(W,J)=>(ut(),ft("div",Vo,[ot("div",null," Team Rank: "+vt(et(nt).rank),1),et(nt).organization&&et(nt).organizationRank!==-1?(ut(),ft("div",qo,vt(et(A).contest.organization)+" Rank: "+vt(et(nt).organizationRank),1)):St("",!0),et(j).length?(ut(),ft("div",Ko,[ot("div",null," First Solved Problem "+vt(et(j)),1)])):St("",!0),et(P)?(ut(),ft("div",Zo,vt(et(P).text)+" Medal ",1)):St("",!0)]))}}),Qo={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},tn=["onClick"],je=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(lt,{emit:st}){const nt=lt,{t:A}=Ut(),j=wt({get(){return nt.currentType},set(J){st("update:currentType",J)}});function P(J){j.value=J}const W=wt(()=>nt.types.length);return(J,K)=>(ut(),ft("div",Qo,[(ut(!0),ft(Et,null,It(nt.types,(Y,U)=>(ut(),ft("button",{key:Y,type:"button","px-4":"","py-2":"","my-2":"","text-sm":"","font-medium":"","text-gray-900":"","bg-white":"","dark:bg-gray-700":"","dark:text-white":"","border-gray-200":"","dark:border-gray-600":"","hover:bg-gray-100":"","dark:hover:bg-gray-600":"","hover:text-primary-700":"","dark:hover:text-white":"","focus:z-10":"","focus:ring-2":"","focus:ring-primary-700":"","focus:text-primary-700":"","dark:focus:ring-primary-500":"","dark:focus:text-white":"",class:Tt({"rounded-t-lg md:rounded-tr-none md:rounded-l-lg":U===0,"rounded-b-lg md:rounded-bl-none md:rounded-r-lg mr-2":U+1===et(W),border:U===0||U+1===et(W),"border-t border-x md:border-x-0 md:border-b":U>0&&U+1<et(W),"md:border-r-0":U===0,"md:border-l":U>0,"z-10 ring-2 ring-primary-700 text-primary-700 dark:ring-primary-600 dark:text-white":et(j)===Y}),onClick:O=>P(Y)},vt(et(A)(`type_menu.${Y}`)),11,tn))),128))]))}}),en=["src"],Be=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(lt){const st=lt,nt=wt(()=>st.image),A=wt(()=>st.widthClass?st.widthClass:"h-8 w-8");return(j,P)=>et(nt).base64?(ut(),ft("img",{key:0,src:et(qe)(et(nt)),alt:"badge",class:Tt([et(A)])},null,10,en)):St("",!0)}}),sn={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},on={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},nn={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},rn={flex:"","flex-row":"","space-x-3":""},an={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},ln={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},hn={key:0,"w-full":"",class:"mt-[-12px]"},cn={key:1,"w-full":""},dn={key:2,"w-full":""},xe="submissions",ye="statistics",ve="awards",pn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(lt,{emit:st}){const nt=lt,A=wt({get(){return nt.isHidden},set(Y){st("update:isHidden",Y)}}),j=Pt("submissions"),P=wt(()=>nt.rank),W=wt(()=>nt.team),J=wt(()=>{let Y="";return P.value.contest.organization&&W.value.organization.length>0&&(Y+=`${W.value.organization} - `),Y+=`${W.value.name}`,W.value.members&&(Y+=` - ${W.value.members}`),W.value.coach&&(Y+=` - ${W.value.coach}(coach)`),Y}),K=[xe,ye,ve];return(Y,U)=>{const O=Be,N=je,R=ae,x=Jo,b=re;return ut(),Ht(b,{isHidden:et(A),"onUpdate:isHidden":U[1]||(U[1]=_=>Rt(A)?A.value=_:null)},{header:Yt(()=>[ot("div",sn,[ot("div",on,[ot("div",nn,[ot("div",rn,[et(W).badge?(ut(),Ht(O,{key:0,image:et(W).badge,"width-class":"h-8 w-8"},null,8,["image"])):St("",!0),ot("h3",an,vt(et(J)),1)]),Ot(N,{"current-type":et(j),"onUpdate:currentType":U[0]||(U[0]=_=>Rt(j)?j.value=_:null),types:K},null,8,["current-type"])])])])]),default:Yt(()=>[ot("div",ln,[et(j)===xe?(ut(),ft("div",hn,[Ot(R,{"w-full":"",rank:et(P),submissions:et(W).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),et(j)===ye?(ut(),ft("div",cn,[Ot(et(oe.Chart),{options:("getTeamPlaceChart"in Y?Y.getTeamPlaceChart:et(ps))(et(P),et(W))},null,8,["options"])])):St("",!0),et(j)===ve?(ut(),ft("div",dn,[Ot(x,{team:et(W),rank:et(P)},null,8,["team","rank"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),un={},fn={class:"color-gray-700 dark:color-gray-200"},gn=ot("svg",{t:"1685666543416",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3736",width:"16",height:"16"},[ot("path",{d:"M661.333333 662.613333c0.213333 82.133333 28.8 169.386667 64 169.386667v170.666667H298.666667v-170.666667c35.2 0 63.786667-87.253333 64-169.386667a176.256 176.256 0 0 1 21.333333-1.28h21.333333c0 35.413333 47.786667 64 106.666667 64s106.666667-28.586667 106.666667-64h21.333333a176.256 176.256 0 0 1 21.333333 1.28z",fill:"#F3596B","p-id":"3737"}),ot("path",{d:"M810.666667 832v170.666667h-85.333334v-170.666667c-35.2 0-63.786667-87.253333-64-169.386667A170.666667 170.666667 0 0 1 810.666667 832zM362.666667 662.613333c-0.213333 82.133333-28.8 169.386667-64 169.386667v170.666667h-85.333334v-170.666667a170.666667 170.666667 0 0 1 149.333334-169.386667z",fill:"#FFD0AA","p-id":"3738"}),ot("path",{d:"M704 320v-85.333333c0-94.293333-97.706667-170.666667-192-170.666667a42.794667 42.794667 0 0 1 42.666667-42.666667h128a128 128 0 0 1 128 128v234.666667s0 85.333333 85.333333 85.333333c0 0-93.226667 134.613333-228.48 6.186667a166.229333 166.229333 0 0 0 13.866667-49.066667L682.666667 426.666667h21.333333a42.666667 42.666667 0 0 0 0-85.333334h-21.333333v-21.333333z",fill:"#FFCA6B","p-id":"3739"}),ot("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),ot("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),ot("path",{d:"M746.666667 384a42.794667 42.794667 0 0 1-42.666667 42.666667h-21.333333l-1.28-0.213334A172.8 172.8 0 0 0 682.666667 405.333333v-64h21.333333a42.794667 42.794667 0 0 1 42.666667 42.666667zM341.333333 405.333333a172.8 172.8 0 0 0 1.28 21.12L341.333333 426.666667h-21.333333a42.666667 42.666667 0 0 1 0-85.333334h21.333333zM618.666667 661.333333c0 35.413333-47.786667 64-106.666667 64s-106.666667-28.586667-106.666667-64a42.794667 42.794667 0 0 0 42.666667-42.666666v-55.04a171.712 171.712 0 0 0 128 0V618.666667a42.794667 42.794667 0 0 0 42.666667 42.666666z",fill:"#FFD0AA","p-id":"3742"}),ot("path",{d:"M682.666667 341.333333v64a172.8 172.8 0 0 1-1.28 21.12 166.229333 166.229333 0 0 1-13.866667 49.066667A170.474667 170.474667 0 0 1 576 563.626667 170.538667 170.538667 0 0 1 341.333333 405.333333v-85.333333h341.333334z",fill:"#FFD0AA","p-id":"3743"}),ot("path",{d:"M810.666667 1024H213.333333a21.333333 21.333333 0 0 1-21.333333-21.333333v-170.666667a192.213333 192.213333 0 0 1 192-192h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333333v-64h42.666666v64a64 64 0 0 1-64 64h-21.333333a149.504 149.504 0 0 0-149.333333 149.333333v149.333333h554.666666v-149.333333a149.504 149.504 0 0 0-149.333333-149.333333h-21.333333a64 64 0 0 1-64-64v-64h42.666666v64a21.333333 21.333333 0 0 0 21.333334 21.333333h21.333333a192.213333 192.213333 0 0 1 192 192v170.666667a21.333333 21.333333 0 0 1-21.333333 21.333333z",fill:"#2A3244","p-id":"3744"}),ot("path",{d:"M512 597.333333a192.234667 192.234667 0 0 1-192-192v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h341.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a192.234667 192.234667 0 0 1-192 192z m-149.333333-256v64a149.333333 149.333333 0 0 0 298.666666 0v-64z",fill:"#2A3244","p-id":"3745"}),ot("path",{d:"M704 448h-21.333333v-42.666667h21.333333a21.333333 21.333333 0 0 0 0-42.666666h-21.333333v-42.666667h21.333333a64 64 0 0 1 0 128zM341.333333 448h-21.333333a64 64 0 0 1 0-128h21.333333v42.666667h-21.333333a21.333333 21.333333 0 0 0 0 42.666666h21.333333z",fill:"#2A3244","p-id":"3746"}),ot("path",{d:"M704 341.333333H320a21.333333 21.333333 0 0 1-21.333333-21.333333v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333334h384a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z m-362.666667-42.666666h341.333334v-42.666667H341.333333z",fill:"#2A3244","p-id":"3747"}),ot("path",{d:"M725.333333 234.666667h-42.666666c0-84.096-91.733333-149.333333-170.666667-149.333334s-170.666667 65.237333-170.666667 149.333334h-42.666666c0-109.888 112.618667-192 213.333333-192s213.333333 82.112 213.333333 192z",fill:"#2A3244","p-id":"3748"}),ot("path",{d:"M783.616 552.32c-46.122667 0-92.266667-22.805333-137.365333-67.904l30.165333-30.165333c39.701333 39.701333 78.613333 58.389333 115.648 55.018666a114.282667 114.282667 0 0 0 60.8-26.026666A105.92 105.92 0 0 1 789.333333 384V149.333333a106.794667 106.794667 0 0 0-106.666666-106.666666h-128a21.333333 21.333333 0 0 0-21.333334 21.333333h-42.666666a64 64 0 0 1 64-64h128a149.504 149.504 0 0 1 149.333333 149.333333v234.666667a60.842667 60.842667 0 0 0 64 64 21.333333 21.333333 0 0 1 17.536 33.472 174.72 174.72 0 0 1-117.333333 70.250667 130.133333 130.133333 0 0 1-12.586667 0.597333zM512 746.666667c-71.765333 0-128-37.482667-128-85.333334h42.666667c0 20.138667 36.48 42.666667 85.333333 42.666667s85.333333-22.528 85.333333-42.666667h42.666667c0 47.850667-56.234667 85.333333-128 85.333334zM746.666667 1002.666667h-42.666667v-154.709334c-43.968-23.274667-64-117.333333-64-186.624h42.666667c0 85.333333 29.866667 148.842667 42.666666 149.333334a22.08 22.08 0 0 1 21.333334 21.333333zM320 1002.666667h-42.666667v-170.666667a21.333333 21.333333 0 0 1 21.333334-21.333333c12.8-0.490667 42.666667-64 42.666666-149.333334h42.666667c0 69.354667-20.032 163.349333-64 186.624z",fill:"#2A3244","p-id":"3749"})],-1),mn=[gn];function xn(lt,st){return ut(),ft("div",fn,mn)}const yn=Ft(un,[["render",xn]]),vn={},kn={class:"color-gray-700 dark:color-gray-200"},bn=ot("svg",{t:"1685845881484",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4847",width:"16",height:"16"},[ot("path",{d:"M785.352203 933.397493c-4.074805 0-8.151657-0.970094-11.833513-3.007497l-261.311471-142.488225L250.942821 930.388972c-8.343015 4.559852-18.527982 3.8814-26.28669-1.599428-7.760754-5.5279-11.640108-14.987343-10.088776-24.347524l47.578622-285.365306L72.563154 429.470355c-6.594185-6.547113-8.971325-16.295128-6.110161-25.122167 2.814092-8.850575 10.379395-15.397688 19.546172-16.949021l285.512662-47.577598 118.529557-236.989529c4.172019-8.391111 12.803607-13.701047 22.165836-13.701047 9.359158 0 17.992793 5.309936 22.163789 13.701047l118.529557 236.989529 285.511639 47.577598c9.217942 1.551332 16.73208 8.051373 19.593244 16.949021 2.813069 8.875135 0.48607 18.575054-6.109138 25.122167L762.264369 619.077737l47.577598 285.365306c1.50119 9.360182-2.37714 18.819624-10.087753 24.347524C795.487028 931.797042 790.394033 933.397493 785.352203 933.397493zM512.206196 734.747153c4.073782 0 8.196683 0.968048 11.880585 3.006474l228.379431 124.545574-41.268916-247.634983c-1.308809-7.90504 1.257643-16.005532 6.932899-21.63167l164.55787-164.555823-250.398934-41.709961c-7.855922-1.308809-14.549368-6.304589-18.140149-13.408381l-101.942787-203.915249","p-id":"4848"})],-1),wn=[bn];function Sn(lt,st){return ut(),ft("div",kn,wn)}const Cn=Ft(vn,[["render",Sn]]),Mn=lt=>(Qt("data-v-30762cf0"),lt=lt(),te(),lt),Tn={key:1,class:"empty flex items-center justify-center"},An={flex:""},Pn={class:"float-left pl-2 font-serif"},On={key:0},Ln={class:"flex-1"},_n=Mn(()=>ot("div",{class:"float-right"},null,-1)),En=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(lt){const st=lt,nt=Pt(null),A=Ke(nt),j=Pt(!0);function P(){j.value=!1}const W=wt(()=>st.rank),J=wt(()=>st.team);function K(U,O=!1){if(st.isFilter)return"filter-team";if(O){if(U.awards.includes(Vt.GOLD))return"gold";if(U.awards.includes(Vt.SILVER))return"silver";if(U.awards.includes(Vt.BRONZE))return"bronze";if(U.awards.includes(Vt.HONORABLE))return"honorable"}const N=(W.value.rankStatistics.getTeamSolvedNumIndex(U.solvedProblemNum)-1)%2,R=(U.rank-1)%2;return`stand${N}${R}`}function Y(){return A.value||st.ix<32}return(U,O)=>{const N=Be,R=Cn,x=yn,b=pn,_=Uo;return ut(),ft("tr",{ref_key:"el",ref:nt,class:Tt(["h-10",[st.isFilter?"filter-team":""]])},[Y()?(ut(),ft("td",{key:0,class:Tt(["stnd",[K(et(J),!0)]])},vt(et(J).rank),3)):St("",!0),et(W).contest.badge&&et(J).badge&&Y()?(ut(),ft("td",Tn,[Ot(N,{image:et(J).badge,"width-class":"h-8 w-8"},null,8,["image"])])):St("",!0),et(W).contest.organization&&Y()?(ut(),ft("td",{key:2,class:Tt(["stnd",[K(et(J))]])},[ot("div",An,[ot("div",Pn,[et(J).organizationRank>-1?(ut(),ft("div",On,vt(et(J).organizationRank),1)):St("",!0)]),ot("div",Ln,vt(et(J).organization),1),_n])],2)):St("",!0),Y()?(ut(),ft("td",{key:3,class:Tt(["stnd",[K(et(J))]])},[ot("div",{"cursor-pointer":"",onClick:P},[ot("span",null,vt(et(J).name),1),et(J).group.includes("unofficial")?(ut(),Ht(R,{key:0,"inline-block":""})):St("",!0),et(J).group.includes("girl")?(ut(),Ht(x,{key:1,"inline-block":""})):St("",!0)]),ot("div",null,[et(j)?St("",!0):(ut(),Ht(b,{key:0,isHidden:et(j),"onUpdate:isHidden":O[0]||(O[0]=I=>Rt(j)?j.value=I:null),rank:et(W),team:et(J)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),Y()?(ut(),ft("td",{key:4,class:Tt(["stnd",[K(et(J))]])},vt(et(J).solvedProblemNum),3)):St("",!0),Y()?(ut(),ft("td",{key:5,class:Tt(["stnd",[K(et(J))]])},vt(et(J).penaltyToMinute),3)):St("",!0),(ut(!0),ft(Et,null,It(et(J).problemStatistics,I=>(ut(),ft(Et,{key:I.problem.id},[Y()?(ut(),Ht(_,{key:0,rank:et(W),team:et(J),p:I},null,8,["rank","team","p"])):St("",!0)],64))),128)),Y()?(ut(),ft("td",{key:6,class:Tt(["stnd",[K(et(J))]])},vt(`${et(J).dirt}%`),3)):St("",!0)],2)}}});const Dn=Ft(En,[["__scopeId","data-v-30762cf0"]]),In={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},jn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},Bn={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},Rn={flex:"","flex-row":"","space-x-3":""},zn={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},Hn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},Nn={key:0,"w-full":"",class:"mt-[-12px]"},$n={key:1,"w-full":""},Wn={key:2,"w-full":""},ke="submissions",be="statistics",we="awards",Gn=Dt({__name:"ProblemInfoModal",props:{isHidden:{type:Boolean},rank:null,problem:null},emits:["update:isHidden"],setup(lt,{emit:st}){const nt=lt,A=wt({get(){return nt.isHidden},set(U){st("update:isHidden",U)}}),j=Pt("submissions"),P=wt(()=>nt.rank),W=wt(()=>nt.problem),J=wt(()=>`Problem ${W.value.label}`),K=wt(()=>P.value.getSubmissions().filter(U=>U.problemId===W.value.id)),Y=[ke,be,we];return(U,O)=>{const N=je,R=ae,x=re;return ut(),Ht(x,{isHidden:et(A),"onUpdate:isHidden":O[1]||(O[1]=b=>Rt(A)?A.value=b:null)},{header:Yt(()=>[ot("div",In,[ot("div",jn,[ot("div",Bn,[ot("div",Rn,[ot("h3",zn,vt(et(J)),1)]),Ot(N,{"current-type":et(j),"onUpdate:currentType":O[0]||(O[0]=b=>Rt(j)?j.value=b:null),types:Y},null,8,["current-type"])])])])]),default:Yt(()=>[ot("div",Hn,[et(j)===ke?(ut(),ft("div",Nn,[Ot(R,{"w-full":"",rank:et(P),submissions:et(K),"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),et(j)===be?(ut(),ft("div",$n)):St("",!0),et(j)===we?(ut(),ft("div",Wn)):St("",!0)])]),_:1},8,["isHidden"])}}}),Fn=Dt({__name:"ProblemBlock",props:{rank:null,problem:null},setup(lt){const st=lt,nt=Pt(!0);function A(){nt.value=!1}const j=wt(()=>st.rank),P=wt(()=>st.problem);return(W,J)=>{var Y,U;const K=Gn;return ut(),ft("th",{key:et(P).id,class:"success","text-center":"",style:qt([{width:"3rem"},{"background-color":(Y=et(P).balloonColor)==null?void 0:Y.background_color,color:(U=et(P).balloonColor)==null?void 0:U.color}])},[ot("div",{"cursor-pointer":"",flex:"","flex-col":"","justify-center":"","items-center":"",onClick:A},[ot("div",null,vt(et(P).label),1),ot("div",null,vt(et(P).statistics.acceptedNum),1)]),ot("div",null,[et(nt)?St("",!0):(ut(),Ht(K,{key:0,"is-hidden":et(nt),"onUpdate:isHidden":J[0]||(J[0]=O=>Rt(nt)?nt.value=O:null),rank:et(j),problem:et(P)},null,8,["is-hidden","rank","problem"]))])],4)}}});const Xn=Ft(Fn,[["__scopeId","data-v-5d478db8"]]),Yn={class:"standings","font-mono":"","dark:text-gray-700":""},Un={class:"sticky top-0 z-99"},Vn={class:"title",style:{width:"3rem"}},qn={key:0,class:"title",style:{width:"2rem"}},Kn={class:"title",style:{width:"3rem"}},Zn={class:"title",style:{width:"4rem"}},Jn={class:"title",style:{width:"2.5rem"}},Qn=Dt({__name:"Standings",props:{rank:{}},setup(lt){const st=lt,{t:nt}=Ut(),A=wt(()=>st.rank),j=wt(()=>st.rank.teams),P=wt(()=>st.rank.teams.filter(Y=>!!(st.rank.organizations&&st.rank.options.filterOrganizationMap.has(Y.organization)||st.rank.options.filterTeamMap.has(Y.id)))),W=wt(()=>{let K=0;return A.value.teams.forEach(Y=>{K=Math.max(K,Y.organization.length)}),K}),J=wt(()=>{let K=0;return A.value.teams.forEach(Y=>{K=Math.max(K,Y.name.length)}),K});return(K,Y)=>{const U=Xn,O=Dn,N=$o;return ut(),ft("div",null,[ot("div",null,[ot("table",Yn,[ot("thead",Un,[ot("tr",null,[ot("th",Vn,vt(et(nt)("standings.place")),1),et(A).contest.badge?(ut(),ft("th",qn,vt(et(A).contest.badge),1)):St("",!0),et(A).contest.organization?(ut(),ft("th",{key:1,class:"title",style:qt({width:`${Math.min(32,Math.ceil(et(W)*1.1))}rem`})},vt(et(A).contest.organization),5)):St("",!0),ot("th",{class:"title",style:qt({width:`${Math.min(32,Math.ceil(et(J)*1))}rem`})},vt(et(nt)("standings.team")),5),ot("th",Kn,vt(et(nt)("standings.solved")),1),ot("th",Zn,vt(et(nt)("standings.penalty")),1),(ut(!0),ft(Et,null,It(et(A).contest.problems,R=>(ut(),Ht(U,{key:`problem-block-${R.id}`,rank:et(A),problem:R},null,8,["rank","problem"]))),128)),ot("th",Jn,vt(et(nt)("standings.dirt")),1)])]),ot("tbody",null,[(ut(!0),ft(Et,null,It(et(P),(R,x)=>(ut(),Ht(O,{key:`filter-${R.id}`,ix:x,rank:et(A),team:R,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Et,null,It(et(j),(R,x)=>(ut(),Ht(O,{key:R.id,ix:x,rank:et(A),team:R},null,8,["ix","rank","team"]))),128)),Ot(N,{rank:et(A)},null,8,["rank"])])])])])}}});const tr=Ft(Qn,[["__scopeId","data-v-49b9fc34"]]),er={"font-mono":"",flex:""},ir=["onClick"],sr=["href"],or={key:1},nr=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(lt,{emit:st}){const nt=lt,A=wt(()=>{var O;for(const N of nt.items)if(N.isDefault)return N.keyword;return(O=nt.items)==null?void 0:O[0].keyword}),j=Oe(nt.queryParamName,A.value,{transform:String}),P=wt({get(){return nt.currentItem},set(O){st("update:currentItem",O)}}),{t:W,locale:J}=Ut();function K(O){return O.title?W(O.title):O.titles?O.titles.get(J.value)??O.titles.get(O.defaultLang):""}function Y(O){return P.value===O.keyword}function U(O){nt.onChange&&nt.onChange(O.keyword),!(O.link||O.isModal)&&(P.value=O.keyword,j.value=O.keyword)}return Le(()=>{(()=>{var O;((O=j.value)==null?void 0:O.length)>0&&((()=>{for(const N of nt.items)if(N.titles){for(const[R,x]of N.titles)if(j.value===x){j.value=N.keyword;return}}})(),P.value=j.value,nt.onChange&&nt.onChange(j.value))})()}),(O,N)=>(ut(),ft("div",er,[ot("div",{class:Tt(["mr-[-4px]",{"flex-row-reverse":nt.reverseOrder}]),flex:""},[(ut(!0),ft(Et,null,It(nt.items,R=>(ut(),ft("div",{key:R.keyword,class:Tt(["second-level-menu-item",[Y(R)?"second-level-menu-item-current":""]]),onClick:x=>U(R)},[ot("div",null,[R.link?(ut(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},vt(K(R)),9,sr)):St("",!0),R.link?St("",!0):(ut(),ft("div",or,vt(K(R)),1))])],10,ir))),128))],2)]))}});const rr=Ft(nr,[["__scopeId","data-v-714a998b"]]);const ar={},lr={class:"flex items-center justify-center dark:text-black"},hr=Ze('<table data-v-54297ce8><tbody data-v-54297ce8><tr data-v-54297ce8><td class="gold" data-v-54297ce8> Gold </td><td class="silver" data-v-54297ce8> Silver </td><td class="bronze" data-v-54297ce8> Bronze </td><td class="honorable" data-v-54297ce8> Honorable </td><td class="first-solve" data-v-54297ce8> First to solve problem </td><td class="correct" data-v-54297ce8> Solved problem </td><td class="incorrect" data-v-54297ce8> Attempted problem </td><td class="pending" data-v-54297ce8> Pending judgement </td></tr></tbody></table>',1),cr=[hr];function dr(lt,st){return ut(),ft("div",lr,cr)}const pr=Ft(ar,[["render",dr],["__scopeId","data-v-54297ce8"]]),ur={flex:""},fr=ot("div",null,[ot("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),gr={flex:""},mr=ot("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),xr={flex:""},yr=Dt({__name:"BoardTab",props:{rank:{}},setup(lt){const st=lt,nt=wt(()=>st.rank),{t:A}=Ut(),j=Me.useToast(),{copy:P,isSupported:W}=Te();let J=null;const K=Pt(null),Y=Pt(null);function U(){return window?W.value?!0:(j.warning("clipboard is not supported"),J==null||J.hide(),!1):!1}function O(){j.success("copy success"),J==null||J.hide()}function N(){U()&&(P(window.location.href),O())}function R(){if(!U())return;const x=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;P(x),O()}return Le(()=>{if(K.value&&Y.value){const x={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};J=new Je(K.value,Y.value,x)}}),(x,b)=>{const _=Pe;return ut(),ft("div",ur,[ot("div",null,[Ot(_,{"w-inherit":""},{popper:Yt(()=>{var I;return[ot("div",gr,[ot("div",null,vt(et(A)("standings.options.calculation_of_penalty"))+": "+vt(et(A)(`standings.options.${(I=et(nt).contest.options)==null?void 0:I.calculationOfPenalty}`)),1)])]}),default:Yt(()=>[fr]),_:1})]),mr,ot("div",xr,[ot("div",{ref_key:"dropdownTriggerEl",ref:Y,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),ot("div",{ref_key:"dropdownTargetEl",ref:K,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[ot("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[ot("li",null,[ot("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:N}," Copy Page Link ")]),ot("li",null,[ot("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:R}," Copy Page Code ")])])],512)])])}}}),vr=lt=>(Qt("data-v-4e9f1054"),lt=lt(),te(),lt),kr={key:0},br={key:0},wr={key:0},Sr={class:"max-w-[92%]"},Cr=["src"],Mr={class:"max-w-[92%]"},Tr={"mt-2":""},Ar={class:"w-[92%]"},Pr={class:"flex font-bold font-mono"},Or={class:"float-left"},Lr={class:"pl-0.5"},_r={class:"flex-1"},Er={class:"float-right"},Dr={class:"pl-0.5"},Ir={class:"mt-2"},jr={class:"mt-2 flex font-bold font-mono"},Br={class:"float-left"},Rr={class:"flex-1"},zr={class:"float-right"},Hr={class:"mt-4 flex"},Nr={class:"float-left"},$r=vr(()=>ot("div",{class:"flex-1"},null,-1)),Wr={class:"float-right"},Gr={class:"max-w-[92%]"},Fr={key:0},Xr={key:1,class:"w-[88vw]"},Yr={key:2},Ur={key:3},Vr={key:4},Se="sm:w-[1280px] xl:w-screen",se="sm:w-[1260px] xl:w-screen",qr=Dt({__name:"Board",props:{dataSourceUrl:null},setup(lt){const st=lt,nt=Jt(),A=Qe(ue),{t:j}=Ut(),P=Pt(!1),W=Pt({}),J=Pt([]),K=Pt([]),Y=Pt({}),U=Pt(new Date),O=Pt(new ti),N=Pt(!1);(()=>{const r=ji(),S=Bi();r.value.length>0&&O.value.setFilterOrganizations(r.value),S.value.length>0&&O.value.setFilterTeams(S.value)})();const R=Pt("all");function x(r){r!==O.value.group&&O.value.setGroup(r)}(()=>{const r=Oe("group","all",{transform:String});R.value=r.value,O.value.setGroup(r.value)})();function b(r={force:!1}){if(N.value&&r.force===!1)return;const S=new ai(W.value,J.value,K.value);S.options=fe.cloneDeep(O.value),S.buildRank(),Y.value=S}const{data:_,isError:I,error:d}=ci(st.dataSourceUrl??nt.path,U);ne(_,async()=>{var r,S,F;_.value===null||_.value===void 0||(W.value=ei((r=_.value)==null?void 0:r.contest),A.value=`${W.value.name} | ${ue}`,J.value=ii((S=_.value)==null?void 0:S.teams),K.value=si((F=_.value)==null?void 0:F.submissions),!O.value.enableFilterSubmissionsByTimestamp&&(b(),P.value=!0))});const y=Pt(!1);ne(O.value,()=>{if(P.value!==!1){if(!Y.value.options.isNeedReBuildRank(O.value)){Y.value.options=fe.cloneDeep(O.value);return}y.value!==!0&&(y.value=!0,b(),y.value=!1)}});const v=Pt([{title:"type_menu.rank",keyword:"rank",isDefault:!0},{title:"type_menu.submissions",keyword:"submissions"},{title:"type_menu.statistics",keyword:"statistics"},{title:"type_menu.export",keyword:"export"},{title:"type_menu.utility",keyword:"utility"},{title:"type_menu.options",keyword:"options",isModal:!0}]),f=wt(()=>Y.value.contest.group),T=wt(()=>{const r=Array();for(const[S,F]of f.value){const q={titles:F.names,defaultLang:F.defaultLang,keyword:S,isDefault:F.isDefault};r.push(q)}return r}),k=Pt("rank"),w=Pt(!0);function n(r){r==="options"&&(w.value=!1)}function a(){const r=document.documentElement.scrollHeight||document.body.scrollHeight,S=document.documentElement.scrollTop||document.body.scrollTop,F=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;return r-S===F}let p=null;function h(){p!==null&&clearInterval(p)}oi("S",r=>{if(N.value=!N.value,N.value===!0){let F=0,q="DOWN";p=setInterval(()=>{if(q==="DOWN"){if(a()){q="UP",b({force:!0});return}F+=2}else{if(F===0){q="DOWN",b({force:!0});return}F-=2}window.scrollTo({top:F,behavior:"smooth"})},64)}else h()},{dedupe:!1});const c=wt(()=>{const r=Y.value.contest.startTime.format("YYYY-MM-DD HH:mm:ss");return`${j("standings.start_time")}${j("common.colon")}${r}`}),e=wt(()=>{const r=Y.value.contest.endTime.format("YYYY-MM-DD HH:mm:ss");return`${j("standings.end_time")}${j("common.colon")}${r}`}),t=wt(()=>{const r=Y.value.contest.getContestElapsedTime(U.value);return`${j("standings.elapsed")}${j("common.colon")}${r}`}),i=wt(()=>{const r=Y.value.contest.getContestRemainingTime(U.value);return`${j("standings.remaining")}${j("common.colon")}${r}`}),l=wt(()=>Y.value.options.enableFilterSubmissionsByTimestamp?ni.PAUSED:Y.value.contest.getContestState()),u=wt(()=>Ae(Y.value.options.timestamp)),L=setInterval(()=>{U.value=new Date},1e3);return ri(()=>{clearInterval(L),h()}),(r,S)=>{var m;const F=yr,q=li,rt=hi,B=pr,s=rr,M=tr,z=ae,D=ws,V=ls,o=Vi,g=Fi;return ut(),ft("div",null,[et(P)?St("",!0):(ut(),ft("div",kr,[ot("div",{class:Tt([Se]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[ot("div",null,vt(et(j)("common.loading"))+"... ",1),et(I)?(ut(),ft("div",br,vt(et(d)),1)):St("",!0)],2)])),et(P)?(ut(),ft("div",{key:1,class:Tt([Se]),flex:"","flex-col":"","justify-center":"","items-center":""},[et(Y).contest.banner?(ut(),ft("div",wr,[ot("div",{class:Tt([se]),"mb-4":"",flex:"","justify-center":"","items-center":""},[ot("div",Sr,[ot("img",{src:["data:image/png;base64,",(m=et(Y).contest.banner)==null?void 0:m.base64].join(""),alt:"banner"},null,8,Cr)])],2)])):St("",!0),ot("div",{class:Tt(["title",[se]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[ot("div",Mr,vt(et(Y).contest.name),1)],2),ot("div",Tr,[Ot(F,{rank:et(Y)},null,8,["rank"])]),ot("div",{class:Tt([se]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[ot("div",Ar,[ot("div",Pr,[ot("div",Or,[Wt(vt(et(c)),1),ot("sup",Lr,vt(et(Y).contest.startTime.format("z")),1)]),ot("div",_r,[Ot(q,{state:et(l),"pending-time":et(Y).contest.getContestPendingTime(et(U)),"paused-time":et(u)},null,8,["state","pending-time","paused-time"])]),ot("div",Er,[Wt(vt(et(e)),1),ot("sup",Dr,vt(et(Y).contest.endTime.format("z")),1)])]),ot("div",Ir,[Ot(rt,{"rank-options":et(O),"onUpdate:rankOptions":S[0]||(S[0]=H=>Rt(O)?O.value=H:null),width:et(Y).contest.getContestProgressRatio(et(U)),state:et(Y).contest.getContestState(et(U)),"need-scroll":!0,rank:et(Y),"elapsed-time":et(Y).contest.getContestElapsedTime(et(U))},null,8,["rank-options","width","state","rank","elapsed-time"])]),ot("div",jr,[ot("div",Br,vt(et(t)),1),ot("div",Rr,[Ot(B)]),ot("div",zr,vt(et(i)),1)]),ot("div",Hr,[ot("div",Nr,[Ot(s,{"current-item":et(R),"onUpdate:currentItem":S[1]||(S[1]=H=>Rt(R)?R.value=H:null),items:et(T),"query-param-name":"group","on-change":x},null,8,["current-item","items"])]),$r,ot("div",Wr,[Ot(s,{"current-item":et(k),"onUpdate:currentItem":S[2]||(S[2]=H=>Rt(k)?k.value=H:null),items:et(v),"reverse-order":!0,"query-param-name":"type","on-change":n},null,8,["current-item","items"])])])])],2),ot("div",{"mt-4":"",class:Tt([se]),flex:"","justify-center":""},[ot("div",Gr,[et(k)==="rank"?(ut(),ft("div",Fr,[Ot(M,{rank:et(Y)},null,8,["rank"])])):St("",!0),et(k)==="submissions"?(ut(),ft("div",Xr,[Ot(z,{"w-full":"",rank:et(Y),submissions:et(Y).getSubmissions()},null,8,["rank","submissions"])])):St("",!0),et(k)==="statistics"?(ut(),ft("div",Yr,[Ot(D,{rank:et(Y)},null,8,["rank"])])):St("",!0),et(k)==="export"?(ut(),ft("div",Ur,[Ot(V,{rank:et(Y)},null,8,["rank"])])):St("",!0),et(k)==="utility"?(ut(),ft("div",Vr,[Ot(o,{rank:et(Y)},null,8,["rank"])])):St("",!0)])],2)],2)):St("",!0),et(w)?St("",!0):(ut(),Ht(g,{key:2,"is-hidden":et(w),"onUpdate:isHidden":S[3]||(S[3]=H=>Rt(w)?w.value=H:null),"rank-options":et(O),"onUpdate:rankOptions":S[4]||(S[4]=H=>Rt(O)?O.value=H:null),rank:et(Y)},null,8,["is-hidden","rank-options","rank"]))])}}});const Qr=Ft(qr,[["__scopeId","data-v-4e9f1054"]]);export{Qr as _};