UNPKG

@xcpcio/board-app

Version:
2 lines 298 kB
var Lp=Object.defineProperty;var Ep=(P,C,G)=>C in P?Lp(P,C,{enumerable:!0,configurable:!0,writable:!0,value:G}):P[C]=G;var bs=(P,C,G)=>Ep(P,typeof C!="symbol"?C+"":C,G);import{d as fn,f as mn,a1 as Ip,C as Dp,c as Et,o as It,n as Nt,b as _,L as xi,k as Ht,O as jt,V as Jt,F as yi,E as bi,j as vi,K as Rr,s as Wr,v as Bp,x as zp,a2 as Np,h as Tt}from"./index-B05JO4Mx.js";const Rp={class:"relative bg-white dark:bg-gray-800 sm:p-4","rounded-sm":"","shadow-sm":""},Wp={class:"mb-4 border-b rounded-t pb-4 sm:mb-4 dark:border-gray-600",flex:"","items-center":"","justify-between":""},Hp={"text-gray-900":"","dark:text-white":"","text-xl":"","font-sans":"","font-semibold":"",italic:""},fu=fn({__name:"Modal",props:{isHidden:{type:Boolean},title:null,width:null,mt:null},emits:["update:isHidden"],setup(P,{emit:C}){const G=P,Q=C,V=mn({get(){return G.isHidden},set(q){Q("update:isHidden",q)}});function z(){V.value=!0}const{Escape:I}=Ip();return Dp(I,q=>{q&&z()}),(q,Z)=>(It(),Et("div",{class:Nt(["md:inset-0 w-[100%] h-[100%]",[G.mt??"md:mt-32 sm:mt-16"]]),fixed:"","z-1997":"","of-x-hidden":"",flex:"","justify-center":"","items-start":""},[_("div",{class:"w-[100%] h-[100%]",fixed:"","left-0":"","top-0":"","z-1998":"",style:{backgroundColor:"rgba(0, 0, 0, 0.5)"},onClick:z}),_("div",{class:Nt(["relative p-4",[G.width??"w-[78%]"]]),"z-1999":""},[_("div",Rp,[_("div",Wp,[xi(q.$slots,"header",{},()=>[_("h3",Hp,Ht(G.title),1)]),_("button",{type:"button",class:"hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white","bg-transparent":"","ml-auto":"","p-1.5":"","text-sm":"","text-gray-400":"","items-center":"","inline-flex":"","rounded-lg":"",onClick:z},Z[0]||(Z[0]=[_("svg",{class:"h-5 w-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg"},[_("path",{"fill-rule":"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z","clip-rule":"evenodd"})],-1),_("span",{"sr-only":""}," Close modal ",-1)]))]),xi(q.$slots,"default")])],2)],2))}}),Ct={openOptions(P){P.$refs.input.focus(),P.showMenu=!0,P.mousedownState=!1},blurInput(P){P.mousedownState||(P.searchText="",P.closeOptions()),P.$emit("blur")},closeOptions(P){P.$refs.input.blur(),P.showMenu=!1},prevItem(P){const C=P.pointer-1,G=P.$el.offsetHeight*C;C>=0&&(P.pointer=C),P.$refs.menu.scrollTop=G},nextItem(P){const C=P.pointer+1,G=P.$el.offsetHeight*C;C<=P.filteredOptions.length-1&&(P.pointer=C);const Q=P.$refs.menu.offsetHeight,V=Math.ceil((P.$refs.menu.scrollTop+P.$el.offsetHeight)/Q),z=Math.ceil(G/Q);V!==z&&(P.$refs.menu.scrollTop=(z-1)*P.$refs.menu.offsetHeight)},enterItem(P){const C=P.filteredOptions[P.pointer],G=C.disabled;C&&!G&&P.selectItem(C)},pointerSet(P,C){P.pointer=C},pointerAdjust(P){P.pointer>=P.filteredOptions.length-1&&(P.pointer=P.filteredOptions.length?P.filteredOptions.length-1:0)},mousedownItem(P){P.mousedownState=!0}};function Xp(P){return new RegExp(P.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"i")}const xn={props:{id:{default:null},name:{type:String,default:""},isError:{type:Boolean,default:!1},customAttr:{type:Function,default:()=>""},isDisabled:{type:Boolean,default:!1},placeholder:{type:String,default:""},filterPredicate:{type:Function,default:(P,C)=>P.match(Xp(C))}}},yn=(P,C)=>{const G=P.__vccOpts||P;for(const[Q,V]of C)G[Q]=V;return G},Fp={name:"ModelSelect",mixins:[xn],emits:["blur","searchchange","update:modelValue"],props:{modelValue:{type:[String,Number,Object,Boolean]},customAttr:{type:Function,default:()=>""},options:{type:Array}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{value(P){this.pointer=this.filteredOptions.findIndex(C=>C.value===this.optionValue(P))},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{searchTextCustomAttr(){return this.selectedOption&&this.selectedOption.value?this.customAttr(this.selectedOption):""},inputText(){if(this.searchText)return"";{let P=this.placeholder;return this.selectedOption&&(P=this.selectedOption.text),P}},customAttrs(){try{if(Array.isArray(this.options))return this.options.map(P=>this.customAttr(P))}catch{}return[]},textClass(){return!this.selectedOption&&this.placeholder?"default":""},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},filteredOptions(){return this.searchText?this.options.filter(P=>{try{return this.filterPredicate(P.text,this.searchText)}catch{return!0}}):this.options},selectedOption(){return this.options.find(P=>P.value===this.optionValue(this.modelValue))}},methods:{deleteTextOrItem(){!this.searchText&&this.modelValue&&(this.selectItem({}),this.openOptions())},openOptions(){Ct.openOptions(this)},blurInput(){Ct.blurInput(this)},closeOptions(){Ct.closeOptions(this)},prevItem(){Ct.prevItem(this)},nextItem(){Ct.nextItem(this)},enterItem(){Ct.enterItem(this)},pointerSet(P){Ct.pointerSet(this,P)},pointerAdjust(){Ct.pointerAdjust(this)},mousedownItem(){Ct.mousedownItem(this)},selectItem(P){this.searchText="",this.closeOptions(),typeof this.modelValue=="object"&&this.modelValue?this.$emit("update:modelValue",P):(this.$emit("update:modelValue",P.value),P.value!==void 0&&P.value===P.text&&(this.searchText=P.value))},optionValue(P){return typeof P=="object"&&P!==null?P.value:P}}},Gp=_("i",{class:"dropdown icon"},null,-1),jp=["disabled","tabindex","id","name","value"],Yp=["data-vss-custom-attr"],$p=["data-vss-custom-attr","onClick","onMouseenter"];function Vp(P,C,G,Q,V,z){return It(),Et("div",{class:Nt(["ui fluid search selection dropdown",{"active visible":V.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:C[11]||(C[11]=(...I)=>z.openOptions&&z.openOptions(...I)),onFocus:C[12]||(C[12]=(...I)=>z.openOptions&&z.openOptions(...I))},[Gp,_("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,value:V.searchText,onInput:C[0]||(C[0]=I=>V.searchText=I.target.value),ref:"input",onFocus:C[1]||(C[1]=Jt((...I)=>z.openOptions&&z.openOptions(...I),["prevent"])),onKeyup:[C[2]||(C[2]=jt((...I)=>z.closeOptions&&z.closeOptions(...I),["esc"])),C[7]||(C[7]=jt(Jt((...I)=>z.enterItem&&z.enterItem(...I),["prevent"]),["enter"]))],onBlur:C[3]||(C[3]=(...I)=>z.blurInput&&z.blurInput(...I)),onKeydown:[C[4]||(C[4]=jt((...I)=>z.prevItem&&z.prevItem(...I),["up"])),C[5]||(C[5]=jt((...I)=>z.nextItem&&z.nextItem(...I),["down"])),C[6]||(C[6]=jt(Jt(()=>{},["prevent"]),["enter"])),C[8]||(C[8]=jt((...I)=>z.deleteTextOrItem&&z.deleteTextOrItem(...I),["delete"]))]},null,40,jp),_("div",{class:Nt(["text",z.textClass]),"data-vss-custom-attr":z.searchTextCustomAttr},Ht(z.inputText),11,Yp),_("div",{class:Nt(["menu",z.menuClass]),ref:"menu",onMousedown:C[10]||(C[10]=Jt(()=>{},["prevent"])),style:Rr(z.menuStyle),tabindex:"-1"},[(It(!0),Et(yi,null,bi(z.filteredOptions,(I,q)=>(It(),Et("div",{key:q,class:Nt(["item",{selected:I.selected||V.pointer===q,disabled:I.disabled}]),"data-vss-custom-attr":z.customAttrs[q]?z.customAttrs[q]:"",onClick:Jt(Z=>z.selectItem(I),["stop"]),onMousedown:C[9]||(C[9]=(...Z)=>z.mousedownItem&&z.mousedownItem(...Z)),onMouseenter:Z=>z.pointerSet(q)},[xi(P.$slots,"default",{option:I,idx:q},()=>[vi(Ht(I.text),1)])],42,$p))),128))],38)],34)}const mu=yn(Fp,[["render",Vp]]),Up={name:"MultiSelect",mixins:[xn],emits:["blur","searchchange","select"],props:{customAttr:{type:Function,default:()=>""},options:{type:Array},selectedOptions:{type:Array},cleanSearch:{type:Boolean,default:!0},hideSelectedOptions:{type:Boolean,default:!1}},data(){return{showMenu:!1,searchText:"",mousedownState:!1,pointer:-1}},watch:{selectedOptions(){this.pointer=-1},filteredOptions(){this.pointerAdjust()},searchText(){this.$emit("searchchange",this.searchText)}},computed:{inputText(){return this.searchText?"":this.placeholder},textClass(){return this.placeholder?"default":""},inputWidth(){return{width:(this.searchText.length+1)*8+20+"px"}},menuClass(){return{visible:this.showMenu,hidden:!this.showMenu}},menuStyle(){return{display:this.showMenu?"block":"none"}},nonSelectOptions(){return this.options.filter(P=>this.selectedOptions.findIndex(C=>C.value===P.value)===-1)},filteredOptions(){return this.searchText?this.nonSelectOptions.filter(P=>{try{return this.cleanSearch?this.filterPredicate(this.accentsTidy(P.text),this.searchText):this.filterPredicate(P.text,this.searchText)}catch{return!0}}):this.nonSelectOptions}},methods:{deleteTextOrLastItem(){!this.searchText&&this.selectedOptions.length>0&&this.deleteItem(this.selectedOptions[this.selectedOptions.length-1])},openOptions(){Ct.openOptions(this)},blurInput(){Ct.blurInput(this)},closeOptions(){Ct.closeOptions(this)},prevItem(){Ct.prevItem(this),this.openOptions()},nextItem(){Ct.nextItem(this),this.openOptions()},enterItem(){Ct.enterItem(this)},pointerSet(P){Ct.pointerSet(this,P)},pointerAdjust(){Ct.pointerAdjust(this)},mousedownItem(){Ct.mousedownItem(this)},selectItem(P){const C=this.selectedOptions.concat(P),G=C.filter((Q,V)=>C.indexOf(Q)===V);this.closeOptions(),this.searchText="",this.$emit("select",G,P,"insert")},deleteItem(P){const C=this.selectedOptions.filter(G=>G.value!==P.value);this.$emit("select",C,P,"delete")},accentsTidy(P){let C=P.toString().toLowerCase();return C=C.replace(new RegExp("[àáâãäå]","g"),"a"),C=C.replace(new RegExp("æ","g"),"ae"),C=C.replace(new RegExp("ç","g"),"c"),C=C.replace(new RegExp("[èéêë]","g"),"e"),C=C.replace(new RegExp("[ìíîï]","g"),"i"),C=C.replace(new RegExp("ñ","g"),"n"),C=C.replace(new RegExp("[òóôõö]","g"),"o"),C=C.replace(new RegExp("œ","g"),"oe"),C=C.replace(new RegExp("[ùúûü]","g"),"u"),C=C.replace(new RegExp("[ýÿ]","g"),"y"),C}}},qp=_("i",{class:"dropdown icon"},null,-1),Zp=["data-vss-custom-attr"],Kp=["onClick"],_p=["disabled","tabindex","id","name"],Qp=["data-vss-custom-attr","onClick","onMouseenter"];function Jp(P,C,G,Q,V,z){return It(),Et("div",{class:Nt(["ui fluid search dropdown selection multiple",{"active visible":V.showMenu,error:P.isError,disabled:P.isDisabled}]),onClick:C[11]||(C[11]=(...I)=>z.openOptions&&z.openOptions(...I)),onFocus:C[12]||(C[12]=(...I)=>z.openOptions&&z.openOptions(...I))},[qp,G.hideSelectedOptions?Wr("",!0):(It(!0),Et(yi,{key:0},bi(G.selectedOptions,(I,q)=>(It(),Et("a",{key:q,class:"ui label transition visible",style:{display:"inline-block !important"},"data-vss-custom-attr":G.customAttr(I)},[xi(P.$slots,"selected",{option:I,idx:q},()=>[vi(Ht(I.text),1),_("i",{class:"delete icon",onClick:Z=>z.deleteItem(I)},null,8,Kp)])],8,Zp))),128)),Bp(_("input",{class:"search",autocomplete:"off",disabled:P.isDisabled,tabindex:P.isDisabled?-1:0,id:P.id,name:P.name,"onUpdate:modelValue":C[0]||(C[0]=I=>V.searchText=I),ref:"input",style:Rr(z.inputWidth),onFocus:C[1]||(C[1]=Jt((...I)=>z.openOptions&&z.openOptions(...I),["prevent"])),onKeyup:[C[2]||(C[2]=jt((...I)=>z.closeOptions&&z.closeOptions(...I),["esc"])),C[7]||(C[7]=jt(Jt((...I)=>z.enterItem&&z.enterItem(...I),["prevent"]),["enter"]))],onBlur:C[3]||(C[3]=(...I)=>z.blurInput&&z.blurInput(...I)),onKeydown:[C[4]||(C[4]=jt((...I)=>z.prevItem&&z.prevItem(...I),["up"])),C[5]||(C[5]=jt((...I)=>z.nextItem&&z.nextItem(...I),["down"])),C[6]||(C[6]=jt(Jt(()=>{},["prevent"]),["enter"])),C[8]||(C[8]=jt((...I)=>z.deleteTextOrLastItem&&z.deleteTextOrLastItem(...I),["delete"]))]},null,44,_p),[[zp,V.searchText]]),_("div",{class:Nt(["text",z.textClass])},Ht(z.inputText),3),_("div",{class:Nt(["menu",z.menuClass]),ref:"menu",onMousedown:C[10]||(C[10]=Jt(()=>{},["prevent"])),style:Rr(z.menuStyle),tabindex:"-1"},[(It(!0),Et(yi,null,bi(z.filteredOptions,(I,q)=>(It(),Et("div",{key:q,class:Nt(["item",{selected:I.selected||V.pointer===q,disabled:I.disabled}]),"data-vss-custom-attr":G.customAttr(I),onClick:Jt(Z=>z.selectItem(I),["stop"]),onMousedown:C[9]||(C[9]=(...Z)=>z.mousedownItem&&z.mousedownItem(...Z)),onMouseenter:Z=>z.pointerSet(q)},[xi(P.$slots,"default",{option:I,idx:q},()=>[vi(Ht(I.text),1)])],42,Qp))),128))],38)],34)}const xu=yn(Up,[["render",Jp]]);var Nr={exports:{}},ks={exports:{}},tu=ks.exports,un;function eu(){return un||(un=1,function(P,C){(function(G,Q){G._Highcharts=Q(),P.exports=G._Highcharts})(typeof window>"u"?tu:window,()=>(()=>{let G,Q;var V,z,I,q,Z,at,Dt,$e,Ve,ge,Te,Ue,qe,At,J,ut,ft,ie={};ie.d=(l,t)=>{for(var e in t)ie.o(t,e)&&!ie.o(l,e)&&Object.defineProperty(l,e,{enumerable:!0,get:t[e]})},ie.o=(l,t)=>Object.prototype.hasOwnProperty.call(l,t);var Zt={};ie.d(Zt,{default:()=>Op}),function(l){var t,e,i;l.SVG_NS="http://www.w3.org/2000/svg",l.product="Highcharts",l.version="12.1.2",l.win=typeof window<"u"?window:{},l.doc=l.win.document,l.svg=l.doc&&l.doc.createElementNS&&!!l.doc.createElementNS(l.SVG_NS,"svg").createSVGRect,l.pageLang=(i=(e=(t=l.doc)==null?void 0:t.documentElement)==null?void 0:e.closest("[lang]"))==null?void 0:i.lang,l.userAgent=l.win.navigator&&l.win.navigator.userAgent||"",l.isChrome=l.win.chrome,l.isFirefox=l.userAgent.indexOf("Firefox")!==-1,l.isMS=/(edge|msie|trident)/i.test(l.userAgent)&&!l.win.opera,l.isSafari=!l.isChrome&&l.userAgent.indexOf("Safari")!==-1,l.isTouchDevice=/(Mobile|Android|Windows Phone)/.test(l.userAgent),l.isWebKit=l.userAgent.indexOf("AppleWebKit")!==-1,l.deg2rad=2*Math.PI/360,l.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],l.noop=function(){},l.supportsPassiveEvents=function(){let s=!1;if(!l.isMS){let r=Object.defineProperty({},"passive",{get:function(){s=!0}});l.win.addEventListener&&l.win.removeEventListener&&(l.win.addEventListener("testPassive",l.noop,r),l.win.removeEventListener("testPassive",l.noop,r))}return s}(),l.charts=[],l.composed=[],l.dateFormats={},l.seriesTypes={},l.symbolSizes={},l.chartCount=0}(V||(V={}));let A=V,{charts:bn,doc:ki,win:fe}=A;function Ze(l,t,e,i){let s=t?"Highcharts error":"Highcharts warning";l===32&&(l=`${s}: Deprecated member`);let r=Ms(l),o=r?`${s} #${l}: www.highcharts.com/errors/${l}/`:l.toString();if(i!==void 0){let a="";r&&(o+="?"),me(i,function(n,h){a+=` - ${h}: ${n}`,r&&(o+=encodeURI(h)+"="+encodeURI(n))}),o+=a}Vr(A,"displayError",{chart:e,code:l,message:o,params:i},function(){if(t)throw Error(o);fe.console&&Ze.messages.indexOf(o)===-1&&console.warn(o)}),Ze.messages.push(o)}function Hr(l,t){return parseInt(l,t||10)}function Ke(l){return typeof l=="string"}function wi(l){let t=Object.prototype.toString.call(l);return t==="[object Array]"||t==="[object Array Iterator]"}function Ce(l,t){return!!l&&typeof l=="object"&&(!t||!wi(l))}function ws(l){return Ce(l)&&typeof l.nodeType=="number"}function Xr(l){let t=l&&l.constructor;return!!(Ce(l,!0)&&!ws(l)&&t&&t.name&&t.name!=="Object")}function Ms(l){return typeof l=="number"&&!isNaN(l)&&l<1/0&&l>-1/0}function Ae(l){return l!=null}function Fr(l,t,e){let i,s=Ke(t)&&!Ae(e),r=(o,a)=>{Ae(o)?l.setAttribute(a,o):s?(i=l.getAttribute(a))||a!=="class"||(i=l.getAttribute(a+"Name")):l.removeAttribute(a)};return Ke(t)?r(e,t):me(t,r),i}function Gr(l){return wi(l)?l:[l]}function Pe(l,t){let e;for(e in l||(l={}),t)l[e]=t[e];return l}function _e(){let l=arguments,t=l.length;for(let e=0;e<t;e++){let i=l[e];if(i!=null)return i}}function Ss(l,t){Pe(l.style,t)}function jr(l){return Math.pow(10,Math.floor(Math.log(l)/Math.LN10))}function Yr(l,t){return l>1e14?l:parseFloat(l.toPrecision(t||14))}(Ze||(Ze={})).messages=[],Math.easeInOutSine=function(l){return-.5*(Math.cos(Math.PI*l)-1)};let vn=Array.prototype.find?function(l,t){return l.find(t)}:function(l,t){let e,i=l.length;for(e=0;e<i;e++)if(t(l[e],e))return l[e]};function me(l,t,e){for(let i in l)Object.hasOwnProperty.call(l,i)&&t.call(e||l[i],l[i],i,l)}function $r(l,t,e){function i(o,a){let n=l.removeEventListener;n&&n.call(l,o,a,!1)}function s(o){let a,n;l.nodeName&&(t?(a={})[t]=!0:a=o,me(a,function(h,c){if(o[c])for(n=o[c].length;n--;)i(c,o[c][n].fn)}))}let r=typeof l=="function"&&l.prototype||l;if(Object.hasOwnProperty.call(r,"hcEvents")){let o=r.hcEvents;if(t){let a=o[t]||[];e?(o[t]=a.filter(function(n){return e!==n.fn}),i(t,e)):(s(o),o[t]=[])}else s(o),delete r.hcEvents}}function Vr(l,t,e,i){if(e=e||{},ki.createEvent&&(l.dispatchEvent||l.fireEvent&&l!==A)){let s=ki.createEvent("Events");s.initEvent(t,!0,!0),e=Pe(s,e),l.dispatchEvent?l.dispatchEvent(e):l.fireEvent(t,e)}else if(l.hcEvents){e.target||Pe(e,{preventDefault:function(){e.defaultPrevented=!0},target:l,type:t});let s=[],r=l,o=!1;for(;r.hcEvents;)Object.hasOwnProperty.call(r,"hcEvents")&&r.hcEvents[t]&&(s.length&&(o=!0),s.unshift.apply(s,r.hcEvents[t])),r=Object.getPrototypeOf(r);o&&s.sort((a,n)=>a.order-n.order),s.forEach(a=>{a.fn.call(l,e)===!1&&e.preventDefault()})}i&&!e.defaultPrevented&&i.call(l,e)}let kn=function(){let l=Math.random().toString(36).substring(2,9)+"-",t=0;return function(){return"highcharts-"+(G?"":l)+t++}}();fe.jQuery&&(fe.jQuery.fn.highcharts=function(){let l=[].slice.call(arguments);if(this[0])return l[0]?(new A[Ke(l[0])?l.shift():"Chart"](this[0],l[0],l[1]),this):bn[Fr(this[0],"data-highcharts-chart")]});let X={addEvent:function(l,t,e,i={}){let s=typeof l=="function"&&l.prototype||l;Object.hasOwnProperty.call(s,"hcEvents")||(s.hcEvents={});let r=s.hcEvents;A.Point&&l instanceof A.Point&&l.series&&l.series.chart&&(l.series.chart.runTrackerClick=!0);let o=l.addEventListener;o&&o.call(l,t,e,!!A.supportsPassiveEvents&&{passive:i.passive===void 0?t.indexOf("touch")!==-1:i.passive,capture:!1}),r[t]||(r[t]=[]);let a={fn:e,order:typeof i.order=="number"?i.order:1/0};return r[t].push(a),r[t].sort((n,h)=>n.order-h.order),function(){$r(l,t,e)}},arrayMax:function(l){let t=l.length,e=l[0];for(;t--;)l[t]>e&&(e=l[t]);return e},arrayMin:function(l){let t=l.length,e=l[0];for(;t--;)l[t]<e&&(e=l[t]);return e},attr:Fr,clamp:function(l,t,e){return l>t?l<e?l:e:t},clearTimeout:function(l){Ae(l)&&clearTimeout(l)},correctFloat:Yr,createElement:function(l,t,e,i,s){let r=ki.createElement(l);return t&&Pe(r,t),s&&Ss(r,{padding:"0",border:"none",margin:"0"}),e&&Ss(r,e),i&&i.appendChild(r),r},crisp:function(l,t=0,e){let i=t%2/2,s=e?-1:1;return(Math.round(l*s-i)+i)*s},css:Ss,defined:Ae,destroyObjectProperties:function(l,t,e){me(l,function(i,s){i!==t&&(i!=null&&i.destroy)&&i.destroy(),(i!=null&&i.destroy||!e)&&delete l[s]})},diffObjects:function(l,t,e,i){let s={};return function r(o,a,n,h){let c=e?a:o;me(o,function(d,p){if(!h&&i&&i.indexOf(p)>-1&&a[p]){d=Gr(d),n[p]=[];for(let u=0;u<Math.max(d.length,a[p].length);u++)a[p][u]&&(d[u]===void 0?n[p][u]=a[p][u]:(n[p][u]={},r(d[u],a[p][u],n[p][u],h+1)))}else Ce(d,!0)&&!d.nodeType?(n[p]=wi(d)?[]:{},r(d,a[p]||{},n[p],h+1),Object.keys(n[p]).length!==0||p==="colorAxis"&&h===0||delete n[p]):(o[p]!==a[p]||p in o&&!(p in a))&&p!=="__proto__"&&p!=="constructor"&&(n[p]=c[p])})}(l,t,s,0),s},discardElement:function(l){l&&l.parentElement&&l.parentElement.removeChild(l)},erase:function(l,t){let e=l.length;for(;e--;)if(l[e]===t){l.splice(e,1);break}},error:Ze,extend:Pe,extendClass:function(l,t){let e=function(){};return e.prototype=new l,Pe(e.prototype,t),e},find:vn,fireEvent:Vr,getAlignFactor:(l="")=>({center:.5,right:1,middle:.5,bottom:1})[l]||0,getClosestDistance:function(l,t){let e,i,s,r=!t;return l.forEach(o=>{if(o.length>1)for(s=o.length-1;s>0;s--)(i=o[s]-o[s-1])<0&&!r?(t==null||t(),t=void 0):i&&(e===void 0||i<e)&&(e=i)}),e},getMagnitude:jr,getNestedProperty:function(l,t){let e=l.split(".");for(;e.length&&Ae(t);){let i=e.shift();if(i===void 0||i==="__proto__")return;if(i==="this"){let r;return Ce(t)&&(r=t["@this"]),r??t}let s=t[i.replace(/[\\'"]/g,"")];if(!Ae(s)||typeof s=="function"||typeof s.nodeType=="number"||s===fe)return;t=s}return t},getStyle:function l(t,e,i){let s;if(e==="width"){let o=Math.min(t.offsetWidth,t.scrollWidth),a=t.getBoundingClientRect&&t.getBoundingClientRect().width;return a<o&&a>=o-1&&(o=Math.floor(a)),Math.max(0,o-(l(t,"padding-left",!0)||0)-(l(t,"padding-right",!0)||0))}if(e==="height")return Math.max(0,Math.min(t.offsetHeight,t.scrollHeight)-(l(t,"padding-top",!0)||0)-(l(t,"padding-bottom",!0)||0));let r=fe.getComputedStyle(t,void 0);return r&&(s=r.getPropertyValue(e),_e(i,e!=="opacity")&&(s=Hr(s))),s},insertItem:function(l,t){let e,i=l.options.index,s=t.length;for(e=l.options.isInternal?s:0;e<s+1;e++)if(!t[e]||Ms(i)&&i<_e(t[e].options.index,t[e]._i)||t[e].options.isInternal){t.splice(e,0,l);break}return e},isArray:wi,isClass:Xr,isDOMElement:ws,isFunction:function(l){return typeof l=="function"},isNumber:Ms,isObject:Ce,isString:Ke,merge:function(l,...t){let e,i=[l,...t],s={},r=function(a,n){return typeof a!="object"&&(a={}),me(n,function(h,c){c!=="__proto__"&&c!=="constructor"&&(!Ce(h,!0)||Xr(h)||ws(h)?a[c]=n[c]:a[c]=r(a[c]||{},h))}),a};l===!0&&(s=i[1],i=Array.prototype.slice.call(i,2));let o=i.length;for(e=0;e<o;e++)s=r(s,i[e]);return s},normalizeTickInterval:function(l,t,e,i,s){let r,o=l;e=_e(e,jr(l));let a=l/e;for(!t&&(t=s?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],i===!1&&(e===1?t=t.filter(function(n){return n%1==0}):e<=.1&&(t=[1/e]))),r=0;r<t.length&&(o=t[r],(!s||!(o*e>=l))&&(s||!(a<=(t[r]+(t[r+1]||t[r]))/2)));r++);return Yr(o*e,-Math.round(Math.log(.001)/Math.LN10))},objectEach:me,offset:function(l){let t=ki.documentElement,e=l.parentElement||l.parentNode?l.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:e.top+(fe.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(fe.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},pad:function(l,t,e){return Array((t||2)+1-String(l).replace("-","").length).join(e||"0")+l},pick:_e,pInt:Hr,pushUnique:function(l,t){return 0>l.indexOf(t)&&!!l.push(t)},relativeLength:function(l,t,e){return/%$/.test(l)?t*parseFloat(l)/100+(e||0):parseFloat(l)},removeEvent:$r,replaceNested:function(l,...t){let e,i;do for(i of(e=l,t))l=l.replace(i[0],i[1]);while(l!==e);return l},splat:Gr,stableSort:function(l,t){let e,i,s=l.length;for(i=0;i<s;i++)l[i].safeI=i;for(l.sort(function(r,o){return(e=t(r,o))===0?r.safeI-o.safeI:e}),i=0;i<s;i++)delete l[i].safeI},syncTimeout:function(l,t,e){return t>0?setTimeout(l,t,e):(l.call(0,e),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},ucfirst:function(l){return Ke(l)?l.substring(0,1).toUpperCase()+l.substring(1):String(l)},uniqueKey:kn,useSerialIds:function(l){return G=_e(l,G)},wrap:function(l,t,e){let i=l[t];l[t]=function(){let s=arguments,r=this;return e.apply(this,[function(){return i.apply(r,arguments.length?arguments:s)}].concat([].slice.call(arguments)))}}},{pageLang:wn,win:Mi}=A,{defined:Si,error:Ur,extend:Ti,isNumber:qr,isObject:Ts,isString:Qe,merge:Mn,objectEach:Sn,pad:se,splat:Tn,timeUnits:dt,ucfirst:Cn}=X,An=A.isSafari&&Mi.Intl&&!Mi.Intl.DateTimeFormat.prototype.formatRange,Pn=l=>l.main===void 0,Zr=l=>["D","L","M","X","J","V","S"].indexOf(l),Cs=class{constructor(l){this.options={timezone:"UTC"},this.variableTimezone=!1,this.Date=Mi.Date,this.update(l)}update(l={}){this.dTLCache={},this.options=l=Mn(!0,this.options,l);let{timezoneOffset:t,useUTC:e}=l;this.Date=l.Date||Mi.Date||Date;let i=l.timezone;Si(e)&&(i=e?"UTC":void 0),t&&t%60==0&&(i="Etc/GMT"+(t>0?"+":"")+t/60),this.variableTimezone=i!=="UTC"&&(i==null?void 0:i.indexOf("Etc/GMT"))!==0,this.timezone=i,["months","shortMonths","weekdays","shortWeekdays"].forEach(s=>{let r=/months/i.test(s),o=/short/.test(s),a={timeZone:"UTC"};a[r?"month":"weekday"]=o?"short":"long",this[s]=(r?[0,1,2,3,4,5,6,7,8,9,10,11]:[3,4,5,6,7,8,9]).map(n=>this.dateFormat(a,(r?31:1)*24*36e5*n))})}toParts(l){let[t,e,i,s,r,o,a]=this.dateTimeFormat({weekday:"narrow",day:"numeric",month:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"},l,"es").split(/(?:, |\/|:)/g);return[s,+i-1,e,r,o,a,Math.floor(Number(l)||0)%1e3,Zr(t)].map(Number)}dateTimeFormat(l,t,e=this.options.locale||wn){let i=JSON.stringify(l)+e;Qe(l)&&(l=this.str2dtf(l));let s=this.dTLCache[i];if(!s){l.timeZone??(l.timeZone=this.timezone);try{s=new Intl.DateTimeFormat(e,l)}catch(r){/Invalid time zone/i.test(r.message)?(Ur(34),l.timeZone="UTC",s=new Intl.DateTimeFormat(e,l)):Ur(r.message,!1)}}return this.dTLCache[i]=s,(s==null?void 0:s.format(t))||""}str2dtf(l,t={}){let e={L:{fractionalSecondDigits:3},S:{second:"2-digit"},M:{minute:"numeric"},H:{hour:"2-digit"},k:{hour:"numeric"},E:{weekday:"narrow"},a:{weekday:"short"},A:{weekday:"long"},d:{day:"2-digit"},e:{day:"numeric"},b:{month:"short"},B:{month:"long"},m:{month:"2-digit"},o:{month:"numeric"},y:{year:"2-digit"},Y:{year:"numeric"}};return Object.keys(e).forEach(i=>{l.indexOf(i)!==-1&&Ti(t,e[i])}),t}makeTime(l,t,e=1,i=0,s,r,o){let a=this.Date.UTC(l,t,e,i,s||0,r||0,o||0);if(this.timezone!=="UTC"){let n=this.getTimezoneOffset(a);if(a+=n,[2,3,8,9,10,11].indexOf(t)!==-1&&(i<5||i>20)){let h=this.getTimezoneOffset(a);n!==h?a+=h-n:n-36e5!==this.getTimezoneOffset(a-36e5)||An||(a-=36e5)}}return a}parse(l){if(!Qe(l))return l??void 0;let t=(l=l.replace(/\//g,"-").replace(/(GMT|UTC)/,"")).indexOf("Z")>-1||/([+-][0-9]{2}):?[0-9]{2}$/.test(l),e=/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/.test(l);t||e||(l+="Z");let i=Date.parse(l);if(qr(i))return i+(!t||e?this.getTimezoneOffset(i):0)}getTimezoneOffset(l){if(this.timezone!=="UTC"){let[t,e,i,s,r=0]=this.dateTimeFormat({timeZoneName:"shortOffset"},l,"en").split(/(GMT|:)/).map(Number),o=-(36e5*(i+r/60));if(qr(o))return o}return 0}dateFormat(l,t,e){var s;let i=(s=A.defaultOptions)==null?void 0:s.lang;if(!Si(t)||isNaN(t))return(i==null?void 0:i.invalidDate)||"";if(Qe(l=l??"%Y-%m-%d %H:%M:%S")){let r,o=/%\[([a-zA-Z]+)\]/g;for(;r=o.exec(l);)l=l.replace(r[0],this.dateTimeFormat(r[1],t))}if(Qe(l)&&l.indexOf("%")!==-1){let r=this,[o,a,n,h,c,d,p,u]=this.toParts(t),g=(i==null?void 0:i.weekdays)||this.weekdays,m=(i==null?void 0:i.shortWeekdays)||this.shortWeekdays,x=(i==null?void 0:i.months)||this.months,f=(i==null?void 0:i.shortMonths)||this.shortMonths;Sn(Ti({a:m?m[u]:g[u].substr(0,3),A:g[u],d:se(n),e:se(n,2," "),w:u,b:f[a],B:x[a],m:se(a+1),o:a+1,y:o.toString().substr(2,2),Y:o,H:se(h),k:h,I:se(h%12||12),l:h%12||12,M:se(c),p:h<12?"AM":"PM",P:h<12?"am":"pm",S:se(d),L:se(p,3)},A.dateFormats),function(b,y){if(Qe(l))for(;l.indexOf("%"+y)!==-1;)l=l.replace("%"+y,typeof b=="function"?b.call(r,t):b)})}else if(Ts(l)){let r=(this.getTimezoneOffset(t)||0)/36e5,o=this.timezone||"Etc/GMT"+(r>=0?"+":"")+r,{prefix:a="",suffix:n=""}=l;l=a+this.dateTimeFormat(Ti({timeZone:o},l),t)+n}return e?Cn(l):l}resolveDTLFormat(l){return Ts(l,!0)?Ts(l,!0)&&Pn(l)?{main:l}:l:{main:(l=Tn(l))[0],from:l[1],to:l[2]}}getTimeTicks(l,t,e,i){let s=this,r=[],o={},{count:a=1,unitRange:n}=l,[h,c,d,p,u,g]=s.toParts(t),m=(t||0)%1e3,x;if(i??(i=1),Si(t)){if(m=n>=dt.second?0:a*Math.floor(m/a),n>=dt.second&&(g=n>=dt.minute?0:a*Math.floor(g/a)),n>=dt.minute&&(u=n>=dt.hour?0:a*Math.floor(u/a)),n>=dt.hour&&(p=n>=dt.day?0:a*Math.floor(p/a)),n>=dt.day&&(d=n>=dt.month?1:Math.max(1,a*Math.floor(d/a))),n>=dt.month&&(c=n>=dt.year?0:a*Math.floor(c/a)),n>=dt.year&&(h-=h%a),n===dt.week){a&&(t=s.makeTime(h,c,d,p,u,g,m));let y=Zr(this.dateTimeFormat({timeZone:this.timezone,weekday:"narrow"},t,"es"));d+=-y+i+(y<i?-7:0)}t=s.makeTime(h,c,d,p,u,g,m),s.variableTimezone&&Si(e)&&(x=e-t>4*dt.month||s.getTimezoneOffset(t)!==s.getTimezoneOffset(e));let f=t,b=1;for(;f<e;)r.push(f),n===dt.year?f=s.makeTime(h+b*a,0):n===dt.month?f=s.makeTime(h,c+b*a):x&&(n===dt.day||n===dt.week)?f=s.makeTime(h,c,d+b*a*(n===dt.day?1:7)):x&&n===dt.hour&&a>1?f=s.makeTime(h,c,d,p+b*a):f+=n*a,b++;r.push(f),n<=dt.hour&&r.length<1e4&&r.forEach(y=>{y%18e5==0&&s.dateFormat("%H%M%S%L",y)==="000000000"&&(o[y]="day")})}return r.info=Ti(l,{higherRanks:o,totalRange:n*a}),r}getDateFormat(l,t,e,i){let s=this.dateFormat("%m-%d %H:%M:%S.%L",t),r="01-01 00:00:00.000",o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",n=a;for(a in dt){if(l===dt.week&&+this.dateFormat("%w",t)===e&&s.substr(6)===r.substr(6)){a="week";break}if(dt[a]>l){a=n;break}if(o[a]&&s.substr(o[a])!==r.substr(o[a]))break;a!=="week"&&(n=a)}return this.resolveDTLFormat(i[a]).main}},{isTouchDevice:On}=A,{fireEvent:Ln,merge:En}=X,Oe={colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"],symbols:["circle","diamond","square","triangle","triangle-down"],lang:{locale:void 0,loading:"Loading...",months:void 0,shortMonths:void 0,weekdays:void 0,numericSymbols:["k","M","G","T","P","E"],resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1"},global:{buttonTheme:{fill:"#f7f7f7",padding:8,r:2,stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},states:{hover:{fill:"#e6e6e6"},select:{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},disabled:{style:{color:"#cccccc"}}}}},time:{Date:void 0,timezone:"UTC",timezoneOffset:0,useUTC:void 0},chart:{alignThresholds:!1,panning:{enabled:!1,type:"x"},styledMode:!1,borderRadius:0,colorCount:10,allowMutatingData:!0,ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{},position:{}},reflow:!0,type:"line",zooming:{singleTouch:!1,resetButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}}},width:null,height:null,borderColor:"#334eff",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{style:{color:"#333333",fontWeight:"bold"},text:"Chart title",margin:15,minScale:.67},subtitle:{style:{color:"#666666",fontSize:"0.8em"},text:""},caption:{margin:15,style:{color:"#666666",fontSize:"0.8em"},text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},legend:{enabled:!0,align:"center",alignColumns:!0,className:"highcharts-no-tooltip",events:{},layout:"horizontal",itemMarginBottom:2,itemMarginTop:2,labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{style:{fontSize:"0.8em"},activeColor:"#0022ff",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"0.8em",textDecoration:"none",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#666666",textDecoration:"line-through"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontSize:"0.8em",fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:{duration:300,easing:l=>Math.sqrt(1-Math.pow(l-1,2))},borderRadius:3,dateTimeLabelFormats:{millisecond:"%[AebHMSL]",second:"%[AebHMS]",minute:"%[AebHM]",hour:"%[AebHM]",day:"%[AebY]",week:"Week from %[AebY]",month:"%[BY]",year:"%Y"},footerFormat:"",headerShape:"callout",hideDelay:500,padding:8,shape:"callout",shared:!1,snap:On?25:10,headerFormat:'<span style="font-size: 0.8em">{ucfirst point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:"#ffffff",borderWidth:void 0,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"}},As=new Cs(Oe.time),Xt={defaultOptions:Oe,defaultTime:As,getOptions:function(){return Oe},setOptions:function(l){return Ln(A,"setOptions",{options:l}),En(!0,Oe,l),l.time&&As.update(Oe.time),l.lang&&"locale"in l.lang&&As.update({locale:l.lang.locale}),Oe}},{isNumber:Ci,merge:In,pInt:Bt,defined:Kr}=X;class mt{static parse(t){return t?new mt(t):mt.None}constructor(t){let e,i,s,r;this.rgba=[NaN,NaN,NaN,NaN],this.input=t;let o=A.Color;if(o&&o!==mt)return new o(t);if(typeof t=="object"&&t.stops!==void 0)this.stops=t.stops.map(a=>new mt(a[1]));else if(typeof t=="string")for(this.input=t=mt.names[t.toLowerCase()]||t,s=mt.parsers.length;s--&&!i;)(e=(r=mt.parsers[s]).regex.exec(t))&&(i=r.parse(e));i&&(this.rgba=i)}get(t){let e=this.input,i=this.rgba;if(typeof e=="object"&&this.stops!==void 0){let s=In(e);return s.stops=[].slice.call(s.stops),this.stops.forEach((r,o)=>{s.stops[o]=[s.stops[o][0],r.get(t)]}),s}return i&&Ci(i[0])?t!=="rgb"&&(t||i[3]!==1)?t==="a"?`${i[3]}`:"rgba("+i.join(",")+")":"rgb("+i[0]+","+i[1]+","+i[2]+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach(function(i){i.brighten(t)});else if(Ci(t)&&t!==0)for(let i=0;i<3;i++)e[i]+=Bt(255*t),e[i]<0&&(e[i]=0),e[i]>255&&(e[i]=255);return this}setOpacity(t){return this.rgba[3]=t,this}tweenTo(t,e){let i=this.rgba,s=t.rgba;if(!Ci(i[0])||!Ci(s[0]))return t.input||"none";let r=s[3]!==1||i[3]!==1,o=(n,h)=>n+(i[h]-n)*(1-e),a=s.slice(0,3).map(o).map(Math.round);return r&&a.push(o(s[3],3)),(r?"rgba(":"rgb(")+a.join(",")+")"}}mt.names={white:"#ffffff",black:"#000000"},mt.parsers=[{regex:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?(?:\.\d+)?)\s*\)/,parse:function(l){return[Bt(l[1]),Bt(l[2]),Bt(l[3]),parseFloat(l[4],10)]}},{regex:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)/,parse:function(l){return[Bt(l[1]),Bt(l[2]),Bt(l[3]),1]}},{regex:/^#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?$/i,parse:function(l){return[Bt(l[1]+l[1],16),Bt(l[2]+l[2],16),Bt(l[3]+l[3],16),Kr(l[4])?Bt(l[4]+l[4],16)/255:1]}},{regex:/^#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?$/i,parse:function(l){return[Bt(l[1],16),Bt(l[2],16),Bt(l[3],16),Kr(l[4])?Bt(l[4],16)/255:1]}}],mt.None=new mt("");let{parse:_r}=mt,{win:Dn}=A,{isNumber:Ps,objectEach:Bn}=X;class zt{constructor(t,e,i){this.pos=NaN,this.options=e,this.elem=t,this.prop=i}dSetter(){let t=this.paths,e=t&&t[0],i=t&&t[1],s=this.now||0,r=[];if(s!==1&&e&&i)if(e.length===i.length&&s<1)for(let o=0;o<i.length;o++){let a=e[o],n=i[o],h=[];for(let c=0;c<n.length;c++){let d=a[c],p=n[c];Ps(d)&&Ps(p)&&!(n[0]==="A"&&(c===4||c===5))?h[c]=d+s*(p-d):h[c]=p}r.push(h)}else r=i;else r=this.toD||[];this.elem.attr("d",r,void 0,!0)}update(){let t=this.elem,e=this.prop,i=this.now,s=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,s&&s.call(t,i,this)}run(t,e,i){let s=this,r=s.options,o=function(h){return!o.stopped&&s.step(h)},a=Dn.requestAnimationFrame||function(h){setTimeout(h,13)},n=function(){for(let h=0;h<zt.timers.length;h++)zt.timers[h]()||zt.timers.splice(h--,1);zt.timers.length&&a(n)};t!==e||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=t,this.end=e,this.unit=i,this.now=this.start,this.pos=0,o.elem=this.elem,o.prop=this.prop,o()&&zt.timers.push(o)===1&&a(n)):(delete r.curAnim[this.prop],r.complete&&Object.keys(r.curAnim).length===0&&r.complete.call(this.elem))}step(t){let e,i,s=+new Date,r=this.options,o=this.elem,a=r.complete,n=r.duration,h=r.curAnim;return o.attr&&!o.element?e=!1:t||s>=n+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,Bn(h,function(c){c!==!0&&(i=!1)}),i&&a&&a.call(o),e=!1):(this.pos=r.easing((s-this.startTime)/n),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s=t.startX,r=t.endX,o=i.slice(),a=t.isArea,n=a?2:1,h=e&&i.length>e.length&&i.hasStackedCliffs,c,d,p,u,g=e&&e.slice();if(!g||h)return[o,o];function m(f,b){for(;f.length<d;){let y=f[0],v=b[d-f.length];if(v&&y[0]==="M"&&(v[0]==="C"?f[0]=["C",y[1],y[2],y[1],y[2],y[1],y[2]]:f[0]=["L",y[1],y[2]]),f.unshift(y),a){let w=f.pop();f.push(f[f.length-1],w)}}}function x(f){for(;f.length<d;){let b=f[Math.floor(f.length/n)-1].slice();if(b[0]==="C"&&(b[1]=b[5],b[2]=b[6]),a){let y=f[Math.floor(f.length/n)].slice();f.splice(f.length/2,0,b,y)}else f.push(b)}}if(s&&r&&r.length){for(p=0;p<s.length;p++){if(s[p]===r[0]){c=p;break}if(s[0]===r[r.length-s.length+p]){c=p,u=!0;break}if(s[s.length-1]===r[r.length-s.length+p]){c=s.length-p;break}}c===void 0&&(g=[])}return g.length&&Ps(c)&&(d=o.length+c*n,u?(m(g,o),x(o)):(m(o,g),x(g))),[g,o]}fillSetter(){zt.prototype.strokeSetter.apply(this,arguments)}strokeSetter(){this.elem.attr(this.prop,_r(this.start).tweenTo(_r(this.end),this.pos),void 0,!0)}}zt.timers=[];let{defined:zn,getStyle:Nn,isArray:Rn,isNumber:Wn,isObject:Os,merge:Qr,objectEach:Hn,pick:Xn}=X;function Ls(l){return Os(l)?Qr({duration:500,defer:0},l):{duration:l?500:0,defer:0}}function Jr(l,t){let e=zt.timers.length;for(;e--;)zt.timers[e].elem!==l||t&&t!==zt.timers[e].prop||(zt.timers[e].stopped=!0)}let Pt={animate:function(l,t,e){let i,s="",r,o,a;Os(e)||(a=arguments,e={duration:a[2],easing:a[3],complete:a[4]}),Wn(e.duration)||(e.duration=400),e.easing=typeof e.easing=="function"?e.easing:Math[e.easing]||Math.easeInOutSine,e.curAnim=Qr(t),Hn(t,function(n,h){Jr(l,h),o=new zt(l,e,h),r=void 0,h==="d"&&Rn(t.d)?(o.paths=o.initPath(l,l.pathArray,t.d),o.toD=t.d,i=0,r=1):l.attr?i=l.attr(h):(i=parseFloat(Nn(l,h))||0,h!=="opacity"&&(s="px")),r||(r=n),typeof r=="string"&&r.match("px")&&(r=r.replace(/px/g,"")),o.run(i,r,s)})},animObject:Ls,getDeferredAnimation:function(l,t,e){let i=Ls(t),s=e?[e]:l.series,r=0,o=0;return s.forEach(a=>{let n=Ls(a.options.animation);r=Os(t)&&zn(t.defer)?i.defer:Math.max(r,n.duration+n.defer),o=Math.min(i.duration,n.duration)}),l.renderer.forExport&&(r=0),{defer:Math.max(0,r-o),duration:Math.min(r,o)}},setAnimation:function(l,t){t.renderer.globalAnimation=Xn(l,t.options.chart.animation,!0)},stop:Jr},{SVG_NS:to,win:Fn}=A,{attr:Gn,createElement:jn,css:Yn,error:eo,isFunction:$n,isString:io,objectEach:so,splat:Vn}=X,{trustedTypes:Es}=Fn,Ai=Es&&$n(Es.createPolicy)&&Es.createPolicy("highcharts",{createHTML:l=>l}),Un=Ai?Ai.createHTML(""):"";class nt{static filterUserAttributes(t){return so(t,(e,i)=>{let s=!0;nt.allowedAttributes.indexOf(i)===-1&&(s=!1),["background","dynsrc","href","lowsrc","src"].indexOf(i)!==-1&&(s=io(e)&&nt.allowedReferences.some(r=>e.indexOf(r)===0)),s||(eo(33,!1,void 0,{"Invalid attribute in config":`${i}`}),delete t[i]),io(e)&&t[i]&&(t[i]=e.replace(/</g,"&lt;"))}),t}static parseStyle(t){return t.split(";").reduce((e,i)=>{let s=i.split(":").map(o=>o.trim()),r=s.shift();return r&&s.length&&(e[r.replace(/-([a-z])/g,o=>o[1].toUpperCase())]=s.join(":")),e},{})}static setElementHTML(t,e){t.innerHTML=nt.emptyHTML,e&&new nt(e).addToDOM(t)}constructor(t){this.nodes=typeof t=="string"?this.parseMarkup(t):t}addToDOM(t){return function e(i,s){let r;return Vn(i).forEach(function(o){let a,n=o.tagName,h=o.textContent?A.doc.createTextNode(o.textContent):void 0,c=nt.bypassHTMLFiltering;if(n)if(n==="#text")a=h;else if(nt.allowedTags.indexOf(n)!==-1||c){let d=n==="svg"?to:s.namespaceURI||to,p=A.doc.createElementNS(d,n),u=o.attributes||{};so(o,function(g,m){m!=="tagName"&&m!=="attributes"&&m!=="children"&&m!=="style"&&m!=="textContent"&&(u[m]=g)}),Gn(p,c?u:nt.filterUserAttributes(u)),o.style&&Yn(p,o.style),h&&p.appendChild(h),e(o.children||[],p),a=p}else eo(33,!1,void 0,{"Invalid tagName in config":n});a&&s.appendChild(a),r=a}),r}(this.nodes,t)}parseMarkup(t){let e,i=[];t=t.trim().replace(/ style=(["'])/g," data-style=$1");try{e=new DOMParser().parseFromString(Ai?Ai.createHTML(t):t,"text/html")}catch{}if(!e){let r=jn("div");r.innerHTML=t,e={body:r}}let s=(r,o)=>{let a=r.nodeName.toLowerCase(),n={tagName:a};a==="#text"&&(n.textContent=r.textContent||"");let h=r.attributes;if(h){let c={};[].forEach.call(h,d=>{d.name==="data-style"?n.style=nt.parseStyle(d.value):c[d.name]=d.value}),n.attributes=c}if(r.childNodes.length){let c=[];[].forEach.call(r.childNodes,d=>{s(d,c)}),c.length&&(n.children=c)}o.push(n)};return[].forEach.call(e.body.childNodes,r=>s(r,i)),i}}nt.allowedAttributes=["alt","aria-controls","aria-describedby","aria-expanded","aria-haspopup","aria-hidden","aria-label","aria-labelledby","aria-live","aria-pressed","aria-readonly","aria-roledescription","aria-selected","class","clip-path","color","colspan","cx","cy","d","dx","dy","disabled","fill","filterUnits","flood-color","flood-opacity","height","href","id","in","in2","markerHeight","markerWidth","offset","opacity","operator","orient","padding","paddingLeft","paddingRight","patternUnits","r","radius","refX","refY","role","scope","slope","src","startOffset","stdDeviation","stroke","stroke-linecap","stroke-width","style","tableValues","result","rowspan","summary","target","tabindex","text-align","text-anchor","textAnchor","textLength","title","type","valign","width","x","x1","x2","xlink:href","y","y1","y2","zIndex"],nt.allowedReferences=["https://","http://","mailto:","/","../","./","#"],nt.allowedTags=["a","abbr","b","br","button","caption","circle","clipPath","code","dd","defs","div","dl","dt","em","feComponentTransfer","feComposite","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feMorphology","feOffset","feMerge","feMergeNode","filter","h1","h2","h3","h4","h5","h6","hr","i","img","li","linearGradient","marker","ol","p","path","pattern","pre","rect","small","span","stop","strong","style","sub","sup","svg","table","text","textPath","thead","title","tbody","tspan","td","th","tr","u","ul","#text"],nt.emptyHTML=Un,nt.bypassHTMLFiltering=!1;let{defaultOptions:ro,defaultTime:oo}=Xt,{pageLang:qn}=A,{extend:Zn,getNestedProperty:Kn,isArray:_n,isNumber:ao,isObject:Qn,isString:Jn,pick:tl,ucfirst:el}=X,Pi={add:(l,t)=>l+t,divide:(l,t)=>t!==0?l/t:"",eq:(l,t)=>l==t,each:function(l){let t=arguments[arguments.length-1];return!!_n(l)&&l.map((e,i)=>Oi(t.body,Zn(Qn(e)?e:{"@this":e},{"@index":i,"@first":i===0,"@last":i===l.length-1}))).join("")},ge:(l,t)=>l>=t,gt:(l,t)=>l>t,if:l=>!!l,le:(l,t)=>l<=t,lt:(l,t)=>l<t,multiply:(l,t)=>l*t,ne:(l,t)=>l!=t,subtract:(l,t)=>l-t,ucfirst:el,unless:l=>!l},no={},lo=l=>/^["'].+["']$/.test(l);function Oi(l="",t,e){let i=/\{([\p{L}\d:\.,;\-\/<>\[\]%_@+"'’= #\(\)]+)\}/gu,s=/\(([\p{L}\d:\.,;\-\/<>\[\]%_@+"'= ]+)\)/gu,r=[],o=/f$/,a=/\.(\d)/,n=(e==null?void 0:e.options.lang)||ro.lang,h=e&&e.time||oo,c=e&&e.numberFormatter||ho,d=(x="")=>{let f;return x==="true"||x!=="false"&&((f=Number(x)).toString()===x?f:lo(x)?x.slice(1,-1):Kn(x,t))},p,u,g=0,m;for(;(p=i.exec(l))!==null;){let x=p,f=s.exec(p[1]);f&&(p=f,m=!0),u&&u.isBlock||(u={ctx:t,expression:p[1],find:p[0],isBlock:p[1].charAt(0)==="#",start:p.index,startInner:p.index+p[0].length,length:p[0].length});let b=(u.isBlock?x:p)[1].split(" ")[0].replace("#","");Pi[b]&&(u.isBlock&&b===u.fn&&g++,u.fn||(u.fn=b));let y=p[1]==="else";if(u.isBlock&&u.fn&&(p[1]===`/${u.fn}`||y))if(g)!y&&g--;else{let v=u.startInner,w=l.substr(v,p.index-v);u.body===void 0?(u.body=w,u.startInner=p.index+p[0].length):u.elseBody=w,u.find+=w+p[0],y||(r.push(u),u=void 0)}else u.isBlock||r.push(u);if(f&&!(u!=null&&u.isBlock))break}return r.forEach(x=>{let f,b,{body:y,elseBody:v,expression:w,fn:k}=x;if(k){let S=[x],M=[],T=w.length,L=0,E;for(b=0;b<=T;b++){let B=w.charAt(b);E||B!=='"'&&B!=="'"?E===B&&(E=""):E=B,E||B!==" "&&b!==T||(M.push(w.substr(L,b-L)),L=b+1)}for(b=Pi[k].length;b--;)S.unshift(d(M[b+1]));f=Pi[k].apply(t,S),x.isBlock&&typeof f=="boolean"&&(f=Oi(f?y:v,t,e))}else{let S=lo(w)?[w]:w.split(":");if(f=d(S.shift()||""),S.length&&typeof f=="number"){let M=S.join(":");if(o.test(M)){let T=parseInt((M.match(a)||["","-1"])[1],10);f!==null&&(f=c(f,T,n.decimalPoint,M.indexOf(",")>-1?n.thousandsSep:""))}else f=h.dateFormat(M,f)}s.lastIndex=0,s.test(x.find)&&Jn(f)&&(f=`"${f}"`)}l=l.replace(x.find,tl(f,""))}),m?Oi(l,t,e):l}function ho(l,t,e,i){var m;t=+t;let s,r,[o,a]=(l=+l||0).toString().split("e").map(Number),n=((m=this==null?void 0:this.options)==null?void 0:m.lang)||ro.lang,h=(l.toString().split(".")[1]||"").split("e")[0].length,c=t,d={};e??(e=n.decimalPoint),i??(i=n.thousandsSep),t===-1?t=Math.min(h,20):ao(t)?t&&a<0&&((r=t+a)>=0?(o=+o.toExponential(r).split("e")[0],t=r):(o=Math.floor(o),l=t<20?+(o*Math.pow(10,a)).toFixed(t):0,a=0)):t=2,a&&(t??(t=2),l=o),ao(t)&&t>=0&&(d.minimumFractionDigits=t,d.maximumFractionDigits=t),i===""&&(d.useGrouping=!1);let p=i||e,u=p?"en":(this==null?void 0:this.locale)||n.locale||qn,g=JSON.stringify(d)+u;return s=(no[g]??(no[g]=new Intl.NumberFormat(u,d))).format(l),p&&(s=s.replace(/([,\.])/g,"_$1").replace(/_\,/g,i??",").replace("_.",e??".")),(t||+s!=0)&&(!(a<0)||c)||(s="0"),a&&+s!=0&&(s+="e"+(a<0?"":"+")+a),s}let Yt={dateFormat:function(l,t,e){return oo.dateFormat(l,t,e)},format:Oi,helpers:Pi,numberFormat:ho};(function(l){let t;l.rendererTypes={},l.getRendererType=function(e=t){return l.rendererTypes[e]||l.rendererTypes[t]},l.registerRendererType=function(e,i,s){l.rendererTypes[e]=i,(!t||s)&&(t=e,A.Renderer=i)}})(z||(z={}));let Je=z,{clamp:il,pick:sl,pushUnique:rl,stableSort:Is}=X;(I||(I={})).distribute=function l(t,e,i){let s=t,r=s.reducedLen||e,o=(y,v)=>y.target-v.target,a=[],n=t.length,h=[],c=a.push,d,p,u,g=!0,m,x,f=0,b;for(d=n;d--;)f+=t[d].size;if(f>r){for(Is(t,(y,v)=>(v.rank||0)-(y.rank||0)),u=(b=t[0].rank===t[t.length-1].rank)?n/2:-1,p=b?u:n-1;u&&f>r;)m=t[d=Math.floor(p)],rl(h,d)&&(f-=m.size),p+=u,b&&p>=t.length&&(u/=2,p=u);h.sort((y,v)=>v-y).forEach(y=>c.apply(a,t.splice(y,1)))}for(Is(t,o),t=t.map(y=>({size:y.size,targets:[y.target],align:sl(y.align,.5)}));g;){for(d=t.length;d--;)m=t[d],x=(Math.min.apply(0,m.targets)+Math.max.apply(0,m.targets))/2,m.pos=il(x-m.size*m.align,0,e-m.size);for(d=t.length,g=!1;d--;)d>0&&t[d-1].pos+t[d-1].size>t[d].pos&&(t[d-1].size+=t[d].size,t[d-1].targets=t[d-1].targets.concat(t[d].targets),t[d-1].align=.5,t[d-1].pos+t[d-1].size>e&&(t[d-1].pos=e-t[d-1].size),t.splice(d,1),g=!0)}return c.apply(s,a),d=0,t.some(y=>{let v=0;return(y.targets||[]).some(()=>(s[d].pos=y.pos+v,i!==void 0&&Math.abs(s[d].pos-s[d].target)>i?(s.slice(0,d+1).forEach(w=>delete w.pos),s.reducedLen=(s.reducedLen||e)-.1*e,s.reducedLen>.1*e&&l(s,e,i),!0):(v+=s[d].size,d++,!1)))}),Is(s,o),s};let Li=I,{animate:ol,animObject:al,stop:co}=Pt,{deg2rad:po,doc:Le,svg:nl,SVG_NS:Ei,win:ll,isFirefox:hl}=A,{addEvent:dl,attr:Ds,createElement:cl,crisp:Ii,css:uo,defined:Kt,erase:pl,extend:ti,fireEvent:Bs,getAlignFactor:zs,isArray:go,isFunction:fo,isNumber:ul,isObject:gl,isString:mo,merge:Ns,objectEach:Ee,pick:$t,pInt:Di,pushUnique:fl,replaceNested:ml,syncTimeout:xl,uniqueKey:xo}=X;class bt{_defaultGetter(t){let e=$t(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^-?[\d\.]+$/.test(e)&&(e=parseFloat(e)),e}_defaultSetter(t,e,i){i.setAttribute(e,t)}add(t){let e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),this.textStr!==void 0&&this.element.nodeName==="text"&&i.buildText(this),this.added=!0,(!t||t.handleZ||this.zIndex)&&(e=this.zIndexSetter()),e||(t?t.element:i.box).appendChild(s),this.onAdd&&this.onAdd(),this}addClass(t,e){let i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(s,r){return i.indexOf(r)===-1&&s.push(r),s},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i,s=!0){let r=this.renderer,o=r.alignedObjects,a=!!t;t?(this.alignOptions=t,this.alignByTranslate=e,this.alignTo=i):(t=this.alignOptions||{},e=this.alignByTranslate,i=this.alignTo);let n=!i||mo(i)?i||"renderer":void 0;n&&(a&&fl(o,this),i=void 0);let h=$t(i,r[n],r),c=(h.x||0)+(t.x||0)+((h.width||0)-(t.width||0))*zs(t.align),d=(h.y||0)+(t.y||0)+((h.height||0)-(t.height||0))*zs(t.verticalAlign),p={"text-align":t==null?void 0:t.align};return p[e?"translateX":"x"]=Math.round(c),p[e?"translateY":"y"]=Math.round(d),s&&(this[this.placed?"animate":"attr"](p),this.placed=!0),this.alignAttr=p,this}alignSetter(t){let e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}animate(t,e,i){let s=al($t(e,this.renderer.globalAnimation,!0)),r=s.defer;return Le.hidden&&(s.duration=0),s.duration!==0?(i&&(s.complete=i),xl(()=>{this.element&&ol(this,t,s)},r)):(this.attr(t,void 0,i||s.complete),Ee(t,function(o,a){s.step&&s.step.call(this,o,{prop:a,pos:1,elem:this})},this)),this}applyTextOutline(t){let e=this.element;t.indexOf("contrast")!==-1&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let i=t.split(" "),s=i[i.length-1],r=i[0];if(r&&r!=="none"&&A.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,function(c,d,p){return 2*Number(d)+p}),this.removeTextOutline();let o=Le.createElementNS(Ei,"tspan");Ds(o,{class:"highcharts-text-outline",fill:s,stroke:s,"stroke-width":r,"stroke-linejoin":"round"});let a=e.querySelector("textPath")||e;[].forEach.call(a.childNodes,c=>{let d=c.cloneNode(!0);d.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach(p=>d.removeAttribute(p)),o.appendChild(d)});let n=0;[].forEach.call(a.querySelectorAll("text tspan"),c=>{n+=Number(c.getAttribute("dy"))});let h=Le.createElementNS(Ei,"tspan");h.textContent="​",Ds(h,{x:Number(e.getAttribute("x")),dy:-n}),o.appendChild(h),a.insertBefore(o,a.firstChild)}}attr(t,e,i,s){let{element:r}=this,o=bt.symbolCustomAttribs,a,n,h=this,c;return typeof t=="string"&&e!==void 0&&(a=t,(t={})[a]=e),typeof t=="string"?h=(this[t+"Getter"]||this._defaultGetter).call(this,t,r):(Ee(t,function(d,p){c=!1,s||co(this,p),this.symbolName&&o.indexOf(p)!==-1&&(n||(this.symbolAttr(t),n=!0),c=!0),this.rotation&&(p==="x"||p==="y")&&(this.doTransform=!0),c||(this[p+"Setter"]||this._defaultSetter).call(this,d,p,r)},this),this.afterSetters()),i&&i.call(this),h}clip(t){if(t&&!t.clipPath){let e=xo()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);ti(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?`url(${this.renderer.url}#${t.id})`:"none")}crisp(t,e){e=Math.round(e||t.strokeWidth||0);let i=t.x||this.x||0,s=t.y||this.y||0,r=(t.width||this.width||0)+i,o=(t.height||this.height||0)+s,a=Ii(i,e),n=Ii(s,e);return ti(t,{x:a,y:n,width:Ii(r,e)-a,height:Ii(o,e)-n}),Kt(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,e,i){let s=this.renderer,r,o,a,n,h,c,d,p,u,g,m=[],x;Bs(this.renderer,"complexColor",{args:arguments},function(){if(t.radialGradient?o="radialGradient":t.linearGradient&&(o="linearGradient"),o){if(a=t[o],h=s.gradients,c=t.stops,u=i.radialReference,go(a)&&(t[o]=a={x1:a[0],y1:a[1],x2:a[2],y2:a[3],gradientUnits:"userSpaceOnUse"}),o==="radialGradient"&&u&&!Kt(a.gradientUnits)&&(n=a,a=Ns(a,s.getRadialAttr(u,n),{gradientUnits:"userS