@xcpcio/board-app 0.25.0 → 0.26.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/about.html +2 -2
- package/dist/assets/{DataSourceInput.vue_vue_type_script_setup_true_lang-7dd754fb.js → DataSourceInput.vue_vue_type_script_setup_true_lang-6fc6f8ea.js} +1 -1
- package/dist/assets/{TheInput.vue_vue_type_script_setup_true_lang-bd7b9fe6.js → TheInput.vue_vue_type_script_setup_true_lang-4ea0bd97.js} +1 -1
- package/dist/assets/_...all_-cf83185b.js +3 -0
- package/dist/assets/{_...all_-16dbd7b8.css → _...all_-f6dd53aa.css} +1 -1
- package/dist/assets/{_name_-94d749aa.js → _name_-58c24204.js} +1 -1
- package/dist/assets/{about-f01d587e.js → about-94580762.js} +1 -1
- package/dist/assets/{app-b6bf8dd1.js → app-21014468.js} +3 -3
- package/dist/assets/{board-layout-52e96f00.js → board-layout-430c688d.js} +1 -1
- package/dist/assets/{headless-e8cc73cd.js → headless-4d39b6f3.js} +1 -1
- package/dist/assets/{home-334a9895.js → home-401b6bdc.js} +1 -1
- package/dist/assets/{index-7f7e6de0.css → index-00889800.css} +1 -1
- package/dist/assets/{index-43dadeef.js → index-95c5e1ae.js} +1 -1
- package/dist/assets/{index-layout-ad419356.js → index-layout-bb5b04eb.js} +1 -1
- package/dist/assets/{test-27f85731.js → test-5e95874d.js} +1 -1
- package/dist/assets/{user-b8ba5adf.js → user-57f2ad93.js} +1 -1
- package/dist/assets/{virtual_pwa-register-698ae235.js → virtual_pwa-register-8d09e89c.js} +1 -1
- package/dist/balloon.html +1 -1
- package/dist/index.html +1 -1
- package/dist/sitemap.xml +1 -1
- package/dist/ssr-manifest.json +400 -128
- package/dist/sw.js +1 -1
- package/dist/test.html +1 -1
- package/package.json +3 -3
- package/src/components/board/Board.vue +2 -2
- package/src/components/board/BoardTab.vue +133 -15
- package/src/pages/index.vue +2 -1
- package/dist/assets/_...all_-d6af1410.js +0 -3
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
var De=Object.defineProperty;var Ie=(lt,et,ot)=>et in lt?De(lt,et,{enumerable:!0,configurable:!0,writable:!0,value:ot}):lt[et]=ot;var ee=(lt,et,ot)=>(Ie(lt,typeof et!="symbol"?et+"":et,ot),ot);import{g as Dt,h as St,J as je,w as ne,o as ut,c as ft,d as at,k as qt,K as de,t as vt,n as Tt,L as Xt,G as $t,F as Et,z as It,l as wt,M as zt,N as Be,O as Re,P as Zt,Q as we,q as Ft,i as Ot,A as Wt,S as Kt,j as st,b as Pt,E as Nt,D as Se,T as Jt,U as ze,V as Ne,W as He,X as $e,Y as pe,Z as We,$ as Ce,a0 as Ge,a1 as Fe,a2 as Xe,a3 as Qt,a4 as te,a as Yt,a5 as Vt,a6 as Ye,u as Ue,a7 as Me,a8 as Ve,I as qe,r as Te,p as Ke,a9 as ue,aa as Ze,s as Je,v as Qe,x as ti,ab as fe,ac as ei,ad as ii,y as si,R as oi,ae as ni,af as ri,C as ge}from"./app-b6bf8dd1.js";import{u as ai,g as li,_ as hi}from"./DataSourceInput.vue_vue_type_script_setup_true_lang-7dd754fb.js";import"./TheInput.vue_vue_type_script_setup_true_lang-bd7b9fe6.js";const ci={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":""},di={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},pi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},ui={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},fi=at("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[at("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),gi=at("span",{"sr-only":""}," Close modal ",-1),mi=[fi,gi],ae=Dt({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(lt,{emit:et}){const ot=lt,A=St({get(){return ot.isHidden},set(W){et("update:isHidden",W)}});function j(){A.value=!0}const{Escape:O}=je();return ne(O,W=>{W&&j()}),(W,tt)=>(ut(),ft("div",ci,[at("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),at("div",{class:Tt(["relative p-4",[ot.width??"w-[78%]"]]),"z-9999":""},[at("div",di,[at("div",pi,[de(W.$slots,"header",{},()=>[at("h3",ui,vt(ot.title),1)]),at("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},mi)]),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 et=lt.pointer-1,ot=lt.$el.offsetHeight*et;et>=0&&(lt.pointer=et),lt.$refs.menu.scrollTop=ot},nextItem(lt){const et=lt.pointer+1,ot=lt.$el.offsetHeight*et;et<=lt.filteredOptions.length-1&&(lt.pointer=et);const A=lt.$refs.menu.offsetHeight,j=Math.ceil((lt.$refs.menu.scrollTop+lt.$el.offsetHeight)/A),O=Math.ceil(ot/A);j!==O&&(lt.$refs.menu.scrollTop=(O-1)*lt.$refs.menu.offsetHeight)},enterItem(lt){const et=lt.filteredOptions[lt.pointer],ot=et.disabled;et&&!ot&<.selectItem(et)},pointerSet(lt,et){lt.pointer=et},pointerAdjust(lt){lt.pointer>=lt.filteredOptions.length-1&&(lt.pointer=lt.filteredOptions.length?lt.filteredOptions.length-1:0)},mousedownItem(lt){lt.mousedownState=!0}};function xi(lt){return new RegExp(lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Ae={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,et)=>lt.match(xi(et))}}},Pe=(lt,et)=>{const ot=lt.__vccOpts||lt;for(const[A,j]of et)ot[A]=j;return ot},yi={name:"ModelSelect",mixins:[Ae],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(et=>et.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&<.value===lt.text&&(this.searchText=lt.value))},optionValue(lt){return typeof lt=="object"&<!==null?lt.value:lt}}},vi=at("i",{class:"dropdown icon"},null,-1),ki=["disabled","tabindex","id","name","value"],bi=["data-vss-custom-attr"],wi=["data-vss-custom-attr","onClick","onMouseenter"];function Si(lt,et,ot,A,j,O){return ut(),ft("div",{class:Tt(["ui fluid search selection dropdown",{"active visible":j.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:et[11]||(et[11]=(...W)=>O.openOptions&&O.openOptions(...W)),onFocus:et[12]||(et[12]=(...W)=>O.openOptions&&O.openOptions(...W))},[vi,at("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,value:j.searchText,onInput:et[0]||(et[0]=W=>j.searchText=W.target.value),ref:"input",onFocus:et[1]||(et[1]=Xt((...W)=>O.openOptions&&O.openOptions(...W),["prevent"])),onKeyup:[et[2]||(et[2]=$t((...W)=>O.closeOptions&&O.closeOptions(...W),["esc"])),et[7]||(et[7]=$t(Xt((...W)=>O.enterItem&&O.enterItem(...W),["prevent"]),["enter"]))],onBlur:et[3]||(et[3]=(...W)=>O.blurInput&&O.blurInput(...W)),onKeydown:[et[4]||(et[4]=$t((...W)=>O.prevItem&&O.prevItem(...W),["up"])),et[5]||(et[5]=$t((...W)=>O.nextItem&&O.nextItem(...W),["down"])),et[6]||(et[6]=$t(Xt(()=>{},["prevent"]),["enter"])),et[8]||(et[8]=$t((...W)=>O.deleteTextOrItem&&O.deleteTextOrItem(...W),["delete"]))]},null,40,ki),at("div",{class:Tt(["text",O.textClass]),"data-vss-custom-attr":O.searchTextCustomAttr},vt(O.inputText),11,bi),at("div",{class:Tt(["menu",O.menuClass]),ref:"menu",onMousedown:et[10]||(et[10]=Xt(()=>{},["prevent"])),style:qt(O.menuStyle),tabindex:"-1"},[(ut(!0),ft(Et,null,It(O.filteredOptions,(W,tt)=>(ut(),ft("div",{key:tt,class:Tt(["item",{selected:W.selected||j.pointer===tt,disabled:W.disabled}]),"data-vss-custom-attr":O.customAttrs[tt]?O.customAttrs[tt]:"",onClick:Xt(J=>O.selectItem(W),["stop"]),onMousedown:et[9]||(et[9]=(...J)=>O.mousedownItem&&O.mousedownItem(...J)),onMouseenter:J=>O.pointerSet(tt)},vt(W.text),43,wi))),128))],38)],34)}const Ci=Pe(yi,[["render",Si]]),Mi={name:"MultiSelect",mixins:[Ae],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(et=>et.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 et=this.selectedOptions.concat(lt),ot=et.filter((A,j)=>et.indexOf(A)===j);this.closeOptions(),this.searchText="",this.$emit("select",ot,lt,"insert")},deleteItem(lt){const et=this.selectedOptions.filter(ot=>ot.value!==lt.value);this.$emit("select",et,lt,"delete")},accentsTidy(lt){let et=lt.toString().toLowerCase();return et=et.replace(new RegExp("[àáâãäå]","g"),"a"),et=et.replace(new RegExp("æ","g"),"ae"),et=et.replace(new RegExp("ç","g"),"c"),et=et.replace(new RegExp("[èéêë]","g"),"e"),et=et.replace(new RegExp("[ìíîï]","g"),"i"),et=et.replace(new RegExp("ñ","g"),"n"),et=et.replace(new RegExp("[òóôõö]","g"),"o"),et=et.replace(new RegExp("œ","g"),"oe"),et=et.replace(new RegExp("[ùúûü]","g"),"u"),et=et.replace(new RegExp("[ýÿ]","g"),"y"),et}}},Ti=at("i",{class:"dropdown icon"},null,-1),Ai=["data-vss-custom-attr"],Pi=["onClick"],Oi=["disabled","tabindex","id","name"],Li=["data-vss-custom-attr","onClick","onMouseenter"];function _i(lt,et,ot,A,j,O){return ut(),ft("div",{class:Tt(["ui fluid search dropdown selection multiple",{"active visible":j.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:et[11]||(et[11]=(...W)=>O.openOptions&&O.openOptions(...W)),onFocus:et[12]||(et[12]=(...W)=>O.openOptions&&O.openOptions(...W))},[Ti,ot.hideSelectedOptions?wt("",!0):(ut(!0),ft(Et,{key:0},It(ot.selectedOptions,(W,tt)=>(ut(),ft("a",{key:tt,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":ot.customAttr(W)},[zt(vt(W.text),1),at("i",{class:"delete icon",onClick:J=>O.deleteItem(W)},null,8,Pi)],8,Ai))),128)),Be(at("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,"onUpdate:modelValue":et[0]||(et[0]=W=>j.searchText=W),ref:"input",style:qt(O.inputWidth),onFocus:et[1]||(et[1]=Xt((...W)=>O.openOptions&&O.openOptions(...W),["prevent"])),onKeyup:[et[2]||(et[2]=$t((...W)=>O.closeOptions&&O.closeOptions(...W),["esc"])),et[7]||(et[7]=$t(Xt((...W)=>O.enterItem&&O.enterItem(...W),["prevent"]),["enter"]))],onBlur:et[3]||(et[3]=(...W)=>O.blurInput&&O.blurInput(...W)),onKeydown:[et[4]||(et[4]=$t((...W)=>O.prevItem&&O.prevItem(...W),["up"])),et[5]||(et[5]=$t((...W)=>O.nextItem&&O.nextItem(...W),["down"])),et[6]||(et[6]=$t(Xt(()=>{},["prevent"]),["enter"])),et[8]||(et[8]=$t((...W)=>O.deleteTextOrLastItem&&O.deleteTextOrLastItem(...W),["delete"]))]},null,44,Oi),[[Re,j.searchText]]),at("div",{class:Tt(["text",O.textClass])},vt(O.inputText),3),at("div",{class:Tt(["menu",O.menuClass]),ref:"menu",onMousedown:et[10]||(et[10]=Xt(()=>{},["prevent"])),style:qt(O.menuStyle),tabindex:"-1"},[(ut(!0),ft(Et,null,It(O.filteredOptions,(W,tt)=>(ut(),ft("div",{key:tt,class:Tt(["item",{selected:W.selected||j.pointer===tt,disabled:W.disabled}]),"data-vss-custom-attr":ot.customAttr(W),onClick:Xt(J=>O.selectItem(W),["stop"]),onMousedown:et[9]||(et[9]=(...J)=>O.mousedownItem&&O.mousedownItem(...J)),onMouseenter:J=>O.pointerSet(tt)},vt(W.text),43,Li))),128))],38)],34)}const me=Pe(Mi,[["render",_i]]);function Ei(){return`filter-organizations-${Zt().path}`}function Di(){return`filter-teams-${Zt().path}`}function Ii(){const et=`filter-organizations-${Zt().path}`;return we(et,[])}function ji(){const et=`filter-teams-${Zt().path}`;return we(et,[])}const Bi={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},Ri={key:0,flex:"","flex-col":"","w-full":""},zi={"w-full":"","mt-2":""},Ni={flex:"","flex-col":"","w-full":""},Hi=at("div",null," Filter Team ",-1),$i={"w-full":"","mt-2":""},Wi={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},Gi=Dt({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(lt,{emit:et}){const ot=lt,{t:A}=Ft(),j=St({get(){return ot.isHidden},set(y){et("update:isHidden",y)}}),O=St({get(){return ot.rankOptions},set(y){et("update:rankOptions",y)}}),W=St(()=>ot.rank),tt=St(()=>A("type_menu.options")),J=St(()=>W.value.organizations.map(f=>({value:f,text:f}))),Y=Ot(O.value.filterOrganizations),U=Ot({});function _(y,f){Y.value=y,U.value=f}const N=St(()=>W.value.originTeams.map(f=>({value:f.id,text:f.organization?`${f.name} - ${f.organization}`:f.name}))),R=Ot(O.value.filterTeams),v=Ot({});function w(y,f){R.value=y,v.value=f}function L(){j.value=!0}const I=Ei(),d=Di();function x(){O.value.setFilterOrganizations(Y.value),O.value.setFilterTeams(R.value),localStorage.setItem(I,JSON.stringify(Y.value)),localStorage.setItem(d,JSON.stringify(R.value)),L()}return(y,f)=>{const T=ae;return ut(),Wt(T,{isHidden:st(j),"onUpdate:isHidden":f[0]||(f[0]=k=>Nt(j)?j.value=k:null),title:st(tt),width:"w-180"},{default:Kt(()=>[at("div",Bi,[st(W).contest.organization?(ut(),ft("div",Ri,[at("div",null," Filter "+vt(st(W).contest.organization),1),at("div",zi,[Pt(st(me),{options:st(J),"selected-options":st(Y),onSelect:_},null,8,["options","selected-options"])])])):wt("",!0),at("div",Ni,[Hi,at("div",$i,[Pt(st(me),{options:st(N),"selected-options":st(R),onSelect:w},null,8,["options","selected-options"])])]),at("div",Wi,[at("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:x},vt(st(A)("button.confirm")),1),at("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:L},vt(st(A)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}}),Fi={"w-full":"",flex:"","mt-4":"","gap-4":""},Xi=["href"],Yi={btn:"",title:"Submissions",disabled:"true"},Ui=Dt({__name:"Utility",setup(lt){const{t:et}=Ft(),ot=Zt(),A=Se(),j=St(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${ot.path}`);function O(){A.push(`/balloon/?data-source=${ot.path}`)}return(W,tt)=>(ut(),ft("div",Fi,[at("a",{btn:"",href:st(j),target:"_blank",title:"Resolver"},vt(st(et)("type_menu.resolver")),9,Xi),at("button",{btn:"",title:"Balloon",onClick:O},vt(st(et)("type_menu.balloon")),1),at("button",Yi,vt(st(et)("type_menu.submissions")),1)]))}});var Oe={exports:{}};(function(lt,et){(function(ot,A){A()})(Jt,function(){function ot(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,_){var N=new XMLHttpRequest;N.open("GET",Y),N.responseType="blob",N.onload=function(){J(N.response,U,_)},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 O(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 Jt=="object"&&Jt.global===Jt?Jt:void 0,tt=W.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),J=W.saveAs||(typeof window!="object"||window!==W?function(){}:"download"in HTMLAnchorElement.prototype&&!tt?function(Y,U,_){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?O(R):j(R.href)?A(Y,U,_):O(R,R.target="_blank")):(R.href=N.createObjectURL(Y),setTimeout(function(){N.revokeObjectURL(R.href)},4e4),setTimeout(function(){O(R)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,U,_){if(U=U||Y.name||"download",typeof Y!="string")navigator.msSaveOrOpenBlob(ot(Y,_),U);else if(j(Y))A(Y,U,_);else{var N=document.createElement("a");N.href=Y,N.target="_blank",setTimeout(function(){O(N)})}}:function(Y,U,_,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof Y=="string")return A(Y,U,_);var R=Y.type==="application/octet-stream",v=/constructor/i.test(W.HTMLElement)||W.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||R&&v||tt)&&typeof FileReader<"u"){var L=new FileReader;L.onloadend=function(){var x=L.result;x=w?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=x:location=x,N=null},L.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=J.saveAs=J,lt.exports=J})})(Oe);var Vi=Oe.exports;const qi=ze(Vi);var Ki=setTimeout;function Zi(lt,et){var ot=et.useCachedSetTimeout?Ki:setTimeout;return new Promise(function(A){ot(A,lt)})}function Ji(lt){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ot=et.useCachedSetTimeout,A=Zi(lt,{useCachedSetTimeout:ot});function j(O){return A.then(function(){return O})}return j.then=function(){return A.then.apply(A,arguments)},j.catch=Promise.resolve().catch,j}const Qi={flex:"","flex-col":""},ts={"w-160":"","font-bold":""},es={"mt-8":""},is={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},ss=["disabled"],os=["disabled"],ns={key:1,flex:"","justify-center":""},rs=["disabled"],as=Dt({__name:"Export",props:{rank:null},setup(lt){const et=lt,ot=Ne.useToast(),{copy:A,isSupported:j}=He(),O=St(()=>et.rank),W=Ot({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),tt=Ot([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),J=Ot({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function Y(){await $e(),await Ji(16)}async function U(){J.value.CfDatDownload=!0,await Y();const v=new pe().convert(O.value),w=new Blob([v],{type:"text/plain;charset=utf-8"});qi.saveAs(w,"contest.dat"),J.value.CfDatDownload=!1}async function _(){if(!j.value){ot.warning("clipboard is not supported");return}J.value.CfDatCopy=!0,await Y();const v=new pe().convert(O.value);A(v),J.value.CfDatCopy=!1,ot.success("Copy Success")}async function N(){J.value.GeneralXLSXDownload=!0,await Y(),new We().convertAndWrite(O.value,`${O.value.contest.name}.xlsx`),J.value.GeneralXLSXDownload=!1}return(R,v)=>(ut(),ft("div",Qi,[at("div",ts,[Pt(st(Ci),{modelValue:st(W),"onUpdate:modelValue":v[0]||(v[0]=w=>Nt(W)?W.value=w:null),options:st(tt),placeholder:"Export Type"},null,8,["modelValue","options"])]),at("div",es,[st(W).value==="cf-dat"?(ut(),ft("div",is,[at("button",{disabled:st(J).CfDatDownload,btn:"",onClick:U}," Download ",8,ss),at("button",{disabled:st(J).CfDatCopy,btn:"",onClick:_}," Copy to Clipboard ",8,os)])):wt("",!0),st(W).value==="general-xlsx"?(ut(),ft("div",ns,[at("button",{disabled:st(J).GeneralXLSXDownload,btn:"",onClick:N}," Download ",8,rs)])):wt("",!0)])]))}});function le(lt,et,ot,A,j,O){return{colors:O,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:et,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:ot,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 ls(lt){const et=[];lt.contest.problems.forEach((O,W)=>{et.push({problem_id:O.label,index:W,solved:O.statistics.acceptedNum})}),et.sort((O,W)=>O.solved>W.solved?-1:O.solved<W.solved?1:O.index<W.index?-1:O.index>W.index?1:0);const{cat:ot,series:A,colors:j}=(()=>{const O=[],W=[];return et.forEach(Y=>{O.push(Y.problem_id),W.push(Y.solved)}),{cat:O,series:[{name:"队伍数",showInLegend:!1,data:W}],colors:["rgb(124, 181, 236)"]}})();return le("题目通过数统计","题目编号","通过数",ot,A,j)}function hs(lt){const et=lt.rankStatistics.teamSolvedNum.map((O,W)=>({index:W,cnt:O})),{cat:ot,series:A,colors:j}=(()=>{const O=[],W=[];return et.forEach(Y=>{O.push(Y.index),W.push(Y.cnt)}),{cat:O,series:[{name:"队伍数",showInLegend:!1,data:W}],colors:["rgb(124, 181, 236)"]}})();return le("队伍过题数统计","过题数","队伍数",ot,A,j)}function cs(lt){const{cat:et,series:ot,colors:A}=(()=>{const j=[],O=[],W=[],tt=[];return lt.contest.problems.forEach(U=>{O.push(U.statistics.acceptedNum),W.push(U.statistics.rejectedNum),tt.push(U.statistics.pendingNum),j.push(U.label)}),{cat:j,series:[{name:"Accepted",showInLegend:!1,data:O},{name:"Rejected",showInLegend:!1,data:W},{name:"Pending",showInLegend:!1,data:tt}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return le("提交分类统计","题目编号","提交数",et,ot,A)}function ds(lt,et){const ot=et.placeChartPoints.map(j=>{var O,W;return{x:j.timePoint,y:j.rank,showX:Ce(j.timePoint),lastSolved:(O=j.lastSolvedProblem)!=null&&O.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:ot,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 Le={exports:{}},re={exports:{}},xe;function ps(){return xe||(xe=1,function(lt){(function(et,ot){lt.exports?(ot.default=ot,lt.exports=et.document?ot(et):ot):(et.Highcharts&&et.Highcharts.error(16,!0),et.Highcharts=ot(et))})(typeof window<"u"?window:Jt,function(et){function ot(j,O,W,tt){j.hasOwnProperty(O)||(j[O]=tt.apply(null,W),typeof CustomEvent=="function"&&et.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:O,module:j[O]}})))}var A={};return ot(A,"Core/Globals.js",[],function(){var j;return function(O){O.SVG_NS="http://www.w3.org/2000/svg",O.product="Highcharts",O.version="11.1.0",O.win=typeof et<"u"?et:{},O.doc=O.win.document,O.svg=O.doc&&O.doc.createElementNS&&!!O.doc.createElementNS(O.SVG_NS,"svg").createSVGRect,O.userAgent=O.win.navigator&&O.win.navigator.userAgent||"",O.isChrome=O.userAgent.indexOf("Chrome")!==-1,O.isFirefox=O.userAgent.indexOf("Firefox")!==-1,O.isMS=/(edge|msie|trident)/i.test(O.userAgent)&&!O.win.opera,O.isSafari=!O.isChrome&&O.userAgent.indexOf("Safari")!==-1,O.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(O.userAgent),O.isWebKit=O.userAgent.indexOf("AppleWebKit")!==-1,O.deg2rad=2*Math.PI/360,O.hasBidiBug=O.isFirefox&&4>parseInt(O.userAgent.split("Firefox/")[1],10),O.hasTouch=!!O.win.TouchEvent,O.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],O.noop=function(){},O.supportsPassiveEvents=function(){let W=!1;if(!O.isMS){const tt=Object.defineProperty({},"passive",{get:function(){W=!0}});O.win.addEventListener&&O.win.removeEventListener&&(O.win.addEventListener("testPassive",O.noop,tt),O.win.removeEventListener("testPassive",O.noop,tt))}return W}(),O.charts=[],O.dateFormats={},O.seriesTypes={},O.symbolSizes={},O.chartCount=0}(j||(j={})),j}),ot(A,"Core/Utilities.js",[A["Core/Globals.js"]],function(j){function O(t,i,l,u){const P=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${P}: Deprecated member`);const r=N(t);let S=r?`${P} #${t}: www.highcharts.com/errors/${t}/`:t.toString();if(typeof u<"u"){let F="";r&&(S+="?"),T(u,function(q,nt){F+=`
|
|
2
|
-
- ${nt}: ${q}`,r&&(S+=encodeURI(nt)+"="+encodeURI(q))}),S+=F}b(j,"displayError",{chart:l,code:t,message:S,params:u},function(){if(i)throw Error(S);p.console&&O.messages.indexOf(S)===-1&&console.warn(S)}),O.messages.push(S)}function W(t,i){return parseInt(t,i||10)}function tt(t){return typeof t=="string"}function J(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||!J(t))}function U(t){return Y(t)&&typeof t.nodeType=="number"}function _(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 v(t,i,l){const u=tt(i)&&!R(l);let P;const r=(S,F)=>{R(S)?t.setAttribute(F,S):u?(P=t.getAttribute(F))||F!=="class"||(P=t.getAttribute(F+"Name")):t.removeAttribute(F)};return tt(i)?r(l,i):T(i,r),P}function w(t){return J(t)?t:[t]}function L(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})`),L(t.style,i)}function x(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))}function y(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 P(S){let F,q;t.nodeName&&(i?(F={},F[i]=!0):F=S,T(F,function(nt,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)):(P(S),S[i]=[])):(P(S),delete r.hcEvents)}}function b(t,i,l,u){if(l=l||{},a.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==j)){var P=a.createEvent("Events");P.initEvent(i,!0,!0),l=L(P,l),t.dispatchEvent?t.dispatchEvent(l):t.fireEvent(i,l)}else if(t.hcEvents){l.target||L(l,{preventDefault:function(){l.defaultPrevented=!0},target:t,type:i}),P=[];let r=t,S=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(P.length&&(S=!0),P.unshift.apply(P,r.hcEvents[i])),r=Object.getPrototypeOf(r);S&&P.sort((F,q)=>F.order-q.order),P.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;(O||(O={})).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 O(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[tt(t[0])?t.shift():"Chart"](this[0],t[0],t[1]),this):n[v(this[0],"data-highcharts-chart")]}),h={addEvent:function(t,i,l,u={}){var P=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(P,"hcEvents")||(P.hcEvents={}),P=P.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),P[i]||(P[i]=[]),P[i].push({fn:l,order:typeof u.order=="number"?u.order:1/0}),P[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:v,clamp:function(t,i,l){return t>i?t<l?t:l:i},clearTimeout:function(t){R(t)&&clearTimeout(t)},correctFloat:y,createElement:function(t,i,l,u,P){return t=a.createElement(t),i&&L(t,i),P&&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 P(S,F,q,nt){const B=l?F:S;T(S,function(s,M){if(!nt&&u&&-1<u.indexOf(M)&&F[M]){s=w(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]={},P(s[z],F[M][z],q[M][z],nt+1)))}else Y(s,!0)&&!s.nodeType?(q[M]=J(s)?[]:{},P(s,F[M]||{},q[M],nt+1),Object.keys(q[M]).length!==0||M==="colorAxis"&&nt===0||delete q[M]):(S[M]!==F[M]||M in S&&!(M in F))&&(q[M]=B[M])})}const r={};return P(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:O,extend:L,extendClass:function(t,i){const l=function(){};return l.prototype=new t,L(l.prototype,i),l},find:h,fireEvent:b,getClosestDistance:function(t,i){const l=!i;let u,P,r;return t.forEach(S=>{if(1<S.length)for(r=S.length-1;0<r;r--)P=S[r]-S[r-1],0>P&&!l?(i==null||i(),i=void 0):P&&(typeof u>"u"||P<u)&&(u=P)}),u},getMagnitude:x,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 O(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 P;for(P=t.options.isInternal?u:0;P<u+1;P++)if(!i[P]||N(l)&&l<I(i[P].options.index,i[P]._i)||i[P].options.isInternal){i.splice(P,0,t);break}return P},isArray:J,isClass:_,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:N,isObject:Y,isString:tt,keys:function(t){return O(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)||_(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 P=i.length;for(t=0;t<P;t++)l=u(l,i[t]);return l},normalizeTickInterval:function(t,i,l,u,P){let r=t;l=I(l,x(t));const S=t/l;for(i||(i=P?[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],!(P&&r*l>=t||!P&&S<=(i[u]+(i[u+1]||i[u]))/2));u++);return r=y(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:w,stableSort:function(t,i){const l=t.length;let u,P;for(P=0;P<l;P++)t[P].safeI=P;for(t.sort(function(r,S){return u=i(r,S),u===0?r.safeI-S.safeI:u}),P=0;P<l;P++)delete t[P].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 P=arguments,r=this;return l.apply(this,[function(){return u.apply(r,arguments.length?arguments:P)}].concat([].slice.call(arguments)))}}},h}),ot(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"}}),ot(A,"Core/Color/Color.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O){const{isNumber:W,merge:tt,pInt:J}=O;class Y{static parse(_){return _?new Y(_):Y.None}constructor(_){this.rgba=[NaN,NaN,NaN,NaN],this.input=_;const N=j.Color;if(N&&N!==Y)return new N(_);this.init(_)}init(_){let N,R;if(typeof _=="object"&&typeof _.stops<"u")this.stops=_.stops.map(L=>new Y(L[1]));else if(typeof _=="string"){if(this.input=_=Y.names[_.toLowerCase()]||_,_.charAt(0)==="#"){var v=_.length,w=parseInt(_.substr(1),16);v===7?N=[(w&16711680)>>16,(w&65280)>>8,w&255,1]:v===4&&(N=[(w&3840)>>4|(w&3840)>>8,(w&240)>>4|w&240,(w&15)<<4|w&15,1])}if(!N)for(w=Y.parsers.length;w--&&!N;)R=Y.parsers[w],(v=R.regex.exec(_))&&(N=R.parse(v))}N&&(this.rgba=N)}get(_){const N=this.input,R=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const v=tt(N);return v.stops=[].slice.call(v.stops),this.stops.forEach((w,L)=>{v.stops[L]=[v.stops[L][0],w.get(_)]}),v}return R&&W(R[0])?_==="rgb"||!_&&R[3]===1?"rgb("+R[0]+","+R[1]+","+R[2]+")":_==="a"?`${R[3]}`:"rgba("+R.join(",")+")":N}brighten(_){const N=this.rgba;if(this.stops)this.stops.forEach(function(R){R.brighten(_)});else if(W(_)&&_!==0)for(let R=0;3>R;R++)N[R]+=J(255*_),0>N[R]&&(N[R]=0),255<N[R]&&(N[R]=255);return this}setOpacity(_){return this.rgba[3]=_,this}tweenTo(_,N){const R=this.rgba,v=_.rgba;return!W(R[0])||!W(v[0])?_.input||"none":(_=v[3]!==1||R[3]!==1,(_?"rgba(":"rgb(")+Math.round(v[0]+(R[0]-v[0])*(1-N))+","+Math.round(v[1]+(R[1]-v[1])*(1-N))+","+Math.round(v[2]+(R[2]-v[2])*(1-N))+(_?","+(v[3]+(R[3]-v[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[J(U[1]),J(U[2]),J(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[J(U[1]),J(U[2]),J(U[3]),1]}}],Y.None=new Y(""),Y}),ot(A,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),ot(A,"Core/Time.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O){const{win:W}=j,{defined:tt,error:J,extend:Y,isObject:U,merge:_,objectEach:N,pad:R,pick:v,splat:w,timeUnits:L}=O,I=j.isSafari&&W.Intl&&W.Intl.DateTimeFormat.prototype.formatRange,d=j.isSafari&&W.Intl&&!W.Intl.DateTimeFormat.prototype.formatRange;class x{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(),b=k-this.getTimezoneOffset(T);return T.setTime(b),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 b=this.getTimezoneOffset(T);return b=T.getTime()-b,T.setTime(b),T["setUTC"+f](k),f=this.getTimezoneOffset(T),b=T.getTime()+f,T.setTime(b)}return this.useUTC||I&&f==="FullYear"?T["setUTC"+f](k):T["set"+f](k)}update(f={}){const T=v(f.useUTC,!0);this.options=f=_(!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,b,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,v(k,1),v(b,0),v(n,0),v(a,0)).getTime(),p}timezoneOffsetFunction(){const f=this,T=this.options,k=T.getTimezoneOffset,b=T.moment||W.moment;if(!this.useUTC)return function(n){return 6e4*new Date(n.toString()).getTimezoneOffset()};if(T.timezone){if(b)return function(n){return 6e4*-b.tz(n,T.timezone).utcOffset()};J(25)}return this.useUTC&&k?function(n){return 6e4*k(n.valueOf())}:function(){return 6e4*(f.timezoneOffset||0)}}dateFormat(f,T,k){if(!tt(T)||isNaN(T))return j.defaultOptions.lang&&j.defaultOptions.lang.invalidDate||"";f=v(f,"%Y-%m-%d %H:%M:%S");const b=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,P){for(;f.indexOf("%"+P)!==-1;)f=f.replace("%"+P,typeof u=="function"?u.call(b,T):u)}),k?f.substr(0,1).toUpperCase()+f.substr(1):f}resolveDTLFormat(f){return U(f,!0)?f:(f=w(f),{main:f[0],from:f[1],to:f[2]})}getTimeTicks(f,T,k,b){const n=this,a=[],p={};var h=new n.Date(T);const c=f.unitRange,e=f.count||1;let t;if(b=v(b,1),tt(T)){if(n.set("Milliseconds",h,c>=L.second?0:e*Math.floor(n.get("Milliseconds",h)/e)),c>=L.second&&n.set("Seconds",h,c>=L.minute?0:e*Math.floor(n.get("Seconds",h)/e)),c>=L.minute&&n.set("Minutes",h,c>=L.hour?0:e*Math.floor(n.get("Minutes",h)/e)),c>=L.hour&&n.set("Hours",h,c>=L.day?0:e*Math.floor(n.get("Hours",h)/e)),c>=L.day&&n.set("Date",h,c>=L.month?1:Math.max(1,e*Math.floor(n.get("Date",h)/e))),c>=L.month){n.set("Month",h,c>=L.year?0:e*Math.floor(n.get("Month",h)/e));var i=n.get("FullYear",h)}c>=L.year&&n.set("FullYear",h,i-i%e),c===L.week&&(i=n.get("Day",h),n.set("Date",h,n.get("Date",h)-i+b+(i<b?-7:0))),i=n.get("FullYear",h),b=n.get("Month",h);const l=n.get("Date",h),u=n.get("Hours",h);for(T=h.getTime(),!n.variableTimezone&&n.useUTC||!tt(k)||(t=k-T>4*L.month||n.getTimezoneOffset(T)!==n.getTimezoneOffset(k)),T=h.getTime(),h=1;T<k;)a.push(T),T=c===L.year?n.makeTime(i+h*e,0):c===L.month?n.makeTime(i,b+h*e):!t||c!==L.day&&c!==L.week?t&&c===L.hour&&1<e?n.makeTime(i,b,l,u+h*e):T+c*e:n.makeTime(i,b,l+h*e*(c===L.day?1:7)),h++;a.push(T),c<=L.hour&&1e4>a.length&&a.forEach(function(P){P%18e5===0&&n.dateFormat("%H%M%S%L",P)==="000000000"&&(p[P]="day")})}return a.info=Y(f,{higherRanks:p,totalRange:c*e}),a}getDateFormat(f,T,k,b){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 L){if(f===L.week&&+this.dateFormat("%w",T)===k&&n.substr(6)==="00:00:00.000"){p="week";break}if(L[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(b[p]).main}}return x}),ot(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,O,W,tt,J,Y){const{isTouchDevice:U,svg:_}=W,{merge:N}=Y,R={colors:tt.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:_,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 v=new J(R.time);return j={defaultOptions:R,defaultTime:v,getOptions:function(){return R},setOptions:function(w){return N(!0,R,w),(w.time||w.global)&&(W.time?W.time.update(N(R.global,R.time,w.global,w.time)):W.time=v),R}},j}),ot(A,"Core/Animation/Fx.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O,W){const{parse:tt}=j,{win:J}=O,{isNumber:Y,objectEach:U}=W;class _{constructor(R,v,w){this.pos=NaN,this.options=v,this.elem=R,this.prop=w}dSetter(){var R=this.paths;const v=R&&R[0];R=R&&R[1];const w=this.now||0;let L=[];if(w!==1&&v&&R)if(v.length===R.length&&1>w)for(let I=0;I<R.length;I++){const d=v[I],x=R[I],y=[];for(let f=0;f<x.length;f++){const T=d[f],k=x[f];Y(T)&&Y(k)&&(x[0]!=="A"||f!==4&&f!==5)?y[f]=T+w*(k-T):y[f]=k}L.push(y)}else L=R;else L=this.toD||[];this.elem.attr("d",L,void 0,!0)}update(){const R=this.elem,v=this.prop,w=this.now,L=this.options.step;this[v+"Setter"]?this[v+"Setter"]():R.attr?R.element&&R.attr(v,w,null,!0):R.style[v]=w+this.unit,L&&L.call(R,w,this)}run(R,v,w){const L=this,I=L.options,d=function(f){return d.stopped?!1:L.step(f)},x=J.requestAnimationFrame||function(f){setTimeout(f,13)},y=function(){for(let f=0;f<_.timers.length;f++)_.timers[f]()||_.timers.splice(f--,1);_.timers.length&&x(y)};R!==v||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=R,this.end=v,this.unit=w,this.now=this.start,this.pos=0,d.elem=this.elem,d.prop=this.prop,d()&&_.timers.push(d)===1&&x(y)):(delete I.curAnim[this.prop],I.complete&&Object.keys(I.curAnim).length===0&&I.complete.call(this.elem))}step(R){const v=+new Date,w=this.options,L=this.elem,I=w.complete,d=w.duration,x=w.curAnim;let y;return L.attr&&!L.element?R=!1:R||v>=d+this.startTime?(this.now=this.end,this.pos=1,this.update(),y=x[this.prop]=!0,U(x,function(f){f!==!0&&(y=!1)}),y&&I&&I.call(L),R=!1):(this.pos=w.easing((v-this.startTime)/d),this.now=this.start+(this.end-this.start)*this.pos,this.update(),R=!0),R}initPath(R,v,w){function L(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),y&&(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]),y){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,x=R.endX;w=w.slice();const y=R.isArea,f=y?2:1;let T,k,b;if(v=v&&v.slice(),!v)return[w,w];if(d&&x&&x.length){for(R=0;R<d.length;R++)if(d[R]===x[0]){T=R;break}else if(d[0]===x[x.length-d.length+R]){T=R,b=!0;break}else if(d[d.length-1]===x[x.length-d.length+R]){T=d.length-R;break}typeof T>"u"&&(v=[])}return v.length&&Y(T)&&(k=w.length+T*f,b?(L(v,w),I(w,v)):(L(w,v),I(v,w))),[v,w]}fillSetter(){_.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,tt(this.start).tweenTo(tt(this.end),this.pos),void 0,!0)}}return _.timers=[],_}),ot(A,"Core/Animation/AnimationUtilities.js",[A["Core/Animation/Fx.js"],A["Core/Utilities.js"]],function(j,O){function W(L){return N(L)?R({duration:500,defer:0},L):{duration:L?500:0,defer:0}}function tt(L,I){let d=j.timers.length;for(;d--;)j.timers[d].elem!==L||I&&I!==j.timers[d].prop||(j.timers[d].stopped=!0)}const{defined:J,getStyle:Y,isArray:U,isNumber:_,isObject:N,merge:R,objectEach:v,pick:w}=O;return{animate:function(L,I,d){let x,y="",f,T,k;N(d)||(k=arguments,d={duration:k[2],easing:k[3],complete:k[4]}),_(d.duration)||(d.duration=400),d.easing=typeof d.easing=="function"?d.easing:Math[d.easing]||Math.easeInOutSine,d.curAnim=R(I),v(I,function(b,n){tt(L,n),T=new j(L,d,n),f=void 0,n==="d"&&U(I.d)?(T.paths=T.initPath(L,L.pathArray,I.d),T.toD=I.d,x=0,f=1):L.attr?x=L.attr(n):(x=parseFloat(Y(L,n))||0,n!=="opacity"&&(y="px")),f||(f=b),typeof f=="string"&&f.match("px")&&(f=f.replace(/px/g,"")),T.run(x,f,y)})},animObject:W,getDeferredAnimation:function(L,I,d){const x=W(I);let y=0,f=0;return(d?[d]:L.series).forEach(T=>{T=W(T.options.animation),y=I&&J(I.defer)?x.defer:Math.max(y,T.duration+T.defer),f=Math.min(x.duration,T.duration)}),L.renderer.forExport&&(y=0),{defer:Math.max(0,y-f),duration:Math.min(y,f)}},setAnimation:function(L,I){I.renderer.globalAnimation=w(L,I.options.chart.animation,!0)},stop:tt}}),ot(A,"Core/Renderer/HTML/AST.js",[A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O){const{SVG_NS:W,win:tt}=j,{attr:J,createElement:Y,css:U,error:_,isFunction:N,isString:R,objectEach:v,splat:w}=O;({trustedTypes:O}=tt);const L=O&&N(O.createPolicy)&&O.createPolicy("highcharts",{createHTML:y=>y});O=L?L.createHTML(""):"";try{var I=!!new DOMParser().parseFromString(O,"text/html")}catch{I=!1}const d=I;class x{static filterUserAttributes(f){return v(f,(T,k)=>{let b=!0;x.allowedAttributes.indexOf(k)===-1&&(b=!1),["background","dynsrc","href","lowsrc","src"].indexOf(k)!==-1&&(b=R(T)&&x.allowedReferences.some(n=>T.indexOf(n)===0)),b||(_(33,!1,void 0,{"Invalid attribute in config":`${k}`}),delete f[k]),R(T)&&f[k]&&(f[k]=T.replace(/</g,"<"))}),f}static parseStyle(f){return f.split(";").reduce((T,k)=>{k=k.split(":").map(n=>n.trim());const b=k.shift();return b&&k.length&&(T[b.replace(/-([a-z])/g,n=>n[1].toUpperCase())]=k.join(":")),T},{})}static setElementHTML(f,T){f.innerHTML=x.emptyHTML,T&&new x(T).addToDOM(f)}constructor(f){this.nodes=typeof f=="string"?this.parseMarkup(f):f}addToDOM(f){function T(k,b){let n;return w(k).forEach(function(a){var p=a.tagName;const h=a.textContent?j.doc.createTextNode(a.textContent):void 0,c=x.bypassHTMLFiltering;let e;if(p)if(p==="#text")e=h;else if(x.allowedTags.indexOf(p)!==-1||c){p=j.doc.createElementNS(p==="svg"?W:b.namespaceURI||W,p);const t=a.attributes||{};v(a,function(i,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(t[l]=i)}),J(p,c?t:x.filterUserAttributes(t)),a.style&&U(p,a.style),h&&p.appendChild(h),T(a.children||[],p),e=p}else _(33,!1,void 0,{"Invalid tagName in config":p});e&&b.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(L?L.createHTML(f):f,"text/html");else{const b=Y("div");b.innerHTML=f,f={body:b}}const k=(b,n)=>{var a=b.nodeName.toLowerCase();const p={tagName:a};if(a==="#text"&&(p.textContent=b.textContent||""),a=b.attributes){const h={};[].forEach.call(a,c=>{c.name==="data-style"?p.style=x.parseStyle(c.value):h[c.name]=c.value}),p.attributes=h}if(b.childNodes.length){const h=[];[].forEach.call(b.childNodes,c=>{k(c,h)}),h.length&&(p.children=h)}n.push(p)};return[].forEach.call(f.body.childNodes,b=>k(b,T)),T}}return x.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(" "),x.allowedReferences="https:// http:// mailto: / ../ ./ #".split(" "),x.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(" "),x.emptyHTML=O,x.bypassHTMLFiltering=!1,x}),ot(A,"Core/Templating.js",[A["Core/Defaults.js"],A["Core/Utilities.js"]],function(j,O){function W(d="",x,y){const f=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,T=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,k=[],b=/f$/,n=/\.([0-9])/,a=J.lang,p=y&&y.time||Y,h=y&&y.numberFormatter||tt,c=(r="")=>{let S;return r==="true"?!0:r==="false"?!1:(S=Number(r)).toString()===r?S:_(r,x)};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:x,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 P=t.startInner;P=d.substr(P,e.index-P),t.body===void 0?(t.body=P,t.startInner=e.index+e[0].length):t.elseBody=P,t.find+=P+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:nt}=r;var B;if(nt){var s=[r],M=q.split(" ");for(B=I[nt].length;B--;)s.unshift(c(M[B+1]));B=I[nt].apply(x,s),r.isBlock&&typeof B=="boolean"&&(B=W(B?S:F,x))}else s=q.split(":"),B=c(s.shift()||""),s.length&&typeof B=="number"&&(s=s.join(":"),b.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,w(B,""))}),l?W(d,x,y):d}function tt(d,x,y,f){d=+d||0,x=+x;const T=J.lang;var k=(d.toString().split(".")[1]||"").split("e")[0].length;const b=d.toString().split("e"),n=x;if(x===-1)x=Math.min(k,20);else if(!R(x))x=2;else if(x&&b[1]&&0>b[1]){var a=x+ +b[1];0<=a?(b[0]=(+b[0]).toExponential(a).split("e")[0],x=a):(b[0]=b[0].split(".")[0]||0,d=20>x?(b[0]*Math.pow(10,b[1])).toFixed(x):0,b[1]=0)}a=(Math.abs(b[1]?b[0]:d)+Math.pow(10,-Math.max(x,k)-1)).toFixed(x),k=String(L(a));const p=3<k.length?k.length%3:0;return y=w(y,T.decimalPoint),f=w(f,T.thousandsSep),d=(0>d?"-":"")+(p?k.substr(0,p)+f:""),d=0>+b[1]&&!n?"0":d+k.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+f),x&&(d+=y+a.slice(-x)),b[1]&&+d!=0&&(d+="e"+b[1]),d}const{defaultOptions:J,defaultTime:Y}=j,{extend:U,getNestedProperty:_,isArray:N,isNumber:R,isObject:v,pick:w,pInt:L}=O,I={add:(d,x)=>d+x,divide:(d,x)=>x!==0?d/x:"",eq:(d,x)=>d==x,each:function(d){const x=arguments[arguments.length-1];return N(d)?d.map((y,f)=>W(x.body,U(v(y)?y:{"@this":y},{"@index":f,"@first":f===0,"@last":f===d.length-1}))).join(""):!1},ge:(d,x)=>d>=x,gt:(d,x)=>d>x,if:d=>!!d,le:(d,x)=>d<=x,lt:(d,x)=>d<x,multiply:(d,x)=>d*x,ne:(d,x)=>d!=x,subtract:(d,x)=>d-x,unless:d=>!d};return{dateFormat:function(d,x,y){return Y.dateFormat(d,x,y)},format:W,helpers:I,numberFormat:tt}}),ot(A,"Core/Renderer/RendererUtilities.js",[A["Core/Utilities.js"]],function(j){const{clamp:O,pick:W,stableSort:tt}=j;var J;return function(Y){function U(_,N,R){const v=_;var w=v.reducedLen||N,L=(T,k)=>(k.rank||0)-(T.rank||0);const I=(T,k)=>T.target-k.target;let d,x=!0,y=[],f=0;for(d=_.length;d--;)f+=_[d].size;if(f>w){for(tt(_,L),f=d=0;f<=w;)f+=_[d].size,d++;y=_.splice(d-1,_.length)}for(tt(_,I),_=_.map(T=>({size:T.size,targets:[T.target],align:W(T.align,.5)}));x;){for(d=_.length;d--;)w=_[d],L=(Math.min.apply(0,w.targets)+Math.max.apply(0,w.targets))/2,w.pos=O(L-w.size*w.align,0,N-w.size);for(d=_.length,x=!1;d--;)0<d&&_[d-1].pos+_[d-1].size>_[d].pos&&(_[d-1].size+=_[d].size,_[d-1].targets=_[d-1].targets.concat(_[d].targets),_[d-1].align=.5,_[d-1].pos+_[d-1].size>N&&(_[d-1].pos=N-_[d-1].size),_.splice(d,1),x=!0)}return v.push.apply(v,y),d=0,_.some(T=>{let k=0;return(T.targets||[]).some(()=>(v[d].pos=T.pos+k,typeof R<"u"&&Math.abs(v[d].pos-v[d].target)>R?(v.slice(0,d+1).forEach(b=>delete b.pos),v.reducedLen=(v.reducedLen||N)-.1*N,v.reducedLen>.1*N&&U(v,N,R),!0):(k+=v[d].size,d++,!1)))}),tt(v,I),v}Y.distribute=U}(J||(J={})),J}),ot(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,O,W,tt){const{animate:J,animObject:Y,stop:U}=j,{deg2rad:_,doc:N,svg:R,SVG_NS:v,win:w}=W,{addEvent:L,attr:I,createElement:d,css:x,defined:y,erase:f,extend:T,fireEvent:k,isArray:b,isFunction:n,isObject:a,isString:p,merge:h,objectEach:c,pick:e,pInt:t,syncTimeout:i,uniqueKey:l}=tt;class u{constructor(){this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=v}_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,nt){return F.indexOf(nt)===-1&&q.push(nt),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 nt=this.renderer,B=nt.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,nt[s],s==="scrollablePlotBox"?nt.plotBox:void 0,nt),s=r.align;const D=r.verticalAlign;return nt=(F.x||0)+(r.x||0),B=(F.y||0)+(r.y||0),s==="right"?M=1:s==="center"&&(M=2),M&&(nt+=(F.width-(r.width||0))/M),q[S?"translateX":"x"]=Math.round(nt),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&&J(this,r,q)},S)):(this.attr(r,void 0,F||q.complete),c(r,function(nt,B){q.step&&q.step.call(this,nt,{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(v,"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 nt=0;[].forEach.call(r.querySelectorAll("text tspan"),B=>{nt+=Number(B.getAttribute("dy"))}),F=N.createElementNS(v,"tspan"),F.textContent="",I(F,{x:Number(S.getAttribute("x")),dy:-nt}),q.appendChild(F),r.insertBefore(q,r.firstChild)}}attr(r,S,F,q){const nt=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,nt):(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,nt))},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),y(r.strokeWidth)&&(r.strokeWidth=S),r}complexColor(r,S,F){const q=this.renderer;let nt,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,b(s)&&(r[B]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),B==="radialGradient"&&g&&!y(s.gradientUnits)&&(M=s,s=h(s,q.getRadialAttr(g,M),{gradientUnits:"userSpaceOnUse"})),c(s,function($,Q){Q!=="id"&&H.push(Q,$)}),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(Q){Q[1].indexOf("rgba")===0?(nt=O.parse(Q[1]),V=nt.get("rgb"),o=nt.get("a")):(V=Q[1],o=1),Q=q.createElement("stop").attr({offset:Q[0],"stop-color":V,"stop-opacity":o}).add($),$.stops.push(Q)})}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 nt,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&&(nt=this.textWidth=t(r.width)),this.styles=r,nt&&!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)),x(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 nt=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);nt&&nt.div&&nt.div.childNodes.length===0;)S=nt.parentGroup,r.safeRemoveChild(nt.div),delete nt.div,nt=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){b(r)&&(typeof r[0]=="string"&&(r=this.renderer.pathToSegments(r)),this.pathArray=r,r=r.reduce((q,nt,B)=>nt&&nt.join?(B?q+" ":"")+nt.join(" "):(nt||"").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:nt,styles:B,textStr:s}=this,{cache:M,cacheKeys:z}=nt;var D=q.namespaceURI===this.SVG_NS;S=e(S,this.rotation,0);var V=nt.styledMode?q&&u.prototype.getStyle.call(q,"font-size"):B&&B.fontSize;let o,g;if(y(s)&&(g=s.toString(),g.indexOf("<")===-1&&(g=g.replace(/[0-9]/g,"0")),g+=["",nt.rootFontSize,V,S,this.textWidth,F,B&&B.textOverflow,B&&B.fontWeight].join()),g&&!r&&(o=M[g]),!o){if(D||nt.forExport){try{var m=this.fakeTS&&function(it){const rt=q.querySelector(".highcharts-text-outline");rt&&x(rt,{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*_,G=(S-90)*_,$=m*Math.cos(H);S=m*Math.sin(H);var Q=Math.cos(G);H=Math.sin(G),m=o.x+V*(m-$)+D*Q,G=m+$,Q=G-r*Q,$=Q-$,D=o.y+D-V*S+D*H,V=D+S,r=V-r*H,S=r-S,o.x=Math.min(m,G,Q,$),o.y=Math.min(D,V,r,S),o.width=Math.max(m,G,Q,$)-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 w.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]=L(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,nt=q.textPath,{attributes:B,enabled:s}=S;return r=r||nt&&nt.path,nt&&nt.undo(),r&&s?(S=L(q,"afterModifyTree",M=>{if(r&&s){let D=r.attr("id");D||r.attr("id",D=l());var z={x:0,y:0};y(B.dx)&&(z.dx=B.dx,delete B.dx),y(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(v,"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(/</g,"<").replace(/>/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:nt,translateX:B=0,translateY:s=0}=this,M=["translate("+B+","+s+")"];y(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)+")"),(y(q)||y(nt))&&M.push("scale("+e(q,1)+" "+e(nt,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 nt=(q||F).element||F.box,B=this.element;F=nt===F.box;let s=!1,M;var z=this.added;let D;if(y(r)?(B.setAttribute("data-z-index",r),r=+r,this[S]===r&&(z=!1)):y(this[S])&&B.removeAttribute("data-z-index"),this[S]=r,z){for((r=this.zIndex)&&q&&(q.handleZ=!0),S=nt.childNodes,D=S.length-1;0<=D&&!s;D--)q=S[D],z=q.getAttribute("data-z-index"),M=!y(z),q!==B&&(0>r&&M&&!F&&!D?(nt.insertBefore(B,S[D]),s=!0):(t(z)<=r||M&&(!y(r)||0<=r))&&(nt.insertBefore(B,S[D+1]),s=!0));s||(nt.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(P,r){this[r]=P,this.doTransform=!0},u}),ot(A,"Core/Renderer/RendererRegistry.js",[A["Core/Globals.js"]],function(j){var O;return function(W){W.rendererTypes={};let tt;W.getRendererType=function(J=tt){return W.rendererTypes[J]||W.rendererTypes[tt]},W.registerRendererType=function(J,Y,U){W.rendererTypes[J]=Y,(!tt||U)&&(tt=J,j.Renderer=Y)}}(O||(O={})),O}),ot(A,"Core/Renderer/SVG/SVGLabel.js",[A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(j,O){const{defined:W,extend:tt,isNumber:J,merge:Y,pick:U,removeEvent:_}=O;class N extends j{constructor(v,w,L,I,d,x,y,f,T,k){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(v,"g"),this.textStr=w,this.x=L,this.y=I,this.anchorX=x,this.anchorY=y,this.baseline=T,this.className=k,this.addClass(k==="button"?"highcharts-no-tooltip":"highcharts-label"),k&&this.addClass("highcharts-"+k),this.text=v.text(void 0,0,0,f).attr({zIndex:1});let b;typeof d=="string"&&((b=/^url\((.*?)\)$/.test(d))||this.renderer.symbols[d])&&(this.symbolKey=d),this.bBox=N.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=v.styledMode||b,this.deferredAttr={},this.alignFactor=0}alignSetter(v){v={left:0,center:.5,right:1}[v],v!==this.alignFactor&&(this.alignFactor=v,this.bBox&&J(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(v,w){this.anchorX=v,this.boxAttr(w,Math.round(v)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(v,w){this.anchorY=v,this.boxAttr(w,v-this.ySetting)}boxAttr(v,w){this.box?this.box.attr(v,w):this.deferredAttr[v]=w}css(v){if(v){const w={};v=Y(v),N.textProps.forEach(L=>{typeof v[L]<"u"&&(w[L]=v[L],delete v[L])}),this.text.css(w),"fontSize"in w||"fontWeight"in w?this.updateTextPadding():("width"in w||"textOverflow"in w)&&this.updateBoxSize()}return j.prototype.css.call(this,v)}destroy(){_(this.element,"mouseenter"),_(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),j.prototype.destroy.call(this)}fillSetter(v,w){v&&(this.needsBox=!0),this.fill=v,this.boxAttr(w,v)}getBBox(){this.textStr&&this.bBox.width===0&&this.bBox.height===0&&this.updateBoxSize();const v=this.padding,w=U(this.paddingLeft,v);return{width:this.width,height:this.height,x:this.bBox.x-w,y:this.bBox.y-v}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(v){this.heightSetting=v}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(v,w){J(v)?v!==this[w]&&(this[w]=v,this.updateTextPadding()):this[w]=void 0}rSetter(v,w){this.boxAttr(w,v)}strokeSetter(v,w){this.stroke=v,this.boxAttr(w,v)}"stroke-widthSetter"(v,w){v&&(this.needsBox=!0),this["stroke-width"]=v,this.boxAttr(w,v)}"text-alignSetter"(v){this.textAlign=v}textSetter(v){typeof v<"u"&&this.text.attr({text:v}),this.updateTextPadding()}updateBoxSize(){var v=this.text;const w={},L=this.padding,I=this.bBox=J(this.widthSetting)&&J(this.heightSetting)&&!this.textAlign||!W(v.textStr)?N.emptyBBox:v.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||I.height||0)+2*L;const d=this.renderer.fontMetrics(v);this.baselineOffset=L+Math.min((this.text.firstLineMetrics||d).b,I.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-d.h)/2),this.needsBox&&!v.textPath&&(this.box||(v=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect(),v.addClass((this.className==="button"?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),v.add(this)),v=this.getCrispAdjust(),w.x=v,w.y=(this.baseline?-this.baselineOffset:0)+v,w.width=Math.round(this.width),w.height=Math.round(this.height),this.box.attr(tt(w,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const v=this.text;if(!v.textPath){this.updateBoxSize();const w=this.baseline?0:this.baselineOffset;let L=U(this.paddingLeft,this.padding);W(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(L+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(L!==v.x||w!==v.y)&&(v.attr("x",L),v.hasBoxWidthChanged&&(this.bBox=v.getBBox(!0)),typeof w<"u"&&v.attr("y",w)),v.x=L,v.y=w}}widthSetter(v){this.widthSetting=J(v)?v:void 0}getPaddedWidth(){var v=this.padding;const w=U(this.paddingLeft,v);return v=U(this.paddingRight,v),(this.widthSetting||this.bBox.width||0)+w+v}xSetter(v){this.x=v,this.alignFactor&&(v-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(v),this.attr("translateX",this.xSetting)}ySetter(v){this.ySetting=this.y=Math.round(v),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}),ot(A,"Core/Renderer/SVG/Symbols.js",[A["Core/Utilities.js"]],function(j){function O(_,N,R,v,w){const L=[];if(w){const I=w.start||0,d=U(w.r,R);R=U(w.r,v||R),v=(w.end||0)-.001;const x=w.innerR,y=U(w.open,.001>Math.abs((w.end||0)-I-2*Math.PI)),f=Math.cos(I),T=Math.sin(I),k=Math.cos(v),b=Math.sin(v),n=U(w.longArc,.001>v-I-Math.PI?0:1);let a=["A",d,R,0,n,U(w.clockwise,1),_+d*k,N+R*b];a.params={start:I,end:v,cx:_,cy:N},L.push(["M",_+d*f,N+R*T],a),J(x)&&(a=["A",x,x,0,n,J(w.clockwise)?1-w.clockwise:0,_+x*f,N+x*T],a.params={start:v,end:I,cx:_,cy:N},L.push(y?["M",_+x*k,N+x*b]:["L",_+x*k,N+x*b],a)),y||L.push(["Z"])}return L}function W(_,N,R,v,w){return w&&w.r?tt(_,N,R,v,w):[["M",_,N],["L",_+R,N],["L",_+R,N+v],["L",_,N+v],["Z"]]}function tt(_,N,R,v,w){return w=(w==null?void 0:w.r)||0,[["M",_+w,N],["L",_+R-w,N],["A",w,w,0,0,1,_+R,N+w],["L",_+R,N+v-w],["A",w,w,0,0,1,_+R-w,N+v],["L",_+w,N+v],["A",w,w,0,0,1,_,N+v-w],["L",_,N+w],["A",w,w,0,0,1,_+w,N],["Z"]]}const{defined:J,isNumber:Y,pick:U}=j;return{arc:O,callout:function(_,N,R,v,w){const L=Math.min(w&&w.r||0,R,v),I=L+6,d=w&&w.anchorX;w=w&&w.anchorY||0;const x=tt(_,N,R,v,{r:L});return Y(d)&&(_+d>=R?w>N+I&&w<N+v-I?x.splice(3,1,["L",_+R,w-6],["L",_+R+6,w],["L",_+R,w+6],["L",_+R,N+v-L]):x.splice(3,1,["L",_+R,v/2],["L",d,w],["L",_+R,v/2],["L",_+R,N+v-L]):0>=_+d?w>N+I&&w<N+v-I?x.splice(7,1,["L",_,w+6],["L",_-6,w],["L",_,w-6],["L",_,N+L]):x.splice(7,1,["L",_,v/2],["L",d,w],["L",_,v/2],["L",_,N+L]):w&&w>v&&d>_+I&&d<_+R-I?x.splice(5,1,["L",d+6,N+v],["L",d,N+v+6],["L",d-6,N+v],["L",_+L,N+v]):w&&0>w&&d>_+I&&d<_+R-I&&x.splice(1,1,["L",d-6,N],["L",d,N-6],["L",d+6,N],["L",R-L,N])),x},circle:function(_,N,R,v){return O(_+R/2,N+v/2,R/2,v/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(_,N,R,v){return[["M",_+R/2,N],["L",_+R,N+v/2],["L",_+R/2,N+v],["L",_,N+v/2],["Z"]]},rect:W,roundedRect:tt,square:W,triangle:function(_,N,R,v){return[["M",_+R/2,N],["L",_+R,N+v],["L",_,N+v],["Z"]]},"triangle-down":function(_,N,R,v){return[["M",_,N],["L",_+R,N],["L",_+R/2,N+v],["Z"]]}}}),ot(A,"Core/Renderer/SVG/TextBuilder.js",[A["Core/Renderer/HTML/AST.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O,W){const{doc:tt,SVG_NS:J,win:Y}=O,{attr:U,extend:_,fireEvent:N,isString:R,objectEach:v,pick:w}=W;class L{constructor(d){const x=d.styles;this.renderer=d.renderer,this.svgElement=d,this.width=d.textWidth,this.textLineHeight=x&&x.lineHeight,this.textOutline=x&&x.textOutline,this.ellipsis=!(!x||x.textOverflow!=="ellipsis"),this.noWrap=!(!x||x.whiteSpace!=="nowrap")}buildSVG(){const d=this.svgElement,x=d.element;var y=d.renderer,f=w(d.textStr,"").toString();const T=f.indexOf("<")!==-1,k=x.childNodes;y=!d.added&&y.box;const b=/<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--;)x.removeChild(k[n]);T||this.ellipsis||this.width||d.textPath||f.indexOf(" ")!==-1&&(!this.noWrap||b.test(f))?f!==""&&(y&&y.appendChild(x),f=new j(f),this.modifyTree(f.nodes),f.addToDOM(x),this.modifyDOM(),this.ellipsis&&(x.textContent||"").indexOf("…")!==-1&&d.attr("title",this.unescapeEntities(d.textStr||"",["<",">"])),y&&y.removeChild(x)):x.appendChild(tt.createTextNode(this.unescapeEntities(f))),R(this.textOutline)&&d.applyTextOutline&&d.applyTextOutline(this.textOutline)}}modifyDOM(){const d=this.svgElement,x=U(d.element,"x");d.firstLineMetrics=void 0;let y;for(;(y=d.element.firstChild)&&/^[\s\u200B]*$/.test(y.textContent||" ");)d.element.removeChild(y);[].forEach.call(d.element.querySelectorAll("tspan.highcharts-br"),(b,n)=>{b.nextSibling&&b.previousSibling&&(n===0&&b.previousSibling.nodeType===1&&(d.firstLineMetrics=d.renderer.fontMetrics(b.previousSibling)),U(b,{dy:this.getLineHeight(b.nextSibling),x}))});const f=this.width||0;if(f){var T=(b,n)=>{var a=b.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(b,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!==b;)h.push(n.firstChild),n.removeChild(n.firstChild);for(;p.length;)p.length&&!this.noWrap&&0<e&&(a.push(b.textContent||""),b.textContent=p.join(" ").replace(/- /g,"-")),this.truncate(b,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,b)}),a.forEach(i=>{n.insertBefore(tt.createTextNode(i),b),i=tt.createElementNS(J,"tspan"),i.textContent="",U(i,{dy:c,x}),n.insertBefore(i,b)})}},k=b=>{[].slice.call(b.childNodes).forEach(n=>{n.nodeType===Y.Node.TEXT_NODE?T(n,b):(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 x=(y,f)=>{const{attributes:T={},children:k,style:b={},tagName:n}=y,a=this.renderer.styledMode;n==="b"||n==="strong"?a?T.class="highcharts-strong":b.fontWeight="bold":(n==="i"||n==="em")&&(a?T.class="highcharts-emphasized":b.fontStyle="italic"),b&&b.color&&(b.fill=b.color),n==="br"?(T.class="highcharts-br",y.textContent="",(f=d[f+1])&&f.textContent&&(f.textContent=f.textContent.replace(/^ +/gm,""))):n==="a"&&k&&k.some(p=>p.tagName==="#text")&&(y.children=[{children:k,tagName:"tspan"}]),n!=="#text"&&n!=="a"&&(y.tagName="tspan"),_(y,{attributes:T,style:b}),k&&k.filter(p=>p.tagName!=="#text").forEach(x)};d.forEach(x),N(this.svgElement,"afterModifyTree",{nodes:d})}truncate(d,x,y,f,T,k){const b=this.svgElement,{rotation:n}=b,a=[];let p=y?1:0,h=(x||y||"").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,y?l+1:l)}catch{}return a[l]};if(b.rotation=0,t=i(d.textContent.length),f+t>T){for(;p<=h;)c=Math.ceil((p+h)/2),y&&(e=k(y,c)),t=i(c,e&&e.length-1),p===h?p=h+1:t>T?h=c-1:p=c;h===0?d.textContent="":x&&h===x.length-1||(d.textContent=e||k(x||y,c))}y&&y.splice(0,c),b.actualWidth=t,b.rotation=n}unescapeEntities(d,x){return v(this.renderer.escapes,function(y,f){x&&x.indexOf(y)!==-1||(d=d.toString().replace(new RegExp(y,"g"),f))}),d}}return L}),ot(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,O,W,tt,J,Y,U,_,N){const{charts:R,deg2rad:v,doc:w,isFirefox:L,isMS:I,isWebKit:d,noop:x,SVG_NS:y,symbolSizes:f,win:T}=W,{addEvent:k,attr:b,createElement:n,css:a,defined:p,destroyObjectProperties:h,extend:c,isArray:e,isNumber:t,isObject:i,isString:l,merge:u,pick:P,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),b(B,"dir","ltr"),B.innerHTML.indexOf("xmlns")===-1&&b(m,"xmlns",this.SVG_NS),this.box=m,this.boxWrapper=g,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(w.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;L&&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((L||d)&&w.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(w.body),a(B,{position:"fixed",top:0,left:0,zIndex:9e5});const s=w.elementFromPoint(6,6);F=(s&&s.id)==="hitme",w.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 _(B).buildSVG()}getContrast(B){return B=O.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 Q=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 rt=j.filterUserAttributes(D);G.attr(u({padding:8,r:2},rt));let ht,pt,E;return $||(rt=u({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},rt),V=u(rt,{fill:"#e6e6e6"},j.filterUserAttributes(V||B.hover||{})),ht=V.style,delete V.style,o=u(rt,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},j.filterUserAttributes(o||B.select||{})),pt=o.style,delete o.style,g=u(rt,{style:{color:"#cccccc"}},j.filterUserAttributes(g||B.disabled||{})),E=g.style,delete g.style),k(G.element,I?"mouseover":"mouseenter",function(){Q!==3&&G.setState(1)}),k(G.element,I?"mouseout":"mouseleave",function(){Q!==3&&G.setState(Q)}),G.setState=function(C){C!==1&&(G.state=Q=C),G.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][C||0]),$||(G.attr([rt,V,o,g][C||0]),C=[it,ht,pt,E][C||0],i(C)&&G.css(C))},$||(G.attr(rt).css(c({cursor:"default"},it)),H&&G.text.css({pointerEvents:"none"})),G.on("touchstart",C=>C.stopPropagation()).on("click",function(C){Q!==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,b(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:P(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 $,Q,it,rt;if(G)typeof s=="number"&&(Q=G.call(this.symbols,Math.round(s||0),Math.round(M||0),z||0,D||0,V)),$=this.path(Q),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=P(V&&V.width,f[it]&&f[it].width),ht.imgheight=P(V&&V.height,f[it]&&f[it].height),rt=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:K,element:X,width:Z,height:dt,imgwidth:ct,imgheight:xt}=this;if(E=this["img"+C],p(E)){let yt=1;V&&V.backgroundSize==="within"&&Z&&dt?(yt=Math.min(Z/ct,dt/xt),b(X,{width:Math.round(ct*yt),height:Math.round(xt*yt)})):X&&X.setAttribute(C,E),K||this.translate(((Z||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)?rt(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"}),w.body.appendChild(this)),f[it]={width:this.width,height:this.height},ht.imgwidth=this.width,ht.imgheight=this.height,ht.element&&rt(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(J.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*v),4)),{x:-B/3*Math.sin(s*v),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:J,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:U,draw:x}),tt.registerRendererType("svg",q,!0),q}),ot(A,"Core/Renderer/HTML/HTMLElement.js",[A["Core/Globals.js"],A["Core/Renderer/SVG/SVGElement.js"],A["Core/Utilities.js"]],function(j,O,W){const{isFirefox:tt,isMS:J,isWebKit:Y,win:U}=j,{css:_,defined:N,extend:R,pick:v,pInt:w}=W,L=[];class I extends O{static compose(x){if(W.pushUnique(L,x)){const y=I.prototype,f=x.prototype;f.getSpanCorrection=y.getSpanCorrection,f.htmlCss=y.htmlCss,f.htmlGetBBox=y.htmlGetBBox,f.htmlUpdateTransform=y.htmlUpdateTransform,f.setSpanRotation=y.setSpanRotation}return x}getSpanCorrection(x,y,f){this.xCorr=-x*f,this.yCorr=-y}htmlCss(x){const y=this.element.tagName==="SPAN"&&x&&"width"in x,f=v(y&&x.width,void 0);let T;return y&&(delete x.width,this.textWidth=f,T=!0),x&&x.textOverflow==="ellipsis"&&(x.whiteSpace="nowrap",x.overflow="hidden"),this.styles=R(this.styles,x),_(this.element,x),T&&this.htmlUpdateTransform(),this}htmlGetBBox(){const x=this.element;return{x:x.offsetLeft,y:x.offsetTop,width:x.offsetWidth,height:x.offsetHeight}}htmlUpdateTransform(){if(this.added){var x=this.renderer,y=this.element,f=this.x||0,T=this.y||0,k=this.textAlign||"left",b={left:0,center:.5,right:1}[k],n=this.styles,a=n&&n.whiteSpace;if(_(y,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),y.tagName==="SPAN"){n=this.rotation;const h=this.textWidth&&w(this.textWidth),c=[n,k,y.innerHTML,this.textWidth,this.textAlign].join();let e=!1;if(h!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else _(y,{width:"",whiteSpace:a||"nowrap"}),p=y.offsetWidth;(h>this.oldTextWidth||p>h)&&(/[ \-]/.test(y.textContent||y.innerText)||y.style.textOverflow==="ellipsis")&&(_(y,{width:p>h||n?h+"px":"auto",display:"block",whiteSpace:a||"normal"}),this.oldTextWidth=h,e=!0)}this.hasBoxWidthChanged=e,c!==this.cTT&&(x=x.fontMetrics(y).b,!N(n)||n===(this.oldRotation||0)&&k===this.oldAlign||this.setSpanRotation(n,b,x),this.getSpanCorrection(!N(n)&&this.textPxLength||y.offsetWidth,x,b,n,k)),_(y,{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(x,y,f){const T={},k=J&&!/Edge/.test(U.navigator.userAgent)?"-ms-transform":Y?"-webkit-transform":tt?"MozTransform":U.opera?"-o-transform":void 0;k&&(T[k]=T.transform="rotate("+x+"deg)",T[k+(tt?"Origin":"-origin")]=T.transformOrigin=100*y+"% "+f+"px",_(this.element,T))}}return I}),ot(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,O,W,tt){const{attr:J,createElement:Y,extend:U,pick:_}=tt,N=[];class R extends W{static compose(w){return tt.pushUnique(N,w)&&(w.prototype.html=R.prototype.html),w}html(w,L,I){const d=this.createElement("span"),x=d.element,y=d.renderer,f=function(T,k){["opacity","visibility"].forEach(function(b){T[b+"Setter"]=function(n,a,p){const h=T.div?T.div.style:k;O.prototype[b+"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,_(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:w,x:Math.round(L),y:Math.round(I)}).css({position:"absolute"}),y.styledMode||d.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),x.style.whiteSpace="nowrap",d.css=d.htmlCss,d.add=function(T){const k=y.box.parentNode,b=[];let n;if(this.parentGroup=T){if(n=T.div,!n){for(;T;)b.push(T),T=T.parentGroup;b.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=J(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 b[0].div&&d.on.apply({element:b[0].div,onEvents:a.onEvents},arguments),a},translateXSetter:p,translateYSetter:p}),a.addedSetters||f(a),a.css(c)})}}else n=k;return n.appendChild(x),d.added=!0,d.alignOnAdd&&d.htmlUpdateTransform(),d},d}}return R}),ot(A,"Core/Axis/AxisDefaults.js",[],function(){var j;return function(O){O.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"},O.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},O.defaultLeftAxisOptions={title:{rotation:270}},O.defaultRightAxisOptions={title:{rotation:90}},O.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},O.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(j||(j={})),j}),ot(A,"Core/Foundation.js",[A["Core/Utilities.js"]],function(j){const{addEvent:O,isFunction:W,objectEach:tt,removeEvent:J}=j;var Y;return function(U){U.registerEventOptions=function(_,N){_.eventOptions=_.eventOptions||{},tt(N.events,function(R,v){_.eventOptions[v]!==R&&(_.eventOptions[v]&&(J(_,v,_.eventOptions[v]),delete _.eventOptions[v]),W(R)&&(_.eventOptions[v]=R,O(_,v,R,{order:0})))})}}(Y||(Y={})),Y}),ot(A,"Core/Axis/Tick.js",[A["Core/Templating.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O,W){const{deg2rad:tt}=O,{clamp:J,correctFloat:Y,defined:U,destroyObjectProperties:_,extend:N,fireEvent:R,isNumber:v,merge:w,objectEach:L,pick:I}=W;class d{constructor(y,f,T,k,b){this.isNewLabel=this.isNew=!0,this.axis=y,this.pos=f,this.type=T||"",this.parameters=b||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,R(this,"init"),T||k||this.addLabel()}addLabel(){const y=this,f=y.axis;var T=f.options;const k=f.chart;var b=f.categories;const n=f.logarithmic,a=f.names,p=y.pos,h=I(y.options&&y.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=y.label,u,P,r;b=this.parameters.category||(b?I(b[p],a[p],p):p),n&&v(b)&&(b=Y(n.lin2log(b))),f.dateTime&&(c?(P=k.time.resolveDTLFormat(T.dateTimeLabelFormats[!T.grid&&c.higherRanks[p]||c.unitName]),u=P.main):v(b)&&(u=f.dateTime.getXDateFormat(b,T.dateTimeLabelFormats||{}))),y.isFirst=e,y.isLast=t;const S={axis:f,chart:k,dateTimeLabelFormat:u,isFirst:e,isLast:t,pos:p,tick:y,tickPositionInfo:c,value:b};R(this,"labelFormat",S);const F=nt=>h.formatter?h.formatter.call(nt,nt):h.format?(nt.text=f.defaultLabelFormatter.call(nt,nt),j.format(h.format,nt,k)):f.defaultLabelFormatter.call(nt,nt);T=F.call(S,S);const q=P&&P.list;y.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(y)-2*h.padding)return;l.attr({text:""})}:void 0,i&&f._addedPlotLB&&y.moveLabel(T,h),U(l)||y.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):(y.label=l=y.createLabel({x:0,y:0},T,h),y.rotation=0)}createLabel(y,f,T){const k=this.axis,b=k.chart;return(y=U(f)&&T.enabled?b.renderer.text(f,y.x,y.y,T.useHTML).add(k.labelGroup):null)&&(b.styledMode||y.css(w(T.style)),y.textPxLength=y.getBBox().width),y}destroy(){_(this,this.axis)}getPosition(y,f,T,k){const b=this.axis,n=b.chart,a=k&&n.oldChartHeight||n.chartHeight;return y={x:y?Y(b.translate(f+T,void 0,void 0,k)+b.transB):b.left+b.offset+(b.opposite?(k&&n.oldChartWidth||n.chartWidth)-b.right-b.left:0),y:y?a-b.bottom+b.offset-(b.opposite?b.height:0):Y(a-b.translate(f+T,void 0,void 0,k)-b.transB)},y.y=J(y.y,-1e5,1e5),R(this,"afterGetPosition",{pos:y}),y}getLabelPosition(y,f,T,k,b,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=b.distance,P={};return T=h.side===0?T.rotation?-u:-T.getBBox().height:h.side===2?i.y+u:Math.cos(T.rotation*tt)*(i.y-T.getBBox(!1,0).height/2),U(b.y)&&(T=h.side===0&&h.horiz?b.y+T:b.y),y=y+I(b.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),P.x=y,P.y=Math.round(f),R(this,"afterGetLabelPosition",{pos:P,tickmarkOffset:n,index:a}),P}getLabelSize(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0}getMarkPath(y,f,T,k,b,n){return n.crispLine([["M",y,f],["L",y+(b?0:-T),f+(b?T:0)]],k)}handleOverflow(y){const f=this.axis,T=f.options.labels,k=y.x;var b=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,b-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,P;h||T.overflow!=="justify"?0>h&&k-c*e<a?P=Math.round(k/Math.cos(h*tt)-a):0<h&&k+c*e>n&&(P=Math.round((b-k)/Math.cos(h*tt))):(b=k+(1-c)*e,k-c*e<a?l=y.x+l*(1-c)-a:b>n&&(l=n-y.x+l*c,u=-1),l=Math.min(t,l),l<t&&f.labelAlign==="center"&&(y.x+=u*(t-l-c*(t-Math.min(e,l)))),(e>l||f.autoRotation&&(p.styles||{}).width)&&(P=l)),P&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(P)+"px",(T.style||{}).textOverflow||(i.textOverflow="ellipsis"),p.css(i)))}moveLabel(y,f){const T=this;var k=T.label;const b=T.axis;let n=!1;k&&k.textStr===y?(T.movedLabel=k,n=!0,delete T.label):L(b.ticks,function(a){n||a.isNew||a===T||!a.label||a.label.textStr!==y||(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,y,f),T.movedLabel&&T.movedLabel.attr({opacity:0}))}render(y,f,T){var k=this.axis,b=k.horiz,n=this.pos,a=I(this.tickmarkOffset,k.tickmarkOffset);n=this.getPosition(b,n,a,f),a=n.x;const p=n.y;k=b&&a===k.pos+k.len||!b&&p===k.pos?-1:1,b=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,b,y),this.isNew=!1,R(this,"afterRender")}renderGridLine(y,f,T){const k=this.axis,b=k.options,n={},a=this.pos,p=this.type,h=I(this.tickmarkOffset,k.tickmarkOffset),c=k.chart.renderer;let e=this.gridLine,t=b.gridLineWidth,i=b.gridLineColor,l=b.gridLineDashStyle;this.type==="minor"&&(t=b.minorGridLineWidth,i=b.minorGridLineColor,l=b.minorGridLineDashStyle),e||(k.chart.styledMode||(n.stroke=i,n["stroke-width"]=t||0,n.dashstyle=l),p||(n.zIndex=1),y&&(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:y,acrossPanes:!1}))&&e[y||this.isNew?"attr":"animate"]({d:T,opacity:f})}renderMark(y,f,T){const k=this.axis;var b=k.options;const n=k.chart.renderer,a=this.type,p=k.tickSize(a?a+"Tick":"tick"),h=y.x;y=y.y;const c=I(b[a!=="minor"?"tickWidth":"minorTickWidth"],!a&&k.isXAxis?1:0);b=b[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:b,"stroke-width":c})),e[t?"attr":"animate"]({d:this.getMarkPath(h,y,p[0],e.strokeWidth()*T,k.horiz,n),opacity:f}))}renderLabel(y,f,T,k){var b=this.axis;const n=b.horiz,a=b.options,p=this.label,h=a.labels,c=h.step;b=I(this.tickmarkOffset,b.tickmarkOffset);const e=y.x;y=y.y;let t=!0;p&&v(e)&&(p.xy=y=this.getLabelPosition(e,y,p,n,h,b,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(y),c&&k%c&&(t=!1),t&&v(y.y)?(y.opacity=T,p[this.isNewLabel?"attr":"animate"](y).show(!0),this.isNewLabel=!1):(p.hide(),this.isNewLabel=!0))}replaceMovedLabel(){const y=this.label,f=this.axis;y&&!this.isNew&&(y.animate({opacity:0},void 0,y.destroy),delete this.label),f.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}return d}),ot(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,O,W,tt,J,Y,U,_){const{animObject:N}=j,{defaultOptions:R}=tt,{registerEventOptions:v}=J,{deg2rad:w}=Y,{arrayMax:L,arrayMin:I,clamp:d,correctFloat:x,defined:y,destroyObjectProperties:f,erase:T,error:k,extend:b,fireEvent:n,getClosestDistance:a,insertItem:p,isArray:h,isNumber:c,isString:e,merge:t,normalizeTickInterval:i,objectEach:l,pick:u,relativeLength:P,removeEvent:r,splat:S,syncTimeout:F}=_,q=(B,s)=>i(s,void 0,void 0,u(B.options.allowDecimals,.5>s||B.tickAmount!==void 0),!!B.tickAmount);class nt{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=y(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,v(this,z),n(this,"afterInit")}setOptions(s){this.options=t(O.defaultXAxisOptions,this.coll==="yAxis"&&O.defaultYAxisOptions,[O.defaultTopAxisOptions,O.defaultRightAxisOptions,O.defaultBottomAxisOptions,O.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)),y(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:x(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,Z,dt){return rt!=="pass"&&(X<Z||X>dt)&&(rt?X=d(X,Z,dt):K=!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,Q=z.transB;let it=s.translatedValue,rt=s.force,ht,pt,E,C,K;return s={value:m,lineWidth:H,old:g,force:rt,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+Q),pt=C=Math.round(G-it-Q),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)):(K=!0,rt=!1),X.path=K&&!rt?null:D.renderer.crispLine([["M",ht,pt],["L",E,C]],H||1)}),s.path}getLinearTickPositions(s,M,z){const D=x(Math.floor(M/s)*s);z=x(Math.ceil(z/s)*s);const V=[];let o,g;if(x(D+s)===D&&(g=20),this.single)return[M];for(M=D;M<=z&&(V.push(M),M=x(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(y(s.min)||y(s.max)||y(s.floor)||y(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=L(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=L(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&&y(o)&&g&&(M=y(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,y(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 Q=D?1:V?u($.options.pointRange,g,0):s.axisPointRange||0,it=$.options.pointPlacement;o=Math.max(o,Q),(!s.single||D)&&($=$.is("xrange")?!V:V,m=Math.max(m,$&&e(it)?0:Q/2),H=Math.max(H,$&&it==="on"?0:Q))}),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,Q=c(D.tickInterval)&&0<=D.tickInterval?D.tickInterval:void 0,it=c(this.threshold)?this.threshold:null,rt,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&&y(it)&&(this.dataMin>=it?(E=it,$=0):this.dataMax<=it&&(rt=it,G=0)),this.min=u(ht,E,this.dataMin),this.max=u(pt,rt,this.dataMax);if(z&&(this.positiveValuesOnly&&!s&&0>=Math.min(this.min,u(this.dataMin,this.min))&&k(10,1,M),this.min=x(z.log2lin(this.min),16),this.max=x(z.log2lin(this.max),16)),this.range&&y(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)&&y(this.min)&&y(this.max)&&(M=this.max-this.min)&&(!y(ht)&&$&&(this.min-=M*$),!y(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&&y(this.dataMin)&&(it=it||0,!y(ht)&&this.min<it&&this.dataMin>=it?this.min=this.options.minRange?Math.min(it,this.max-this.minRange):it:!y(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&&(y(this.options.min)?this.max=this.min:y(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&&!Q&&g===this.linkedParent.options.tickPixelInterval?Q=this.linkedParent.tickInterval:u(Q,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(K){K.forceCrop=K.forceCropping&&K.forceCropping(),K.processData(C)}),n(this,"postProcessData",{hasExtremesChanged:C})}this.setAxisTranslation(),n(this,"initialAxisTranslation"),this.pointRange&&!Q&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(D.minTickInterval,this.dateTime&&!this.series.some(C=>C.noSharedTooltip)?this.closestPointRange:0),!Q&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||Q||(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&&y(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&&y(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;!y(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 Q;if(c(m)&&(Q=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),V.reversed&&(Q=g-1-Q)),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(Q)&&c(s.threshold)){for(;o[Q]!==G||o.length!==g||o[0]>D||o[o.length-1]<z;){for(o.length=0,o.push(s.threshold);o.length<g;)o[Q]===void 0||o[Q]>s.threshold?o.unshift(x(o[0]-$)):o.push(x(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(x(o[o.length-1]+$)):o.unshift(x(o[0]-$));it()}if(y(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=b(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||(y(D)&&(G<g&&(G=g),G>m&&(G=m)),y(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(P(u(M.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),o=this.height=Math.round(P(u(M.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),g=this.top=Math.round(P(u(M.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));M=this.left=Math.round(P(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?x(s.lin2log(this.min)):this.min,max:s?x(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 rt=it/(D||1);return rt=1<rt?Math.ceil(rt):1,rt*z>g&&it!==1/0&&D!==1/0&&g&&(rt=Math.ceil(g/z)),x(rt*z)};let H=z,G,$=Number.MAX_VALUE,Q;if(M){if(s.staggerLines||(c(V)?Q=[V]:D<s.autoRotationLimit&&(Q=s.autoRotation)),Q){let it;for(const rt of Q)(rt===V||rt&&-90<=rt&&90>=rt)&&(M=m(Math.abs(o/Math.sin(w*rt))),it=M+Math.abs(rt/360),it<$&&($=it,G=rt,H=M))}}else H=m(o);return this.autoRotation=Q,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(),Q=o.textOverflow;let it,rt,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,!Q))for(rt="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,Q||(rt="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(G.align=this.labelAlign),z.forEach(function(E){const C=(E=D[E])&&E.label,K=o.width,X={};C&&(C.attr(G),E.shortenLabel?E.shortenLabel():it&&!K&&o.whiteSpace!=="nowrap"&&(it<C.textPxLength||C.element.tagName==="SPAN")?(X.width=it+"px",Q||(X.textOverflow=C.specificTextOverflow||rt),C.css(X)):C.styles&&C.styles.width&&!X.width&&!K&&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&&y(this.min)&&y(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 Q=s.hasData();const it=D.title;var rt=D.labels;const ht=c(D.crossing);var pt=M.axisOffset;const E=M.clipOffset,C=[-1,1,1,-1][V],K=D.className;let X,Z=0,dt;var ct=0;let xt=0;if(s.showAxis=X=Q||D.showEmpty,s.staggerLines=s.horiz&&rt.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} `:"")+(K||"")).add(H);s.gridGroup=yt("grid","-grid",D.gridZIndex),s.axisGroup=yt("axis","",D.zIndex),s.labelGroup=yt("axis-labels","-labels",rt.zIndex)}Q||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(rt.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=Z=s.axisTitle.getBBox()[z?"height":"width"],dt=it.offset,ct=y(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},Q=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-Q+C*(z?u(rt.y,s.tickRotCorr.y+C*rt.distance):u(rt.x,C*rt.distance))),s.axisTitleMargin=u(dt,ct),s.getMaxLabelDimensions&&(s.maxLabelDimensions=s.getMaxLabelDimensions(o,g)),m!=="colorAxis"&&(rt=this.tickSize("tick"),pt[V]=Math.max(pt[V],(s.axisTitleMargin||0)+Z+C*s.offset,ct,g&&g.length&&rt?rt[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,Q=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-Q.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,Q.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,Q=D.alternateGridColor;var it=D.crossing;const rt=s.tickmarkOffset,ht=s.axisLine,pt=s.showAxis,E=N(M.renderer.globalAnimation);let C,K;if(s.labelEdge.length=0,s.overlap=!1,[m,H,G].forEach(function(X){l(X,function(Z){Z.isActive=!1})}),c(it)){const X=this.isXAxis?M.yAxis[0]:M.xAxis[0],Z=[1,-1,-1,1][this.side];X&&(it=X.toPixels(it,!0),s.horiz&&(it=X.len-it),s.offset=Z*it)}if(s.hasData()||V){const X=s.chart.hasRendered&&s.old&&c(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(Z){s.renderMinorTick(Z,X)}),o.length&&(o.forEach(function(Z,dt){s.renderTick(Z,dt,X)}),rt&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new U(s,-1,null,!0)),m[-1].render(-1))),Q&&o.forEach(function(Z,dt){K=typeof o[dt+1]<"u"?o[dt+1]+rt:s.max-rt,dt%2===0&&Z<s.max&&K<=s.max+(M.polar?-rt:rt)&&(G[Z]||(G[Z]=new Y.PlotLineOrBand(s)),C=Z+rt,G[Z].options={from:z?z.lin2log(C):C,to:z?z.lin2log(K):K,color:Q,className:"highcharts-alternate-grid"},G[Z].render(),G[Z].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(D.plotLines||[]).concat(D.plotBands||[]).forEach(function(Z){s.addPlotBandOrLine(Z)}))}[m,H,G].forEach(function(X){const Z=[],dt=E.duration;l(X,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,Z.push(xt))}),F(function(){let ct=Z.length;for(;ct--;)X[Z[ct]]&&!X[Z[ct]].isActive&&(X[Z[ct]].destroy(),delete X[Z[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||nt.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&&(y(M)||!D)!==!1){if(D?y(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),y(o)){var m={value:M&&(this.isXAxis?M.x:u(M.stackY,M.y)),translatedValue:o};V.polar&&b(m,{isCrosshair:!0,chartX:s&&s.chartX,chartY:s&&s.chartY,point:M}),m=this.getPlotLinePath(m)||null}if(!y(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 nt.defaultOptions=O.defaultXAxisOptions,nt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),nt}),ot(A,"Core/Axis/DateTimeAxis.js",[A["Core/Utilities.js"]],function(j){const{addEvent:O,getMagnitude:W,normalizeTickInterval:tt,timeUnits:J}=j;var Y;return function(U){function _(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)}function N(w){w.userOptions.type!=="datetime"?this.dateTime=void 0:this.dateTime||(this.dateTime=new v(this))}const R=[];U.compose=function(w){return j.pushUnique(R,w)&&(w.keepProps.push("dateTime"),w.prototype.getTimeTicks=_,O(w,"init",N)),w};class v{constructor(L){this.axis=L}normalizeTimeTickInterval(L,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 x=J[I[0]],y=I[1],f;for(f=0;f<d.length&&(I=d[f],x=J[I[0]],y=I[1],!(d[f+1]&&L<=(x*y[y.length-1]+J[d[f+1][0]])/2));f++);return x===J.year&&L<5*x&&(y=[1,2,5]),L=tt(L/x,y,I[0]==="year"?Math.max(W(L/x),1):1),{unitRange:x,count:L,unitName:I[0]}}getXDateFormat(L,I){const{axis:d}=this,x=d.chart.time;return d.closestPointRange?x.getDateFormat(d.closestPointRange,L,d.options.startOfWeek,I)||x.resolveDTLFormat(I.year).main:x.resolveDTLFormat(I.day).main}}U.Additions=v}(Y||(Y={})),Y}),ot(A,"Core/Axis/LogarithmicAxis.js",[A["Core/Utilities.js"]],function(j){const{addEvent:O,normalizeTickInterval:W,pick:tt}=j;var J;return function(Y){function U(v){let w=this.logarithmic;v.userOptions.type!=="logarithmic"?this.logarithmic=void 0:w||(this.logarithmic=new R(this))}function _(){const v=this.logarithmic;v&&(this.lin2val=function(w){return v.lin2log(w)},this.val2lin=function(w){return v.log2lin(w)})}const N=[];Y.compose=function(v){return j.pushUnique(N,v)&&(v.keepProps.push("logarithmic"),O(v,"init",U),O(v,"afterInit",_)),v};class R{constructor(w){this.axis=w}getLogTickPositions(w,L,I,d){const x=this.axis;var y=x.len,f=x.options;let T=[];if(d||(this.minorAutoInterval=void 0),.5<=w)w=Math.round(w),T=x.getLinearTickPositions(w,L,I);else if(.08<=w){f=Math.floor(L);let k,b,n,a,p;for(y=.3<w?[1,2,4]:.15<w?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];f<I+1&&!p;f++)for(b=y.length,k=0;k<b&&!p;k++)n=this.log2lin(this.lin2log(f)*y[k]),n>L&&(!d||a<=I)&&typeof a<"u"&&T.push(a),a>I&&(p=!0),a=n}else L=this.lin2log(L),I=this.lin2log(I),w=d?x.getMinorTickInterval():f.tickInterval,w=tt(w==="auto"?null:w,this.minorAutoInterval,f.tickPixelInterval/(d?5:1)*(I-L)/((d?y/x.tickPositions.length:y)||1)),w=W(w),T=x.getLinearTickPositions(w,L,I).map(this.log2lin),d||(this.minorAutoInterval=w/5);return d||(x.tickInterval=w),T}lin2log(w){return Math.pow(10,w)}log2lin(w){return Math.log(w)/Math.LN10}}Y.Additions=R}(J||(J={})),J}),ot(A,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[A["Core/Utilities.js"]],function(j){const{erase:O,extend:W,isNumber:tt}=j;var J;return function(Y){function U(x){return this.addPlotBandOrLine(x,"plotBands")}function _(x,y){const f=this.userOptions;let T=new d(this,x);if(this.visible&&(T=T.render()),T){if(this._addedPlotLB||(this._addedPlotLB=!0,(f.plotLines||[]).concat(f.plotBands||[]).forEach(k=>{this.addPlotBandOrLine(k)})),y){const k=f[y]||[];k.push(x),f[y]=k}this.plotLinesAndBands.push(T)}return T}function N(x){return this.addPlotBandOrLine(x,"plotLines")}function R(x,y,f=this.options){const T=this.getPlotLinePath({value:y,force:!0,acrossPanes:f.acrossPanes}),k=[],b=this.horiz;y=!tt(this.min)||!tt(this.max)||x<this.min&&y<this.min||x>this.max&&y>this.max,x=this.getPlotLinePath({value:x,force:!0,acrossPanes:f.acrossPanes}),f=1;let n;if(x&&T)for(y&&(n=x.toString()===T.toString(),f=0),y=0;y<x.length;y+=2){const a=x[y],p=x[y+1],h=T[y],c=T[y+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"||(b&&h[1]===a[1]?(h[1]+=f,c[1]+=f):b||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 v(x){this.removePlotBandOrLine(x)}function w(x){const y=this.plotLinesAndBands,f=this.options,T=this.userOptions;if(y){let k=y.length;for(;k--;)y[k].id===x&&y[k].destroy();[f.plotLines||[],T.plotLines||[],f.plotBands||[],T.plotBands||[]].forEach(function(b){for(k=b.length;k--;)(b[k]||{}).id===x&&O(b,b[k])})}}function L(x){this.removePlotBandOrLine(x)}const I=[];let d;Y.compose=function(x,y){return d||(d=x),j.pushUnique(I,y)&&W(y.prototype,{addPlotBand:U,addPlotLine:N,addPlotBandOrLine:_,getPlotBandPath:R,removePlotBand:v,removePlotLine:L,removePlotBandOrLine:w}),y}}(J||(J={})),J}),ot(A,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[A["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],A["Core/Utilities.js"]],function(j,O){const{arrayMax:W,arrayMin:tt,defined:J,destroyObjectProperties:Y,erase:U,fireEvent:_,merge:N,objectEach:R,pick:v}=O;class w{static compose(I){return j.compose(w,I)}constructor(I,d){this.axis=I,d&&(this.options=d,this.id=d.id)}render(){_(this,"render");const I=this,d=I.axis,x=d.horiz;var y=d.logarithmic;const f=I.options,T=f.color,k=v(f.zIndex,0),b=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=J(e)&&J(c);l=J(t);const P=!i,r={class:"highcharts-plot-"+(u?"band ":"line ")+(f.className||"")};let S=u?"bands":"lines";if(y&&(e=y.log2lin(e),c=y.log2lin(c),t=y.log2lin(t)),d.chart.styledMode||(l?(r.stroke=T||"#999999",r["stroke-width"]=v(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,(y=d.plotLinesAndBandsGroups[S])||(d.plotLinesAndBandsGroups[S]=y=a.g("plot-"+S).attr(n).add()),P&&(I.svgElem=i=a.path().attr(r).add(y)),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&&b&&(R(b,function(F,q){i.on(q,function(nt){b[q].apply(I,[nt])})}),I.eventsAdded=!0),(P||!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&&(J(p.text)||J(p.formatter))&&l&&l.length&&0<d.width&&0<d.height&&!l.isFlat?(p=N({align:x&&u&&"center",x:x?!u&&4:10,verticalAlign:!x&&u&&"middle",y:x?u?16:10:u?6:-4,rotation:x&&!u&&90},p),this.renderLabel(p,l,u,k)):h&&h.hide(),I}renderLabel(I,d,x,y){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-"+(x?"band":"line")+"-label "+(I.className||""),zIndex:y}).add(),f.chart.styledMode||k.css(N({fontSize:"0.8em",textOverflow:"ellipsis"},I.style))),y=d.xBounds||[d[0][1],d[1][1],x?d[2][1]:d[0][1]],d=d.yBounds||[d[0][2],d[1][2],x?d[2][2]:d[0][2]],x=tt(y),T=tt(d),k.align(I,!1,{x,y:T,width:W(y)-x,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 J(I.formatter)?I.formatter.call(this):I.text}destroy(){U(this.axis.plotLinesAndBands,this),delete this.axis,Y(this)}}return w}),ot(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,O,W,tt,J){const{format:Y}=j,{doc:U,isSafari:_}=O,{distribute:N}=W,{addEvent:R,clamp:v,css:w,discardElement:L,extend:I,fireEvent:d,isArray:x,isNumber:y,isString:f,merge:T,pick:k,splat:b,syncTimeout:n}=J;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||b(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(),L(this.container)),J.clearTimeout(this.hideTimer),J.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=b(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,P=0;h.forEach(function(r){(r=r.pos(!0))&&(u+=r[0],P+=r[1])}),u/=h.length,P/=h.length,this.shared&&1<h.length&&c&&(i?u=c.chartX:P=c.chartY),h=[u-e,P-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 P=!this.label.hasClass("highcharts-label");(!t&&P||t&&!P)&&this.destroy()}if(!this.label){if(this.outside){P=this.chart.options.chart.style;const r=tt.getRendererType();this.container=l=O.doc.createElement("div"),l.className="highcharts-tooltip-container",w(l,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(P&&P.zIndex||0)+3)}),O.doc.body.appendChild(l),this.renderer=u=new r(l,0,0,P,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,P=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(P?[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 nt=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,$,Q,it){const rt=P?g==="y"?i*q.scaleY:i*q.scaleX:i,ht=(H-G)/2,pt=G<$-i,E=$+i+G<m,C=$-rt-H+ht;if($=$+rt-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(Q,$+u+H>m?$:$+u);else return!1},D=function(g,m,H,G,$){let Q;return $<i||$>m-i?Q=!1:l[g]=$<H/2?1:$>m-G/2?m-G-2:$-H/2,Q},V=function(g){const m=nt;nt=B,B=m,s=g},o=function(){z.apply(0,nt)!==!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;J.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)),P=i.followPointer||1<i.len;I(l,{x:u?(2*l.x+h)/3:h,y:u?(l.y+c)/2:c,anchorX:P?void 0:u?(2*l.anchorX+e)/3:e,anchorY:P?void 0:u?(l.anchorY+t)/2:t}),i.getLabel().attr(l),i.drawTracker(),u&&(J.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=b(h),u=l[0],P=[];var r=t.format,S=t.formatter||this.defaultFormatter;const F=this.shared,q=e.styledMode;let nt={};if(t.enabled&&u.series){J.clearTimeout(this.hideTimer),this.allowShared=!(!x(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"),P.push(M.getLabelConfig())}),nt=u.getLabelConfig(),nt.points=P):nt=u.getLabelConfig(),this.len=P.length,r=f(r)?Y(r,nt,e):S.call(nt,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,Z,dt,ct,xt=!0){return dt?(Z=H?0:rt,X=v(X-ct/2,o.left,o.right-ct-(t.outside?G:0))):(Z-=Q,X=xt?X-ct-z:X+z,X=v(X,xt?X:o.left,o.right)),{x:X,y:Z}}const t=this,{chart:i,chart:{chartWidth:l,chartHeight:u,plotHeight:P,plotLeft:r,plotTop:S,pointer:F,scrollablePixelsY:q=0,scrollablePixelsX:nt,scrollingContainer:{scrollLeft:B,scrollTop:s}={scrollLeft:0,scrollTop:0},styledMode:M},distance:z,options:D,options:{positioner:V}}=t,o=t.outside&&typeof nt!="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 Q=S+s,it=0,rt=P-q;f(h)&&(h=[!1,h]),h=h.slice(0,c.length+1).reduce(function(X,Z,dt){if(Z!==!1&&Z!==""){dt=c[dt-1]||{isHeader:!0,plotX:c[0].plotX,plotY:P,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var yt=dt;Z=Z.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:Z}),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,rt+=it,H&&(Q-=it));{const{isHeader:Mt,plotX:_t=0,plotY:At=0,series:Bt}=dt;if(Mt){Z=r+_t;var mt=S+P/2}else{const{xAxis:Ht,yAxis:Lt}=Bt;Z=Ht.pos+v(_t,-z,Ht.len+z),Bt.shouldShowTooltip(0,Lt.pos-S+At,{ignoreX:!0})&&(mt=Lt.pos+At)}Z=v(Z,o.left-z,o.right+z),mt={anchorX:Z,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:Z}=t;return Z=(Z?G:0)+X.anchorX,Z<o.left&&Z+X.boxWidth<o.right?!0:Z<G-o.left+X.boxWidth&&o.right-Z>Z})&&(h=h.map(X=>{const{x:Z,y:dt}=e(X.anchorX,X.anchorY,X.point.isHeader,X.boxWidth,!1);return I(X,{target:dt,x:Z})})),t.cleanSplit(),N(h,rt);var ht=G,pt=G;h.forEach(function(X){const{x:Z,boxWidth:dt,isHeader:ct}=X;ct||(t.outside&&G+Z<ht&&(ht=G+Z),!ct&&t.outside&&ht+dt>pt&&(pt=G+Z))}),h.forEach(function(X){const{x:Z,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:yt}}=X,gt={visibility:typeof xt>"u"?"hidden":"inherit",x:Z,y:(xt||0)+Q,anchorX:dt,anchorY:ct};if(t.outside&&Z<dt){const mt=G-ht;0<mt&&(yt||(gt.x=Z+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:K}=t;if(C&&E&&K){const{width:X,height:Z,x:dt,y:ct}=g.getBBox();K.setSize(X+dt,Z+ct,!1),E.style.left=ht+"px",E.style.top=$+"px"}_&&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,P=t[c?"footerFormat":"headerFormat"];return d(this,"headerFormatter",i,function(r){l&&!u&&y(h.key)&&(u=l.getXDateFormat(h.key,t.dateTimeLabelFormats)),l&&u&&(h.point&&h.point.tooltipDateKeys||["key"]).forEach(function(S){P=P.replace("{point."+S+"}","{point."+S+":"+u+"}")}),e.chart.styledMode&&(P=this.styledModeFormat(P)),r.text=Y(P,{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:P,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+=P-e),q=(t.borderWidth||0)+2*e,this.renderer.setSize(l.width+q,l.height+q,!1),(r!==1||S!==1)&&(w(this.container,{transform:`scale(${r}, ${S})`}),F*=r,h*=S),F+=u-i.x,h+=P-i.y),this.move(Math.round(i.x),Math.round(i.y||0),F,h)}}return function(p){const h=[];p.compose=function(c){J.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}),ot(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,O,W,tt,J){const{animObject:Y}=O,{defaultOptions:U}=W,{format:_}=tt,{addEvent:N,defined:R,erase:v,extend:w,fireEvent:L,getNestedProperty:I,isArray:d,isFunction:x,isNumber:y,isObject:f,merge:T,objectEach:k,pick:b,syncTimeout:n,removeEvent:a,uniqueKey:p}=J;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(w({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),w(this,e),this.options=this.options?w(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:y(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),P=()=>{(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(),v(l,t),l.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),e&&e.enabled?(this.animateBeforeDestroy(),n(P,u.duration)):P(),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(P){l.select&&l.select(null,P.ctrlKey||P.metaKey||P.shiftKey)}),L(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,P;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),P=i.length;P--;)u=i[P],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++,L(this,"afterInit"),this}isValid(){return this.x!==null&&y(this.y)}optionsToObject(e){var t=this.series;const i=t.options.keys,l=i||t.pointArrayMap||["y"],u=l.length;let P={},r=0,S=0;if(y(e)||e===null)P[l[0]]=e;else if(d(e))for(!i&&e.length>u&&(t=typeof e[0],t==="string"?P.name=e[0]:t==="number"&&(P.x=e[0]),r++);S<u;)i&&typeof e[r]>"u"||(0<l[S].indexOf(".")?h.prototype.setNestedProperty(P,e[r],l[S]):P[l[S]]=e[r]),r++,S++;else typeof e=="object"&&(P=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return P}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:l}=this,{chart:u,xAxis:P,yAxis:r}=l;let S=0,F=0;if(y(i)&&y(t))return e&&(S=P?P.pos:u.plotLeft,F=r?r.pos:u.plotTop),u.inverted&&P&&r?[r.len-t+F,P.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=b(this.options.colorIndex,t),this.color=b(this.options.color,i)}setNestedProperty(e,t,i){return i.split(".").reduce(function(l,u,P,r){return l[u]=r.length-1===P?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=b(i.valueDecimals,""),u=i.valuePrefix||"",P=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(u||P)&&(e=e.replace(RegExp(r+"}","g"),u+r+"}"+P)),e=e.replace(RegExp(r+"}","g"),r+":,."+l+"f}")}),_(e,{point:this,series:this.series},t.chart)}update(e,t,i,l){function u(){P.applyOptions(e);var B=S&&P.hasMockGraphic;B=P.y===null?!B:B,S&&B&&(P.graphic=S.destroy(),delete P.hasMockGraphic),f(e,!0)&&(S&&S.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(P.graphic=S.destroy()),e&&e.dataLabels&&P.dataLabel&&(P.dataLabel=P.dataLabel.destroy()),P.connector&&(P.connector=P.connector.destroy())),nt=P.index,r.updateParallelArrays(P,nt),q.data[nt]=f(q.data[nt],!0)||f(e,!0)?P.options:b(e,q.data[nt]),r.isDirty=r.isDirtyData=!0,!r.fixedBox&&r.hasCartesianSeries&&(F.isDirtyBox=!0),q.legendType==="point"&&(F.isDirtyLegend=!0),t&&F.redraw(i)}const P=this,r=P.series,S=P.graphic,F=r.chart,q=r.options;let nt;t=b(t,!0),l===!1?u():P.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=b(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(P){const r=P.series;P.selected&&P!==i&&(P.selected=P.options.selected=!1,r.options.data[r.data.indexOf(P)]=P.options,P.setState(u.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),P.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){x(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"]||{},P=U.plotOptions[i.type].marker&&i.options.marker;const r=P&&P.enabled===!1,S=P&&P.states&&P.states[e||"normal"]||{},F=S.enabled===!1,q=this.marker||{},nt=i.chart,B=P&&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),!nt.styledMode){l=i.pointAttribs(this,e),z=b(nt.options.chart.animation,u.animation);const V=l.opacity;i.options.inactiveOtherPoints&&y(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,b(nt.options.chart.animation,S.animation,P.animation)),D&&D.hide()}else e&&S&&(P=q.symbol||i.symbol,D&&D.currentSymbol!==P&&(D=D.destroy()),M&&(D?D[t?"animate":"attr"]({x:M.x,y:M.y}):P&&(i.stateMarkerGraphic=D=nt.renderer.symbol(P,M.x,M.y,M.width,M.height).add(i.markerGroup),D.currentSymbol=P)),!nt.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=nt.renderer.path().add(D.parentGroup)),s.show()[t?"animate":"attr"]({d:this.haloPath(u.size)}),s.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,i.colorIndex)+(this.className?" "+this.className:""),visibility:M,zIndex:-1}),s.point=this,nt.styledMode||s.attr(w({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),L(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}),ot(A,"Core/Pointer.js",[A["Core/Color/Color.js"],A["Core/Globals.js"],A["Core/Utilities.js"]],function(j,O,W){const{parse:tt}=j,{charts:J,noop:Y}=O,{addEvent:U,attr:_,css:N,defined:R,extend:v,find:w,fireEvent:L,isNumber:I,isObject:d,objectEach:x,offset:y,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=[],O.chartCount||(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(n.tooltipTimeout),x(n,function(a,p){n[p]=void 0})}getSelectionMarkerAttrs(n,a){const p={args:{chartX:n,chartY:a},attrs:{},shapeType:"rect"};return L(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,P=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:nt}=this.getSelectionMarkerAttrs(r,S);!a.hasCartesianSeries&&!a.mapView||!this.zoomX&&!this.zoomY||!h||P||F||(this.selectionMarker=F=a.renderer[q](),F.attr({class:"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||F.attr({fill:p.selectionMarkerFill||tt("#334eff").setOpacity(.25).get()})),F&&F.attr(nt),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 L(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(P){if(P.zoomEnabled&&R(P.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[P.coll]])&&I(c)&&I(e)&&I(t)&&I(i)){var r=P.horiz;const S=n.type==="touchend"?P.minPixelPadding:0,F=P.toValue((r?c:e)+S);r=P.toValue((r?c+t:e+i)-S),l[P.coll].push({axis:P,min:Math.min(F,r),max:Math.max(F,r)}),u=!0}}),u&&L(p,"selection",l,function(P){p.zoom(v(P,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=y(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};L(this,"beforeGetHoverData",u),l=a&&!a.stickyTracking?[a]:p.filter(r=>r.stickyTracking&&(u.filter||i)(r));const P=h||!e?n:this.findNearestKDPoint(l,c,e);return a=P&&P.series,P&&(c&&!a.noSharedTooltip?(l=p.filter(function(r){return u.filter?u.filter(r):i(r)&&!r.noSharedTooltip}),l.forEach(function(r){let S=w(r.points,function(F){return F.x===P.x&&!F.isNull});d(S)&&(r.boosted&&r.boost&&(S=r.boost.getPoint(S)),t.push(S))})):t.push(P)),u={hoverPoint:P},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=_(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(),L(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,v(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")?(L(p.series,"click",v(n,{point:p})),a.hoverPoint&&p.firePointEvent("click",n)):(v(n,this.getCoordinates(n)),a.isInsidePlot(n.chartX-h,n.chartY-c,{visiblePlotOnly:!0})&&L(a,"click",n)))}onContainerMouseDown(n){const a=((n.buttons||n.button)&1)===1;n=this.normalize(n),O.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=J[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=J[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=J[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),P={};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"],nt=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)-nt),q.max=Math.max(F.pos+F.len,M+nt)}}),a.res=!0):r?this.runPointActions(a.normalize(n)):h.length&&(L(p,"touchpan",{originalEvent:n},()=>{S||(a.selectionMarker=S=v({destroy:Y,touch:!0},p.plotBox)),a.pinchTranslate(h,c,l,S,P,t),a.hasPinched=i,a.scaleGroups(l,P)}),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",P=n?"X":"Y",r="chart"+P,S=n?"width":"height",F=l["plot"+(n?"Left":"Top")],q=l.inverted,nt=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<nt.min?(p=nt.min,m=!0):p+z>nt.max&&(p=nt.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"+P]=V,h["translate"+P]=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(P){l.indexOf(P)===-1&&P.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach(function(P){P.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(P){const r=J[k.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(P)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(P){const r=f((P.crosshair||{}).snap,!0);let S;r&&((S=h.hoverPoint)&&S.series[P.coll]===P||(S=w(l,F=>F.series&&F.series[P.coll]===P))),S||!r?P.drawCrosshair(n,S):P.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;O.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=O.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(b){const n=[],a=[];b.compose=function(p){W.pushUnique(a,p)&&U(p,"beforeRender",function(){this.pointer=new b(this,this.options)})},b.dissolve=function(){for(let p=0,h=n.length;p<h;++p)n[p]();n.length=0}}(k||(k={})),k}),ot(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,O,W,tt,J,Y){const{animObject:U,setAnimation:_}=j,{format:N}=O,{marginNames:R}=W,{distribute:v}=J,{addEvent:w,createElement:L,css:I,defined:d,discardElement:x,find:y,fireEvent:f,isNumber:T,merge:k,pick:b,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(),w(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),w(this.chart,"render",()=>{this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(e){const t=b(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=b(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,b(t,!0)&&i.redraw(),f(this,"afterUpdate")}colorizeItem(e,t){const{group:i,label:l,line:u,symbol:P}=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 nt={fill:F};l==null||l.css(k(t?this.itemStyle:r)),u==null||u.attr({stroke:F}),P&&(q&&P.isMarker&&(nt=e.pointAttribs(),t||(nt.stroke=nt.fill=S)),P.attr(nt))}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,P=u.symbolPadding;const r=!u.rtl;u=e.checkbox,t&&t.element&&(P={translateX:r?i:this.legendWidth-i-2*P-4,translateY:l},t[d(t.translateY)?"animate":"attr"](P,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&&x(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 P=u.checkbox;let r;P&&(r=l+i+P.y+(this.scrollOffset||0)+3,I(P,{left:e.translateX+u.checkboxOffset+P.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,P=this.symbolWidth,r=u.symbolPadding||0,S=this.itemStyle,F=this.itemHiddenStyle,q=u.layout==="horizontal"?b(u.itemDistance,20):0,nt=!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=P+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("",nt?P+r:-r,this.baseline||0,D),i.styledMode||o.css(k(e.visible?S:F)),o.attr({align:nt?"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=b(u.symbolHeight,this.fontMetrics.f),u.squareSymbol&&(this.symbolWidth=b(u.symbolWidth,Math.max(this.symbolHeight,16)),M=this.symbolWidth+r+q+(z?20:0),nt&&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,P=this.itemMarginBottom,r=this.itemMarginTop,S=l?b(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+P),this.lastLineHeight=0),this.lastItemY=r+this.itemY+P,this.lastLineHeight=Math.max(u,this.lastLineHeight),q.x=this.itemX,q.y=this.itemY,l?this.itemX+=t:(this.itemY+=r+u+P,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&&b(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(P,r){P.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"]+b(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 P,r=i;let S;u.yAxis&&(u.xAxis.options.reversed&&(r=!r),u.points&&(P=y(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?(P=P?P.plotY:u.yAxis.height,P+=S-.3*r):P=S+u.yAxis.height,t.push({target:P,size:r,item:u}))},this);let l;for(const u of v(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 P,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,nt)=>(q.options&&q.options.legendIndex||0)-(nt.options&&nt.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,P=this.lastItemY+this.lastLineHeight+this.titleHeight,P=this.handleOverflow(P),P+=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<P&&S[S.placed?"animate":"attr"](S.crisp.call({},{x:0,y:0,width:u,height:P},S.strokeWidth())),r[F?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(u=P=0),this.legendWidth=u,this.legendHeight=P,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 P=u.y;const r=u.verticalAlign==="top",S=this.padding,F=u.maxHeight,q=u.navigation,nt=b(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;P=i.spacingBox.height+(r?-P:P)-S;let m=this.nav,H=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(P/=2),F&&(P=Math.min(P,F)),s.length=0,e&&0<P&&e>P&&q.enabled!==!1?(this.clipHeight=V=Math.max(P-20-this.titleHeight-S,0),this.currentPage=b(this.currentPage,1),this.fullHeight=e,M.forEach((G,$)=>{g=G.legendItem||{},G=g.y||0;const Q=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+Q-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,nt)}),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,nt)})),t.scroll(0),e=P):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,P=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"&&_(t,i),this.nav.attr({translateX:F,translateY:P+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach(function(nt){nt.attr({class:q===1?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),S.attr({text:q+"/"+u}),[this.down,this.downTracker].forEach(function(nt){nt.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(b(t,i.renderer.globalAnimation,!0)),p(()=>{f(this,"afterScroll",{currentPage:q})},e.duration))}setItemEvents(e,t,i){const l=this,u=e.legendItem||{},P=l.chart.renderer.boxWrapper,r=e instanceof tt,S="highcharts-legend-"+(r?"point":"series")+"-active",F=l.chart.styledMode;i=i?[t,u.symbol]:[u.group];const q=nt=>{l.allItems.forEach(B=>{e!==B&&[B].concat(B.linkedSeries||[]).forEach(s=>{s.setState(nt,!r)})})};for(const nt of i)nt&&nt.on("mouseover",function(){e.visible&&q("inactive"),e.setState("hover"),e.visible&&P.addClass(S),F||t.css(l.options.itemHoverStyle)}).on("mouseout",function(){l.chart.styledMode||t.css(k(e.visible?l.itemStyle:l.itemHiddenStyle)),q(""),P.removeClass(S),e.setState()}).on("click",function(B){const s=function(){e.setVisible&&e.setVisible(),q(e.visible?"inactive":"")};P.removeClass(S),B={browserEvent:B},e.firePointEvent?e.firePointEvent("legendItemClick",B,s):f(e,"legendItemClick",B,s)})}createCheckboxForItem(e){e.checkbox=L("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:e.selected,defaultChecked:e.selected},this.options.itemCheckboxStyle,this.chart.container),w(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)&&w(t,"beforeMargins",function(){this.legend=new c(this,this.options.legend)})}}(h||(h={})),h}),ot(A,"Core/Legend/LegendSymbol.js",[A["Core/Utilities.js"]],function(j){const{extend:O,merge:W,pick:tt}=j;var J;return function(Y){Y.lineMarker=function(U,_){_=this.legendItem=this.legendItem||{};var N=this.options;const R=U.symbolWidth,v=U.symbolHeight,w=v/2,L=this.chart.renderer,I=_.group;U=U.baseline-Math.round(.3*U.fontMetrics.b);let d={},x=N.marker,y=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")),_.line=L.path().addClass("highcharts-graph").attr(d).add(I),d["stroke-linecap"]&&(y=Math.min(_.line.strokeWidth(),R)/2),R&&_.line.attr({d:[["M",y,U],["L",R-y,U]]}),x&&x.enabled!==!1&&R&&(N=Math.min(tt(x.radius,w),w),this.symbol.indexOf("url")===0&&(x=W(x,{width:v,height:v}),N=0),_.symbol=_=L.symbol(this.symbol,R/2-N,U-N,2*N,2*N,O({context:"legend"},x)).addClass("highcharts-point").add(I),_.isMarker=!0)},Y.rectangle=function(U,_){_=_.legendItem||{};const N=U.symbolHeight,R=U.options.squareSymbol;_.symbol=this.chart.renderer.rect(R?(U.symbolWidth-N)/2:0,U.baseline-N+1,R?N:U.symbolWidth,N,tt(U.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(_.group)}}(J||(J={})),J}),ot(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"}}),ot(A,"Core/Series/SeriesRegistry.js",[A["Core/Globals.js"],A["Core/Defaults.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(j,O,W,tt){const{defaultOptions:J}=O,{extendClass:Y,merge:U}=tt;var _;return function(N){function R(v,w){const L=J.plotOptions||{},I=w.defaultOptions,d=w.prototype;d.type=v,d.pointClass||(d.pointClass=W),I&&(L[v]=I),N.seriesTypes[v]=w}N.seriesTypes=j.seriesTypes,N.registerSeriesType=R,N.seriesType=function(v,w,L,I,d){const x=J.plotOptions||{};return w=w||"",x[v]=U(x[w],L),R(v,Y(N.seriesTypes[w]||function(){},I)),N.seriesTypes[v].prototype.type=v,d&&(N.seriesTypes[v].prototype.pointClass=Y(W,d)),N.seriesTypes[v]}}(_||(_={})),_}),ot(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,O,W,tt,J,Y,U,_,N,R){const{animObject:v,setAnimation:w}=j,{defaultOptions:L}=O,{registerEventOptions:I}=W,{hasTouch:d,svg:x,win:y}=tt,{seriesTypes:f}=_,{arrayMax:T,arrayMin:k,clamp:b,correctFloat:n,defined:a,diffObjects:p,erase:h,error:c,extend:e,find:t,fireEvent:i,getClosestDistance:l,getNestedProperty:u,insertItem:P,isArray:r,isNumber:S,isString:F,merge:q,objectEach:nt,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(Q){m[Q+"Data"]||(m[Q+"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",P(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)&&(P(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 Q=$==="y"&&H.toYData?H.toYData(o):o[$];H[$+"Data"][g]=Q}: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,Q;return $=B($,g.pointStart,0),this.pointInterval=Q=B(this.pointInterval,g.pointInterval,1),H&&S(o)&&(Q*=o),m&&(g=new G.Date($),m==="day"?G.set("Date",g,G.get("Date",g)+Q):m==="month"?G.set("Month",g,G.get("Month",g)+Q):m==="year"&&G.set("FullYear",g,G.get("FullYear",g)+Q),Q=g.getTime()-$),H&&S(o)?$+Q:(this.xIncrement=$+Q,$)}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 Q=q(o);o=H.styledMode;const it={plotOptions:G,userOptions:Q};i(this,"setOptions",it);const rt=it.plotOptions[this.type];$=$.plotOptions||{};const ht=$.series||{},pt=L.plotOptions[this.type]||{},E=$[this.type]||{};return this.userOptions=it.userOptions,G=q(rt,G.series,E,Q),this.tooltipOptions=q(L.tooltip,(g=L.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,Q.tooltip),this.stickyTracking=B(Q.stickyTracking,E.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:G.stickyTracking),rt.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`,Q=(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[$]%Q,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||L.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,Q;let it,rt;if(m)$=this.chart.get(m),$ instanceof Y&&(Q=$);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(Q=ht=>!ht.touched&&ht.index===o.index,$&&$.matchByName?Q=ht=>!ht.touched&&ht.name===o.name:this.options.relativeXValue&&(Q=ht=>!ht.touched&&ht.options.x===o.x),Q=t(G,Q),!Q))return;return Q&&(rt=Q&&Q.index,typeof rt<"u"&&(it=!0)),typeof rt>"u"&&S(H)&&(rt=this.xData.indexOf(H,g)),rt!==-1&&typeof rt<"u"&&this.cropped&&(rt=rt>=this.cropStart?rt-this.cropStart:rt),!it&&S(rt)&&G[rt]&&G[rt].touched&&(rt=void 0),rt}updateData(o,g){const m=this.options,H=m.dataSorting,G=this.points,$=[],Q=this.requireSorting,it=o.length===G.length;let rt,ht,pt,E=!0;if(this.xIncrement=null,o.forEach(function(C,K){var X=a(C)&&this.pointClass.prototype.optionsToObject.call({series:this},C)||{};const Z=X.x;X.id||S(Z)?(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,Q&&(pt=X+1)):G[X]&&(G[X].touched=!0),(!it||K!==X||H&&H.enabled||this.hasDerivedData)&&(rt=!0)):$.push(C)},this),rt)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,K){C===G[K].y||G[K].destroyed||G[K].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,Q=$.points,it=Q&&Q.length||0,rt=$.options,ht=$.chart,pt=rt.dataSorting,E=$.xAxis,C=rt.turboThreshold,K=this.xData,X=this.yData;var Z=$.pointArrayMap;Z=Z&&Z.length;const dt=rt.keys;let ct,xt=0,yt=1,gt=null;if(!ht.options.chart.allowMutatingData){rt.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++)K[m]=this.autoIncrement(),X[m]=o[m];else if(r(gt))if(Z)if(gt.length===Z)for(m=0;m<mt;m++)K[m]=this.autoIncrement(),X[m]=o[m];else for(m=0;m<mt;m++)H=o[m],K[m]=H[0],X[m]=H.slice(1,Z+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++)K[m]=this.autoIncrement(),X[m]=o[m][yt];else for(m=0;m<mt;m++)H=o[m],K[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=Q[m])===null||G===void 0||G.destroy();E&&(E.minRange=E.userMinRange),$.isDirty=ht.isDirtyBox=!0,$.isDirtyData=!!Q,m=!1}rt.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,Q=$.data;$.dataSorting&&$.dataSorting.enabled||!Q||(Q.forEach(function(it,rt){Q[rt]=H(G,it),o[rt]&&(Q[rt].x=o[rt].x,Q[rt].index=rt)}),G.setData(Q,!1))}),o}getProcessedData(o){const g=this;var m=g.xAxis,H=g.options;const G=H.cropThreshold,$=o||g.getExtremesFromAll||H.getExtremesFromAll,Q=m==null?void 0:m.logarithmic,it=g.isCartesian;let rt=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 K=this.cropData(g.xData,g.yData,ht,C);o=K.xData,H=K.yData,rt=K.start,K=!0}}return m=l([Q?o.map(Q.log2lin):o],()=>g.requireSorting&&!pt&&c(15,!1,g.chart)),{xData:o,yData:H,cropped:K,cropStart:rt,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 Q,it=0,rt=$;for(G=B(G,this.cropShoulder),Q=0;Q<$;Q++)if(o[Q]>=m){it=Math.max(0,Q-G);break}for(m=Q;m<$;m++)if(o[m]>H){rt=m+G;break}return{xData:o.slice(it,rt),yData:g.slice(it,rt),start:it,end:rt}}generatePoints(){var o=this.options;const g=this.processedData||o.data,m=this.processedXData,H=this.processedYData,G=this.pointClass,$=m.length,Q=this.cropStart||0,it=this.hasGroupedData,rt=o.keys,ht=[];o=o.dataGrouping&&o.dataGrouping.groupAll?Q:0;let pt,E,C,K=this.data;if(!K&&!it){var X=[];X.length=g.length,K=this.data=X}for(rt&&it&&(this.options.keys=!1),C=0;C<$;C++)X=Q+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=K[X])||typeof g[X]>"u"||(K[X]=E=new G().init(this,g[X],m[C])),E&&(E.index=it?o+C:X,ht[C]=E);if(this.options.keys=rt,K&&($!==(pt=K.length)||it))for(C=0;C<pt;C++)C!==Q||it||(C+=$),K[C]&&(K[C].destroyElements(),K[C].plotX=void 0);this.data=K,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,$=[],Q=this.requireSorting?this.cropShoulder:0;H=H?H.positiveValuesOnly:!1;let it,rt=0,ht=0,pt=0;o=o||this.stackedYData||this.processedYData||[];const E=o.length;if(m){var C=m.getExtremes();rt=C.min,ht=C.max}for(it=0;it<E;it++){var K=G[it];C=o[it];var X=(S(C)||r(C))&&(C.length||0<C||!H);if(K=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(G[it+Q]||K)>=rt&&(G[it-Q]||K)<=ht,X&&K)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,Q=this.yAxis,it=this.points,rt=it.length,ht=this.pointPlacementToXValue(),pt=!!ht,E=g.threshold;g=g.startFromThreshold?E:0;let C,K,X,Z,dt=Number.MAX_VALUE;for(C=0;C<rt;C++){const ct=it[C],xt=ct.x;let yt,gt,mt=ct.y,Ct=ct.low;const kt=m&&((o=Q.stacking)===null||o===void 0?void 0:o.stacks[(this.negStacks&&mt<(g?0:E)?"-":"")+this.stackKey]);K=H.translate(xt,!1,!1,!1,!0,ht),ct.plotX=S(K)?n(b(K,-1e5,1e5)):void 0,m&&this.visible&&kt&&kt[xt]&&(Z=this.getStackIndicator(Z,xt,this.index),!ct.isNull&&Z.key&&(yt=kt[xt],gt=yt.points[Z.key]),yt&&r(gt)&&(Ct=gt[0],mt=gt[1],Ct===g&&Z.key===kt[xt].base&&(Ct=B(S(E)?E:Q.min)),Q.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)?b(Q.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=Q.translate(mt,!1,!0,!1,!0),bt=S(bt)?b(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)):K,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(K-X))),X=K),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:Q}=G;return!m&&(G.isNull||!S(Q))||g&&!H.isInsidePlot($,Q,{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(),Q=this.getSharedClipKey();let it=H[Q];it?it.animate($):H[Q]=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 $=v(this.options.animation),Q=[this.getSharedClipKey(),$.duration,$.easing,$.defer].join();let it=g.sharedClips[Q],rt=g.sharedClips[Q+"m"];if(o&&m)$=this.getClipBox(),it?it.attr("height",$.height):($.width=0,G&&($.x=g.plotHeight),it=g.renderer.clipRect($),g.sharedClips[Q]=it,rt=g.renderer.clipRect({x:-99,y:-99,width:G?g.plotWidth+199:99,height:G?99:g.plotHeight+199}),g.sharedClips[Q+"m"]=rt),m.clip(it),H&&H.clip(rt);else if(it&&!it.hasClass("highcharts-animating")){Q=this.getClipBox();const ht=$.step;H&&H.element.childNodes.length&&($.step=function(pt,E){ht&&ht.apply(E,arguments),E.prop==="width"&&rt&&rt.element&&rt.attr(G?"height":"width",pt+99)}),it.addClass("highcharts-animating").animate(Q,$)}}afterAnimate(){this.setClip(),nt(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,Q=this[this.specialGroup||"markerGroup"],it=this.xAxis,rt=B($.enabled,!it||it.isRadial?!0:null,this.closestPointRangePx>=$.enabledThreshold*$.radius);let ht,pt,E,C,K,X;if($.enabled!==!1||this._hasPointMarkers)for(ht=0;ht<o.length;ht++){pt=o[ht],C=(E=pt.graphic)?"animate":"attr";var Z=pt.marker||{};if(K=!!pt.marker,(rt&&typeof Z.enabled>"u"||Z.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=B(Z.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,K?Z:$).add(Q),this.enabledDataSorting&&g.hasRendered&&(E.attr({x:pt.startXPos}),C="animate")),E&&C==="animate"&&E[ct?"show":"hide"](ct).animate(X),E&&(Z=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?H&&E.css({fill:Z.fill}):E[C](Z)),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,Q={};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&&(Q.x=o[0]-it,Q.y=o[1]-it,m.crisp&&(Q.x=Math.floor(Q.x))),it&&(Q.width=Q.height=2*it),Q}pointAttribs(o,g){var m=this.options.marker,H=o&&o.options;const G=H&&H.marker||{};var $=H&&H.color,Q=o&&o.color;const it=o&&o.zone&&o.zone.color;let rt=this.color;return o=B(G.lineWidth,m.lineWidth),H=1,rt=$||it||Q||rt,$=G.fillColor||m.fillColor||rt,Q=G.lineColor||m.lineColor||rt,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||$,Q=g.lineColor||m.lineColor||Q,H=B(g.opacity,m.opacity,H),{stroke:Q,"stroke-width":o,fill:$,opacity:H}}destroy(o){const g=this,m=g.chart,H=/AppleWebKit\/533/.test(y.navigator.userAgent),G=g.data||[];let $,Q,it,rt;for(i(g,"destroy",{keepEventsForUpdate:o}),this.removeEvents(o),(g.axisTypes||[]).forEach(function(ht){(rt=g[ht])&&rt.series&&(h(rt.series,g),rt.isDirty=rt.forceRedraw=!0)}),g.legendItem&&g.chart.legend.destroyItem(g),Q=G.length;Q--;)(it=G[Q])&&it.destroy&&it.destroy();g.clips&&g.clips.forEach(ht=>ht.destroy()),R.clearTimeout(g.animationTimeout),nt(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"),nt(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,Q=this.area,it=Math.max(g.plotWidth,g.plotHeight),rt=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let pt,E,C,K,X,Z,dt,ct,xt,yt,gt,mt=!1;H.length&&($||Q)&&rt&&typeof rt.min<"u"?(X=rt.reversed,Z=rt.horiz,$&&!this.showLine&&$.hide(),Q&&Q.hide(),K=rt.getExtremes(),H.forEach(function(Ct,kt){pt=X?Z?g.plotWidth:0:Z?0:rt.toPixels(K.min)||0,pt=b(B(E,pt),0,it),E=b(Math.round(rt.toPixels(B(Ct.value,K.max),!0)||0),0,it),mt&&(pt=E=rt.toPixels(K.max)),dt=Math.abs(pt-E),ct=Math.min(pt,E),xt=Math.max(pt,E),rt.isXAxis?(C={x:ht?xt:ct,y:0,width:dt,height:it},Z||(C.x=g.plotHeight-C.x)):(C={x:0,y:ht?xt:ct,width:it,height:dt},Z&&(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],$&>&>.clip(G[kt]),Q&&yt&&yt.clip(G[kt]),mt=Ct.value>K.max,o.resetZones&&E===0&&(E=void 0)}),this.clips=G):o.visible&&($&&$.show(),Q&&Q.show())}plotGroup(o,g,m,H,G){let $=this[o];const Q=!$;return m={visibility:m,zIndex:H||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),Q&&(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)[Q?"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=v(m.animation),G=o.visible?"inherit":"hidden",$=m.zIndex,Q=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(),Q||(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,$,Q){var it=G&&G.length;let rt;if(it)return rt=m.kdAxisArray[$%Q],G.sort(function(ht,pt){return ht[rt]-pt[rt]}),it=Math.floor(it/2),{point:G[it],left:g(G.slice(0,it),$+1,Q),right:g(G.slice(it+1),$+1,Q)}}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(rt,ht,pt,E){const C=ht.point;var K=G.kdAxisArray[pt%E];let X=C;var Z=a(rt[$])&&a(C[$])?Math.pow(rt[$]-C[$],2):null,dt=a(rt[Q])&&a(C[Q])?Math.pow(rt[Q]-C[Q],2):null;return dt=(Z||0)+(dt||0),C.dist=a(dt)?Math.sqrt(dt):Number.MAX_VALUE,C.distX=a(Z)?Math.sqrt(Z):Number.MAX_VALUE,K=rt[K]-C[K],dt=0>K?"left":"right",Z=0>K?"right":"left",ht[dt]&&(dt=H(rt,ht[dt],pt+1,E),X=dt[it]<X[it]?dt:C),ht[Z]&&Math.sqrt(K*K)<X[it]&&(rt=H(rt,ht[Z],pt+1,E),X=rt[it]<X[it]?rt:X),X}const G=this,$=this.kdAxisArray[0],Q=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,Q=G.renderer,it=G.options.tooltip.snap,rt=o.tracker,ht=function(E){g.enableMouseTracking&&G.hoverSeries!==o&&o.onMouseOver()},pt="rgba(192,192,192,"+(x?1e-4:.002)+")";rt?rt.attr({d:H}):o.graph&&(o.tracker=Q.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,Q=this.data,it=this.chart;var rt=this.xAxis;rt=rt&&rt.hasNames&&rt.names;const ht=$.data,pt=this.xData;let E,C;g=B(g,!0);const K={series:this};this.pointClass.prototype.applyOptions.apply(K,[o]);const X=K.x;if(C=pt.length,this.requireSorting&&X<pt[C-1])for(E=!0;C&&pt[C-1]>X;)C--;this.updateParallelArrays(K,"splice",[C,0,0]),this.updateParallelArrays(K,C),rt&&K.name&&(rt[X]=K.name),ht.splice(C,0,o),(E||this.processedData)&&(this.data.splice(C,0,null),this.processData()),$.legendType==="point"&&this.generatePoints(),m&&(Q[0]&&Q[0].remove?Q[0].remove(!1):(Q.shift(),this.updateParallelArrays(K,"shift"),ht.shift())),G!==!1&&i(this,"addPoint",{point:K}),this.isDirtyData=this.isDirty=!0,g&&it.redraw(H)}removePoint(o,g,m){const H=this,G=H.data,$=G[o],Q=H.points,it=H.chart,rt=function(){Q&&Q.length===G.length&&Q.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()};w(m,it),g=B(g,!0),$?$.firePointEvent("remove",null,rt):rt()}remove(o,g,m,H){function G(){$.destroy(H),Q.isDirtyLegend=Q.isDirtyBox=!0,Q.linkSeries(H),B(o,!0)&&Q.redraw(g)}const $=this,Q=$.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 Q=H.options.plotOptions;const it=f[$].prototype;var rt=m.finishedAnimating&&{animation:!1};const ht={};let pt,E=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],C=o.type||G.type||H.options.chart.type;const K=!(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||$,K&&(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,rt,{index:typeof G.index>"u"?m.index:G.index,pointStart:B(Q&&Q.series&&Q.series.pointStart,G.pointStart,m.xData[0])},!K&&{data:m.options.data},o),K&&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]}),Q=!1,f[C]){if(Q=C!==m.type,m.remove(!1,!1,!1,!0),Q)if(Object.setPrototypeOf)Object.setPrototypeOf(m,f[C].prototype);else{rt=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in it)m[pt]=void 0;e(m,f[C].prototype),rt?m.hcEvents=rt:delete m.hcEvents}}else c(17,!0,H,{missingModuleFor:C});if(E.forEach(function(X){m[X]=E[X]}),m.init(H,o),K&&this.points){if(o=m.options,o.visible===!1)ht.graphic=1,ht.dataLabel=1;else if(!m._hasPointLabels){const{marker:X,dataLabels:Z}=o;G=G.marker||{},!X||X.enabled!==!1&&G.symbol===X.symbol&&G.height===X.height&&G.width===X.width||(ht.graphic=1),Z&&Z.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(),Q&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),B(g,!0)&&H.redraw(K?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,Q=H.states,it=B(Q[o||"normal"]&&Q[o||"normal"].animation,m.chart.options.chart.animation);let rt=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(Q[o]&&Q[o].enabled===!1)return;if(o&&(rt=Q[o].lineWidth||rt+(Q[o].lineWidthPlus||0),pt=B(Q[o].opacity,pt)),G&&!G.dashstyle&&S(rt))for(H={"stroke-width":rt},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,Q=(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][Q]()}),(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,Q),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=J[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,o,g)}}return D.defaultOptions=U,D.types=_.seriesTypes,D.registerType=_.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}),_.series=D,D}),ot(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,O,W,tt,J,Y,U,_,N,R,v,w,L){const{animate:I,animObject:d,setAnimation:x}=j,{defaultOptions:y,defaultTime:f}=W,{numberFormat:T}=tt,{registerEventOptions:k}=J,{charts:b,doc:n,marginNames:a,svg:p,win:h}=Y,{seriesTypes:c}=N,{addEvent:e,attr:t,createElement:i,css:l,defined:u,diffObjects:P,discardElement:r,erase:S,error:F,extend:q,find:nt,fireEvent:B,getStyle:s,isArray:M,isNumber:z,isObject:D,isString:V,merge:o,objectEach:g,pick:m,pInt:H,relativeLength:G,removeEvent:$,splat:Q,syncTimeout:it,uniqueKey:rt}=w;class ht{static chart(E,C,K){return new ht(E,C,K)}constructor(E,C,K){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,K)}getArgs(E,C,K){V(E)||E.nodeName?(this.renderTo=E,this.init(C,K)):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 K=o(y,E),X=K.chart;this.userOptions=q({},E),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=C,this.isResizing=0,this.options=K,this.axes=[],this.series=[],this.time=E.time&&Object.keys(E.time).length?new v(E.time):Y.time,this.numberFormatter=X.numberFormatter||T,this.styledMode=X.styledMode,this.hasCartesianSeries=X.showAxes,this.index=b.length,b.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 K=c[C];return K||F(17,!0,this,{missingModuleFor:C}),C=new K,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 K=this[E],X=this.options[E]=Q(this.options[E]).slice();if(E=this.userOptions[E]=this.userOptions[E]?Q(this.userOptions[E]).slice():[],this.hasRendered&&(X.splice(C),E.splice(C)),K)for(let Z=C,dt=K.length;Z<dt;++Z)(C=K[Z])&&(C.index=Z,C instanceof _&&(C.name=C.getName()),C.options.isInternal||(X[Z]=C.options,E[Z]=C.userOptions))}isInsidePlot(E,C,K={}){const{inverted:X,plotBox:Z,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var yt=0;let gt=0;K.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:yt,scrollTop:gt}=this.scrollingContainer);const mt=K.series,Ct=K.visiblePlotOnly&&xt||Z;var kt=K.inverted?C:E;if(C=K.inverted?E:C,E={x:kt,y:C,isInsidePlot:!0,options:K},!K.ignoreX){const bt=mt&&(X&&!this.polar?mt.yAxis:mt.xAxis)||{pos:dt,len:1/0};kt=K.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!K.ignoreY&&E.isInsidePlot&&(yt=!X&&K.axis&&!K.axis.isXAxis&&K.axis||mt&&(X?mt.xAxis:mt.yAxis)||{pos:ct,len:1/0},K=K.paneCoordinates?yt.pos+C:ct+C,K>=Math.max(gt+ct,yt.pos)&&K<=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||[],K=this.series,X=this.pointer,Z=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),x(this.hasRendered?E:!1,this),xt&&this.temporaryDisplay(),this.layOutTitles(!1),E=K.length;E--;)if(bt=K[E],(bt.options.stacking||bt.options.centerInCategory)&&(mt=!0,bt.isDirty)){gt=!0;break}if(gt)for(E=K.length;E--;)bt=K[E],bt.options.stacking&&(bt.isDirty=!0);K.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&&Z&&Z.options.enabled&&(Z.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"),K.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(Z){return Z.id===E||Z.options&&Z.options.id===E}const K=this.series;let X=nt(this.axes,C)||nt(this.series,C);for(let Z=0;!X&&Z<K.length;Z++)X=nt(K[Z].points||[],C);return X}getAxes(){const E=this.options;B(this,"getAxes");for(const C of["xAxis","yAxis"]){const K=E[C]=Q(E[C]||{});for(const X of K)new O(this,X,C)}B(this,"afterGetAxes")}getSelectedPoints(){return this.series.reduce((E,C)=>(C.getPointsCollection().forEach(K=>{m(K.selectedStaging,K.selected)&&E.push(K)}),E),[])}getSelectedSeries(){return this.series.filter(function(E){return E.selected})}setTitle(E,C,K){this.applyDescription("title",E),this.applyDescription("subtitle",C),this.applyDescription("caption",void 0),this.layOutTitles(K)}applyDescription(E,C){const K=this,X=this.options[E]=o(this.options[E],C);let Z=this[E];Z&&C&&(this[E]=Z=Z.destroy()),X&&!Z&&(Z=this.renderer.text(X.text,0,0,X.useHTML).attr({align:X.align,class:"highcharts-"+E,zIndex:X.zIndex||4}).add(),Z.update=function(dt,ct){K.applyDescription(E,dt),K.layOutTitles(ct)},this.styledMode||Z.css(q(E==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},X.style)),this[E]=Z)}layOutTitles(E=!0){const C=[0,0,0],K=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=K.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 Z=!this.titleOffset||this.titleOffset.join(",")!==C.join(",");this.titleOffset=C,B(this,"afterLayOutTitles"),!this.isDirtyBox&&Z&&(this.isDirtyBox=this.isDirtyLegend=Z,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 K=this.getContainerBox();this.chartWidth=Math.max(0,C||K.width||600),this.chartHeight=Math.max(0,G(E,this.chartWidth)||(1<K.height?K.height:400)),this.containerBox=K}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 K=rt();let X,Z=this.renderTo;Z||(this.renderTo=Z=C.renderTo),V(Z)&&(this.renderTo=Z=n.getElementById(Z)),Z||F(13,!0,this);var dt=H(t(Z,"data-highcharts-chart"));z(dt)&&b[dt]&&b[dt].hasRendered&&b[dt].destroy(),t(Z,"data-highcharts-chart",this.index),Z.innerHTML=L.emptyHTML,C.skipClone||Z.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(l(Z,{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=K=i("div",{id:K},X,Z),this._cursor=K.style.cursor,this.renderer=new(C.renderer||!p?U.getRendererType(C.renderer):R)(K,dt,ct,void 0,C.forExport,E.exporting&&E.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),x(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:K,titleOffset:X}=this;this.resetMargins(),X[0]&&!u(K[0])&&(this.plotTop=Math.max(this.plotTop,X[0]+C[0])),X[2]&&!u(K[2])&&(this.marginBottom=Math.max(this.marginBottom,X[2]+C[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(K,C),B(this,"getMargins"),E||this.getAxisMargins()}getAxisMargins(){const E=this,C=E.axisOffset=[0,0,0,0],K=E.colorAxis,X=E.margin,Z=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};E.hasCartesianSeries?Z(E.axes):K&&K.length&&Z(K),a.forEach(function(dt,ct){u(X[ct])||(E[dt]+=C[ct])}),E.setChartSize()}getOptions(){return P(this.userOptions,y)}reflow(E){const C=this;var K=C.options.chart;K=u(K.width)&&u(K.height);const X=C.containerBox,Z=C.getContainerBox();delete C.pointer.chartPosition,!K&&!C.isPrinting&&X&&Z.width&&((Z.width!==X.width||Z.height!==X.height)&&(w.clearTimeout(C.reflowTimeout),C.reflowTimeout=it(function(){C.container&&C.setSize(void 0,void 0,!1)},E?100:0)),C.containerBox=Z)}setReflow(){const E=this;var C=K=>{var X;!((X=E.options)===null||X===void 0)&&X.chart.reflow&&E.hasLoaded&&E.reflow(K)};typeof ResizeObserver=="function"?new ResizeObserver(C).observe(E.renderTo):(C=e(h,"resize",C),e(this,"destroy",C))}setSize(E,C,K){const X=this,Z=X.renderer;X.isResizing+=1,x(K,X),K=Z.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||(K?I:l)(X.container,{width:X.chartWidth+"px",height:X.chartHeight+"px"},K),X.setChartSize(!0),Z.setSize(X.chartWidth,X.chartHeight,K),X.axes.forEach(function(dt){dt.isDirty=!0,dt.setScale()}),X.isDirtyLegend=!0,X.isDirtyBox=!0,X.layOutTitles(),X.getMargins(),X.redraw(K),X.oldChartHeight=null,B(X,"resize"),it(function(){X&&B(X,"endResize",null,function(){--X.isResizing})},d(K).duration)}setChartSize(E){var C=this.inverted;const K=this.renderer;var X=this.chartWidth,Z=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(Z-gt-this.marginBottom)),this.plotSizeX=C?Ct:mt,this.plotSizeY=C?mt:Ct,this.plotBorderWidth=dt.plotBorderWidth||0,this.spacingBox=K.spacingBox={x:ct[3],y:ct[0],width:X-ct[3]-ct[1],height:Z-ct[0]-ct[2]},this.plotBox=K.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),Z=Math.ceil(Math.max(C,xt[0])/2),this.clipBox={x:X,y:Z,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-Z))},E||(this.axes.forEach(function(kt){kt.setAxisSize(),kt.setAxisTranslation()}),K.alignElements()),B(this,"afterSetChartSize",{skipAxes:E})}resetMargins(){B(this,"resetMargins");const E=this,C=E.options.chart;["margin","spacing"].forEach(function(K){const X=C[K],Z=D(X)?X:[X,X,X,X];["Top","Right","Bottom","Left"].forEach(function(dt,ct){E[K][ct]=m(C[K+dt],Z[ct])})}),a.forEach(function(K,X){E[K]=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,K=this.chartWidth,X=this.chartHeight,Z=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,Ht=this.plotBorder,Lt,Gt,Rt="animate";At||(this.chartBackground=At=C.rect().addClass("highcharts-background").add(),Rt="attr"),Z?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[Rt]({x:Gt/2,y:Gt/2,width:K-Gt-Lt%2,height:X-Gt-Lt%2,r:E.borderRadius}),Rt="animate",Bt||(Rt="attr",this.plotBackground=Bt=C.rect().addClass("highcharts-plot-background").add()),Bt[Rt](bt),Z||(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),Rt="animate",Ht||(Rt="attr",this.plotBorder=Ht=C.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),Z||Ht.attr({stroke:E.plotBorderColor,"stroke-width":E.plotBorderWidth||0,fill:"none"}),Ht[Rt](Ht.crisp({x:gt,y:mt,width:Ct,height:kt},-Ht.strokeWidth())),this.isDirtyBox=!1,B(this,"afterDrawChartBox")}propFromSeries(){const E=this,C=E.options.chart,K=E.options.series;let X,Z,dt;["inverted","angular","polar"].forEach(function(ct){for(Z=c[C.type],dt=C[ct]||Z&&Z.prototype[ct],X=K&&K.length;!dt&&X--;)(Z=c[K[X].type])&&Z.prototype[ct]&&(dt=!0);E[ct]=dt})}linkSeries(E){const C=this,K=C.series;K.forEach(function(X){X.linkedSeries.length=0}),K.forEach(function(X){let Z=X.options.linkedTo;V(Z)&&(Z=Z===":previous"?C.series[X.index-1]:C.get(Z))&&Z.linkedParent!==X&&(Z.linkedSeries.push(X),X.linkedParent=Z,Z.enabledDataSorting&&X.setDataSortingOptions(),X.visible=m(X.options.visible,Z.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,K=this.renderer,X=function(gt){gt.forEach(function(mt){mt.visible&&mt.render()})};let Z=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&>.visible&>.options.labels.enabled&>.series.length)return Z=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-Z,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)&>.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?X(E):C&&C.length&&X(C),this.seriesGroup||(this.seriesGroup=K.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,K=o(!0,this.options.credits,E);K.enabled&&!this.credits&&(this.credits=this.renderer.text(K.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){K.href&&(h.location.href=K.href)}).attr({align:K.position.align,zIndex:8}),C.styledMode||this.credits.css(K.style),this.credits.add().align(K.position),this.credits.update=function(X){C.credits=C.credits.destroy(),C.addCredits(X)})}destroy(){const E=this,C=E.axes,K=E.series,X=E.container,Z=X&&X.parentNode;let dt;for(B(E,"destroy"),E.renderer.forExport?S(b,E):b[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=K.length;dt--;)K[dt]=K[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=L.emptyHTML,$(X),Z&&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 K=M(C.series)?C.series:[];C.series=[],K.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,"<")}),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,K){const X=this;let Z;return E&&(C=m(C,!0),B(X,"addSeries",{options:E},function(){Z=X.initSeries(E),X.isDirtyLegend=!0,X.linkSeries(),Z.enabledDataSorting&&Z.setData(E.data,!1),B(X,"afterAddSeries",{series:Z}),C&&X.redraw(K)})),Z}addAxis(E,C,K,X){return this.createAxis(C?"xAxis":"yAxis",{axis:E,redraw:K,animation:X})}addColorAxis(E,C,K){return this.createAxis("colorAxis",{axis:E,redraw:C,animation:K})}createAxis(E,C){return E=new O(this,C.axis,E),m(C.redraw,!0)&&this.redraw(C.animation),E}showLoading(E){const C=this,K=C.options,X=K.loading,Z=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",Z)),dt.className="highcharts-loading",L.setElementHTML(ct,m(E,K.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,Z()}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,K,X){const Z=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=E.isResponsiveOptions,xt=[];let yt,gt;B(Z,"update",{options:E}),ct||Z.setResponsive(!1,!0),E=P(E,Z.options),Z.userOptions=o(Z.userOptions,E);var mt=E.chart;if(mt){if(o(!0,Z.options.chart,mt),this.setZoomOptions(),"className"in mt&&Z.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){Z.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&k(this,mt),g(mt,function(kt,bt){Z.propsRequireUpdateSeries.indexOf("chart."+bt)!==-1&&(yt=!0),Z.propsRequireDirtyBox.indexOf(bt)!==-1&&(Z.isDirtyBox=!0),Z.propsRequireReflow.indexOf(bt)!==-1&&(ct?Z.isDirtyBox=!0:gt=!0)}),!Z.styledMode&&mt.style&&Z.renderer.setStyle(Z.options.chart.style||{})}!Z.styledMode&&E.colors&&(this.options.colors=E.colors),E.time&&(this.time===f&&(this.time=new v(E.time)),o(!0,Z.options.time,E.time)),g(E,function(kt,bt){Z[bt]&&typeof Z[bt].update=="function"?Z[bt].update(kt,!1):typeof Z[dt[bt]]=="function"?Z[dt[bt]](kt):bt!=="colors"&&Z.collectionsWithUpdate.indexOf(bt)===-1&&o(!0,Z.options[bt],E[bt]),bt!=="chart"&&Z.propsRequireUpdateSeries.indexOf(bt)!==-1&&(yt=!0)}),this.collectionsWithUpdate.forEach(function(kt){E[kt]&&(Q(E[kt]).forEach(function(bt,Mt){const _t=u(bt.id);let At;_t&&(At=Z.get(bt.id)),!At&&Z[kt]&&(At=Z[kt][m(bt.index,Mt)])&&(_t&&u(At.options.id)||At.options.isInternal)&&(At=void 0),At&&At.coll===kt&&(At.update(bt,!1),K&&(At.touched=!0)),!At&&K&&Z.collectionsWithInit[kt]&&(Z.collectionsWithInit[kt][0].apply(Z,[bt].concat(Z.collectionsWithInit[kt][1]||[]).concat([!1])).touched=!0)}),K&&Z[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&&Z.axes.forEach(function(kt){kt.update({},!1)}),yt&&Z.getSeriesOrderByLinks().forEach(function(kt){kt.chart&&kt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(V(mt.height)?G(mt.height,Ct||Z.chartWidth):mt.height),gt||z(Ct)&&Ct!==Z.chartWidth||z(mt)&&mt!==Z.chartHeight?Z.setSize(Ct,mt,X):m(C,!0)&&Z.redraw(X),B(Z,"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,K=y.lang,X=C.zooming.resetButton,Z=X.theme,dt=X.relativeTo==="chart"||X.relativeTo==="spacingBox"?null:"scrollablePlotBox";B(this,"beforeShowResetZoom",null,function(){C.resetZoomButton=C.renderer.button(K.resetZoom,null,null,E,Z).attr({align:X.position.align,title:K.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,K=C.pointer;let X=!1,Z;!E||E.resetSelection?(C.axes.forEach(function(ct){Z=ct.zoom()}),K.initiated=!1):E.xAxis.concat(E.yAxis).forEach(function(ct){const xt=ct.axis;(K[xt.isXAxis?"zoomX":"zoomY"]&&u(K.mouseDownX)&&u(K.mouseDownY)&&C.isInsidePlot(K.mouseDownX-C.plotLeft,K.mouseDownY-C.plotTop,{axis:xt})||!u(C.inverted?K.mouseDownX:K.mouseDownY))&&(Z=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()),Z&&C.redraw(m(C.options.chart.animation,E&&E.animation,100>C.pointCount))}pan(E,C){const K=this,X=K.hoverPoints;C=typeof C=="object"?C:{enabled:C,type:"x"};const Z=K.options.chart;Z&&Z.panning&&(Z.panning=C);const dt=C.type;let ct;B(this,"pan",{originalEvent:E},function(){X&&X.forEach(function(gt){gt.setState()});let xt=K.xAxis;dt==="xy"?xt=xt.concat(K.yAxis):dt==="y"&&(xt=K.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=K[mt],bt=gt.minPointOffset||0,Mt=gt.reversed&&!K.inverted||!gt.reversed&&K.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&>.pointRangePadding||0),Ht=Bt<At;Mt=gt.hasVerticalPanning(),kt=Ht?Bt:At,At=Ht?At:Bt;var Lt=gt.panningState;!Mt||gt.isXAxis||Lt&&!Lt.isDirty||gt.series.forEach(function(Gt){var Rt=Gt.getProcessedData(!0);Rt=Gt.getExtremes(Rt.yData,!0),Lt||(Lt={startMin:Number.MAX_VALUE,startMax:-Number.MAX_VALUE}),z(Rt.dataMin)&&z(Rt.dataMax)&&(Lt.startMin=Math.min(m(Gt.options.threshold,1/0),Rt.dataMin,Lt.startMin),Lt.startMax=Math.max(m(Gt.options.threshold,-1/0),Rt.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"}),!K.resetZoomButton&&kt!==Mt&&At!==Bt&&dt.match("y")&&(K.showResetZoom(),gt.displayBtn=!1),ct=!0),yt[mt]=Ct)}}),g(yt,(gt,mt)=>{K[mt]=gt}),ct&&K.redraw(!1),l(K.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}),ot(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,O,W,tt,J,Y){const{stop:U}=j,{addEvent:_,createElement:N,defined:R,merge:v,pick:w}=Y;_(W,"afterSetChartSize",function(L){var I=this.options.chart.scrollablePlotArea,d=I&&I.minWidth;I=I&&I.minHeight;let x;this.renderer.forExport||(d?(this.scrollablePixelsX=d=Math.max(0,d-this.chartWidth))&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=v(this.plotBox),this.plotBox.width=this.plotWidth+=d,this.inverted?this.clipBox.height+=d:this.clipBox.width+=d,x={1:{name:"right",value:d}}):I&&(this.scrollablePixelsY=d=Math.max(0,I-this.chartHeight),R(d)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=v(this.plotBox),this.plotBox.height=this.plotHeight+=d,this.inverted?this.clipBox.width+=d:this.clipBox.height+=d,x={2:{name:"bottom",value:d}})),x&&!L.skipAxes&&this.axes.forEach(function(y){x[y.side]?y.getPlotLinePath=function(){let f=x[y.side].name,T=this[f],k;return this[f]=T-x[y.side].value,k=O.prototype.getPlotLinePath.apply(this,arguments),this[f]=T,k}:(y.setAxisSize(),y.setAxisTranslation())}))}),_(W,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),W.prototype.setUpScrolling=function(){const L={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(L.overflowX="auto"),this.scrollablePixelsY&&(L.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},L,this.scrollingParent);let I;_(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 L=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(" "),x;this.scrollablePixelsX&&!this.inverted?x=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?x=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(x=".highcharts-yaxis"),x&&d.push(`${x}:not(.highcharts-radial-axis)`,`${x}-labels:not(.highcharts-radial-axis-labels)`),d.forEach(function(y){[].forEach.call(L.querySelectorAll(y),function(f){(f.namespaceURI===I.SVG_NS?I.box:I.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})})},W.prototype.applyFixed=function(){var L=!this.fixedDiv,I=this.options.chart,d=I.scrollablePlotArea,x=J.getRendererType();L?(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 x(this.fixedDiv,this.chartWidth,this.chartHeight,this.options.chart.style),this.scrollableMask=I.path().attr({fill:this.options.chart.backgroundColor||"#fff","fill-opacity":w(d.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),_(this,"afterShowResetZoom",this.moveFixedElements),_(this,"afterApplyDrilldown",this.moveFixedElements),_(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||L)&&(this.scrollableDirty=!1,this.moveFixedElements()),I=this.chartWidth+(this.scrollablePixelsX||0),x=this.chartHeight+(this.scrollablePixelsY||0),U(this.container),this.container.style.width=I+"px",this.container.style.height=x+"px",this.renderer.boxWrapper.attr({width:I,height:x,viewBox:[0,0,I,x].join(" ")}),this.chartBackground.attr({width:I,height:x}),this.scrollingContainer.style.height=this.chartHeight+"px",L&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*d.scrollPositionY)),x=this.axisOffset,L=this.plotTop-x[0]-1,d=this.plotLeft-x[3]-1,I=this.plotTop+this.plotHeight+x[2]+1,x=this.plotLeft+this.plotWidth+x[1]+1;let y=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),f=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);L=this.scrollablePixelsX?[["M",0,L],["L",this.plotLeft-1,L],["L",this.plotLeft-1,I],["L",0,I],["Z"],["M",y,L],["L",this.chartWidth,L],["L",this.chartWidth,I],["L",y,I],["Z"]]:this.scrollablePixelsY?[["M",d,0],["L",d,this.plotTop-1],["L",x,this.plotTop-1],["L",x,0],["Z"],["M",d,f],["L",d,this.chartHeight],["L",x,this.chartHeight],["L",x,f],["Z"]]:[["M",0,0]],this.redrawTrigger!=="adjustHeight"&&this.scrollableMask.attr({d:L})},_(O,"afterInit",function(){this.chart.scrollableDirty=!0}),_(tt,"show",function(){this.chart.scrollableDirty=!0})}),ot(A,"Core/Axis/Stacking/StackItem.js",[A["Core/Templating.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{format:tt}=j,{series:J}=O,{destroyObjectProperties:Y,fireEvent:U,isNumber:_,pick:N}=W;class R{constructor(w,L,I,d,x){const y=w.chart.inverted,f=w.reversed;this.axis=w,w=this.isNegative=!!I!=!!f,this.options=L=L||{},this.x=d,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=x,this.rightCliff=this.leftCliff=0,this.alignOptions={align:L.align||(y?w?"left":"right":"center"),verticalAlign:L.verticalAlign||(y?"middle":w?"bottom":"top"),y:L.y,x:L.x},this.textAlign=L.textAlign||(y?w?"right":"left":"center")}destroy(){Y(this,this.axis)}render(w){const L=this.axis.chart,I=this.options;var d=I.format;d=d?tt(d,this,L):I.formatter.call(this),this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=L.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"},L.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(w)),this.label.labelrank=L.plotSizeY,U(this,"afterRender")}setOffset(w,L,I,d,x,y){const{alignOptions:f,axis:T,label:k,options:b,textAlign:n}=this,a=T.chart;I=this.getStackBox({xOffset:w,width:L,boxBottom:I,boxTop:d,defaultX:x,xAxis:y});var{verticalAlign:p}=f;if(k&&I){d=k.getBBox(),x=k.padding,y=N(b.overflow,"justify")==="justify",f.x=b.x||0,f.y=b.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))||(y=!1),y&&J.prototype.justifyDataLabel.call(T,k,f,k.alignAttr,d,I),k.attr({x:k.alignAttr.x,y:k.alignAttr.y,rotation:b.rotation,rotationOriginX:d.width/2,rotationOriginY:d.height/2}),N(!y&&b.crop,!0)&&(p=_(k.x)&&_(k.y)&&a.isInsidePlot(k.x-x+k.width,k.y)&&a.isInsidePlot(k.x+x,k.y)),k[p?"show":"hide"]()}U(this,"afterSetOffset",{xOffset:w,width:L})}adjustStackPosition({labelBox:w,verticalAlign:L,textAlign:I}){const d={bottom:0,middle:1,top:2,right:1,center:0,left:-1};return{x:w.width/2+w.width/2*d[I],y:w.height/2*d[L]}}getStackBox(w){var L=this.axis;const I=L.chart,{boxTop:d,defaultX:x,xOffset:y,width:f,boxBottom:T}=w;var k=L.stacking.usePercentage?100:N(d,this.total,0);k=L.toPixels(k),w=w.xAxis||I.xAxis[0];const b=N(x,w.translate(this.x))+y;L=L.toPixels(T||_(L.min)&&L.logarithmic&&L.logarithmic.lin2log(L.min)||0),L=Math.abs(k-L);const n=this.isNegative;return I.inverted?{x:(n?k:k-L)-I.plotLeft,y:w.height-b-f,width:L,height:f}:{x:b+w.transB-I.plotLeft,y:(n?k-L:k)-I.plotTop,width:f,height:L}}}return R}),ot(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,O,W,tt,J){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 _(){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 P;u&&[t,"-"+t].forEach(r=>{let S=l.length,F;for(;S--;){var q=l[S];P=e.getStackIndicator(P,q,e.index,r),(F=(q=i[r]&&i[r][q])&&q.points[P.key])&&u.call(e,F,q,S)}})}function v(e,t,i){t=t.total?100/t.total:0,e[0]=y(e[0]*t),e[1]=y(e[1]*t),this.stackedYData[i]=e[1]}function w(){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 L(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,P=[],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 nt="-"+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))?nt: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 tt(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:nt,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=y(H.total+(Math.abs(o)||0))):i==="group"?(b(o)&&(o=o[0]),o!==null&&(H.total=(H.total||0)+1)):H.total=y(H.total+(o||0)),H.cumulative=i==="group"?(H.total||1)-1:y(p(H.cumulative,q)+(o||0)),o!==null&&(H.points[m].push(H.cumulative),P[D]=H.cumulative,H.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=P),t.stacking.oldStacks={}}}const{getDeferredAnimation:I}=j,{series:{prototype:d}}=W,{addEvent:x,correctFloat:y,defined:f,destroyObjectProperties:T,fireEvent:k,isArray:b,isNumber:n,objectEach:a,pick:p}=J;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 P,r;for(this.usePercentage=!1,r=u;r--;)P=i[l?r:u-r-1],P.setStackedPoints(),P.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 P=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();P.translate(i.plotLeft,i.plotTop),a(u,function(r){a(r,function(S){S.render(P)})}),P.animate({opacity:1},t)}}var c;return function(e){const t=[];e.compose=function(i,l,u){J.pushUnique(t,i)&&(x(i,"init",_),x(i,"destroy",U)),J.pushUnique(t,l)&&(l.prototype.getStacks=Y),J.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=N,i.modifyStacks=R,i.percentStacker=v,i.setGroupedPoints=w,i.setStackedPoints=L)}}(c||(c={})),c}),ot(A,"Series/Line/LineSeries.js",[A["Core/Series/Series.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{defined:tt,merge:J}=W;class Y extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const _=this,N=this.options,R=(this.gappedPath||this.getGraphPath).call(this),v=this.chart.styledMode;let w=[["graph","highcharts-graph"]];v||w[0].push(N.lineColor||this.color||"#cccccc",N.dashStyle),w=_.getZonesGraphs(w),w.forEach(function(L,I){var d=L[0];let x=_[d];const y=x?"animate":"attr";x?(x.endX=_.preventGraphAnimation?null:R.xMap,x.animate({d:R})):R.length&&(_[d]=x=_.chart.renderer.path(R).addClass(L[1]).attr({zIndex:1}).add(_.group)),x&&!v&&(d={stroke:L[2],"stroke-width":N.lineWidth||0,fill:_.fillGraph&&_.color||"none"},L[3]?d.dashstyle=L[3]:N.linecap!=="square"&&(d["stroke-linecap"]=d["stroke-linejoin"]="round"),x[y](d).shadow(2>I&&N.shadow)),x&&(x.startX=R.xMap,x.isArea=R.isArea)})}getGraphPath(_,N,R){const v=this,w=v.options,L=[],I=[];let d,x=w.step;_=_||v.points;const y=_.reversed;return y&&_.reverse(),(x={right:1,center:2}[x]||x&&3)&&y&&(x=4-x),_=this.getValidPoints(_,!1,!(w.connectNulls&&!N&&!R)),_.forEach(function(f,T){const k=f.plotX,b=f.plotY,n=_[T-1],a=f.isNull||typeof b!="number";(f.leftCliff||n&&n.rightCliff)&&!R&&(d=!0),a&&!tt(N)&&0<T?d=!w.connectNulls:a&&!N?d=!0:(T===0||d?T=[["M",f.plotX,f.plotY]]:v.getPointSpline?T=[v.getPointSpline(_,f,T)]:x?(T=x===1?[["L",n.plotX,b]]:x===2?[["L",(n.plotX+k)/2,n.plotY],["L",(n.plotX+k)/2,b]]:[["L",k,n.plotY]],T.push(["L",k,b])):T=[["L",k,b]],I.push(f.x),x&&(I.push(f.x),x===2&&I.push(f.x)),L.push.apply(L,T),d=!1)}),L.xMap=I,v.graphPath=L}getZonesGraphs(_){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),_.push(R)},this),_}}return Y.defaultOptions=J(j.defaultOptions,{legendSymbol:"lineMarker"}),O.registerSeriesType("line",Y),Y}),ot(A,"Series/Area/AreaSeries.js",[A["Core/Color/Color.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{seriesTypes:{line:tt}}=O,{extend:J,merge:Y,objectEach:U,pick:_}=W;class N extends tt{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const v=this,w=this.areaPath,L=this.options,I=[["area","highcharts-area",this.color,L.fillColor]];this.zones.forEach(function(d,x){I.push(["zone-area-"+x,"highcharts-area highcharts-zone-area-"+x+" "+d.className,d.color||v.color,d.fillColor||L.fillColor])}),I.forEach(function(d){const x=d[0],y={};let f=v[x];const T=f?"animate":"attr";f?(f.endX=v.preventGraphAnimation?null:w.xMap,f.animate({d:w})):(y.zIndex=0,f=v[x]=v.chart.renderer.path(w).addClass(d[1]).add(v.group),f.isArea=!0),v.chart.styledMode||(d[3]?y.fill=d[3]:(y.fill=d[2],y["fill-opacity"]=_(L.fillOpacity,.75))),f[T](y),f.startX=w.xMap,f.shiftUnit=L.step?2:1})}getGraphPath(v){var w=tt.prototype.getGraphPath,L=this.options;const I=L.stacking,d=this.yAxis,x=[],y=[],f=this.index,T=d.stacking.stacks[this.stackKey],k=L.threshold,b=Math.round(d.getThreshold(L.threshold));L=_(L.connectNulls,I==="percent");var n=function(c,e,t){var i=v[c];c=I&&T[i.x].points[f];const l=i[t+"Null"]||0;t=i[t+"Cliff"]||0;let u,P;i=!0,t||l?(u=(l?c[0]:c[1])+t,P=c[0]+t,i=!!l):!I&&v[e]&&v[e].isNull&&(u=P=k),typeof u<"u"&&(y.push({plotX:a,plotY:u===null?b:d.getThreshold(u),isNull:i,isCliff:!0}),x.push({plotX:a,plotY:P===null?b:d.getThreshold(P),doCurve:!1}))};let a;v=v||this.points,I&&(v=this.getStackPoints(v));for(let c=0,e=v.length;c<e;++c){I||(v[c].leftCliff=v[c].rightCliff=v[c].leftNull=v[c].rightNull=void 0);var p=v[c].isNull;a=_(v[c].rectPlotX,v[c].plotX);var h=I?_(v[c].yBottom,b):b;(!p||L)&&(L||n(c,c-1,"left"),p&&!I&&L||(y.push(v[c]),x.push({x:c,plotX:a,plotY:h})),L||n(c,c+1,"right"))}return n=w.call(this,y,!0,!0),x.reversed=!0,p=w.call(this,x,!0,!0),(h=p[0])&&h[0]==="M"&&(p[0]=["L",h[1],h[2]]),p=n.concat(p),p.length&&p.push(["Z"]),w=w.call(this,y,!1,L),p.xMap=n.xMap,this.areaPath=p,w}getStackPoints(v){const w=this,L=[],I=[],d=this.xAxis,x=this.yAxis,y=x.stacking.stacks[this.stackKey],f={},T=x.series,k=T.length,b=x.options.reversedStacks?1:-1,n=T.indexOf(w);if(v=v||this.points,this.options.stacking){for(let p=0;p<v.length;p++)v[p].leftNull=v[p].rightNull=void 0,f[v[p].x]=v[p];U(y,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)L.push(f[p]),[-1,1].forEach(function(i){const l=i===1?"rightNull":"leftNull",u=y[I[h+i]];let P=0;if(u){let r=n;for(;0<=r&&r<k;){const S=T[r].index;e=u.points[S],e||(S===w.index?f[p][l]=!0:a[r]&&(t=y[p].points[S])&&(P-=t[1]-t[0])),r+=b}}f[p][i===1?"rightCliff":"leftCliff"]=P});else{let i=n;for(;0<=i&&i<k;){if(e=y[p].points[T[i].index]){c=e[1];break}i+=b}c=_(c,0),c=x.translate(c,0,1,0,1),L.push({isNull:!0,plotX:d.translate(p,0,0,0,1),x:p,plotY:c,yBottom:c})}})}return L}}return N.defaultOptions=Y(tt.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),J(N.prototype,{singleStacks:!1}),O.registerSeriesType("area",N),N}),ot(A,"Series/Spline/SplineSeries.js",[A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O){const{line:W}=j.seriesTypes,{merge:tt,pick:J}=O;class Y extends W{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(_,N,R){const v=N.plotX||0,w=N.plotY||0,L=_[R-1];R=_[R+1];let I,d,x;if(L&&!L.isNull&&L.doCurve!==!1&&!N.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!N.isCliff){_=L.plotY||0;var y=R.plotX||0;R=R.plotY||0;let f=0;I=(1.5*v+(L.plotX||0))/2.5,d=(1.5*w+_)/2.5,y=(1.5*v+y)/2.5,x=(1.5*w+R)/2.5,y!==I&&(f=(x-d)*(y-v)/(y-I)+w-x),d+=f,x+=f,d>_&&d>w?(d=Math.max(_,w),x=2*w-d):d<_&&d<w&&(d=Math.min(_,w),x=2*w-d),x>R&&x>w?(x=Math.max(R,w),d=2*w-x):x<R&&x<w&&(x=Math.min(R,w),d=2*w-x),N.rightContX=y,N.rightContY=x}return N=["C",J(L.rightContX,L.plotX,0),J(L.rightContY,L.plotY,0),J(I,v,0),J(d,w,0),v,w],L.rightContX=L.rightContY=void 0,N}}return Y.defaultOptions=tt(W.defaultOptions),j.registerSeriesType("spline",Y),Y}),ot(A,"Series/AreaSpline/AreaSplineSeries.js",[A["Series/Spline/SplineSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{area:tt,area:{prototype:J}}=O.seriesTypes,{extend:Y,merge:U}=W;class _ extends j{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return _.defaultOptions=U(j.defaultOptions,tt.defaultOptions),Y(_.prototype,{getGraphPath:J.getGraphPath,getStackPoints:J.getStackPoints,drawGraph:J.drawGraph}),O.registerSeriesType("areaspline",_),_}),ot(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"}}),ot(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,O,W,tt,J,Y,U){const{animObject:_}=j,{parse:N}=O,{hasTouch:R,noop:v}=tt,{clamp:w,defined:L,extend:I,fireEvent:d,isArray:x,isNumber:y,merge:f,pick:T,objectEach:k}=U;class b extends J{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=w(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(_(p.options.animation),{step:function(P,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 nt;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++),nt=t[i]):q.grouping!==!1&&(nt=l++),S.columnIndex=nt)});const u=Math.min(Math.abs(h.transA)*(h.ordinal&&h.ordinal.slope||p.pointRange||h.closestPointRange||h.tickInterval||1),h.len),P=u*p.groupPadding,r=(u-2*P)/(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+(P+((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 P=u[h.x.toString()];P&&(u=P.points[this.index],e?(u&&(i=l),P.hasValidPoints&&(t?l++:l--)):x(u)&&(u=Object.keys(P.points).filter(r=>!r.match(",")&&P.points[r]&&1<P.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(),P=u.width,r=a.pointXOffset=u.offset,S=a.dataMin,F=a.dataMax;let q=a.barW=Math.max(P,1+2*c),nt=a.translatedThreshold=t.getThreshold(i);p.inverted&&(nt-=.5),h.pointPadding&&(q=Math.ceil(q)),J.prototype.translate.apply(a),a.points.forEach(function(B){const s=T(B.yBottom,nt);var M=999+Math.abs(s),z=B.plotX||0;M=w(B.plotY,-M,t.len+M);let D=Math.min(M,s),V=Math.max(M,s)-D,o=P,g=z+r,m=q;l&&Math.abs(V)<l&&(V=l,z=!t.reversed&&!B.negative||t.reversed&&B.negative,y(i)&&y(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-nt)>l?s-l:nt-(z?l:0)),L(B.options.pointWidth)&&(o=m=Math.ceil(B.options.pointWidth),g-=Math.round((o-P)/2)),h.centerInCategory&&(g=a.adjustForMissingColumns(g,o,B,u)),B.barX=g,B.pointWidth=o,B.tooltipPos=p.inverted?[w(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,w(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?nt: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 P=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,P=i.borderWidth||P)),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,P=a[t]||P,c=a.dashStyle||c,r=T(a.opacity,r)),e={fill:l,stroke:u,"stroke-width":P,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,P=!!u,r=u&&h.pointCount<t?"animate":"attr";y(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}),P=!0,r="animate"),u&&P&&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=x(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)}),J.prototype.remove.apply(a,arguments)}}return b.defaultOptions=f(J.defaultOptions,W),I(b.prototype,{cropShoulder:0,directTouch:!0,getSymbol:v,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("column",b),b}),ot(A,"Core/Series/DataLabel.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Templating.js"],A["Core/Utilities.js"]],function(j,O,W){const{getDeferredAnimation:tt}=j,{format:J}=O,{defined:Y,extend:U,fireEvent:_,isArray:N,isString:R,merge:v,objectEach:w,pick:L,splat:I}=W;var d;return function(x){function y(c,e,t,i,l){const u=this.chart;var P=this.isCartesian&&u.inverted;const r=this.enabledDataSorting;var S=c.plotX,F=c.plotY;const q=t.rotation;var nt=t.align;F=Y(S)&&Y(F)&&u.isInsidePlot(S,Math.round(F),{inverted:P,paneCoordinates:!0,series:this});let B=L(t.overflow,r?"none":"justify")==="justify";if(P=this.visible&&c.visible!==!1&&Y(S)&&(c.series.forceDL||r&&!B||F||L(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(S,P?i.x+1:i.y+i.height-1,{inverted:P,paneCoordinates:!0,series:this})),S=c.pos(),P&&S){q&&e.attr({align:nt}),nt=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:nt.width,height:nt.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=[nt.x-Number(e.attr("x")),nt.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,nt,i,l);else if(L(t.crop,!0)){let{x:z,y:D}=M;z+=s[0],D+=s[1],P=u.isInsidePlot(z,D,{paneCoordinates:!0,series:this})&&u.isInsidePlot(z+nt.width,D+nt.height,{paneCoordinates:!0,series:this})}t.shape&&!q&&e[l?"attr":"animate"]({anchorX:S[0],anchorY:S[1]})}l&&r&&(e.placed=!1),P||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 b(c=this.points){var e,t;const i=this,l=i.chart,u=i.options,P=l.renderer,{backgroundColor:r,plotBackgroundColor:S}=l.options.chart,F=l.options.plotOptions,q=P.getContrast(R(S)&&S||R(r)&&r||"#000000");let nt=u.dataLabels,B,s;var M=I(nt)[0];const z=M.animation;M=M.defer?tt(l,z,i):{defer:0,duration:0},nt=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),nt),_(this,"drawDataLabels"),(N(nt)||nt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(M),c.forEach(D=>{var V;const o=D.dataLabels||[];for(B=I(a(nt,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,Q=g.style||{};let it={},rt=o[m],ht=!rt;const pt=L(g.distance,D.labelDistance);if(G){var E=L(g[D.formatPrefix+"Format"],g.format),C=D.getLabelConfig();if(C=Y(E)?J(E,C,l):(g[D.formatPrefix+"Formatter"]||g.formatter).call(C,g),E=g.rotation,l.styledMode||(Q.color=L(g.color,Q.color,R(i.color)?i.color:void 0,"#000000"),Q.color==="contrast"?(D.contrastColor=P.getContrast(D.color||i.color),Q.color=!Y(pt)&&g.inside||0>(pt||0)||u.stacking?D.contrastColor:q):delete D.contrastColor,u.cursor&&(Q.cursor=u.cursor)),it={r:g.borderRadius||0,rotation:E,padding:g.padding,zIndex:1},!l.styledMode){const{backgroundColor:K,borderColor:X}=g;it.fill=K==="auto"?D.color:K,it.stroke=X==="auto"?D.color:X,it["stroke-width"]=g.borderWidth}w(it,(K,X)=>{typeof K>"u"&&delete it[X]})}!rt||G&&Y(C)&&!!rt.div==!!g.useHTML&&(rt.rotation&&g.rotation||rt.rotation===g.rotation)||(rt=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)&&(rt?it.text=C:(rt=E?P.text(C,0,0,g.useHTML).addClass("highcharts-data-label"):P.label(C,0,0,g.shape,void 0,void 0,g.useHTML,void 0,"data-label"))&&rt.addClass(" highcharts-data-label-color-"+D.colorIndex+" "+(g.className||"")+(g.useHTML?" highcharts-tracker":"")),rt&&(rt.options=g,rt.attr(it),l.styledMode||rt.css(Q).shadow(g.shadow),(G=g[D.formatPrefix+"TextPath"]||g.textPath)&&!g.useHTML&&(rt.setTextPath(((H=D.getDataLabelPath)===null||H===void 0?void 0:H.call(D,rt))||D.graphic,G),D.dataLabelPath&&!G.enabled&&(D.dataLabelPath=D.dataLabelPath.destroy())),rt.added||rt.add(s),i.alignDataLabel(D,rt,g,void 0,ht),rt.isActive=!0,o[m]&&o[m]!==rt&&o[m].destroy(),o[m]=rt))}),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})),_(this,"afterDrawDataLabels")}function n(c,e,t,i,l,u){const P=this.chart,r=e.align,S=e.verticalAlign,F=c.box?0:c.padding||0;let{x:q=0,y:nt=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>P.plotWidth&&(r==="left"&&0>=q?(e.align="right",e.inside=!0):q+=P.plotWidth-B,s=!0),B=t.y+F,0>B&&(S==="bottom"&&0<=nt?(e.verticalAlign="top",e.inside=!0):nt-=B,s=!0),B=(t.y||0)+i.height-F,B>P.plotHeight&&(S==="top"&&0>=nt?(e.verticalAlign="bottom",e.inside=!0):nt+=P.plotHeight-B,s=!0),s&&(e.x=q,e.y=nt,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 v(l,e)});else if(N(e)&&!N(c))t=e.map(function(l){return v(c,l)});else if(!N(c)&&!N(e))t=v(c,e);else if(N(c)&&N(e))for(i=Math.max(c.length,e.length);i--;)t[i]=v(c[i],e[i]);return t}function p(c,e,t,i,l){const u=this.chart,P=u.inverted,r=this.xAxis,S=r.reversed,F=P?e.height/2:e.width/2;c=(c=c.pointWidth)?c/2:0,e.startXPos=P?l.x:S?-F-c:r.width-F+c,e.startYPos=P?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=[];x.compose=function(c){W.pushUnique(h,c)&&(c=c.prototype,c.initDataLabelsGroup=T,c.initDataLabels=k,c.alignDataLabel=y,c.drawDataLabels=b,c.justifyDataLabel=n,c.setDataLabelStartPos=p)}}(d||(d={})),d}),ot(A,"Series/Column/ColumnDataLabel.js",[A["Core/Series/DataLabel.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{series:tt}=O,{merge:J,pick:Y}=W;var U;return function(_){function N(v,w,L,I,d){let x=this.chart.inverted;var y=v.series;let f=(y.xAxis?y.xAxis.len:this.chart.plotSizeX)||0;y=(y.yAxis?y.yAxis.len:this.chart.plotSizeY)||0;var T=v.dlBox||v.shapeArgs;let k=Y(v.below,v.plotY>Y(this.translatedThreshold,y)),b=Y(L.inside,!!this.options.stacking);T&&(I=J(T),0>I.y&&(I.height+=I.y,I.y=0),T=I.y+I.height-y,0<T&&T<I.height&&(I.height-=T),x&&(I={x:y-I.y-I.height,y:f-I.x-I.width,width:I.height,height:I.width}),b||(x?(I.x+=k?0:I.width,I.width=0):(I.y+=k?I.height:0,I.height=0))),L.align=Y(L.align,!x||b?"center":k?"right":"left"),L.verticalAlign=Y(L.verticalAlign,x||b?"middle":k?"top":"bottom"),tt.prototype.alignDataLabel.call(this,v,w,L,I,d),L.inside&&v.contrastColor&&w.css({color:v.contrastColor})}const R=[];_.compose=function(v){j.compose(tt),W.pushUnique(R,v)&&(v.prototype.alignDataLabel=N)}}(U||(U={})),U}),ot(A,"Series/Bar/BarSeries.js",[A["Series/Column/ColumnSeries.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{extend:tt,merge:J}=W;class Y extends j{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return Y.defaultOptions=J(j.defaultOptions,{}),tt(Y.prototype,{inverted:!0}),O.registerSeriesType("bar",Y),Y}),ot(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/>"}}}),ot(A,"Series/Scatter/ScatterSeries.js",[A["Series/Scatter/ScatterSeriesDefaults.js"],A["Core/Series/SeriesRegistry.js"],A["Core/Utilities.js"]],function(j,O,W){const{column:tt,line:J}=O.seriesTypes,{addEvent:Y,extend:U,merge:_}=W;class N extends J{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const v=this,w=this.options.jitter,L=this.points.length;w&&this.points.forEach(function(I,d){["x","y"].forEach(function(x,y){let f="plot"+x.toUpperCase(),T,k;if(w[x]&&!I.isNull){var b=v[x+"Axis"];k=w[x]*b.transA,b&&!b.isLog&&(T=Math.max(0,I[f]-k),b=Math.min(b.len,I[f]+k),y=1e4*Math.sin(d+y*L),y-=Math.floor(y),I[f]=T+(b-T)*y,x==="x"&&(I.clientX=I.plotX))}})})}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return N.defaultOptions=_(J.defaultOptions,j),U(N.prototype,{drawTracker:tt.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Y(N,"afterTranslate",function(){this.applyJitter()}),O.registerSeriesType("scatter",N),N}),ot(A,"Series/CenteredUtilities.js",[A["Core/Globals.js"],A["Core/Series/Series.js"],A["Core/Utilities.js"]],function(j,O,W){const{deg2rad:tt}=j,{fireEvent:J,isNumber:Y,pick:U,relativeLength:_}=W;var N;return function(R){R.getCenter=function(){var v=this.options,w=this.chart;const L=2*(v.slicedOffset||0),I=w.plotWidth-2*L,d=w.plotHeight-2*L;var x=v.center;const y=Math.min(I,d),f=v.thickness;var T=v.size;let k=v.innerSize||0;for(typeof T=="string"&&(T=parseFloat(T)),typeof k=="string"&&(k=parseFloat(k)),v=[U(x[0],"50%"),U(x[1],"50%"),U(T&&0>T?void 0:v.size,"100%"),U(k&&0>k?void 0:v.innerSize||0,"0%")],!w.angular||this instanceof O||(v[3]=0),x=0;4>x;++x)T=v[x],w=2>x||x===2&&/%$/.test(T),v[x]=_(T,[I,d,y,v[2]][x])+(w?L:0);return v[3]>v[2]&&(v[3]=v[2]),Y(f)&&2*f<v[2]&&0<f&&(v[3]=v[2]-2*f),J(this,"afterGetCenter",{positions:v}),v},R.getStartAndEndRadians=function(v,w){return v=Y(v)?v:0,w=Y(w)&&w>v&&360>w-v?w:v+360,{start:tt*(v+-90),end:tt*(w+-90)}}}(N||(N={})),N}),ot(A,"Series/Pie/PiePoint.js",[A["Core/Animation/AnimationUtilities.js"],A["Core/Series/Point.js"],A["Core/Utilities.js"]],function(j,O,W){const{setAnimation:tt}=j,{addEvent:J,defined:Y,extend:U,isNumber:_,pick:N,relativeLength:R}=W;class v extends O{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const L=this.labelPosition,I=this.series.options.dataLabels,d=this.connectorShapes;let x=I.connectorShape;return d[x]&&(x=d[x]),x.call(this,{x:L.computed.x,y:L.computed.y,alignment:L.alignment},L.connectorPosition,I)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(L){const I=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(I.x,I.y,I.r+L,I.r+L,{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 L=I=>{this.slice(I.type==="select")};return J(this,"select",L),J(this,"unselect",L),this}isValid(){return _(this.y)&&0<=this.y}setVisible(L,I){const d=this.series,x=d.chart,y=d.options.ignoreHiddenPoint;I=N(I,y),L!==this.visible&&(this.visible=this.options.visible=L=typeof L>"u"?!this.visible:L,d.options.data[d.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(f=>{this[f]&&this[f][L?"show":"hide"](L)}),this.legendItem&&x.legend.colorizeItem(this,L),L||this.state!=="hover"||this.setState(""),y&&(d.isDirty=!0),I&&x.redraw())}slice(L,I,d){const x=this.series;tt(d,x.chart),N(I,!0),this.sliced=this.options.sliced=Y(L)?L:!this.sliced,x.options.data[x.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return U(v.prototype,{connectorShapes:{fixedOffset:function(w,L,I){const d=L.breakAt;return L=L.touchingSliceAt,[["M",w.x,w.y],I.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*d.x-L.x,2*d.y-L.y,d.x,d.y]:["L",d.x,d.y],["L",L.x,L.y]]},straight:function(w,L){return L=L.touchingSliceAt,[["M",w.x,w.y],["L",L.x,L.y]]},crookedLine:function(w,L,I){const{breakAt:d,touchingSliceAt:x}=L;({series:L}=this);const[y,f,T]=L.center,k=T/2,b=L.chart.plotWidth,n=L.chart.plotLeft;L=w.alignment==="left";const{x:a,y:p}=w;return I.crookDistance?(w=R(I.crookDistance,1),w=L?y+k+(b+n-y-k)*(1-w):n+(y-k)*w):w=y+(f-p)*Math.tan((this.angle||0)-Math.PI/2),I=[["M",a,p]],(L?w<=a&&w>=d.x:w>=a&&w<=d.x)&&I.push(["L",w,p]),I.push(["L",d.x,d.y],["L",x.x,x.y]),I}}}),v}),ot(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}}}}),ot(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,O,W,tt,J,Y,U,_,N){const{getStartAndEndRadians:R}=j;({noop:W}=W);const{clamp:v,extend:w,fireEvent:L,merge:I,pick:d,relativeLength:x}=N;class y extends Y{constructor(){super(...arguments),this.points=this.options=this.maxLabelDistance=this.data=this.center=void 0}animate(T){const k=this,b=k.points,n=k.startAngleRad;T||b.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,b=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:_.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":b.borderWidth,fill:b.fillColor||"none",stroke:b.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,b){const n=this.center,a=this.radii?this.radii[b.index]||0:n[2]/2;return T=Math.asin(v((T-n[1])/(a+b.labelDistance),-1,1)),n[0]+(k?-1:1)*Math.cos(T)*(a+b.labelDistance)+(0<b.labelDistance?(k?-1:1)*this.options.dataLabels.padding:0)}hasData(){return!!this.processedXData.length}redrawPoints(){const T=this,k=T.chart;let b,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,b=h.getTranslate(),k.styledMode||(a=T.pointAttribs(h,h.selected&&"select")),h.delayedRendering?(n.setRadialReference(T.center).attr(p).attr(b),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,b),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(b,n){return typeof b.angle<"u"&&(n.angle-b.angle)*k})}translate(T){L(this,"translate"),this.generatePoints();var k=this.options;const b=k.slicedOffset,n=b+(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 P=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*P)/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=x(l.labelDistance,S.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,l.labelDistance),r=(r+P)/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)*b),translateY:Math.round(Math.sin(r)*b)},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,P=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)*P,y:T[1]+t+Math.sin(r)*P},touchingSliceAt:{x:T[0]+S,y:T[1]+t}}}}L(this,"afterTranslate")}updateTotals(){const T=this.points,k=T.length,b=this.options.ignoreHiddenPoint;let n,a,p=0;for(n=0;n<k;n++)a=T[n],!a.isValid()||b&&!a.visible||(p+=a.y);for(this.total=p,n=0;n<k;n++)a=T[n],a.percentage=0<p&&(a.visible||!b)?a.y/p*100:0,a.total=p}}return y.defaultOptions=I(Y.defaultOptions,J),w(y.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:O.prototype.drawTracker,getCenter:j.getCenter,getSymbol:W,isCartesian:!1,noSharedTooltip:!0,pointAttribs:O.prototype.pointAttribs,pointClass:tt,requireSorting:!1,searchPoint:W,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("pie",y),y}),ot(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,O,W,tt,J){const{noop:Y}=O,{distribute:U}=W,{series:_}=tt,{arrayMax:N,clamp:R,defined:v,merge:w,pick:L,relativeLength:I}=J;var d;return function(x){function y(){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,P=u[2]/2,r=u[1],S=[[],[]],F=[0,0,0,0],q=n.dataLabelPositioners;let nt,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)}),_.prototype.drawDataLabels.apply(n),a.forEach(function($){$.dataLabel&&($.visible?(S[$.half].push($),$.dataLabel._pos=null,!v(h.style.width)&&!v($.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(($,Q)=>{const it=$.length,rt=[];let ht,pt=0;if(it){if(n.sortByAngle($,Q-.5),0<n.maxLabelDistance){var E=Math.max(0,r-P-n.maxLabelDistance);ht=Math.min(r+P+n.maxLabelDistance,p.plotHeight),$.forEach(function(C){0<C.labelDistance&&C.dataLabel&&(C.top=Math.max(0,r-P-C.labelDistance),C.bottom=Math.min(r+P+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},rt.push(C.distributeBox))}),E=ht+pt-E,U(rt,E,E/5)}for(H=0;H<it;H++){if(nt=$[H],D=nt.labelPosition,M=nt.dataLabel,m=nt.visible===!1?"hidden":"inherit",g=E=D.natural.y,rt&&v(nt.distributeBox)&&(typeof nt.distributeBox.pos>"u"?m="hidden":(V=nt.distributeBox.size,g=q.radialDistributionY(nt))),delete nt.positionIndex,h.justify)o=q.justify(nt,P,u);else switch(h.alignTo){case"connectors":o=q.alignToConnectors($,Q,e,i);break;case"plotEdges":o=q.alignToPlotEdges(M,Q,e,i);break;default:o=q.radialDistributionX(n,nt,g,E)}M._attr={visibility:m,align:D.alignment},G=nt.options.dataLabels||{},M._pos={x:o+L(G.x,h.x)+({left:c,right:-c}[D.alignment]||0),y:g+L(G.y,h.y)-M.getBBox().height/2},D&&(D.computed.x=o,D.computed.y=g),L(h.crop,!0)&&(z=M.getBBox().width,E=null,o-z<c&&Q===1?(E=Math.round(z-o+c),F[3]=Math.max(E,F[3])):o+z>e-c&&Q===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=w(h,$.options.dataLabels),B=L(G.connectorWidth,1)){let Q;s=$.connector,(M=$.dataLabel)&&M._pos&&$.visible&&0<$.labelDistance?(m=M._attr.visibility,(Q=!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[Q?"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=[],b={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}};x.compose=function(n){j.compose(_),J.pushUnique(k,n)&&(n=n.prototype,n.dataLabelPositioners=b,n.alignDataLabel=Y,n.drawDataLabels=y,n.placeDataLabels=f,n.verifyDataLabelOverflow=T)}}(d||(d={})),d}),ot(A,"Extensions/OverlappingDataLabels.js",[A["Core/Chart/Chart.js"],A["Core/Utilities.js"]],function(j,O){function W(R,v){let w,L=!1;return R&&(w=R.newOpacity,R.oldOpacity!==w&&(R.alignAttr&&R.placed?(R[w?"removeClass":"addClass"]("highcharts-data-label-hidden"),L=!0,R.alignAttr.opacity=w,R[R.isOld?"animate":"attr"](R.alignAttr,null,function(){v.styledMode||R.css({pointerEvents:w?"auto":"none"})}),J(v,"afterHideOverlappingLabel")):R.attr({opacity:w})),R.isOld=!0),L}const{addEvent:tt,fireEvent:J,isArray:Y,isNumber:U,objectEach:_,pick:N}=O;tt(j,"render",function(){let R=this,v=[];(this.labelCollectors||[]).forEach(function(w){v=v.concat(w())}),(this.yAxis||[]).forEach(function(w){w.stacking&&w.options.stackLabels&&!w.options.stackLabels.allowOverlap&&_(w.stacking.stacks,function(L){_(L,function(I){I.label&&v.push(I.label)})})}),(this.series||[]).forEach(function(w){var L=w.options.dataLabels;w.visible&&(L.enabled!==!1||w._hasPointLabels)&&(L=I=>I.forEach(d=>{d.visible&&(Y(d.dataLabels)?d.dataLabels:d.dataLabel?[d.dataLabel]:[]).forEach(function(x){const y=x.options;x.labelrank=N(y.labelrank,d.labelrank,d.shapeArgs&&d.shapeArgs.height),y.allowOverlap?(x.oldOpacity=x.opacity,x.newOpacity=1,W(x,R)):v.push(x)})}),L(w.nodes||[]),L(w.points))}),this.hideOverlappingLabels(v)}),j.prototype.hideOverlappingLabels=function(R){let v=this,w=R.length,L=v.renderer;var I;let d,x,y,f,T=!1;var k=function(b){let n,a;var p;let h=b.box?0:b.padding||0,c=p=0,e,t;if(b&&(!b.alignAttr||b.placed))return n=b.alignAttr||{x:b.attr("x"),y:b.attr("y")},a=b.parentGroup,b.width||(p=b.getBBox(),b.width=p.width,b.height=p.height,p=L.fontMetrics(b.element).h),e=b.width-2*h,(t={left:"0",center:"0.5",right:"1"}[b.alignValue])?c=+t*e:U(b.x)&&Math.round(b.x)!==b.translateX&&(c=b.x-b.translateX),{x:n.x+(a.translateX||0)+h-(c||0),y:n.y+(a.translateY||0)+h-p,width:b.width-2*h,height:b.height-2*h}};for(d=0;d<w;d++)(I=R[d])&&(I.oldOpacity=I.opacity,I.newOpacity=1,I.absoluteBox=k(I));for(R.sort(function(b,n){return(n.labelrank||0)-(b.labelrank||0)}),d=0;d<w;d++)for(y=(k=R[d])&&k.absoluteBox,I=d+1;I<w;++I)f=(x=R[I])&&x.absoluteBox,!y||!f||k===x||k.newOpacity===0||x.newOpacity===0||k.visibility==="hidden"||x.visibility==="hidden"||f.x>=y.x+y.width||f.x+f.width<=y.x||f.y>=y.y+y.height||f.y+f.height<=y.y||((k.labelrank<x.labelrank?k:x).newOpacity=0);R.forEach(function(b){W(b,v)&&(T=!0)}),T&&J(v,"afterHideAllOverlappingLabels")}}),ot(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,O,W,tt,J,Y){const{defaultOptions:U}=j;({seriesTypes:j}=W);const{addEvent:_,extend:N,isObject:R,merge:v,relativeLength:w}=Y,L={radius:0,scope:"stack",where:void 0},I=(d,x)=>(R(d)||(d={radius:d||0}),v(L,x,d));if(tt.symbolCustomAttribs.indexOf("borderRadius")===-1){tt.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const d=J.prototype.symbols.arc;J.prototype.symbols.arc=function(y,f,T,k,b={}){y=d(y,f,T,k,b);const{innerR:n=0,r:a=T,start:p=0,end:h=0}=b;if(b.open||!b.borderRadius)return y;for(T=h-p,f=Math.sin(T/2),b=Math.max(Math.min(w(b.borderRadius||0,a-n),(a-n)/2,a*f/(1+f)),0),T=Math.min(b,T/Math.PI*2*n),f=y.length-1;f--;){let P,r,S;k=y;var c=f,e=1<f?T:b,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,P=!0),S&&r&&r.params){t=r[1];var l=r[5];i=r.params;const{start:F,end:q,cx:nt,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),P?(i.start=F+l,S[1]=nt+u*Math.cos(F),S[2]=B+u*Math.sin(F),k.splice(c+1,0,["A",e,e,0,0,1,nt+t*Math.cos(i.start),B+t*Math.sin(i.start)])):(i.end=q-l,r[6]=nt+t*Math.cos(i.end),r[7]=B+t*Math.sin(i.end),k.splice(c+1,0,["A",e,e,0,0,1,nt+u*Math.cos(q),B+u*Math.sin(q)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return y};const x=J.prototype.symbols.roundedRect;J.prototype.symbols.roundedRect=function(y,f,T,k,b={}){const n=x(y,f,T,k,b),{r:a=0,brBoxHeight:p=k,brBoxY:h=f}=b;var c=f-h,e=h+p-(f+k);b=-.1<c-a?0:a;const t=-.1<e-a?0:a;var i=Math.max(b&&c,0);const l=Math.max(t&&e,0);e=[y+b,f],c=[y+T-b,f];const u=[y+T,f+b],P=[y+T,f+k-t],r=[y+T-t,f+k],S=[y+t,f+k],F=[y,f+k-t],q=[y,f+b];if(i){const nt=Math.sqrt(Math.pow(b,2)-Math.pow(b-i,2));e[0]-=nt,c[0]+=nt,u[1]=q[1]=f+b-i}return k<b-i&&(i=Math.sqrt(Math.pow(b,2)-Math.pow(b-i-k,2)),u[0]=P[0]=y+T-b+i,r[0]=Math.min(u[0],r[0]),S[0]=Math.max(P[0],S[0]),F[0]=q[0]=y+b-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,P[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]=P[0]=y+T-t+k,c[0]=Math.min(u[0],c[0]),e[0]=Math.max(P[0],e[0]),F[0]=q[0]=y+t-k,P[1]=F[1]=f),n.length=0,n.push(["M",...e],["L",...c],["A",b,b,0,0,1,...u],["L",...P],["A",t,t,0,0,1,...r],["L",...S],["A",t,t,0,0,1,...F],["L",...q],["A",b,b,0,0,1,...e],["Z"]),n},_(j.pie,"afterTranslate",function(){const y=I(this.options.borderRadius);for(const f of this.points){const T=f.shapeArgs;T&&(T.borderRadius=w(y.radius,(T.r||0)-(T.innerR||0)))}}),_(O,"afterColumnTranslate",function(){var y,f;if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){const{options:n,yAxis:a}=this,p=n.stacking==="percent";var T=(f=(y=U.plotOptions)===null||y===void 0?void 0:y[this.type])===null||f===void 0?void 0:f.borderRadius;y=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,b=e;y.scope==="stack"&&h.stackTotal&&(k=a.translate(p?100:h.stackTotal,!1,!0,!1,!0),b=a.translate(n.threshold||0,!1,!0,!1,!0),b=this.crispCol(0,Math.min(k,b),0,Math.abs(k-b)),k=b.y,b=b.height);const i=(h.negative?-1:1)*(f?-1:1)===-1;let l=y.where;!l&&this.is("waterfall")&&Math.abs((h.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(l="all"),l||(l="end");const u=Math.min(w(y.radius,c),c/2,l==="all"?e/2:1/0)||0;l==="end"&&(i&&(k-=u),b+=u),N(T,{brBoxHeight:b,brBoxY:k,r:u})}}},{order:9})}return O={optionsToObject:I},O}),ot(A,"Core/Responsive.js",[A["Core/Utilities.js"]],function(j){const{diffObjects:O,extend:W,find:tt,merge:J,pick:Y,uniqueKey:U}=j;var _;return function(N){function R(L,I){const d=L.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(L._id)}function v(L,I){const d=this.options.responsive;var x=this.currentResponsive;let y=[];!I&&d&&d.rules&&d.rules.forEach(f=>{typeof f._id>"u"&&(f._id=U()),this.matchResponsiveRule(f,y)},this),I=J(...y.map(f=>tt((d||{}).rules||[],T=>T._id===f)).map(f=>f&&f.chartOptions)),I.isResponsiveOptions=!0,y=y.toString()||void 0,y!==(x&&x.ruleIds)&&(x&&this.update(x.undoOptions,L,!0),y?(x=O(I,this.options,!0,this.collectionsWithUpdate),x.isResponsiveOptions=!0,this.currentResponsive={ruleIds:y,mergedOptions:I,undoOptions:x},this.update(I,L,!0)):this.currentResponsive=void 0)}const w=[];N.compose=function(L){return j.pushUnique(w,L)&&W(L.prototype,{matchResponsiveRule:R,setResponsive:v}),L}}(_||(_={})),_}),ot(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,O,W,tt,J,Y,U,_,N,R,v,w,L,I,d,x,y,f,T,k,b,n,a,p,h,c,e,t,i,l,u,P,r,S){return j.animate=J.animate,j.animObject=J.animObject,j.getDeferredAnimation=J.getDeferredAnimation,j.setAnimation=J.setAnimation,j.stop=J.stop,j.timers=tt.timers,j.AST=Y,j.Axis=L,j.Chart=n,j.chart=n.chart,j.Fx=tt,j.Legend=b,j.PlotLineOrBand=x,j.Point=T,j.Pointer=k,j.Series=h,j.StackItem=p,j.SVGElement=N,j.SVGRenderer=R,j.Templating=U,j.Tick=y,j.Time=S,j.Tooltip=f,j.Color=r,j.color=r.parse,w.compose(R),v.compose(N),k.compose(n),b.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=O.addEvent,j.arrayMax=O.arrayMax,j.arrayMin=O.arrayMin,j.attr=O.attr,j.clearTimeout=O.clearTimeout,j.correctFloat=O.correctFloat,j.createElement=O.createElement,j.css=O.css,j.defined=O.defined,j.destroyObjectProperties=O.destroyObjectProperties,j.discardElement=O.discardElement,j.distribute=_.distribute,j.erase=O.erase,j.error=O.error,j.extend=O.extend,j.extendClass=O.extendClass,j.find=O.find,j.fireEvent=O.fireEvent,j.getMagnitude=O.getMagnitude,j.getStyle=O.getStyle,j.inArray=O.inArray,j.isArray=O.isArray,j.isClass=O.isClass,j.isDOMElement=O.isDOMElement,j.isFunction=O.isFunction,j.isNumber=O.isNumber,j.isObject=O.isObject,j.isString=O.isString,j.keys=O.keys,j.merge=O.merge,j.normalizeTickInterval=O.normalizeTickInterval,j.objectEach=O.objectEach,j.offset=O.offset,j.pad=O.pad,j.pick=O.pick,j.pInt=O.pInt,j.relativeLength=O.relativeLength,j.removeEvent=O.removeEvent,j.seriesType=c.seriesType,j.splat=O.splat,j.stableSort=O.stableSort,j.syncTimeout=O.syncTimeout,j.timeUnits=O.timeUnits,j.uniqueKey=O.uniqueKey,j.useSerialIds=O.useSerialIds,j.wrap=O.wrap,t.compose(e),u.compose(h),I.compose(L),d.compose(L),l.compose(i),x.compose(L),P.compose(n),a.compose(L,n,h),f.compose(k),j}),A["masters/highcharts.src.js"]._modules=A,A["masters/highcharts.src.js"]})}(re)),re.exports}(function(lt,et){(function(ot,A){lt.exports=A(ps(),Ge)})(window,function(ot,A){return O=[function(tt,J){tt.exports=ot},function(tt,J){tt.exports=A},function(tt,U,Y){Y.r(U),Y.d(U,"Chart",function(){return f}),Y.d(U,"default",function(){return T});var U=Y(0),_=Y.n(U);function N(k,b){return function n(a,p,h){function c(e,t){!_.a.isObject(e,!h)||_.a.isClass(e)||_.a.isDOMElement(e)?a[t]=p[t]:a[t]=n(a[t]||_.a.isArray(e)?[]:{},e,h)}return _.a.isArray(p)?p.forEach(c):_.a.objectEach(p,c),a}({},k,b)}var R=Y(1);function v(k){return(v=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b})(k)}function w(k){return function(b){if(Array.isArray(b))return L(b)}(k)||function(b){if(typeof Symbol<"u"&&b[Symbol.iterator]!=null||b["@@iterator"]!=null)return Array.from(b)}(k)||function(b,n){var a;if(b)return typeof b=="string"?L(b,n):(a=(a=Object.prototype.toString.call(b).slice(8,-1))==="Object"&&b.constructor?b.constructor.name:a)==="Map"||a==="Set"?Array.from(b):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?L(b,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 L(k,b){(b==null||b>k.length)&&(b=k.length);for(var n=0,a=new Array(b);n<b;n++)a[n]=k[n];return a}function I(k,b){var n,a=Object.keys(k);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(k),b&&(n=n.filter(function(p){return Object.getOwnPropertyDescriptor(k,p).enumerable})),a.push.apply(a,n)),a}function d(k){for(var b=1;b<arguments.length;b++){var n=arguments[b]!=null?arguments[b]:{};b%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(v(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"),v(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}(c,"string"),v(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 x={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}}},y=function(k,b){return b.split(".")[0]<3?d(d({},x),{},{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(w(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({},x),{},{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(w(n.updateArgs)))},{deep:!0}),Object(R.onBeforeUnmount)(function(){p.value&&p.value.destroy()}),{chart:p,chartContainer:a,props:n}}})},f=y(_.a,R.version||Y.n(R).a.version);function T(k){var b=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};k.component(b.tagName||"highcharts",y(b.highcharts||_.a,k.version))}}],W={},j.m=O,j.c=W,j.d=function(tt,J,Y){j.o(tt,J)||Object.defineProperty(tt,J,{enumerable:!0,get:Y})},j.r=function(tt){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(tt,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(tt,"__esModule",{value:!0})},j.t=function(tt,J){if(1&J&&(tt=j(tt)),8&J||4&J&&typeof tt=="object"&&tt&&tt.__esModule)return tt;var Y=Object.create(null);if(j.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:tt}),2&J&&typeof tt!="string")for(var U in tt)j.d(Y,U,(function(_){return tt[_]}).bind(null,U));return Y},j.n=function(tt){var J=tt&&tt.__esModule?function(){return tt.default}:function(){return tt};return j.d(J,"a",J),J},j.o=function(tt,J){return Object.prototype.hasOwnProperty.call(tt,J)},j.p="",j(j.s=2);function j(tt){var J;return(W[tt]||(J=W[tt]={i:tt,l:!1,exports:{}},O[tt].call(J.exports,J,J.exports,j),J.l=!0,J)).exports}var O,W})})(Le);var oe=Le.exports;const us={class:"w-88vw flex flex-col md:w-92vw"},fs={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},gs={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},ms={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"},xs={class:"mb-4 text-2xl font-semibold"},ys={class:"my-8 flex items-baseline justify-center"},vs={class:"mr-2 text-5xl font-extrabold"},ks={class:"mt-8 flex flex-col gap-8"},bs=Dt({__name:"Statistics",props:{rank:null},setup(lt){const et=lt,{t:ot}=Ft(),A=St(()=>et.rank);function j(){const O=[];return O.push({title:"standings.statistics.head_data.problems",data:A.value.contest.problems.length}),O.push({title:"standings.statistics.head_data.teams",data:A.value.teams.length}),O.push({title:"standings.statistics.head_data.submissions",data:A.value.getSubmissions().length}),O}return(O,W)=>(ut(),ft("div",us,[at("section",null,[at("div",fs,[at("div",gs,[(ut(!0),ft(Et,null,It(j(),tt=>(ut(),ft("div",{key:tt.title},[at("div",ms,[at("h3",xs,vt(st(ot)(tt.title)),1),at("div",ys,[at("span",vs,vt(tt.data),1)])])]))),128))])])]),at("div",ks,[at("div",null,[Pt(st(oe.Chart),{options:("getSubmitChart"in O?O.getSubmitChart:st(cs))(st(A))},null,8,["options"])]),at("div",null,[Pt(st(oe.Chart),{options:("getProblemChart"in O?O.getProblemChart:st(ls))(st(A))},null,8,["options"])]),at("div",null,[Pt(st(oe.Chart),{options:("getTeamChart"in O?O.getTeamChart:st(hs))(st(A))},null,8,["options"])])])]))}}),ws={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"},Ss={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},Cs={class:"font-semibold text-gray-900 dark:text-white"},Ms={class:"font-semibold text-gray-900 dark:text-white"},Ts={class:"inline-flex items-stretch font-mono -space-x-px"},As=at("span",{class:"sr-only"},"Previous",-1),Ps=at("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[at("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),Os=[As,Ps],Ls={key:0},_s=["onClick"],Es={"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"},Ds=["onClick"],Is={key:1},js=at("span",{class:"sr-only"},"Next",-1),Bs=at("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[at("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),Rs=[js,Bs],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",zs=Dt({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(lt,{emit:et}){const ot=lt,A=St({get(){return ot.pagination},set(j){et("update:pagination",j)}});return(j,O)=>(ut(),ft("nav",ws,[at("span",Ss,[zt(" Showing "),at("span",Cs,vt(st(A).currentLeft)+"-"+vt(Math.max(0,st(A).currentRight-1)),1),zt(" of "),at("span",Ms,vt(st(A).totalSize),1)]),at("ul",Ts,[at("li",null,[at("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:O[0]||(O[0]=W=>st(A).onPageChange({diff:-1}))},Os)]),st(A).currentPage!==0?(ut(),ft("li",Ls,[at("a",{class:Tt(ie),hover:"cursor-pointer",onClick:O[1]||(O[1]=W=>st(A).onPageChange({to:0}))}," 1 ")])):wt("",!0),(ut(!0),ft(Et,null,It(st(A).leftDecrPage,W=>(ut(),ft("li",{key:W},[at("a",{class:Tt(ie),hover:"cursor-pointer",onClick:tt=>st(A).onPageChange({to:W})},vt(W+1),9,_s)]))),128)),at("li",null,[at("a",Es,vt(st(A).currentPage+1),1)]),(ut(!0),ft(Et,null,It(st(A).rightIncrPage,W=>(ut(),ft("li",{key:W},[at("a",{hover:"cursor-pointer",class:Tt(ie),onClick:tt=>st(A).onPageChange({to:W})},vt(W+1),9,Ds)]))),128)),st(A).currentPage!==st(A).totalPage-1&&st(A).totalPage>1?(ut(),ft("li",Is,[at("a",{hover:"cursor-pointer",class:Tt(ie),onClick:O[2]||(O[2]=W=>st(A).onPageChange({to:st(A).totalPage-1}))},vt(st(A).totalPage),1)])):wt("",!0),at("li",null,[at("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:O[3]||(O[3]=W=>st(A).onPageChange({diff:1}))},Rs)])])]))}});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 et=[];let ot=1,A=this.currentPage-ot;for(;A>0;)et.push(A),ot=ot<<1,A-=ot;return et.reverse()}get rightIncrPage(){const et=[];let ot=1,A=this.currentPage+ot;for(;A+1<this.totalPage;)et.push(A),ot=ot<<1,A+=ot;return et}onPageChange(et){const ot=this.totalPage;let A=this.currentPage;if((et==null?void 0:et.to)!==void 0&&(A=et.to),(et==null?void 0:et.diff)!==void 0){const j=et.diff;A=A+j}A<0||A>=ot||(this.currentPage=A)}}const Ut=lt=>(Qt("data-v-7408f3dd"),lt=lt(),te(),lt),Hs={class:"mx-auto w-full","px-4":""},$s={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":""},Ws={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"},Gs={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"},Fs=Ut(()=>at("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"},[at("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)),Xs={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"},Ys=Ut(()=>at("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"},[at("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)),Us={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"},Vs=Ut(()=>at("div",{"i-pajamas-export":"",class:"mr-2 h-4 w-4"},null,-1)),qs={class:"overflow-x-auto"},Ks={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},Zs={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},Js=Ut(()=>at("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),Qs={key:0,scope:"col",class:"px-4 py-3"},to=Ut(()=>at("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),eo=Ut(()=>at("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),io={key:1,scope:"col",class:"px-4 py-3"},so={key:2,scope:"col",class:"px-4 py-3"},oo={key:3,scope:"col",class:"px-4 py-3"},no=Ut(()=>at("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),ro={"px-4":"","py-2":""},ao={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},lo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},ho={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},co=Ut(()=>at("div",{class:"flex items-center"},[at("div",{class:"mr-2 inline-block h-4 w-4 rounded-full bg-red-700"}),zt(" 95 ")],-1)),po=[co],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=Ut(()=>at("div",{class:"flex items-center"},[at("span",{class:"ml-1 text-gray-500 dark:text-gray-400"},"5.0")],-1)),mo=[go],xo={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},yo={class:"flex items-center"},vo=Dt({__name:"SubmissionsTable",props:{rank:{},submissions:{},pageSize:{},removeBorder:{type:Boolean}},setup(lt){const et=lt,ot=St(()=>et.rank),A=St(()=>et.submissions.sort(Fe.compare).reverse()),j=Ot(new Ns);j.value.currentPage=0,j.value.pageSize=et.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 O=St(()=>A.value.slice(j.value.currentLeft,j.value.currentRight)),W=Ot(!1);function tt(U){const _=Math.floor(U/3600),N=Math.floor(U%3600/60),R=U%60,v=w=>w.toString().padStart(2,"0");return`${v(_)}:${v(N)}:${v(R)}`}function J(U){const _="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",N=U.problemId,R=ot.value.contest.problemsMap.get(N);if(R==null||!R.balloonColor)return _}function Y(U){const _=U.problemId,N=ot.value.contest.problemsMap.get(_);if(N==null||!N.balloonColor)return;const R=N.balloonColor;return{backgroundColor:R.background_color,color:R.color}}return(U,_)=>{const N=zs;return ut(),ft("section",null,[at("div",Hs,[at("div",{class:Tt(["relative overflow-hidden bg-white dark:bg-gray-800",{"shadow-md":et.removeBorder!==!0,"sm:rounded-sm":et.removeBorder!==!0}])},[at("div",$s,[at("div",Ws,[st(W)?(ut(),ft("button",Gs,[Fs,zt(" Add new product ")])):wt("",!0),st(W)?(ut(),ft("button",Xs,[Ys,zt(" Update stocks 1/250 ")])):wt("",!0),st(W)?(ut(),ft("button",Us,[Vs,zt(" Export ")])):wt("",!0)])]),at("div",qs,[at("table",Ks,[at("thead",Zs,[at("tr",null,[Js,st(ot).contest.organization?(ut(),ft("th",Qs,vt(st(ot).contest.organization),1)):wt("",!0),to,eo,st(W)?(ut(),ft("th",io," Time ")):wt("",!0),st(W)?(ut(),ft("th",so," Memory ")):wt("",!0),st(W)?(ut(),ft("th",oo," Answer ")):wt("",!0),no])]),at("tbody",null,[(ut(!0),ft(Et,null,It(st(O),R=>{var v,w,L;return ut(),ft("tr",{key:R.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[at("td",ro,[at("span",{class:Tt(["rounded px-2 py-0.5 text-sm",[J(R)]]),style:qt(Y(R))},vt((v=st(ot).contest.problemsMap.get(R.problemId))==null?void 0:v.label),7)]),st(ot).contest.organization?(ut(),ft("td",ao,vt((w=st(ot).teamsMap.get(R.teamId))==null?void 0:w.organization),1)):wt("",!0),at("td",lo,vt((L=st(ot).teamsMap.get(R.teamId))==null?void 0:L.name),1),at("td",{scope:"row",class:Tt([R.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},vt(st(Xe)[R.status]),3),st(W)?(ut(),ft("td",ho,po)):wt("",!0),st(W)?(ut(),ft("td",uo," 0.47 ")):wt("",!0),st(W)?(ut(),ft("td",fo,mo)):wt("",!0),at("td",xo,[at("div",yo,vt(tt(R.timestamp)),1)])])}),128))])])]),Pt(N,{pagination:st(j),"onUpdate:pagination":_[0]||(_[0]=R=>Nt(j)?j.value=R:null)},null,8,["pagination"])],2)])])}}});const he=Yt(vo,[["__scopeId","data-v-7408f3dd"]]),ce=lt=>(Qt("data-v-e6b57d04"),lt=lt(),te(),lt),ko={class:"statistics-0"},bo=["colspan"],wo={class:"stnd"},So={class:"statistics-1"},Co=["colspan"],Mo={class:"stnd"},To=ce(()=>at("br",null,null,-1)),Ao={class:"statistics-0"},Po=["colspan"],Oo={class:"stnd"},Lo=ce(()=>at("br",null,null,-1)),_o={class:"statistics-1"},Eo=["colspan"],Do={class:"stnd"},Io=ce(()=>at("br",null,null,-1)),jo={class:"statistics-0"},Bo=["colspan"],Ro={class:"stnd"},zo={class:"statistics-1"},No=["colspan"],Ho={class:"stnd"},$o=Dt({__name:"BottomStatistics",props:{rank:null},setup(lt){const et=lt,{t:ot}=Ft(),A=St(()=>et.rank);function j(){let U=3;return A.value.contest.organization&&U++,A.value.contest.badge&&U++,U}function O(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 tt(U){return U.attemptedNum===0?"NaN":`${U.dirt}%`}function J(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,_)=>(ut(),ft(Et,null,[at("tr",ko,[at("td",{class:"empty",colspan:j()},null,8,bo),at("td",wo,[at("b",null,vt(st(ot)("standings.statistics.submitted")),1)]),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[at("b",null,vt(N.statistics.submittedNum),1)]))),128))]),at("tr",So,[at("td",{class:"empty",colspan:j()},null,8,Co),at("td",Mo,[at("b",null,vt(st(ot)("standings.statistics.attempted")),1)]),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[at("b",null,vt(N.statistics.attemptedNum),1),To,at("b",null," ("+vt(O(N.statistics))+") ",1)]))),128))]),at("tr",Ao,[at("td",{class:"empty",colspan:j()},null,8,Po),at("td",Oo,[at("b",null,vt(st(ot)("standings.statistics.accepted")),1)]),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[at("b",null,vt(N.statistics.acceptedNum),1),Lo,at("b",null," ("+vt(W(N.statistics))+") ",1)]))),128))]),at("tr",_o,[at("td",{class:"empty",colspan:j()},null,8,Eo),at("td",Do,[at("b",null,vt(st(ot)("standings.statistics.dirt")),1)]),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[at("b",null,vt(N.statistics.attemptedNum-N.statistics.acceptedNum),1),Io,at("b",null," ("+vt(tt(N.statistics))+") ",1)]))),128))]),at("tr",jo,[at("td",{class:"empty",colspan:j()},null,8,Bo),at("td",Ro,[at("b",null,vt(st(ot)("standings.statistics.first_solved")),1)]),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[at("b",null,vt(J(N.statistics)),1)]))),128))]),at("tr",zo,[at("td",{class:"empty",colspan:j()},null,8,No),at("td",Ho,[at("b",null,vt(st(ot)("standings.statistics.last_solved")),1)]),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>(ut(),ft("td",{key:N.id,class:"stnd"},[at("b",null,vt(Y(N.statistics)),1)]))),128))])],64))}});const Wo=Yt($o,[["__scopeId","data-v-e6b57d04"]]),Go={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},Fo=Dt({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(lt,{emit:et}){const ot=lt,A=St({get(){return ot.isHidden},set(J){et("update:isHidden",J)}}),j=St(()=>ot.rank),O=St(()=>ot.team),W=St(()=>ot.p),tt=St(()=>`${O.value.name} - ${W.value.problem.label}`);return(J,Y)=>{const U=he,_=ae;return ut(),Wt(_,{isHidden:st(A),"onUpdate:isHidden":Y[0]||(Y[0]=N=>Nt(A)?A.value=N:null),title:st(tt)},{default:Kt(()=>[at("div",Go,[Pt(U,{"w-full":"",rank:st(j),submissions:st(W).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),Xo=lt=>(Qt("data-v-dbdd6e30"),lt=lt(),te(),lt),Yo=Xo(()=>at("br",null,null,-1)),Uo=Dt({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(lt){const et=lt,ot=Ot(!0);function A(){ot.value=!1}const j=St(()=>et.rank),O=St(()=>et.team),W=St(()=>et.p);function tt(U){return U.isSolved?"+":U.isWrongAnswer?"-":U.isPending?`? ${U.pendingCount}`:""}function J(U){let _="";return U.isUnSubmitted||(_+=`${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)&&(_+=`/${Math.floor(U.lastSubmitTimestamp/60)}`),_}function Y(U){return U.isFirstSolved?"first-solve":U.isSolved?"correct":U.isWrongAnswer?"incorrect":U.isPending?"pending":"unattempted"}return(U,_)=>{const N=Fo;return ut(),ft("td",{class:Tt(["stnd",[Y(st(W))]])},[at("div",{"cursor-pointer":"",onClick:A},[zt(vt(tt(st(W)))+" ",1),Yo,zt(" "+vt(J(st(W))),1)]),at("div",null,[st(ot)?wt("",!0):(ut(),Wt(N,{key:0,isHidden:st(ot),"onUpdate:isHidden":_[0]||(_[0]=R=>Nt(ot)?ot.value=R:null),rank:st(j),team:st(O),p:st(W)},null,8,["isHidden","rank","team","p"]))])],2)}}});const Vo=Yt(Uo,[["__scopeId","data-v-dbdd6e30"]]),qo={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":""},Ko={key:0},Zo={key:1,flex:"","flex-col":"","gap-2":""},Jo={key:2},Qo=Dt({__name:"TeamAwards",props:{team:null,rank:null},setup(lt){const et=lt,ot=St(()=>et.team),A=St(()=>et.rank),j=St(()=>et.team.problemStatistics.filter(W=>!!W.isFirstSolved).map(W=>W.problem.label).join(",")),O=St(()=>{const W=et.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,tt)=>(ut(),ft("div",qo,[at("div",null," Team Rank: "+vt(st(ot).rank),1),st(ot).organization&&st(ot).organizationRank!==-1?(ut(),ft("div",Ko,vt(st(A).contest.organization)+" Rank: "+vt(st(ot).organizationRank),1)):wt("",!0),st(j).length?(ut(),ft("div",Zo,[at("div",null," First Solved Problem "+vt(st(j)),1)])):wt("",!0),st(O)?(ut(),ft("div",Jo,vt(st(O).text)+" Medal ",1)):wt("",!0)]))}}),tn={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},en=["onClick"],sn=Dt({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(lt,{emit:et}){const ot=lt,{t:A}=Ft(),j=St({get(){return ot.currentType},set(tt){et("update:currentType",tt)}});function O(tt){j.value=tt}const W=St(()=>ot.types.length);return(tt,J)=>(ut(),ft("div",tn,[(ut(!0),ft(Et,null,It(ot.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===st(W),border:U===0||U+1===st(W),"border-t border-x md:border-x-0 md:border-b":U>0&&U+1<st(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":st(j)===Y}),onClick:_=>O(Y)},vt(st(A)(`type_menu.${Y}`)),11,en))),128))]))}}),on=["src"],_e=Dt({__name:"Badge",props:{image:null,widthClass:null},setup(lt){const et=lt,ot=St(()=>et.image),A=St(()=>et.widthClass?et.widthClass:"h-8 w-8");return(j,O)=>st(ot).base64?(ut(),ft("img",{key:0,src:st(Ye)(st(ot)),alt:"badge",class:Tt([st(A)])},null,10,on)):wt("",!0)}}),nn={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},rn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},an={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},ln={flex:"","flex-row":"","space-x-3":""},hn={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},cn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},dn={key:0,"w-full":"",class:"mt-[-12px]"},pn={key:1,"w-full":""},un={key:2,"w-full":""},ye="submissions",ve="statistics",ke="awards",fn=Dt({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(lt,{emit:et}){const ot=lt,A=St({get(){return ot.isHidden},set(Y){et("update:isHidden",Y)}}),j=Ot("submissions"),O=St(()=>ot.rank),W=St(()=>ot.team),tt=St(()=>{let Y="";return O.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}),J=[ye,ve,ke];return(Y,U)=>{const _=_e,N=sn,R=he,v=Qo,w=ae;return ut(),Wt(w,{isHidden:st(A),"onUpdate:isHidden":U[1]||(U[1]=L=>Nt(A)?A.value=L:null)},{header:Kt(()=>[at("div",nn,[at("div",rn,[at("div",an,[at("div",ln,[st(W).badge?(ut(),Wt(_,{key:0,image:st(W).badge,"width-class":"h-8 w-8"},null,8,["image"])):wt("",!0),at("h3",hn,vt(st(tt)),1)]),Pt(N,{"current-type":st(j),"onUpdate:currentType":U[0]||(U[0]=L=>Nt(j)?j.value=L:null),types:J},null,8,["current-type"])])])])]),default:Kt(()=>[at("div",cn,[st(j)===ye?(ut(),ft("div",dn,[Pt(R,{"w-full":"",rank:st(O),submissions:st(W).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):wt("",!0),st(j)===ve?(ut(),ft("div",pn,[Pt(st(oe.Chart),{options:("getTeamPlaceChart"in Y?Y.getTeamPlaceChart:st(ds))(st(O),st(W))},null,8,["options"])])):wt("",!0),st(j)===ke?(ut(),ft("div",un,[Pt(v,{team:st(W),rank:st(O)},null,8,["team","rank"])])):wt("",!0)])]),_:1},8,["isHidden"])}}}),gn={},mn={class:"color-gray-700 dark:color-gray-200"},xn=at("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"},[at("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"}),at("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"}),at("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"}),at("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),at("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),at("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"}),at("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"}),at("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"}),at("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"}),at("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"}),at("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"}),at("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"}),at("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),yn=[xn];function vn(lt,et){return ut(),ft("div",mn,yn)}const kn=Yt(gn,[["render",vn]]),bn={},wn={class:"color-gray-700 dark:color-gray-200"},Sn=at("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"},[at("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),Cn=[Sn];function Mn(lt,et){return ut(),ft("div",wn,Cn)}const Tn=Yt(bn,[["render",Mn]]),An=lt=>(Qt("data-v-30762cf0"),lt=lt(),te(),lt),Pn={key:1,class:"empty flex items-center justify-center"},On={flex:""},Ln={class:"float-left pl-2 font-serif"},_n={key:0},En={class:"flex-1"},Dn=An(()=>at("div",{class:"float-right"},null,-1)),In=Dt({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(lt){const et=lt,ot=Ot(null),A=Ue(ot),j=Ot(!0);function O(){j.value=!1}const W=St(()=>et.rank),tt=St(()=>et.team);function J(U,_=!1){if(et.isFilter)return"filter-team";if(_){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||et.ix<32}return(U,_)=>{const N=_e,R=Tn,v=kn,w=fn,L=Vo;return ut(),ft("tr",{ref_key:"el",ref:ot,class:Tt(["h-10",[et.isFilter?"filter-team":""]])},[Y()?(ut(),ft("td",{key:0,class:Tt(["stnd",[J(st(tt),!0)]])},vt(st(tt).rank),3)):wt("",!0),st(W).contest.badge&&st(tt).badge&&Y()?(ut(),ft("td",Pn,[Pt(N,{image:st(tt).badge,"width-class":"h-8 w-8"},null,8,["image"])])):wt("",!0),st(W).contest.organization&&Y()?(ut(),ft("td",{key:2,class:Tt(["stnd",[J(st(tt))]])},[at("div",On,[at("div",Ln,[st(tt).organizationRank>-1?(ut(),ft("div",_n,vt(st(tt).organizationRank),1)):wt("",!0)]),at("div",En,vt(st(tt).organization),1),Dn])],2)):wt("",!0),Y()?(ut(),ft("td",{key:3,class:Tt(["stnd",[J(st(tt))]])},[at("div",{"cursor-pointer":"",onClick:O},[at("span",null,vt(st(tt).name),1),st(tt).group.includes("unofficial")?(ut(),Wt(R,{key:0,"inline-block":""})):wt("",!0),st(tt).group.includes("girl")?(ut(),Wt(v,{key:1,"inline-block":""})):wt("",!0)]),at("div",null,[st(j)?wt("",!0):(ut(),Wt(w,{key:0,isHidden:st(j),"onUpdate:isHidden":_[0]||(_[0]=I=>Nt(j)?j.value=I:null),rank:st(W),team:st(tt)},null,8,["isHidden","rank","team"]))])],2)):wt("",!0),Y()?(ut(),ft("td",{key:4,class:Tt(["stnd",[J(st(tt))]])},vt(st(tt).solvedProblemNum),3)):wt("",!0),Y()?(ut(),ft("td",{key:5,class:Tt(["stnd",[J(st(tt))]])},vt(st(tt).penaltyToMinute),3)):wt("",!0),(ut(!0),ft(Et,null,It(st(tt).problemStatistics,I=>(ut(),ft(Et,{key:I.problem.id},[Y()?(ut(),Wt(L,{key:0,rank:st(W),team:st(tt),p:I},null,8,["rank","team","p"])):wt("",!0)],64))),128)),Y()?(ut(),ft("td",{key:6,class:Tt(["stnd",[J(st(tt))]])},vt(`${st(tt).dirt}%`),3)):wt("",!0)],2)}}});const jn=Yt(In,[["__scopeId","data-v-30762cf0"]]),Bn=lt=>(Qt("data-v-c132047d"),lt=lt(),te(),lt),Rn={class:"standings","font-mono":"","dark:text-gray-700":""},zn={class:"sticky top-0 z-99"},Nn={class:"title",style:{width:"3rem"}},Hn={key:0,class:"title",style:{width:"2rem"}},$n={class:"title",style:{width:"3rem"}},Wn={class:"title",style:{width:"4rem"}},Gn=Bn(()=>at("br",null,null,-1)),Fn={class:"title",style:{width:"2.5rem"}},Xn=Dt({__name:"Standings",props:{rank:{}},setup(lt){const et=lt,{t:ot}=Ft(),A=St(()=>et.rank),j=St(()=>et.rank.teams),O=St(()=>et.rank.teams.filter(Y=>!!(et.rank.organizations&&et.rank.options.filterOrganizationMap.has(Y.organization)||et.rank.options.filterTeamMap.has(Y.id)))),W=St(()=>{let J=0;return A.value.teams.forEach(Y=>{J=Math.max(J,Y.organization.length)}),J}),tt=St(()=>{let J=0;return A.value.teams.forEach(Y=>{J=Math.max(J,Y.name.length)}),J});return(J,Y)=>{const U=jn,_=Wo;return ut(),ft("div",null,[at("div",null,[at("table",Rn,[at("thead",zn,[at("tr",null,[at("th",Nn,vt(st(ot)("standings.place")),1),st(A).contest.badge?(ut(),ft("th",Hn,vt(st(A).contest.badge),1)):wt("",!0),st(A).contest.organization?(ut(),ft("th",{key:1,class:"title",style:qt({width:`${Math.min(32,Math.ceil(st(W)*1.1))}rem`})},vt(st(A).contest.organization),5)):wt("",!0),at("th",{class:"title",style:qt({width:`${Math.min(32,Math.ceil(st(tt)*1))}rem`})},vt(st(ot)("standings.team")),5),at("th",$n,vt(st(ot)("standings.solved")),1),at("th",Wn,vt(st(ot)("standings.penalty")),1),(ut(!0),ft(Et,null,It(st(A).contest.problems,N=>{var R,v;return ut(),ft("th",{key:N.id,class:"success","text-center":"",style:qt([{width:"3rem"},{"background-color":(R=N.balloonColor)==null?void 0:R.background_color,color:(v=N.balloonColor)==null?void 0:v.color}])},[zt(vt(N.label)+" ",1),Gn,at("s",null,vt(N.statistics.acceptedNum),1)],4)}),128)),at("th",Fn,vt(st(ot)("standings.dirt")),1)])]),at("tbody",null,[(ut(!0),ft(Et,null,It(st(O),(N,R)=>(ut(),Wt(U,{key:`filter-${N.id}`,ix:R,rank:st(A),team:N,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),ft(Et,null,It(st(j),(N,R)=>(ut(),Wt(U,{key:N.id,ix:R,rank:st(A),team:N},null,8,["ix","rank","team"]))),128)),Pt(_,{rank:st(A)},null,8,["rank"])])])])])}}});const Yn=Yt(Xn,[["__scopeId","data-v-c132047d"]]),Un={"font-mono":"",flex:""},Vn=["onClick"],qn=["href"],Kn={key:1},Zn=Dt({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(lt,{emit:et}){const ot=lt,A=St(()=>{var _;for(const N of ot.items)if(N.isDefault)return N.keyword;return(_=ot.items)==null?void 0:_[0].keyword}),j=Me(ot.queryParamName,A.value,{transform:String}),O=St({get(){return ot.currentItem},set(_){et("update:currentItem",_)}}),{t:W,locale:tt}=Ft();function J(_){return _.title?W(_.title):_.titles?_.titles.get(tt.value)??_.titles.get(_.defaultLang):""}function Y(_){return O.value===_.keyword}function U(_){ot.onChange&&ot.onChange(_.keyword),!(_.link||_.isModal)&&(O.value=_.keyword,j.value=_.keyword)}return Ve(()=>{(()=>{var _;((_=j.value)==null?void 0:_.length)>0&&((()=>{for(const N of ot.items)if(N.titles){for(const[R,v]of N.titles)if(j.value===v){j.value=N.keyword;return}}})(),O.value=j.value,ot.onChange&&ot.onChange(j.value))})()}),(_,N)=>(ut(),ft("div",Un,[at("div",{class:Tt(["mr-[-4px]",{"flex-row-reverse":ot.reverseOrder}]),flex:""},[(ut(!0),ft(Et,null,It(ot.items,R=>(ut(),ft("div",{key:R.keyword,class:Tt(["second-level-menu-item",[Y(R)?"second-level-menu-item-current":""]]),onClick:v=>U(R)},[at("div",null,[R.link?(ut(),ft("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},vt(J(R)),9,qn)):wt("",!0),R.link?wt("",!0):(ut(),ft("div",Kn,vt(J(R)),1))])],10,Vn))),128))],2)]))}});const Jn=Yt(Zn,[["__scopeId","data-v-714a998b"]]);const Qn={},tr={class:"flex items-center justify-center dark:text-black"},er=qe('<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),ir=[er];function sr(lt,et){return ut(),ft("div",tr,ir)}const or=Yt(Qn,[["render",sr],["__scopeId","data-v-54297ce8"]]),nr=at("div",{"text-lg":""},[at("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),rr={flex:""},ar=Dt({__name:"BoardTab",props:{rank:{}},setup(lt){const et=lt,ot=St(()=>et.rank),{t:A}=Ft();return(j,O)=>{const W=Te("VTooltip");return ut(),ft("div",null,[Pt(W,{"w-inherit":""},{popper:Kt(()=>{var tt;return[at("div",rr,[at("div",null,vt(st(A)("standings.options.calculation_of_penalty"))+": "+vt(st(A)(`standings.options.${(tt=st(ot).contest.options)==null?void 0:tt.calculationOfPenalty}`)),1)])]}),default:Kt(()=>[nr]),_:1})])}}}),lr=lt=>(Qt("data-v-bd783b6a"),lt=lt(),te(),lt),hr={key:0},cr={key:0},dr={key:0},pr={class:"max-w-[92%]"},ur=["src"],fr={class:"max-w-[92%]"},gr={"mt-1":""},mr={class:"w-[92%]"},xr={class:"flex font-bold font-mono"},yr={class:"float-left"},vr={class:"pl-0.5"},kr={class:"flex-1"},br={class:"float-right"},wr={class:"pl-0.5"},Sr={class:"mt-2"},Cr={class:"mt-2 flex font-bold font-mono"},Mr={class:"float-left"},Tr={class:"flex-1"},Ar={class:"float-right"},Pr={class:"mt-4 flex"},Or={class:"float-left"},Lr=lr(()=>at("div",{class:"flex-1"},null,-1)),_r={class:"float-right"},Er={class:"max-w-[92%]"},Dr={key:0},Ir={key:1,class:"w-[88vw]"},jr={key:2},Br={key:3},Rr={key:4},be="sm:w-[1280px] xl:w-screen",se="sm:w-[1260px] xl:w-screen",zr=Dt({__name:"Board",props:{dataSourceUrl:null},setup(lt){const et=lt,ot=Zt(),A=Ke(ue),{t:j}=Ft(),O=Ot(!1),W=Ot({}),tt=Ot([]),J=Ot([]),Y=Ot({}),U=Ot(new Date),_=Ot(new Ze),N=Ot(!1);(()=>{const r=Ii(),S=ji();r.value.length>0&&_.value.setFilterOrganizations(r.value),S.value.length>0&&_.value.setFilterTeams(S.value)})();const R=Ot("all");function v(r){r!==_.value.group&&_.value.setGroup(r)}(()=>{const r=Me("group","all",{transform:String});R.value=r.value,_.value.setGroup(r.value)})();function w(r={force:!1}){if(N.value&&r.force===!1)return;const S=new oi(W.value,tt.value,J.value);S.options=fe.cloneDeep(_.value),S.buildRank(),Y.value=S}const{data:L,isError:I,error:d}=ai(et.dataSourceUrl??ot.path,U);ne(L,async()=>{var r,S,F;L.value===null||L.value===void 0||(W.value=Je((r=L.value)==null?void 0:r.contest),A.value=`${W.value.name} | ${ue}`,tt.value=Qe((S=L.value)==null?void 0:S.teams),J.value=ti((F=L.value)==null?void 0:F.submissions),!_.value.enableFilterSubmissionsByTimestamp&&(w(),O.value=!0))});const x=Ot(!1);ne(_.value,()=>{if(O.value!==!1){if(!Y.value.options.isNeedReBuildRank(_.value)){Y.value.options=fe.cloneDeep(_.value);return}x.value!==!0&&(x.value=!0,w(),x.value=!1)}});const y=Ot([{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=St(()=>Y.value.contest.group),T=St(()=>{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=Ot("rank"),b=Ot(!0);function n(r){r==="options"&&(b.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)}ei("S",r=>{if(N.value=!N.value,N.value===!0){let F=0,q="DOWN";p=setInterval(()=>{if(q==="DOWN"){if(a()){q="UP",w({force:!0});return}F+=2}else{if(F===0){q="DOWN",w({force:!0});return}F-=2}window.scrollTo({top:F,behavior:"smooth"})},64)}else h()},{dedupe:!1});const c=St(()=>{const r=Y.value.contest.startTime.format("YYYY-MM-DD HH:mm:ss");return`${j("standings.start_time")}${j("common.colon")}${r}`}),e=St(()=>{const r=Y.value.contest.endTime.format("YYYY-MM-DD HH:mm:ss");return`${j("standings.end_time")}${j("common.colon")}${r}`}),t=St(()=>{const r=Y.value.contest.getContestElapsedTime(U.value);return`${j("standings.elapsed")}${j("common.colon")}${r}`}),i=St(()=>{const r=Y.value.contest.getContestRemainingTime(U.value);return`${j("standings.remaining")}${j("common.colon")}${r}`}),l=St(()=>Y.value.options.enableFilterSubmissionsByTimestamp?ii.PAUSED:Y.value.contest.getContestState()),u=St(()=>Ce(Y.value.options.timestamp)),P=setInterval(()=>{U.value=new Date},1e3);return si(()=>{clearInterval(P),h()}),(r,S)=>{var m;const F=ar,q=ni,nt=ri,B=or,s=Jn,M=Yn,z=he,D=bs,V=as,o=Ui,g=Gi;return ut(),ft("div",null,[st(O)?wt("",!0):(ut(),ft("div",hr,[at("div",{class:Tt([be]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[at("div",null,vt(st(j)("common.loading"))+"... ",1),st(I)?(ut(),ft("div",cr,vt(st(d)),1)):wt("",!0)],2)])),st(O)?(ut(),ft("div",{key:1,class:Tt([be]),flex:"","flex-col":"","justify-center":"","items-center":""},[st(Y).contest.banner?(ut(),ft("div",dr,[at("div",{class:Tt([se]),"mb-4":"",flex:"","justify-center":"","items-center":""},[at("div",pr,[at("img",{src:["data:image/png;base64,",(m=st(Y).contest.banner)==null?void 0:m.base64].join(""),alt:"banner"},null,8,ur)])],2)])):wt("",!0),at("div",{class:Tt(["title",[se]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[at("div",fr,vt(st(Y).contest.name),1)],2),at("div",gr,[Pt(F,{rank:st(Y)},null,8,["rank"])]),at("div",{class:Tt([se]),"mt-1":"",flex:"","flex-row":"","justify-center":""},[at("div",mr,[at("div",xr,[at("div",yr,[zt(vt(st(c)),1),at("sup",vr,vt(st(Y).contest.startTime.format("z")),1)]),at("div",kr,[Pt(q,{state:st(l),"pending-time":st(Y).contest.getContestPendingTime(st(U)),"paused-time":st(u)},null,8,["state","pending-time","paused-time"])]),at("div",br,[zt(vt(st(e)),1),at("sup",wr,vt(st(Y).contest.endTime.format("z")),1)])]),at("div",Sr,[Pt(nt,{"rank-options":st(_),"onUpdate:rankOptions":S[0]||(S[0]=H=>Nt(_)?_.value=H:null),width:st(Y).contest.getContestProgressRatio(st(U)),state:st(Y).contest.getContestState(st(U)),"need-scroll":!0,rank:st(Y),"elapsed-time":st(Y).contest.getContestElapsedTime(st(U))},null,8,["rank-options","width","state","rank","elapsed-time"])]),at("div",Cr,[at("div",Mr,vt(st(t)),1),at("div",Tr,[Pt(B)]),at("div",Ar,vt(st(i)),1)]),at("div",Pr,[at("div",Or,[Pt(s,{"current-item":st(R),"onUpdate:currentItem":S[1]||(S[1]=H=>Nt(R)?R.value=H:null),items:st(T),"query-param-name":"group","on-change":v},null,8,["current-item","items"])]),Lr,at("div",_r,[Pt(s,{"current-item":st(k),"onUpdate:currentItem":S[2]||(S[2]=H=>Nt(k)?k.value=H:null),items:st(y),"reverse-order":!0,"query-param-name":"type","on-change":n},null,8,["current-item","items"])])])])],2),at("div",{"mt-4":"",class:Tt([se]),flex:"","justify-center":""},[at("div",Er,[st(k)==="rank"?(ut(),ft("div",Dr,[Pt(M,{rank:st(Y)},null,8,["rank"])])):wt("",!0),st(k)==="submissions"?(ut(),ft("div",Ir,[Pt(z,{"w-full":"",rank:st(Y),submissions:st(Y).getSubmissions()},null,8,["rank","submissions"])])):wt("",!0),st(k)==="statistics"?(ut(),ft("div",jr,[Pt(D,{rank:st(Y)},null,8,["rank"])])):wt("",!0),st(k)==="export"?(ut(),ft("div",Br,[Pt(V,{rank:st(Y)},null,8,["rank"])])):wt("",!0),st(k)==="utility"?(ut(),ft("div",Rr,[Pt(o,{rank:st(Y)},null,8,["rank"])])):wt("",!0)])],2)],2)):wt("",!0),st(b)?wt("",!0):(ut(),Wt(g,{key:2,"is-hidden":st(b),"onUpdate:isHidden":S[3]||(S[3]=H=>Nt(b)?b.value=H:null),"rank-options":st(_),"onUpdate:rankOptions":S[4]||(S[4]=H=>Nt(_)?_.value=H:null),rank:st(Y)},null,8,["is-hidden","rank-options","rank"]))])}}});const Ee=Yt(zr,[["__scopeId","data-v-bd783b6a"]]),Nr={key:0},Hr=Dt({__name:"CustomBoard",setup(lt){const et=li();return(ot,A)=>{const j=hi,O=Ee;return ut(),ft(Et,null,[Pt(j),st(et).length>0?(ut(),ft("div",Nr,[Pt(O,{"data-source-url":st(et)},null,8,["data-source-url"])])):wt("",!0)],64)}}}),$r=Dt({__name:"GoBack",setup(lt){const et=Se(),{t:ot}=Ft();return(A,j)=>{const O=Te("RouterLink");return ut(),ft("div",null,[at("div",{class:"m-3 text-sm btn",onClick:j[0]||(j[0]=W=>st(et).back())},vt(st(ot)("button.back")),1),Pt(O,{class:"m-3 text-sm btn",to:"/"},{default:Kt(()=>[zt(vt(st(ot)("button.home")),1)]),_:1})])}}}),Wr={key:0,class:"flex flex-col items-center"},Gr=at("div",{"text-4xl":""},[at("div",{"i-carbon-warning":""})],-1),Fr={key:1},Xr={key:2},Yr=Dt({__name:"[...all]",setup(lt){const{t:et}=Ft(),ot=Zt(),j=!["camp","icpc","ccpc","provincial-contest","board"].some(W=>ot.fullPath.startsWith(`/${W}`)),O=St(()=>ot.fullPath.startsWith("/board"));return(W,tt)=>{const J=$r,Y=Hr,U=Ee;return ut(),ft(Et,null,[j?(ut(),ft("div",Wr,[Gr,zt(" "+vt(st(et)("not-found"))+" ",1),Pt(J)])):wt("",!0),st(O)?(ut(),ft("div",Fr,[Pt(Y)])):(ut(),ft("div",Xr,[Pt(U)]))],64)}}});typeof ge=="function"&&ge(Yr);export{Yr as default};
|