@xcpcio/board-app 0.26.1 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{_...all_-f6dd53aa.css → Board-96bc5ecc.css} +1 -1
- package/dist/assets/Board-ebc7d2d2.js +3 -0
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-983c0ef5.js +1 -0
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-6ed50735.js +1 -0
- package/dist/assets/_...all_-51e55631.js +1 -0
- package/dist/assets/_name_-735452d1.js +1 -0
- package/dist/assets/{about-94580762.js → about-c67fc7ea.js} +1 -1
- package/dist/assets/board-55f2cfd1.js +1 -0
- package/dist/assets/board-layout-9c68b45b.js +1 -0
- package/dist/assets/headless-a3c0debd.js +1 -0
- package/dist/assets/home-45ae8111.js +1 -0
- package/dist/assets/index-1418cfa7.js +205 -0
- package/dist/assets/index-65e6de07.js +1 -0
- package/dist/assets/{index-00889800.css → index-a0a089d2.css} +2 -2
- package/dist/assets/index-layout-3ce68075.js +1 -0
- package/dist/assets/test-09be4a74.js +1 -0
- package/dist/assets/useQueryBoardData-5ec632a5.js +1 -0
- package/dist/assets/user-901b4c74.js +1 -0
- package/dist/assets/virtual_pwa-register-033c41ee.js +1 -0
- package/dist/index.html +122 -1
- package/dist/sw.js +1 -1
- package/package.json +4 -4
- package/src/components/ContestIndexUI.vue +18 -12
- package/src/components/Footer.vue +44 -40
- package/src/components/board/BoardTab.vue +2 -2
- package/src/components/board/SubmissionsTable.vue +15 -23
- package/src/components/flowbite/Tooltip.css +172 -0
- package/src/components/flowbite/Tooltip.vue +62 -0
- package/src/components.d.ts +1 -0
- package/src/composables/useQueryBoardData.ts +5 -0
- package/src/pages/[...all].vue +0 -10
- package/src/pages/board.vue +8 -0
- package/uno.config.ts +5 -0
- package/dist/about.html +0 -11
- package/dist/assets/DataSourceInput.vue_vue_type_script_setup_true_lang-6fc6f8ea.js +0 -1
- package/dist/assets/TheInput.vue_vue_type_script_setup_true_lang-4ea0bd97.js +0 -1
- package/dist/assets/_...all_-cf83185b.js +0 -3
- package/dist/assets/_name_-58c24204.js +0 -1
- package/dist/assets/app-21014468.js +0 -205
- package/dist/assets/board-layout-430c688d.js +0 -1
- package/dist/assets/headless-4d39b6f3.js +0 -1
- package/dist/assets/home-401b6bdc.js +0 -1
- package/dist/assets/index-95c5e1ae.js +0 -1
- package/dist/assets/index-layout-bb5b04eb.js +0 -1
- package/dist/assets/test-5e95874d.js +0 -1
- package/dist/assets/user-57f2ad93.js +0 -1
- package/dist/assets/virtual_pwa-register-8d09e89c.js +0 -1
- package/dist/balloon.html +0 -1
- package/dist/robots.txt +0 -4
- package/dist/sitemap.xml +0 -1
- package/dist/ssr-manifest.json +0 -834
- package/dist/test.html +0 -1
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
var De=Object.defineProperty;var Ie=(lt,it,at)=>it in lt?De(lt,it,{enumerable:!0,configurable:!0,writable:!0,value:at}):lt[it]=at;var ee=(lt,it,at)=>(Ie(lt,typeof it!="symbol"?it+"":it,at),at);import{g as It,h as wt,S as je,w as ne,o as ut,c as gt,d as ot,k as Vt,T as de,t as vt,n as Tt,U as Ft,G as $t,F as Et,z as Dt,l as St,Q as zt,K as Be,L as Re,I as Jt,V as be,q as Yt,i as Pt,A as Wt,P as qt,j as st,b as Ot,E as Nt,D as ze,W as Zt,X as Ne,Y as we,Z as Se,$ as He,a0 as pe,a1 as $e,a2 as Ce,a3 as We,a4 as Ge,a5 as Fe,a6 as Me,a7 as Qt,a8 as te,a as Xt,a9 as Ut,aa as Xe,u as Ye,H as Te,ab as Ae,O as Ue,ac as Ve,p as qe,ad as ue,ae as Ke,s as Ze,v as Je,x as Qe,af as fe,ag as ti,ah as ei,y as ii,R as si,ai as oi,aj as ni}from"./index-1418cfa7.js";import{u as ri}from"./useQueryBoardData-5ec632a5.js";const ai={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":""},li={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},hi={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},ci={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},di=ot("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[ot("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),pi=ot("span",{"sr-only":""}," Close modal ",-1),ui=[di,pi],ae=It({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null},emits:["update:isHidden"],setup(lt,{emit:it}){const at=lt,O=wt({get(){return at.isHidden},set(G){it("update:isHidden",G)}});function B(){O.value=!0}const{Escape:_}=je();return ne(_,G=>{G&&B()}),(G,Q)=>(ut(),gt("div",ai,[ot("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-9998":"",style:Vt({backgroundColor:"rgba(0, 0, 0, 0.5)"}),onClick:B},null,4),ot("div",{class:Tt(["relative p-4",[at.width??"w-[78%]"]]),"z-9999":""},[ot("div",li,[ot("div",hi,[de(G.$slots,"header",{},()=>[ot("h3",ci,vt(at.title),1)]),ot("button",{type:"button",class:"hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","bg-transparent":"","ml-auto":"","p-1.5":"","text-sm":"","text-gray-400":"","items-center":"","inline-flex":"","rounded-lg":"",onClick:B},ui)]),de(G.$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 it=lt.pointer-1,at=lt.$el.offsetHeight*it;it>=0&&(lt.pointer=it),lt.$refs.menu.scrollTop=at},nextItem(lt){const it=lt.pointer+1,at=lt.$el.offsetHeight*it;it<=lt.filteredOptions.length-1&&(lt.pointer=it);const O=lt.$refs.menu.offsetHeight,B=Math.ceil((lt.$refs.menu.scrollTop+lt.$el.offsetHeight)/O),_=Math.ceil(at/O);B!==_&&(lt.$refs.menu.scrollTop=(_-1)*lt.$refs.menu.offsetHeight)},enterItem(lt){const it=lt.filteredOptions[lt.pointer],at=it.disabled;it&&!at&<.selectItem(it)},pointerSet(lt,it){lt.pointer=it},pointerAdjust(lt){lt.pointer>=lt.filteredOptions.length-1&&(lt.pointer=lt.filteredOptions.length?lt.filteredOptions.length-1:0)},mousedownItem(lt){lt.mousedownState=!0}};function fi(lt){return new RegExp(lt.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const Pe={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,it)=>lt.match(fi(it))}}},Oe=(lt,it)=>{const at=lt.__vccOpts||lt;for(const[O,B]of it)at[O]=B;return at},gi={name:"ModelSelect",mixins:[Pe],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(it=>it.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}}},mi=ot("i",{class:"dropdown icon"},null,-1),xi=["disabled","tabindex","id","name","value"],yi=["data-vss-custom-attr"],vi=["data-vss-custom-attr","onClick","onMouseenter"];function ki(lt,it,at,O,B,_){return ut(),gt("div",{class:Tt(["ui fluid search selection dropdown",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:it[11]||(it[11]=(...G)=>_.openOptions&&_.openOptions(...G)),onFocus:it[12]||(it[12]=(...G)=>_.openOptions&&_.openOptions(...G))},[mi,ot("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,value:B.searchText,onInput:it[0]||(it[0]=G=>B.searchText=G.target.value),ref:"input",onFocus:it[1]||(it[1]=Ft((...G)=>_.openOptions&&_.openOptions(...G),["prevent"])),onKeyup:[it[2]||(it[2]=$t((...G)=>_.closeOptions&&_.closeOptions(...G),["esc"])),it[7]||(it[7]=$t(Ft((...G)=>_.enterItem&&_.enterItem(...G),["prevent"]),["enter"]))],onBlur:it[3]||(it[3]=(...G)=>_.blurInput&&_.blurInput(...G)),onKeydown:[it[4]||(it[4]=$t((...G)=>_.prevItem&&_.prevItem(...G),["up"])),it[5]||(it[5]=$t((...G)=>_.nextItem&&_.nextItem(...G),["down"])),it[6]||(it[6]=$t(Ft(()=>{},["prevent"]),["enter"])),it[8]||(it[8]=$t((...G)=>_.deleteTextOrItem&&_.deleteTextOrItem(...G),["delete"]))]},null,40,xi),ot("div",{class:Tt(["text",_.textClass]),"data-vss-custom-attr":_.searchTextCustomAttr},vt(_.inputText),11,yi),ot("div",{class:Tt(["menu",_.menuClass]),ref:"menu",onMousedown:it[10]||(it[10]=Ft(()=>{},["prevent"])),style:Vt(_.menuStyle),tabindex:"-1"},[(ut(!0),gt(Et,null,Dt(_.filteredOptions,(G,Q)=>(ut(),gt("div",{key:Q,class:Tt(["item",{selected:G.selected||B.pointer===Q,disabled:G.disabled}]),"data-vss-custom-attr":_.customAttrs[Q]?_.customAttrs[Q]:"",onClick:Ft(Z=>_.selectItem(G),["stop"]),onMousedown:it[9]||(it[9]=(...Z)=>_.mousedownItem&&_.mousedownItem(...Z)),onMouseenter:Z=>_.pointerSet(Q)},vt(G.text),43,vi))),128))],38)],34)}const bi=Oe(gi,[["render",ki]]),wi={name:"MultiSelect",mixins:[Pe],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(it=>it.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 it=this.selectedOptions.concat(lt),at=it.filter((O,B)=>it.indexOf(O)===B);this.closeOptions(),this.searchText="",this.$emit("select",at,lt,"insert")},deleteItem(lt){const it=this.selectedOptions.filter(at=>at.value!==lt.value);this.$emit("select",it,lt,"delete")},accentsTidy(lt){let it=lt.toString().toLowerCase();return it=it.replace(new RegExp("[àáâãäå]","g"),"a"),it=it.replace(new RegExp("æ","g"),"ae"),it=it.replace(new RegExp("ç","g"),"c"),it=it.replace(new RegExp("[èéêë]","g"),"e"),it=it.replace(new RegExp("[ìíîï]","g"),"i"),it=it.replace(new RegExp("ñ","g"),"n"),it=it.replace(new RegExp("[òóôõö]","g"),"o"),it=it.replace(new RegExp("œ","g"),"oe"),it=it.replace(new RegExp("[ùúûü]","g"),"u"),it=it.replace(new RegExp("[ýÿ]","g"),"y"),it}}},Si=ot("i",{class:"dropdown icon"},null,-1),Ci=["data-vss-custom-attr"],Mi=["onClick"],Ti=["disabled","tabindex","id","name"],Ai=["data-vss-custom-attr","onClick","onMouseenter"];function Pi(lt,it,at,O,B,_){return ut(),gt("div",{class:Tt(["ui fluid search dropdown selection multiple",{"active visible":B.showMenu,error:lt.isError,disabled:lt.isDisabled}]),onClick:it[11]||(it[11]=(...G)=>_.openOptions&&_.openOptions(...G)),onFocus:it[12]||(it[12]=(...G)=>_.openOptions&&_.openOptions(...G))},[Si,at.hideSelectedOptions?St("",!0):(ut(!0),gt(Et,{key:0},Dt(at.selectedOptions,(G,Q)=>(ut(),gt("a",{key:Q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":at.customAttr(G)},[zt(vt(G.text),1),ot("i",{class:"delete icon",onClick:Z=>_.deleteItem(G)},null,8,Mi)],8,Ci))),128)),Be(ot("input",{class:"search",autocomplete:"off",disabled:lt.isDisabled,tabindex:lt.isDisabled?-1:0,id:lt.id,name:lt.name,"onUpdate:modelValue":it[0]||(it[0]=G=>B.searchText=G),ref:"input",style:Vt(_.inputWidth),onFocus:it[1]||(it[1]=Ft((...G)=>_.openOptions&&_.openOptions(...G),["prevent"])),onKeyup:[it[2]||(it[2]=$t((...G)=>_.closeOptions&&_.closeOptions(...G),["esc"])),it[7]||(it[7]=$t(Ft((...G)=>_.enterItem&&_.enterItem(...G),["prevent"]),["enter"]))],onBlur:it[3]||(it[3]=(...G)=>_.blurInput&&_.blurInput(...G)),onKeydown:[it[4]||(it[4]=$t((...G)=>_.prevItem&&_.prevItem(...G),["up"])),it[5]||(it[5]=$t((...G)=>_.nextItem&&_.nextItem(...G),["down"])),it[6]||(it[6]=$t(Ft(()=>{},["prevent"]),["enter"])),it[8]||(it[8]=$t((...G)=>_.deleteTextOrLastItem&&_.deleteTextOrLastItem(...G),["delete"]))]},null,44,Ti),[[Re,B.searchText]]),ot("div",{class:Tt(["text",_.textClass])},vt(_.inputText),3),ot("div",{class:Tt(["menu",_.menuClass]),ref:"menu",onMousedown:it[10]||(it[10]=Ft(()=>{},["prevent"])),style:Vt(_.menuStyle),tabindex:"-1"},[(ut(!0),gt(Et,null,Dt(_.filteredOptions,(G,Q)=>(ut(),gt("div",{key:Q,class:Tt(["item",{selected:G.selected||B.pointer===Q,disabled:G.disabled}]),"data-vss-custom-attr":at.customAttr(G),onClick:Ft(Z=>_.selectItem(G),["stop"]),onMousedown:it[9]||(it[9]=(...Z)=>_.mousedownItem&&_.mousedownItem(...Z)),onMouseenter:Z=>_.pointerSet(Q)},vt(G.text),43,Ai))),128))],38)],34)}const ge=Oe(wi,[["render",Pi]]);function Oi(){return`filter-organizations-${Jt().path}`}function Li(){return`filter-teams-${Jt().path}`}function _i(){const it=`filter-organizations-${Jt().path}`;return be(it,[])}function Ei(){const it=`filter-teams-${Jt().path}`;return be(it,[])}const Di={"w-full":"","font-bold":"","font-mono":"",flex:"","flex-col":"","gap-4":"","items-center":"","justify-center":""},Ii={key:0,flex:"","flex-col":"","w-full":""},ji={"w-full":"","mt-2":""},Bi={flex:"","flex-col":"","w-full":""},Ri=ot("div",null," Filter Team ",-1),zi={"w-full":"","mt-2":""},Ni={"mt-2":"","w-full":"",flex:"","items-center":"","space-x-4":""},Hi=It({__name:"OptionsModal",props:{isHidden:{type:Boolean},rank:null,rankOptions:null},emits:["update:isHidden","update:rankOptions"],setup(lt,{emit:it}){const at=lt,{t:O}=Yt(),B=wt({get(){return at.isHidden},set(y){it("update:isHidden",y)}}),_=wt({get(){return at.rankOptions},set(y){it("update:rankOptions",y)}}),G=wt(()=>at.rank),Q=wt(()=>O("type_menu.options")),Z=wt(()=>G.value.organizations.map(f=>({value:f,text:f}))),Y=Pt(_.value.filterOrganizations),U=Pt({});function L(y,f){Y.value=y,U.value=f}const N=wt(()=>G.value.originTeams.map(f=>({value:f.id,text:f.organization?`${f.name} - ${f.organization}`:f.name}))),R=Pt(_.value.filterTeams),v=Pt({});function w(y,f){R.value=y,v.value=f}function P(){B.value=!0}const I=Oi(),d=Li();function x(){_.value.setFilterOrganizations(Y.value),_.value.setFilterTeams(R.value),localStorage.setItem(I,JSON.stringify(Y.value)),localStorage.setItem(d,JSON.stringify(R.value)),P()}return(y,f)=>{const T=ae;return ut(),Wt(T,{isHidden:st(B),"onUpdate:isHidden":f[0]||(f[0]=k=>Nt(B)?B.value=k:null),title:st(Q),width:"w-180"},{default:qt(()=>[ot("div",Di,[st(G).contest.organization?(ut(),gt("div",Ii,[ot("div",null," Filter "+vt(st(G).contest.organization),1),ot("div",ji,[Ot(st(ge),{options:st(Z),"selected-options":st(Y),onSelect:L},null,8,["options","selected-options"])])])):St("",!0),ot("div",Bi,[Ri,ot("div",zi,[Ot(st(ge),{options:st(N),"selected-options":st(R),onSelect:w},null,8,["options","selected-options"])])]),ot("div",Ni,[ot("button",{type:"submit",class:"text-white bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:outline-none focus:ring-primary-300 px-5 py-2.5 text-center dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800","font-medium":"","text-sm":"","rounded-md":"",onClick:x},vt(st(O)("button.confirm")),1),ot("button",{type:"reset",class:"py-2.5 px-5 text-gray-900 focus:outline-none bg-white border border-gray-200 hover:bg-gray-100 hover:text-primary-700 focus:z-10 focus:ring-4 focus:ring-gray-200 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700","font-medium":"","text-sm":"","rounded-md":"",onClick:P},vt(st(O)("button.cancel")),1)])])]),_:1},8,["isHidden","title"])}}}),$i={"w-full":"",flex:"","mt-4":"","gap-4":""},Wi=["href"],Gi={btn:"",title:"Submissions",disabled:"true"},Fi=It({__name:"Utility",setup(lt){const{t:it}=Yt(),at=Jt(),O=ze(),B=wt(()=>`https://resolver.xcpcio.com/resolver?xcpcio-data-source=${at.path}`);function _(){O.push(`/balloon/?data-source=${at.path}`)}return(G,Q)=>(ut(),gt("div",$i,[ot("a",{btn:"",href:st(B),target:"_blank",title:"Resolver"},vt(st(it)("type_menu.resolver")),9,Wi),ot("button",{btn:"",title:"Balloon",onClick:_},vt(st(it)("type_menu.balloon")),1),ot("button",Gi,vt(st(it)("type_menu.submissions")),1)]))}});var Le={exports:{}};(function(lt,it){(function(at,O){O()})(Zt,function(){function at(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 O(Y,U,L){var N=new XMLHttpRequest;N.open("GET",Y),N.responseType="blob",N.onload=function(){Z(N.response,U,L)},N.onerror=function(){console.error("could not download file")},N.send()}function B(Y){var U=new XMLHttpRequest;U.open("HEAD",Y,!1);try{U.send()}catch{}return 200<=U.status&&299>=U.status}function _(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 G=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Zt=="object"&&Zt.global===Zt?Zt:void 0,Q=G.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),Z=G.saveAs||(typeof window!="object"||window!==G?function(){}:"download"in HTMLAnchorElement.prototype&&!Q?function(Y,U,L){var N=G.URL||G.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?_(R):B(R.href)?O(Y,U,L):_(R,R.target="_blank")):(R.href=N.createObjectURL(Y),setTimeout(function(){N.revokeObjectURL(R.href)},4e4),setTimeout(function(){_(R)},0))}:"msSaveOrOpenBlob"in navigator?function(Y,U,L){if(U=U||Y.name||"download",typeof Y!="string")navigator.msSaveOrOpenBlob(at(Y,L),U);else if(B(Y))O(Y,U,L);else{var N=document.createElement("a");N.href=Y,N.target="_blank",setTimeout(function(){_(N)})}}:function(Y,U,L,N){if(N=N||open("","_blank"),N&&(N.document.title=N.document.body.innerText="downloading..."),typeof Y=="string")return O(Y,U,L);var R=Y.type==="application/octet-stream",v=/constructor/i.test(G.HTMLElement)||G.safari,w=/CriOS\/[\d]+/.test(navigator.userAgent);if((w||R&&v||Q)&&typeof FileReader<"u"){var P=new FileReader;P.onloadend=function(){var x=P.result;x=w?x:x.replace(/^data:[^;]*;/,"data:attachment/file;"),N?N.location.href=x:location=x,N=null},P.readAsDataURL(Y)}else{var I=G.URL||G.webkitURL,d=I.createObjectURL(Y);N?N.location=d:location.href=d,N=null,setTimeout(function(){I.revokeObjectURL(d)},4e4)}});G.saveAs=Z.saveAs=Z,lt.exports=Z})})(Le);var Xi=Le.exports;const Yi=Ne(Xi);var Ui=setTimeout;function Vi(lt,it){var at=it.useCachedSetTimeout?Ui:setTimeout;return new Promise(function(O){at(O,lt)})}function qi(lt){var it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},at=it.useCachedSetTimeout,O=Vi(lt,{useCachedSetTimeout:at});function B(_){return O.then(function(){return _})}return B.then=function(){return O.then.apply(O,arguments)},B.catch=Promise.resolve().catch,B}const Ki={flex:"","flex-col":""},Zi={"w-160":"","font-bold":""},Ji={"mt-8":""},Qi={key:0,flex:"","flex-row":"","justify-center":"","gap-4":""},ts=["disabled"],es=["disabled"],is={key:1,flex:"","justify-center":""},ss=["disabled"],os=It({__name:"Export",props:{rank:null},setup(lt){const it=lt,at=we.useToast(),{copy:O,isSupported:B}=Se(),_=wt(()=>it.rank),G=Pt({value:"cf-dat",text:"Codeforces Gym Ghost(dat)"}),Q=Pt([{value:"cf-dat",text:"Codeforces Gym Ghost(dat)"},{value:"general-xlsx",text:"Excel Table(xlsx)"}]),Z=Pt({CfDatDownload:!1,CfDatCopy:!1,GeneralXLSXDownload:!1});async function Y(){await He(),await qi(16)}async function U(){Z.value.CfDatDownload=!0,await Y();const v=new pe().convert(_.value),w=new Blob([v],{type:"text/plain;charset=utf-8"});Yi.saveAs(w,"contest.dat"),Z.value.CfDatDownload=!1}async function L(){if(!B.value){at.warning("clipboard is not supported");return}Z.value.CfDatCopy=!0,await Y();const v=new pe().convert(_.value);O(v),Z.value.CfDatCopy=!1,at.success("Copy Success")}async function N(){Z.value.GeneralXLSXDownload=!0,await Y(),new $e().convertAndWrite(_.value,`${_.value.contest.name}.xlsx`),Z.value.GeneralXLSXDownload=!1}return(R,v)=>(ut(),gt("div",Ki,[ot("div",Zi,[Ot(st(bi),{modelValue:st(G),"onUpdate:modelValue":v[0]||(v[0]=w=>Nt(G)?G.value=w:null),options:st(Q),placeholder:"Export Type"},null,8,["modelValue","options"])]),ot("div",Ji,[st(G).value==="cf-dat"?(ut(),gt("div",Qi,[ot("button",{disabled:st(Z).CfDatDownload,btn:"",onClick:U}," Download ",8,ts),ot("button",{disabled:st(Z).CfDatCopy,btn:"",onClick:L}," Copy to Clipboard ",8,es)])):St("",!0),st(G).value==="general-xlsx"?(ut(),gt("div",is,[ot("button",{disabled:st(Z).GeneralXLSXDownload,btn:"",onClick:N}," Download ",8,ss)])):St("",!0)])]))}});function le(lt,it,at,O,B,_){return{colors:_,chart:window.innerWidth<992?{type:"bar",backgroundColor:"transparent"}:{type:"column",backgroundColor:"transparent",height:"420px"},title:{text:lt},xAxis:{categories:O,labels:{style:{fontSize:"16px"}},title:{text:it,style:{fontSize:"16px"}}},yAxis:{min:0,title:{text:at,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:B}}function ns(lt){const it=[];lt.contest.problems.forEach((_,G)=>{it.push({problem_id:_.label,index:G,solved:_.statistics.acceptedNum})}),it.sort((_,G)=>_.solved>G.solved?-1:_.solved<G.solved?1:_.index<G.index?-1:_.index>G.index?1:0);const{cat:at,series:O,colors:B}=(()=>{const _=[],G=[];return it.forEach(Y=>{_.push(Y.problem_id),G.push(Y.solved)}),{cat:_,series:[{name:"队伍数",showInLegend:!1,data:G}],colors:["rgb(124, 181, 236)"]}})();return le("题目通过数统计","题目编号","通过数",at,O,B)}function rs(lt){const it=lt.rankStatistics.teamSolvedNum.map((_,G)=>({index:G,cnt:_})),{cat:at,series:O,colors:B}=(()=>{const _=[],G=[];return it.forEach(Y=>{_.push(Y.index),G.push(Y.cnt)}),{cat:_,series:[{name:"队伍数",showInLegend:!1,data:G}],colors:["rgb(124, 181, 236)"]}})();return le("队伍过题数统计","过题数","队伍数",at,O,B)}function as(lt){const{cat:it,series:at,colors:O}=(()=>{const B=[],_=[],G=[],Q=[];return lt.contest.problems.forEach(U=>{_.push(U.statistics.acceptedNum),G.push(U.statistics.rejectedNum),Q.push(U.statistics.pendingNum),B.push(U.label)}),{cat:B,series:[{name:"Accepted",showInLegend:!1,data:_},{name:"Rejected",showInLegend:!1,data:G},{name:"Pending",showInLegend:!1,data:Q}],colors:["#E1FFB5","#FFD0D0","#C8D6FA"]}})();return le("提交分类统计","题目编号","提交数",it,at,O)}function ls(lt,it){const at=it.placeChartPoints.map(B=>{var _,G;return{x:B.timePoint,y:B.rank,showX:Ce(B.timePoint),lastSolved:(_=B.lastSolvedProblem)!=null&&_.label?`Last Solved Problem ${(G=B.lastSolvedProblem)==null?void 0:G.label}`:""}});return{chart:{type:"spline"},title:{text:"排名变化趋势图"},series:[{showInLegend:!1,allowPointSelect:!1,name:"rank",type:"spline",data:at,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 _e={exports:{}},re={exports:{}},me;function hs(){return me||(me=1,function(lt){(function(it,at){lt.exports?(at.default=at,lt.exports=it.document?at(it):at):(it.Highcharts&&it.Highcharts.error(16,!0),it.Highcharts=at(it))})(typeof window<"u"?window:Zt,function(it){function at(B,_,G,Q){B.hasOwnProperty(_)||(B[_]=Q.apply(null,G),typeof CustomEvent=="function"&&it.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:_,module:B[_]}})))}var O={};return at(O,"Core/Globals.js",[],function(){var B;return function(_){_.SVG_NS="http://www.w3.org/2000/svg",_.product="Highcharts",_.version="11.1.0",_.win=typeof it<"u"?it:{},_.doc=_.win.document,_.svg=_.doc&&_.doc.createElementNS&&!!_.doc.createElementNS(_.SVG_NS,"svg").createSVGRect,_.userAgent=_.win.navigator&&_.win.navigator.userAgent||"",_.isChrome=_.userAgent.indexOf("Chrome")!==-1,_.isFirefox=_.userAgent.indexOf("Firefox")!==-1,_.isMS=/(edge|msie|trident)/i.test(_.userAgent)&&!_.win.opera,_.isSafari=!_.isChrome&&_.userAgent.indexOf("Safari")!==-1,_.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(_.userAgent),_.isWebKit=_.userAgent.indexOf("AppleWebKit")!==-1,_.deg2rad=2*Math.PI/360,_.hasBidiBug=_.isFirefox&&4>parseInt(_.userAgent.split("Firefox/")[1],10),_.hasTouch=!!_.win.TouchEvent,_.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],_.noop=function(){},_.supportsPassiveEvents=function(){let G=!1;if(!_.isMS){const Q=Object.defineProperty({},"passive",{get:function(){G=!0}});_.win.addEventListener&&_.win.removeEventListener&&(_.win.addEventListener("testPassive",_.noop,Q),_.win.removeEventListener("testPassive",_.noop,Q))}return G}(),_.charts=[],_.dateFormats={},_.seriesTypes={},_.symbolSizes={},_.chartCount=0}(B||(B={})),B}),at(O,"Core/Utilities.js",[O["Core/Globals.js"]],function(B){function _(t,i,l,u){const A=i?"Highcharts error":"Highcharts warning";t===32&&(t=`${A}: Deprecated member`);const r=N(t);let S=r?`${A} #${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(B,"displayError",{chart:l,code:t,message:S,params:u},function(){if(i)throw Error(S);p.console&&_.messages.indexOf(S)===-1&&console.warn(S)}),_.messages.push(S)}function G(t,i){return parseInt(t,i||10)}function Q(t){return typeof t=="string"}function Z(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||!Z(t))}function U(t){return Y(t)&&typeof t.nodeType=="number"}function L(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=Q(i)&&!R(l);let A;const r=(S,F)=>{R(S)?t.setAttribute(F,S):u?(A=t.getAttribute(F))||F!=="class"||(A=t.getAttribute(F+"Name")):t.removeAttribute(F)};return Q(i)?r(l,i):T(i,r),A}function w(t){return Z(t)?t:[t]}function P(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){B.isMS&&!B.svg&&i&&R(i.opacity)&&(i.filter=`alpha(opacity=${100*i.opacity})`),P(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=G(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 A(S){let F,q;t.nodeName&&(i?(F={},F[i]=!0):F=S,T(F,function(nt,j){if(S[j])for(q=S[j].length;q--;)u(j,S[j][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)):(A(S),S[i]=[])):(A(S),delete r.hcEvents)}}function b(t,i,l,u){if(l=l||{},a.createEvent&&(t.dispatchEvent||t.fireEvent&&t!==B)){var A=a.createEvent("Events");A.initEvent(i,!0,!0),l=P(A,l),t.dispatchEvent?t.dispatchEvent(l):t.fireEvent(i,l)}else if(t.hcEvents){l.target||P(l,{preventDefault:function(){l.defaultPrevented=!0},target:t,type:i}),A=[];let r=t,S=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[i]&&(A.length&&(S=!0),A.unshift.apply(A,r.hcEvents[i])),r=Object.getPrototypeOf(r);S&&A.sort((F,q)=>F.order-q.order),A.forEach(F=>{F.fn.call(t,l)===!1&&l.preventDefault()})}u&&!l.defaultPrevented&&u.call(t,l)}const{charts:n,doc:a,win:p}=B;(_||(_={})).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){B[i]=function(l){return _(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 B[Q(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 A=typeof t=="function"&&t.prototype||t;Object.hasOwnProperty.call(A,"hcEvents")||(A.hcEvents={}),A=A.hcEvents,B.Point&&t instanceof B.Point&&t.series&&t.series.chart&&(t.series.chart.runTrackerClick=!0);const r=t.addEventListener;return r&&r.call(t,i,l,B.supportsPassiveEvents?{passive:u.passive===void 0?i.indexOf("touch")!==-1:u.passive,capture:!1}:!1),A[i]||(A[i]=[]),A[i].push({fn:l,order:typeof u.order=="number"?u.order:1/0}),A[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,A){return t=a.createElement(t),i&&P(t,i),A&&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 A(S,F,q,nt){const j=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]={},A(s[z],F[M][z],q[M][z],nt+1)))}else Y(s,!0)&&!s.nodeType?(q[M]=Z(s)?[]:{},A(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]=j[M])})}const r={};return A(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:_,extend:P,extendClass:function(t,i){const l=function(){};return l.prototype=new t,P(l.prototype,i),l},find:h,fireEvent:b,getClosestDistance:function(t,i){const l=!i;let u,A,r;return t.forEach(S=>{if(1<S.length)for(r=S.length-1;0<r;r--)A=S[r]-S[r-1],0>A&&!l?(i==null||i(),i=void 0):A&&(typeof u>"u"||A<u)&&(u=A)}),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 _(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 A;for(A=t.options.isInternal?u:0;A<u+1;A++)if(!i[A]||N(l)&&l<I(i[A].options.index,i[A]._i)||i[A].options.isInternal){i.splice(A,0,t);break}return A},isArray:Z,isClass:L,isDOMElement:U,isFunction:function(t){return typeof t=="function"},isNumber:N,isObject:Y,isString:Q,keys:function(t){return _(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)||L(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 A=i.length;for(t=0;t<A;t++)l=u(l,i[t]);return l},normalizeTickInterval:function(t,i,l,u,A){let r=t;l=I(l,x(t));const S=t/l;for(i||(i=A?[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],!(A&&r*l>=t||!A&&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:G,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,A;for(A=0;A<l;A++)t[A].safeI=A;for(t.sort(function(r,S){return u=i(r,S),u===0?r.safeI-S.safeI:u}),A=0;A<l;A++)delete t[A].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 A=arguments,r=this;return l.apply(this,[function(){return u.apply(r,arguments.length?arguments:A)}].concat([].slice.call(arguments)))}}},h}),at(O,"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"}}),at(O,"Core/Color/Color.js",[O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_){const{isNumber:G,merge:Q,pInt:Z}=_;class Y{static parse(L){return L?new Y(L):Y.None}constructor(L){this.rgba=[NaN,NaN,NaN,NaN],this.input=L;const N=B.Color;if(N&&N!==Y)return new N(L);this.init(L)}init(L){let N,R;if(typeof L=="object"&&typeof L.stops<"u")this.stops=L.stops.map(P=>new Y(P[1]));else if(typeof L=="string"){if(this.input=L=Y.names[L.toLowerCase()]||L,L.charAt(0)==="#"){var v=L.length,w=parseInt(L.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(L))&&(N=R.parse(v))}N&&(this.rgba=N)}get(L){const N=this.input,R=this.rgba;if(typeof N=="object"&&typeof this.stops<"u"){const v=Q(N);return v.stops=[].slice.call(v.stops),this.stops.forEach((w,P)=>{v.stops[P]=[v.stops[P][0],w.get(L)]}),v}return R&&G(R[0])?L==="rgb"||!L&&R[3]===1?"rgb("+R[0]+","+R[1]+","+R[2]+")":L==="a"?`${R[3]}`:"rgba("+R.join(",")+")":N}brighten(L){const N=this.rgba;if(this.stops)this.stops.forEach(function(R){R.brighten(L)});else if(G(L)&&L!==0)for(let R=0;3>R;R++)N[R]+=Z(255*L),0>N[R]&&(N[R]=0),255<N[R]&&(N[R]=255);return this}setOpacity(L){return this.rgba[3]=L,this}tweenTo(L,N){const R=this.rgba,v=L.rgba;return!G(R[0])||!G(v[0])?L.input||"none":(L=v[3]!==1||R[3]!==1,(L?"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))+(L?","+(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[Z(U[1]),Z(U[2]),Z(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[Z(U[1]),Z(U[2]),Z(U[3]),1]}}],Y.None=new Y(""),Y}),at(O,"Core/Color/Palettes.js",[],function(){return{colors:"#2caffe #544fc5 #00e272 #fe6a35 #6b8abc #d568fb #2ee0ca #fa4b42 #feb56a #91e8e1".split(" ")}}),at(O,"Core/Time.js",[O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_){const{win:G}=B,{defined:Q,error:Z,extend:Y,isObject:U,merge:L,objectEach:N,pad:R,pick:v,splat:w,timeUnits:P}=_,I=B.isSafari&&G.Intl&&G.Intl.DateTimeFormat.prototype.formatRange,d=B.isSafari&&G.Intl&&!G.Intl.DateTimeFormat.prototype.formatRange;class x{constructor(f){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=G.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=L(!0,this.options,f),this.Date=f.Date||G.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||G.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()};Z(25)}return this.useUTC&&k?function(n){return 6e4*k(n.valueOf())}:function(){return 6e4*(f.timezoneOffset||0)}}dateFormat(f,T,k){if(!Q(T)||isNaN(T))return B.defaultOptions.lang&&B.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=B.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)},B.dateFormats),N(n,function(u,A){for(;f.indexOf("%"+A)!==-1;)f=f.replace("%"+A,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),Q(T)){if(n.set("Milliseconds",h,c>=P.second?0:e*Math.floor(n.get("Milliseconds",h)/e)),c>=P.second&&n.set("Seconds",h,c>=P.minute?0:e*Math.floor(n.get("Seconds",h)/e)),c>=P.minute&&n.set("Minutes",h,c>=P.hour?0:e*Math.floor(n.get("Minutes",h)/e)),c>=P.hour&&n.set("Hours",h,c>=P.day?0:e*Math.floor(n.get("Hours",h)/e)),c>=P.day&&n.set("Date",h,c>=P.month?1:Math.max(1,e*Math.floor(n.get("Date",h)/e))),c>=P.month){n.set("Month",h,c>=P.year?0:e*Math.floor(n.get("Month",h)/e));var i=n.get("FullYear",h)}c>=P.year&&n.set("FullYear",h,i-i%e),c===P.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||!Q(k)||(t=k-T>4*P.month||n.getTimezoneOffset(T)!==n.getTimezoneOffset(k)),T=h.getTime(),h=1;T<k;)a.push(T),T=c===P.year?n.makeTime(i+h*e,0):c===P.month?n.makeTime(i,b+h*e):!t||c!==P.day&&c!==P.week?t&&c===P.hour&&1<e?n.makeTime(i,b,l,u+h*e):T+c*e:n.makeTime(i,b,l+h*e*(c===P.day?1:7)),h++;a.push(T),c<=P.hour&&1e4>a.length&&a.forEach(function(A){A%18e5===0&&n.dateFormat("%H%M%S%L",A)==="000000000"&&(p[A]="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 P){if(f===P.week&&+this.dateFormat("%w",T)===k&&n.substr(6)==="00:00:00.000"){p="week";break}if(P[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}),at(O,"Core/Defaults.js",[O["Core/Chart/ChartDefaults.js"],O["Core/Color/Color.js"],O["Core/Globals.js"],O["Core/Color/Palettes.js"],O["Core/Time.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y){const{isTouchDevice:U,svg:L}=G,{merge:N}=Y,R={colors:Q.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:B,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:L,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 Z(R.time);return B={defaultOptions:R,defaultTime:v,getOptions:function(){return R},setOptions:function(w){return N(!0,R,w),(w.time||w.global)&&(G.time?G.time.update(N(R.global,R.time,w.global,w.time)):G.time=v),R}},B}),at(O,"Core/Animation/Fx.js",[O["Core/Color/Color.js"],O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_,G){const{parse:Q}=B,{win:Z}=_,{isNumber:Y,objectEach:U}=G;class L{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 P=[];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}P.push(y)}else P=R;else P=this.toD||[];this.elem.attr("d",P,void 0,!0)}update(){const R=this.elem,v=this.prop,w=this.now,P=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,P&&P.call(R,w,this)}run(R,v,w){const P=this,I=P.options,d=function(f){return d.stopped?!1:P.step(f)},x=Z.requestAnimationFrame||function(f){setTimeout(f,13)},y=function(){for(let f=0;f<L.timers.length;f++)L.timers[f]()||L.timers.splice(f--,1);L.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()&&L.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,P=this.elem,I=w.complete,d=w.duration,x=w.curAnim;let y;return P.attr&&!P.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(P),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 P(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?(P(v,w),I(w,v)):(P(w,v),I(v,w))),[v,w]}fillSetter(){L.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,Q(this.start).tweenTo(Q(this.end),this.pos),void 0,!0)}}return L.timers=[],L}),at(O,"Core/Animation/AnimationUtilities.js",[O["Core/Animation/Fx.js"],O["Core/Utilities.js"]],function(B,_){function G(P){return N(P)?R({duration:500,defer:0},P):{duration:P?500:0,defer:0}}function Q(P,I){let d=B.timers.length;for(;d--;)B.timers[d].elem!==P||I&&I!==B.timers[d].prop||(B.timers[d].stopped=!0)}const{defined:Z,getStyle:Y,isArray:U,isNumber:L,isObject:N,merge:R,objectEach:v,pick:w}=_;return{animate:function(P,I,d){let x,y="",f,T,k;N(d)||(k=arguments,d={duration:k[2],easing:k[3],complete:k[4]}),L(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){Q(P,n),T=new B(P,d,n),f=void 0,n==="d"&&U(I.d)?(T.paths=T.initPath(P,P.pathArray,I.d),T.toD=I.d,x=0,f=1):P.attr?x=P.attr(n):(x=parseFloat(Y(P,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:G,getDeferredAnimation:function(P,I,d){const x=G(I);let y=0,f=0;return(d?[d]:P.series).forEach(T=>{T=G(T.options.animation),y=I&&Z(I.defer)?x.defer:Math.max(y,T.duration+T.defer),f=Math.min(x.duration,T.duration)}),P.renderer.forExport&&(y=0),{defer:Math.max(0,y-f),duration:Math.min(y,f)}},setAnimation:function(P,I){I.renderer.globalAnimation=w(P,I.options.chart.animation,!0)},stop:Q}}),at(O,"Core/Renderer/HTML/AST.js",[O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_){const{SVG_NS:G,win:Q}=B,{attr:Z,createElement:Y,css:U,error:L,isFunction:N,isString:R,objectEach:v,splat:w}=_;({trustedTypes:_}=Q);const P=_&&N(_.createPolicy)&&_.createPolicy("highcharts",{createHTML:y=>y});_=P?P.createHTML(""):"";try{var I=!!new DOMParser().parseFromString(_,"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||(L(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?B.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=B.doc.createElementNS(p==="svg"?G:b.namespaceURI||G,p);const t=a.attributes||{};v(a,function(i,l){l!=="tagName"&&l!=="attributes"&&l!=="children"&&l!=="style"&&l!=="textContent"&&(t[l]=i)}),Z(p,c?t:x.filterUserAttributes(t)),a.style&&U(p,a.style),h&&p.appendChild(h),T(a.children||[],p),e=p}else L(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(P?P.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=_,x.bypassHTMLFiltering=!1,x}),at(O,"Core/Templating.js",[O["Core/Defaults.js"],O["Core/Utilities.js"]],function(B,_){function G(d="",x,y){const f=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,T=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,k=[],b=/f$/,n=/\.([0-9])/,a=Z.lang,p=y&&y.time||Y,h=y&&y.numberFormatter||Q,c=(r="")=>{let S;return r==="true"?!0:r==="false"?!1:(S=Number(r)).toString()===r?S:L(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 A=t.startInner;A=d.substr(A,e.index-A),t.body===void 0?(t.body=A,t.startInner=e.index+e[0].length):t.elseBody=A,t.find+=A+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 j;if(nt){var s=[r],M=q.split(" ");for(j=I[nt].length;j--;)s.unshift(c(M[j+1]));j=I[nt].apply(x,s),r.isBlock&&typeof j=="boolean"&&(j=G(j?S:F,x))}else s=q.split(":"),j=c(s.shift()||""),s.length&&typeof j=="number"&&(s=s.join(":"),b.test(s)?(M=parseInt((s.match(n)||["","-1"])[1],10),j!==null&&(j=h(j,M,a.decimalPoint,-1<s.indexOf(",")?a.thousandsSep:""))):j=p.dateFormat(s,j));d=d.replace(r.find,w(j,""))}),l?G(d,x,y):d}function Q(d,x,y,f){d=+d||0,x=+x;const T=Z.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(P(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:Z,defaultTime:Y}=B,{extend:U,getNestedProperty:L,isArray:N,isNumber:R,isObject:v,pick:w,pInt:P}=_,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)=>G(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:G,helpers:I,numberFormat:Q}}),at(O,"Core/Renderer/RendererUtilities.js",[O["Core/Utilities.js"]],function(B){const{clamp:_,pick:G,stableSort:Q}=B;var Z;return function(Y){function U(L,N,R){const v=L;var w=v.reducedLen||N,P=(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=L.length;d--;)f+=L[d].size;if(f>w){for(Q(L,P),f=d=0;f<=w;)f+=L[d].size,d++;y=L.splice(d-1,L.length)}for(Q(L,I),L=L.map(T=>({size:T.size,targets:[T.target],align:G(T.align,.5)}));x;){for(d=L.length;d--;)w=L[d],P=(Math.min.apply(0,w.targets)+Math.max.apply(0,w.targets))/2,w.pos=_(P-w.size*w.align,0,N-w.size);for(d=L.length,x=!1;d--;)0<d&&L[d-1].pos+L[d-1].size>L[d].pos&&(L[d-1].size+=L[d].size,L[d-1].targets=L[d-1].targets.concat(L[d].targets),L[d-1].align=.5,L[d-1].pos+L[d-1].size>N&&(L[d-1].pos=N-L[d-1].size),L.splice(d,1),x=!0)}return v.push.apply(v,y),d=0,L.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)))}),Q(v,I),v}Y.distribute=U}(Z||(Z={})),Z}),at(O,"Core/Renderer/SVG/SVGElement.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Color/Color.js"],O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_,G,Q){const{animate:Z,animObject:Y,stop:U}=B,{deg2rad:L,doc:N,svg:R,SVG_NS:v,win:w}=G,{addEvent:P,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}=Q;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,j=nt.alignedObjects,s;let M,z;r?(this.alignOptions=r,this.alignByTranslate=S,(!F||p(F))&&(this.alignTo=s=F||"renderer",f(j,this),j.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),j=(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&&(j+=(F.height-(r.height||0))/z),q[S?"translateY":"y"]=Math.round(j),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&&Z(this,r,q)},S)):(this.attr(r,void 0,F||q.complete),c(r,function(nt,j){q.step&&q.step.call(this,nt,{prop:j,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"&&G.svg){this.fakeTS=!0,F=F.replace(/(^[\d\.]+)(.*?)$/g,function(j,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,j=>{const s=j.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"),j=>{nt+=Number(j.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,j=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&&j.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,j,s,M,z,D,V,o,g,m,H=[],W;k(this.renderer,"complexColor",{args:arguments},function(){if(r.radialGradient?j="radialGradient":r.linearGradient&&(j="linearGradient"),j){if(s=r[j],z=q.gradients,D=r.stops,g=F.radialReference,b(s)&&(r[j]=s={x1:s[0],y1:s[1],x2:s[2],y2:s[3],gradientUnits:"userSpaceOnUse"}),j==="radialGradient"&&g&&!y(s.gradientUnits)&&(M=s,s=h(s,q.getRadialAttr(g,M),{gradientUnits:"userSpaceOnUse"})),c(s,function($,tt){tt!=="id"&&H.push(tt,$)}),c(D,function($){H.push($)}),H=H.join(","),z[H])m=z[H].attr("id");else{s.id=m=l();const $=z[H]=q.createElement(j).attr(s).add(q.defs);$.radAttr=M,$.stops=[],D.forEach(function(tt){tt[1].indexOf("rgba")===0?(nt=_.parse(tt[1]),V=nt.get("rgb"),o=nt.get("a")):(V=tt[1],o=1),tt=q.createElement("stop").attr({offset:tt[0],"stop-color":V,"stop-opacity":o}).add($),$.stops.push(tt)})}W="url("+q.url+"#"+m+")",F.setAttribute(S,W),F.gradient=H,r.toString=function(){return W}}})}css(r){const S=this.styles,F={},q=this.element;let nt,j=!S;if(S&&c(r,function(s,M){S&&S[M]!==s&&(F[M]=s,j=!0)}),j){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 j=r.clipPath;[].forEach.call(q.querySelectorAll("[clip-path],[CLIP-PATH]"),function(s){-1<s.getAttribute("clip-path").indexOf(j.element.id)&&s.removeAttribute("clip-path")}),r.clipPath=j.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(j,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,j)=>nt&&nt.join?(j?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:j,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"):j&&j.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,j&&j.textOverflow,j&&j.fontWeight].join()),g&&!r&&(o=M[g]),!o){if(D||nt.forExport){try{var m=this.fakeTS&&function(et){const rt=q.querySelector(".highcharts-text-outline");rt&&x(rt,{display:et})};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*L,W=(S-90)*L,$=m*Math.cos(H);S=m*Math.sin(H);var tt=Math.cos(W);H=Math.sin(W),m=o.x+V*(m-$)+D*tt,W=m+$,tt=W-r*tt,$=tt-$,D=o.y+D-V*S+D*H,V=D+S,r=V-r*H,S=r-S,o.x=Math.min(m,W,tt,$),o.y=Math.min(D,V,r,S),o.width=Math.max(m,W,tt,$)-o.x,o.height=Math.max(D,V,r,S)-o.y}}if(g&&(s===""||0<o.height)){for(;250<z.length;)delete M[z.shift()];M[g]||z.push(g),M[g]=o}return o}getStyle(r){return 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]=P(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:j,enabled:s}=S;return r=r||nt&&nt.path,nt&&nt.undo(),r&&s?(S=P(q,"afterModifyTree",M=>{if(r&&s){let D=r.attr("id");D||r.attr("id",D=l());var z={x:0,y:0};y(j.dx)&&(z.dx=j.dx,delete j.dx),y(j.dy)&&(z.dy=j.dy,delete j.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(j,{"text-anchor":j.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:j=0,translateY:s=0}=this,M=["translate("+j+","+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,j=this.element;F=nt===F.box;let s=!1,M;var z=this.added;let D;if(y(r)?(j.setAttribute("data-z-index",r),r=+r,this[S]===r&&(z=!1)):y(this[S])&&j.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!==j&&(0>r&&M&&!F&&!D?(nt.insertBefore(j,S[D]),s=!0):(t(z)<=r||M&&(!y(r)||0<=r))&&(nt.insertBefore(j,S[D+1]),s=!0));s||(nt.insertBefore(j,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(A,r){this[r]=A,this.doTransform=!0},u}),at(O,"Core/Renderer/RendererRegistry.js",[O["Core/Globals.js"]],function(B){var _;return function(G){G.rendererTypes={};let Q;G.getRendererType=function(Z=Q){return G.rendererTypes[Z]||G.rendererTypes[Q]},G.registerRendererType=function(Z,Y,U){G.rendererTypes[Z]=Y,(!Q||U)&&(Q=Z,B.Renderer=Y)}}(_||(_={})),_}),at(O,"Core/Renderer/SVG/SVGLabel.js",[O["Core/Renderer/SVG/SVGElement.js"],O["Core/Utilities.js"]],function(B,_){const{defined:G,extend:Q,isNumber:Z,merge:Y,pick:U,removeEvent:L}=_;class N extends B{constructor(v,w,P,I,d,x,y,f,T,k){super(),this.paddingRightSetter=this.paddingLeftSetter=this.paddingSetter,this.init(v,"g"),this.textStr=w,this.x=P,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&&Z(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(P=>{typeof v[P]<"u"&&(w[P]=v[P],delete v[P])}),this.text.css(w),"fontSize"in w||"fontWeight"in w?this.updateTextPadding():("width"in w||"textOverflow"in w)&&this.updateBoxSize()}return B.prototype.css.call(this,v)}destroy(){L(this.element,"mouseenter"),L(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),B.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&&G(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(v,w){Z(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={},P=this.padding,I=this.bBox=Z(this.widthSetting)&&Z(this.heightSetting)&&!this.textAlign||!G(v.textStr)?N.emptyBBox:v.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||I.height||0)+2*P;const d=this.renderer.fontMetrics(v);this.baselineOffset=P+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(Q(w,this.deferredAttr)),this.deferredAttr={})}updateTextPadding(){const v=this.text;if(!v.textPath){this.updateBoxSize();const w=this.baseline?0:this.baselineOffset;let P=U(this.paddingLeft,this.padding);G(this.widthSetting)&&this.bBox&&(this.textAlign==="center"||this.textAlign==="right")&&(P+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(P!==v.x||w!==v.y)&&(v.attr("x",P),v.hasBoxWidthChanged&&(this.bBox=v.getBBox(!0)),typeof w<"u"&&v.attr("y",w)),v.x=P,v.y=w}}widthSetter(v){this.widthSetting=Z(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}),at(O,"Core/Renderer/SVG/Symbols.js",[O["Core/Utilities.js"]],function(B){function _(L,N,R,v,w){const P=[];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),L+d*k,N+R*b];a.params={start:I,end:v,cx:L,cy:N},P.push(["M",L+d*f,N+R*T],a),Z(x)&&(a=["A",x,x,0,n,Z(w.clockwise)?1-w.clockwise:0,L+x*f,N+x*T],a.params={start:v,end:I,cx:L,cy:N},P.push(y?["M",L+x*k,N+x*b]:["L",L+x*k,N+x*b],a)),y||P.push(["Z"])}return P}function G(L,N,R,v,w){return w&&w.r?Q(L,N,R,v,w):[["M",L,N],["L",L+R,N],["L",L+R,N+v],["L",L,N+v],["Z"]]}function Q(L,N,R,v,w){return w=(w==null?void 0:w.r)||0,[["M",L+w,N],["L",L+R-w,N],["A",w,w,0,0,1,L+R,N+w],["L",L+R,N+v-w],["A",w,w,0,0,1,L+R-w,N+v],["L",L+w,N+v],["A",w,w,0,0,1,L,N+v-w],["L",L,N+w],["A",w,w,0,0,1,L+w,N],["Z"]]}const{defined:Z,isNumber:Y,pick:U}=B;return{arc:_,callout:function(L,N,R,v,w){const P=Math.min(w&&w.r||0,R,v),I=P+6,d=w&&w.anchorX;w=w&&w.anchorY||0;const x=Q(L,N,R,v,{r:P});return Y(d)&&(L+d>=R?w>N+I&&w<N+v-I?x.splice(3,1,["L",L+R,w-6],["L",L+R+6,w],["L",L+R,w+6],["L",L+R,N+v-P]):x.splice(3,1,["L",L+R,v/2],["L",d,w],["L",L+R,v/2],["L",L+R,N+v-P]):0>=L+d?w>N+I&&w<N+v-I?x.splice(7,1,["L",L,w+6],["L",L-6,w],["L",L,w-6],["L",L,N+P]):x.splice(7,1,["L",L,v/2],["L",d,w],["L",L,v/2],["L",L,N+P]):w&&w>v&&d>L+I&&d<L+R-I?x.splice(5,1,["L",d+6,N+v],["L",d,N+v+6],["L",d-6,N+v],["L",L+P,N+v]):w&&0>w&&d>L+I&&d<L+R-I&&x.splice(1,1,["L",d-6,N],["L",d,N-6],["L",d+6,N],["L",R-P,N])),x},circle:function(L,N,R,v){return _(L+R/2,N+v/2,R/2,v/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(L,N,R,v){return[["M",L+R/2,N],["L",L+R,N+v/2],["L",L+R/2,N+v],["L",L,N+v/2],["Z"]]},rect:G,roundedRect:Q,square:G,triangle:function(L,N,R,v){return[["M",L+R/2,N],["L",L+R,N+v],["L",L,N+v],["Z"]]},"triangle-down":function(L,N,R,v){return[["M",L,N],["L",L+R,N],["L",L+R/2,N+v],["Z"]]}}}),at(O,"Core/Renderer/SVG/TextBuilder.js",[O["Core/Renderer/HTML/AST.js"],O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_,G){const{doc:Q,SVG_NS:Z,win:Y}=_,{attr:U,extend:L,fireEvent:N,isString:R,objectEach:v,pick:w}=G;class P{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 B(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(Q.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(Q.createTextNode(i),b),i=Q.createElementNS(Z,"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"),L(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 P}),at(O,"Core/Renderer/SVG/SVGRenderer.js",[O["Core/Renderer/HTML/AST.js"],O["Core/Color/Color.js"],O["Core/Globals.js"],O["Core/Renderer/RendererRegistry.js"],O["Core/Renderer/SVG/SVGElement.js"],O["Core/Renderer/SVG/SVGLabel.js"],O["Core/Renderer/SVG/Symbols.js"],O["Core/Renderer/SVG/TextBuilder.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y,U,L,N){const{charts:R,deg2rad:v,doc:w,isFirefox:P,isMS:I,isWebKit:d,noop:x,SVG_NS:y,symbolSizes:f,win:T}=G,{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:A,pInt:r,uniqueKey:S}=N;let F;class q{constructor(j,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(j,s,M,z,D,V,o)}init(j,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)),j.appendChild(m),b(j,"dir","ltr"),j.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;P&&j.getBoundingClientRect&&(s=function(){a(j,{left:0,top:0}),H=j.getBoundingClientRect(),a(j,{left:Math.ceil(H.left)-H.left+"px",top:Math.ceil(H.top)-H.top+"px"})},s(),this.unSubPixelFix=k(T,"resize",s))}definition(j){return new B([j]).addToDOM(this.defs.element)}getReferenceURL(){if((P||d)&&w.getElementsByTagName("base").length){if(!p(F)){var j=S();j=new B([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:j},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":`url(#${j})`,fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(w.body),a(j,{position:"fixed",top:0,left:0,zIndex:9e5});const s=w.elementFromPoint(6,6);F=(s&&s.id)==="hitme",w.body.removeChild(j)}if(F)return T.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(j){return this.style=c({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},j)}setStyle(j){this.boxWrapper.css(this.getStyle(j))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){const j=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),h(this.gradients||{}),this.gradients=null,this.defs=j.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}createElement(j){const s=new this.Element;return s.init(this,j),s}getRadialAttr(j,s){return{cx:j[0]-j[2]/2+(s.cx||0)*j[2],cy:j[1]-j[2]/2+(s.cy||0)*j[2],r:(s.r||0)*j[2]}}shadowDefinition(j){const s=[`highcharts-drop-shadow-${this.chartIndex}`,...Object.keys(j).map(z=>j[z])].join("-").replace(/[^a-z0-9\-]/g,""),M=u({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},j);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(j){new L(j).buildSVG()}getContrast(j){return j=_.parse(j).rgba.map(s=>(s/=255,.03928>=s?s/12.92:Math.pow((s+.055)/1.055,2.4))),j=.2126*j[0]+.7152*j[1]+.0722*j[2],1.05/(j+.05)>(j+.05)/.05?"#FFFFFF":"#000000"}button(j,s,M,z,D={},V,o,g,m,H){const W=this.label(j,s,M,m,void 0,void 0,H,void 0,"button"),$=this.styledMode;j=D.states||{};let tt=0;D=u(D),delete D.states;const et=u({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},D.style);delete D.style;let rt=B.filterUserAttributes(D);W.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"},B.filterUserAttributes(V||j.hover||{})),ht=V.style,delete V.style,o=u(rt,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},B.filterUserAttributes(o||j.select||{})),pt=o.style,delete o.style,g=u(rt,{style:{color:"#cccccc"}},B.filterUserAttributes(g||j.disabled||{})),E=g.style,delete g.style),k(W.element,I?"mouseover":"mouseenter",function(){tt!==3&&W.setState(1)}),k(W.element,I?"mouseout":"mouseleave",function(){tt!==3&&W.setState(tt)}),W.setState=function(C){C!==1&&(W.state=tt=C),W.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][C||0]),$||(W.attr([rt,V,o,g][C||0]),C=[et,ht,pt,E][C||0],i(C)&&W.css(C))},$||(W.attr(rt).css(c({cursor:"default"},et)),H&&W.text.css({pointerEvents:"none"})),W.on("touchstart",C=>C.stopPropagation()).on("click",function(C){tt!==3&&z.call(W,C)})}crispLine(j,s,M="round"){const z=j[0],D=j[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),j}path(j){const s=this.styledMode?{}:{fill:"none"};return e(j)?s.d=j:i(j)&&c(s,j),this.createElement("path").attr(s)}circle(j,s,M){return j=i(j)?j:typeof j>"u"?{}:{x:j,y:s,r:M},s=this.createElement("circle"),s.xSetter=s.ySetter=function(z,D,V){V.setAttribute("c"+D,z)},s.attr(j)}arc(j,s,M,z,D,V){return i(j)?(z=j,s=z.y,M=z.r,j=z.x):z={innerR:z,start:D,end:V},j=this.symbol("arc",j,s,M,M,z),j.r=M,j}rect(j,s,M,z,D,V){j=i(j)?j:typeof j>"u"?{}:{x:j,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"&&(j["stroke-width"]=V,c(j,o.crisp(j))),j.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(j)}roundedRect(j){return this.symbol("roundedRect").attr(j)}setSize(j,s,M){this.width=j,this.height=s,this.boxWrapper.animate({width:j,height:s},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:A(M,!0)?void 0:0}),this.alignElements()}g(j){const s=this.createElement("g");return j?s.attr({class:"highcharts-"+j}):s}image(j,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:j}),V.call(g,m)},V?(g.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),M=new T.Image,k(M,"load",s),M.src=j,M.complete&&s({})):g.attr({href:j}),g}symbol(j,s,M,z,D,V){const o=this,g=/^url\((.*?)\)$/,m=g.test(j),H=!m&&(this.symbols[j]?j:"circle"),W=H&&this.symbols[H];let $,tt,et,rt;if(W)typeof s=="number"&&(tt=W.call(this.symbols,Math.round(s||0),Math.round(M||0),z||0,D||0,V)),$=this.path(tt),o.styledMode||$.attr("fill","none"),c($,{symbolName:H||void 0,x:s,y:M,width:z,height:D}),V&&c($,V);else if(m){et=j.match(g)[1];const ht=$=this.image(et);ht.imgwidth=A(V&&V.width,f[et]&&f[et].width),ht.imgheight=A(V&&V.height,f[et]&&f[et].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:J,height:dt,imgwidth:ct,imgheight:xt}=this;if(E=this["img"+C],p(E)){let yt=1;V&&V.backgroundSize==="within"&&J&&dt?(yt=Math.min(J/ct,dt/xt),b(X,{width:Math.round(ct*yt),height:Math.round(xt*yt)})):X&&X.setAttribute(C,E),K||this.translate(((J||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[et]={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:et}),this.imgCount++)}return $}clipRect(j,s,M,z){const D=S()+"-",V=this.createElement("clipPath").attr({id:D}).add(this.defs);return j=this.rect(j,s,M,z,0).add(V),j.id=D,j.clipPath=V,j.count=0,j}text(j,s,M,z){const D={};return z&&(this.allowHTML||!this.forExport)?this.html(j,s,M):(D.x=Math.round(s||0),M&&(D.y=Math.round(M)),p(j)&&(D.text=j),j=this.createElement("text").attr(D),(!z||this.forExport&&!this.allowHTML)&&(j.xSetter=function(V,o,g){const m=g.getElementsByTagName("tspan"),H=g.getAttribute(o);for(let W=0,$;W<m.length;W++)$=m[W],$.getAttribute(o)===H&&$.setAttribute(o,V);g.setAttribute(o,V)}),j)}fontMetrics(j){j=r(Z.prototype.getStyle.call(j,"font-size")||0);const s=24>j?j+3:Math.round(1.2*j);return{h:s,b:Math.round(.8*s),f:j}}rotCorr(j,s,M){let z=j;return s&&M&&(z=Math.max(z*Math.cos(s*v),4)),{x:-j/3*Math.sin(s*v),y:z}}pathToSegments(j){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<j.length;D++)l(M[0])&&t(j[D])&&M.length===z[M[0].toUpperCase()]&&j.splice(D,0,M[0].replace("M","L").replace("m","l")),typeof j[D]=="string"&&(M.length&&s.push(M.slice(0)),M.length=0),M.push(j[D]);return s.push(M.slice(0)),s}label(j,s,M,z,D,V,o,g,m){return new Y(this,j,s,M,z,D,V,o,g,m)}alignElements(){this.alignedObjects.forEach(j=>j.align())}}return c(q.prototype,{Element:Z,SVG_NS:y,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:U,draw:x}),Q.registerRendererType("svg",q,!0),q}),at(O,"Core/Renderer/HTML/HTMLElement.js",[O["Core/Globals.js"],O["Core/Renderer/SVG/SVGElement.js"],O["Core/Utilities.js"]],function(B,_,G){const{isFirefox:Q,isMS:Z,isWebKit:Y,win:U}=B,{css:L,defined:N,extend:R,pick:v,pInt:w}=G,P=[];class I extends _{static compose(x){if(G.pushUnique(P,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),L(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(L(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 L(y,{width:"",whiteSpace:a||"nowrap"}),p=y.offsetWidth;(h>this.oldTextWidth||p>h)&&(/[ \-]/.test(y.textContent||y.innerText)||y.style.textOverflow==="ellipsis")&&(L(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)),L(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=Z&&!/Edge/.test(U.navigator.userAgent)?"-ms-transform":Y?"-webkit-transform":Q?"MozTransform":U.opera?"-o-transform":void 0;k&&(T[k]=T.transform="rotate("+x+"deg)",T[k+(Q?"Origin":"-origin")]=T.transformOrigin=100*y+"% "+f+"px",L(this.element,T))}}return I}),at(O,"Core/Renderer/HTML/HTMLRenderer.js",[O["Core/Renderer/HTML/AST.js"],O["Core/Renderer/SVG/SVGElement.js"],O["Core/Renderer/SVG/SVGRenderer.js"],O["Core/Utilities.js"]],function(B,_,G,Q){const{attr:Z,createElement:Y,extend:U,pick:L}=Q,N=[];class R extends G{static compose(w){return Q.pushUnique(N,w)&&(w.prototype.html=R.prototype.html),w}html(w,P,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;_.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,B.setElementHTML(this.element,L(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(P),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=Z(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}),at(O,"Core/Axis/AxisDefaults.js",[],function(){var B;return function(_){_.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"},_.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:G}=this.axis.chart;return G(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},_.defaultLeftAxisOptions={title:{rotation:270}},_.defaultRightAxisOptions={title:{rotation:90}},_.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},_.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(B||(B={})),B}),at(O,"Core/Foundation.js",[O["Core/Utilities.js"]],function(B){const{addEvent:_,isFunction:G,objectEach:Q,removeEvent:Z}=B;var Y;return function(U){U.registerEventOptions=function(L,N){L.eventOptions=L.eventOptions||{},Q(N.events,function(R,v){L.eventOptions[v]!==R&&(L.eventOptions[v]&&(Z(L,v,L.eventOptions[v]),delete L.eventOptions[v]),G(R)&&(L.eventOptions[v]=R,_(L,v,R,{order:0})))})}}(Y||(Y={})),Y}),at(O,"Core/Axis/Tick.js",[O["Core/Templating.js"],O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_,G){const{deg2rad:Q}=_,{clamp:Z,correctFloat:Y,defined:U,destroyObjectProperties:L,extend:N,fireEvent:R,isNumber:v,merge:w,objectEach:P,pick:I}=G;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,A,r;b=this.parameters.category||(b?I(b[p],a[p],p):p),n&&v(b)&&(b=Y(n.lin2log(b))),f.dateTime&&(c?(A=k.time.resolveDTLFormat(T.dateTimeLabelFormats[!T.grid&&c.higherRanks[p]||c.unitName]),u=A.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),B.format(h.format,nt,k)):f.defaultLabelFormatter.call(nt,nt);T=F.call(S,S);const q=A&&A.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(){L(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=Z(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,A={};return T=h.side===0?T.rotation?-u:-T.getBBox().height:h.side===2?i.y+u:Math.cos(T.rotation*Q)*(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),A.x=y,A.y=Math.round(f),R(this,"afterGetLabelPosition",{pos:A,tickmarkOffset:n,index:a}),A}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,A;h||T.overflow!=="justify"?0>h&&k-c*e<a?A=Math.round(k/Math.cos(h*Q)-a):0<h&&k+c*e>n&&(A=Math.round((b-k)/Math.cos(h*Q))):(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)&&(A=l)),A&&(this.shortenLabel?this.shortenLabel():(i.width=Math.floor(A)+"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):P(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}),at(O,"Core/Axis/Axis.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Axis/AxisDefaults.js"],O["Core/Color/Color.js"],O["Core/Defaults.js"],O["Core/Foundation.js"],O["Core/Globals.js"],O["Core/Axis/Tick.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y,U,L){const{animObject:N}=B,{defaultOptions:R}=Q,{registerEventOptions:v}=Z,{deg2rad:w}=Y,{arrayMax:P,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:A,removeEvent:r,splat:S,syncTimeout:F}=L,q=(j,s)=>i(s,void 0,void 0,u(j.options.allowDecimals,.5>s||j.tickAmount!==void 0),!!j.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(_.defaultXAxisOptions,this.coll==="yAxis"&&_.defaultYAxisOptions,[_.defaultTopAxisOptions,_.defaultRightAxisOptions,_.defaultBottomAxisOptions,_.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,W;if(M.categories)W=`${this.value}`;else if(V)W=D.dateFormat(V,z);else if(H&&1e3<=m)for(;H--&&typeof W>"u";)M=Math.pow(o,H+1),m>=M&&10*z%M===0&&g[H]!==null&&z!==0&&(W=s(z/M,-1)+g[H]);return typeof W>"u"&&(W=1e4<=Math.abs(z)?s(z,-1):s(z,-1,void 0,"")),W}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 W=1,$=0;return D=D&&g.old?g.old.transA:g.transA,D||(D=g.transA),z&&(W*=-1,$=g.len),g.reversed&&(W*=-1,$-=W*(g.sector||g.len)),M?(o=(s*W+$-H)/D+m,V&&(o=g.lin2val(o))):(V&&(s=g.val2lin(s)),s=W*(s-m)*D,o=(g.isRadial?s:x(s))+$+W*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,J,dt){return rt!=="pass"&&(X<J||X>dt)&&(rt?X=d(X,J,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,W=g&&D.oldChartHeight||D.chartHeight,$=g&&D.oldChartWidth||D.chartWidth,tt=z.transB;let et=s.translatedValue,rt=s.force,ht,pt,E,C,K;return s={value:m,lineWidth:H,old:g,force:rt,acrossPanes:s.acrossPanes,translatedValue:et},n(this,"getPlotLinePath",s,function(X){et=u(et,z.translate(m,void 0,void 0,g)),et=d(et,-1e5,1e5),ht=E=Math.round(et+tt),pt=C=Math.round(W-et-tt),c(et)?z.horiz?(pt=o,C=W-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,W,$){W&&g.push.apply(g,m.getLogTickPositions(z,$[W-1],$[W],!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=P(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=P(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,W=s.transA;(V||D||o)&&(g=s.getClosest(),z?(m=z.minPointOffset,H=z.pointRangePadding):s.series.forEach(function($){const tt=D?1:V?u($.options.pointRange,g,0):s.axisPointRange||0,et=$.options.pointPlacement;o=Math.max(o,tt),(!s.single||D)&&($=$.is("xrange")?!V:V,m=Math.max(m,$&&e(et)?0:tt/2),H=Math.max(H,$&&et==="on"?0:tt))}),z=s.ordinal&&s.ordinal.slope&&g?s.ordinal.slope/g:1,s.minPointOffset=m*=z,s.pointRangePadding=H*=z,s.pointRange=Math.min(o,s.single&&D?1:M),V&&g&&(s.closestPointRange=g)),s.translationSlope=s.transA=W=s.staticScale||s.len/(M+H||1),s.transB=s.horiz?s.left:s.bottom,s.minPixelPadding=W*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 W=D.maxPadding,$=D.minPadding,tt=c(D.tickInterval)&&0<=D.tickInterval?D.tickInterval:void 0,et=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(et)&&(this.dataMin>=et?(E=et,$=0):this.dataMax<=et&&(rt=et,W=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)&&W&&(this.max+=M*W)),!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)&&(et=et||0,!y(ht)&&this.min<et&&this.dataMin>=et?this.min=this.options.minRange?Math.min(et,this.max-this.minRange):et:!y(pt)&&this.max>et&&this.dataMax<=et&&(this.max=this.options.minRange?Math.max(et,this.min+this.minRange):et)),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&&!tt&&g===this.linkedParent.options.tickPixelInterval?tt=this.linkedParent.tickInterval:u(tt,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,m?1:(this.max-this.min)*g/Math.max(this.len,g)),V&&!s){const C=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach(function(K){K.forceCrop=K.forceCropping&&K.forceCropping(),K.processData(C)}),n(this,"postProcessData",{hasExtremesChanged:C})}this.setAxisTranslation(),n(this,"initialAxisTranslation"),this.pointRange&&!tt&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),s=u(D.minTickInterval,this.dateTime&&!this.series.some(C=>C.noSharedTooltip)?this.closestPointRange:0),!tt&&this.tickInterval<s&&(this.tickInterval=s),this.dateTime||this.logarithmic||tt||(this.tickInterval=q(this,this.tickInterval)),this.tickAmount||(this.tickInterval=this.unsquish()),this.setTickPositions()}setTickPositions(){var s=this.options;const M=s.tickPositions,z=s.tickPositioner;var D=this.getMinorTickInterval(),V=this.hasVerticalPanning(),o=this.coll==="colorAxis";const g=(o||!V)&&s.startOnTick;V=(o||!V)&&s.endOnTick,o=[];let m;if(this.tickmarkOffset=this.categories&&s.tickmarkPlacement==="between"&&this.tickInterval===1?.5:0,this.minorTickInterval=D==="auto"&&this.tickInterval?this.tickInterval/s.minorTicksPerMajor:D,this.single=this.min===this.max&&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:W,options:$}=H;return[W?$.left:$.top,$.width,$.height,$.pane].join()},m=g(this);this.chart[this.coll].forEach(function(H){const{series:W}=H;W.length&&W.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 W=u(s.threshold,s.softThreshold?0:null),$=s.tickInterval;let tt;if(c(m)&&(tt=.5>m?Math.ceil(m*(g-1)):Math.floor(m*(g-1)),V.reversed&&(tt=g-1-tt)),s.hasData()&&c(D)&&c(z)){const et=()=>{s.transA*=(H-1)/(g-1),s.min=V.startOnTick?o[0]:Math.min(D,o[0]),s.max=V.endOnTick?o[o.length-1]:Math.max(z,o[o.length-1])};if(c(tt)&&c(s.threshold)){for(;o[tt]!==W||o.length!==g||o[0]>D||o[o.length-1]<z;){for(o.length=0,o.push(s.threshold);o.length<g;)o[tt]===void 0||o[tt]>s.threshold?o.unshift(x(o[0]-$)):o.push(x(o[o.length-1]+$));if($>8*s.tickInterval)break;$*=2}et()}else if(H<g){for(;o.length<g;)o.length%2||D===W?o.push(x(o[o.length-1]+$)):o.unshift(x(o[0]-$));et()}if(y(M)){for($=W=o.length;$--;)(M===3&&$%2===1||2>=M&&0<$&&$<W-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 W=H.newMin,$=H.newMax;(W!==z.min||$!==z.max)&&(z.allowZoomOutside||(y(D)&&(W<g&&(W=g),W>m&&(W=m)),y(V)&&($<g&&($=g),$>m&&($=m))),z.displayBtn=typeof W<"u"||typeof $<"u",z.setExtremes(W,$,!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(A(u(M.width,s.plotWidth-z[3]+z[1]),s.plotWidth)),o=this.height=Math.round(A(u(M.height,s.plotHeight-z[0]+z[2]),s.plotHeight)),g=this.top=Math.round(A(u(M.top,s.plotTop+z[0]),s.plotHeight,s.plotTop));M=this.left=Math.round(A(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(et){let rt=et/(D||1);return rt=1<rt?Math.ceil(rt):1,rt*z>g&&et!==1/0&&D!==1/0&&g&&(rt=Math.ceil(g/z)),x(rt*z)};let H=z,W,$=Number.MAX_VALUE,tt;if(M){if(s.staggerLines||(c(V)?tt=[V]:D<s.autoRotationLimit&&(tt=s.autoRotation)),tt){let et;for(const rt of tt)(rt===V||rt&&-90<=rt&&90>=rt)&&(M=m(Math.abs(o/Math.sin(w*rt))),et=M+Math.abs(rt/360),et<$&&($=et,W=rt,H=M))}}else H=m(o);return this.autoRotation=tt,this.labelRotation=u(W,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 W={},$=this.labelMetrics(),tt=o.textOverflow;let et,rt,ht=0;if(e(V.rotation)||(W.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?W.rotation=this.labelRotation:this.labelRotation=0;else if(m&&(et=H,!tt))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"))}W.rotation&&(et=ht>.5*s.chartHeight?.33*s.chartHeight:ht,tt||(rt="ellipsis")),(this.labelAlign=V.align||this.autoLabelAlign(this.labelRotation))&&(W.align=this.labelAlign),z.forEach(function(E){const C=(E=D[E])&&E.label,K=o.width,X={};C&&(C.attr(W),E.shortenLabel?E.shortenLabel():et&&!K&&o.whiteSpace!=="nowrap"&&(et<C.textPxLength||C.element.tagName==="SPAN")?(X.width=et+"px",tt||(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=W.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,W=M.renderer,$=M.inverted&&!s.isZAxis?[1,0,3,2][V]:V;var tt=s.hasData();const et=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,J=0,dt;var ct=0;let xt=0;if(s.showAxis=X=tt||D.showEmpty,s.staggerLines=s.horiz&&rt.staggerLines||void 0,!s.axisGroup){const yt=(ft,mt,Ct)=>W.g(ft).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)}tt||s.isLinked?(g.forEach(function(yt){s.generateTick(yt)}),s.renderUnsquish(),s.reserveSpaceDefault=V===0||V===2||{1:"left",3:"right"}[V]===s.labelAlign,u(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,ft){yt.destroy(),delete o[ft]}),et&&et.text&&et.enabled!==!1&&(s.addTitle(X),X&&!ht&&et.reserveSpace!==!1&&(s.titleOffset=J=s.axisTitle.getBBox()[z?"height":"width"],dt=et.offset,ct=y(dt)?0:u(et.margin,z?5:10))),s.renderLine(),s.offset=C*u(D.offset,pt[V]?pt[V]+(D.margin||0):0),s.tickRotCorr=s.tickRotCorr||{x:0,y:0},tt=V===0?-s.labelMetrics().h:V===2?s.tickRotCorr.y:0,ct=Math.abs(xt)+ct,xt&&(ct=ct-tt+C*(z?u(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)+J+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,W=o.x,$=o.y,tt=this.chart.renderer.fontMetrics(s);return s=s?Math.max(s.getBBox(!1,0).height-tt.h-1,0):0,V={low:g+(M?0:V),middle:g+V/2,high:g+(M?V:0)}[o.align],z=(M?D+this.height:z)+(M?1:-1)*(m?-1:1)*(this.axisTitleMargin||0)+[-s,s,tt.f,-s][this.side],M={x:M?V+W:z+(m?this.width:0)+H+W,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,W=s.alternateBands,$=D.stackLabels,tt=D.alternateGridColor;var et=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,W].forEach(function(X){l(X,function(J){J.isActive=!1})}),c(et)){const X=this.isXAxis?M.yAxis[0]:M.xAxis[0],J=[1,-1,-1,1][this.side];X&&(et=X.toPixels(et,!0),s.horiz&&(et=X.len-et),s.offset=J*et)}if(s.hasData()||V){const X=s.chart.hasRendered&&s.old&&c(s.old.min);s.minorTickInterval&&!s.categories&&s.getMinorTickPositions().forEach(function(J){s.renderMinorTick(J,X)}),o.length&&(o.forEach(function(J,dt){s.renderTick(J,dt,X)}),rt&&(s.min===0||s.single)&&(m[-1]||(m[-1]=new U(s,-1,null,!0)),m[-1].render(-1))),tt&&o.forEach(function(J,dt){K=typeof o[dt+1]<"u"?o[dt+1]+rt:s.max-rt,dt%2===0&&J<s.max&&K<=s.max+(M.polar?-rt:rt)&&(W[J]||(W[J]=new Y.PlotLineOrBand(s)),C=J+rt,W[J].options={from:z?z.lin2log(C):C,to:z?z.lin2log(K):K,color:tt,className:"highcharts-alternate-grid"},W[J].render(),W[J].isActive=!0)}),s._addedPlotLB||(s._addedPlotLB=!0,(D.plotLines||[]).concat(D.plotBands||[]).forEach(function(J){s.addPlotBandOrLine(J)}))}[m,H,W].forEach(function(X){const J=[],dt=E.duration;l(X,function(ct,xt){ct.isActive||(ct.render(xt,!1,0),ct.isActive=!1,J.push(xt))}),F(function(){let ct=J.length;for(;ct--;)X[J[ct]]&&!X[J[ct]].isActive&&(X[J[ct]].destroy(),delete X[J[ct]])},X!==W&&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?G.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=_.defaultXAxisOptions,nt.keepProps="coll extKey hcEvents names series userMax userMin".split(" "),nt}),at(O,"Core/Axis/DateTimeAxis.js",[O["Core/Utilities.js"]],function(B){const{addEvent:_,getMagnitude:G,normalizeTickInterval:Q,timeUnits:Z}=B;var Y;return function(U){function L(){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 B.pushUnique(R,w)&&(w.keepProps.push("dateTime"),w.prototype.getTimeTicks=L,_(w,"init",N)),w};class v{constructor(P){this.axis=P}normalizeTimeTickInterval(P,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=Z[I[0]],y=I[1],f;for(f=0;f<d.length&&(I=d[f],x=Z[I[0]],y=I[1],!(d[f+1]&&P<=(x*y[y.length-1]+Z[d[f+1][0]])/2));f++);return x===Z.year&&P<5*x&&(y=[1,2,5]),P=Q(P/x,y,I[0]==="year"?Math.max(G(P/x),1):1),{unitRange:x,count:P,unitName:I[0]}}getXDateFormat(P,I){const{axis:d}=this,x=d.chart.time;return d.closestPointRange?x.getDateFormat(d.closestPointRange,P,d.options.startOfWeek,I)||x.resolveDTLFormat(I.year).main:x.resolveDTLFormat(I.day).main}}U.Additions=v}(Y||(Y={})),Y}),at(O,"Core/Axis/LogarithmicAxis.js",[O["Core/Utilities.js"]],function(B){const{addEvent:_,normalizeTickInterval:G,pick:Q}=B;var Z;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 L(){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 B.pushUnique(N,v)&&(v.keepProps.push("logarithmic"),_(v,"init",U),_(v,"afterInit",L)),v};class R{constructor(w){this.axis=w}getLogTickPositions(w,P,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,P,I);else if(.08<=w){f=Math.floor(P);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>P&&(!d||a<=I)&&typeof a<"u"&&T.push(a),a>I&&(p=!0),a=n}else P=this.lin2log(P),I=this.lin2log(I),w=d?x.getMinorTickInterval():f.tickInterval,w=Q(w==="auto"?null:w,this.minorAutoInterval,f.tickPixelInterval/(d?5:1)*(I-P)/((d?y/x.tickPositions.length:y)||1)),w=G(w),T=x.getLinearTickPositions(w,P,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}(Z||(Z={})),Z}),at(O,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[O["Core/Utilities.js"]],function(B){const{erase:_,extend:G,isNumber:Q}=B;var Z;return function(Y){function U(x){return this.addPlotBandOrLine(x,"plotBands")}function L(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=!Q(this.min)||!Q(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&&_(b,b[k])})}}function P(x){this.removePlotBandOrLine(x)}const I=[];let d;Y.compose=function(x,y){return d||(d=x),B.pushUnique(I,y)&&G(y.prototype,{addPlotBand:U,addPlotLine:N,addPlotBandOrLine:L,getPlotBandPath:R,removePlotBand:v,removePlotLine:P,removePlotBandOrLine:w}),y}}(Z||(Z={})),Z}),at(O,"Core/Axis/PlotLineOrBand/PlotLineOrBand.js",[O["Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js"],O["Core/Utilities.js"]],function(B,_){const{arrayMax:G,arrayMin:Q,defined:Z,destroyObjectProperties:Y,erase:U,fireEvent:L,merge:N,objectEach:R,pick:v}=_;class w{static compose(I){return B.compose(w,I)}constructor(I,d){this.axis=I,d&&(this.options=d,this.id=d.id)}render(){L(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=Z(e)&&Z(c);l=Z(t);const A=!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()),A&&(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),(A||!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&&(Z(p.text)||Z(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=Q(y),T=Q(d),k.align(I,!1,{x,y:T,width:G(y)-x,height:G(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 Z(I.formatter)?I.formatter.call(this):I.text}destroy(){U(this.axis.plotLinesAndBands,this),delete this.axis,Y(this)}}return w}),at(O,"Core/Tooltip.js",[O["Core/Templating.js"],O["Core/Globals.js"],O["Core/Renderer/RendererUtilities.js"],O["Core/Renderer/RendererRegistry.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z){const{format:Y}=B,{doc:U,isSafari:L}=_,{distribute:N}=G,{addEvent:R,clamp:v,css:w,discardElement:P,extend:I,fireEvent:d,isArray:x,isNumber:y,isString:f,merge:T,pick:k,splat:b,syncTimeout:n}=Z;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(),P(this.container)),Z.clearTimeout(this.hideTimer),Z.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,A=0;h.forEach(function(r){(r=r.pos(!0))&&(u+=r[0],A+=r[1])}),u/=h.length,A/=h.length,this.shared&&1<h.length&&c&&(i?u=c.chartX:A=c.chartY),h=[u-e,A-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 A=!this.label.hasClass("highcharts-label");(!t&&A||t&&!A)&&this.destroy()}if(!this.label){if(this.outside){A=this.chart.options.chart.style;const r=Q.getRendererType();this.container=l=_.doc.createElement("div"),l.className="highcharts-tooltip-container",w(l,{position:"absolute",top:"1px",pointerEvents:i,zIndex:Math.max(this.options.style.zIndex||0,(A&&A.zIndex||0)+3)}),_.doc.body.appendChild(l),this.renderer=u=new r(l,0,0,A,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,A=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(A?[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"),j=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,W,$,tt,et){const rt=A?g==="y"?i*q.scaleY:i*q.scaleX:i,ht=(H-W)/2,pt=W<$-i,E=$+i+W<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(et-W,0>C-u?C:C-u);else if(E)l[g]=Math.max(tt,$+u+H>m?$:$+u);else return!1},D=function(g,m,H,W,$){let tt;return $<i||$>m-i?tt=!1:l[g]=$<H/2?1:$>m-W/2?m-W-2:$-H/2,tt},V=function(g){const m=nt;nt=j,j=m,s=g},o=function(){z.apply(0,nt)!==!1?D.apply(0,j)!==!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;Z.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)),A=i.followPointer||1<i.len;I(l,{x:u?(2*l.x+h)/3:h,y:u?(l.y+c)/2:c,anchorX:A?void 0:u?(2*l.anchorX+e)/3:e,anchorY:A?void 0:u?(l.anchorY+t)/2:t}),i.getLabel().attr(l),i.drawTracker(),u&&(Z.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],A=[];var r=t.format,S=t.formatter||this.defaultFormatter;const F=this.shared,q=e.styledMode;let nt={};if(t.enabled&&u.series){Z.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 j=h[0],s=h[1];if(F&&this.allowShared?(i.applyInactiveState(l),l.forEach(function(M){M.setState("hover"),A.push(M.getLabelConfig())}),nt=u.getLabelConfig(),nt.points=A):nt=u.getLabelConfig(),this.len=A.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=j,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:j,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,J,dt,ct,xt=!0){return dt?(J=H?0:rt,X=v(X-ct/2,o.left,o.right-ct-(t.outside?W:0))):(J-=tt,X=xt?X-ct-z:X+z,X=v(X,xt?X:o.left,o.right)),{x:X,y:J}}const t=this,{chart:i,chart:{chartWidth:l,chartHeight:u,plotHeight:A,plotLeft:r,plotTop:S,pointer:F,scrollablePixelsY:q=0,scrollablePixelsX:nt,scrollingContainer:{scrollLeft:j,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:j,right:j+l,top:s,bottom:s+u},g=t.getLabel(),m=this.renderer||i.renderer,H=!(!i.xAxis[0]||!i.xAxis[0].opposite),{left:W,top:$}=F.getChartPosition();let tt=S+s,et=0,rt=A-q;f(h)&&(h=[!1,h]),h=h.slice(0,c.length+1).reduce(function(X,J,dt){if(J!==!1&&J!==""){dt=c[dt-1]||{isHeader:!0,plotX:c[0].plotX,plotY:A,series:{}};const Ct=dt.isHeader;var ct=Ct?t:dt.series,xt;{var yt=dt;J=J.toString();var ft=ct.tt;const{isHeader:Mt,series:_t}=yt;ft||(ft={padding:D.padding,r:D.borderRadius},M||(ft.fill=D.backgroundColor,ft["stroke-width"]=(xt=D.borderWidth)!==null&&xt!==void 0?xt:1),ft=m.label("",0,0,D[Mt?"headerShape":"shape"],void 0,void 0,D.useHTML).addClass(t.getClassName(yt,!0,Mt)).attr(ft).add(g)),ft.isActive=!0,ft.attr({text:J}),M||ft.css(D.style).attr({stroke:D.borderColor||yt.color||_t.color||"#333333"}),xt=ft}xt=ct.tt=xt,yt=xt.getBBox(),ct=yt.width+xt.strokeWidth(),Ct&&(et=yt.height,rt+=et,H&&(tt-=et));{const{isHeader:Mt,plotX:_t=0,plotY:At=0,series:Bt}=dt;if(Mt){J=r+_t;var mt=S+A/2}else{const{xAxis:Ht,yAxis:Lt}=Bt;J=Ht.pos+v(_t,-z,Ht.len+z),Bt.shouldShowTooltip(0,Lt.pos-S+At,{ignoreX:!0})&&(mt=Lt.pos+At)}J=v(J,o.left-z,o.right+z),mt={anchorX:J,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:J}=t;return J=(J?W:0)+X.anchorX,J<o.left&&J+X.boxWidth<o.right?!0:J<W-o.left+X.boxWidth&&o.right-J>J})&&(h=h.map(X=>{const{x:J,y:dt}=e(X.anchorX,X.anchorY,X.point.isHeader,X.boxWidth,!1);return I(X,{target:dt,x:J})})),t.cleanSplit(),N(h,rt);var ht=W,pt=W;h.forEach(function(X){const{x:J,boxWidth:dt,isHeader:ct}=X;ct||(t.outside&&W+J<ht&&(ht=W+J),!ct&&t.outside&&ht+dt>pt&&(pt=W+J))}),h.forEach(function(X){const{x:J,anchorX:dt,anchorY:ct,pos:xt,point:{isHeader:yt}}=X,ft={visibility:typeof xt>"u"?"hidden":"inherit",x:J,y:(xt||0)+tt,anchorX:dt,anchorY:ct};if(t.outside&&J<dt){const mt=W-ht;0<mt&&(yt||(ft.x=J+mt,ft.anchorX=dt+mt),yt&&(ft.x=(pt-ht)/2,ft.anchorX=dt+mt))}X.tt.attr(ft)});const{container:E,outside:C,renderer:K}=t;if(C&&E&&K){const{width:X,height:J,x:dt,y:ct}=g.getBBox();K.setSize(X+dt,J+ct,!1),E.style.left=ht+"px",E.style.top=$+"px"}L&&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,A=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){A=A.replace("{point."+S+"}","{point."+S+":"+u+"}")}),e.chart.styledMode&&(A=this.styledModeFormat(A)),r.text=Y(A,{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:A,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+=A-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+=A-i.y),this.move(Math.round(i.x),Math.round(i.y||0),F,h)}}return function(p){const h=[];p.compose=function(c){Z.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}),at(O,"Core/Series/Point.js",[O["Core/Renderer/HTML/AST.js"],O["Core/Animation/AnimationUtilities.js"],O["Core/Defaults.js"],O["Core/Templating.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z){const{animObject:Y}=_,{defaultOptions:U}=G,{format:L}=Q,{addEvent:N,defined:R,erase:v,extend:w,fireEvent:P,getNestedProperty:I,isArray:d,isFunction:x,isNumber:y,isObject:f,merge:T,objectEach:k,pick:b,syncTimeout:n,removeEvent:a,uniqueKey:p}=Z;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),A=()=>{(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(A,u.duration)):A(),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(A){l.select&&l.select(null,A.ctrlKey||A.metaKey||A.shiftKey)}),P(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,A;for(e=e||{graphic:1,dataLabel:1},e.graphic&&i.push("graphic"),e.dataLabel&&i.push("dataLabel","dataLabelPath","dataLabelUpper","connector"),A=i.length;A--;)u=i[A],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++,P(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 A={},r=0,S=0;if(y(e)||e===null)A[l[0]]=e;else if(d(e))for(!i&&e.length>u&&(t=typeof e[0],t==="string"?A.name=e[0]:t==="number"&&(A.x=e[0]),r++);S<u;)i&&typeof e[r]>"u"||(0<l[S].indexOf(".")?h.prototype.setNestedProperty(A,e[r],l[S]):A[l[S]]=e[r]),r++,S++;else typeof e=="object"&&(A=e,e.dataLabels&&(t._hasPointLabels=!0),e.marker&&(t._hasPointMarkers=!0));return A}pos(e,t=this.plotY){if(!this.destroyed){const{plotX:i,series:l}=this,{chart:u,xAxis:A,yAxis:r}=l;let S=0,F=0;if(y(i)&&y(t))return e&&(S=A?A.pos:u.plotLeft,F=r?r.pos:u.plotTop),u.inverted&&A&&r?[r.len-t+F,A.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,A,r){return l[u]=r.length-1===A?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||"",A=i.valueSuffix||"";return t.chart.styledMode&&(e=t.chart.tooltip.styledModeFormat(e)),(t.pointArrayMap||["y"]).forEach(function(r){r="{point."+r,(u||A)&&(e=e.replace(RegExp(r+"}","g"),u+r+"}"+A)),e=e.replace(RegExp(r+"}","g"),r+":,."+l+"f}")}),L(e,{point:this,series:this.series},t.chart)}update(e,t,i,l){function u(){A.applyOptions(e);var j=S&&A.hasMockGraphic;j=A.y===null?!j:j,S&&j&&(A.graphic=S.destroy(),delete A.hasMockGraphic),f(e,!0)&&(S&&S.element&&e&&e.marker&&typeof e.marker.symbol<"u"&&(A.graphic=S.destroy()),e&&e.dataLabels&&A.dataLabel&&(A.dataLabel=A.dataLabel.destroy()),A.connector&&(A.connector=A.connector.destroy())),nt=A.index,r.updateParallelArrays(A,nt),q.data[nt]=f(q.data[nt],!0)||f(e,!0)?A.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 A=this,r=A.series,S=A.graphic,F=r.chart,q=r.options;let nt;t=b(t,!0),l===!1?u():A.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(A){const r=A.series;A.selected&&A!==i&&(A.selected=A.options.selected=!1,r.options.data[r.data.indexOf(A)]=A.options,A.setState(u.hoverPoints&&r.options.inactiveOtherPoints?"inactive":""),A.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"]||{},A=U.plotOptions[i.type].marker&&i.options.marker;const r=A&&A.enabled===!1,S=A&&A.states&&A.states[e||"normal"]||{},F=S.enabled===!1,q=this.marker||{},nt=i.chart,j=A&&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,j&&(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,A.animation)),D&&D.hide()}else e&&S&&(A=q.symbol||i.symbol,D&&D.currentSymbol!==A&&(D=D.destroy()),M&&(D?D[t?"animate":"attr"]({x:M.x,y:M.y}):A&&(i.stateMarkerGraphic=D=nt.renderer.symbol(A,M.x,M.y,M.width,M.height).add(i.markerGroup),D.currentSymbol=A)),!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},B.filterUserAttributes(u.attributes||{})))):s&&s.point&&s.point.haloPath&&s.animate({d:s.point.haloPath(0)},null,s.hide),P(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}),at(O,"Core/Pointer.js",[O["Core/Color/Color.js"],O["Core/Globals.js"],O["Core/Utilities.js"]],function(B,_,G){const{parse:Q}=B,{charts:Z,noop:Y}=_,{addEvent:U,attr:L,css:N,defined:R,extend:v,find:w,fireEvent:P,isNumber:I,isObject:d,objectEach:x,offset:y,pick:f,splat:T}=G;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=[],_.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 P(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,A=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||A||F||(this.selectionMarker=F=a.renderer[q](),F.attr({class:"highcharts-selection-marker",zIndex:7}).add(),a.styledMode||F.attr({fill:p.selectionMarkerFill||Q("#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 P(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(A){if(A.zoomEnabled&&R(A.min)&&(h||a[{xAxis:"zoomX",yAxis:"zoomY"}[A.coll]])&&I(c)&&I(e)&&I(t)&&I(i)){var r=A.horiz;const S=n.type==="touchend"?A.minPixelPadding:0,F=A.toValue((r?c:e)+S);r=A.toValue((r?c+t:e+i)-S),l[A.coll].push({axis:A,min:Math.min(F,r),max:Math.max(F,r)}),u=!0}}),u&&P(p,"selection",l,function(A){p.zoom(v(A,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};P(this,"beforeGetHoverData",u),l=a&&!a.stickyTracking?[a]:p.filter(r=>r.stickyTracking&&(u.filter||i)(r));const A=h||!e?n:this.findNearestKDPoint(l,c,e);return a=A&&A.series,A&&(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===A.x&&!F.isNull});d(S)&&(r.boosted&&r.boost&&(S=r.boost.getPoint(S)),t.push(S))})):t.push(A)),u={hoverPoint:A},P(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=L(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(),P(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")?(P(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})&&P(a,"click",n)))}onContainerMouseDown(n){const a=((n.buttons||n.button)&1)===1;n=this.normalize(n),_.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=Z[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=Z[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=Z[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),A={};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,j=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(j,s);q.min=Math.min(F.pos,Math.min(j,s)-nt),q.max=Math.max(F.pos+F.len,M+nt)}}),a.res=!0):r?this.runPointActions(a.normalize(n)):h.length&&(P(p,"touchpan",{originalEvent:n},()=>{S||(a.selectionMarker=S=v({destroy:Y,touch:!0},p.plotBox)),a.pinchTranslate(h,c,l,S,A,t),a.hasPinched=i,a.scaleGroups(l,A)}),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",A=n?"X":"Y",r="chart"+A,S=n?"width":"height",F=l["plot"+(n?"Left":"Top")],q=l.inverted,nt=l.bounds[n?"h":"v"],j=a.length===1,s=a[0][r],M=!j&&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=!j&&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"+A]=V,h["translate"+A]=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(A){l.indexOf(A)===-1&&A.setState()}),h.hoverSeries!==i&&i.onMouseOver(),this.applyInactiveState(l),(l||[]).forEach(function(A){A.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(A){const r=Z[k.hoverChartIndex];r&&r.pointer.onDocumentMouseMove(A)}),this.eventsToUnbind.push(this.unDocMouseMove)),h.axes.forEach(function(A){const r=f((A.crosshair||{}).snap,!0);let S;r&&((S=h.hoverPoint)&&S.series[A.coll]===A||(S=w(l,F=>F.series&&F.series[A.coll]===A))),S||!r?A.drawCrosshair(n,S):A.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;_.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=_.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){G.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}),at(O,"Core/Legend/Legend.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Templating.js"],O["Core/Globals.js"],O["Core/Series/Point.js"],O["Core/Renderer/RendererUtilities.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y){const{animObject:U,setAnimation:L}=B,{format:N}=_,{marginNames:R}=G,{distribute:v}=Z,{addEvent:w,createElement:P,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:A}=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}),A&&(q&&A.isMarker&&(nt=e.pointAttribs(),t||(nt.stroke=nt.fill=S)),A.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,A=u.symbolPadding;const r=!u.rtl;u=e.checkbox,t&&t.element&&(A={translateX:r?i:this.legendWidth-i-2*A-4,translateY:l},t[d(t.translateY)?"animate":"attr"](A,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 A=u.checkbox;let r;A&&(r=l+i+A.y+(this.scrollOffset||0)+3,I(A,{left:e.translateX+u.checkboxOffset+A.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,A=this.symbolWidth,r=u.symbolPadding||0,S=this.itemStyle,F=this.itemHiddenStyle,q=u.layout==="horizontal"?b(u.itemDistance,20):0,nt=!u.rtl,j=!e.series,s=!j&&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=A+r+q+(z?20:0),o||(t.group=l.g("legend-item").addClass("highcharts-"+s.type+"-series highcharts-color-"+e.colorIndex+(V?" "+V:"")+(j?" highcharts-series-"+e.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.label=o=l.text("",nt?A+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,A=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+A),this.lastLineHeight=0),this.lastItemY=r+this.itemY+A,this.lastLineHeight=Math.max(u,this.lastLineHeight),q.x=this.itemX,q.y=this.itemY,l?this.itemX+=t:(this.itemY+=r+u+A,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(A,r){A.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 A,r=i;let S;u.yAxis&&(u.xAxis.options.reversed&&(r=!r),u.points&&(A=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?(A=A?A.plotY:u.yAxis.height,A+=S-.3*r):A=S+u.yAxis.height,t.push({target:A,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 A,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,A=this.lastItemY+this.lastLineHeight+this.titleHeight,A=this.handleOverflow(A),A+=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<A&&S[S.placed?"animate":"attr"](S.crisp.call({},{x:0,y:0,width:u,height:A},S.strokeWidth())),r[F?"show":"hide"](),e.styledMode&&r.getStyle("display")==="none"&&(u=A=0),this.legendWidth=u,this.legendHeight=A,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 A=u.y;const r=u.verticalAlign==="top",S=this.padding,F=u.maxHeight,q=u.navigation,nt=b(q.animation,!0),j=q.arrowSize||12,s=this.pages,M=this.allItems,z=function(W){typeof W=="number"?H.attr({height:W}):H&&(t.clipRect=H.destroy(),t.contentGroup.clip()),t.contentGroup.div&&(t.contentGroup.div.style.clip=W?"rect("+S+"px,9999px,"+(S+W)+"px,0)":"auto")},D=function(W){return t[W]=l.circle(0,0,1.3*j).translate(j/2,j/2).add(m),i.styledMode||t[W].attr("fill","rgba(0,0,0,0.0001)"),t[W]};let V,o,g;A=i.spacingBox.height+(r?-A:A)-S;let m=this.nav,H=this.clipRect;return u.layout!=="horizontal"||u.verticalAlign==="middle"||u.floating||(A/=2),F&&(A=Math.min(A,F)),s.length=0,e&&0<A&&e>A&&q.enabled!==!1?(this.clipHeight=V=Math.max(A-20-this.titleHeight-S,0),this.currentPage=b(this.currentPage,1),this.fullHeight=e,M.forEach((W,$)=>{g=W.legendItem||{},W=g.y||0;const tt=Math.round(g.label.getBBox().height);let et=s.length;(!et||W-s[et-1]>V&&(o||W)!==s[et-1])&&(s.push(o||W),et++),g.pageIx=et-1,o&&((M[$-1].legendItem||{}).pageIx=et-1),$===M.length-1&&W+tt-s[et-1]>V&&W>s[et-1]&&(s.push(W),g.pageIx=et),W!==o&&(o=W)}),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,j,j).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,j,j).add(m),D("downTracker").on("click",function(){t.scroll(1,nt)})),t.scroll(0),e=A):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,A=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"&&L(t,i),this.nav.attr({translateX:F,translateY:A+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||{},A=l.chart.renderer.boxWrapper,r=e instanceof Q,S="highcharts-legend-"+(r?"point":"series")+"-active",F=l.chart.styledMode;i=i?[t,u.symbol]:[u.group];const q=nt=>{l.allItems.forEach(j=>{e!==j&&[j].concat(j.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&&A.addClass(S),F||t.css(l.options.itemHoverStyle)}).on("mouseout",function(){l.chart.styledMode||t.css(k(e.visible?l.itemStyle:l.itemHiddenStyle)),q(""),A.removeClass(S),e.setState()}).on("click",function(j){const s=function(){e.setVisible&&e.setVisible(),q(e.visible?"inactive":"")};A.removeClass(S),j={browserEvent:j},e.firePointEvent?e.firePointEvent("legendItemClick",j,s):f(e,"legendItemClick",j,s)})}createCheckboxForItem(e){e.checkbox=P("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}),at(O,"Core/Legend/LegendSymbol.js",[O["Core/Utilities.js"]],function(B){const{extend:_,merge:G,pick:Q}=B;var Z;return function(Y){Y.lineMarker=function(U,L){L=this.legendItem=this.legendItem||{};var N=this.options;const R=U.symbolWidth,v=U.symbolHeight,w=v/2,P=this.chart.renderer,I=L.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")),L.line=P.path().addClass("highcharts-graph").attr(d).add(I),d["stroke-linecap"]&&(y=Math.min(L.line.strokeWidth(),R)/2),R&&L.line.attr({d:[["M",y,U],["L",R-y,U]]}),x&&x.enabled!==!1&&R&&(N=Math.min(Q(x.radius,w),w),this.symbol.indexOf("url")===0&&(x=G(x,{width:v,height:v}),N=0),L.symbol=L=P.symbol(this.symbol,R/2-N,U-N,2*N,2*N,_({context:"legend"},x)).addClass("highcharts-point").add(I),L.isMarker=!0)},Y.rectangle=function(U,L){L=L.legendItem||{};const N=U.symbolHeight,R=U.options.squareSymbol;L.symbol=this.chart.renderer.rect(R?(U.symbolWidth-N)/2:0,U.baseline-N+1,R?N:U.symbolWidth,N,Q(U.options.symbolRadius,N/2)).addClass("highcharts-point").attr({zIndex:3}).add(L.group)}}(Z||(Z={})),Z}),at(O,"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:B}=this.series.chart;return typeof this.y!="number"?"":B(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"}}),at(O,"Core/Series/SeriesRegistry.js",[O["Core/Globals.js"],O["Core/Defaults.js"],O["Core/Series/Point.js"],O["Core/Utilities.js"]],function(B,_,G,Q){const{defaultOptions:Z}=_,{extendClass:Y,merge:U}=Q;var L;return function(N){function R(v,w){const P=Z.plotOptions||{},I=w.defaultOptions,d=w.prototype;d.type=v,d.pointClass||(d.pointClass=G),I&&(P[v]=I),N.seriesTypes[v]=w}N.seriesTypes=B.seriesTypes,N.registerSeriesType=R,N.seriesType=function(v,w,P,I,d){const x=Z.plotOptions||{};return w=w||"",x[v]=U(x[w],P),R(v,Y(N.seriesTypes[w]||function(){},I)),N.seriesTypes[v].prototype.type=v,d&&(N.seriesTypes[v].prototype.pointClass=Y(G,d)),N.seriesTypes[v]}}(L||(L={})),L}),at(O,"Core/Series/Series.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Defaults.js"],O["Core/Foundation.js"],O["Core/Globals.js"],O["Core/Legend/LegendSymbol.js"],O["Core/Series/Point.js"],O["Core/Series/SeriesDefaults.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Renderer/SVG/SVGElement.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y,U,L,N,R){const{animObject:v,setAnimation:w}=B,{defaultOptions:P}=_,{registerEventOptions:I}=G,{hasTouch:d,svg:x,win:y}=Q,{seriesTypes:f}=L,{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:A,isArray:r,isNumber:S,isString:F,merge:q,objectEach:nt,pick:j,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 W=g.events;(W&&W.click||g.point&&g.point.events&&g.point.events.click||g.allowPointSelect)&&(o.runTrackerClick=!0),m.getColor(),m.getSymbol(),m.parallelArrays.forEach(function(tt){m[tt+"Data"]||(m[tt+"Data"]=[])}),m.isCartesian&&(o.hasCartesianSeries=!0);let $;H.length&&($=H[H.length-1]),m._i=j($&&$._i,-1)+1,m.opacity=m.options.opacity,o.orderItems("series",A(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(W){m[W].forEach(function($){H=$.options,(j(g[W],0)===$.index||typeof g[W]<"u"&&g[W]===H.id)&&(A(o,$.series),o[W]=$,$.isDirty=!0)}),o[W]||o.optionalAxis===W||c(18,!0,m)})}),i(this,"afterBindAxes")}updateParallelArrays(o,g,m){const H=o.series,W=S(g)?function($){const tt=$==="y"&&H.toYData?H.toYData(o):o[$];H[$+"Data"][g]=tt}:function($){Array.prototype[g].apply(H[$+"Data"],m)};H.parallelArrays.forEach(W)}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,W=this.chart.time;let $=this.xIncrement,tt;return $=j($,g.pointStart,0),this.pointInterval=tt=j(this.pointInterval,g.pointInterval,1),H&&S(o)&&(tt*=o),m&&(g=new W.Date($),m==="day"?W.set("Date",g,W.get("Date",g)+tt):m==="month"?W.set("Month",g,W.get("Month",g)+tt):m==="year"&&W.set("FullYear",g,W.get("FullYear",g)+tt),tt=g.getTime()-$),H&&S(o)?$+tt:(this.xIncrement=$+tt,$)}setDataSortingOptions(){const o=this.options;e(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),a(o.pointRange)||(o.pointRange=1)}setOptions(o){var g,m;const H=this.chart;var W=H.options.plotOptions,$=H.userOptions||{};const tt=q(o);o=H.styledMode;const et={plotOptions:W,userOptions:tt};i(this,"setOptions",et);const rt=et.plotOptions[this.type];$=$.plotOptions||{};const ht=$.series||{},pt=P.plotOptions[this.type]||{},E=$[this.type]||{};return this.userOptions=et.userOptions,W=q(rt,W.series,E,tt),this.tooltipOptions=q(P.tooltip,(g=P.plotOptions.series)===null||g===void 0?void 0:g.tooltip,pt==null?void 0:pt.tooltip,H.userOptions.tooltip,(m=$.series)===null||m===void 0?void 0:m.tooltip,E.tooltip,tt.tooltip),this.stickyTracking=j(tt.stickyTracking,E.stickyTracking,ht.stickyTracking,this.tooltipOptions.shared&&!this.noSharedTooltip?!0:W.stickyTracking),rt.marker===null&&delete W.marker,this.zoneAxis=W.zoneAxis,m=this.zones=(W.zones||[]).slice(),!W.negativeColor&&!W.negativeFillColor||W.zones||(g={value:W[this.zoneAxis+"Threshold"]||W.threshold||0,className:"highcharts-negative"},o||(g.color=W.negativeColor,g.fillColor=W.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:W}),W}getName(){return j(this.options.name,"Series "+(this.index+1))}getCyclic(o,g,m){const H=this.chart,W=`${o}Index`,$=`${o}Counter`,tt=(m==null?void 0:m.length)||H.options.chart.colorCount;if(!g){var et=j(o==="color"?this.options.colorIndex:void 0,this[W]);a(et)||(H.series.length||(H[$]=0),et=H[$]%tt,H[$]+=1),m&&(g=m[et])}typeof et<"u"&&(this[W]=et),this[o]=g}getColor(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.color="#cccccc":this.getCyclic("color",this.options.color||P.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,W=this.points;var $=this.options.dataSorting,tt;let et,rt;if(m)$=this.chart.get(m),$ instanceof Y&&(tt=$);else if((this.linkedParent||this.enabledDataSorting||this.options.relativeXValue)&&(tt=ht=>!ht.touched&&ht.index===o.index,$&&$.matchByName?tt=ht=>!ht.touched&&ht.name===o.name:this.options.relativeXValue&&(tt=ht=>!ht.touched&&ht.options.x===o.x),tt=t(W,tt),!tt))return;return tt&&(rt=tt&&tt.index,typeof rt<"u"&&(et=!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),!et&&S(rt)&&W[rt]&&W[rt].touched&&(rt=void 0),rt}updateData(o,g){const m=this.options,H=m.dataSorting,W=this.points,$=[],tt=this.requireSorting,et=o.length===W.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 J=X.x;X.id||S(J)?(X=this.findPointIndex(X,pt),X===-1||typeof X>"u"?$.push(C):W[X]&&C!==m.data[X]?(W[X].update(C,!1,null,!1),W[X].touched=!0,tt&&(pt=X+1)):W[X]&&(W[X].touched=!0),(!et||K!==X||H&&H.enabled||this.hasDerivedData)&&(rt=!0)):$.push(C)},this),rt)for(o=W.length;o--;)(ht=W[o])&&!ht.touched&&ht.remove&&ht.remove(!1,g);else!et||H&&H.enabled?E=!1:(o.forEach(function(C,K){C===W[K].y||W[K].destroyed||W[K].update(C,!1,null,!1)}),$.length=0);return W.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 W;const $=this,tt=$.points,et=tt&&tt.length||0,rt=$.options,ht=$.chart,pt=rt.dataSorting,E=$.xAxis,C=rt.turboThreshold,K=this.xData,X=this.yData;var J=$.pointArrayMap;J=J&&J.length;const dt=rt.keys;let ct,xt=0,yt=1,ft=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&&et&&!$.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(ft=$.getFirstValidPoint(o),S(ft))for(m=0;m<mt;m++)K[m]=this.autoIncrement(),X[m]=o[m];else if(r(ft))if(J)if(ft.length===J)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,J+1);else if(dt&&(xt=dt.indexOf("x"),yt=dt.indexOf("y"),xt=0<=xt?xt:0,yt=0<=yt?yt:1),ft.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=et;m--;)(W=tt[m])===null||W===void 0||W.destroy();E&&(E.minRange=E.userMinRange),$.isDirty=ht.isDirtyBox=!0,$.isDirtyData=!!tt,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(W,$){return a($)&&W.pointClass.prototype.optionsToObject.call({series:W},$)||{}};return o.forEach(function(W,$){o[$]=H(g,W),o[$].index=$},this),o.concat().sort((W,$)=>(W=u(m,W),$=u(m,$),$<W?-1:$>W?1:0)).forEach(function(W,$){W.x=$},this),g.linkedSeries&&g.linkedSeries.forEach(function(W){const $=W.options,tt=$.data;$.dataSorting&&$.dataSorting.enabled||!tt||(tt.forEach(function(et,rt){tt[rt]=H(W,et),o[rt]&&(tt[rt].x=o[rt].x,tt[rt].index=rt)}),W.setData(tt,!1))}),o}getProcessedData(o){const g=this;var m=g.xAxis,H=g.options;const W=H.cropThreshold,$=o||g.getExtremesFromAll||H.getExtremesFromAll,tt=m==null?void 0:m.logarithmic,et=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(et&&g.sorted&&!$&&(!W||E>W||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([tt?o.map(tt.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,W){const $=o.length;let tt,et=0,rt=$;for(W=j(W,this.cropShoulder),tt=0;tt<$;tt++)if(o[tt]>=m){et=Math.max(0,tt-W);break}for(m=tt;m<$;m++)if(o[m]>H){rt=m+W;break}return{xData:o.slice(et,rt),yData:g.slice(et,rt),start:et,end:rt}}generatePoints(){var o=this.options;const g=this.processedData||o.data,m=this.processedXData,H=this.processedYData,W=this.pointClass,$=m.length,tt=this.cropStart||0,et=this.hasGroupedData,rt=o.keys,ht=[];o=o.dataGrouping&&o.dataGrouping.groupAll?tt:0;let pt,E,C,K=this.data;if(!K&&!et){var X=[];X.length=g.length,K=this.data=X}for(rt&&et&&(this.options.keys=!1),C=0;C<$;C++)X=tt+C,et?(E=new W().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 W().init(this,g[X],m[C])),E&&(E.index=et?o+C:X,ht[C]=E);if(this.options.keys=rt,K&&($!==(pt=K.length)||et))for(C=0;C<pt;C++)C!==tt||et||(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 W=this.processedXData||this.xData,$=[],tt=this.requireSorting?this.cropShoulder:0;H=H?H.positiveValuesOnly:!1;let et,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(et=0;et<E;et++){var K=W[et];C=o[et];var X=(S(C)||r(C))&&(C.length||0<C||!H);if(K=g||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!m||(W[et+tt]||K)>=rt&&(W[et-tt]||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,W=H.categories,$=this.enabledDataSorting,tt=this.yAxis,et=this.points,rt=et.length,ht=this.pointPlacementToXValue(),pt=!!ht,E=g.threshold;g=g.startFromThreshold?E:0;let C,K,X,J,dt=Number.MAX_VALUE;for(C=0;C<rt;C++){const ct=et[C],xt=ct.x;let yt,ft,mt=ct.y,Ct=ct.low;const kt=m&&((o=tt.stacking)===null||o===void 0?void 0:o.stacks[(this.negStacks&&mt<(g?0:E)?"-":"")+this.stackKey]);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]&&(J=this.getStackIndicator(J,xt,this.index),!ct.isNull&&J.key&&(yt=kt[xt],ft=yt.points[J.key]),yt&&r(ft)&&(Ct=ft[0],mt=ft[1],Ct===g&&J.key===kt[xt].base&&(Ct=j(S(E)?E:tt.min)),tt.positiveValuesOnly&&a(Ct)&&0>=Ct&&(Ct=void 0),ct.total=ct.stackTotal=j(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(tt.translate(Ct,!1,!0,!1,!0),-1e5,1e5):void 0,this.dataModify&&(mt=this.dataModify.modifyValue(mt,C));let bt;S(mt)&&ct.plotX!==void 0&&(bt=tt.translate(mt,!1,!0,!1,!0),bt=S(bt)?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=j(W&&W[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(W){const{plotX:$,plotY:tt}=W;return!m&&(W.isNull||!S(tt))||g&&!H.isInsidePlot($,tt,{inverted:H.inverted})?!1:W.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,W=o.renderer,$=this.getClipBox(),tt=this.getSharedClipKey();let et=H[tt];et?et.animate($):H[tt]=et=W.clipRect($),g&&g.clip(this.options.clip===!1?void 0:et),m&&m.clip()}animate(o){const{chart:g,group:m,markerGroup:H}=this,W=g.inverted;var $=v(this.options.animation),tt=[this.getSharedClipKey(),$.duration,$.easing,$.defer].join();let et=g.sharedClips[tt],rt=g.sharedClips[tt+"m"];if(o&&m)$=this.getClipBox(),et?et.attr("height",$.height):($.width=0,W&&($.x=g.plotHeight),et=g.renderer.clipRect($),g.sharedClips[tt]=et,rt=g.renderer.clipRect({x:-99,y:-99,width:W?g.plotWidth+199:99,height:W?99:g.plotHeight+199}),g.sharedClips[tt+"m"]=rt),m.clip(et),H&&H.clip(rt);else if(et&&!et.hasClass("highcharts-animating")){tt=this.getClipBox();const ht=$.step;H&&H.element.childNodes.length&&($.step=function(pt,E){ht&&ht.apply(E,arguments),E.prop==="width"&&rt&&rt.element&&rt.attr(W?"height":"width",pt+99)}),et.addClass("highcharts-animating").animate(tt,$)}}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:W}=this,$=W.marker,tt=this[this.specialGroup||"markerGroup"],et=this.xAxis,rt=j($.enabled,!et||et.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 J=pt.marker||{};if(K=!!pt.marker,(rt&&typeof J.enabled>"u"||J.enabled)&&!pt.isNull&&pt.visible!==!1){const dt=j(J.symbol,this.symbol,"rect");X=this.markerAttribs(pt,pt.selected&&"select"),this.enabledDataSorting&&(pt.startXPos=et.reversed?-(X.width||0):et.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?J:$).add(tt),this.enabledDataSorting&&g.hasRendered&&(E.attr({x:pt.startXPos}),C="animate")),E&&C==="animate"&&E[ct?"show":"hide"](ct).animate(X),E&&(J=this.pointAttribs(pt,m||!pt.selected?void 0:"select"),m?H&&E.css({fill:J.fill}):E[C](J)),E&&E.addClass(pt.getClassName(),!0)}else E&&(pt.graphic=E.destroy())}}markerAttribs(o,g){const m=this.options;var H=m.marker;const W=o.marker||{},$=W.symbol||H.symbol,tt={};let et=j(W.radius,H&&H.radius);return g&&(H=H.states[g],g=W.states&&W.states[g],et=j(g&&g.radius,H&&H.radius,et&&et+(H&&H.radiusPlus||0))),o.hasImage=$&&$.indexOf("url")===0,o.hasImage&&(et=0),o=o.pos(),S(et)&&o&&(tt.x=o[0]-et,tt.y=o[1]-et,m.crisp&&(tt.x=Math.floor(tt.x))),et&&(tt.width=tt.height=2*et),tt}pointAttribs(o,g){var m=this.options.marker,H=o&&o.options;const W=H&&H.marker||{};var $=H&&H.color,tt=o&&o.color;const et=o&&o.zone&&o.zone.color;let rt=this.color;return o=j(W.lineWidth,m.lineWidth),H=1,rt=$||et||tt||rt,$=W.fillColor||m.fillColor||rt,tt=W.lineColor||m.lineColor||rt,g=g||"normal",m=m.states[g]||{},g=W.states&&W.states[g]||{},o=j(g.lineWidth,m.lineWidth,o+j(g.lineWidthPlus,m.lineWidthPlus,0)),$=g.fillColor||m.fillColor||$,tt=g.lineColor||m.lineColor||tt,H=j(g.opacity,m.opacity,H),{stroke:tt,"stroke-width":o,fill:$,opacity:H}}destroy(o){const g=this,m=g.chart,H=/AppleWebKit\/533/.test(y.navigator.userAgent),W=g.data||[];let $,tt,et,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),tt=W.length;tt--;)(et=W[tt])&&et.destroy&&et.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,W=this.clips||[],$=this.graph,tt=this.area,et=Math.max(g.plotWidth,g.plotHeight),rt=this[(this.zoneAxis||"y")+"Axis"],ht=g.inverted;let pt,E,C,K,X,J,dt,ct,xt,yt,ft,mt=!1;H.length&&($||tt)&&rt&&typeof rt.min<"u"?(X=rt.reversed,J=rt.horiz,$&&!this.showLine&&$.hide(),tt&&tt.hide(),K=rt.getExtremes(),H.forEach(function(Ct,kt){pt=X?J?g.plotWidth:0:J?0:rt.toPixels(K.min)||0,pt=b(j(E,pt),0,et),E=b(Math.round(rt.toPixels(j(Ct.value,K.max),!0)||0),0,et),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:et},J||(C.x=g.plotHeight-C.x)):(C={x:0,y:ht?xt:ct,width:et,height:dt},J&&(C.y=g.plotWidth-C.y)),W[kt]?W[kt].animate(C):W[kt]=m.clipRect(C),yt=o["zone-area-"+kt],ft=o["zone-graph-"+kt],$&&ft&&ft.clip(W[kt]),tt&&yt&&yt.clip(W[kt]),mt=Ct.value>K.max,o.resetZones&&E===0&&(E=void 0)}),this.clips=W):o.visible&&($&&$.show(),tt&&tt.show())}plotGroup(o,g,m,H,W){let $=this[o];const tt=!$;return m={visibility:m,zIndex:H||.1},typeof this.opacity>"u"||this.chart.styledMode||this.state==="inactive"||(m.opacity=this.opacity),tt&&(this[o]=$=this.chart.renderer.g().add(W)),$.addClass("highcharts-"+g+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(a(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+($.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),$.attr(m)[tt?"attr":"animate"](this.getPlotBox(g)),$}getPlotBox(o){let g=this.xAxis,m=this.yAxis;const H=this.chart;return o=H.inverted&&!H.polar&&g&&this.invertible!==!1&&o==="series",H.inverted&&(g=m,m=this.xAxis),{translateX:g?g.left:H.plotLeft,translateY:m?m.top:H.plotTop,rotation:o?90:0,rotationOriginX:o?(g.len-m.len)/2:0,rotationOriginY:o?(g.len+m.len)/2:0,scaleX:o?-1:1,scaleY:1}}removeEvents(o){o||s(this),this.eventsToUnbind.length&&(this.eventsToUnbind.forEach(function(g){g()}),this.eventsToUnbind.length=0)}render(){const o=this;var g=o.chart;const m=o.options,H=v(m.animation),W=o.visible?"inherit":"hidden",$=m.zIndex,tt=o.hasRendered;g=g.seriesGroup;let et=o.finishedAnimating?0:H.duration;i(this,"render"),o.plotGroup("group","series",W,$,g),o.markerGroup=o.plotGroup("markerGroup","markers",W,$,g),m.clip!==!1&&o.setClip(),o.animate&&et&&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&&et&&o.animate(),tt||(et&&H.defer&&(et+=H.defer),o.animationTimeout=z(function(){o.afterAnimate()},et||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,W=this.chart.inverted;return this.searchKDTree({clientX:W?m.len-o.chartY+m.pos:o.chartX-m.pos,plotY:W?H.len-o.chartX+H.pos:o.chartY-H.pos},g,o)}buildKDTree(o){function g(W,$,tt){var et=W&&W.length;let rt;if(et)return rt=m.kdAxisArray[$%tt],W.sort(function(ht,pt){return ht[rt]-pt[rt]}),et=Math.floor(et/2),{point:W[et],left:g(W.slice(0,et),$+1,tt),right:g(W.slice(et+1),$+1,tt)}}this.buildingKdTree=!0;const m=this,H=-1<m.options.findNearestPointBy.indexOf("y")?2:1;delete m.kdTree,z(function(){m.kdTree=g(m.getValidPoints(null,!m.directTouch),H,H),m.buildingKdTree=!1},m.options.kdNow||o&&o.type==="touchstart"?0:1)}searchKDTree(o,g,m){function H(rt,ht,pt,E){const C=ht.point;var K=W.kdAxisArray[pt%E];let X=C;var J=a(rt[$])&&a(C[$])?Math.pow(rt[$]-C[$],2):null,dt=a(rt[tt])&&a(C[tt])?Math.pow(rt[tt]-C[tt],2):null;return dt=(J||0)+(dt||0),C.dist=a(dt)?Math.sqrt(dt):Number.MAX_VALUE,C.distX=a(J)?Math.sqrt(J):Number.MAX_VALUE,K=rt[K]-C[K],dt=0>K?"left":"right",J=0>K?"right":"left",ht[dt]&&(dt=H(rt,ht[dt],pt+1,E),X=dt[et]<X[et]?dt:C),ht[J]&&Math.sqrt(K*K)<X[et]&&(rt=H(rt,ht[J],pt+1,E),X=rt[et]<X[et]?rt:X),X}const W=this,$=this.kdAxisArray[0],tt=this.kdAxisArray[1],et=g?"distX":"dist";if(g=-1<W.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),W=o.chart,$=W.pointer,tt=W.renderer,et=W.options.tooltip.snap,rt=o.tracker,ht=function(E){g.enableMouseTracking&&W.hoverSeries!==o&&o.onMouseOver()},pt="rgba(192,192,192,"+(x?1e-4:.002)+")";rt?rt.attr({d:H}):o.graph&&(o.tracker=tt.path(H).attr({visibility:o.visible?"inherit":"hidden",zIndex:2}).addClass(m?"highcharts-tracker-area":"highcharts-tracker-line").add(o.group),W.styledMode||o.tracker.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:pt,fill:m?pt:"none","stroke-width":o.graph.strokeWidth()+(m?0:2*et)}),[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&&!W.styledMode&&E.css({cursor:g.cursor}),d)&&E.on("touchstart",ht)})),i(this,"afterDrawTracker")}addPoint(o,g,m,H,W){const $=this.options,tt=this.data,et=this.chart;var rt=this.xAxis;rt=rt&&rt.hasNames&&rt.names;const ht=$.data,pt=this.xData;let E,C;g=j(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&&(tt[0]&&tt[0].remove?tt[0].remove(!1):(tt.shift(),this.updateParallelArrays(K,"shift"),ht.shift())),W!==!1&&i(this,"addPoint",{point:K}),this.isDirtyData=this.isDirty=!0,g&&et.redraw(H)}removePoint(o,g,m){const H=this,W=H.data,$=W[o],tt=H.points,et=H.chart,rt=function(){tt&&tt.length===W.length&&tt.splice(o,1),W.splice(o,1),H.options.data.splice(o,1),H.updateParallelArrays($||{series:H},"splice",[o,1]),$&&$.destroy(),H.isDirty=!0,H.isDirtyData=!0,g&&et.redraw()};w(m,et),g=j(g,!0),$?$.firePointEvent("remove",null,rt):rt()}remove(o,g,m,H){function W(){$.destroy(H),tt.isDirtyLegend=tt.isDirtyBox=!0,tt.linkSeries(H),j(o,!0)&&tt.redraw(g)}const $=this,tt=$.chart;m!==!1?i($,"remove",null,W):W()}update(o,g){o=p(o,this.userOptions),i(this,"update",{options:o});const m=this,H=m.chart;var W=m.userOptions;const $=m.initialType||m.type;var tt=H.options.plotOptions;const et=f[$].prototype;var rt=m.finishedAnimating&&{animation:!1};const ht={};let pt,E=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],C=o.type||W.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(W,rt,{index:typeof W.index>"u"?m.index:W.index,pointStart:j(tt&&tt.series&&tt.series.pointStart,W.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]}),tt=!1,f[C]){if(tt=C!==m.type,m.remove(!1,!1,!1,!0),tt)if(Object.setPrototypeOf)Object.setPrototypeOf(m,f[C].prototype);else{rt=Object.hasOwnProperty.call(m,"hcEvents")&&m.hcEvents;for(pt in et)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:J}=o;W=W.marker||{},!X||X.enabled!==!1&&W.symbol===X.symbol&&W.height===X.height&&W.width===X.width||(ht.graphic=1),J&&J.enabled===!1&&(ht.dataLabel=1)}for(const X of this.points)X&&X.series&&(X.resolveColor(),Object.keys(ht).length&&X.destroyElements(ht),o.showInLegend===!1&&X.legendItem&&H.legend.destroyItem(X))}m.initialType=$,H.linkSeries(),tt&&m.linkedSeries.length&&(m.isDirtyData=!0),i(this,"afterUpdate"),j(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!==j(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(W){W.setState("",!0)})}setState(o,g){const m=this;var H=m.options;const W=m.graph,$=H.inactiveOtherPoints,tt=H.states,et=j(tt[o||"normal"]&&tt[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(tt[o]&&tt[o].enabled===!1)return;if(o&&(rt=tt[o].lineWidth||rt+(tt[o].lineWidthPlus||0),pt=j(tt[o].opacity,pt)),W&&!W.dashstyle&&S(rt))for(H={"stroke-width":rt},W.animate(H,et);m["zone-graph-"+ht];)m["zone-graph-"+ht].animate(H,et),ht+=1;$||[m.group,m.markerGroup,m.dataLabelsGroup,m.labelBySeries].forEach(function(E){E&&E.animate({opacity:pt},et)})}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,W=H.options.chart.ignoreHiddenSeries,$=m.visible,tt=(m.visible=o=m.options.visible=m.userOptions.visible=typeof o>"u"?!$:o)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(et){m[et]&&m[et][tt]()}),(H.hoverSeries===m||(H.hoverPoint&&H.hoverPoint.series)===m)&&m.onMouseOut(),m.legendItem&&H.legend.colorizeItem(m,o),m.isDirty=!0,m.options.stacking&&H.series.forEach(function(et){et.options.stacking&&et.visible&&(et.isDirty=!0)}),m.linkedSeries.forEach(function(et){et.setVisible(o,!1)}),W&&(H.isDirtyBox=!0),i(m,tt),g!==!1&&H.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(o){this.selected=o=this.options.selected=typeof o>"u"?!this.selected:o,this.checkbox&&(this.checkbox.checked=o),i(this,o?"select":"unselect")}shouldShowTooltip(o,g,m={}){return m.series=this,m.visiblePlotOnly=!0,this.chart.isInsidePlot(o,g,m)}drawLegendSymbol(o,g){var m;(m=Z[this.options.legendSymbol||"rectangle"])===null||m===void 0||m.call(this,o,g)}}return D.defaultOptions=U,D.types=L.seriesTypes,D.registerType=L.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}),L.series=D,D}),at(O,"Core/Chart/Chart.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Axis/Axis.js"],O["Core/Defaults.js"],O["Core/Templating.js"],O["Core/Foundation.js"],O["Core/Globals.js"],O["Core/Renderer/RendererRegistry.js"],O["Core/Series/Series.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Renderer/SVG/SVGRenderer.js"],O["Core/Time.js"],O["Core/Utilities.js"],O["Core/Renderer/HTML/AST.js"]],function(B,_,G,Q,Z,Y,U,L,N,R,v,w,P){const{animate:I,animObject:d,setAnimation:x}=B,{defaultOptions:y,defaultTime:f}=G,{numberFormat:T}=Q,{registerEventOptions:k}=Z,{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:A,discardElement:r,erase:S,error:F,extend:q,find:nt,fireEvent:j,getStyle:s,isArray:M,isNumber:z,isObject:D,isString:V,merge:o,objectEach:g,pick:m,pInt:H,relativeLength:W,removeEvent:$,splat:tt,syncTimeout:et,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){j(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(),j(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]=tt(this.options[E]).slice();if(E=this.userOptions[E]=this.userOptions[E]?tt(this.userOptions[E]).slice():[],this.hasRendered&&(X.splice(C),E.splice(C)),K)for(let J=C,dt=K.length;J<dt;++J)(C=K[J])&&(C.index=J,C instanceof L&&(C.name=C.getName()),C.options.isInternal||(X[J]=C.options,E[J]=C.userOptions))}isInsidePlot(E,C,K={}){const{inverted:X,plotBox:J,plotLeft:dt,plotTop:ct,scrollablePlotBox:xt}=this;var yt=0;let ft=0;K.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:yt,scrollTop:ft}=this.scrollingContainer);const mt=K.series,Ct=K.visiblePlotOnly&&xt||J;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(ft+ct,yt.pos)&&K<=Math.min(ft+ct+Ct.height,yt.pos+yt.len)||(E.isInsidePlot=!1)),j(this,"afterIsInsidePlot",E),E.isInsidePlot}redraw(E){j(this,"beforeRedraw");const C=this.hasCartesianSeries?this.axes:this.colorAxis||[],K=this.series,X=this.pointer,J=this.legend,dt=this.userOptions.legend,ct=this.renderer,xt=ct.isHidden(),yt=[];let ft,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)){ft=!0;break}if(ft)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&&j(Mt,"updatedData")}),kt&&J&&J.options.enabled&&(J.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(){j(Mt,"afterSetExtremes",q(Mt.eventArgs,Mt.getExtremes())),delete Mt.eventArgs})),(Ct||mt)&&Mt.redraw()}),Ct&&this.drawChartBox(),j(this,"predraw"),K.forEach(function(Mt){(Ct||Mt.isDirty)&&Mt.visible&&Mt.redraw(),Mt.isDirtyData=!1}),X&&X.reset(!0),ct.draw(),j(this,"redraw"),j(this,"render"),xt&&this.temporaryDisplay(!0),yt.forEach(function(Mt){Mt.call()})}get(E){function C(J){return J.id===E||J.options&&J.options.id===E}const K=this.series;let X=nt(this.axes,C)||nt(this.series,C);for(let J=0;!X&&J<K.length;J++)X=nt(K[J].points||[],C);return X}getAxes(){const E=this.options;j(this,"getAxes");for(const C of["xAxis","yAxis"]){const K=E[C]=tt(E[C]||{});for(const X of K)new _(this,X,C)}j(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 J=this[E];J&&C&&(this[E]=J=J.destroy()),X&&!J&&(J=this.renderer.text(X.text,0,0,X.useHTML).attr({align:X.align,class:"highcharts-"+E,zIndex:X.zIndex||4}).add(),J.update=function(dt,ct){K.applyDescription(E,dt),K.layOutTitles(ct)},this.styledMode||J.css(q(E==="title"?{fontSize:this.options.isStock?"1em":"1.2em"}:{},X.style)),this[E]=J)}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 ft=K.fontMetrics(ct).b,mt=Math.round(ct.getBBox(xt.useHTML).height);ct.align(q({y:yt==="bottom"?ft:dt+ft,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 J=!this.titleOffset||this.titleOffset.join(",")!==C.join(",");this.titleOffset=C,j(this,"afterLayOutTitles"),!this.isDirtyBox&&J&&(this.isDirtyBox=this.isDirtyLegend=J,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,W(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,J=this.renderTo;J||(this.renderTo=J=C.renderTo),V(J)&&(this.renderTo=J=n.getElementById(J)),J||F(13,!0,this);var dt=H(t(J,"data-highcharts-chart"));z(dt)&&b[dt]&&b[dt].hasRendered&&b[dt].destroy(),t(J,"data-highcharts-chart",this.index),J.innerHTML=P.emptyHTML,C.skipClone||J.offsetWidth||this.temporaryDisplay(),this.getChartSize(),dt=this.chartWidth;const ct=this.chartHeight;if(l(J,{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,J),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,j(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),j(this,"getMargins"),E||this.getAxisMargins()}getAxisMargins(){const E=this,C=E.axisOffset=[0,0,0,0],K=E.colorAxis,X=E.margin,J=function(dt){dt.forEach(function(ct){ct.visible&&ct.getOffset()})};E.hasCartesianSeries?J(E.axes):K&&K.length&&J(K),a.forEach(function(dt,ct){u(X[ct])||(E[dt]+=C[ct])}),E.setChartSize()}getOptions(){return A(this.userOptions,y)}reflow(E){const C=this;var K=C.options.chart;K=u(K.width)&&u(K.height);const X=C.containerBox,J=C.getContainerBox();delete C.pointer.chartPosition,!K&&!C.isPrinting&&X&&J.width&&((J.width!==X.width||J.height!==X.height)&&(w.clearTimeout(C.reflowTimeout),C.reflowTimeout=et(function(){C.container&&C.setSize(void 0,void 0,!1)},E?100:0)),C.containerBox=J)}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,J=X.renderer;X.isResizing+=1,x(K,X),K=J.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),J.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,j(X,"resize"),et(function(){X&&j(X,"endResize",null,function(){--X.isResizing})},d(K).duration)}setChartSize(E){var C=this.inverted;const K=this.renderer;var X=this.chartWidth,J=this.chartHeight;const dt=this.options.chart,ct=this.spacing,xt=this.clipOffset;let yt,ft,mt,Ct;this.plotLeft=yt=Math.round(this.plotLeft),this.plotTop=ft=Math.round(this.plotTop),this.plotWidth=mt=Math.max(0,Math.round(X-yt-this.marginRight)),this.plotHeight=Ct=Math.max(0,Math.round(J-ft-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:J-ct[0]-ct[2]},this.plotBox=K.plotBox={x:yt,y:ft,width:mt,height:Ct},C=2*Math.floor(this.plotBorderWidth/2),X=Math.ceil(Math.max(C,xt[3])/2),J=Math.ceil(Math.max(C,xt[0])/2),this.clipBox={x:X,y:J,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-J))},E||(this.axes.forEach(function(kt){kt.setAxisSize(),kt.setAxisTranslation()}),K.alignElements()),j(this,"afterSetChartSize",{skipAxes:E})}resetMargins(){j(this,"resetMargins");const E=this,C=E.options.chart;["margin","spacing"].forEach(function(K){const X=C[K],J=D(X)?X:[X,X,X,X];["Top","Right","Bottom","Left"].forEach(function(dt,ct){E[K][ct]=m(C[K+dt],J[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,J=this.styledMode,dt=this.plotBGImage;var ct=E.backgroundColor;const xt=E.plotBackgroundColor,yt=E.plotBackgroundImage,ft=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"),J?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),J||(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,ft,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()),J||Ht.attr({stroke:E.plotBorderColor,"stroke-width":E.plotBorderWidth||0,fill:"none"}),Ht[Rt](Ht.crisp({x:ft,y:mt,width:Ct,height:kt},-Ht.strokeWidth())),this.isDirtyBox=!1,j(this,"afterDrawChartBox")}propFromSeries(){const E=this,C=E.options.chart,K=E.options.series;let X,J,dt;["inverted","angular","polar"].forEach(function(ct){for(J=c[C.type],dt=C[ct]||J&&J.prototype[ct],X=K&&K.length;!dt&&X--;)(J=c[K[X].type])&&J.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 J=X.options.linkedTo;V(J)&&(J=J===":previous"?C.series[X.index-1]:C.get(J))&&J.linkedParent!==X&&(J.linkedSeries.push(X),X.linkedParent=J,J.enabledDataSorting&&X.setDataSortingOptions(),X.visible=m(X.options.visible,J.options.visible,X.visible))}),j(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(ft){ft.forEach(function(mt){mt.visible&&mt.render()})};let J=0;this.setTitle(),j(this,"beforeMargins"),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize();const dt=this.plotWidth;E.some(function(ft){if(ft.horiz&&ft.visible&&ft.options.labels.enabled&&ft.series.length)return J=21,!0});const ct=this.plotHeight=Math.max(this.plotHeight-J,0);E.forEach(function(ft){ft.setScale()}),this.getAxisMargins();const xt=1.1<dt/this.plotWidth,yt=1.05<ct/this.plotHeight;(xt||yt)&&(E.forEach(function(ft){(ft.horiz&&xt||!ft.horiz&&yt)&&ft.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,J=X&&X.parentNode;let dt;for(j(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=P.emptyHTML,$(X),J&&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(),j(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),j(this,"load"),j(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 J;return E&&(C=m(C,!0),j(X,"addSeries",{options:E},function(){J=X.initSeries(E),X.isDirtyLegend=!0,X.linkSeries(),J.enabledDataSorting&&J.setData(E.data,!1),j(X,"afterAddSeries",{series:J}),C&&X.redraw(K)})),J}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 _(this,C.axis,E),m(C.redraw,!0)&&this.redraw(C.animation),E}showLoading(E){const C=this,K=C.options,X=K.loading,J=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",J)),dt.className="highcharts-loading",P.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,J()}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 J=this,dt={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},ct=E.isResponsiveOptions,xt=[];let yt,ft;j(J,"update",{options:E}),ct||J.setResponsive(!1,!0),E=A(E,J.options),J.userOptions=o(J.userOptions,E);var mt=E.chart;if(mt){if(o(!0,J.options.chart,mt),this.setZoomOptions(),"className"in mt&&J.setClassName(mt.className),"inverted"in mt||"polar"in mt||"type"in mt){J.propFromSeries();var Ct=!0}"alignTicks"in mt&&(Ct=!0),"events"in mt&&k(this,mt),g(mt,function(kt,bt){J.propsRequireUpdateSeries.indexOf("chart."+bt)!==-1&&(yt=!0),J.propsRequireDirtyBox.indexOf(bt)!==-1&&(J.isDirtyBox=!0),J.propsRequireReflow.indexOf(bt)!==-1&&(ct?J.isDirtyBox=!0:ft=!0)}),!J.styledMode&&mt.style&&J.renderer.setStyle(J.options.chart.style||{})}!J.styledMode&&E.colors&&(this.options.colors=E.colors),E.time&&(this.time===f&&(this.time=new v(E.time)),o(!0,J.options.time,E.time)),g(E,function(kt,bt){J[bt]&&typeof J[bt].update=="function"?J[bt].update(kt,!1):typeof J[dt[bt]]=="function"?J[dt[bt]](kt):bt!=="colors"&&J.collectionsWithUpdate.indexOf(bt)===-1&&o(!0,J.options[bt],E[bt]),bt!=="chart"&&J.propsRequireUpdateSeries.indexOf(bt)!==-1&&(yt=!0)}),this.collectionsWithUpdate.forEach(function(kt){E[kt]&&(tt(E[kt]).forEach(function(bt,Mt){const _t=u(bt.id);let At;_t&&(At=J.get(bt.id)),!At&&J[kt]&&(At=J[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&&J.collectionsWithInit[kt]&&(J.collectionsWithInit[kt][0].apply(J,[bt].concat(J.collectionsWithInit[kt][1]||[]).concat([!1])).touched=!0)}),K&&J[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&&J.axes.forEach(function(kt){kt.update({},!1)}),yt&&J.getSeriesOrderByLinks().forEach(function(kt){kt.chart&&kt.update({},!1)},this),Ct=mt&&mt.width,mt=mt&&(V(mt.height)?W(mt.height,Ct||J.chartWidth):mt.height),ft||z(Ct)&&Ct!==J.chartWidth||z(mt)&&mt!==J.chartHeight?J.setSize(Ct,mt,X):m(C,!0)&&J.redraw(X),j(J,"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,J=X.theme,dt=X.relativeTo==="chart"||X.relativeTo==="spacingBox"?null:"scrollablePlotBox";j(this,"beforeShowResetZoom",null,function(){C.resetZoomButton=C.renderer.button(K.resetZoom,null,null,E,J).attr({align:X.position.align,title:K.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(X.position,!1,dt)}),j(this,"afterShowResetZoom")}zoomOut(){j(this,"selection",{resetSelection:!0},this.zoom)}zoom(E){const C=this,K=C.pointer;let X=!1,J;!E||E.resetSelection?(C.axes.forEach(function(ct){J=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))&&(J=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()),J&&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 J=K.options.chart;J&&J.panning&&(J.panning=C);const dt=C.type;let ct;j(this,"pan",{originalEvent:E},function(){X&&X.forEach(function(ft){ft.setState()});let xt=K.xAxis;dt==="xy"?xt=xt.concat(K.yAxis):dt==="y"&&(xt=K.yAxis);const yt={};xt.forEach(function(ft){if(ft.options.panningEnabled&&!ft.options.isInternal){var mt=ft.horiz,Ct=E[mt?"chartX":"chartY"];mt=mt?"mouseDownX":"mouseDownY";var kt=K[mt],bt=ft.minPointOffset||0,Mt=ft.reversed&&!K.inverted||!ft.reversed&&K.inverted?-1:1,_t=ft.getExtremes(),At=ft.toValue(kt-Ct,!0)+bt*Mt,Bt=ft.toValue(kt+ft.len-Ct,!0)-(bt*Mt||ft.isXAxis&&ft.pointRangePadding||0),Ht=Bt<At;Mt=ft.hasVerticalPanning(),kt=Ht?Bt:At,At=Ht?At:Bt;var Lt=ft.panningState;!Mt||ft.isXAxis||Lt&&!Lt.isDirty||ft.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:ft.toValue(ft.toPixels(_t.min)-ft.minPixelPadding)),Bt=Math.max(m(Lt&&Lt.startMax,_t.dataMax),bt?_t.max:ft.toValue(ft.toPixels(_t.max)+ft.minPixelPadding)),ft.panningState=Lt,ft.isOrdinal||(bt=Mt-kt,0<bt&&(At+=bt,kt=Mt),bt=At-Bt,0<bt&&(At=Bt,kt-=bt),ft.series.length&&kt!==_t.min&&At!==_t.max&&kt>=Mt&&At<=Bt&&(ft.setExtremes(kt,At,!1,!1,{trigger:"pan"}),!K.resetZoomButton&&kt!==Mt&&At!==Bt&&dt.match("y")&&(K.showResetZoom(),ft.displayBtn=!1),ct=!0),yt[mt]=Ct)}}),g(yt,(ft,mt)=>{K[mt]=ft}),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}),at(O,"Extensions/ScrollablePlotArea.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Axis/Axis.js"],O["Core/Chart/Chart.js"],O["Core/Series/Series.js"],O["Core/Renderer/RendererRegistry.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y){const{stop:U}=B,{addEvent:L,createElement:N,defined:R,merge:v,pick:w}=Y;L(G,"afterSetChartSize",function(P){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&&!P.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=_.prototype.getPlotLinePath.apply(this,arguments),this[f]=T,k}:(y.setAxisSize(),y.setAxisTranslation())}))}),L(G,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),G.prototype.setUpScrolling=function(){const P={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(P.overflowX="auto"),this.scrollablePixelsY&&(P.overflowY="auto"),this.scrollingParent=N("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=N("div",{className:"highcharts-scrolling"},P,this.scrollingParent);let I;L(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},G.prototype.moveFixedElements=function(){let P=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(P.querySelectorAll(y),function(f){(f.namespaceURI===I.SVG_NS?I.box:I.box.parentNode).appendChild(f),f.style.pointerEvents="auto"})})},G.prototype.applyFixed=function(){var P=!this.fixedDiv,I=this.options.chart,d=I.scrollablePlotArea,x=Z.getRendererType();P?(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(),L(this,"afterShowResetZoom",this.moveFixedElements),L(this,"afterApplyDrilldown",this.moveFixedElements),L(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),(this.scrollableDirty||P)&&(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",P&&(d.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*d.scrollPositionX),d.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*d.scrollPositionY)),x=this.axisOffset,P=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);P=this.scrollablePixelsX?[["M",0,P],["L",this.plotLeft-1,P],["L",this.plotLeft-1,I],["L",0,I],["Z"],["M",y,P],["L",this.chartWidth,P],["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:P})},L(_,"afterInit",function(){this.chart.scrollableDirty=!0}),L(Q,"show",function(){this.chart.scrollableDirty=!0})}),at(O,"Core/Axis/Stacking/StackItem.js",[O["Core/Templating.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{format:Q}=B,{series:Z}=_,{destroyObjectProperties:Y,fireEvent:U,isNumber:L,pick:N}=G;class R{constructor(w,P,I,d,x){const y=w.chart.inverted,f=w.reversed;this.axis=w,w=this.isNegative=!!I!=!!f,this.options=P=P||{},this.x=d,this.cumulative=this.total=null,this.points={},this.hasValidPoints=!1,this.stack=x,this.rightCliff=this.leftCliff=0,this.alignOptions={align:P.align||(y?w?"left":"right":"center"),verticalAlign:P.verticalAlign||(y?"middle":w?"bottom":"top"),y:P.y,x:P.x},this.textAlign=P.textAlign||(y?w?"right":"left":"center")}destroy(){Y(this,this.axis)}render(w){const P=this.axis.chart,I=this.options;var d=I.format;d=d?Q(d,this,P):I.formatter.call(this),this.label?this.label.attr({text:d,visibility:"hidden"}):(this.label=P.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"},P.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=P.plotSizeY,U(this,"afterRender")}setOffset(w,P,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:P,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&&Z.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=L(k.x)&&L(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:P})}adjustStackPosition({labelBox:w,verticalAlign:P,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[P]}}getStackBox(w){var P=this.axis;const I=P.chart,{boxTop:d,defaultX:x,xOffset:y,width:f,boxBottom:T}=w;var k=P.stacking.usePercentage?100:N(d,this.total,0);k=P.toPixels(k),w=w.xAxis||I.xAxis[0];const b=N(x,w.translate(this.x))+y;P=P.toPixels(T||L(P.min)&&P.logarithmic&&P.logarithmic.lin2log(P.min)||0),P=Math.abs(k-P);const n=this.isNegative;return I.inverted?{x:(n?k:k-P)-I.plotLeft,y:w.height-b-f,width:P,height:f}:{x:b+w.transB-I.plotLeft,y:(n?k-P:k)-I.plotTop,width:f,height:P}}}return R}),at(O,"Core/Axis/Stacking/StackingAxis.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Axis/Axis.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Axis/Stacking/StackItem.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z){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 L(){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 A;u&&[t,"-"+t].forEach(r=>{let S=l.length,F;for(;S--;){var q=l[S];A=e.getStackIndicator(A,q,e.index,r),(F=(q=i[r]&&i[r][q])&&q.points[A.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 P(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,A=[],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,j=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=j&&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 Q(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,j&&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),A[D]=H.cumulative,H.hasValidPoints=!0)}i==="percent"&&(t.stacking.usePercentage=!0),i!=="group"&&(this.stackedYData=A),t.stacking.oldStacks={}}}const{getDeferredAnimation:I}=B,{series:{prototype:d}}=G,{addEvent:x,correctFloat:y,defined:f,destroyObjectProperties:T,fireEvent:k,isArray:b,isNumber:n,objectEach:a,pick:p}=Z;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 A,r;for(this.usePercentage=!1,r=u;r--;)A=i[l?r:u-r-1],A.setStackedPoints(),A.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 A=this.stackTotalGroup=this.stackTotalGroup||l.g("stack-labels").attr({zIndex:6,opacity:0}).add();A.translate(i.plotLeft,i.plotTop),a(u,function(r){a(r,function(S){S.render(A)})}),A.animate({opacity:1},t)}}var c;return function(e){const t=[];e.compose=function(i,l,u){Z.pushUnique(t,i)&&(x(i,"init",L),x(i,"destroy",U)),Z.pushUnique(t,l)&&(l.prototype.getStacks=Y),Z.pushUnique(t,u)&&(i=u.prototype,i.getStackIndicator=N,i.modifyStacks=R,i.percentStacker=v,i.setGroupedPoints=w,i.setStackedPoints=P)}}(c||(c={})),c}),at(O,"Series/Line/LineSeries.js",[O["Core/Series/Series.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{defined:Q,merge:Z}=G;class Y extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){const L=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=L.getZonesGraphs(w),w.forEach(function(P,I){var d=P[0];let x=L[d];const y=x?"animate":"attr";x?(x.endX=L.preventGraphAnimation?null:R.xMap,x.animate({d:R})):R.length&&(L[d]=x=L.chart.renderer.path(R).addClass(P[1]).attr({zIndex:1}).add(L.group)),x&&!v&&(d={stroke:P[2],"stroke-width":N.lineWidth||0,fill:L.fillGraph&&L.color||"none"},P[3]?d.dashstyle=P[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(L,N,R){const v=this,w=v.options,P=[],I=[];let d,x=w.step;L=L||v.points;const y=L.reversed;return y&&L.reverse(),(x={right:1,center:2}[x]||x&&3)&&y&&(x=4-x),L=this.getValidPoints(L,!1,!(w.connectNulls&&!N&&!R)),L.forEach(function(f,T){const k=f.plotX,b=f.plotY,n=L[T-1],a=f.isNull||typeof b!="number";(f.leftCliff||n&&n.rightCliff)&&!R&&(d=!0),a&&!Q(N)&&0<T?d=!w.connectNulls:a&&!N?d=!0:(T===0||d?T=[["M",f.plotX,f.plotY]]:v.getPointSpline?T=[v.getPointSpline(L,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)),P.push.apply(P,T),d=!1)}),P.xMap=I,v.graphPath=P}getZonesGraphs(L){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),L.push(R)},this),L}}return Y.defaultOptions=Z(B.defaultOptions,{legendSymbol:"lineMarker"}),_.registerSeriesType("line",Y),Y}),at(O,"Series/Area/AreaSeries.js",[O["Core/Color/Color.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{seriesTypes:{line:Q}}=_,{extend:Z,merge:Y,objectEach:U,pick:L}=G;class N extends Q{constructor(){super(...arguments),this.points=this.options=this.data=void 0}drawGraph(){this.areaPath=[],super.drawGraph.apply(this);const v=this,w=this.areaPath,P=this.options,I=[["area","highcharts-area",this.color,P.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||P.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(P.fillOpacity,.75))),f[T](y),f.startX=w.xMap,f.shiftUnit=P.step?2:1})}getGraphPath(v){var w=Q.prototype.getGraphPath,P=this.options;const I=P.stacking,d=this.yAxis,x=[],y=[],f=this.index,T=d.stacking.stacks[this.stackKey],k=P.threshold,b=Math.round(d.getThreshold(P.threshold));P=L(P.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,A;i=!0,t||l?(u=(l?c[0]:c[1])+t,A=c[0]+t,i=!!l):!I&&v[e]&&v[e].isNull&&(u=A=k),typeof u<"u"&&(y.push({plotX:a,plotY:u===null?b:d.getThreshold(u),isNull:i,isCliff:!0}),x.push({plotX:a,plotY:A===null?b:d.getThreshold(A),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=L(v[c].rectPlotX,v[c].plotX);var h=I?L(v[c].yBottom,b):b;(!p||P)&&(P||n(c,c-1,"left"),p&&!I&&P||(y.push(v[c]),x.push({x:c,plotX:a,plotY:h})),P||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,P),p.xMap=n.xMap,this.areaPath=p,w}getStackPoints(v){const w=this,P=[],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)P.push(f[p]),[-1,1].forEach(function(i){const l=i===1?"rightNull":"leftNull",u=y[I[h+i]];let A=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])&&(A-=t[1]-t[0])),r+=b}}f[p][i===1?"rightCliff":"leftCliff"]=A});else{let i=n;for(;0<=i&&i<k;){if(e=y[p].points[T[i].index]){c=e[1];break}i+=b}c=L(c,0),c=x.translate(c,0,1,0,1),P.push({isNull:!0,plotX:d.translate(p,0,0,0,1),x:p,plotY:c,yBottom:c})}})}return P}}return N.defaultOptions=Y(Q.defaultOptions,{threshold:0,legendSymbol:"rectangle"}),Z(N.prototype,{singleStacks:!1}),_.registerSeriesType("area",N),N}),at(O,"Series/Spline/SplineSeries.js",[O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_){const{line:G}=B.seriesTypes,{merge:Q,pick:Z}=_;class Y extends G{constructor(){super(...arguments),this.points=this.options=this.data=void 0}getPointSpline(L,N,R){const v=N.plotX||0,w=N.plotY||0,P=L[R-1];R=L[R+1];let I,d,x;if(P&&!P.isNull&&P.doCurve!==!1&&!N.isCliff&&R&&!R.isNull&&R.doCurve!==!1&&!N.isCliff){L=P.plotY||0;var y=R.plotX||0;R=R.plotY||0;let f=0;I=(1.5*v+(P.plotX||0))/2.5,d=(1.5*w+L)/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>L&&d>w?(d=Math.max(L,w),x=2*w-d):d<L&&d<w&&(d=Math.min(L,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",Z(P.rightContX,P.plotX,0),Z(P.rightContY,P.plotY,0),Z(I,v,0),Z(d,w,0),v,w],P.rightContX=P.rightContY=void 0,N}}return Y.defaultOptions=Q(G.defaultOptions),B.registerSeriesType("spline",Y),Y}),at(O,"Series/AreaSpline/AreaSplineSeries.js",[O["Series/Spline/SplineSeries.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{area:Q,area:{prototype:Z}}=_.seriesTypes,{extend:Y,merge:U}=G;class L extends B{constructor(){super(...arguments),this.options=this.points=this.data=void 0}}return L.defaultOptions=U(B.defaultOptions,Q.defaultOptions),Y(L.prototype,{getGraphPath:Z.getGraphPath,getStackPoints:Z.getStackPoints,drawGraph:Z.drawGraph}),_.registerSeriesType("areaspline",L),L}),at(O,"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"}}),at(O,"Series/Column/ColumnSeries.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Color/Color.js"],O["Series/Column/ColumnSeriesDefaults.js"],O["Core/Globals.js"],O["Core/Series/Series.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y,U){const{animObject:L}=B,{parse:N}=_,{hasTouch:R,noop:v}=Q,{clamp:w,defined:P,extend:I,fireEvent:d,isArray:x,isNumber:y,merge:f,pick:T,objectEach:k}=U;class b extends Z{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(L(p.options.animation),{step:function(A,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),A=u*p.groupPadding,r=(u-2*A)/(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+(A+((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 A=u[h.x.toString()];A&&(u=A.points[this.index],e?(u&&(i=l),A.hasValidPoints&&(t?l++:l--)):x(u)&&(u=Object.keys(A.points).filter(r=>!r.match(",")&&A.points[r]&&1<A.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(),A=u.width,r=a.pointXOffset=u.offset,S=a.dataMin,F=a.dataMax;let q=a.barW=Math.max(A,1+2*c),nt=a.translatedThreshold=t.getThreshold(i);p.inverted&&(nt-=.5),h.pointPadding&&(q=Math.ceil(q)),Z.prototype.translate.apply(a),a.points.forEach(function(j){const s=T(j.yBottom,nt);var M=999+Math.abs(s),z=j.plotX||0;M=w(j.plotY,-M,t.len+M);let D=Math.min(M,s),V=Math.max(M,s)-D,o=A,g=z+r,m=q;l&&Math.abs(V)<l&&(V=l,z=!t.reversed&&!j.negative||t.reversed&&j.negative,y(i)&&y(F)&&j.y===i&&F<=i&&(t.min||0)<i&&(S!==F||(t.max||0)<=i)&&(z=!z,j.negative=!j.negative),D=Math.abs(D-nt)>l?s-l:nt-(z?l:0)),P(j.options.pointWidth)&&(o=m=Math.ceil(j.options.pointWidth),g-=Math.round((o-A)/2)),h.centerInCategory&&(g=a.adjustForMissingColumns(g,o,j,u)),j.barX=g,j.pointWidth=o,j.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],j.shapeType=a.pointClass.prototype.shapeType||"roundedRect",j.shapeArgs=a.crispCol(g,j.isNull?nt:D,m,j.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 A=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,A=i.borderWidth||A)),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,A=a[t]||A,c=a.dashStyle||c,r=T(a.opacity,r)),e={fill:l,stroke:u,"stroke-width":A,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,A=!!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}),A=!0,r="animate"),u&&A&&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)}),Z.prototype.remove.apply(a,arguments)}}return b.defaultOptions=f(Z.defaultOptions,G),I(b.prototype,{cropShoulder:0,directTouch:!0,getSymbol:v,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),Y.registerSeriesType("column",b),b}),at(O,"Core/Series/DataLabel.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Templating.js"],O["Core/Utilities.js"]],function(B,_,G){const{getDeferredAnimation:Q}=B,{format:Z}=_,{defined:Y,extend:U,fireEvent:L,isArray:N,isString:R,merge:v,objectEach:w,pick:P,splat:I}=G;var d;return function(x){function y(c,e,t,i,l){const u=this.chart;var A=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:A,paneCoordinates:!0,series:this});let j=P(t.overflow,r?"none":"justify")==="justify";if(A=this.visible&&c.visible!==!1&&Y(S)&&(c.series.forceDL||r&&!j||F||P(t.inside,!!this.options.stacking)&&i&&u.isInsidePlot(S,A?i.x+1:i.y+i.height-1,{inverted:A,paneCoordinates:!0,series:this})),S=c.pos(),A&&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?(j=!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&&!j&&this.setDataLabelStartPos(c,e,l,F,M),e[l?"attr":"animate"](M)):(r&&this.xAxis&&!j&&this.setDataLabelStartPos(c,e,l,F,i),e.align(t,void 0,i),M=e.alignAttr),j&&0<=i.height)this.justifyDataLabel(e,t,M,nt,i,l);else if(P(t.crop,!0)){let{x:z,y:D}=M;z+=s[0],D+=s[1],A=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),A||r&&!j?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,A=l.renderer,{backgroundColor:r,plotBackgroundColor:S}=l.options.chart,F=l.options.plotOptions,q=A.getContrast(R(S)&&S||R(r)&&r||"#000000");let nt=u.dataLabels,j,s;var M=I(nt)[0];const z=M.animation;M=M.defer?Q(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),L(this,"drawDataLabels"),(N(nt)||nt.enabled||i._hasPointLabels)&&(s=this.initDataLabels(M),c.forEach(D=>{var V;const o=D.dataLabels||[];for(j=I(a(nt,D.dlOptions||((V=D.options)===null||V===void 0?void 0:V.dataLabels))),j.forEach((g,m)=>{var H,W=g.enabled&&(!D.isNull||D.dataLabelOnNull)&&f(D,g);const $=D.connectors?D.connectors[m]:D.connector,tt=g.style||{};let et={},rt=o[m],ht=!rt;const pt=P(g.distance,D.labelDistance);if(W){var E=P(g[D.formatPrefix+"Format"],g.format),C=D.getLabelConfig();if(C=Y(E)?Z(E,C,l):(g[D.formatPrefix+"Formatter"]||g.formatter).call(C,g),E=g.rotation,l.styledMode||(tt.color=P(g.color,tt.color,R(i.color)?i.color:void 0,"#000000"),tt.color==="contrast"?(D.contrastColor=A.getContrast(D.color||i.color),tt.color=!Y(pt)&&g.inside||0>(pt||0)||u.stacking?D.contrastColor:q):delete D.contrastColor,u.cursor&&(tt.cursor=u.cursor)),et={r:g.borderRadius||0,rotation:E,padding:g.padding,zIndex:1},!l.styledMode){const{backgroundColor:K,borderColor:X}=g;et.fill=K==="auto"?D.color:K,et.stroke=X==="auto"?D.color:X,et["stroke-width"]=g.borderWidth}w(et,(K,X)=>{typeof K>"u"&&delete et[X]})}!rt||W&&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]))),W&&Y(C)&&(rt?et.text=C:(rt=E?A.text(C,0,0,g.useHTML).addClass("highcharts-data-label"):A.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(et),l.styledMode||rt.css(tt).shadow(g.shadow),(W=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,W),D.dataLabelPath&&!W.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})),L(this,"afterDrawDataLabels")}function n(c,e,t,i,l,u){const A=this.chart,r=e.align,S=e.verticalAlign,F=c.box?0:c.padding||0;let{x:q=0,y:nt=0}=e,j,s;return j=(t.x||0)+F,0>j&&(r==="right"&&0<=q?(e.align="left",e.inside=!0):q-=j,s=!0),j=(t.x||0)+i.width-F,j>A.plotWidth&&(r==="left"&&0>=q?(e.align="right",e.inside=!0):q+=A.plotWidth-j,s=!0),j=t.y+F,0>j&&(S==="bottom"&&0<=nt?(e.verticalAlign="top",e.inside=!0):nt-=j,s=!0),j=(t.y||0)+i.height-F,j>A.plotHeight&&(S==="top"&&0>=nt?(e.verticalAlign="bottom",e.inside=!0):nt+=A.plotHeight-j,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,A=u.inverted,r=this.xAxis,S=r.reversed,F=A?e.height/2:e.width/2;c=(c=c.pointWidth)?c/2:0,e.startXPos=A?l.x:S?-F-c:r.width-F+c,e.startYPos=A?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){G.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}),at(O,"Series/Column/ColumnDataLabel.js",[O["Core/Series/DataLabel.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{series:Q}=_,{merge:Z,pick:Y}=G;var U;return function(L){function N(v,w,P,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(P.inside,!!this.options.stacking);T&&(I=Z(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))),P.align=Y(P.align,!x||b?"center":k?"right":"left"),P.verticalAlign=Y(P.verticalAlign,x||b?"middle":k?"top":"bottom"),Q.prototype.alignDataLabel.call(this,v,w,P,I,d),P.inside&&v.contrastColor&&w.css({color:v.contrastColor})}const R=[];L.compose=function(v){B.compose(Q),G.pushUnique(R,v)&&(v.prototype.alignDataLabel=N)}}(U||(U={})),U}),at(O,"Series/Bar/BarSeries.js",[O["Series/Column/ColumnSeries.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{extend:Q,merge:Z}=G;class Y extends B{constructor(){super(...arguments),this.points=this.options=this.data=void 0}}return Y.defaultOptions=Z(B.defaultOptions,{}),Q(Y.prototype,{inverted:!0}),_.registerSeriesType("bar",Y),Y}),at(O,"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/>"}}}),at(O,"Series/Scatter/ScatterSeries.js",[O["Series/Scatter/ScatterSeriesDefaults.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G){const{column:Q,line:Z}=_.seriesTypes,{addEvent:Y,extend:U,merge:L}=G;class N extends Z{constructor(){super(...arguments),this.points=this.options=this.data=void 0}applyJitter(){const v=this,w=this.options.jitter,P=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*P),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=L(Z.defaultOptions,B),U(N.prototype,{drawTracker:Q.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1}),Y(N,"afterTranslate",function(){this.applyJitter()}),_.registerSeriesType("scatter",N),N}),at(O,"Series/CenteredUtilities.js",[O["Core/Globals.js"],O["Core/Series/Series.js"],O["Core/Utilities.js"]],function(B,_,G){const{deg2rad:Q}=B,{fireEvent:Z,isNumber:Y,pick:U,relativeLength:L}=G;var N;return function(R){R.getCenter=function(){var v=this.options,w=this.chart;const P=2*(v.slicedOffset||0),I=w.plotWidth-2*P,d=w.plotHeight-2*P;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 _||(v[3]=0),x=0;4>x;++x)T=v[x],w=2>x||x===2&&/%$/.test(T),v[x]=L(T,[I,d,y,v[2]][x])+(w?P:0);return v[3]>v[2]&&(v[3]=v[2]),Y(f)&&2*f<v[2]&&0<f&&(v[3]=v[2]-2*f),Z(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:Q*(v+-90),end:Q*(w+-90)}}}(N||(N={})),N}),at(O,"Series/Pie/PiePoint.js",[O["Core/Animation/AnimationUtilities.js"],O["Core/Series/Point.js"],O["Core/Utilities.js"]],function(B,_,G){const{setAnimation:Q}=B,{addEvent:Z,defined:Y,extend:U,isNumber:L,pick:N,relativeLength:R}=G;class v extends _{constructor(){super(...arguments),this.series=this.options=this.labelDistance=void 0}getConnectorPath(){const P=this.labelPosition,I=this.series.options.dataLabels,d=this.connectorShapes;let x=I.connectorShape;return d[x]&&(x=d[x]),x.call(this,{x:P.computed.x,y:P.computed.y,alignment:P.alignment},P.connectorPosition,I)}getTranslate(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}}haloPath(P){const I=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(I.x,I.y,I.r+P,I.r+P,{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 P=I=>{this.slice(I.type==="select")};return Z(this,"select",P),Z(this,"unselect",P),this}isValid(){return L(this.y)&&0<=this.y}setVisible(P,I){const d=this.series,x=d.chart,y=d.options.ignoreHiddenPoint;I=N(I,y),P!==this.visible&&(this.visible=this.options.visible=P=typeof P>"u"?!this.visible:P,d.options.data[d.data.indexOf(this)]=this.options,["graphic","dataLabel","connector"].forEach(f=>{this[f]&&this[f][P?"show":"hide"](P)}),this.legendItem&&x.legend.colorizeItem(this,P),P||this.state!=="hover"||this.setState(""),y&&(d.isDirty=!0),I&&x.redraw())}slice(P,I,d){const x=this.series;Q(d,x.chart),N(I,!0),this.sliced=this.options.sliced=Y(P)?P:!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,P,I){const d=P.breakAt;return P=P.touchingSliceAt,[["M",w.x,w.y],I.softConnector?["C",w.x+(w.alignment==="left"?-5:5),w.y,2*d.x-P.x,2*d.y-P.y,d.x,d.y]:["L",d.x,d.y],["L",P.x,P.y]]},straight:function(w,P){return P=P.touchingSliceAt,[["M",w.x,w.y],["L",P.x,P.y]]},crookedLine:function(w,P,I){const{breakAt:d,touchingSliceAt:x}=P;({series:P}=this);const[y,f,T]=P.center,k=T/2,b=P.chart.plotWidth,n=P.chart.plotLeft;P=w.alignment==="left";const{x:a,y:p}=w;return I.crookDistance?(w=R(I.crookDistance,1),w=P?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]],(P?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}),at(O,"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}}}}),at(O,"Series/Pie/PieSeries.js",[O["Series/CenteredUtilities.js"],O["Series/Column/ColumnSeries.js"],O["Core/Globals.js"],O["Series/Pie/PiePoint.js"],O["Series/Pie/PieSeriesDefaults.js"],O["Core/Series/Series.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Renderer/SVG/Symbols.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y,U,L,N){const{getStartAndEndRadians:R}=B;({noop:G}=G);const{clamp:v,extend:w,fireEvent:P,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:L.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){P(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 A=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*A)/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+A)/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,A=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)*A,y:T[1]+t+Math.sin(r)*A},touchingSliceAt:{x:T[0]+S,y:T[1]+t}}}}P(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,Z),w(y.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:_.prototype.drawTracker,getCenter:B.getCenter,getSymbol:G,isCartesian:!1,noSharedTooltip:!0,pointAttribs:_.prototype.pointAttribs,pointClass:Q,requireSorting:!1,searchPoint:G,trackerGroups:["group","dataLabelsGroup"]}),U.registerSeriesType("pie",y),y}),at(O,"Series/Pie/PieDataLabel.js",[O["Core/Series/DataLabel.js"],O["Core/Globals.js"],O["Core/Renderer/RendererUtilities.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z){const{noop:Y}=_,{distribute:U}=G,{series:L}=Q,{arrayMax:N,clamp:R,defined:v,merge:w,pick:P,relativeLength:I}=Z;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,A=u[2]/2,r=u[1],S=[[],[]],F=[0,0,0,0],q=n.dataLabelPositioners;let nt,j,s,M,z,D,V,o,g,m,H,W;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)}),L.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(($,tt)=>{const et=$.length,rt=[];let ht,pt=0;if(et){if(n.sortByAngle($,tt-.5),0<n.maxLabelDistance){var E=Math.max(0,r-A-n.maxLabelDistance);ht=Math.min(r+A+n.maxLabelDistance,p.plotHeight),$.forEach(function(C){0<C.labelDistance&&C.dataLabel&&(C.top=Math.max(0,r-A-C.labelDistance),C.bottom=Math.min(r+A+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<et;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,A,u);else switch(h.alignTo){case"connectors":o=q.alignToConnectors($,tt,e,i);break;case"plotEdges":o=q.alignToPlotEdges(M,tt,e,i);break;default:o=q.radialDistributionX(n,nt,g,E)}M._attr={visibility:m,align:D.alignment},W=nt.options.dataLabels||{},M._pos={x:o+P(W.x,h.x)+({left:c,right:-c}[D.alignment]||0),y:g+P(W.y,h.y)-M.getBBox().height/2},D&&(D.computed.x=o,D.computed.y=g),P(h.crop,!0)&&(z=M.getBBox().width,E=null,o-z<c&&tt===1?(E=Math.round(z-o+c),F[3]=Math.max(E,F[3])):o+z>e-c&&tt===0&&(E=Math.round(o+z-e+c),F[1]=Math.max(E,F[1])),0>g-V/2?F[0]=Math.max(Math.round(-g+V/2),F[0]):g+V/2>t&&(F[2]=Math.max(Math.round(g+V/2-t),F[2])),M.sideOverflow=E)}}}),N(F)===0||this.verifyDataLabelOverflow(F))&&(this.placeDataLabels(),this.points.forEach(function($){if(W=w(h,$.options.dataLabels),j=P(W.connectorWidth,1)){let tt;s=$.connector,(M=$.dataLabel)&&M._pos&&$.visible&&0<$.labelDistance?(m=M._attr.visibility,(tt=!s)&&($.connector=s=p.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+$.colorIndex+($.className?" "+$.className:"")).add(n.dataLabelsGroup),p.styledMode||s.attr({"stroke-width":j,stroke:W.connectorColor||$.color||"#666666"})),s[tt?"attr":"animate"]({d:$.getConnectorPath()}),s.attr("visibility",m)):s&&($.connector=s.destroy())}}))}function f(){this.points.forEach(function(n){let a=n.dataLabel,p;a&&n.visible&&((p=a._pos)?(a.sideOverflow&&(a._attr.width=Math.max(a.getBBox().width-a.sideOverflow,0),a.css({width:a._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),a.shortened=!0),a.attr(a._attr),a[a.moved?"animate":"attr"](p),a.moved=!0):a&&a.attr({y:-9999})),delete n.distributeBox},this)}function T(n){let a=this.center,p=this.options,h=p.center,c=p.minSize||80,e,t=p.size!==null;return t||(h[0]!==null?e=Math.max(a[2]-Math.max(n[1],n[3]),c):(e=Math.max(a[2]-n[1]-n[3],c),a[0]+=(n[3]-n[1])/2),h[1]!==null?e=R(e,c,a[2]-Math.max(n[0],n[2])):(e=R(e,c,a[2]-n[0]-n[2]),a[1]+=(n[0]-n[2])/2),e<a[2]?(a[2]=e,a[3]=Math.min(p.thickness?Math.max(0,e-2*p.thickness):Math.max(0,I(p.innerSize||0,e)),e),this.translate(a),this.drawDataLabels&&this.drawDataLabels()):t=!0),t}const k=[],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){B.compose(L),Z.pushUnique(k,n)&&(n=n.prototype,n.dataLabelPositioners=b,n.alignDataLabel=Y,n.drawDataLabels=y,n.placeDataLabels=f,n.verifyDataLabelOverflow=T)}}(d||(d={})),d}),at(O,"Extensions/OverlappingDataLabels.js",[O["Core/Chart/Chart.js"],O["Core/Utilities.js"]],function(B,_){function G(R,v){let w,P=!1;return R&&(w=R.newOpacity,R.oldOpacity!==w&&(R.alignAttr&&R.placed?(R[w?"removeClass":"addClass"]("highcharts-data-label-hidden"),P=!0,R.alignAttr.opacity=w,R[R.isOld?"animate":"attr"](R.alignAttr,null,function(){v.styledMode||R.css({pointerEvents:w?"auto":"none"})}),Z(v,"afterHideOverlappingLabel")):R.attr({opacity:w})),R.isOld=!0),P}const{addEvent:Q,fireEvent:Z,isArray:Y,isNumber:U,objectEach:L,pick:N}=_;Q(B,"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&&L(w.stacking.stacks,function(P){L(P,function(I){I.label&&v.push(I.label)})})}),(this.series||[]).forEach(function(w){var P=w.options.dataLabels;w.visible&&(P.enabled!==!1||w._hasPointLabels)&&(P=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,G(x,R)):v.push(x)})}),P(w.nodes||[]),P(w.points))}),this.hideOverlappingLabels(v)}),B.prototype.hideOverlappingLabels=function(R){let v=this,w=R.length,P=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=P.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){G(b,v)&&(T=!0)}),T&&Z(v,"afterHideAllOverlappingLabels")}}),at(O,"Extensions/BorderRadius.js",[O["Core/Defaults.js"],O["Core/Series/Series.js"],O["Core/Series/SeriesRegistry.js"],O["Core/Renderer/SVG/SVGElement.js"],O["Core/Renderer/SVG/SVGRenderer.js"],O["Core/Utilities.js"]],function(B,_,G,Q,Z,Y){const{defaultOptions:U}=B;({seriesTypes:B}=G);const{addEvent:L,extend:N,isObject:R,merge:v,relativeLength:w}=Y,P={radius:0,scope:"stack",where:void 0},I=(d,x)=>(R(d)||(d={radius:d||0}),v(P,x,d));if(Q.symbolCustomAttribs.indexOf("borderRadius")===-1){Q.symbolCustomAttribs.push("borderRadius","brBoxHeight","brBoxY");const d=Z.prototype.symbols.arc;Z.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 A,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,A=!0),S&&r&&r.params){t=r[1];var l=r[5];i=r.params;const{start:F,end:q,cx:nt,cy:j}=i;var u=l?t-e:t+e;const s=u?Math.asin(e/u):0;l=l?s:-s,u*=Math.cos(s),A?(i.start=F+l,S[1]=nt+u*Math.cos(F),S[2]=j+u*Math.sin(F),k.splice(c+1,0,["A",e,e,0,0,1,nt+t*Math.cos(i.start),j+t*Math.sin(i.start)])):(i.end=q-l,r[6]=nt+t*Math.cos(i.end),r[7]=j+t*Math.sin(i.end),k.splice(c+1,0,["A",e,e,0,0,1,nt+u*Math.cos(q),j+u*Math.sin(q)])),r[4]=Math.abs(i.end-i.start)<Math.PI?0:1}}return y};const x=Z.prototype.symbols.roundedRect;Z.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],A=[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]=A[0]=y+T-b+i,r[0]=Math.min(u[0],r[0]),S[0]=Math.max(A[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,A[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]=A[0]=y+T-t+k,c[0]=Math.min(u[0],c[0]),e[0]=Math.max(A[0],e[0]),F[0]=q[0]=y+t-k,A[1]=F[1]=f),n.length=0,n.push(["M",...e],["L",...c],["A",b,b,0,0,1,...u],["L",...A],["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},L(B.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)))}}),L(_,"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 _={optionsToObject:I},_}),at(O,"Core/Responsive.js",[O["Core/Utilities.js"]],function(B){const{diffObjects:_,extend:G,find:Q,merge:Z,pick:Y,uniqueKey:U}=B;var L;return function(N){function R(P,I){const d=P.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(P._id)}function v(P,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=Z(...y.map(f=>Q((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,P,!0),y?(x=_(I,this.options,!0,this.collectionsWithUpdate),x.isResponsiveOptions=!0,this.currentResponsive={ruleIds:y,mergedOptions:I,undoOptions:x},this.update(I,P,!0)):this.currentResponsive=void 0)}const w=[];N.compose=function(P){return B.pushUnique(w,P)&&G(P.prototype,{matchResponsiveRule:R,setResponsive:v}),P}}(L||(L={})),L}),at(O,"masters/highcharts.src.js",[O["Core/Globals.js"],O["Core/Utilities.js"],O["Core/Defaults.js"],O["Core/Animation/Fx.js"],O["Core/Animation/AnimationUtilities.js"],O["Core/Renderer/HTML/AST.js"],O["Core/Templating.js"],O["Core/Renderer/RendererUtilities.js"],O["Core/Renderer/SVG/SVGElement.js"],O["Core/Renderer/SVG/SVGRenderer.js"],O["Core/Renderer/HTML/HTMLElement.js"],O["Core/Renderer/HTML/HTMLRenderer.js"],O["Core/Axis/Axis.js"],O["Core/Axis/DateTimeAxis.js"],O["Core/Axis/LogarithmicAxis.js"],O["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],O["Core/Axis/Tick.js"],O["Core/Tooltip.js"],O["Core/Series/Point.js"],O["Core/Pointer.js"],O["Core/Legend/Legend.js"],O["Core/Chart/Chart.js"],O["Core/Axis/Stacking/StackingAxis.js"],O["Core/Axis/Stacking/StackItem.js"],O["Core/Series/Series.js"],O["Core/Series/SeriesRegistry.js"],O["Series/Column/ColumnSeries.js"],O["Series/Column/ColumnDataLabel.js"],O["Series/Pie/PieSeries.js"],O["Series/Pie/PieDataLabel.js"],O["Core/Series/DataLabel.js"],O["Core/Responsive.js"],O["Core/Color/Color.js"],O["Core/Time.js"]],function(B,_,G,Q,Z,Y,U,L,N,R,v,w,P,I,d,x,y,f,T,k,b,n,a,p,h,c,e,t,i,l,u,A,r,S){return B.animate=Z.animate,B.animObject=Z.animObject,B.getDeferredAnimation=Z.getDeferredAnimation,B.setAnimation=Z.setAnimation,B.stop=Z.stop,B.timers=Q.timers,B.AST=Y,B.Axis=P,B.Chart=n,B.chart=n.chart,B.Fx=Q,B.Legend=b,B.PlotLineOrBand=x,B.Point=T,B.Pointer=k,B.Series=h,B.StackItem=p,B.SVGElement=N,B.SVGRenderer=R,B.Templating=U,B.Tick=y,B.Time=S,B.Tooltip=f,B.Color=r,B.color=r.parse,w.compose(R),v.compose(N),k.compose(n),b.compose(n),B.defaultOptions=G.defaultOptions,B.getOptions=G.getOptions,B.time=G.defaultTime,B.setOptions=G.setOptions,B.dateFormat=U.dateFormat,B.format=U.format,B.numberFormat=U.numberFormat,B.addEvent=_.addEvent,B.arrayMax=_.arrayMax,B.arrayMin=_.arrayMin,B.attr=_.attr,B.clearTimeout=_.clearTimeout,B.correctFloat=_.correctFloat,B.createElement=_.createElement,B.css=_.css,B.defined=_.defined,B.destroyObjectProperties=_.destroyObjectProperties,B.discardElement=_.discardElement,B.distribute=L.distribute,B.erase=_.erase,B.error=_.error,B.extend=_.extend,B.extendClass=_.extendClass,B.find=_.find,B.fireEvent=_.fireEvent,B.getMagnitude=_.getMagnitude,B.getStyle=_.getStyle,B.inArray=_.inArray,B.isArray=_.isArray,B.isClass=_.isClass,B.isDOMElement=_.isDOMElement,B.isFunction=_.isFunction,B.isNumber=_.isNumber,B.isObject=_.isObject,B.isString=_.isString,B.keys=_.keys,B.merge=_.merge,B.normalizeTickInterval=_.normalizeTickInterval,B.objectEach=_.objectEach,B.offset=_.offset,B.pad=_.pad,B.pick=_.pick,B.pInt=_.pInt,B.relativeLength=_.relativeLength,B.removeEvent=_.removeEvent,B.seriesType=c.seriesType,B.splat=_.splat,B.stableSort=_.stableSort,B.syncTimeout=_.syncTimeout,B.timeUnits=_.timeUnits,B.uniqueKey=_.uniqueKey,B.useSerialIds=_.useSerialIds,B.wrap=_.wrap,t.compose(e),u.compose(h),I.compose(P),d.compose(P),l.compose(i),x.compose(P),A.compose(n),a.compose(P,n,h),f.compose(k),B}),O["masters/highcharts.src.js"]._modules=O,O["masters/highcharts.src.js"]})}(re)),re.exports}(function(lt,it){(function(at,O){lt.exports=O(hs(),We)})(window,function(at,O){return _=[function(Q,Z){Q.exports=at},function(Q,Z){Q.exports=O},function(Q,U,Y){Y.r(U),Y.d(U,"Chart",function(){return f}),Y.d(U,"default",function(){return T});var U=Y(0),L=Y.n(U);function N(k,b){return function n(a,p,h){function c(e,t){!L.a.isObject(e,!h)||L.a.isClass(e)||L.a.isDOMElement(e)?a[t]=p[t]:a[t]=n(a[t]||L.a.isArray(e)?[]:{},e,h)}return L.a.isArray(p)?p.forEach(c):L.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 P(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"?P(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)?P(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 P(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(L.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||L.a,k.version))}}],G={},B.m=_,B.c=G,B.d=function(Q,Z,Y){B.o(Q,Z)||Object.defineProperty(Q,Z,{enumerable:!0,get:Y})},B.r=function(Q){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(Q,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(Q,"__esModule",{value:!0})},B.t=function(Q,Z){if(1&Z&&(Q=B(Q)),8&Z||4&Z&&typeof Q=="object"&&Q&&Q.__esModule)return Q;var Y=Object.create(null);if(B.r(Y),Object.defineProperty(Y,"default",{enumerable:!0,value:Q}),2&Z&&typeof Q!="string")for(var U in Q)B.d(Y,U,(function(L){return Q[L]}).bind(null,U));return Y},B.n=function(Q){var Z=Q&&Q.__esModule?function(){return Q.default}:function(){return Q};return B.d(Z,"a",Z),Z},B.o=function(Q,Z){return Object.prototype.hasOwnProperty.call(Q,Z)},B.p="",B(B.s=2);function B(Q){var Z;return(G[Q]||(Z=G[Q]={i:Q,l:!1,exports:{}},_[Q].call(Z.exports,Z,Z.exports,B),Z.l=!0,Z)).exports}var _,G})})(_e);var oe=_e.exports;const cs={class:"w-88vw flex flex-col md:w-92vw"},ds={class:"mx-auto max-w-screen-xl px-4 py-4 lg:px-6 lg:py-6"},ps={class:"lg:grid lg:grid-cols-3 sm:gap-6 xl:gap-10 space-y-8 lg:space-y-0"},us={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"},fs={class:"mb-4 text-2xl font-semibold"},gs={class:"my-8 flex items-baseline justify-center"},ms={class:"mr-2 text-5xl font-extrabold"},xs={class:"mt-8 flex flex-col gap-8"},ys=It({__name:"Statistics",props:{rank:null},setup(lt){const it=lt,{t:at}=Yt(),O=wt(()=>it.rank);function B(){const _=[];return _.push({title:"standings.statistics.head_data.problems",data:O.value.contest.problems.length}),_.push({title:"standings.statistics.head_data.teams",data:O.value.teams.length}),_.push({title:"standings.statistics.head_data.submissions",data:O.value.getSubmissions().length}),_}return(_,G)=>(ut(),gt("div",cs,[ot("section",null,[ot("div",ds,[ot("div",ps,[(ut(!0),gt(Et,null,Dt(B(),Q=>(ut(),gt("div",{key:Q.title},[ot("div",us,[ot("h3",fs,vt(st(at)(Q.title)),1),ot("div",gs,[ot("span",ms,vt(Q.data),1)])])]))),128))])])]),ot("div",xs,[ot("div",null,[Ot(st(oe.Chart),{options:("getSubmitChart"in _?_.getSubmitChart:st(as))(st(O))},null,8,["options"])]),ot("div",null,[Ot(st(oe.Chart),{options:("getProblemChart"in _?_.getProblemChart:st(ns))(st(O))},null,8,["options"])]),ot("div",null,[Ot(st(oe.Chart),{options:("getTeamChart"in _?_.getTeamChart:st(rs))(st(O))},null,8,["options"])])])]))}}),vs={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"},ks={class:"text-sm font-normal text-gray-500 dark:text-gray-400"},bs={class:"font-semibold text-gray-900 dark:text-white"},ws={class:"font-semibold text-gray-900 dark:text-white"},Ss={class:"inline-flex items-stretch font-mono -space-x-px"},Cs=ot("span",{class:"sr-only"},"Previous",-1),Ms=ot("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[ot("path",{"fill-rule":"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z","clip-rule":"evenodd"})],-1),Ts=[Cs,Ms],As={key:0},Ps=["onClick"],Os={"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"},Ls=["onClick"],_s={key:1},Es=ot("span",{class:"sr-only"},"Next",-1),Ds=ot("svg",{class:"h-5 w-5","aria-hidden":"true",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[ot("path",{"fill-rule":"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z","clip-rule":"evenodd"})],-1),Is=[Es,Ds],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",js=It({__name:"TablePagination",props:{pagination:null},emits:["update:pagination"],setup(lt,{emit:it}){const at=lt,O=wt({get(){return at.pagination},set(B){it("update:pagination",B)}});return(B,_)=>(ut(),gt("nav",vs,[ot("span",ks,[zt(" Showing "),ot("span",bs,vt(st(O).currentLeft)+"-"+vt(Math.max(0,st(O).currentRight-1)),1),zt(" of "),ot("span",ws,vt(st(O).totalSize),1)]),ot("ul",Ss,[ot("li",null,[ot("a",{class:"ml-0 h-full flex items-center justify-center border border-gray-300 rounded-l-lg bg-white px-3 py-1.5 text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:_[0]||(_[0]=G=>st(O).onPageChange({diff:-1}))},Ts)]),st(O).currentPage!==0?(ut(),gt("li",As,[ot("a",{class:Tt(ie),hover:"cursor-pointer",onClick:_[1]||(_[1]=G=>st(O).onPageChange({to:0}))}," 1 ")])):St("",!0),(ut(!0),gt(Et,null,Dt(st(O).leftDecrPage,G=>(ut(),gt("li",{key:G},[ot("a",{class:Tt(ie),hover:"cursor-pointer",onClick:Q=>st(O).onPageChange({to:G})},vt(G+1),9,Ps)]))),128)),ot("li",null,[ot("a",Os,vt(st(O).currentPage+1),1)]),(ut(!0),gt(Et,null,Dt(st(O).rightIncrPage,G=>(ut(),gt("li",{key:G},[ot("a",{hover:"cursor-pointer",class:Tt(ie),onClick:Q=>st(O).onPageChange({to:G})},vt(G+1),9,Ls)]))),128)),st(O).currentPage!==st(O).totalPage-1&&st(O).totalPage>1?(ut(),gt("li",_s,[ot("a",{hover:"cursor-pointer",class:Tt(ie),onClick:_[2]||(_[2]=G=>st(O).onPageChange({to:st(O).totalPage-1}))},vt(st(O).totalPage),1)])):St("",!0),ot("li",null,[ot("a",{class:"h-full flex items-center justify-center border border-gray-300 rounded-r-lg bg-white px-3 py-1.5 leading-tight text-gray-500 dark:border-gray-700 dark:bg-gray-800 hover:bg-gray-100 dark:text-gray-400 hover:text-gray-700 dark:hover:bg-gray-700 dark:hover:text-white",hover:"cursor-pointer",onClick:_[3]||(_[3]=G=>st(O).onPageChange({diff:1}))},Is)])])]))}});class Bs{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 it=[];let at=1,O=this.currentPage-at;for(;O>0;)it.push(O),at=at<<1,O-=at;return it.reverse()}get rightIncrPage(){const it=[];let at=1,O=this.currentPage+at;for(;O+1<this.totalPage;)it.push(O),at=at<<1,O+=at;return it}onPageChange(it){const at=this.totalPage;let O=this.currentPage;if((it==null?void 0:it.to)!==void 0&&(O=it.to),(it==null?void 0:it.diff)!==void 0){const B=it.diff;O=O+B}O<0||O>=at||(this.currentPage=O)}}const Kt=lt=>(Qt("data-v-e1cd75f7"),lt=lt(),te(),lt),Rs={class:"mx-auto w-full","px-4":""},zs={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":""},Ns={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"},Hs={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"},$s=Kt(()=>ot("svg",{class:"mr-2 h-3.5 w-3.5",fill:"currentColor",viewbox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"},[ot("path",{"clip-rule":"evenodd","fill-rule":"evenodd",d:"M10 3a1 1 0 011 1v5h5a1 1 0 110 2h-5v5a1 1 0 11-2 0v-5H4a1 1 0 110-2h5V4a1 1 0 011-1z"})],-1)),Ws={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"},Gs=Kt(()=>ot("svg",{class:"mr-2 h-4 w-4",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",fill:"none",viewbox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[ot("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182m0-4.991v4.99"})],-1)),Fs={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"},Xs=Kt(()=>ot("div",{"i-pajamas-export":"",class:"mr-2 h-4 w-4"},null,-1)),Ys={class:"overflow-x-auto"},Us={class:"w-full text-left text-sm text-gray-500 dark:text-gray-400","font-medium":"","font-mono":""},Vs={class:"bg-gray-50 text-xs uppercase text-gray-700 dark:bg-gray-700 dark:text-gray-400"},qs=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Problem ",-1)),Ks={key:0,scope:"col",class:"px-4 py-3"},Zs=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Team ",-1)),Js=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Status ",-1)),Qs={key:1,scope:"col",class:"px-4 py-3"},to={key:2,scope:"col",class:"px-4 py-3"},eo={key:3,scope:"col",class:"px-4 py-3"},io=Kt(()=>ot("th",{scope:"col",class:"px-4 py-3"}," Submit Time ",-1)),so={"px-4":"","py-2":""},oo={key:0,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},no={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},ro={key:1,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},ao={flex:"","items-center":""},lo={key:2,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},ho={key:3,class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},co={flex:"","items-center":""},po={class:"whitespace-nowrap px-4 py-2 text-gray-900 dark:text-white"},uo={flex:"","items-center":""},fo=It({__name:"SubmissionsTable",props:{rank:{},submissions:{},pageSize:{},removeBorder:{type:Boolean}},setup(lt){const it=lt,at=wt(()=>it.rank),O=wt(()=>it.submissions.sort(Ge.compare).reverse()),B=Pt(new Bs);B.value.currentPage=0,B.value.pageSize=it.pageSize??16,B.value.totalSize=O.value.length,ne(O,()=>{B.value.totalSize=O.value.length,B.value.currentPage>=B.value.totalPage&&(B.value.currentPage=B.value.totalPage-1)});const _=wt(()=>O.value.slice(B.value.currentLeft,B.value.currentRight)),G=Pt(!1);function Q(Y){const U="bg-primary-100 text-primary-800 dark:bg-primary-900 dark:text-primary-300",L=Y.problemId,N=at.value.contest.problemsMap.get(L);if(N==null||!N.balloonColor)return U}function Z(Y){const U=Y.problemId,L=at.value.contest.problemsMap.get(U);if(L==null||!L.balloonColor)return;const N=L.balloonColor;return{backgroundColor:N.background_color,color:N.color}}return(Y,U)=>{const L=Me,N=js;return ut(),gt("section",null,[ot("div",Rs,[ot("div",{class:Tt(["relative overflow-hidden bg-white dark:bg-gray-800",{"shadow-md":it.removeBorder!==!0,"sm:rounded-sm":it.removeBorder!==!0}])},[ot("div",zs,[ot("div",Ns,[st(G)?(ut(),gt("button",Hs,[$s,zt(" Add new product ")])):St("",!0),st(G)?(ut(),gt("button",Ws,[Gs,zt(" Update stocks 1/250 ")])):St("",!0),st(G)?(ut(),gt("button",Fs,[Xs,zt(" Export ")])):St("",!0)])]),ot("div",Ys,[ot("table",Us,[ot("thead",Vs,[ot("tr",null,[qs,st(at).contest.organization?(ut(),gt("th",Ks,vt(st(at).contest.organization),1)):St("",!0),Zs,Js,st(at).contest.options.submissionHasTimeField?(ut(),gt("th",Qs," Time ")):St("",!0),st(G)?(ut(),gt("th",to," Memory ")):St("",!0),st(at).contest.options.submissionHasLanguageField?(ut(),gt("th",eo," Answer ")):St("",!0),io])]),ot("tbody",null,[(ut(!0),gt(Et,null,Dt(st(_),R=>{var v,w,P;return ut(),gt("tr",{key:R.id,class:"border-b dark:border-gray-600 hover:bg-gray-100 dark:hover:bg-gray-700"},[ot("td",so,[ot("span",{class:Tt(["rounded px-2 py-0.5 text-sm",[Q(R)]]),style:Vt(Z(R))},vt((v=st(at).contest.problemsMap.get(R.problemId))==null?void 0:v.label),7)]),st(at).contest.organization?(ut(),gt("td",oo,vt((w=st(at).teamsMap.get(R.teamId))==null?void 0:w.organization),1)):St("",!0),ot("td",no,vt((P=st(at).teamsMap.get(R.teamId))==null?void 0:P.name),1),ot("td",{scope:"row",class:Tt([R.status.toString()]),"whitespace-nowrap":"","px-4":"","py-2":"",flex:"","items-center":"","font-bold":""},vt(st(Fe)[R.status]),3),st(at).contest.options.submissionHasTimeField?(ut(),gt("td",ro,[ot("div",ao,vt(`${R.time??0} ms`),1)])):St("",!0),st(G)?(ut(),gt("td",lo," 0.47 ")):St("",!0),st(at).contest.options.submissionHasLanguageField?(ut(),gt("td",ho,[ot("div",co,vt(R.language),1)])):St("",!0),ot("td",po,[ot("div",uo,[Ot(L,null,{popper:qt(()=>[zt(vt(R.timestampDisplayFormatWithMilliSecond),1)]),default:qt(()=>[zt(vt(R.timestampDisplayFormatWithSecond)+" ",1)]),_:2},1024)])])])}),128))])])]),Ot(N,{pagination:st(B),"onUpdate:pagination":U[0]||(U[0]=R=>Nt(B)?B.value=R:null)},null,8,["pagination"])],2)])])}}});const he=Xt(fo,[["__scopeId","data-v-e1cd75f7"]]),ce=lt=>(Qt("data-v-e6b57d04"),lt=lt(),te(),lt),go={class:"statistics-0"},mo=["colspan"],xo={class:"stnd"},yo={class:"statistics-1"},vo=["colspan"],ko={class:"stnd"},bo=ce(()=>ot("br",null,null,-1)),wo={class:"statistics-0"},So=["colspan"],Co={class:"stnd"},Mo=ce(()=>ot("br",null,null,-1)),To={class:"statistics-1"},Ao=["colspan"],Po={class:"stnd"},Oo=ce(()=>ot("br",null,null,-1)),Lo={class:"statistics-0"},_o=["colspan"],Eo={class:"stnd"},Do={class:"statistics-1"},Io=["colspan"],jo={class:"stnd"},Bo=It({__name:"BottomStatistics",props:{rank:null},setup(lt){const it=lt,{t:at}=Yt(),O=wt(()=>it.rank);function B(){let U=3;return O.value.contest.organization&&U++,O.value.contest.badge&&U++,U}function _(U){return U.submittedNum===0?"NaN":`${Math.floor(U.attemptedNum*100/U.submittedNum)}%`}function G(U){return U.submittedNum===0?"NaN":`${Math.floor(U.acceptedNum*100/U.submittedNum)}%`}function Q(U){return U.attemptedNum===0?"NaN":`${U.dirt}%`}function Z(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,L)=>(ut(),gt(Et,null,[ot("tr",go,[ot("td",{class:"empty",colspan:B()},null,8,mo),ot("td",xo,[ot("b",null,vt(st(at)("standings.statistics.submitted")),1)]),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>(ut(),gt("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.submittedNum),1)]))),128))]),ot("tr",yo,[ot("td",{class:"empty",colspan:B()},null,8,vo),ot("td",ko,[ot("b",null,vt(st(at)("standings.statistics.attempted")),1)]),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>(ut(),gt("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.attemptedNum),1),bo,ot("b",null," ("+vt(_(N.statistics))+") ",1)]))),128))]),ot("tr",wo,[ot("td",{class:"empty",colspan:B()},null,8,So),ot("td",Co,[ot("b",null,vt(st(at)("standings.statistics.accepted")),1)]),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>(ut(),gt("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.acceptedNum),1),Mo,ot("b",null," ("+vt(G(N.statistics))+") ",1)]))),128))]),ot("tr",To,[ot("td",{class:"empty",colspan:B()},null,8,Ao),ot("td",Po,[ot("b",null,vt(st(at)("standings.statistics.dirt")),1)]),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>(ut(),gt("td",{key:N.id,class:"stnd"},[ot("b",null,vt(N.statistics.attemptedNum-N.statistics.acceptedNum),1),Oo,ot("b",null," ("+vt(Q(N.statistics))+") ",1)]))),128))]),ot("tr",Lo,[ot("td",{class:"empty",colspan:B()},null,8,_o),ot("td",Eo,[ot("b",null,vt(st(at)("standings.statistics.first_solved")),1)]),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>(ut(),gt("td",{key:N.id,class:"stnd"},[ot("b",null,vt(Z(N.statistics)),1)]))),128))]),ot("tr",Do,[ot("td",{class:"empty",colspan:B()},null,8,Io),ot("td",jo,[ot("b",null,vt(st(at)("standings.statistics.last_solved")),1)]),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>(ut(),gt("td",{key:N.id,class:"stnd"},[ot("b",null,vt(Y(N.statistics)),1)]))),128))])],64))}});const Ro=Xt(Bo,[["__scopeId","data-v-e6b57d04"]]),zo={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":"",class:"mt-[-12px]"},No=It({__name:"SubmissionsTableModal",props:{isHidden:{type:Boolean},rank:null,team:null,p:null},emits:["update:isHidden"],setup(lt,{emit:it}){const at=lt,O=wt({get(){return at.isHidden},set(Z){it("update:isHidden",Z)}}),B=wt(()=>at.rank),_=wt(()=>at.team),G=wt(()=>at.p),Q=wt(()=>`${_.value.name} - ${G.value.problem.label}`);return(Z,Y)=>{const U=he,L=ae;return ut(),Wt(L,{isHidden:st(O),"onUpdate:isHidden":Y[0]||(Y[0]=N=>Nt(O)?O.value=N:null),title:st(Q)},{default:qt(()=>[ot("div",zo,[Ot(U,{"w-full":"",rank:st(B),submissions:st(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])]),_:1},8,["isHidden","title"])}}}),Ho=lt=>(Qt("data-v-dbdd6e30"),lt=lt(),te(),lt),$o=Ho(()=>ot("br",null,null,-1)),Wo=It({__name:"TeamProblemBlock",props:{rank:null,team:null,p:null},setup(lt){const it=lt,at=Pt(!0);function O(){at.value=!1}const B=wt(()=>it.rank),_=wt(()=>it.team),G=wt(()=>it.p);function Q(U){return U.isSolved?"+":U.isWrongAnswer?"-":U.isPending?`? ${U.pendingCount}`:""}function Z(U){let L="";return U.isUnSubmitted||(L+=`${U.failedCount+Number(U.isSolved)}`),(U.isSolved&&B.value.contest.statusTimeDisplay.correct||U.isPending&&B.value.contest.statusTimeDisplay.pending||U.isWrongAnswer&&B.value.contest.statusTimeDisplay.incorrect)&&(L+=`/${Math.floor(U.lastSubmitTimestamp/60)}`),L}function Y(U){return U.isFirstSolved?"first-solve":U.isSolved?"correct":U.isWrongAnswer?"incorrect":U.isPending?"pending":"unattempted"}return(U,L)=>{const N=No;return ut(),gt("td",{class:Tt(["stnd",[Y(st(G))]])},[ot("div",{"cursor-pointer":"",onClick:O},[zt(vt(Q(st(G)))+" ",1),$o,zt(" "+vt(Z(st(G))),1)]),ot("div",null,[st(at)?St("",!0):(ut(),Wt(N,{key:0,isHidden:st(at),"onUpdate:isHidden":L[0]||(L[0]=R=>Nt(at)?at.value=R:null),rank:st(B),team:st(_),p:st(G)},null,8,["isHidden","rank","team","p"]))])],2)}}});const Go=Xt(Wo,[["__scopeId","data-v-dbdd6e30"]]),Fo={"text-gray-900":"","dark:text-white":"","text-xl":"","font-mono":"","font-semibold":"",italic:"",flex:"","flex-col":"","gap-2":"","justify-center":""},Xo={key:0},Yo={key:1,flex:"","flex-col":"","gap-2":""},Uo={key:2},Vo=It({__name:"TeamAwards",props:{team:null,rank:null},setup(lt){const it=lt,at=wt(()=>it.team),O=wt(()=>it.rank),B=wt(()=>it.team.problemStatistics.filter(G=>!!G.isFirstSolved).map(G=>G.problem.label).join(",")),_=wt(()=>{const G=it.team.awards;return G.includes(Ut.GOLD)?{text:"Gold"}:G.includes(Ut.SILVER)?{text:"Silver"}:G.includes(Ut.BRONZE)?{text:"Bronze"}:G.includes(Ut.HONORABLE)?{text:"Honorable"}:null});return(G,Q)=>(ut(),gt("div",Fo,[ot("div",null," Team Rank: "+vt(st(at).rank),1),st(at).organization&&st(at).organizationRank!==-1?(ut(),gt("div",Xo,vt(st(O).contest.organization)+" Rank: "+vt(st(at).organizationRank),1)):St("",!0),st(B).length?(ut(),gt("div",Yo,[ot("div",null," First Solved Problem "+vt(st(B)),1)])):St("",!0),st(_)?(ut(),gt("div",Uo,vt(st(_).text)+" Medal ",1)):St("",!0)]))}}),qo={role:"group","inline-flex":"","flex-col":"","w-full":"","md:w-auto":"","md:flex-row":"","rounded-md":"","shadow-sm":""},Ko=["onClick"],Zo=It({__name:"ModalMenu",props:{currentType:null,types:null},emits:["update:currentType"],setup(lt,{emit:it}){const at=lt,{t:O}=Yt(),B=wt({get(){return at.currentType},set(Q){it("update:currentType",Q)}});function _(Q){B.value=Q}const G=wt(()=>at.types.length);return(Q,Z)=>(ut(),gt("div",qo,[(ut(!0),gt(Et,null,Dt(at.types,(Y,U)=>(ut(),gt("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(G),border:U===0||U+1===st(G),"border-t border-x md:border-x-0 md:border-b":U>0&&U+1<st(G),"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(B)===Y}),onClick:L=>_(Y)},vt(st(O)(`type_menu.${Y}`)),11,Ko))),128))]))}}),Jo=["src"],Ee=It({__name:"Badge",props:{image:null,widthClass:null},setup(lt){const it=lt,at=wt(()=>it.image),O=wt(()=>it.widthClass?it.widthClass:"h-8 w-8");return(B,_)=>st(at).base64?(ut(),gt("img",{key:0,src:st(Xe)(st(at)),alt:"badge",class:Tt([st(O)])},null,10,Jo)):St("",!0)}}),Qo={"w-full":"","max-w-screen-xl":"","px-4":"","mx-auto":"","lg:px-12":""},tn={relative:"","overflow-hidden":"","bg-white":"","dark:bg-gray-800":""},en={flex:"","flex-col":"","items-center":"","justify-between":"","md:flex-row":"","space-y-3":"","md:space-y-0":""},sn={flex:"","flex-row":"","space-x-3":""},on={"text-gray-900":"","dark:text-white":"","text-2xl":"","font-sans":"","font-semibold":"",italic:""},nn={"w-full":"","font-bold":"","font-mono":"",flex:"","items-center":"","justify-center":""},rn={key:0,"w-full":"",class:"mt-[-12px]"},an={key:1,"w-full":""},ln={key:2,"w-full":""},xe="submissions",ye="statistics",ve="awards",hn=It({__name:"TeamInfoModal",props:{isHidden:{type:Boolean},rank:null,team:null},emits:["update:isHidden"],setup(lt,{emit:it}){const at=lt,O=wt({get(){return at.isHidden},set(Y){it("update:isHidden",Y)}}),B=Pt("submissions"),_=wt(()=>at.rank),G=wt(()=>at.team),Q=wt(()=>{let Y="";return _.value.contest.organization&&G.value.organization.length>0&&(Y+=`${G.value.organization} - `),Y+=`${G.value.name}`,G.value.members&&(Y+=` - ${G.value.members}`),G.value.coach&&(Y+=` - ${G.value.coach}(coach)`),Y}),Z=[xe,ye,ve];return(Y,U)=>{const L=Ee,N=Zo,R=he,v=Vo,w=ae;return ut(),Wt(w,{isHidden:st(O),"onUpdate:isHidden":U[1]||(U[1]=P=>Nt(O)?O.value=P:null)},{header:qt(()=>[ot("div",Qo,[ot("div",tn,[ot("div",en,[ot("div",sn,[st(G).badge?(ut(),Wt(L,{key:0,image:st(G).badge,"width-class":"h-8 w-8"},null,8,["image"])):St("",!0),ot("h3",on,vt(st(Q)),1)]),Ot(N,{"current-type":st(B),"onUpdate:currentType":U[0]||(U[0]=P=>Nt(B)?B.value=P:null),types:Z},null,8,["current-type"])])])])]),default:qt(()=>[ot("div",nn,[st(B)===xe?(ut(),gt("div",rn,[Ot(R,{"w-full":"",rank:st(_),submissions:st(G).submissions,"page-size":8,"remove-border":!0},null,8,["rank","submissions"])])):St("",!0),st(B)===ye?(ut(),gt("div",an,[Ot(st(oe.Chart),{options:("getTeamPlaceChart"in Y?Y.getTeamPlaceChart:st(ls))(st(_),st(G))},null,8,["options"])])):St("",!0),st(B)===ve?(ut(),gt("div",ln,[Ot(v,{team:st(G),rank:st(_)},null,8,["team","rank"])])):St("",!0)])]),_:1},8,["isHidden"])}}}),cn={},dn={class:"color-gray-700 dark:color-gray-200"},pn=ot("svg",{t:"1685666543416",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3736",width:"16",height:"16"},[ot("path",{d:"M661.333333 662.613333c0.213333 82.133333 28.8 169.386667 64 169.386667v170.666667H298.666667v-170.666667c35.2 0 63.786667-87.253333 64-169.386667a176.256 176.256 0 0 1 21.333333-1.28h21.333333c0 35.413333 47.786667 64 106.666667 64s106.666667-28.586667 106.666667-64h21.333333a176.256 176.256 0 0 1 21.333333 1.28z",fill:"#F3596B","p-id":"3737"}),ot("path",{d:"M810.666667 832v170.666667h-85.333334v-170.666667c-35.2 0-63.786667-87.253333-64-169.386667A170.666667 170.666667 0 0 1 810.666667 832zM362.666667 662.613333c-0.213333 82.133333-28.8 169.386667-64 169.386667v170.666667h-85.333334v-170.666667a170.666667 170.666667 0 0 1 149.333334-169.386667z",fill:"#FFD0AA","p-id":"3738"}),ot("path",{d:"M704 320v-85.333333c0-94.293333-97.706667-170.666667-192-170.666667a42.794667 42.794667 0 0 1 42.666667-42.666667h128a128 128 0 0 1 128 128v234.666667s0 85.333333 85.333333 85.333333c0 0-93.226667 134.613333-228.48 6.186667a166.229333 166.229333 0 0 0 13.866667-49.066667L682.666667 426.666667h21.333333a42.666667 42.666667 0 0 0 0-85.333334h-21.333333v-21.333333z",fill:"#FFCA6B","p-id":"3739"}),ot("path",{d:"M704 234.666667H320c0-94.293333 97.706667-170.666667 192-170.666667s192 76.373333 192 170.666667z",fill:"#FFCA6B","p-id":"3740"}),ot("path",{d:"M704 234.666667v85.333333H320v-85.333333h384z",fill:"#F3596B","p-id":"3741"}),ot("path",{d:"M746.666667 384a42.794667 42.794667 0 0 1-42.666667 42.666667h-21.333333l-1.28-0.213334A172.8 172.8 0 0 0 682.666667 405.333333v-64h21.333333a42.794667 42.794667 0 0 1 42.666667 42.666667zM341.333333 405.333333a172.8 172.8 0 0 0 1.28 21.12L341.333333 426.666667h-21.333333a42.666667 42.666667 0 0 1 0-85.333334h21.333333zM618.666667 661.333333c0 35.413333-47.786667 64-106.666667 64s-106.666667-28.586667-106.666667-64a42.794667 42.794667 0 0 0 42.666667-42.666666v-55.04a171.712 171.712 0 0 0 128 0V618.666667a42.794667 42.794667 0 0 0 42.666667 42.666666z",fill:"#FFD0AA","p-id":"3742"}),ot("path",{d:"M682.666667 341.333333v64a172.8 172.8 0 0 1-1.28 21.12 166.229333 166.229333 0 0 1-13.866667 49.066667A170.474667 170.474667 0 0 1 576 563.626667 170.538667 170.538667 0 0 1 341.333333 405.333333v-85.333333h341.333334z",fill:"#FFD0AA","p-id":"3743"}),ot("path",{d:"M810.666667 1024H213.333333a21.333333 21.333333 0 0 1-21.333333-21.333333v-170.666667a192.213333 192.213333 0 0 1 192-192h21.333333a21.333333 21.333333 0 0 0 21.333334-21.333333v-64h42.666666v64a64 64 0 0 1-64 64h-21.333333a149.504 149.504 0 0 0-149.333333 149.333333v149.333333h554.666666v-149.333333a149.504 149.504 0 0 0-149.333333-149.333333h-21.333333a64 64 0 0 1-64-64v-64h42.666666v64a21.333333 21.333333 0 0 0 21.333334 21.333333h21.333333a192.213333 192.213333 0 0 1 192 192v170.666667a21.333333 21.333333 0 0 1-21.333333 21.333333z",fill:"#2A3244","p-id":"3744"}),ot("path",{d:"M512 597.333333a192.234667 192.234667 0 0 1-192-192v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333333h341.333334a21.333333 21.333333 0 0 1 21.333333 21.333333v85.333333a192.234667 192.234667 0 0 1-192 192z m-149.333333-256v64a149.333333 149.333333 0 0 0 298.666666 0v-64z",fill:"#2A3244","p-id":"3745"}),ot("path",{d:"M704 448h-21.333333v-42.666667h21.333333a21.333333 21.333333 0 0 0 0-42.666666h-21.333333v-42.666667h21.333333a64 64 0 0 1 0 128zM341.333333 448h-21.333333a64 64 0 0 1 0-128h21.333333v42.666667h-21.333333a21.333333 21.333333 0 0 0 0 42.666666h21.333333z",fill:"#2A3244","p-id":"3746"}),ot("path",{d:"M704 341.333333H320a21.333333 21.333333 0 0 1-21.333333-21.333333v-85.333333a21.333333 21.333333 0 0 1 21.333333-21.333334h384a21.333333 21.333333 0 0 1 21.333333 21.333334v85.333333a21.333333 21.333333 0 0 1-21.333333 21.333333z m-362.666667-42.666666h341.333334v-42.666667H341.333333z",fill:"#2A3244","p-id":"3747"}),ot("path",{d:"M725.333333 234.666667h-42.666666c0-84.096-91.733333-149.333333-170.666667-149.333334s-170.666667 65.237333-170.666667 149.333334h-42.666666c0-109.888 112.618667-192 213.333333-192s213.333333 82.112 213.333333 192z",fill:"#2A3244","p-id":"3748"}),ot("path",{d:"M783.616 552.32c-46.122667 0-92.266667-22.805333-137.365333-67.904l30.165333-30.165333c39.701333 39.701333 78.613333 58.389333 115.648 55.018666a114.282667 114.282667 0 0 0 60.8-26.026666A105.92 105.92 0 0 1 789.333333 384V149.333333a106.794667 106.794667 0 0 0-106.666666-106.666666h-128a21.333333 21.333333 0 0 0-21.333334 21.333333h-42.666666a64 64 0 0 1 64-64h128a149.504 149.504 0 0 1 149.333333 149.333333v234.666667a60.842667 60.842667 0 0 0 64 64 21.333333 21.333333 0 0 1 17.536 33.472 174.72 174.72 0 0 1-117.333333 70.250667 130.133333 130.133333 0 0 1-12.586667 0.597333zM512 746.666667c-71.765333 0-128-37.482667-128-85.333334h42.666667c0 20.138667 36.48 42.666667 85.333333 42.666667s85.333333-22.528 85.333333-42.666667h42.666667c0 47.850667-56.234667 85.333333-128 85.333334zM746.666667 1002.666667h-42.666667v-154.709334c-43.968-23.274667-64-117.333333-64-186.624h42.666667c0 85.333333 29.866667 148.842667 42.666666 149.333334a22.08 22.08 0 0 1 21.333334 21.333333zM320 1002.666667h-42.666667v-170.666667a21.333333 21.333333 0 0 1 21.333334-21.333333c12.8-0.490667 42.666667-64 42.666666-149.333334h42.666667c0 69.354667-20.032 163.349333-64 186.624z",fill:"#2A3244","p-id":"3749"})],-1),un=[pn];function fn(lt,it){return ut(),gt("div",dn,un)}const gn=Xt(cn,[["render",fn]]),mn={},xn={class:"color-gray-700 dark:color-gray-200"},yn=ot("svg",{t:"1685845881484",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4847",width:"16",height:"16"},[ot("path",{d:"M785.352203 933.397493c-4.074805 0-8.151657-0.970094-11.833513-3.007497l-261.311471-142.488225L250.942821 930.388972c-8.343015 4.559852-18.527982 3.8814-26.28669-1.599428-7.760754-5.5279-11.640108-14.987343-10.088776-24.347524l47.578622-285.365306L72.563154 429.470355c-6.594185-6.547113-8.971325-16.295128-6.110161-25.122167 2.814092-8.850575 10.379395-15.397688 19.546172-16.949021l285.512662-47.577598 118.529557-236.989529c4.172019-8.391111 12.803607-13.701047 22.165836-13.701047 9.359158 0 17.992793 5.309936 22.163789 13.701047l118.529557 236.989529 285.511639 47.577598c9.217942 1.551332 16.73208 8.051373 19.593244 16.949021 2.813069 8.875135 0.48607 18.575054-6.109138 25.122167L762.264369 619.077737l47.577598 285.365306c1.50119 9.360182-2.37714 18.819624-10.087753 24.347524C795.487028 931.797042 790.394033 933.397493 785.352203 933.397493zM512.206196 734.747153c4.073782 0 8.196683 0.968048 11.880585 3.006474l228.379431 124.545574-41.268916-247.634983c-1.308809-7.90504 1.257643-16.005532 6.932899-21.63167l164.55787-164.555823-250.398934-41.709961c-7.855922-1.308809-14.549368-6.304589-18.140149-13.408381l-101.942787-203.915249","p-id":"4848"})],-1),vn=[yn];function kn(lt,it){return ut(),gt("div",xn,vn)}const bn=Xt(mn,[["render",kn]]),wn=lt=>(Qt("data-v-30762cf0"),lt=lt(),te(),lt),Sn={key:1,class:"empty flex items-center justify-center"},Cn={flex:""},Mn={class:"float-left pl-2 font-serif"},Tn={key:0},An={class:"flex-1"},Pn=wn(()=>ot("div",{class:"float-right"},null,-1)),On=It({__name:"TeamUI",props:{ix:null,rank:null,team:null,isFilter:{type:Boolean}},setup(lt){const it=lt,at=Pt(null),O=Ye(at),B=Pt(!0);function _(){B.value=!1}const G=wt(()=>it.rank),Q=wt(()=>it.team);function Z(U,L=!1){if(it.isFilter)return"filter-team";if(L){if(U.awards.includes(Ut.GOLD))return"gold";if(U.awards.includes(Ut.SILVER))return"silver";if(U.awards.includes(Ut.BRONZE))return"bronze";if(U.awards.includes(Ut.HONORABLE))return"honorable"}const N=(G.value.rankStatistics.getTeamSolvedNumIndex(U.solvedProblemNum)-1)%2,R=(U.rank-1)%2;return`stand${N}${R}`}function Y(){return O.value||it.ix<32}return(U,L)=>{const N=Ee,R=bn,v=gn,w=hn,P=Go;return ut(),gt("tr",{ref_key:"el",ref:at,class:Tt(["h-10",[it.isFilter?"filter-team":""]])},[Y()?(ut(),gt("td",{key:0,class:Tt(["stnd",[Z(st(Q),!0)]])},vt(st(Q).rank),3)):St("",!0),st(G).contest.badge&&st(Q).badge&&Y()?(ut(),gt("td",Sn,[Ot(N,{image:st(Q).badge,"width-class":"h-8 w-8"},null,8,["image"])])):St("",!0),st(G).contest.organization&&Y()?(ut(),gt("td",{key:2,class:Tt(["stnd",[Z(st(Q))]])},[ot("div",Cn,[ot("div",Mn,[st(Q).organizationRank>-1?(ut(),gt("div",Tn,vt(st(Q).organizationRank),1)):St("",!0)]),ot("div",An,vt(st(Q).organization),1),Pn])],2)):St("",!0),Y()?(ut(),gt("td",{key:3,class:Tt(["stnd",[Z(st(Q))]])},[ot("div",{"cursor-pointer":"",onClick:_},[ot("span",null,vt(st(Q).name),1),st(Q).group.includes("unofficial")?(ut(),Wt(R,{key:0,"inline-block":""})):St("",!0),st(Q).group.includes("girl")?(ut(),Wt(v,{key:1,"inline-block":""})):St("",!0)]),ot("div",null,[st(B)?St("",!0):(ut(),Wt(w,{key:0,isHidden:st(B),"onUpdate:isHidden":L[0]||(L[0]=I=>Nt(B)?B.value=I:null),rank:st(G),team:st(Q)},null,8,["isHidden","rank","team"]))])],2)):St("",!0),Y()?(ut(),gt("td",{key:4,class:Tt(["stnd",[Z(st(Q))]])},vt(st(Q).solvedProblemNum),3)):St("",!0),Y()?(ut(),gt("td",{key:5,class:Tt(["stnd",[Z(st(Q))]])},vt(st(Q).penaltyToMinute),3)):St("",!0),(ut(!0),gt(Et,null,Dt(st(Q).problemStatistics,I=>(ut(),gt(Et,{key:I.problem.id},[Y()?(ut(),Wt(P,{key:0,rank:st(G),team:st(Q),p:I},null,8,["rank","team","p"])):St("",!0)],64))),128)),Y()?(ut(),gt("td",{key:6,class:Tt(["stnd",[Z(st(Q))]])},vt(`${st(Q).dirt}%`),3)):St("",!0)],2)}}});const Ln=Xt(On,[["__scopeId","data-v-30762cf0"]]),_n=lt=>(Qt("data-v-c132047d"),lt=lt(),te(),lt),En={class:"standings","font-mono":"","dark:text-gray-700":""},Dn={class:"sticky top-0 z-99"},In={class:"title",style:{width:"3rem"}},jn={key:0,class:"title",style:{width:"2rem"}},Bn={class:"title",style:{width:"3rem"}},Rn={class:"title",style:{width:"4rem"}},zn=_n(()=>ot("br",null,null,-1)),Nn={class:"title",style:{width:"2.5rem"}},Hn=It({__name:"Standings",props:{rank:{}},setup(lt){const it=lt,{t:at}=Yt(),O=wt(()=>it.rank),B=wt(()=>it.rank.teams),_=wt(()=>it.rank.teams.filter(Y=>!!(it.rank.organizations&&it.rank.options.filterOrganizationMap.has(Y.organization)||it.rank.options.filterTeamMap.has(Y.id)))),G=wt(()=>{let Z=0;return O.value.teams.forEach(Y=>{Z=Math.max(Z,Y.organization.length)}),Z}),Q=wt(()=>{let Z=0;return O.value.teams.forEach(Y=>{Z=Math.max(Z,Y.name.length)}),Z});return(Z,Y)=>{const U=Ln,L=Ro;return ut(),gt("div",null,[ot("div",null,[ot("table",En,[ot("thead",Dn,[ot("tr",null,[ot("th",In,vt(st(at)("standings.place")),1),st(O).contest.badge?(ut(),gt("th",jn,vt(st(O).contest.badge),1)):St("",!0),st(O).contest.organization?(ut(),gt("th",{key:1,class:"title",style:Vt({width:`${Math.min(32,Math.ceil(st(G)*1.1))}rem`})},vt(st(O).contest.organization),5)):St("",!0),ot("th",{class:"title",style:Vt({width:`${Math.min(32,Math.ceil(st(Q)*1))}rem`})},vt(st(at)("standings.team")),5),ot("th",Bn,vt(st(at)("standings.solved")),1),ot("th",Rn,vt(st(at)("standings.penalty")),1),(ut(!0),gt(Et,null,Dt(st(O).contest.problems,N=>{var R,v;return ut(),gt("th",{key:N.id,class:"success","text-center":"",style:Vt([{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),zn,ot("s",null,vt(N.statistics.acceptedNum),1)],4)}),128)),ot("th",Nn,vt(st(at)("standings.dirt")),1)])]),ot("tbody",null,[(ut(!0),gt(Et,null,Dt(st(_),(N,R)=>(ut(),Wt(U,{key:`filter-${N.id}`,ix:R,rank:st(O),team:N,"is-filter":!0},null,8,["ix","rank","team"]))),128)),(ut(!0),gt(Et,null,Dt(st(B),(N,R)=>(ut(),Wt(U,{key:N.id,ix:R,rank:st(O),team:N},null,8,["ix","rank","team"]))),128)),Ot(L,{rank:st(O)},null,8,["rank"])])])])])}}});const $n=Xt(Hn,[["__scopeId","data-v-c132047d"]]),Wn={"font-mono":"",flex:""},Gn=["onClick"],Fn=["href"],Xn={key:1},Yn=It({__name:"SecondLevelMenu",props:{items:null,currentItem:null,queryParamName:null,reverseOrder:{type:Boolean},onChange:{type:Function}},emits:["update:currentItem"],setup(lt,{emit:it}){const at=lt,O=wt(()=>{var L;for(const N of at.items)if(N.isDefault)return N.keyword;return(L=at.items)==null?void 0:L[0].keyword}),B=Te(at.queryParamName,O.value,{transform:String}),_=wt({get(){return at.currentItem},set(L){it("update:currentItem",L)}}),{t:G,locale:Q}=Yt();function Z(L){return L.title?G(L.title):L.titles?L.titles.get(Q.value)??L.titles.get(L.defaultLang):""}function Y(L){return _.value===L.keyword}function U(L){at.onChange&&at.onChange(L.keyword),!(L.link||L.isModal)&&(_.value=L.keyword,B.value=L.keyword)}return Ae(()=>{(()=>{var L;((L=B.value)==null?void 0:L.length)>0&&((()=>{for(const N of at.items)if(N.titles){for(const[R,v]of N.titles)if(B.value===v){B.value=N.keyword;return}}})(),_.value=B.value,at.onChange&&at.onChange(B.value))})()}),(L,N)=>(ut(),gt("div",Wn,[ot("div",{class:Tt(["mr-[-4px]",{"flex-row-reverse":at.reverseOrder}]),flex:""},[(ut(!0),gt(Et,null,Dt(at.items,R=>(ut(),gt("div",{key:R.keyword,class:Tt(["second-level-menu-item",[Y(R)?"second-level-menu-item-current":""]]),onClick:v=>U(R)},[ot("div",null,[R.link?(ut(),gt("a",{key:0,href:R.link,target:"_blank",title:"Resolver"},vt(Z(R)),9,Fn)):St("",!0),R.link?St("",!0):(ut(),gt("div",Xn,vt(Z(R)),1))])],10,Gn))),128))],2)]))}});const Un=Xt(Yn,[["__scopeId","data-v-714a998b"]]);const Vn={},qn={class:"flex items-center justify-center dark:text-black"},Kn=Ue('<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),Zn=[Kn];function Jn(lt,it){return ut(),gt("div",qn,Zn)}const Qn=Xt(Vn,[["render",Jn],["__scopeId","data-v-54297ce8"]]),tr={flex:""},er=ot("div",null,[ot("div",{"i-material-symbols-info-outline":"","text-lg":""})],-1),ir={flex:""},sr=ot("div",{class:"border-l-[1px] border-r-[1px]","mx-2":"","h-6":"","border-color-black":"","dark:border-color-white":""},null,-1),or={flex:""},nr=It({__name:"BoardTab",props:{rank:{}},setup(lt){const it=lt,at=wt(()=>it.rank),{t:O}=Yt(),B=we.useToast(),{copy:_,isSupported:G}=Se();let Q=null;const Z=Pt(null),Y=Pt(null);function U(){return window?G.value?!0:(B.warning("clipboard is not supported"),Q==null||Q.hide(),!1):!1}function L(){B.success("copy success"),Q==null||Q.hide()}function N(){U()&&(_(window.location.href),L())}function R(){if(!U())return;const v=`<iframe src="${window.location.href}" border="0" frameborder="no" framespacing="0" allowfullscreen="true" style="width: 100%; height: 720px"></iframe>`;_(v),L()}return Ae(()=>{if(Z.value&&Y.value){const v={placement:"right",triggerType:"click",offsetSkidding:32,offsetDistance:5,delay:300};Q=new Ve(Z.value,Y.value,v)}}),(v,w)=>{const P=Me;return ut(),gt("div",tr,[ot("div",null,[Ot(P,{"w-inherit":""},{popper:qt(()=>{var I;return[ot("div",ir,[ot("div",null,vt(st(O)("standings.options.calculation_of_penalty"))+": "+vt(st(O)(`standings.options.${(I=st(at).contest.options)==null?void 0:I.calculationOfPenalty}`)),1)])]}),default:qt(()=>[er]),_:1})]),sr,ot("div",or,[ot("div",{ref_key:"dropdownTriggerEl",ref:Y,"i-material-symbols-share":"","text-lg":"","cursor-pointer":""},null,512),ot("div",{ref_key:"dropdownTargetEl",ref:Z,class:"z-9999 hidden divide-y divide-gray-100 rounded shadow w-36","bg-white":"","dark:bg-gray-700":""},[ot("ul",{class:"py-2 text-sm text-gray-700 dark:text-gray-200"},[ot("li",null,[ot("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:N}," Copy Page Link ")]),ot("li",null,[ot("div",{class:"block px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white","cursor-pointer":"",onClick:R}," Copy Page Code ")])])],512)])])}}}),rr=lt=>(Qt("data-v-4e9f1054"),lt=lt(),te(),lt),ar={key:0},lr={key:0},hr={key:0},cr={class:"max-w-[92%]"},dr=["src"],pr={class:"max-w-[92%]"},ur={"mt-2":""},fr={class:"w-[92%]"},gr={class:"flex font-bold font-mono"},mr={class:"float-left"},xr={class:"pl-0.5"},yr={class:"flex-1"},vr={class:"float-right"},kr={class:"pl-0.5"},br={class:"mt-2"},wr={class:"mt-2 flex font-bold font-mono"},Sr={class:"float-left"},Cr={class:"flex-1"},Mr={class:"float-right"},Tr={class:"mt-4 flex"},Ar={class:"float-left"},Pr=rr(()=>ot("div",{class:"flex-1"},null,-1)),Or={class:"float-right"},Lr={class:"max-w-[92%]"},_r={key:0},Er={key:1,class:"w-[88vw]"},Dr={key:2},Ir={key:3},jr={key:4},ke="sm:w-[1280px] xl:w-screen",se="sm:w-[1260px] xl:w-screen",Br=It({__name:"Board",props:{dataSourceUrl:null},setup(lt){const it=lt,at=Jt(),O=qe(ue),{t:B}=Yt(),_=Pt(!1),G=Pt({}),Q=Pt([]),Z=Pt([]),Y=Pt({}),U=Pt(new Date),L=Pt(new Ke),N=Pt(!1);(()=>{const r=_i(),S=Ei();r.value.length>0&&L.value.setFilterOrganizations(r.value),S.value.length>0&&L.value.setFilterTeams(S.value)})();const R=Pt("all");function v(r){r!==L.value.group&&L.value.setGroup(r)}(()=>{const r=Te("group","all",{transform:String});R.value=r.value,L.value.setGroup(r.value)})();function w(r={force:!1}){if(N.value&&r.force===!1)return;const S=new si(G.value,Q.value,Z.value);S.options=fe.cloneDeep(L.value),S.buildRank(),Y.value=S}const{data:P,isError:I,error:d}=ri(it.dataSourceUrl??at.path,U);ne(P,async()=>{var r,S,F;P.value===null||P.value===void 0||(G.value=Ze((r=P.value)==null?void 0:r.contest),O.value=`${G.value.name} | ${ue}`,Q.value=Je((S=P.value)==null?void 0:S.teams),Z.value=Qe((F=P.value)==null?void 0:F.submissions),!L.value.enableFilterSubmissionsByTimestamp&&(w(),_.value=!0))});const x=Pt(!1);ne(L.value,()=>{if(_.value!==!1){if(!Y.value.options.isNeedReBuildRank(L.value)){Y.value.options=fe.cloneDeep(L.value);return}x.value!==!0&&(x.value=!0,w(),x.value=!1)}});const y=Pt([{title:"type_menu.rank",keyword:"rank",isDefault:!0},{title:"type_menu.submissions",keyword:"submissions"},{title:"type_menu.statistics",keyword:"statistics"},{title:"type_menu.export",keyword:"export"},{title:"type_menu.utility",keyword:"utility"},{title:"type_menu.options",keyword:"options",isModal:!0}]),f=wt(()=>Y.value.contest.group),T=wt(()=>{const r=Array();for(const[S,F]of f.value){const q={titles:F.names,defaultLang:F.defaultLang,keyword:S,isDefault:F.isDefault};r.push(q)}return r}),k=Pt("rank"),b=Pt(!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)}ti("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=wt(()=>{const r=Y.value.contest.startTime.format("YYYY-MM-DD HH:mm:ss");return`${B("standings.start_time")}${B("common.colon")}${r}`}),e=wt(()=>{const r=Y.value.contest.endTime.format("YYYY-MM-DD HH:mm:ss");return`${B("standings.end_time")}${B("common.colon")}${r}`}),t=wt(()=>{const r=Y.value.contest.getContestElapsedTime(U.value);return`${B("standings.elapsed")}${B("common.colon")}${r}`}),i=wt(()=>{const r=Y.value.contest.getContestRemainingTime(U.value);return`${B("standings.remaining")}${B("common.colon")}${r}`}),l=wt(()=>Y.value.options.enableFilterSubmissionsByTimestamp?ei.PAUSED:Y.value.contest.getContestState()),u=wt(()=>Ce(Y.value.options.timestamp)),A=setInterval(()=>{U.value=new Date},1e3);return ii(()=>{clearInterval(A),h()}),(r,S)=>{var m;const F=nr,q=oi,nt=ni,j=Qn,s=Un,M=$n,z=he,D=ys,V=os,o=Fi,g=Hi;return ut(),gt("div",null,[st(_)?St("",!0):(ut(),gt("div",ar,[ot("div",{class:Tt([ke]),flex:"","flex-col":"","gap-4":"","justify-center":"","items-center":""},[ot("div",null,vt(st(B)("common.loading"))+"... ",1),st(I)?(ut(),gt("div",lr,vt(st(d)),1)):St("",!0)],2)])),st(_)?(ut(),gt("div",{key:1,class:Tt([ke]),flex:"","flex-col":"","justify-center":"","items-center":""},[st(Y).contest.banner?(ut(),gt("div",hr,[ot("div",{class:Tt([se]),"mb-4":"",flex:"","justify-center":"","items-center":""},[ot("div",cr,[ot("img",{src:["data:image/png;base64,",(m=st(Y).contest.banner)==null?void 0:m.base64].join(""),alt:"banner"},null,8,dr)])],2)])):St("",!0),ot("div",{class:Tt(["title",[se]]),flex:"","justify-center":"","text-center":"","text-3xl":"","font-normal":"","font-serif":""},[ot("div",pr,vt(st(Y).contest.name),1)],2),ot("div",ur,[Ot(F,{rank:st(Y)},null,8,["rank"])]),ot("div",{class:Tt([se]),"mt-2":"",flex:"","flex-row":"","justify-center":""},[ot("div",fr,[ot("div",gr,[ot("div",mr,[zt(vt(st(c)),1),ot("sup",xr,vt(st(Y).contest.startTime.format("z")),1)]),ot("div",yr,[Ot(q,{state:st(l),"pending-time":st(Y).contest.getContestPendingTime(st(U)),"paused-time":st(u)},null,8,["state","pending-time","paused-time"])]),ot("div",vr,[zt(vt(st(e)),1),ot("sup",kr,vt(st(Y).contest.endTime.format("z")),1)])]),ot("div",br,[Ot(nt,{"rank-options":st(L),"onUpdate:rankOptions":S[0]||(S[0]=H=>Nt(L)?L.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"])]),ot("div",wr,[ot("div",Sr,vt(st(t)),1),ot("div",Cr,[Ot(j)]),ot("div",Mr,vt(st(i)),1)]),ot("div",Tr,[ot("div",Ar,[Ot(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"])]),Pr,ot("div",Or,[Ot(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),ot("div",{"mt-4":"",class:Tt([se]),flex:"","justify-center":""},[ot("div",Lr,[st(k)==="rank"?(ut(),gt("div",_r,[Ot(M,{rank:st(Y)},null,8,["rank"])])):St("",!0),st(k)==="submissions"?(ut(),gt("div",Er,[Ot(z,{"w-full":"",rank:st(Y),submissions:st(Y).getSubmissions()},null,8,["rank","submissions"])])):St("",!0),st(k)==="statistics"?(ut(),gt("div",Dr,[Ot(D,{rank:st(Y)},null,8,["rank"])])):St("",!0),st(k)==="export"?(ut(),gt("div",Ir,[Ot(V,{rank:st(Y)},null,8,["rank"])])):St("",!0),st(k)==="utility"?(ut(),gt("div",jr,[Ot(o,{rank:st(Y)},null,8,["rank"])])):St("",!0)])],2)],2)):St("",!0),st(b)?St("",!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(L),"onUpdate:rankOptions":S[4]||(S[4]=H=>Nt(L)?L.value=H:null),rank:st(Y)},null,8,["is-hidden","rank-options","rank"]))])}}});const Hr=Xt(Br,[["__scopeId","data-v-4e9f1054"]]);export{Hr as _};
|