e(s)))}((e=>((e,t)=>{if(null===e||void 0===e||!e.data)return void t({type:"error",title:"views.home.banner.error.title",content:"views.home.banner.error.content"});const{station:s,uptime:l,os:a}=e.data,{uuid:o,name:n}=s,{arch:c,distro:i}=a;t({title:"views.home.banner.success.title",content:"views.home.banner.success.content",type:"success",values:{uptime:String(l),station:n,os:i,uuid:o,arch:c}})})(e,s)),(e=>((e,t)=>{if(null===e||void 0===e||!e.data)return;const{status:s}=e.data;t((e=>(Object.keys(s).forEach((t=>{if(t in e){const l=s[t];e[t]={...e[t],value:String(l)}}})),e)))})(e,m)),(e=>((e,t)=>{null!==e&&void 0!==e&&e.data&&t((t=>{const{data:s}=e,{timestamp:l}=s;return Object.keys(t).forEach((e=>{if(e in s&&s[e].hasOwnProperty("percent")){const{percent:a}=s[e],{current:o}=t[e].chart.ref;if(o){const e=o.chart.series[0].data.length?o.chart.series[0].data[0].x:l;o.chart.series[0].addPoint([l,a],!0,l-e>=3e5)}t[e]={...t[e],holder:{...t[e].holder,values:{usage:a.toFixed(2)}}}}})),t}))})(e,h)),(e=>((e,t)=>{if(null===e||void 0===e||!e.data)return;const{position:s}=e.data,{longitude:l,latitude:a,elevation:o}=s;t((e=>({...e,mapbox:{...e.mapbox,center:[a,l],marker:[a,l]},holder:{...e.holder,values:{...e.holder.values,elevation:o.toFixed(2),latitude:a.toFixed(2),longitude:l.toFixed(2)}}})))})(e,b)))),2e3,!0);const{t:C}=(0,l.Bd)();return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(a.l,{type:t.type,title:C(t.title,{...t.values}),content:C(t.content,{...t.values})}),(0,v.jsx)(o.m,{className:"mt-5 flex flex-wrap",children:Object.values(d).map((e=>{let{label:t,unit:s,...l}=e;return(0,i.createElement)(c.J,{...l,key:t,label:C(t),unit:C(null!==s&&void 0!==s?s:""),className:"md:w-1/2 lg:w-1/3"})}))}),(0,v.jsx)(o.m,{className:"mt-5 gap-4 grid grid-cols-1 md:grid-cols-2",children:Object.values(u).map((e=>{var t;let{holder:s,chart:l}=e;return(0,v.jsx)(n.R,{label:C(s.label),text:C(null!==(t=s.text)&&void 0!==t?t:"",{...s.values}),children:(0,v.jsx)(r.t,{...l})},s.label)}))}),(0,v.jsx)(o.m,{children:(0,v.jsx)(n.R,{label:C(f.holder.label),text:C(null!==(e=f.holder.text)&&void 0!==e?e:"",{...f.holder.values}),children:(0,v.jsx)(x,{className:"h-[400px]",...f.mapbox})})})]})}}}]);
\ No newline at end of file
diff --git a/frontend/dist/static/js/4.d126994b.chunk.js b/frontend/dist/static/js/4.d126994b.chunk.js
new file mode 100644
index 00000000..72e36945
--- /dev/null
+++ b/frontend/dist/static/js/4.d126994b.chunk.js
@@ -0,0 +1 @@
+(self.webpackChunksrc=self.webpackChunksrc||[]).push([[4],{5427:function(t,e){var r,n,i,o,_;"undefined"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return null!=t&&null!=t.__proto__&&t.__proto__.__proto__===Int8Array.prototype.__proto__}),"undefined"===typeof Math.clz32&&(Math.clz32=(o=Math.log,_=Math.LN2,function(t){var e=t>>>0;return 0===e?32:31-(o(e)/_|0)|0})),"object"!==typeof globalThis&&(Object.defineProperty(Object.prototype,"__magic__",{get:function(){return this},configurable:!0}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__),"undefined"===typeof Math.imul&&(Math.imul=function(t,e){return(4294901760&t)*(65535&e)+(65535&t)*(0|e)|0}),n=[e],void 0===(i="function"===typeof(r=function(t){"use strict";var e,r,n,i,o,_,s,a,u,h,p,c,f,l,y,$,d,k,g,m,v,w,b,x,j,I,E,C,S,A,q,N,X,T,z,P,O,M,R,L,B,F,U,D,V,Y,Z,W,G,H,K,Q,J,tt,et,rt,nt,it,ot,_t,st,at,ut=Math.imul,ht=Math.clz32,pt=ArrayBuffer.isView;function ct(t){return t===qe()?this:t.fold_6dbyow_k$(this,Ce)}function ft(t,e){if(null==e){var r=0,n=t.length-1|0;if(r<=n)do{var i=r;if(r=r+1|0,null==t[i])return i}while(r<=n)}else{var o=0,_=t.length-1|0;if(o<=_)do{var s=o;if(o=o+1|0,wu(e,t[s]))return s}while(o<=_)}return-1}function lt(t,e){if(null==e){var r=t.length-1|0;if(0<=r)do{var n=r;if(r=r+-1|0,null==t[n])return n}while(0<=r)}else{var i=t.length-1|0;if(0<=i)do{var o=i;if(i=i+-1|0,wu(e,t[o]))return o}while(0<=i)}return-1}function yt(t,e,r,n,i,o,_){return dt(t,Ks(),e,r,n,i,o,_).toString()}function $t(t,e,r,n,i,o,_,s,a){return 0!==(1&s)&&(e=", "),0!==(2&s)&&(r=""),0!==(4&s)&&(n=""),0!==(8&s)&&(i=-1),0!==(16&s)&&(o="..."),0!==(32&s)&&(_=null),yt(t,e,r,n,i,o,_)}function dt(t,e,r,n,i,o,_,s){e.append_oz4qxs_k$(n);var a=0,u=t,h=0,p=u.length;t:for(;h1&&e.append_oz4qxs_k$(r),!(o<0||a<=o))break t;Jr(e,c,s)}return o>=0&&a>o&&e.append_oz4qxs_k$(_),e.append_oz4qxs_k$(i),e}function kt(t,e){return gt(t,e)>=0}function gt(t,e){var r=0,n=t.length-1|0;if(r<=n)do{var i=r;if(r=r+1|0,e===t[i])return i}while(r<=n);return-1}function mt(t,e){return vt(t,e)>=0}function vt(t,e){var r=0,n=t.length-1|0;if(r<=n)do{var i=r;if(r=r+1|0,e===t[i])return i}while(r<=n);return-1}function wt(t,e){return bt(t,e)>=0}function bt(t,e){var r=0,n=t.length-1|0;if(r<=n)do{var i=r;if(r=r+1|0,e===t[i])return i}while(r<=n);return-1}function xt(t,e){return jt(t,e)>=0}function jt(t,e){var r=0,n=t.length-1|0;if(r<=n)do{var i=r;if(r=r+1|0,e.equals(t[i]))return i}while(r<=n);return-1}function It(t,e,r,n,i,o,_){return Ct(t,Ks(),e,r,n,i,o,_).toString()}function Et(t,e,r,n,i,o,_,s,a){return 0!==(1&s)&&(e=", "),0!==(2&s)&&(r=""),0!==(4&s)&&(n=""),0!==(8&s)&&(i=-1),0!==(16&s)&&(o="..."),0!==(32&s)&&(_=null),It(t,e,r,n,i,o,_)}function Ct(t,e,r,n,i,o,_,s){e.append_oz4qxs_k$(n);var a=0,u=t.iterator_jk1svi_k$();t:for(;u.hasNext_bitz1p_k$();){var h=u.next_20eer_k$();if((a=a+1|0)>1&&e.append_oz4qxs_k$(r),!(o<0||a<=o))break t;Jr(e,h,s)}return o>=0&&a>o&&e.append_oz4qxs_k$(_),e.append_oz4qxs_k$(i),e}function St(){bu(this,St)}function At(){}function qt(){return e}function Nt(t){this.markerClass_1=t}function Xt(){}function Tt(){}function zt(){}function Pt(t,e){Oa.call(this,t,e)}function Ot(t,e){this.message_1=t,this.level_1=e}function Mt(t){this.markerClass_1=t}function Rt(t){return function(e){return e===t?"(this Collection)":Ma(e)}}function Lt(){}function Bt(t,e,r){Yt.call(this),this.list_1=t,this.fromIndex_1=e,this._size_1=0,Vt().checkRangeIndexes_5hjybp_k$(this.fromIndex_1,r,this.list_1.get_size_woubt6_k$()),this._size_1=r-this.fromIndex_1|0}function Ft(t){this.$this_1=t,this.index_1=0}function Ut(t,e){this.$this_2=t,Ft.call(this,t),Vt().checkPositionIndex_kxpgsw_k$(e,this.$this_2.get_size_woubt6_k$()),this.index_1=e}function Dt(){r=this}function Vt(){return null==r&&new Dt,r}function Yt(){Vt(),Lt.call(this)}function Zt(t){return t.get_size_woubt6_k$()-1|0}function Wt(){return Ht()}function Gt(){n=this,this.serialVersionUID_1=new Ou(-1478467534,-1720727600)}function Ht(){return null==n&&new Gt,n}function Kt(){i=this}function Qt(){return null==i&&new Kt,i}function Jt(t,e){return ee(t,e,!0)}function te(t,e){return re(t,e,!0)}function ee(t,e,r){if(!jh(t,N_))return re(jh(t,Ca)?t:Au(),e,r);var n=0,i=0,o=Zt(t);if(i<=o)do{var _=i;i=i+1|0;var s=t.get_fkrdnv_k$(_);e(s)!==r&&(n!==_&&t.set_meu351_k$(n,s),n=n+1|0)}while(_!==o);if(n0)n=t>=e?e:e-tr(e,t,r)|0;else{if(!(r<0))throw hp("Step is zero.");n=t<=e?e:e+tr(t,e,0|-r)|0}return n}function Je(t,e,r){var n;if(r.compareTo_n4fqi2_k$(new Ou(0,0))>0)n=t.compareTo_n4fqi2_k$(e)>=0?e:e.minus_llf5ei_k$(er(e,t,r));else{if(!(r.compareTo_n4fqi2_k$(new Ou(0,0))<0))throw hp("Step is zero.");n=t.compareTo_n4fqi2_k$(e)<=0?e:e.plus_u6jwas_k$(er(t,e,r.unaryMinus_6uz0qp_k$()))}return n}function tr(t,e,r){return rr(rr(t,r)-rr(e,r)|0,r)}function er(t,e,r){return nr(nr(t,r).minus_llf5ei_k$(nr(e,r)),r)}function rr(t,e){var r=t%e|0;return r>=0?r:r+e|0}function nr(t,e){var r=t.rem_9rbcjo_k$(e);return r.compareTo_n4fqi2_k$(new Ou(0,0))>=0?r:r.plus_u6jwas_k$(e)}function ir(){this.serialVersionUID_1=new Ou(0,0)}function or(){h=this,sr.call(this),this.defaultRandom_1=Q_()}function _r(){return null==h&&new or,h}function sr(){_r()}function ar(t,e){var r;if(!(e>t))throw hp(gu(cr(t,e)));return r}function ur(t){return 31-ht(t)|0}function hr(t,e){var r;if(!(e.compareTo_n4fqi2_k$(t)>0))throw hp(gu(cr(t,e)));return r}function pr(t,e){var r;if(!(e>t))throw hp(gu(cr(t,e)));return r}function cr(t,e){return"Random range is empty: ["+gu(t)+", "+gu(e)+")."}function fr(t){return $r(t,t>>31)}function lr(t,e){return(t>>>(32-e|0)|0)&(0|-e)>>31}function yr(t,e,r){return gr.call(r,t,e,0,0,~t,t<<10^(e>>>4|0)),r}function $r(t,e){return yr(t,e,Object.create(gr.prototype))}function dr(){p=this,this.serialVersionUID_1=new Ou(0,0)}function kr(){return null==p&&new dr,p}function gr(t,e,r,n,i,o){if(kr(),sr.call(this),this.x_1=t,this.y_1=e,this.z_1=r,this.w_1=n,this.v_1=i,this.addend_1=o,0===(this.x_1|this.y_1|this.z_1|this.w_1|this.v_1))throw hp(gu("Initial state must have at least one non-zero element."));var _=0;if(_<64)do{_=_+1|0,this.nextInt_ujorgc_k$()}while(_<64)}function mr(){c=this,this.EMPTY_1=new wr(1,0)}function vr(){return null==c&&new mr,c}function wr(t,e){vr(),Tr.call(this,t,e,1)}function br(){f=this,this.EMPTY_1=new jr(ha(1),ha(0))}function xr(){return null==f&&new br,f}function jr(t,e){xr(),Or.call(this,t,e,1)}function Ir(){l=this,this.EMPTY_1=new Cr(new Ou(1,0),new Ou(0,0))}function Er(){return null==l&&new Ir,l}function Cr(t,e){Er(),Lr.call(this,t,e,new Ou(1,0))}function Sr(t,e,r){ne.call(this),this.step_1=r,this.finalElement_1=e,this.hasNext_1=this.step_1>0?t<=e:t>=e,this.next_1=this.hasNext_1?t:this.finalElement_1}function Ar(t,e,r){se.call(this),this.step_1=r;var n,i=this;n=$a(e),i.finalElement_1=n,this.hasNext_1=this.step_1>0?fa(t,e)<=0:fa(t,e)>=0;var o,_=this;o=this.hasNext_1?$a(t):this.finalElement_1,_.next_1=o}function qr(t,e,r){ae.call(this),this.step_1=r,this.finalElement_1=e,this.hasNext_1=this.step_1.compareTo_n4fqi2_k$(new Ou(0,0))>0?t.compareTo_n4fqi2_k$(e)<=0:t.compareTo_n4fqi2_k$(e)>=0,this.next_1=this.hasNext_1?t:this.finalElement_1}function Nr(){y=this}function Xr(){return null==y&&new Nr,y}function Tr(t,e,r){if(Xr(),0===r)throw hp("Step must be non-zero.");if(r===n_().MIN_VALUE_1)throw hp("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.first_1=t,this.last_1=Qe(t,e,r),this.step_1=r}function zr(){$=this}function Pr(){return null==$&&new zr,$}function Or(t,e,r){if(Pr(),0===r)throw hp("Step must be non-zero.");if(r===n_().MIN_VALUE_1)throw hp("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.first_1=t;var n,i=this,o=$a(t);n=$a(e),i.last_1=gh(Qe(o,n,r)),this.step_1=r}function Mr(){d=this}function Rr(){return null==d&&new Mr,d}function Lr(t,e,r){if(Rr(),r.equals(new Ou(0,0)))throw hp("Step must be non-zero.");if(Pu(),r.equals(new Ou(0,-2147483648)))throw hp("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");this.first_1=t,this.last_1=Je(t,e,r),this.step_1=r}function Br(){}function Fr(){}function Ur(){}function Dr(){}function Vr(){k=this,this.star_1=new Zr(null,null)}function Yr(){return null==k&&new Vr,k}function Zr(t,e){if(Yr(),this.variance_1=t,this.type_1=e,null==this.variance_1!==(null==this.type_1))throw hp(gu(null==this.variance_1?"Star projection must have no type specified.":"The projection variance "+this.variance_1+" requires type to be specified."))}function Wr(){if(w)return Zo();w=!0,g=new Gr("INVARIANT",0),m=new Gr("IN",1),v=new Gr("OUT",2)}function Gr(t,e){Oa.call(this,t,e)}function Hr(){return Wr(),g}function Kr(){return Wr(),m}function Qr(){return Wr(),v}function Jr(t,e,r){null!=r?t.append_oz4qxs_k$(r(e)):null==e||Oh(e)?t.append_oz4qxs_k$(e):e instanceof wa?t.append_t8oh9e_k$(e.value_1):t.append_oz4qxs_k$(Ma(e))}function tn(t){return uu(t)-1|0}function en(t){return t}function rn(t){return t}function nn(t){return rn(t)instanceof un}function on(t){return rn(t)instanceof un?rn(t).exception_1:null}function _n(t){return rn(t)instanceof un?gu(rn(t)):"Success("+Ma(rn(t))+")"}function sn(){b=this}function an(){return null==b&&new sn,b}function un(t){this.exception_1=t}function hn(t){return null==t?0:mu(t)}function pn(t,e){return e instanceof cn&&!!wu(t,e instanceof cn?e.value_1:Au())}function cn(t){an(),this.value_1=t}function fn(t){return new un(t)}function ln(t){if(rn(t)instanceof un)throw rn(t).exception_1}function yn(t,e,r,n){return 0!==(1&e)&&(t="An operation is not implemented."),dn.call(n,t),n}function $n(t,e,r){var n=yn(t,e,r,Object.create(dn.prototype));return bu(n,$n),n}function dn(t){sp(t,this),bu(this,dn)}function kn(t){return t}function gn(t){return t}function mn(){x=this,this.MIN_VALUE_1=kn(0),this.MAX_VALUE_1=kn(-1),this.SIZE_BYTES_1=1,this.SIZE_BITS_1=8}function vn(){return null==x&&new mn,x}function wn(t,e){return fu(255&gn(t),255&gn(e))}function bn(t,e){return wn(t.data_1,e instanceof En?e.data_1:Au())}function xn(t){return(255&gn(t)).toString()}function jn(t){return t}function In(t,e){return e instanceof En&&t===(e instanceof En?e.data_1:Au())}function En(t){vn(),this.data_1=t}function Cn(t){return t}function Sn(t){return Cn(t).length}function An(t){return new qn(Cn(t))}function qn(t){this.array_1=t,this.index_1=0}function Nn(t,e){return(zh(new En(e))?new En(e):Au())instanceof En&&kt(Cn(t),gn(e))}function Xn(t,e){return e instanceof En&&Nn(t.storage_1,e instanceof En?e.data_1:Au())}function Tn(t,e){var r;t:{var n=jh(e,ja)?e:Au();if(jh(n,ja)&&n.isEmpty_y1axqb_k$())r=!0;else{for(var i=n.iterator_jk1svi_k$();i.hasNext_bitz1p_k$();){var o=i.next_20eer_k$();if(!(o instanceof En&&kt(Cn(t),gn(o.data_1)))){r=!1;break t}}r=!0}}return r}function zn(t,e){return Tn(t.storage_1,e)}function Pn(t){return 0===Cn(t).length}function On(t){return"UByteArray(storage="+gu(t)+")"}function Mn(t){return mu(t)}function Rn(t,e){return e instanceof Ln&&!!wu(t,e instanceof Ln?e.storage_1:Au())}function Ln(t){this.storage_1=t}function Bn(t){return t}function Fn(t){return t}function Un(){j=this,this.MIN_VALUE_1=Bn(0),this.MAX_VALUE_1=Bn(-1),this.SIZE_BYTES_1=4,this.SIZE_BITS_1=32}function Dn(){return null==j&&new Un,j}function Vn(t,e){return vo(Fn(t),Fn(e))}function Yn(t,e){return Vn(t.data_1,e instanceof Hn?e.data_1:Au())}function Zn(t){return mh(Fn(t)).and_jhajnj_k$(new Ou(-1,0)).toString()}function Wn(t){return t}function Gn(t,e){return e instanceof Hn&&t===(e instanceof Hn?e.data_1:Au())}function Hn(t){Dn(),this.data_1=t}function Kn(t){return t}function Qn(t){return Kn(t).length}function Jn(t){return new ti(Kn(t))}function ti(t){this.array_1=t,this.index_1=0}function ei(t,e){return(zh(new Hn(e))?new Hn(e):Au())instanceof Hn&&wt(Kn(t),Fn(e))}function ri(t,e){return e instanceof Hn&&ei(t.storage_1,e instanceof Hn?e.data_1:Au())}function ni(t,e){var r;t:{var n=jh(e,ja)?e:Au();if(jh(n,ja)&&n.isEmpty_y1axqb_k$())r=!0;else{for(var i=n.iterator_jk1svi_k$();i.hasNext_bitz1p_k$();){var o=i.next_20eer_k$();if(!(o instanceof Hn&&wt(Kn(t),Fn(o.data_1)))){r=!1;break t}}r=!0}}return r}function ii(t,e){return ni(t.storage_1,e)}function oi(t){return 0===Kn(t).length}function _i(t){return"UIntArray(storage="+gu(t)+")"}function si(t){return mu(t)}function ai(t,e){return e instanceof ui&&!!wu(t,e instanceof ui?e.storage_1:Au())}function ui(t){this.storage_1=t}function hi(){I=this;var t=this;Dn();var e=Bn(-1);Dn(),t.EMPTY_1=new ci(e,Bn(0))}function pi(){return null==I&&new hi,I}function ci(t,e){pi(),yi.call(this,t,e,1)}function fi(){E=this}function li(){return null==E&&new fi,E}function yi(t,e,r){if(li(),0===r)throw hp("Step must be non-zero.");if(r===n_().MIN_VALUE_1)throw hp("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.first_1=t,this.last_1=Zi(t,e,r),this.step_1=r}function $i(t,e,r){this.finalElement_1=e;var n,i=this;n=r>0?vo(Fn(t),Fn(e))<=0:vo(Fn(t),Fn(e))>=0,i.hasNext_1=n;var o,_=this;o=Bn(r),_.step_1=o,this.next_1=this.hasNext_1?t:this.finalElement_1}function di(t){return t}function ki(t){return t}function gi(){C=this,this.MIN_VALUE_1=di(new Ou(0,0)),this.MAX_VALUE_1=di(new Ou(-1,-1)),this.SIZE_BYTES_1=8,this.SIZE_BITS_1=64}function mi(){return null==C&&new gi,C}function vi(t,e){return bo(ki(t),ki(e))}function wi(t,e){return vi(t.data_1,e instanceof Ii?e.data_1:Au())}function bi(t){return jo(ki(t))}function xi(t){return t.hashCode()}function ji(t,e){if(!(e instanceof Ii))return!1;var r=e instanceof Ii?e.data_1:Au();return!!t.equals(r)}function Ii(t){mi(),this.data_1=t}function Ei(t){return t}function Ci(t){return Ei(t).length}function Si(t){return new Ai(Ei(t))}function Ai(t){this.array_1=t,this.index_1=0}function qi(t,e){return(zh(new Ii(e))?new Ii(e):Au())instanceof Ii&&xt(Ei(t),ki(e))}function Ni(t,e){return e instanceof Ii&&qi(t.storage_1,e instanceof Ii?e.data_1:Au())}function Xi(t,e){var r;t:{var n=jh(e,ja)?e:Au();if(jh(n,ja)&&n.isEmpty_y1axqb_k$())r=!0;else{for(var i=n.iterator_jk1svi_k$();i.hasNext_bitz1p_k$();){var o=i.next_20eer_k$();if(!(o instanceof Ii&&xt(Ei(t),ki(o.data_1)))){r=!1;break t}}r=!0}}return r}function Ti(t,e){return Xi(t.storage_1,e)}function zi(t){return 0===Ei(t).length}function Pi(t){return"ULongArray(storage="+gu(t)+")"}function Oi(t){return mu(t)}function Mi(t,e){return e instanceof Ri&&!!wu(t,e instanceof Ri?e.storage_1:Au())}function Ri(t){this.storage_1=t}function Li(){S=this;var t=this;mi();var e=di(new Ou(-1,-1));mi(),t.EMPTY_1=new Fi(e,di(new Ou(0,0)))}function Bi(){return null==S&&new Li,S}function Fi(t,e){Bi(),Vi.call(this,t,e,new Ou(1,0))}function Ui(){A=this}function Di(){return null==A&&new Ui,A}function Vi(t,e,r){if(Di(),r.equals(new Ou(0,0)))throw hp("Step must be non-zero.");if(Pu(),r.equals(new Ou(0,-2147483648)))throw hp("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");this.first_1=t,this.last_1=Wi(t,e,r),this.step_1=r}function Yi(t,e,r){this.finalElement_1=e;var n,i=this;n=r.compareTo_n4fqi2_k$(new Ou(0,0))>0?bo(ki(t),ki(e))<=0:bo(ki(t),ki(e))>=0,i.hasNext_1=n;var o,_=this;o=di(r),_.step_1=o,this.next_1=this.hasNext_1?t:this.finalElement_1}function Zi(t,e,r){var n;if(r>0){var i;if(vo(Fn(t),Fn(e))>=0)i=e;else{var o=Gi(e,t,Bn(r));i=Bn(Fn(e)-Fn(o)|0)}n=i}else{if(!(r<0))throw hp("Step is zero.");var _;if(vo(Fn(t),Fn(e))<=0)_=e;else{var s=Gi(t,e,Bn(0|-r));_=Bn(Fn(e)+Fn(s)|0)}n=_}return n}function Wi(t,e,r){var n;if(r.compareTo_n4fqi2_k$(new Ou(0,0))>0){var i;if(bo(ki(t),ki(e))>=0)i=e;else{var o=Hi(e,t,di(r));i=di(ki(e).minus_llf5ei_k$(ki(o)))}n=i}else{if(!(r.compareTo_n4fqi2_k$(new Ou(0,0))<0))throw hp("Step is zero.");var _;if(bo(ki(t),ki(e))<=0)_=e;else{var s=Hi(t,e,di(r.unaryMinus_6uz0qp_k$()));_=di(ki(e).plus_u6jwas_k$(ki(s)))}n=_}return n}function Gi(t,e,r){var n,i,o=wo(t,r),_=wo(e,r);return vo(Fn(o),Fn(_))>=0?n=Bn(Fn(o)-Fn(_)|0):(i=Bn(Fn(o)-Fn(_)|0),n=Bn(Fn(i)+Fn(r)|0)),n}function Hi(t,e,r){var n,i,o=xo(t,r),_=xo(e,r);return bo(ki(o),ki(_))>=0?n=di(ki(o).minus_llf5ei_k$(ki(_))):(i=di(ki(o).minus_llf5ei_k$(ki(_))),n=di(ki(i).plus_u6jwas_k$(ki(r)))),n}function Ki(t){return t}function Qi(t){return t}function Ji(){q=this,this.MIN_VALUE_1=Ki(0),this.MAX_VALUE_1=Ki(-1),this.SIZE_BYTES_1=2,this.SIZE_BITS_1=16}function to(){return null==q&&new Ji,q}function eo(t,e){return fu(65535&Qi(t),65535&Qi(e))}function ro(t,e){return eo(t.data_1,e instanceof _o?e.data_1:Au())}function no(t){return(65535&Qi(t)).toString()}function io(t){return t}function oo(t,e){return e instanceof _o&&t===(e instanceof _o?e.data_1:Au())}function _o(t){to(),this.data_1=t}function so(t){return t}function ao(t){return so(t).length}function uo(t){return new ho(so(t))}function ho(t){this.array_1=t,this.index_1=0}function po(t,e){return(zh(new _o(e))?new _o(e):Au())instanceof _o&&mt(so(t),Qi(e))}function co(t,e){return e instanceof _o&&po(t.storage_1,e instanceof _o?e.data_1:Au())}function fo(t,e){var r;t:{var n=jh(e,ja)?e:Au();if(jh(n,ja)&&n.isEmpty_y1axqb_k$())r=!0;else{for(var i=n.iterator_jk1svi_k$();i.hasNext_bitz1p_k$();){var o=i.next_20eer_k$();if(!(o instanceof _o&&mt(so(t),Qi(o.data_1)))){r=!1;break t}}r=!0}}return r}function lo(t,e){return fo(t.storage_1,e)}function yo(t){return 0===so(t).length}function $o(t){return"UShortArray(storage="+gu(t)+")"}function ko(t){return mu(t)}function go(t,e){return e instanceof mo&&!!wu(t,e instanceof mo?e.storage_1:Au())}function mo(t){this.storage_1=t}function vo(t,e){return fu(t^n_().MIN_VALUE_1,e^n_().MIN_VALUE_1)}function wo(t,e){var r,n=mh(Fn(t)).and_jhajnj_k$(new Ou(-1,0));return r=mh(Fn(e)).and_jhajnj_k$(new Ou(-1,0)),Bn(n.rem_9rbcjo_k$(r).toInt_1tsl84_k$())}function bo(t,e){Pu();var r=t.xor_jjua9n_k$(new Ou(0,-2147483648));return Pu(),r.compareTo_n4fqi2_k$(e.xor_jjua9n_k$(new Ou(0,-2147483648)))}function xo(t,e){var r=ki(t),n=ki(e);if(n.compareTo_n4fqi2_k$(new Ou(0,0))<0)return bo(ki(t),ki(e))<0?t:di(ki(t).minus_llf5ei_k$(ki(e)));if(r.compareTo_n4fqi2_k$(new Ou(0,0))>=0)return di(r.rem_9rbcjo_k$(n));var i,o=r.ushr_rr8rvr_k$(1).div_9s1fi3_k$(n).shl_po5ip6_k$(1),_=r.minus_llf5ei_k$(o.times_2zfqpc_k$(n)),s=di(_),a=di(n);return i=bo(ki(s),ki(a))>=0?n:new Ou(0,0),di(_.minus_llf5ei_k$(i))}function jo(t){return Io(t,10)}function Io(t,e){if(t.compareTo_n4fqi2_k$(new Ou(0,0))>=0)return Hp(t,e);var r,n=t.ushr_rr8rvr_k$(1).div_9s1fi3_k$(mh(e)).shl_po5ip6_k$(1);r=n.times_2zfqpc_k$(mh(e));var i=t.minus_llf5ei_k$(r);return i.compareTo_n4fqi2_k$(mh(e))>=0&&(i=i.minus_llf5ei_k$(mh(e)),n=n.plus_u6jwas_k$(new Ou(1,0))),Hp(n,e)+Hp(i,e)}function Eo(){}function Co(){}function So(){}function Ao(){}function qo(){}function No(){}function Xo(){}function To(){}function zo(){}function Po(t){this.version_1=t}function Oo(t){this.names_1=t}function Mo(){}function Ro(t){this.name_1=t}function Lo(t,e,r){this.message_1=t,this.replaceWith_1=e,this.level_1=r}function Bo(t,e){this.expression_1=t,this.imports_1=e}function Fo(t,e,r){this.warningSince_1=t,this.errorSince_1=e,this.hiddenSince_1=r}function Uo(t,e){Oa.call(this,t,e)}function Do(){}function Vo(){}function Yo(){N=this}function Zo(){return null==N&&new Yo,N}function Wo(t){this.allowedTargets_1=t}function Go(t,e){Oa.call(this,t,e)}function Ho(){}function Ko(t){this.value_1=t}function Qo(t,e){Oa.call(this,t,e)}function Jo(){}function t_(){this.MIN_VALUE_1=-128,this.MAX_VALUE_1=127,this.SIZE_BYTES_1=1,this.SIZE_BITS_1=8}function e_(){this.MIN_VALUE_1=-32768,this.MAX_VALUE_1=32767,this.SIZE_BYTES_1=2,this.SIZE_BITS_1=16}function r_(){X=this,this.MIN_VALUE_1=-2147483648,this.MAX_VALUE_1=2147483647,this.SIZE_BYTES_1=4,this.SIZE_BITS_1=32}function n_(){return null==X&&new r_,X}function i_(){this.MIN_VALUE_1=14e-46,this.MAX_VALUE_1=34028235e31,this.POSITIVE_INFINITY_1=1/0,this.NEGATIVE_INFINITY_1=-1/0,this.NaN_1=NaN,this.SIZE_BYTES_1=4,this.SIZE_BITS_1=32}function o_(){T=this,this.MIN_VALUE_1=5e-324,this.MAX_VALUE_1=17976931348623157e292,this.POSITIVE_INFINITY_1=1/0,this.NEGATIVE_INFINITY_1=-1/0,this.NaN_1=NaN,this.SIZE_BYTES_1=8,this.SIZE_BITS_1=64}function __(){return null==T&&new o_,T}function s_(){}function a_(){}function u_(){}function h_(t){this.value_1=t}function p_(t){this.name_1=t}function c_(){}function f_(){}function l_(t){return void 0!==t.toArray?t.toArray():y_(t)}function y_(t){for(var e=[],r=t.iterator_jk1svi_k$();r.hasNext_bitz1p_k$();)e.push(r.next_20eer_k$());return e}function $_(t,e,r,n,i){Vt().checkRangeIndexes_5hjybp_k$(n,i,t.length);var o=i-n|0;if(Vt().checkRangeIndexes_5hjybp_k$(r,r+o|0,e.length),pt(e)&&pt(t)){var _=t.subarray(n,i);e.set(_,r)}else if(t!==e||r<=n){var s=0;if(sn_().MAX_VALUE_1?n_().MAX_VALUE_1:t0?-1:1;e=ru(Gp(t).plus_u6jwas_k$(mh(n)))}return e}function Y_(t){return!(t===t)}function Z_(t){var e;return __(),t===1/0?e=!0:(__(),e=t===-1/0),e}function W_(t){return!Z_(t)&&!Y_(t)}function G_(){return J_(),O}function H_(){return J_(),M}function K_(t,e){return J_(),t*G_()+e*H_()}function Q_(){return J_(),fr(Math.random()*Math.pow(2,32)|0)}function J_(){var t,e;R||(R=!0,t=Math.pow(2,-26),O=t,e=Math.pow(2,-53),M=e)}function ts(t){return(t instanceof ns?t:Au()).get_jClass_en9agn_k$()}function es(){}function rs(){}function ns(t){this.jClass_1=t}function is(t,e,r){ns.call(this,t),this.givenSimpleName_1=e,this.isInstanceFunction_1=r}function os(){L=this,ns.call(this,Object),this.simpleName_1="Nothing"}function _s(){return null==L&&new os,L}function ss(){}function as(t){ns.call(this,t);var e,r=this,n=t.$metadata$;e=null==n?null:n.simpleName,r.simpleName_1=e}function us(){}function hs(){}function ps(){}function cs(){}function fs(){}function ls(){}function ys(){}function $s(){}function ds(){}function ks(){}function gs(t,e,r){this.classifier_1=t,this.arguments_1=e,this.isMarkedNullable_1=r}function ms(){this.classifier_1=null,this.arguments_1=Wt(),this.isMarkedNullable_1=!1}function vs(t,e,r,n){this.name_1=t,this.upperBounds_1=e,this.variance_1=r,this.isReified_1=n}function ws(){return Vs(),B}function bs(t){return zh(t)}function xs(t){return Ph(t)}function js(t){return null!=t&&"boolean"===typeof t}function Is(t){return null!=t&&"number"===typeof t}function Es(t){return null!=t&&"number"===typeof t}function Cs(t){return null!=t&&"number"===typeof t}function Ss(t){return null!=t&&"number"===typeof t}function As(t){return null!=t&&"number"===typeof t}function qs(t){return null!=t&&Th(t)}function Ns(t){return null!=t&&"string"===typeof t}function Xs(t){return t instanceof Error}function Ts(t){return null!=t&&Mh(t)}function zs(t){return null!=t&&Bh(t)}function Ps(t){return null!=t&&Rh(t)}function Os(t){return null!=t&&Lh(t)}function Ms(t){return null!=t&&Fh(t)}function Rs(t){return null!=t&&Dh(t)}function Ls(t){return null!=t&&Uh(t)}function Bs(t){return null!=t&&Vh(t)}function Fs(t){return function(e){return"function"===typeof e&&e.length===t}}function Us(){F=this;var t=Object;this.anyClass_1=new is(t,"Any",bs);var e=Number;this.numberClass_1=new is(e,"Number",xs),this.nothingClass_1=_s();var r=Boolean;this.booleanClass_1=new is(r,"Boolean",js);var n=Number;this.byteClass_1=new is(n,"Byte",Is);var i=Number;this.shortClass_1=new is(i,"Short",Es);var o=Number;this.intClass_1=new is(o,"Int",Cs);var _=Number;this.floatClass_1=new is(_,"Float",Ss);var s=Number;this.doubleClass_1=new is(s,"Double",As);var a=Array;this.arrayClass_1=new is(a,"Array",qs);var u=String;this.stringClass_1=new is(u,"String",Ns);var h=Error;this.throwableClass_1=new is(h,"Throwable",Xs);var p=Array;this.booleanArrayClass_1=new is(p,"BooleanArray",Ts);var c=Uint16Array;this.charArrayClass_1=new is(c,"CharArray",zs);var f=Int8Array;this.byteArrayClass_1=new is(f,"ByteArray",Ps);var l=Int16Array;this.shortArrayClass_1=new is(l,"ShortArray",Os);var y=Int32Array;this.intArrayClass_1=new is(y,"IntArray",Ms);var $=Array;this.longArrayClass_1=new is($,"LongArray",Rs);var d=Float32Array;this.floatArrayClass_1=new is(d,"FloatArray",Ls);var k=Float64Array;this.doubleArrayClass_1=new is(k,"DoubleArray",Bs)}function Ds(){return null==F&&new Us,F}function Vs(){var t;U||(U=!0,t=Ba(Array(0),null),B=t)}function Ys(t){return Array.isArray(t)?Zs(t):Ws(t)}function Zs(t){var e;switch(t.length){case 1:e=Ws(t[0]);break;case 0:e=_s();break;default:e=new ss}return e}function Ws(t){if(t===String)return Ds().stringClass_1;var e,r=t.$metadata$;if(null!=r){var n;if(null==r.$kClass$){var i=new as(t);r.$kClass$=i,n=i}else n=r.$kClass$;e=n}else e=new as(t);return e}function Gs(){}function Hs(t){return Js.call(t,""),t}function Ks(){return Hs(Object.create(Js.prototype))}function Qs(t,e,r,n){if(e<0||e>n)throw Np("startIndex: "+e+", length: "+n);if(e>r)throw hp("startIndex("+e+") > endIndex("+r+")")}function Js(t){this.string_1=void 0!==t?t:""}function ta(t){var e=ga(t).toUpperCase();return e.length>1?t:su(e,0)}function ea(t){va();var e=ha(56320);return va(),t<=ha(57343)&&e<=t}function ra(t){va();var e=ha(55296);return va(),t<=ha(56319)&&e<=t}function na(t){if(!(2<=t&&t<=36))throw hp("radix "+t+" was not in valid range 2..36");return t}function ia(t,e,r){if(ua(),r){var n=t.length,i=e.length,o=Math.min(n,i);if(0===o)return n-i|0;var _=0;if(_$a(ha(65535))),n)throw hp("Invalid Char code: "+i);r=gh(i)}else r=t.get_a7b70_k$(e);return r}function au(t){return"string"===typeof t}function uu(t){return au(t)?t.length:t.get_length_g42xv3_k$()}function hu(t){return $t(t,", ","[","]",0,null,cu,24,null)}function pu(t,e){var r=t,n=e;if(r===n)return!0;if(null==r||null==n||!bh(n)||r.length!=n.length)return!1;var i=0,o=r.length;if(ie)r=1;else if(t===e){var n;if(0!==t)n=0;else{var i=1/t;n=i===1/e?0:i<0?-1:1}r=n}else r=t!==t?e!==e?0:1:-1;return r}function yu(t,e){return te?1:0}function $u(t,e){return t.compareTo_6thzaj_k$(e)}function du(t){return ku(t)}function ku(t){if(!Yp("kotlinHashCodeValue$",t)){var e=Zp(4294967296*Math.random(),0),r=new Object;r.value=e,r.enumerable=!1,Object.defineProperty(t,"kotlinHashCodeValue$",r)}return t.kotlinHashCodeValue$}function gu(t){return null==t?"null":bh(t)?"[...]":t.toString()}function mu(t){if(null==t)return 0;var e;switch(typeof t){case"object":e="function"===typeof t.hashCode?t.hashCode():ku(t);break;case"function":e=ku(t);break;case"number":e=iu(t);break;case"boolean":e=t?1:0;break;default:e=vu(String(t))}return e}function vu(t){var e=0,r=0,n=t.length-1|0;if(r<=n)do{var i=r;r=r+1|0;var o=t.charCodeAt(i);e=ut(e,31)+o|0}while(i!==n);return e}function wu(t,e){if(null==t)return null==e;if(null==e)return!1;if("object"===typeof t&&"function"===typeof t.equals)return t.equals(e);if(t!==t)return e!==e;if("number"===typeof t&&"number"===typeof e){var r;if(t===e)r=0!==t||1/t===1/e;else r=!1;return r}return t===e}function bu(t,e){null!=Error.captureStackTrace?Error.captureStackTrace(t,e):t.stack=(new Error).stack}function xu(t,e,r){Error.call(t),ju(t,e,r)}function ju(t,e,r){if(!Iu(t,"message")){var n;if(null==e){var i;if(null!==e){var o=null==r?null:r.toString();i=null==o?void 0:o}else i=void 0;n=i}else n=e;t.message=n}Iu(t,"cause")||(t.cause=r),t.name=Object.getPrototypeOf(t).constructor.name}function Iu(t,e){return Object.getPrototypeOf(t).hasOwnProperty(e)}function Eu(t){var e;return null==t?Cu():e=t,e}function Cu(){throw zp()}function Su(){throw Mp()}function Au(){throw Bp()}function qu(t){throw Dp("lateinit property "+t+" has not been initialized")}function Nu(){throw fp()}function Xu(){}function Tu(t){this.code_1=t}function zu(){J=this,this.MIN_VALUE_1=new Ou(0,-2147483648),this.MAX_VALUE_1=new Ou(-1,2147483647),this.SIZE_BYTES_1=8,this.SIZE_BITS_1=64}function Pu(){return null==J&&new zu,J}function Ou(t,e){Pu(),zo.call(this),this.low_1=t,this.high_1=e}function Mu(){return fh(),tt}function Ru(){return fh(),et}function Lu(){return fh(),rt}function Bu(){return fh(),nt}function Fu(){return fh(),it}function Uu(){return fh(),ot}function Du(t,e){if(fh(),th(t,e))return 0;var r=ih(t),n=ih(e);return r&&!n?-1:!r&&n?1:ih(Yu(t,e))?-1:1}function Vu(t,e){fh();var r=t.high_1>>>16|0,n=65535&t.high_1,i=t.low_1>>>16|0,o=65535&t.low_1,_=e.high_1>>>16|0,s=65535&e.high_1,a=e.low_1>>>16|0,u=0,h=0,p=0,c=0;return u=(u=u+((h=(h=h+((p=(p=p+((c=c+(o+(65535&e.low_1)|0)|0)>>>16|0)|0)+(i+a|0)|0)>>>16|0)|0)+(n+s|0)|0)>>>16|0)|0)+(r+_|0)|0,new Ou((p&=65535)<<16|(c&=65535),(u&=65535)<<16|(h&=65535))}function Yu(t,e){return fh(),Vu(t,e.unaryMinus_6uz0qp_k$())}function Zu(t,e){if(fh(),oh(t))return Mu();if(oh(e))return Mu();if(th(t,Fu()))return _h(e)?Fu():Mu();if(th(e,Fu()))return _h(t)?Fu():Mu();if(ih(t))return ih(e)?Zu(sh(t),sh(e)):sh(Zu(sh(t),e));if(ih(e))return sh(Zu(t,sh(e)));if(ah(t,Uu())&&ah(e,Uu()))return uh(Ju(t)*Ju(e));var r=t.high_1>>>16|0,n=65535&t.high_1,i=t.low_1>>>16|0,o=65535&t.low_1,_=e.high_1>>>16|0,s=65535&e.high_1,a=e.low_1>>>16|0,u=65535&e.low_1,h=0,p=0,c=0,f=0;return c=c+((f=f+ut(o,u)|0)>>>16|0)|0,f&=65535,p=(p=p+((c=c+ut(i,u)|0)>>>16|0)|0)+((c=(c&=65535)+ut(o,a)|0)>>>16|0)|0,c&=65535,h=(h=(h=h+((p=p+ut(n,u)|0)>>>16|0)|0)+((p=(p&=65535)+ut(i,a)|0)>>>16|0)|0)+((p=(p&=65535)+ut(o,s)|0)>>>16|0)|0,p&=65535,h=h+(((ut(r,u)+ut(n,a)|0)+ut(i,s)|0)+ut(o,_)|0)|0,new Ou(c<<16|f,(h&=65535)<<16|p)}function Wu(t,e){if(fh(),oh(e))throw op("division by zero");if(oh(t))return Mu();if(th(t,Fu())){if(th(e,Ru())||th(e,Lu()))return Fu();if(th(e,Fu()))return Ru();var r=Hu(Ku(t,1).div_9s1fi3_k$(e),1);return th(r,Mu())?ih(e)?Ru():Lu():Vu(r,Yu(t,Zu(e,r)).div_9s1fi3_k$(e))}if(th(e,Fu()))return Mu();if(ih(t))return ih(e)?sh(t).div_9s1fi3_k$(sh(e)):sh(sh(t).div_9s1fi3_k$(e));if(ih(e))return sh(t.div_9s1fi3_k$(sh(e)));for(var n=Mu(),i=t;ph(i,e);){for(var o=Ju(i)/Ju(e),_=Math.max(1,Math.floor(o)),s=Math.ceil(Math.log(_)/Math.LN2),a=s<=48?1:Math.pow(2,s-48),u=uh(_),h=Zu(u,e);ih(h)||hh(h,i);)h=Zu(u=uh(_-=a),e);oh(u)&&(u=Ru()),n=Vu(n,u),i=Yu(i,h)}return n}function Gu(t,e){return fh(),Yu(t,Zu(t.div_9s1fi3_k$(e),e))}function Hu(t,e){fh();var r=63&e;return 0===r?t:r<32?new Ou(t.low_1<>>(32-r|0)|0):new Ou(0,t.low_1<<(r-32|0))}function Ku(t,e){fh();var r=63&e;return 0===r?t:r<32?new Ou(t.low_1>>>r|0|t.high_1<<(32-r|0),t.high_1>>r):new Ou(t.high_1>>(r-32|0),t.high_1>=0?0:-1)}function Qu(t,e){fh();var r=63&e;return 0===r?t:r<32?new Ou(t.low_1>>>r|0|t.high_1<<(32-r|0),t.high_1>>>r|0):new Ou(32===r?t.high_1:t.high_1>>>(r-32|0)|0,0)}function Ju(t){return fh(),4294967296*t.high_1+ch(t)}function th(t,e){return fh(),t.high_1===e.high_1&&t.low_1===e.low_1}function eh(t){return fh(),t.low_1^t.high_1}function rh(t,e){if(fh(),e<2||36=0x8000000000000000)return Bu();if(t<0)return sh(uh(-t));var e=4294967296;return new Ou(Zp(t%e,0),Zp(t/e,0))}function hh(t,e){return fh(),Du(t,e)>0}function ph(t,e){return fh(),Du(t,e)>=0}function ch(t){return fh(),t.low_1>=0?t.low_1:4294967296+t.low_1}function fh(){_t||(_t=!0,tt=nh(0),et=nh(1),rt=nh(-1),nt=new Ou(-1,2147483647),it=new Ou(0,-2147483648),ot=nh(16777216))}function lh(t){return t<<24>>24}function yh(t){return t instanceof Ou?t.toInt_1tsl84_k$():$h(t)}function $h(t){return t>2147483647?2147483647:t<-2147483648?-2147483648:Zp(t,0)}function dh(t){return t<<16>>16}function kh(t){return t instanceof Ou?t:uh(t)}function gh(t){return ca(Ki(dh(yh(t))))}function mh(t){return nh(t)}function vh(t,e,r,n,i,o){return wh("class",t,e,r,n,i,o)}function wh(t,e,r,n,i,o,_){return{kind:t,simpleName:e,interfaceId:"interface"===t?-1:void 0,interfaces:r||[],associatedObjectKey:n,associatedObjects:i,suspendArity:o,fastPrototype:_,$kClass$:void 0,interfacesCache:{isComplete:void 0===_&&(void 0===r||0===r.length),implementInterfaceMemo:{}}}}function bh(t){return!!xh(t)||pt(t)}function xh(t){return Array.isArray(t)}function jh(t,e){var r=t.constructor;return null!=r&&Ih(r,e)}function Ih(t,e){if(t===e)return!0;var r=t.$metadata$;null!=r&&null==r.interfacesCache&&(r.interfacesCache=Eh());var n,i=null==r?null:r.interfacesCache;if(null!=i){i.isComplete||Ch(t);var o=e.$metadata$,_=null==o?null:o.interfaceId;if(null==_)return!1;var s=_;n=!!i.implementInterfaceMemo[s]}else{var a=Sh(t),u=null==a?null:a.constructor;if(null==u)return!1;n=Ih(u,e)}return n}function Eh(){return{isComplete:!1,implementInterfaceMemo:{}}}function Ch(t){var e=t.$metadata$;null!=e&&null==e.interfacesCache&&(e.interfacesCache=Eh());var r=null==e?null:e.interfacesCache;if(null!=r){if(!0===r.isComplete)return r;for(var n=e.interfaces,i=0,o=n.length;i0},Ut.prototype.nextIndex_jshxun_k$=function(){return this.index_1},Ut.prototype.previous_l2dfd5_k$=function(){if(!this.hasPrevious_qh0629_k$())throw kp();var t=this;return t.index_1=t.index_1-1|0,this.$this_2.get_fkrdnv_k$(t.index_1)},Ut.prototype.previousIndex_4qtyw5_k$=function(){return this.index_1-1|0},Ut.$metadata$=vh("ListIteratorImpl",[To],void 0,void 0,void 0,Ft.prototype),Dt.prototype.checkElementIndex_ux0wz1_k$=function(t,e){if(t<0||t>=e)throw Np("index: "+t+", size: "+e)},Dt.prototype.checkPositionIndex_kxpgsw_k$=function(t,e){if(t<0||t>e)throw Np("index: "+t+", size: "+e)},Dt.prototype.checkRangeIndexes_5hjybp_k$=function(t,e,r){if(t<0||e>r)throw Np("fromIndex: "+t+", toIndex: "+e+", size: "+r);if(t>e)throw hp("fromIndex: "+t+" > toIndex: "+e)},Dt.prototype.checkBoundsIndexes_7787d9_k$=function(t,e,r){if(t<0||e>r)throw Np("startIndex: "+t+", endIndex: "+e+", size: "+r);if(t>e)throw hp("startIndex: "+t+" > endIndex: "+e)},Dt.prototype.orderedHashCode_2n0xp_k$=function(t){for(var e=1,r=t.iterator_jk1svi_k$();r.hasNext_bitz1p_k$();){var n=r.next_20eer_k$(),i=ut(31,e),o=null==n?null:mu(n);e=i+(null==o?0:o)|0}return e},Dt.prototype.orderedEquals_40uhas_k$=function(t,e){if(t.get_size_woubt6_k$()!==e.get_size_woubt6_k$())return!1;for(var r=e.iterator_jk1svi_k$(),n=t.iterator_jk1svi_k$();n.hasNext_bitz1p_k$();)if(!wu(n.next_20eer_k$(),r.next_20eer_k$()))return!1;return!0},Dt.$metadata$=Zh("Companion"),Yt.prototype.iterator_jk1svi_k$=function(){return new Ft(this)},Yt.prototype.indexOf_dcv8dt_k$=function(t){var e;t:{for(var r=0,n=this.iterator_jk1svi_k$();n.hasNext_bitz1p_k$();){if(wu(n.next_20eer_k$(),t)){e=r;break t}r=r+1|0}e=-1}return e},Yt.prototype.lastIndexOf_rzx8t5_k$=function(t){var e;t:{for(var r=this.listIterator_5hanv9_k$(this.get_size_woubt6_k$());r.hasPrevious_qh0629_k$();)if(wu(r.previous_l2dfd5_k$(),t)){e=r.nextIndex_jshxun_k$();break t}e=-1}return e},Yt.prototype.listIterator_xjshxw_k$=function(){return new Ut(this,0)},Yt.prototype.listIterator_5hanv9_k$=function(t){return new Ut(this,t)},Yt.prototype.subList_d153ha_k$=function(t,e){return new Bt(this,t,e)},Yt.prototype.equals=function(t){return t===this||!(null==t||!jh(t,Ia))&&Vt().orderedEquals_40uhas_k$(this,t)},Yt.prototype.hashCode=function(){return Vt().orderedHashCode_2n0xp_k$(this)},Yt.$metadata$=vh("AbstractList",[Ia],void 0,void 0,void 0,Lt.prototype),Gt.prototype.equals=function(t){return!(null==t||!jh(t,Ia))&&t.isEmpty_y1axqb_k$()},Gt.prototype.hashCode=function(){return 1},Gt.prototype.toString=function(){return"[]"},Gt.prototype.get_size_woubt6_k$=function(){return 0},Gt.prototype.isEmpty_y1axqb_k$=function(){return!0},Gt.prototype.contains_a7ux40_k$=function(t){return!1},Gt.prototype.contains_2ehdt1_k$=function(t){return!1},Gt.prototype.containsAll_4bfz49_k$=function(t){return t.isEmpty_y1axqb_k$()},Gt.prototype.containsAll_jr3fla_k$=function(t){return this.containsAll_4bfz49_k$(t)},Gt.prototype.get_fkrdnv_k$=function(t){throw Np("Empty list doesn't contain element at index "+t+".")},Gt.prototype.indexOf_31ms1i_k$=function(t){return-1},Gt.prototype.indexOf_dcv8dt_k$=function(t){return-1},Gt.prototype.lastIndexOf_5pkqqc_k$=function(t){return-1},Gt.prototype.lastIndexOf_rzx8t5_k$=function(t){return-1},Gt.prototype.iterator_jk1svi_k$=function(){return Qt()},Gt.prototype.listIterator_xjshxw_k$=function(){return Qt()},Gt.prototype.listIterator_5hanv9_k$=function(t){if(0!==t)throw Np("Index: "+t);return Qt()},Gt.prototype.subList_d153ha_k$=function(t,e){if(0===t&&0===e)return this;throw Np("fromIndex: "+t+", toIndex: "+e)},Gt.$metadata$=Zh("EmptyList",[Ia,F_,N_]),Kt.prototype.hasNext_bitz1p_k$=function(){return!1},Kt.prototype.hasPrevious_qh0629_k$=function(){return!1},Kt.prototype.nextIndex_jshxun_k$=function(){return 0},Kt.prototype.previousIndex_4qtyw5_k$=function(){return-1},Kt.prototype.next_20eer_k$=function(){throw kp()},Kt.prototype.previous_l2dfd5_k$=function(){throw kp()},Kt.$metadata$=Zh("EmptyIterator",[To]),ne.prototype.next_20eer_k$=function(){return this.nextInt_ujorgc_k$()},ne.$metadata$=vh("IntIterator",[qo]),ie.prototype.next_20eer_k$=function(){return this.nextByte_njqopn_k$()},ie.$metadata$=vh("ByteIterator",[qo]),oe.prototype.next_20eer_k$=function(){return this.nextDouble_s2xvfg_k$()},oe.$metadata$=vh("DoubleIterator",[qo]),_e.prototype.next_20eer_k$=function(){return this.nextFloat_jqti5l_k$()},_e.$metadata$=vh("FloatIterator",[qo]),se.prototype.next_31h2mk_k$=function(){return this.nextChar_yv3rl6_k$()},se.prototype.next_20eer_k$=function(){return new wa(this.next_31h2mk_k$())},se.$metadata$=vh("CharIterator",[qo]),ae.prototype.next_20eer_k$=function(){return this.nextLong_njwv0v_k$()},ae.$metadata$=vh("LongIterator",[qo]),ue.prototype.next_20eer_k$=function(){return this.nextShort_jxwabt_k$()},ue.$metadata$=vh("ShortIterator",[qo]),he.prototype.next_20eer_k$=function(){return this.nextBoolean_nfdk1h_k$()},he.$metadata$=vh("BooleanIterator",[qo]),pe.$metadata$=Yh("Sequence"),ce.$metadata$=Yh("ContractBuilder"),fe.$metadata$=vh("InvocationKind",void 0,void 0,void 0,void 0,Oa.prototype),le.prototype.equals=function(t){return t instanceof le&&(t instanceof le||Au(),!0)},le.prototype.hashCode=function(){return 0},le.prototype.toString=function(){return"@kotlin.contracts.ExperimentalContracts()"},le.$metadata$=vh("ExperimentalContracts",[Co]),ye.$metadata$=Yh("CallsInPlace",[ke]),$e.$metadata$=Yh("Returns",[ge]),de.$metadata$=Yh("ReturnsNotNull",[ge]),ke.$metadata$=Yh("Effect"),ge.$metadata$=Yh("SimpleEffect",[ke]),me.$metadata$=Yh("ConditionalEffect",[ke]),ve.$metadata$=Yh("Continuation"),we.prototype.get_context_h02k06_k$=function(){return this.$context_1},we.prototype.resumeWith_s3a3yh_k$=function(t){return this.$resumeWith_1(new cn(t))},we.$metadata$=vh(void 0,[ve]),be.$metadata$=Zh("Key",[Ie]),je.$metadata$=Yh("ContinuationInterceptor",[Ee]),Ie.$metadata$=Yh("Key"),Ee.$metadata$=Yh("Element",[Se]),Se.$metadata$=Yh("CoroutineContext"),Ae.prototype.get_1pi7hg_k$=function(t){return null},Ae.prototype.fold_6dbyow_k$=function(t,e){return t},Ae.prototype.plus_rgw9wi_k$=function(t){return t},Ae.prototype.minusKey_y21q55_k$=function(t){return this},Ae.prototype.hashCode=function(){return 0},Ae.prototype.toString=function(){return"EmptyCoroutineContext"},Ae.$metadata$=Zh("EmptyCoroutineContext",[Se,F_]),Ne.$metadata$=Zh("Companion"),Oe.prototype.get_elements_vxwh8g_k$=function(){return this.elements_1},Oe.$metadata$=vh("Serialized",[F_]),Re.prototype.get_1pi7hg_k$=function(t){for(var e=this;;){var r=e.element_1.get_1pi7hg_k$(t);if(null!=r)return r;var n=e.left_1;if(!(n instanceof Re))return n.get_1pi7hg_k$(t);e=n}},Re.prototype.fold_6dbyow_k$=function(t,e){return e(this.left_1.fold_6dbyow_k$(t,e),this.element_1)},Re.prototype.minusKey_y21q55_k$=function(t){if(null!=this.element_1.get_1pi7hg_k$(t))return this.left_1;var e=this.left_1.minusKey_y21q55_k$(t);return e===this.left_1?this:e===qe()?this.element_1:new Re(e,this.element_1)},Re.prototype.equals=function(t){return this===t||!!(t instanceof Re&&Te(t)===Te(this))&&Pe(t,this)},Re.prototype.hashCode=function(){return mu(this.left_1)+mu(this.element_1)|0},Re.prototype.toString=function(){return"["+this.fold_6dbyow_k$("",Me)+"]"},Re.$metadata$=vh("CombinedContext",[Se,F_]),Le.prototype.tryCast_hqzvw1_k$=function(t){return this.safeCast_1(t)},Le.prototype.isSubKey_5an70z_k$=function(t){return t===this||this.topmostKey_1===t},Le.$metadata$=vh("AbstractCoroutineContextKey",[Ie]),Ue.$metadata$=vh("CoroutineSingletons",void 0,void 0,void 0,void 0,Oa.prototype),Ve.prototype.equals=function(t){return t instanceof Ve&&(t instanceof Ve||Au(),!0)},Ve.prototype.hashCode=function(){return 0},Ve.prototype.toString=function(){return"@kotlin.experimental.ExperimentalTypeInference()"},Ve.$metadata$=vh("ExperimentalTypeInference",[Co]),Ye.prototype.equals=function(t){return t instanceof Ye&&(t instanceof Ye||Au(),!0)},Ye.prototype.hashCode=function(){return 0},Ye.prototype.toString=function(){return"@kotlin.internal.InlineOnly()"},Ye.$metadata$=vh("InlineOnly",[Co]),Ze.prototype.equals=function(t){return t instanceof Ze&&(t instanceof Ze||Au(),!0)},Ze.prototype.hashCode=function(){return 0},Ze.prototype.toString=function(){return"@kotlin.internal.LowPriorityInOverloadResolution()"},Ze.$metadata$=vh("LowPriorityInOverloadResolution",[Co]),We.prototype.equals=function(t){return t instanceof We&&(t instanceof We||Au(),!0)},We.prototype.hashCode=function(){return 0},We.prototype.toString=function(){return"@kotlin.internal.NoInfer()"},We.$metadata$=vh("NoInfer",[Co]),Ge.prototype.equals=function(t){return t instanceof Ge&&(t instanceof Ge||Au(),!0)},Ge.prototype.hashCode=function(){return 0},Ge.prototype.toString=function(){return"@kotlin.internal.DynamicExtension()"},Ge.$metadata$=vh("DynamicExtension",[Co]),He.prototype.equals=function(t){return t instanceof He&&(t instanceof He||Au(),!0)},He.prototype.hashCode=function(){return 0},He.prototype.toString=function(){return"@kotlin.internal.ContractsDsl()"},He.$metadata$=vh("ContractsDsl",[Co]),Ke.prototype.equals=function(t){return t instanceof Ke&&(t instanceof Ke||Au(),!0)},Ke.prototype.hashCode=function(){return 0},Ke.prototype.toString=function(){return"@kotlin.internal.OnlyInputTypes()"},Ke.$metadata$=vh("OnlyInputTypes",[Co]),ir.$metadata$=Zh("Serialized",[F_]),or.prototype.nextBits_30zi6g_k$=function(t){return this.defaultRandom_1.nextBits_30zi6g_k$(t)},or.prototype.nextInt_ujorgc_k$=function(){return this.defaultRandom_1.nextInt_ujorgc_k$()},or.prototype.nextInt_8t3gcb_k$=function(t){return this.defaultRandom_1.nextInt_8t3gcb_k$(t)},or.prototype.nextInt_6ppfmk_k$=function(t,e){return this.defaultRandom_1.nextInt_6ppfmk_k$(t,e)},or.prototype.nextLong_njwv0v_k$=function(){return this.defaultRandom_1.nextLong_njwv0v_k$()},or.prototype.nextLong_gpvfev_k$=function(t){return this.defaultRandom_1.nextLong_gpvfev_k$(t)},or.prototype.nextLong_8yy44j_k$=function(t,e){return this.defaultRandom_1.nextLong_8yy44j_k$(t,e)},or.prototype.nextBoolean_nfdk1h_k$=function(){return this.defaultRandom_1.nextBoolean_nfdk1h_k$()},or.prototype.nextDouble_s2xvfg_k$=function(){return this.defaultRandom_1.nextDouble_s2xvfg_k$()},or.prototype.nextDouble_b5661v_k$=function(t){return this.defaultRandom_1.nextDouble_b5661v_k$(t)},or.prototype.nextDouble_2cs2ou_k$=function(t,e){return this.defaultRandom_1.nextDouble_2cs2ou_k$(t,e)},or.prototype.nextFloat_jqti5l_k$=function(){return this.defaultRandom_1.nextFloat_jqti5l_k$()},or.prototype.nextBytes_7yvat1_k$=function(t){return this.defaultRandom_1.nextBytes_7yvat1_k$(t)},or.prototype.nextBytes_oxmcdz_k$=function(t){return this.defaultRandom_1.nextBytes_oxmcdz_k$(t)},or.prototype.nextBytes_zhahm3_k$=function(t,e,r){return this.defaultRandom_1.nextBytes_zhahm3_k$(t,e,r)},or.$metadata$=Zh("Default",[F_],void 0,void 0,void 0,sr.prototype),sr.prototype.nextInt_ujorgc_k$=function(){return this.nextBits_30zi6g_k$(32)},sr.prototype.nextInt_8t3gcb_k$=function(t){return this.nextInt_6ppfmk_k$(0,t)},sr.prototype.nextInt_6ppfmk_k$=function(t,e){ar(t,e);var r=e-t|0;if(r>0||r===n_().MIN_VALUE_1){var n;if((r&(0|-r))===r){var i=ur(r);n=this.nextBits_30zi6g_k$(i)}else{var o;do{var _=this.nextInt_ujorgc_k$()>>>1|0;o=_%r|0}while(((_-o|0)+(r-1|0)|0)<0);n=o}return t+n|0}for(;;){var s=this.nextInt_ujorgc_k$();if(t<=s&&s0){var n;if(r.and_jhajnj_k$(r.unaryMinus_6uz0qp_k$()).equals(r)){var i,o=r.toInt_1tsl84_k$(),_=r.ushr_rr8rvr_k$(32).toInt_1tsl84_k$();if(0!==o){var s=ur(o);i=mh(this.nextBits_30zi6g_k$(s)).and_jhajnj_k$(new Ou(-1,0))}else if(1===_)i=mh(this.nextInt_ujorgc_k$()).and_jhajnj_k$(new Ou(-1,0));else{var a=ur(_);i=mh(this.nextBits_30zi6g_k$(a)).shl_po5ip6_k$(32).plus_u6jwas_k$(mh(this.nextInt_ujorgc_k$()).and_jhajnj_k$(new Ou(-1,0)))}n=i}else{var u;do{var h=this.nextLong_njwv0v_k$().ushr_rr8rvr_k$(1);u=h.rem_9rbcjo_k$(r);var p,c=h.minus_llf5ei_k$(u);p=r.minus_llf5ei_k$(new Ou(1,0))}while(c.plus_u6jwas_k$(p).compareTo_n4fqi2_k$(new Ou(0,0))<0);n=u}return t.plus_u6jwas_k$(n)}for(;;){var f=this.nextLong_njwv0v_k$();if(t.compareTo_n4fqi2_k$(f)<=0&&f.compareTo_n4fqi2_k$(e)<0)return f}},sr.prototype.nextBoolean_nfdk1h_k$=function(){return!(0===this.nextBits_30zi6g_k$(1))},sr.prototype.nextDouble_s2xvfg_k$=function(){return K_(this.nextBits_30zi6g_k$(26),this.nextBits_30zi6g_k$(27))},sr.prototype.nextDouble_b5661v_k$=function(t){return this.nextDouble_2cs2ou_k$(0,t)},sr.prototype.nextDouble_2cs2ou_k$=function(t,e){pr(t,e);var r,n=e-t;if(Z_(n)&&W_(t)&&W_(e)){var i=this.nextDouble_s2xvfg_k$()*(e/2-t/2);r=t+i+i}else r=t+this.nextDouble_s2xvfg_k$()*n;var o=r;return o>=e?V_(e):o},sr.prototype.nextFloat_jqti5l_k$=function(){return this.nextBits_30zi6g_k$(24)/16777216},sr.prototype.nextBytes_zhahm3_k$=function(t,e,r){if(!(0<=e&&e<=t.length&&0<=r&&r<=t.length))throw hp(gu("fromIndex ("+e+") or toIndex ("+r+") are out of range: 0.."+t.length+"."));if(!(e<=r))throw hp(gu("fromIndex ("+e+") must be not greater than toIndex ("+r+")."));var n=(r-e|0)/4|0,i=e,o=0;if(o>>8|0),t[i+2|0]=lh(_>>>16|0),t[i+3|0]=lh(_>>>24|0),i=i+4|0}while(o>>ut(h,8)|0)}while(u>>2|0,this.x_1=this.y_1,this.y_1=this.z_1,this.z_1=this.w_1;var e=this.v_1;this.w_1=e,t=t^t<<1^e^e<<4,this.v_1=t;var r=this;return r.addend_1=r.addend_1+362437|0,t+this.addend_1|0},gr.prototype.nextBits_30zi6g_k$=function(t){return lr(this.nextInt_ujorgc_k$(),t)},gr.$metadata$=vh("XorWowRandom",[F_],void 0,void 0,void 0,sr.prototype),mr.prototype.get_EMPTY_i8q41w_k$=function(){return this.EMPTY_1},mr.$metadata$=Zh("Companion"),wr.prototype.get_start_iypx6h_k$=function(){return this.first_1},wr.prototype.get_endInclusive_r07xpi_k$=function(){return this.last_1},wr.prototype.get_endExclusive_pmwm6k_k$=function(){if(this.last_1===n_().MAX_VALUE_1)throw yp("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.");return this.last_1+1|0},wr.prototype.contains_1pg60y_k$=function(t){return this.first_1<=t&&t<=this.last_1},wr.prototype.contains_2ehdtg_k$=function(t){return this.contains_1pg60y_k$("number"===typeof t?t:Au())},wr.prototype.isEmpty_y1axqb_k$=function(){return this.first_1>this.last_1},wr.prototype.equals=function(t){return t instanceof wr&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||this.first_1===t.first_1&&this.last_1===t.last_1)},wr.prototype.hashCode=function(){return this.isEmpty_y1axqb_k$()?-1:ut(31,this.first_1)+this.last_1|0},wr.prototype.toString=function(){return this.first_1+".."+this.last_1},wr.$metadata$=vh("IntRange",[Br,Fr],void 0,void 0,void 0,Tr.prototype),br.prototype.get_EMPTY_i8q41w_k$=function(){return this.EMPTY_1},br.$metadata$=Zh("Companion"),jr.prototype.get_start_qj1pkq_k$=function(){return this.first_1},jr.prototype.get_start_iypx6h_k$=function(){return new wa(this.get_start_qj1pkq_k$())},jr.prototype.get_endInclusive_oogq1x_k$=function(){return this.last_1},jr.prototype.get_endInclusive_r07xpi_k$=function(){return new wa(this.get_endInclusive_oogq1x_k$())},jr.prototype.get_endExclusive_umcki5_k$=function(){var t=new wa(this.last_1);if(va(),wu(t,new wa(ha(65535))))throw yp("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.");return ya(this.last_1,1)},jr.prototype.get_endExclusive_pmwm6k_k$=function(){return new wa(this.get_endExclusive_umcki5_k$())},jr.prototype.contains_i4atwd_k$=function(t){return fa(this.first_1,t)<=0&&fa(t,this.last_1)<=0},jr.prototype.contains_2ehdtg_k$=function(t){return this.contains_i4atwd_k$(t instanceof wa?t.value_1:Au())},jr.prototype.isEmpty_y1axqb_k$=function(){return fa(this.first_1,this.last_1)>0},jr.prototype.equals=function(t){return t instanceof jr&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||!!wu(new wa(this.first_1),new wa(t.first_1))&&wu(new wa(this.last_1),new wa(t.last_1)))},jr.prototype.hashCode=function(){var t,e;return this.isEmpty_y1axqb_k$()?t=-1:(e=$a(this.first_1),t=ut(31,e)+$a(this.last_1)|0),t},jr.prototype.toString=function(){return new wa(this.first_1)+".."+new wa(this.last_1)},jr.$metadata$=vh("CharRange",[Br,Fr],void 0,void 0,void 0,Or.prototype),Ir.prototype.get_EMPTY_i8q41w_k$=function(){return this.EMPTY_1},Ir.$metadata$=Zh("Companion"),Cr.prototype.get_start_iypx6h_k$=function(){return this.first_1},Cr.prototype.get_endInclusive_r07xpi_k$=function(){return this.last_1},Cr.prototype.get_endExclusive_pmwm6k_k$=function(){if(Pu(),this.last_1.equals(new Ou(-1,2147483647)))throw yp("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.");return this.last_1.plus_u6jwas_k$(new Ou(1,0))},Cr.prototype.contains_i44xiv_k$=function(t){return this.first_1.compareTo_n4fqi2_k$(t)<=0&&t.compareTo_n4fqi2_k$(this.last_1)<=0},Cr.prototype.contains_2ehdtg_k$=function(t){return this.contains_i44xiv_k$(t instanceof Ou?t:Au())},Cr.prototype.isEmpty_y1axqb_k$=function(){return this.first_1.compareTo_n4fqi2_k$(this.last_1)>0},Cr.prototype.equals=function(t){return t instanceof Cr&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||!!this.first_1.equals(t.first_1)&&this.last_1.equals(t.last_1))},Cr.prototype.hashCode=function(){return this.isEmpty_y1axqb_k$()?-1:kh(31).times_2zfqpc_k$(this.first_1.xor_jjua9n_k$(this.first_1.ushr_rr8rvr_k$(32))).plus_u6jwas_k$(this.last_1.xor_jjua9n_k$(this.last_1.ushr_rr8rvr_k$(32))).toInt_1tsl84_k$()},Cr.prototype.toString=function(){return gu(this.first_1)+".."+gu(this.last_1)},Cr.$metadata$=vh("LongRange",[Br,Fr],void 0,void 0,void 0,Lr.prototype),Sr.prototype.get_step_woujh1_k$=function(){return this.step_1},Sr.prototype.hasNext_bitz1p_k$=function(){return this.hasNext_1},Sr.prototype.nextInt_ujorgc_k$=function(){var t=this.next_1;if(t===this.finalElement_1){if(!this.hasNext_1)throw kp();this.hasNext_1=!1}else{var e=this;e.next_1=e.next_1+this.step_1|0}return t},Sr.$metadata$=vh("IntProgressionIterator",void 0,void 0,void 0,void 0,ne.prototype),Ar.prototype.get_step_woujh1_k$=function(){return this.step_1},Ar.prototype.hasNext_bitz1p_k$=function(){return this.hasNext_1},Ar.prototype.nextChar_yv3rl6_k$=function(){var t=this.next_1;if(t===this.finalElement_1){if(!this.hasNext_1)throw kp();this.hasNext_1=!1}else{var e=this;e.next_1=e.next_1+this.step_1|0}return gh(t)},Ar.$metadata$=vh("CharProgressionIterator",void 0,void 0,void 0,void 0,se.prototype),qr.prototype.get_step_woujh1_k$=function(){return this.step_1},qr.prototype.hasNext_bitz1p_k$=function(){return this.hasNext_1},qr.prototype.nextLong_njwv0v_k$=function(){var t=this.next_1;if(t.equals(this.finalElement_1)){if(!this.hasNext_1)throw kp();this.hasNext_1=!1}else{var e=this;e.next_1=e.next_1.plus_u6jwas_k$(this.step_1)}return t},qr.$metadata$=vh("LongProgressionIterator",void 0,void 0,void 0,void 0,ae.prototype),Nr.prototype.fromClosedRange_vhxzyy_k$=function(t,e,r){return new Tr(t,e,r)},Nr.$metadata$=Zh("Companion"),Tr.prototype.get_first_irdx8n_k$=function(){return this.first_1},Tr.prototype.get_last_wopotb_k$=function(){return this.last_1},Tr.prototype.get_step_woujh1_k$=function(){return this.step_1},Tr.prototype.iterator_jk1svi_k$=function(){return new Sr(this.first_1,this.last_1,this.step_1)},Tr.prototype.isEmpty_y1axqb_k$=function(){return this.step_1>0?this.first_1>this.last_1:this.first_10?this.first_1+".."+this.last_1+" step "+this.step_1:this.first_1+" downTo "+this.last_1+" step "+(0|-this.step_1)},Tr.$metadata$=vh("IntProgression",[ba]),zr.prototype.fromClosedRange_kxji4u_k$=function(t,e,r){return new Or(t,e,r)},zr.$metadata$=Zh("Companion"),Or.prototype.get_first_en5qmg_k$=function(){return this.first_1},Or.prototype.get_last_rp1s9s_k$=function(){return this.last_1},Or.prototype.get_step_woujh1_k$=function(){return this.step_1},Or.prototype.iterator_jk1svi_k$=function(){return new Ar(this.first_1,this.last_1,this.step_1)},Or.prototype.isEmpty_y1axqb_k$=function(){return this.step_1>0?fa(this.first_1,this.last_1)>0:fa(this.first_1,this.last_1)<0},Or.prototype.equals=function(t){return t instanceof Or&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||!(!wu(new wa(this.first_1),new wa(t.first_1))||!wu(new wa(this.last_1),new wa(t.last_1)))&&this.step_1===t.step_1)},Or.prototype.hashCode=function(){var t;if(this.isEmpty_y1axqb_k$())t=-1;else{var e;e=$a(this.first_1);var r,n=ut(31,e);r=$a(this.last_1),t=ut(31,n+r|0)+this.step_1|0}return t},Or.prototype.toString=function(){return this.step_1>0?new wa(this.first_1)+".."+new wa(this.last_1)+" step "+this.step_1:new wa(this.first_1)+" downTo "+new wa(this.last_1)+" step "+(0|-this.step_1)},Or.$metadata$=vh("CharProgression",[ba]),Mr.prototype.fromClosedRange_5n0x23_k$=function(t,e,r){return new Lr(t,e,r)},Mr.$metadata$=Zh("Companion"),Lr.prototype.get_first_irdx8n_k$=function(){return this.first_1},Lr.prototype.get_last_wopotb_k$=function(){return this.last_1},Lr.prototype.get_step_woujh1_k$=function(){return this.step_1},Lr.prototype.iterator_jk1svi_k$=function(){return new qr(this.first_1,this.last_1,this.step_1)},Lr.prototype.isEmpty_y1axqb_k$=function(){return this.step_1.compareTo_n4fqi2_k$(new Ou(0,0))>0?this.first_1.compareTo_n4fqi2_k$(this.last_1)>0:this.first_1.compareTo_n4fqi2_k$(this.last_1)<0},Lr.prototype.equals=function(t){return t instanceof Lr&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||!(!this.first_1.equals(t.first_1)||!this.last_1.equals(t.last_1))&&this.step_1.equals(t.step_1))},Lr.prototype.hashCode=function(){return this.isEmpty_y1axqb_k$()?-1:kh(31).times_2zfqpc_k$(kh(31).times_2zfqpc_k$(this.first_1.xor_jjua9n_k$(this.first_1.ushr_rr8rvr_k$(32))).plus_u6jwas_k$(this.last_1.xor_jjua9n_k$(this.last_1.ushr_rr8rvr_k$(32)))).plus_u6jwas_k$(this.step_1.xor_jjua9n_k$(this.step_1.ushr_rr8rvr_k$(32))).toInt_1tsl84_k$()},Lr.prototype.toString=function(){return this.step_1.compareTo_n4fqi2_k$(new Ou(0,0))>0?gu(this.first_1)+".."+gu(this.last_1)+" step "+gu(this.step_1):gu(this.first_1)+" downTo "+gu(this.last_1)+" step "+gu(this.step_1.unaryMinus_6uz0qp_k$())},Lr.$metadata$=vh("LongProgression",[ba]),Br.$metadata$=Yh("ClosedRange"),Fr.$metadata$=Yh("OpenEndRange"),Ur.$metadata$=Yh("KClassifier"),Dr.$metadata$=Yh("KTypeParameter",[Ur]),Vr.prototype.get_star_woujdn_k$=function(){return this.star_1},Vr.prototype.get_STAR_wo9fa3_k$=function(){return this.star_1},Vr.prototype.invariant_d1std2_k$=function(t){return new Zr(Hr(),t)},Vr.prototype.contravariant_lnygde_k$=function(t){return new Zr(Kr(),t)},Vr.prototype.covariant_ne14kt_k$=function(t){return new Zr(Qr(),t)},Vr.$metadata$=Zh("Companion"),Zr.prototype.get_variance_ik7ku2_k$=function(){return this.variance_1},Zr.prototype.get_type_wovaf7_k$=function(){return this.type_1},Zr.prototype.toString=function(){var t,e=this.variance_1;switch(null==e?-1:e.ordinal_1){case-1:t="*";break;case 0:t=Ma(this.type_1);break;case 1:t="in "+this.type_1;break;case 2:t="out "+this.type_1;break;default:Su()}return t},Zr.prototype.component1_7eebsc_k$=function(){return this.variance_1},Zr.prototype.component2_7eebsb_k$=function(){return this.type_1},Zr.prototype.copy_luz5xs_k$=function(t,e){return new Zr(t,e)},Zr.prototype.copy$default_yujqmj_k$=function(t,e,r,n){return 0!==(1&r)&&(t=this.variance_1),0!==(2&r)&&(e=this.type_1),this.copy_luz5xs_k$(t,e)},Zr.prototype.hashCode=function(){var t=null==this.variance_1?0:this.variance_1.hashCode();return t=ut(t,31)+(null==this.type_1?0:mu(this.type_1))|0},Zr.prototype.equals=function(t){if(this===t)return!0;if(!(t instanceof Zr))return!1;var e=t instanceof Zr?t:Au();return!!wu(this.variance_1,e.variance_1)&&!!wu(this.type_1,e.type_1)},Zr.$metadata$=vh("KTypeProjection"),Gr.$metadata$=vh("KVariance",void 0,void 0,void 0,void 0,Oa.prototype),sn.prototype.success_5n1c7s_k$=function(t){return en(t)},sn.prototype.failure_tk7s8q_k$=function(t){return en(fn(t))},sn.$metadata$=Zh("Companion"),un.prototype.get_exception_x0n6w6_k$=function(){return this.exception_1},un.prototype.equals=function(t){return t instanceof un&&wu(this.exception_1,t.exception_1)},un.prototype.hashCode=function(){return mu(this.exception_1)},un.prototype.toString=function(){return"Failure("+this.exception_1+")"},un.$metadata$=vh("Failure",[F_]),cn.prototype.toString=function(){return _n(this.value_1)},cn.prototype.hashCode=function(){return hn(this.value_1)},cn.prototype.equals=function(t){return pn(this.value_1,t)},cn.$metadata$=vh("Result",[F_]),dn.$metadata$=vh("NotImplementedError",void 0,void 0,void 0,void 0,ap.prototype),mn.prototype.get_MIN_VALUE_p0dmjb_k$=function(){return this.MIN_VALUE_1},mn.prototype.get_MAX_VALUE_4mpz45_k$=function(){return this.MAX_VALUE_1},mn.prototype.get_SIZE_BYTES_qphg4q_k$=function(){return this.SIZE_BYTES_1},mn.prototype.get_SIZE_BITS_7qhjj9_k$=function(){return this.SIZE_BITS_1},mn.$metadata$=Zh("Companion"),En.prototype.compareTo_6mkx9r_k$=function(t){return wn(this.data_1,t)},En.prototype.compareTo_6thzaj_k$=function(t){return bn(this,t)},En.prototype.toString=function(){return xn(this.data_1)},En.prototype.hashCode=function(){return jn(this.data_1)},En.prototype.equals=function(t){return In(this.data_1,t)},En.$metadata$=vh("UByte",[Ao]),qn.prototype.hasNext_bitz1p_k$=function(){return this.index_10},ci.prototype.equals=function(t){return t instanceof ci&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||this.first_1===t.first_1&&this.last_1===t.last_1)},ci.prototype.hashCode=function(){var t,e;return this.isEmpty_y1axqb_k$()?t=-1:(e=Fn(this.first_1),t=ut(31,e)+Fn(this.last_1)|0),t},ci.prototype.toString=function(){return new Hn(this.first_1)+".."+new Hn(this.last_1)},ci.$metadata$=vh("UIntRange",[Br,Fr],void 0,void 0,void 0,yi.prototype),fi.prototype.fromClosedRange_nl90ve_k$=function(t,e,r){return new yi(t,e,r)},fi.$metadata$=Zh("Companion"),yi.prototype.get_first_englpo_k$=function(){return this.first_1},yi.prototype.get_last_rpcnd0_k$=function(){return this.last_1},yi.prototype.get_step_woujh1_k$=function(){return this.step_1},yi.prototype.iterator_jk1svi_k$=function(){return new $i(this.first_1,this.last_1,this.step_1)},yi.prototype.isEmpty_y1axqb_k$=function(){var t;if(this.step_1>0){var e=this.first_1,r=this.last_1;t=vo(Fn(e),Fn(r))>0}else{var n=this.first_1,i=this.last_1;t=vo(Fn(n),Fn(i))<0}return t},yi.prototype.equals=function(t){return t instanceof yi&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||this.first_1===t.first_1&&this.last_1===t.last_1&&this.step_1===t.step_1)},yi.prototype.hashCode=function(){var t;if(this.isEmpty_y1axqb_k$())t=-1;else{var e;e=Fn(this.first_1);var r,n=ut(31,e);r=Fn(this.last_1),t=ut(31,n+r|0)+this.step_1|0}return t},yi.prototype.toString=function(){return this.step_1>0?new Hn(this.first_1)+".."+new Hn(this.last_1)+" step "+this.step_1:new Hn(this.first_1)+" downTo "+new Hn(this.last_1)+" step "+(0|-this.step_1)},yi.$metadata$=vh("UIntProgression",[ba]),$i.prototype.hasNext_bitz1p_k$=function(){return this.hasNext_1},$i.prototype.next_3167jc_k$=function(){var t=this.next_1;if(t===this.finalElement_1){if(!this.hasNext_1)throw kp();this.hasNext_1=!1}else{var e,r=this,n=r,i=r.next_1,o=this.step_1;e=Bn(Fn(i)+Fn(o)|0),n.next_1=e}return t},$i.prototype.next_20eer_k$=function(){return new Hn(this.next_3167jc_k$())},$i.$metadata$=vh("UIntProgressionIterator",[qo]),gi.prototype.get_MIN_VALUE_p0jsuj_k$=function(){return this.MIN_VALUE_1},gi.prototype.get_MAX_VALUE_4mw5fd_k$=function(){return this.MAX_VALUE_1},gi.prototype.get_SIZE_BYTES_qphg4q_k$=function(){return this.SIZE_BYTES_1},gi.prototype.get_SIZE_BITS_7qhjj9_k$=function(){return this.SIZE_BITS_1},gi.$metadata$=Zh("Companion"),Ii.prototype.compareTo_6mr3kz_k$=function(t){return vi(this.data_1,t)},Ii.prototype.compareTo_6thzaj_k$=function(t){return wi(this,t)},Ii.prototype.toString=function(){return bi(this.data_1)},Ii.prototype.hashCode=function(){return xi(this.data_1)},Ii.prototype.equals=function(t){return ji(this.data_1,t)},Ii.$metadata$=vh("ULong",[Ao]),Ai.prototype.hasNext_bitz1p_k$=function(){return this.index_10},Fi.prototype.equals=function(t){return t instanceof Fi&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||!!wu(this.first_1,t.first_1)&&wu(this.last_1,t.last_1))},Fi.prototype.hashCode=function(){var t;if(this.isEmpty_y1axqb_k$())t=-1;else{var e,r,n=this.first_1,i=di(ki(this.first_1).ushr_rr8rvr_k$(32));r=di(ki(n).xor_jjua9n_k$(ki(i))),e=ki(r).toInt_1tsl84_k$();var o,_=ut(31,e),s=this.last_1,a=di(ki(this.last_1).ushr_rr8rvr_k$(32));o=di(ki(s).xor_jjua9n_k$(ki(a))),t=_+ki(o).toInt_1tsl84_k$()|0}return t},Fi.prototype.toString=function(){return new Ii(this.first_1)+".."+new Ii(this.last_1)},Fi.$metadata$=vh("ULongRange",[Br,Fr],void 0,void 0,void 0,Vi.prototype),Ui.prototype.fromClosedRange_wj18r3_k$=function(t,e,r){return new Vi(t,e,r)},Ui.$metadata$=Zh("Companion"),Vi.prototype.get_first_s0oavz_k$=function(){return this.first_1},Vi.prototype.get_last_6gle4n_k$=function(){return this.last_1},Vi.prototype.get_step_woujh1_k$=function(){return this.step_1},Vi.prototype.iterator_jk1svi_k$=function(){return new Yi(this.first_1,this.last_1,this.step_1)},Vi.prototype.isEmpty_y1axqb_k$=function(){var t;if(this.step_1.compareTo_n4fqi2_k$(new Ou(0,0))>0){var e=this.first_1,r=this.last_1;t=bo(ki(e),ki(r))>0}else{var n=this.first_1,i=this.last_1;t=bo(ki(n),ki(i))<0}return t},Vi.prototype.equals=function(t){return t instanceof Vi&&(!(!this.isEmpty_y1axqb_k$()||!t.isEmpty_y1axqb_k$())||!(!wu(this.first_1,t.first_1)||!wu(this.last_1,t.last_1))&&this.step_1.equals(t.step_1))},Vi.prototype.hashCode=function(){var t;if(this.isEmpty_y1axqb_k$())t=-1;else{var e,r,n=this.first_1,i=di(ki(this.first_1).ushr_rr8rvr_k$(32));r=di(ki(n).xor_jjua9n_k$(ki(i))),e=ki(r).toInt_1tsl84_k$();var o,_,s=ut(31,e),a=this.last_1,u=di(ki(this.last_1).ushr_rr8rvr_k$(32));_=di(ki(a).xor_jjua9n_k$(ki(u))),o=ki(_).toInt_1tsl84_k$(),t=ut(31,s+o|0)+this.step_1.xor_jjua9n_k$(this.step_1.ushr_rr8rvr_k$(32)).toInt_1tsl84_k$()|0}return t},Vi.prototype.toString=function(){return this.step_1.compareTo_n4fqi2_k$(new Ou(0,0))>0?new Ii(this.first_1)+".."+new Ii(this.last_1)+" step "+gu(this.step_1):new Ii(this.first_1)+" downTo "+new Ii(this.last_1)+" step "+gu(this.step_1.unaryMinus_6uz0qp_k$())},Vi.$metadata$=vh("ULongProgression",[ba]),Yi.prototype.hasNext_bitz1p_k$=function(){return this.hasNext_1},Yi.prototype.next_mz6i19_k$=function(){var t=this.next_1;if(wu(t,this.finalElement_1)){if(!this.hasNext_1)throw kp();this.hasNext_1=!1}else{var e,r=this,n=r,i=r.next_1,o=this.step_1;e=di(ki(i).plus_u6jwas_k$(ki(o))),n.next_1=e}return t},Yi.prototype.next_20eer_k$=function(){return new Ii(this.next_mz6i19_k$())},Yi.$metadata$=vh("ULongProgressionIterator",[qo]),Ji.prototype.get_MIN_VALUE_5rgn3n_k$=function(){return this.MIN_VALUE_1},Ji.prototype.get_MAX_VALUE_1r6om7_k$=function(){return this.MAX_VALUE_1},Ji.prototype.get_SIZE_BYTES_qphg4q_k$=function(){return this.SIZE_BYTES_1},Ji.prototype.get_SIZE_BITS_7qhjj9_k$=function(){return this.SIZE_BITS_1},Ji.$metadata$=Zh("Companion"),_o.prototype.compareTo_7e9yiz_k$=function(t){return eo(this.data_1,t)},_o.prototype.compareTo_6thzaj_k$=function(t){return ro(this,t)},_o.prototype.toString=function(){return no(this.data_1)},_o.prototype.hashCode=function(){return io(this.data_1)},_o.prototype.equals=function(t){return oo(this.data_1,t)},_o.$metadata$=vh("UShort",[Ao]),ho.prototype.hasNext_bitz1p_k$=function(){return this.index_10},w_.prototype.nextIndex_jshxun_k$=function(){return this.index_1},w_.prototype.previous_l2dfd5_k$=function(){if(!this.hasPrevious_qh0629_k$())throw kp();var t=this,e=this;return e.index_1=e.index_1-1|0,t.last_1=e.index_1,this.$this_2.get_fkrdnv_k$(this.last_1)},w_.prototype.previousIndex_4qtyw5_k$=function(){return this.index_1-1|0},w_.prototype.add_8zjh9m_k$=function(t){this.$this_2.add_ydlf05_k$(this.index_1,t);var e=this,r=e.index_1;e.index_1=r+1|0,this.last_1=-1},w_.prototype.add_sf7wgr_k$=function(t){return this.add_8zjh9m_k$(null==t||zh(t)?t:Au())},w_.prototype.set_y85lex_k$=function(t){if(-1===this.last_1)throw yp(gu("Call next() or previous() before updating element value with the iterator."));this.$this_2.set_meu351_k$(this.last_1,t)},w_.prototype.set_hda1d2_k$=function(t){return this.set_y85lex_k$(null==t||zh(t)?t:Au())},w_.$metadata$=vh("ListIteratorImpl",[Xo],void 0,void 0,void 0,v_.prototype),b_.prototype.add_ydlf05_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this._size_1),this.list_1.add_ydlf05_k$(this.fromIndex_1+t|0,e);var r=this,n=r._size_1;r._size_1=n+1|0},b_.prototype.get_fkrdnv_k$=function(t){return Vt().checkElementIndex_ux0wz1_k$(t,this._size_1),this.list_1.get_fkrdnv_k$(this.fromIndex_1+t|0)},b_.prototype.removeAt_qvpkxi_k$=function(t){Vt().checkElementIndex_ux0wz1_k$(t,this._size_1);var e=this.list_1.removeAt_qvpkxi_k$(this.fromIndex_1+t|0),r=this,n=r._size_1;return r._size_1=n-1|0,e},b_.prototype.set_meu351_k$=function(t,e){return Vt().checkElementIndex_ux0wz1_k$(t,this._size_1),this.list_1.set_meu351_k$(this.fromIndex_1+t|0,e)},b_.prototype.get_size_woubt6_k$=function(){return this._size_1},b_.prototype.checkIsMutable_h4zzmr_k$=function(){return this.list_1.checkIsMutable_h4zzmr_k$()},b_.$metadata$=vh("SubList",[N_],void 0,void 0,void 0,I_.prototype),I_.prototype.set_modCount_ro74zq_k$=function(t){this.modCount_1=t},I_.prototype.get_modCount_sgzjli_k$=function(){return this.modCount_1},I_.prototype.add_1j60pz_k$=function(t){return this.checkIsMutable_h4zzmr_k$(),this.add_ydlf05_k$(this.get_size_woubt6_k$(),t),!0},I_.prototype.addAll_ikuqlt_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_size_woubt6_k$()),this.checkIsMutable_h4zzmr_k$();for(var r=t,n=!1,i=e.iterator_jk1svi_k$();i.hasNext_bitz1p_k$();){var o=i.next_20eer_k$(),_=r;r=_+1|0,this.add_ydlf05_k$(_,o),n=!0}return n},I_.prototype.clear_j9y8zo_k$=function(){this.checkIsMutable_h4zzmr_k$(),this.removeRange_rbwdy0_k$(0,this.get_size_woubt6_k$())},I_.prototype.removeAll_99to5v_k$=function(t){return this.checkIsMutable_h4zzmr_k$(),Jt(this,x_(t))},I_.prototype.retainAll_j44sd0_k$=function(t){return this.checkIsMutable_h4zzmr_k$(),Jt(this,j_(t))},I_.prototype.iterator_jk1svi_k$=function(){return new v_(this)},I_.prototype.contains_2ehdt1_k$=function(t){return this.indexOf_dcv8dt_k$(t)>=0},I_.prototype.indexOf_dcv8dt_k$=function(t){var e=0,r=Zt(this);if(e<=r)do{var n=e;if(e=e+1|0,wu(this.get_fkrdnv_k$(n),t))return n}while(n!==r);return-1},I_.prototype.lastIndexOf_rzx8t5_k$=function(t){var e=Zt(this);if(0<=e)do{var r=e;if(e=e+-1|0,wu(this.get_fkrdnv_k$(r),t))return r}while(0<=e);return-1},I_.prototype.listIterator_xjshxw_k$=function(){return this.listIterator_5hanv9_k$(0)},I_.prototype.listIterator_5hanv9_k$=function(t){return new w_(this,t)},I_.prototype.subList_d153ha_k$=function(t,e){return new b_(this,t,e)},I_.prototype.removeRange_rbwdy0_k$=function(t,e){var r=this.listIterator_5hanv9_k$(t),n=e-t|0,i=0;if(ithis.get_size_woubt6_k$()&&(t[this.get_size_woubt6_k$()]=null),t},q_.prototype.toArray_jjyjqa_k$=function(){return[].slice.call(this.array_1)},q_.prototype.toArray=function(){return this.toArray_jjyjqa_k$()},q_.prototype.checkIsMutable_h4zzmr_k$=function(){if(this.isReadOnly_1)throw Ep()},q_.$metadata$=vh("ArrayList",[xa,N_],void 0,void 0,void 0,I_.prototype),N_.$metadata$=Yh("RandomAccess"),T_.prototype.println_uuzh5q_k$=function(){this.print_o29p2b_k$("\n")},T_.prototype.println_gh3jfj_k$=function(t){this.print_o29p2b_k$(t),this.println_uuzh5q_k$()},T_.prototype.flush_sgqoqb_k$=function(){},T_.$metadata$=vh("BaseOutput"),z_.prototype.get_outputStream_2dy5nu_k$=function(){return this.outputStream_1},z_.prototype.print_o29p2b_k$=function(t){var e=String(t);this.outputStream_1.write(e)},z_.$metadata$=vh("NodeJsOutput",void 0,void 0,void 0,void 0,T_.prototype),P_.prototype.print_o29p2b_k$=function(t){var e=String(t),r=e.lastIndexOf("\n",0);if(r>=0){var n,i=this,o=i,_=i.buffer_1;n=e.substring(0,r),o.buffer_1=_+n,this.flush_sgqoqb_k$();var s=r+1|0;e=e.substring(s)}var a=this;a.buffer_1=a.buffer_1+e},P_.prototype.flush_sgqoqb_k$=function(){console.log(this.buffer_1),this.buffer_1=""},P_.$metadata$=vh("BufferedOutputToConsoleLog",void 0,void 0,void 0,void 0,O_.prototype),O_.prototype.set_buffer_j8vbf9_k$=function(t){this.buffer_1=t},O_.prototype.get_buffer_bmaafd_k$=function(){return this.buffer_1},O_.prototype.print_o29p2b_k$=function(t){var e,r=this,n=r,i=r.buffer_1;e=String(t),n.buffer_1=i+e},O_.prototype.flush_sgqoqb_k$=function(){this.buffer_1=""},O_.$metadata$=vh("BufferedOutput",void 0,void 0,void 0,void 0,T_.prototype),L_.prototype.get_context_h02k06_k$=function(){return this.$tmp0_Continuation_1},L_.prototype.resumeWith_7onugl_k$=function(t){ln(t);var e=rn(t);return null==e||zh(e)||Au(),Zo()},L_.prototype.resumeWith_s3a3yh_k$=function(t){return this.resumeWith_7onugl_k$(t)},L_.$metadata$=vh(void 0,[ve]),B_.prototype.get_implementation_9txf7p_k$=function(){return this.implementation_1},B_.prototype.equals=function(t){if(!(t instanceof B_))return!1;var e=t instanceof B_?t:Au();return this.implementation_1===e.implementation_1},B_.prototype.hashCode=function(){return ut(vu("implementation"),127)^vu(this.implementation_1)},B_.prototype.toString=function(){return"@kotlin.js.JsPolyfill(implementation="+this.implementation_1+")"},B_.$metadata$=vh("JsPolyfill",[Co]),F_.$metadata$=Yh("Serializable"),es.$metadata$=Yh("KCallable"),rs.$metadata$=Yh("KClass",[Ur]),ns.prototype.get_jClass_en9agn_k$=function(){return this.jClass_1},ns.prototype.get_qualifiedName_aokcf6_k$=function(){throw $n(null,1,null)},ns.prototype.equals=function(t){return t instanceof ns&&wu(this.get_jClass_en9agn_k$(),t.get_jClass_en9agn_k$())},ns.prototype.hashCode=function(){var t=this.get_simpleName_r6f8py_k$(),e=null==t?null:vu(t);return null==e?0:e},ns.prototype.toString=function(){return"class "+this.get_simpleName_r6f8py_k$()},ns.$metadata$=vh("KClassImpl",[rs]),is.prototype.equals=function(t){return t instanceof is&&!!ns.prototype.equals.call(this,t)&&this.givenSimpleName_1===t.givenSimpleName_1},is.prototype.get_simpleName_r6f8py_k$=function(){return this.givenSimpleName_1},is.prototype.isInstance_6tn68w_k$=function(t){return this.isInstanceFunction_1(t)},is.$metadata$=vh("PrimitiveKClassImpl",void 0,void 0,void 0,void 0,ns.prototype),os.prototype.get_simpleName_r6f8py_k$=function(){return this.simpleName_1},os.prototype.isInstance_6tn68w_k$=function(t){return!1},os.prototype.get_jClass_en9agn_k$=function(){throw Sp("There's no native JS class for Nothing type")},os.prototype.equals=function(t){return t===this},os.prototype.hashCode=function(){return 0},os.$metadata$=Zh("NothingKClassImpl",void 0,void 0,void 0,void 0,ns.prototype),ss.prototype.get_simpleName_r6f8py_k$=function(){throw yp("Unknown simpleName for ErrorKClass")},ss.prototype.get_qualifiedName_aokcf6_k$=function(){throw yp("Unknown qualifiedName for ErrorKClass")},ss.prototype.isInstance_6tn68w_k$=function(t){throw yp("Can's check isInstance on ErrorKClass")},ss.prototype.equals=function(t){return t===this},ss.prototype.hashCode=function(){return 0},ss.$metadata$=vh("ErrorKClass",[rs]),as.prototype.get_simpleName_r6f8py_k$=function(){return this.simpleName_1},as.prototype.isInstance_6tn68w_k$=function(t){return Wh(t,this.get_jClass_en9agn_k$())},as.$metadata$=vh("SimpleKClassImpl",void 0,void 0,void 0,void 0,ns.prototype),us.$metadata$=Yh("KFunction",[es]),hs.$metadata$=Yh("KProperty",[es]),ps.$metadata$=Yh("KProperty0",[hs]),cs.$metadata$=Yh("KProperty1",[hs]),fs.$metadata$=Yh("KProperty2",[hs]),ls.$metadata$=Yh("KMutableProperty0",[ps,ys]),ys.$metadata$=Yh("KMutableProperty",[hs]),$s.$metadata$=Yh("KMutableProperty1",[cs,ys]),ds.$metadata$=Yh("KMutableProperty2",[fs,ys]),ks.$metadata$=Yh("KType"),gs.prototype.get_classifier_ottyl2_k$=function(){return this.classifier_1},gs.prototype.get_arguments_p5ddub_k$=function(){return this.arguments_1},gs.prototype.get_isMarkedNullable_4el8ow_k$=function(){return this.isMarkedNullable_1},gs.prototype.equals=function(t){return!!(t instanceof gs&&wu(this.classifier_1,t.classifier_1)&&wu(this.arguments_1,t.arguments_1))&&this.isMarkedNullable_1===t.isMarkedNullable_1},gs.prototype.hashCode=function(){return ut(ut(mu(this.classifier_1),31)+mu(this.arguments_1)|0,31)+(0|this.isMarkedNullable_1)|0},gs.prototype.toString=function(){var t=this.classifier_1,e=jh(t,rs)?t:null,r=null==e?gu(this.classifier_1):null!=e.get_simpleName_r6f8py_k$()?e.get_simpleName_r6f8py_k$():"(non-denotable type)",n=this.arguments_1.isEmpty_y1axqb_k$()?"":Et(this.arguments_1,", ","<",">",0,null,null,56,null),i=this.isMarkedNullable_1?"?":"";return Ra(r,n)+i},gs.$metadata$=vh("KTypeImpl",[ks]),ms.prototype.get_classifier_ottyl2_k$=function(){return this.classifier_1},ms.prototype.get_arguments_p5ddub_k$=function(){return this.arguments_1},ms.prototype.get_isMarkedNullable_4el8ow_k$=function(){return this.isMarkedNullable_1},ms.prototype.toString=function(){return"dynamic"},ms.$metadata$=Zh("DynamicKType",[ks]),vs.prototype.get_name_woqyms_k$=function(){return this.name_1},vs.prototype.get_upperBounds_k5qia_k$=function(){return this.upperBounds_1},vs.prototype.get_variance_ik7ku2_k$=function(){return this.variance_1},vs.prototype.get_isReified_gx0s91_k$=function(){return this.isReified_1},vs.prototype.toString=function(){return this.name_1},vs.prototype.component1_7eebsc_k$=function(){return this.name_1},vs.prototype.component2_7eebsb_k$=function(){return this.upperBounds_1},vs.prototype.component3_7eebsa_k$=function(){return this.variance_1},vs.prototype.component4_7eebs9_k$=function(){return this.isReified_1},vs.prototype.copy_21tpu9_k$=function(t,e,r,n){return new vs(t,e,r,n)},vs.prototype.copy$default_6ckzz_k$=function(t,e,r,n,i,o){return 0!==(1&i)&&(t=this.name_1),0!==(2&i)&&(e=this.upperBounds_1),0!==(4&i)&&(r=this.variance_1),0!==(8&i)&&(n=this.isReified_1),this.copy_21tpu9_k$(t,e,r,n)},vs.prototype.hashCode=function(){var t=vu(this.name_1);return t=ut(t,31)+mu(this.upperBounds_1)|0,t=ut(t,31)+this.variance_1.hashCode()|0,t=ut(t,31)+(0|this.isReified_1)|0},vs.prototype.equals=function(t){if(this===t)return!0;if(!(t instanceof vs))return!1;var e=t instanceof vs?t:Au();return this.name_1===e.name_1&&!!wu(this.upperBounds_1,e.upperBounds_1)&&!!this.variance_1.equals(e.variance_1)&&this.isReified_1===e.isReified_1},vs.$metadata$=vh("KTypeParameterImpl",[Dr]),Us.prototype.get_anyClass_x0jl4l_k$=function(){return this.anyClass_1},Us.prototype.get_numberClass_pnym9y_k$=function(){return this.numberClass_1},Us.prototype.get_nothingClass_7ivpcc_k$=function(){return this.nothingClass_1},Us.prototype.get_booleanClass_d285fr_k$=function(){return this.booleanClass_1},Us.prototype.get_byteClass_pu7s61_k$=function(){return this.byteClass_1},Us.prototype.get_shortClass_5ajsv9_k$=function(){return this.shortClass_1},Us.prototype.get_intClass_mw4y9a_k$=function(){return this.intClass_1},Us.prototype.get_floatClass_xlwq2t_k$=function(){return this.floatClass_1},Us.prototype.get_doubleClass_dahzcy_k$=function(){return this.doubleClass_1},Us.prototype.get_arrayClass_udg0fc_k$=function(){return this.arrayClass_1},Us.prototype.get_stringClass_bik2gy_k$=function(){return this.stringClass_1},Us.prototype.get_throwableClass_ee1a8x_k$=function(){return this.throwableClass_1},Us.prototype.get_booleanArrayClass_lnbwea_k$=function(){return this.booleanArrayClass_1},Us.prototype.get_charArrayClass_7lhfoe_k$=function(){return this.charArrayClass_1},Us.prototype.get_byteArrayClass_57my8g_k$=function(){return this.byteArrayClass_1},Us.prototype.get_shortArrayClass_c1p7wy_k$=function(){return this.shortArrayClass_1},Us.prototype.get_intArrayClass_h44pbv_k$=function(){return this.intArrayClass_1},Us.prototype.get_longArrayClass_v379a4_k$=function(){return this.longArrayClass_1},Us.prototype.get_floatArrayClass_qngmha_k$=function(){return this.floatArrayClass_1},Us.prototype.get_doubleArrayClass_84hee1_k$=function(){return this.doubleArrayClass_1},Us.prototype.functionClass=function(t){var e,r=ws()[t];if(null==r){var n=new is(Function,"Function"+t,Fs(t));ws()[t]=n,e=n}else e=r;return e},Us.$metadata$=Zh("PrimitiveClasses"),Object.defineProperty(Us.prototype,"anyClass",{configurable:!0,get:Us.prototype.get_anyClass_x0jl4l_k$}),Object.defineProperty(Us.prototype,"numberClass",{configurable:!0,get:Us.prototype.get_numberClass_pnym9y_k$}),Object.defineProperty(Us.prototype,"nothingClass",{configurable:!0,get:Us.prototype.get_nothingClass_7ivpcc_k$}),Object.defineProperty(Us.prototype,"booleanClass",{configurable:!0,get:Us.prototype.get_booleanClass_d285fr_k$}),Object.defineProperty(Us.prototype,"byteClass",{configurable:!0,get:Us.prototype.get_byteClass_pu7s61_k$}),Object.defineProperty(Us.prototype,"shortClass",{configurable:!0,get:Us.prototype.get_shortClass_5ajsv9_k$}),Object.defineProperty(Us.prototype,"intClass",{configurable:!0,get:Us.prototype.get_intClass_mw4y9a_k$}),Object.defineProperty(Us.prototype,"floatClass",{configurable:!0,get:Us.prototype.get_floatClass_xlwq2t_k$}),Object.defineProperty(Us.prototype,"doubleClass",{configurable:!0,get:Us.prototype.get_doubleClass_dahzcy_k$}),Object.defineProperty(Us.prototype,"arrayClass",{configurable:!0,get:Us.prototype.get_arrayClass_udg0fc_k$}),Object.defineProperty(Us.prototype,"stringClass",{configurable:!0,get:Us.prototype.get_stringClass_bik2gy_k$}),Object.defineProperty(Us.prototype,"throwableClass",{configurable:!0,get:Us.prototype.get_throwableClass_ee1a8x_k$}),Object.defineProperty(Us.prototype,"booleanArrayClass",{configurable:!0,get:Us.prototype.get_booleanArrayClass_lnbwea_k$}),Object.defineProperty(Us.prototype,"charArrayClass",{configurable:!0,get:Us.prototype.get_charArrayClass_7lhfoe_k$}),Object.defineProperty(Us.prototype,"byteArrayClass",{configurable:!0,get:Us.prototype.get_byteArrayClass_57my8g_k$}),Object.defineProperty(Us.prototype,"shortArrayClass",{configurable:!0,get:Us.prototype.get_shortArrayClass_c1p7wy_k$}),Object.defineProperty(Us.prototype,"intArrayClass",{configurable:!0,get:Us.prototype.get_intArrayClass_h44pbv_k$}),Object.defineProperty(Us.prototype,"longArrayClass",{configurable:!0,get:Us.prototype.get_longArrayClass_v379a4_k$}),Object.defineProperty(Us.prototype,"floatArrayClass",{configurable:!0,get:Us.prototype.get_floatArrayClass_qngmha_k$}),Object.defineProperty(Us.prototype,"doubleArrayClass",{configurable:!0,get:Us.prototype.get_doubleArrayClass_84hee1_k$}),Gs.$metadata$=Yh("Appendable"),Js.prototype.get_length_g42xv3_k$=function(){return this.string_1.length},Js.prototype.get_a7b70_k$=function(t){var e=this.string_1;if(!(t>=0&&t<=tn(e)))throw Np("index: "+t+", length: "+this.get_length_g42xv3_k$()+"}");return su(e,t)},Js.prototype.subSequence_5fh70h_k$=function(t,e){return this.string_1.substring(t,e)},Js.prototype.append_t8oh9e_k$=function(t){var e=this;return e.string_1=e.string_1+new wa(t),this},Js.prototype.append_oz4qxs_k$=function(t){var e=this;return e.string_1=e.string_1+Ma(t),this},Js.prototype.append_tbojcw_k$=function(t,e,r){var n=t;return this.appendRange_mncs5k_k$(null==n?"null":n,e,r)},Js.prototype.reverse_i6tiw2_k$=function(){for(var t="",e=this.string_1.length-1|0;e>=0;){var r=e;e=r-1|0;var n=su(this.string_1,r);if(ea(n)&&e>=0){var i=e;e=i-1|0;var o=su(this.string_1,i);t=ra(o)?t+new wa(o)+new wa(n):t+new wa(n)+new wa(o)}else t+=new wa(n)}return this.string_1=t,this},Js.prototype.append_t8pm91_k$=function(t){var e=this;return e.string_1=e.string_1+Ma(t),this},Js.prototype.append_a1id5s_k$=function(t){var e=this;return e.string_1=e.string_1+t,this},Js.prototype.append_18hb2z_k$=function(t){var e=this;return e.string_1=e.string_1+oa(t),this},Js.prototype.append_zar6u1_k$=function(t){return this.append_ssq29y_k$(t)},Js.prototype.append_ssq29y_k$=function(t){var e=this,r=e,n=e.string_1,i=t;return r.string_1=n+(null==i?"null":i),this},Js.prototype.capacity_14dpom_k$=function(){return this.get_length_g42xv3_k$()},Js.prototype.ensureCapacity_ignus8_k$=function(t){},Js.prototype.indexOf_kdecvs_k$=function(t){return this.string_1.indexOf(t)},Js.prototype.indexOf_sxnkg7_k$=function(t,e){return this.string_1.indexOf(t,e)},Js.prototype.lastIndexOf_my1yge_k$=function(t){return this.string_1.lastIndexOf(t)},Js.prototype.lastIndexOf_4awwhb_k$=function(t,e){return 0===uu(t)&&e<0?-1:this.string_1.lastIndexOf(t,e)},Js.prototype.insert_ho1wgi_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_length_g42xv3_k$());var r,n=this,i=this.string_1.substring(0,t)+e;return r=this.string_1.substring(t),n.string_1=i+r,this},Js.prototype.insert_5hk2j8_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_length_g42xv3_k$());var r,n=this,i=this.string_1.substring(0,t)+new wa(e);return r=this.string_1.substring(t),n.string_1=i+r,this},Js.prototype.insert_5yqhyr_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_length_g42xv3_k$());var r,n=this,i=this.string_1.substring(0,t)+oa(e);return r=this.string_1.substring(t),n.string_1=i+r,this},Js.prototype.insert_xsudoy_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_length_g42xv3_k$());var r,n=this,i=this.string_1.substring(0,t)+Ma(e);return r=this.string_1.substring(t),n.string_1=i+r,this},Js.prototype.insert_5hl7iv_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_length_g42xv3_k$());var r,n=this,i=this.string_1.substring(0,t)+Ma(e);return r=this.string_1.substring(t),n.string_1=i+r,this},Js.prototype.insert_9mtcpl_k$=function(t,e){return this.insert_eitq2w_k$(t,e)},Js.prototype.insert_eitq2w_k$=function(t,e){Vt().checkPositionIndex_kxpgsw_k$(t,this.get_length_g42xv3_k$());var r,n=null==e?"null":e,i=this,o=this.string_1.substring(0,t)+n;return r=this.string_1.substring(t),i.string_1=o+r,this},Js.prototype.setLength_kzn4fs_k$=function(t){if(t<0)throw hp("Negative new length: "+t+".");if(t<=this.get_length_g42xv3_k$()){var e,r=this;e=this.string_1.substring(0,t),r.string_1=e}else{var n=this.get_length_g42xv3_k$();if(n= 8");if(e.arraysUnlinked_1=!0,e.log2N_1=t,e.N_1=1<=5))throw w("unknown log2N size, must be >=3 but was: "+t);e.dft_1=ft(t,tt(e),et(e),rt(e),nt(e))}return e}function ot(t){return it(t,Object.create(pt.prototype))}function _t(t,e,r,n,i,o){return it(i,o),o.yr_1=r,o.yi_1=n,o.dft_1.link(t,e,r,n),o.arraysUnlinked_1=!1,o}function st(t,e,r,n,i){return _t(t,e,r,n,i,Object.create(pt.prototype))}function at(t){var e=t.N_1/8|0;t.c_1=new Float32Array(e),t.c3__1=new Float32Array(e),t.s_1=new Float32Array(e),t.s3__1=new Float32Array(e);var r=0,n=e-1|0;if(r<=n)do{var i=r;r=r+1|0;var o,_=tt(t),s=2*k()*i/t.N_1;o=Math.cos(s),_[i]=o;var a,u=et(t),h=2*k()*3*i/t.N_1;a=Math.cos(h),u[i]=a;var p,c=rt(t),f=2*k()*i/t.N_1;p=Math.sin(f),c[i]=-p;var l,y=nt(t),$=2*k()*3*i/t.N_1;l=Math.sin($),y[i]=-l}while(i!==n)}function ut(){n=this}function ht(){return null==n&&new ut,n}function pt(){ht(),this.arraysUnlinked_1=!1}function ct(t,e,r,n,i,o){return gt.call(o),o.m_1=t,o.N_1=1<6?(o.dft1__1=$t(o,0,2,0,t-1|0),o.dft2__1=$t(o,1,4,o.N_1/2|0,t-2|0),o.dft3__1=$t(o,3,4,d(3,o.N_1)/4|0,t-2|0)):6===t?(o.dft1__1=$t(o,0,2,0,5),o.dft2__1=new wt(1,4,o.N_1/2|0),o.dft3__1=new wt(3,4,d(3,o.N_1)/4|0)):5===t&&(o.dft1__1=new wt(0,2,0),o.dft2__1=new jt(1,4,o.N_1/2|0),o.dft3__1=new jt(3,4,d(3,o.N_1)/4|0)),o}function ft(t,e,r,n,i){return ct(t,e,r,n,i,Object.create(gt.prototype))}function lt(t){return gt.call(t),t.dft1__1=null,t.dft2__1=null,t.dft3__1=null,t}function yt(t,e,r,n,i,o){return gt.call(o),o.c_1=t.c_1,o.c3__1=t.c3__1,o.s_1=t.s_1,o.s3__1=t.s3__1,o.m_1=i,o.N_1=1<6?(o.dft1__1=$t(o,e,d(r,2),n,i-1|0),o.dft2__1=$t(o,e+r|0,d(r,4),n+(o.N_1/2|0)|0,i-2|0),o.dft3__1=$t(o,e+d(3,r)|0,d(r,4),n+(d(3,o.N_1)/4|0)|0,i-2|0)):6===i?(o.dft1__1=$t(o,e,d(r,2),n,5),o.dft2__1=new wt(e+r|0,d(r,4),n+(o.N_1/2|0)|0),o.dft3__1=new wt(e+d(3,r)|0,d(r,4),n+(d(3,o.N_1)/4|0)|0)):5===i&&(o.dft1__1=new wt(e,d(r,2),n),o.dft2__1=new jt(e+r|0,d(r,4),n+(o.N_1/2|0)|0),o.dft3__1=new jt(e+d(3,r)|0,d(r,4),n+(d(3,o.N_1)/4|0)|0)),o}function $t(t,e,r,n,i){return yt(t,e,r,n,i,Object.create(gt.prototype))}function dt(){i=this;var t,e=this;t=Math.sqrt(2),e.SQRT2BY2__1=t/2}function kt(){return null==i&&new dt,i}function gt(){kt(),this.xoffset_1=0,this.xstride_1=0,this.outXoffset_1=0,this.m_1=0,this.N_1=0,this.Ndiv8__1=0,this.Ndiv4__1=0,this.dft1__1=null,this.dft2__1=null,this.dft3__1=null,this.c_1=null,this.c3__1=null,this.s_1=null,this.s3__1=null,this.f_1=0,this.reflect_1=0}function mt(){o=this;var t,e=this,r=2*k()/16;t=Math.cos(r),e.C_1_16__1=t;var n,i=this,_=2*k()*3/16;n=Math.cos(_),i.C_3_16__1=n;var s,a=this;s=Math.sqrt(2),a.SQRT2BY2__1=s/2}function vt(){return null==o&&new mt,o}function wt(t,e,r){vt(),lt(this),this.m_1=4,this.N_1=16,this.xoffset_1=t,this.xstride_1=e,this.outXoffset_1=r,this.n0__1=this.xoffset_1,this.n1__1=this.n0__1+this.xstride_1|0,this.n2__1=this.n1__1+this.xstride_1|0,this.n3__1=this.n2__1+this.xstride_1|0,this.n4__1=this.n3__1+this.xstride_1|0,this.n5__1=this.n4__1+this.xstride_1|0,this.n6__1=this.n5__1+this.xstride_1|0,this.n7__1=this.n6__1+this.xstride_1|0,this.n8__1=this.n7__1+this.xstride_1|0,this.n9__1=this.n8__1+this.xstride_1|0,this.n10__1=this.n9__1+this.xstride_1|0,this.n11__1=this.n10__1+this.xstride_1|0,this.n12__1=this.n11__1+this.xstride_1|0,this.n13__1=this.n12__1+this.xstride_1|0,this.n14__1=this.n13__1+this.xstride_1|0,this.n15__1=this.n14__1+this.xstride_1|0,this.m0__1=this.outXoffset_1,this.m1__1=this.m0__1+1|0,this.m2__1=this.m1__1+1|0,this.m3__1=this.m2__1+1|0,this.m4__1=this.m3__1+1|0,this.m5__1=this.m4__1+1|0,this.m6__1=this.m5__1+1|0,this.m7__1=this.m6__1+1|0,this.m8__1=this.m7__1+1|0,this.m9__1=this.m8__1+1|0,this.m10__1=this.m9__1+1|0,this.m11__1=this.m10__1+1|0,this.m12__1=this.m11__1+1|0,this.m13__1=this.m12__1+1|0,this.m14__1=this.m13__1+1|0,this.m15__1=this.m14__1+1|0}function bt(){_=this;var t,e=this;t=Math.sqrt(2),e.SQRT2BY2__1=t/2}function xt(){return null==_&&new bt,_}function jt(t,e,r){xt(),lt(this),this.n0__1=t,this.m0__1=r,this.m_1=3,this.N_1=8,this.xoffset_1=this.n0__1,this.xstride_1=e,this.outXoffset_1=this.m0__1,this.n1__1=this.n0__1+e|0,this.n2__1=this.n1__1+e|0,this.n3__1=this.n2__1+e|0,this.n4__1=this.n3__1+e|0,this.n5__1=this.n4__1+e|0,this.n6__1=this.n5__1+e|0,this.n7__1=this.n6__1+e|0,this.m1__1=this.m0__1+1|0,this.m2__1=this.m1__1+1|0,this.m3__1=this.m2__1+1|0,this.m4__1=this.m3__1+1|0,this.m5__1=this.m4__1+1|0,this.m6__1=this.m5__1+1|0,this.m7__1=this.m6__1+1|0}function It(){s=this}function Et(){return null==s&&new It,s}function Ct(t){if(Et(),t<4)throw w("DFT size must be >= 16");this.N_1=1<=1)throw w("OmegaP: "+e+" out of bounds (0.0 < OmegaP < 1.0)");this.bands_1[0][0]=0,this.bands_1[0][1]=e,this.generateCoefficients()}function $e(t,e,r,n,i){if(ke.call(this,2,t),this.Ws_1=r,this.Wp_1=i,e>=n)throw w("OmegaS >= OmegaP ");if(e<=0||e>=1)throw w("OmegaS: "+e+" out of bounds (0.0 < OmegaS < 1.0)");if(n<=0||n>=1)throw w("OmegaP: "+n+" out of bounds (0.0 < OmegaP < 1.0)");this.bands_1[0][0]=0,this.bands_1[0][1]=e,this.bands_1[1][0]=n,this.bands_1[1][1]=1,this.generateCoefficients()}function de(t,e,r,n,i){if(ke.call(this,2,t),this.Wp_1=r,this.Ws_1=i,e>=n)throw w("OmegaP >= OmegaS ");if(e<=0||e>=1)throw w("OmegaP: "+e+" out of bounds (0.0 < OmegaP < 1.0)");if(n<=0||n>=1)throw w("OmegaS: "+n+" out of bounds (0.0 < OmegaS < 1.0)");this.bands_1[0][0]=0,this.bands_1[0][1]=e,this.bands_1[1][0]=n,this.bands_1[1][1]=1,this.generateCoefficients()}function ke(t,e){fe.call(this,t,e+1|0,d(2,e)+1|0)}function ge(t,e){fe.call(this,t,e,d(2,e))}function me(t,e){fe.call(this,t,e,d(2,e)+1|0)}function ve(t,e){fe.call(this,t,e,d(2,e))}function we(t,e){ve.call(this,1,t),this.delta_1=e,this.bands_1[0][0]=1/d(2,t),this.bands_1[0][1]=1,this.generateCoefficients()}function be(t,e){if(ve.call(this,1,t),!(0=0){var h=(-a+Math.sqrt(u))/2,p=h*r/2,c=p*p-n,f=Me(p).plusComplex(Le().sqrt(Me(c)));i=Xt(new Float64Array([f.conjugate().timesComplex(f).real(),-2*f.real(),1])),c=(p=(h=(-a-Math.sqrt(u))/2)*r/2)*p-n,f=Me(p).plusComplex(Le().sqrt(Me(c))),o=Xt(new Float64Array([f.conjugate().timesComplex(f).real(),-2*f.real(),1]))}else{var l=-u,y=new Be(-a/2,Math.sqrt(l)/2).timesReal(r/2),$=y.timesComplex(y).minusReal(n),d=y.plusComplex(Le().sqrt($));i=Xt(new Float64Array([d.conjugate().timesComplex(d).real(),-2*d.real(),1])),d=y.minusComplex(Le().sqrt($)),o=Xt(new Float64Array([d.conjugate().timesComplex(d).real(),-2*d.real(),1]))}return[zt(i),zt(o)]}function Xe(){this._T_1=null,this.sections_1=A()}function Te(t,e,r,n,i){Ue.call(this,new Se(t),e,r,n,i)}function ze(t,e,r,n,i,o){Ue.call(this,new Ae(t,e),r,n,i,o)}function Pe(t,e,r,n,i,o){Ue.call(this,new qe(t,e),r,n,i,o)}function Oe(t,e){return Be.call(e,t,0),e}function Me(t){return Oe(t,Object.create(Be.prototype))}function Re(){c=this}function Le(){return null==c&&new Re,c}function Be(t,e){Le(),this.real_1=t,this.imag_1=e}function Fe(t,e,r){var n=k()*e*r;return Math.tan(n)}function Ue(t,e,r,n,i){var o;switch(this.delta_1=i,this.f1__1=r,this.f2__1=n,e.ordinal_1){case 0:o=t.lptolp(Fe(this,n,i));break;case 1:o=t.lptobp(Fe(this,r,i),Fe(this,n,i));break;case 2:o=t.lptohp(Fe(this,r,i));break;default:throw x("Undefined passband type")}var _=new Float64Array(2),s=new Float64Array(2);_[0]=1,_[1]=-1,s[0]=1,s[1]=1;var a=Ft(_,s);this.T_1=Wt(1),this.sections_1=A();var u=0,h=o.nSections()-1|0;if(u<=h)do{var p=u;u=u+1|0;var c=o.getSection(p).mapRational(a);this.T_1.timesEqualsRational(c);var f=c.numerator().coefficients(),l=c.denominator().coefficients(),y=1;0!==l[0]&&(y=l[0]);var $=f[0]/y,d=0;f.length>=2&&(d=f[1]/y);var k=0;f.length>=3&&(k=f[2]/y);var g=0;l.length>=2&&(g=l[1]/y);var m=0;l.length>=3&&(m=l[2]/y),this.sections_1.add_1j60pz_k$(new Ke($,d,k,g,m))}while(p!==h)}function De(){return[We(),Ge(),He()]}function Ve(t){switch(t){case"LOWPASS":return We();case"BANDPASS":return Ge();case"HIGHPASS":return He();default:Ye(),M()}}function Ye(){if($)return g();$=!0,f=new Ze("LOWPASS",0),l=new Ze("BANDPASS",1),y=new Ze("HIGHPASS",2)}function Ze(t,e){R.call(this,t,e)}function We(){return Ye(),f}function Ge(){return Ye(),l}function He(){return Ye(),y}function Ke(t,e,r,n,i){this.b0__1=t,this.b1__1=e,this.b2__1=r,this.a1__1=n,this.a2__1=i,this.s1__1=0,this.s2__1=0,this.initialize_oabr29_k$()}function Qe(t,e){var r=1;if(e>1){var n=2;if(n<=e)do{var i=n;n=n+1|0,r=d(r,i)}while(i!==e)}return r}function Je(t,e){Ce.call(this,t);var r=new Float64Array(t+1|0);r[0]=1;var n=1;if(n<=t)do{var i=n;n=n+1|0;var o,_=1,s=0;if(s<=t)do{var a=s;s=s+1|0,_*=(e-t+a)/(e-t+i+a)}while(a!==t);var u=i;o=Math.pow(-1,u),r[i]=o*(Qe(this,t)/d(Qe(this,t-i|0),Qe(this,i))|0)*_}while(i!==t);var h=Xt(r);this.k_1=h.reflectionCoefficients(),this.constructRationalRepresentation()}function tr(t){var e,r,n,i,o,_,s,a;(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).HammingWindow=L,(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).HanningWindow=B,(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).Sequence=W,_.Sequence.Sequence_fromArray=U,_.Sequence.Sequence_ofSize=V,Object.defineProperty(_.Sequence,"Companion",{configurable:!0,get:Z}),(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).Window=K,_.Window.Window_fromArray=H,(e=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).fft||(_.fft={})).CDFT=pt,e.CDFT.CDFT_ofLogSize=ot,e.CDFT.CDFT_ofArrays=st,Object.defineProperty(e.CDFT,"Companion",{configurable:!0,get:ht}),(e=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).fft||(_.fft={})).RDFT=Ct,Object.defineProperty(e.RDFT,"Companion",{configurable:!0,get:Et}),(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).LagrangePolynomial=qt,Object.defineProperty(s.LagrangePolynomial,"Companion",{configurable:!0,get:At}),(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).Polynomial=Lt,s.Polynomial.Polynomial_ofArray=Xt,s.Polynomial.Polynomial_ofPolynomial=zt,s.Polynomial.Polynomial_ofDegree=Ot,s.Polynomial.Polynomial_ofConstant=Rt,(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).Rational=Gt,s.Rational.Rational_ofArrays=Ft,s.Rational.Rational_ofPolynomials=Dt,s.Rational.Rational_ofRational=Yt,s.Rational.Rational_ofConstant=Wt,(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).ComplexAnalyticSignal=Ht,(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).Interpolator=Kt,(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).OverlapAdd=re,r.OverlapAdd.OverlapAdd_ofArray=Jt,r.OverlapAdd.OverlapAdd_ofArrayOverlapAdd=ee,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).CenteredDifferentiator=ne,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).CenteredHilbertTransform=ie,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).EquirippleBandpass=ae,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).EquirippleFIRFilter=fe,Object.defineProperty(n.EquirippleFIRFilter,"Companion",{configurable:!0,get:ce}),(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).EquirippleHalfBand=le,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).EquirippleHighpass=$e,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).EquirippleLowpass=de,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).FIRTypeI=ke,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).FIRTypeII=ge,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).FIRTypeIII=me,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).FIRTypeIV=ve,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).StaggeredDifferentiator=we,(n=(r=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).fir||(s.fir={})).equiripple||(r.equiripple={})).StaggeredHilbertTranform=be,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).Allpass=Ce,a.Allpass.Allpass_ofPolynomial=je,a.Allpass.Allpass_ofArray=Ee,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).AnalogPrototype=Xe,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).Butterworth=Te,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).ChebyshevI=ze,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).ChebyshevII=Pe,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).Complex=Be,a.Complex.Complex_fromReal=Me,Object.defineProperty(a.Complex,"Companion",{configurable:!0,get:Le}),(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).IIRFilter=Ue,(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).PassbandType=Ze,a.PassbandType.values=De,a.PassbandType.valueOf=Ve,Object.defineProperty(a.PassbandType,"LOWPASS",{configurable:!0,get:We}),Object.defineProperty(a.PassbandType,"BANDPASS",{configurable:!0,get:Ge}),Object.defineProperty(a.PassbandType,"HIGHPASS",{configurable:!0,get:He}),(a=(s=(_=(o=(i=t.com||(t.com={})).oregondsp||(i.oregondsp={})).signalProcessing||(o.signalProcessing={})).filter||(_.filter={})).iir||(s.iir={})).ThiranAllpass=Je}return L.prototype=Object.create(K.prototype),L.prototype.constructor=L,B.prototype=Object.create(K.prototype),B.prototype.constructor=B,wt.prototype=Object.create(gt.prototype),wt.prototype.constructor=wt,jt.prototype=Object.create(gt.prototype),jt.prototype.constructor=jt,me.prototype=Object.create(fe.prototype),me.prototype.constructor=me,ne.prototype=Object.create(me.prototype),ne.prototype.constructor=ne,ie.prototype=Object.create(me.prototype),ie.prototype.constructor=ie,ke.prototype=Object.create(fe.prototype),ke.prototype.constructor=ke,ae.prototype=Object.create(ke.prototype),ae.prototype.constructor=ae,ge.prototype=Object.create(fe.prototype),ge.prototype.constructor=ge,ye.prototype=Object.create(ge.prototype),ye.prototype.constructor=ye,$e.prototype=Object.create(ke.prototype),$e.prototype.constructor=$e,de.prototype=Object.create(ke.prototype),de.prototype.constructor=de,ve.prototype=Object.create(fe.prototype),ve.prototype.constructor=ve,we.prototype=Object.create(ve.prototype),we.prototype.constructor=we,be.prototype=Object.create(ve.prototype),be.prototype.constructor=be,Se.prototype=Object.create(Xe.prototype),Se.prototype.constructor=Se,Ae.prototype=Object.create(Xe.prototype),Ae.prototype.constructor=Ae,qe.prototype=Object.create(Xe.prototype),qe.prototype.constructor=qe,Te.prototype=Object.create(Ue.prototype),Te.prototype.constructor=Te,ze.prototype=Object.create(Ue.prototype),ze.prototype.constructor=ze,Pe.prototype=Object.create(Ue.prototype),Pe.prototype.constructor=Pe,Ze.prototype=Object.create(R.prototype),Ze.prototype.constructor=Ze,Je.prototype=Object.create(Ce.prototype),Je.prototype.constructor=Je,L.$metadata$=m("HammingWindow",void 0,void 0,void 0,void 0,K.prototype),B.$metadata$=m("HanningWindow",void 0,void 0,void 0,void 0,K.prototype),Y.prototype.aliasArray=function(t,e){var r=t.length,n=e.length,i=0;if(i<=n)do{var o=i;i=i+1|0,e[o]=0}while(o!==n);var _=0,s=r-1|0;if(_<=s)do{var a=_;_=_+1|0;var u=e,h=a%n|0;u[h]=u[h]+t[a]}while(a!==s)},Y.prototype.reverseArray=function(t){for(var e=0,r=t.length-1|0;e0&&(r-n|0)0){var o=0,_=n-1|0;if(o<=_)do{var s=o;o=o+1|0,i[s]=t[(r-n|0)+s|0]}while(s!==_);var a=(r-1|0)-n|0;if(0<=a)do{var u=a;a=a+-1|0,t[u+n|0]=t[u]}while(0<=a);var h=0,p=n-1|0;if(h<=p)do{var c=h;h=h+1|0,t[c]=i[c]}while(c!==p)}if(n<0){var f=0,l=(0|-n)-1|0;if(f<=l)do{var y=f;f=f+1|0,i[y]=t[y]}while(y!==l);var $=0|-n,k=r-1|0;if($<=k)do{var g=$;$=$+1|0,t[g+n|0]=t[g]}while(g!==k);var m=0,v=(0|-n)-1|0;if(m<=v)do{var w=m;m=m+1|0,t[(r+n|0)+w|0]=i[w]}while(w!==v)}},Y.prototype.zeroShiftArray=function(t,e){if(d(-1,e)>=t.length||e>=t.length){var r=0,n=t.length;if(r<=n)do{var i=r;r=r+1|0,t[i]=0}while(i!==n)}else if(e>0){var o=t.length-1|0;if(e<=o)do{var _=o;o=o+-1|0,t[_]=t[_-e|0]}while(_!==e);var s=0,a=e-1|0;if(s<=a)do{var u=s;s=s+1|0,t[u]=0}while(u!==a)}else if(e<0){var h=0,p=(t.length+e|0)-1|0;if(h<=p)do{var c=h;h=h+1|0,t[c]=t[c-e|0]}while(c!==p);var f=t.length+e|0,l=t.length-1|0;if(f<=l)do{var y=f;f=f+1|0,t[y]=0}while(y!==l)}},Y.prototype.decimateArray=function(t,e,r){var n=r.length,i=t.length/e|0,o=0,_=Math.min(n,i)-1|0;if(o<=_)do{var s=o;o=o+1|0,r[s]=t[d(s,e)]}while(s!==_)},Y.prototype.stretchArray=function(t,e,r){var n=t.length,i=r.length/e|0,o=Math.min(n,i),_=0,s=r.length;if(_<=s)do{var a=_;_=_+1|0,r[a]=0}while(a!==s);var u=0,h=o-1|0;if(u<=h)do{var p=u;u=u+1|0,r[d(p,e)]=t[p]}while(p!==h)},Y.prototype.timesEqualsArray=function(t,e){var r=0,n=t.length-1|0;if(r<=n)do{var i=r;r=r+1|0;var o=t,_=i;o[_]=o[_]*e}while(r<=n)},Y.prototype.padArray=function(t,e){if(t.length=0&&tthis.array_1.length){var e=new Float32Array(t);Z().padArray(this.array_1,e),this.array_1=e}},W.$metadata$=m("Sequence"),Object.defineProperty(W.prototype,"array",{configurable:!0,get:W.prototype.get_array_iosoq8_k$,set:W.prototype.set_array_tn1sl2_k$}),K.prototype.set_w_6vu9ec_k$=function(t){this.w_1=t},K.prototype.get_w_1mhr66_k$=function(){return this.w_1},K.prototype.length=function(){return this.w_1.length},K.prototype.timesEquals=function(t){if(t.length!==this.w_1.length)throw w("Argument length does not match window length");var e=0,r=this.w_1.length-1|0;if(e<=r)do{var n=e;e=e+1|0;var i=this.w_1,o=n;i[o]=i[o]*t[n]}while(e<=r)},K.prototype.get_array_iosoq8_k$=function(){return this.w_1.slice()},K.prototype.windowArray=function(t,e,r){if(r.length!==this.w_1.length)throw w("Destination array length does not match window length");var n=0,i=this.w_1.length-1|0;if(n<=i)do{var o=n;n=n+1|0;var _=e+o|0;_>=0&&_0){var r=new Float64Array((this._order_1+1|0)-e|0),n=0,i=r.length-1|0;if(n<=i)do{var o=n;n=n+1|0,r[o]=this.a_1[o]}while(n<=i);this.a_1=r;var _=this;_._order_1=_._order_1-e|0}},Lt.prototype.order=function(){return this._order_1},Lt.prototype.coefficients=function(){return this.a_1.slice()},Lt.prototype.plusReal=function(t){var e,r=Ot(this._order_1),n=r;e=this.a_1.slice(),n.a_1=e;var i=r.a_1,o=0;return i[o]=i[o]+t,r},Lt.prototype.plusEqualsReal=function(t){var e=this.a_1,r=0;e[r]=e[r]+t},Lt.prototype.plusPolynomial=function(t){var e=this._order_1,r=t._order_1,n=Ot(Math.max(e,r)),i=0,o=this._order_1;if(i<=o)do{var _=i;i=i+1|0,n.a_1[_]=this.a_1[_]}while(_!==o);var s=0,a=t._order_1;if(s<=a)do{var u=s;s=s+1|0;var h=n.a_1,p=u;h[p]=h[p]+t.a_1[u]}while(u!==a);return n},Lt.prototype.plusEqualsPolynomial=function(t){var e,r=this._order_1,n=t._order_1;e=Math.max(r,n);var i=new Float64Array(e),o=0,_=this._order_1;if(o<=_)do{var s=o;o=o+1|0,i[s]=this.a_1[s]}while(s!==_);var a=0,u=t._order_1;if(a<=u)do{var h=a;a=a+1|0;var p=i,c=h;p[c]=p[c]+t.a_1[h]}while(h!==u);this.a_1=i,this._order_1=i.length-1|0},Lt.prototype.minusReal=function(t){return this.plusReal(-t)},Lt.prototype.minusEqualsReal=function(t){this.plusEqualsReal(-t)},Lt.prototype.minusPolynomial=function(t){var e=this._order_1,r=t._order_1,n=Ot(Math.max(e,r)),i=0,o=this._order_1;if(i<=o)do{var _=i;i=i+1|0,n.a_1[_]=this.a_1[_]}while(_!==o);var s=0,a=t._order_1;if(s<=a)do{var u=s;s=s+1|0;var h=n.a_1,p=u;h[p]=h[p]-t.a_1[u]}while(u!==a);return n},Lt.prototype.minusEqualsPolynomial=function(t){var e,r=this._order_1,n=t._order_1;e=Math.max(r,n);var i=new Float64Array(e),o=0,_=this._order_1;if(o<=_)do{var s=o;o=o+1|0,i[s]=this.a_1[s]}while(s!==_);var a=0,u=t._order_1;if(a<=u)do{var h=a;a=a+1|0;var p=i,c=h;p[c]=p[c]-t.a_1[h]}while(h!==u);this.a_1=i,this._order_1=i.length-1|0},Lt.prototype.timesReal=function(t){var e=Ot(this._order_1),r=0,n=this._order_1;if(r<=n)do{var i=r;r=r+1|0,e.a_1[i]=t*this.a_1[i]}while(i!==n);return e},Lt.prototype.timesEqualsReal=function(t){var e=0,r=this._order_1;if(e<=r)do{var n=e;e=e+1|0;var i=this.a_1,o=n;i[o]=i[o]*t}while(n!==r)},Lt.prototype.timesPolynomial=function(t){var e=t.a_1,r=new Float64Array(1+(this._order_1+t._order_1|0)|0),n=0,i=t._order_1;if(n<=i)do{var o=n;n=n+1|0;var _=0,s=this._order_1;if(_<=s)do{var a=_;_=_+1|0;var u=r,h=o+a|0;u[h]=u[h]+e[o]*this.a_1[a]}while(a!==s)}while(o!==i);return Xt(r)},Lt.prototype.timesEqualsPolynomial=function(t){var e=t.a_1,r=new Float64Array(1+(this._order_1+t._order_1|0)|0),n=0,i=t._order_1;if(n<=i)do{var o=n;n=n+1|0;var _=0,s=this._order_1;if(_<=s)do{var a=_;_=_+1|0;var u=r,h=o+a|0;u[h]=u[h]+e[o]*this.a_1[a]}while(a!==s)}while(o!==i);this.a_1=r;var p=this;p._order_1=p._order_1+t._order_1|0},Lt.prototype.overReal=function(t){var e=new Float64Array(this._order_1+1|0),r=0,n=(this._order_1+1|0)-1|0;if(r<=n)do{var i=r;r=r+1|0,e[i]=this.a_1[i]/t}while(i!==n);return Xt(e)},Lt.prototype.overEqualsReal=function(t){var e=0,r=(this._order_1+1|0)-1|0;if(e<=r)do{var n=e;e=e+1|0;var i=this.a_1,o=n;i[o]=i[o]/t}while(n!==r)},Lt.prototype.overEqualsPolynomial=function(t){return Dt(this,t)},Lt.prototype.derivative=function(){var t=new Float64Array(this._order_1),e=0,r=this._order_1-1|0;if(e<=r)do{var n=e;e=e+1|0,t[n]=(n+1|0)*this.a_1[n+1|0]}while(n!==r);return Xt(t)},Lt.prototype.evaluateReal=function(t){var e=this.a_1[this._order_1],r=this._order_1-1|0;if(0<=r)do{var n=r;r=r+-1|0,e=t*e+this.a_1[n]}while(0<=r);return e},Lt.prototype.evaluateComplex=function(t){var e=Me(this.a_1[this._order_1]),r=this._order_1-1|0;if(0<=r)do{var n=r;r=r+-1|0,e=e.timesComplex(t).plusReal(this.a_1[n])}while(0<=r);return e},Lt.prototype.groupDelay=function(t){if(0===this._order_1)return 0;var e=new Be(0,t),r=this.derivative().evaluateComplex(e),n=this.evaluateComplex(e);return-r.overComplex(n).real()},Lt.prototype.discreteTimeGroupDelay=function(t){var e=Le().exp(new Be(0,-t)),r=Me(this.a_1[this._order_1]*this._order_1),n=this._order_1-1|0;if(0<=n)do{var i=n;n=n+-1|0,r=r.timesComplex(e).plusReal(this.a_1[i]*i)}while(0<=n);var o=this.evaluateComplex(e);return r.overComplex(o).real()},Lt.prototype.reflectionCoefficients=function(){var t=new Float64Array(this._order_1),e=new Float64Array(this._order_1+1|0);e[0]=1;var r=0,n=this._order_1-1|0;if(r<=n)do{var i=r;r=r+1|0,e[i+1|0]=this.a_1[i+1|0]/this.a_1[0]}while(i!==n);var o=this._order_1;if(1<=o)do{var _=o;o=o+-1|0,t[_-1|0]=e[_];var s=1-t[_-1|0]*t[_-1|0],a=new Float64Array(this._order_1),u=0,h=_-1|0;if(u<=h)do{var p=u;u=u+1|0,a[p]=(e[p]-t[_-1|0]*e[_-p|0])/s}while(p!==h);var c=0,f=_-1|0;if(c<=f)do{var l=c;c=c+1|0,e[l]=a[l]}while(l!==f)}while(1<=o);return t},Lt.prototype.toString=function(){var t="",e=0,r=this._order_1;if(e<=r)do{var n=e;e=e+1|0,n>=0&&n<10?t=t+(n.toString()+" ")+this.a_1[n]+new E(I(10)):n>=10&&n<=100&&(t=t+(n.toString()+" ")+this.a_1[n]+new E(I(10)))}while(n!==r);return t},Lt.$metadata$=m("Polynomial"),Object.defineProperty(Lt.prototype,"a",{configurable:!0,get:Lt.prototype.get_a_1mhr5k_k$,set:Lt.prototype.set_a_suc4n9_k$}),Object.defineProperty(Lt.prototype,"_order",{configurable:!0,get:Lt.prototype.get__order_a42a1k_k$,set:Lt.prototype.set__order_ax9ysk_k$}),Gt.prototype.order=function(){return new Int32Array([this.N_1.order(),this.D_1.order()])},Gt.prototype.numerator=function(){return zt(this.N_1)},Gt.prototype.denominator=function(){return zt(this.D_1)},Gt.prototype.canonicalForm=function(){var t=this.N_1.a_1[this.N_1._order_1],e=0,r=this.N_1.a_1.length-1|0;if(e<=r)do{var n=e;e=e+1|0;var i=this.N_1.a_1,o=n;i[o]=i[o]/t}while(e<=r);var _=this.D_1.a_1[this.D_1._order_1],s=0,a=this.D_1.a_1.length-1|0;if(s<=a)do{var u=s;s=s+1|0;var h=this.D_1.a_1,p=u;h[p]=h[p]/_}while(s<=a);return t/_},Gt.prototype.timesEqualsReal=function(t){this.N_1.timesEqualsReal(t)},Gt.prototype.timesEqualsPolynomial=function(t){this.N_1.timesEqualsPolynomial(t)},Gt.prototype.timesEqualsRational=function(t){this.N_1.timesEqualsPolynomial(t.N_1),this.D_1.timesEqualsPolynomial(t.D_1)},Gt.prototype.evaluateReal=function(t){var e=0,r=this.N_1.evaluateReal(t),n=this.D_1.evaluateReal(t);return 0!==n&&(e=r/n),e},Gt.prototype.evaluateComplex=function(t){var e=new Be(0,0),r=this.N_1.evaluateComplex(t),n=this.D_1.evaluateComplex(t);return 0!==n.abs()&&(e=r.overComplex(n)),e},Gt.prototype.mapRational=function(t){var e=Rt(this.N_1.a_1[this.N_1._order_1]),r=Rt(1),n=this.N_1._order_1-1|0;if(0<=n)do{var i=n;n=n+-1|0,r=r.timesPolynomial(t.D_1),e=e.timesPolynomial(t.N_1).plusPolynomial(r.timesReal(this.N_1.a_1[i]))}while(0<=n);var o=Rt(this.D_1.a_1[this.D_1._order_1]);r=Rt(1);var _=this.D_1._order_1-1|0;if(0<=_)do{var s=_;_=_+-1|0,r=r.timesPolynomial(t.D_1),o=o.timesPolynomial(t.N_1).plusPolynomial(r.timesReal(this.D_1.a_1[s]))}while(0<=_);if(this.D_1._order_1>this.N_1._order_1){var a=0,u=(this.D_1._order_1-this.N_1._order_1|0)-1|0;if(a<=u)do{var h=a;a=a+1|0,e=e.timesPolynomial(t.D_1)}while(h!==u)}else if(this.N_1._order_1>this.D_1._order_1){var p=0,c=(this.N_1._order_1-this.D_1._order_1|0)-1|0;if(p<=c)do{var f=p;p=p+1|0,o=o.timesPolynomial(t.D_1)}while(f!==c)}return e.trim(),o.trim(),Dt(e,o)},Gt.prototype.residueForReal=function(t){return this.N_1.evaluateReal(t)/this.D_1.derivative().evaluateReal(t)},Gt.prototype.residueForComplex=function(t){return this.N_1.evaluateComplex(t).overComplex(this.D_1.derivative().evaluateComplex(t))},Gt.prototype.groupDelay=function(t){return this.N_1.groupDelay(t)-this.D_1.groupDelay(t)},Gt.prototype.discreteTimeGroupDelay=function(t){return this.N_1.discreteTimeGroupDelay(t)-this.D_1.discreteTimeGroupDelay(t)},Gt.prototype.toString=function(){return"Numerator: "+this.N_1+"\nDenominator: "+this.D_1+"\n"},Gt.$metadata$=m("Rational"),Ht.prototype.set__realPart_f7bi4z_k$=function(t){this._realPart_1=t},Ht.prototype.get__realPart_47rtll_k$=function(){return this._realPart_1},Ht.prototype.set__imagPart_dn087_k$=function(t){this._imagPart_1=t},Ht.prototype.get__imagPart_47qodp_k$=function(){return this._imagPart_1},Ht.prototype.get_envelope_5cdspl_k$=function(){var t=new Float32Array(this._realPart_1.length),e=0,r=this._realPart_1.length-1|0;if(e<=r)do{var n,i=e;e=e+1|0;var o=this._realPart_1[i]*this._realPart_1[i]+this._imagPart_1[i]*this._imagPart_1[i];n=Math.sqrt(o),t[i]=n}while(e<=r);return t},Ht.prototype.getRealPart=function(){return this._realPart_1.slice()},Ht.prototype.getImagPart=function(){return this._imagPart_1.slice()},Ht.$metadata$=m("ComplexAnalyticSignal"),Object.defineProperty(Ht.prototype,"envelope",{configurable:!0,get:Ht.prototype.get_envelope_5cdspl_k$}),Kt.prototype.interpolate=function(t,e){Z().stretchArray(t,this.rate_1,this.buffer_1),this.overlapAdd_1.filter(this.buffer_1,0,e,0)},Kt.$metadata$=m("Interpolator"),re.prototype.filter=function(t,e,r,n){if(t.length!==this.blockSize_1)throw w("Data array length not equal to blockSize");var i=0,o=j(this.segment_1).length-1|0;if(i<=o)do{var _=i;i=i+1|0,j(this.segment_1)[_]=0}while(i<=o);var s=0,a=this.blockSize_1;if(s<=a)do{var u=s;s=s+1|0,j(this.segment_1)[u]=t[u+e|0]}while(u!==a);j(this.fft_1).evaluate(j(this.segment_1),j(this.transform_1)),Et().dftProduct(j(this.kernel_1),j(this.transform_1),1),j(this.fft_1).evaluateInverse(j(this.transform_1),j(this.segment_1));var h=0,p=this.nfft_1-1|0;if(h<=p)do{var c=h;h=h+1|0;var f=this.shiftRegister_1,l=c;f[l]=f[l]+j(this.segment_1)[c]}while(c!==p);var y=0,$=this.blockSize_1;if(y<=$)do{var d=y;y=y+1|0,r[d+n|0]=this.shiftRegister_1[d]}while(d!==$);Z().zeroShiftArray(this.shiftRegister_1,0|-this.blockSize_1)},re.prototype.flush=function(t,e){var r=0,n=this.blockSize_1;if(r<=n)do{var i=r;r=r+1|0,t[i+e|0]=this.shiftRegister_1[i]}while(i!==n);Z().zeroShiftArray(this.shiftRegister_1,0|-this.blockSize_1)},re.$metadata$=m("OverlapAdd"),ne.prototype.desiredResponse_yw2r0a_k$=function(t){var e=0;return this.LTE(this.bands_1[0][0],t)&&this.LTE(t,this.bands_1[0][1])&&(e=-k()*t/this.delta_1),e},ne.prototype.desiredResponse=function(t){return this.desiredResponse_yw2r0a_k$(t)},ne.prototype.weight_3hkr93_k$=function(t){var e=0;return this.LTE(this.bands_1[0][0],t)&&this.LTE(t,this.bands_1[0][1])&&(e=1/t),e},ne.prototype.weight=function(t){return this.weight_3hkr93_k$(t)},ne.$metadata$=m("CenteredDifferentiator",void 0,void 0,void 0,void 0,me.prototype),ie.prototype.desiredResponse_yw2r0a_k$=function(t){var e=0;return this.LTE(this.bands_1[0][0],t)&&this.LTE(t,this.bands_1[0][1])&&(e=1),e},ie.prototype.desiredResponse=function(t){return this.desiredResponse_yw2r0a_k$(t)},ie.prototype.weight_3hkr93_k$=function(t){var e=0;return this.LTE(this.bands_1[0][0],t)&&this.LTE(t,this.bands_1[0][1])&&(e=1),e},ie.prototype.weight=function(t){return this.weight_3hkr93_k$(t)},ie.$metadata$=m("CenteredHilbertTransform",void 0,void 0,void 0,void 0,me.prototype),oe.prototype.get_GRIDDENSITY_9wle8p_k$=function(){return this.GRIDDENSITY_1},oe.$metadata$=v("Companion"),se.prototype.set_grid_bp7z6u_k$=function(t){this.grid_1=t},se.prototype.get_grid_womu8f_k$=function(){var t=this.grid_1;if(null!=t)return t;b("grid")},se.prototype.set_gridSize_fddnyk_k$=function(t){this.gridSize_1=t},se.prototype.get_gridSize_qjl6ts_k$=function(){return this.gridSize_1},se.prototype.set_X_mod0ry_k$=function(t){this.X_1=t},se.prototype.get_X_1mhr5b_k$=function(){var t=this.X_1;if(null!=t)return t;b("X")},se.prototype.set_H_3tm5oe_k$=function(t){this.H_1=t},se.prototype.get_H_1mhr4v_k$=function(){var t=this.H_1;if(null!=t)return t;b("H")},se.prototype.set_W_9ksoj5_k$=function(t){this.W_1=t},se.prototype.get_W_1mhr5a_k$=function(){var t=this.W_1;if(null!=t)return t;b("W")},se.prototype.set_bandEdgeIndices_4o2nof_k$=function(t){this.bandEdgeIndices_1=t},se.prototype.get_bandEdgeIndices_4mq7kc_k$=function(){var t=this.bandEdgeIndices_1;if(null!=t)return t;b("bandEdgeIndices")},se.prototype.set_extremaIndices_kapzx9_k$=function(t){this.extremaIndices_1=t},se.prototype.get_extremaIndices_8bux3s_k$=function(){var t=this.extremaIndices_1;if(null!=t)return t;b("extremaIndices")},se.prototype.set_containsZero_c9ryd7_k$=function(t){this.containsZero_1=t},se.prototype.get_containsZero_uv6ez4_k$=function(){return this.containsZero_1},se.prototype.set_containsPi_d8e76c_k$=function(t){this.containsPi_1=t},se.prototype.get_containsPi_hrrp4v_k$=function(){return this.containsPi_1},se.prototype.toString=function(){var t="",e=0,r=0,n=0,i=this.gridSize_1-1|0;if(n<=i)do{var o=n;n=n+1|0;var _=this.get_grid_womu8f_k$()[o],s=S(C(o))+" "+_+" "+this.get_X_1mhr5b_k$()[o]+" "+this.get_H_1mhr4v_k$()[o]+" "+this.get_W_1mhr5a_k$()[o];this.get_bandEdgeIndices_4mq7kc_k$()[r]===o&&(s+=" band edge",r=r+1|0),_===this.get_grid_womu8f_k$()[this.get_extremaIndices_8bux3s_k$()[e]]&&(s+=" extremum",e=e+1|0),t+=s+new E(I(10))}while(o!==i);return t},se.$metadata$=m("DesignGrid"),ae.prototype.desiredResponse_yw2r0a_k$=function(t){var e=0;return this.LTE(this.bands_1[1][0],t)&&this.LTE(t,this.bands_1[1][1])&&(e=1),e},ae.prototype.desiredResponse=function(t){return this.desiredResponse_yw2r0a_k$(t)},ae.prototype.weight_3hkr93_k$=function(t){var e=0;return this.LTE(this.bands_1[0][0],t)&&this.LTE(t,this.bands_1[0][1])?e=this.Ws1__1:this.LTE(this.bands_1[1][0],t)&&this.LTE(t,this.bands_1[1][1])?e=this.Wp_1:this.LTE(this.bands_1[2][0],t)&&this.LTE(t,this.bands_1[2][1])&&(e=this.Ws2__1),e},ae.prototype.weight=function(t){return this.weight_3hkr93_k$(t)},ae.$metadata$=m("EquirippleBandpass",void 0,void 0,void 0,void 0,ke.prototype),ue.prototype.remez=function(t){var e=t.get_extremaIndices_8bux3s_k$().length,r=A(),n=new Float64Array(t.gridSize_1),i=new Float64Array(t.gridSize_1),o=0;t:do{var _=this.computeDelta(t),s=this.constructInterpolatingPolynomial(t,_),a=0,u=t.gridSize_1-1|0;if(a<=u)do{var h=a;a=a+1|0,i[h]=s.evaluateAt(t.get_X_1mhr5b_k$()[h]),n[h]=i[h]-t.get_H_1mhr4v_k$()[h]}while(h!==u);r.clear_j9y8zo_k$();var p=0,c=0,f=e-1|0;if(c<=f)do{var l=c;c=c+1|0;var y=t.get_extremaIndices_8bux3s_k$()[l],$=this.sgn(n[y]),d=y+1|0;if(d=0)e:for(;this.sgn(n[d]-n[d+1|0])===$&&!((d=d-1|0)<0););d=d+1|0}r.add_1j60pz_k$(d),d!==y&&(p=p+1|0)}while(l!==f);if(t.containsZero_1&&t.containsPi_1){var k=t.gridSize_1-1|0;if(r.contains_2ehdt1_k$(0)){if(!r.contains_2ehdt1_k$(k)&&this.sgn(n[k])!==this.sgn(n[t.get_extremaIndices_8bux3s_k$()[e-1|0]])){var g=n[k],m=Math.abs(g),v=n[0];m>Math.abs(v)&&(r.removeAt_qvpkxi_k$(0),r.add_1j60pz_k$(k),p=p+1|0)}}else if(r.contains_2ehdt1_k$(k)&&this.sgn(n[0])!==this.sgn(n[t.get_extremaIndices_8bux3s_k$()[0]])){var w=n[0],b=Math.abs(w),x=n[k];b>Math.abs(x)&&(r.removeAt_qvpkxi_k$(r.get_size_woubt6_k$()-1|0),r.add_ydlf05_k$(0,0),p=p+1|0)}}if(0===p)break t;var j=0,I=e-1|0;if(j<=I)do{var E=j;j=j+1|0,t.get_extremaIndices_8bux3s_k$()[E]=r.get_fkrdnv_k$(E)}while(E!==I);o=o+1|0}while(o0?1:t<0?-1:0},ue.$metadata$=v("EquirippleDesigner"),pe.prototype.get_MACHINETOLERANCE_yw6kj3_k$=function(){return this.MACHINETOLERANCE_1},pe.$metadata$=v("Companion"),Object.defineProperty(pe.prototype,"MACHINETOLERANCE",{configurable:!0,get:pe.prototype.get_MACHINETOLERANCE_yw6kj3_k$}),fe.prototype.set_numBands_se5e1n_k$=function(t){this.numBands_1=t},fe.prototype.get_numBands_7jdbr5_k$=function(){return this.numBands_1},fe.prototype.set_N_hmx2g1_k$=function(t){this.N_1=t},fe.prototype.get_N_1mhr51_k$=function(){return this.N_1},fe.prototype.set_Nc_147wda_k$=function(t){this.Nc_1=t},fe.prototype.get_Nc_kntoki_k$=function(){return this.Nc_1},fe.prototype.set_bands_v2glr4_k$=function(t){this.bands_1=t},fe.prototype.get_bands_ip1jn9_k$=function(){return this.bands_1},fe.prototype.set__coefficients_wl2gmb_k$=function(t){this._coefficients_1=t},fe.prototype.get__coefficients_hv8wpg_k$=function(){return this._coefficients_1},fe.prototype.getCoefficients=function(){var t=this._coefficients_1,e=null==t?null:t.slice();if(null==e)throw N("Should not happen, access to coefficients before initialized.");return e},fe.prototype.set_implementation_v6iu10_k$=function(t){this.implementation_1=t},fe.prototype.get_implementation_9txf7p_k$=function(){return this.implementation_1},fe.prototype.createGrid=function(){var t=new se,e=new Int32Array(this.numBands_1),r=0,n=0,i=this.numBands_1-1|0;if(n<=i)do{var o=n;n=n+1|0,r+=this.bands_1[o][1]-this.bands_1[o][0]}while(o!==i);var _=(this.N_1+1|0)-d(2,this.numBands_1)|0,s=0,a=0,u=0,h=0,p=this.numBands_1-1|0;if(h<=p)do{var c=h;h=h+1|0;var f=this.bands_1[c][1]-this.bands_1[c][0];e[c]=T(X(_*f/r))+2|0,e[c]>u&&(u=e[c],a=c),s=s+e[c]|0}while(c!==p);for(;s<(this.N_1+1|0);){var l=e,y=a,$=l[y];l[y]=$+1|0,s=s+1|0}for(;s>(this.N_1+1|0);){var g=e,m=a,v=g[m];g[m]=v-1|0,s=s-1|0}t.bandEdgeIndices_1=new Int32Array(d(this.numBands_1,2)),t.extremaIndices_1=new Int32Array(this.N_1+1|0);var w,b=A(),x=0,j=0,I=0,E=0,C=this.numBands_1-1|0;if(E<=C)do{var S=E;E=E+1|0;var q=this.bands_1[S][1]-this.bands_1[S][0],N=1+d(e[S]-1|0,_e().GRIDDENSITY_1)|0,O=q/(N-1|0),M=this.bands_1[S][0],R=0,L=N-1|0;if(R<=L)do{var B=R;R=R+1|0;var F=M+O*B;if(b.add_1j60pz_k$(F),0===(B%_e().GRIDDENSITY_1|0)){if(0!==B&&B!==(N-1|0)){var U,D=3*z().nextFloat_jqti5l_k$();U=Math.floor(D),w=P(U)-1|0}else w=0;var V=j;j=V+1|0,t.get_extremaIndices_8bux3s_k$()[V]=x+w|0}0!==B&&B!==(N-1|0)||(t.get_bandEdgeIndices_4mq7kc_k$()[I]=x,I=I+1|0),x=x+1|0}while(B!==L)}while(S!==C);t.gridSize_1=b.get_size_woubt6_k$(),t.grid_1=new Float64Array(t.gridSize_1),t.X_1=new Float64Array(t.gridSize_1),t.H_1=new Float64Array(t.gridSize_1),t.W_1=new Float64Array(t.gridSize_1);var Y=0,Z=t.gridSize_1-1|0;if(Y<=Z)do{var W=Y;Y=Y+1|0,t.get_grid_womu8f_k$()[W]=b.get_fkrdnv_k$(W);var G,H=t.get_X_1mhr5b_k$(),K=t.get_grid_womu8f_k$()[W]*k();G=Math.cos(K),H[W]=G}while(W!==Z);return t},fe.prototype.generateCoefficients=function(){var t=this.createGrid();this.populateGrid(t),he().remez(t),this._coefficients_1=this.interpretCoefficients(he().calculateCoefficients(t,this.Nc_1))},fe.prototype.getImplementation=function(t){return Jt(this.getCoefficients(),t)},fe.prototype.filter=function(t){for(var e=16,r=4,n=this.getCoefficients(),i=(t.length+n.length|0)-1|0;e=0;)r>0?(e-=this.k_1[r-1|0]*this.state_1[r-1|0],this.state_1[r]=this.k_1[r-1|0]*e+this.state_1[r-1|0]):this.state_1[r]=e,r=r-1|0;return this.state_1[this.order_1]},Ce.prototype.filter=function(t){var e=0,r=t.length-1|0;if(e<=r)do{var n=e;e=e+1|0,t[n]=this.filterSingle(t[n])}while(e<=r)},Ce.prototype.evaluate=function(t){var e=Le().exp(new Be(0,-t));return this.T.evaluateComplex(e)},Ce.prototype.groupDelay=function(t){return this.T.discreteTimeGroupDelay(t)},Ce.prototype.constructRationalRepresentation=function(){var t=new Float64Array(this.order_1+1|0),e=new Float64Array(this.order_1+1|0);t[0]=1;var r=0,n=this.order_1-1|0;if(r<=n)do{var i=r;r=r+1|0;var o=0,_=e.length-1|0;if(o<=_)do{var s=o;o=o+1|0,e[s]=0}while(o<=_);for(var a=0;a<=i;){var u=e,h=a;u[h]=u[h]+t[a];var p=e,c=a+1|0;p[c]=p[c]+this.k_1[i]*t[i-a|0],a=a+1|0}var f=0,l=i+2|0;if(f<=l)do{var y=f;f=f+1|0,t[y]=e[y]}while(y!==l)}while(i!==n);var $=0,d=e.length-1|0;if($<=d)do{var k=$;$=$+1|0,e[k]=0}while($<=d);var g=0,m=this.order_1;if(g<=m)do{var v=g;g=g+1|0,e[v]=t[this.order_1-v|0]}while(v!==m);this.T_1=Dt(Xt(e),Xt(t))},Ce.prototype.rationalRepresentation=function(){return Yt(this.T)},Ce.prototype.toString=function(){var t="Allpass _order: "+this.order_1+new E(I(10)),e=0,r=this.order_1-1|0;if(e<=r)do{var n=e;e=e+1|0,t=n{n.d(t,{$:()=>l});var s=n(4414);const l=e=>{const{className:t,label:n,onClick:l}=e;return(0,s.jsx)("button",{className:"w-full text-white font-medium text-sm shadow-lg rounded-lg py-2 ".concat(null!==t&&void 0!==t?t:""),onClick:l,children:n})}},5660:(e,t,n)=>{n.d(t,{l:()=>g});var s=n(6583),l=n(33),i=n(8170),o=n(8874),a=n(9925),r=n(5979),c=n(3788),d=n(5383),u=n(4322),m=n(9739),v=n(226),x=n(9950),h=n(4414);const g=e=>{const{open:t,title:n,content:g,cancelText:p,submitText:f,placeholder:b,defaultValue:w,inputType:j,onSubmit:y,onClose:N,selectOptions:_}=e,A=(0,x.useRef)(null),[C,k]=(0,x.useState)("");return(0,x.useEffect)((()=>{var e;k(null!==(e=null===_||void 0===_?void 0:_[0].value)&&void 0!==e?e:"")}),[_]),(0,h.jsxs)(s.A,{onClose:N,open:t,children:[(0,h.jsx)(l.A,{children:n}),(0,h.jsxs)(i.A,{children:[g&&(0,h.jsx)(o.A,{children:g}),"select"!==j?(0,h.jsx)(a.A,{autoFocus:!0,fullWidth:!0,ref:A,className:"mt-8",type:j,label:b,defaultValue:w}):(0,h.jsxs)(r.A,{sx:{my:2},fullWidth:!0,children:[(0,h.jsx)(c.A,{id:"select",children:b}),(0,h.jsx)(d.A,{labelId:"select",label:b,defaultValue:null===_||void 0===_?void 0:_[0].value,onChange:e=>{let{target:t}=e;return k(null===t||void 0===t?void 0:t.value)},children:null===_||void 0===_?void 0:_.map((e=>{let{value:t,label:n}=e;return(0,h.jsx)(u.A,{value:t,children:n},t)}))})]})]}),(0,h.jsxs)(m.A,{children:[p&&(0,h.jsx)(v.A,{onClick:N,children:p}),(0,h.jsx)(v.A,{onClick:()=>{var e,t;y&&y("select"===j?C:null!==(e=null===(t=A.current)||void 0===t?void 0:t.value)&&void 0!==e?e:"")},children:f})]})]})}},898:(e,t,n)=>{n.d(t,{Z:()=>l});var s=n(4414);const l=e=>{const{embedded:t,className:n,label:l,sublabel:i,children:o}=e;return(0,s.jsx)("div",{className:"w-full text-gray-800",children:(0,s.jsxs)("div",{className:"flex flex-col shadow-lg rounded-lg",children:[(0,s.jsxs)("div",{className:"px-4 py-3 font-bold",children:[i&&(0,s.jsx)("h6",{className:"text-gray-500 text-xs",children:i}),(0,s.jsx)("h2",{className:t?"text-md":"text-lg",children:l})]}),(0,s.jsx)("div",{className:"p-4 m-2 flex flex-col justify-center gap-4 ".concat(null!==n&&void 0!==n?n:""),children:o})]})})}},9693:(e,t,n)=>{n.d(t,{l:()=>x});var s=n(6583),l=n(8060),i=n(3239),o=n(2053),a=n(226),r=n(249),c=n(2610),d=n(7357),u=n(3563),m=n(4745),v=n(4414);const x=e=>{const{title:t,open:n,options:x,onClose:h,onSelect:g}=e;return(0,v.jsxs)(s.A,{fullWidth:!0,onClose:h,open:n,children:[(0,v.jsx)(l.A,{className:"bg-violet-500",sx:{position:"relative"},children:(0,v.jsxs)(i.A,{children:[(0,v.jsx)(o.A,{sx:{mt:1,ml:1,flex:1},variant:"h6",children:t}),(0,v.jsx)(a.A,{autoFocus:!0,color:"inherit",onClick:h,children:"X"})]})}),(0,v.jsx)(r.A,{children:!(null===x||void 0===x||!x.length)&&x.map((e=>e.length>1&&(0,v.jsxs)("div",{children:[(0,v.jsx)(c.Ay,{children:(0,v.jsx)(d.A,{onClick:()=>g&&g(e[1]),children:(0,v.jsx)(u.A,{primary:e[0],secondary:e[3===e.length?2:1].split("\n").map((e=>(0,v.jsxs)("span",{children:[e,(0,v.jsx)("br",{})]},e)))})})}),(0,v.jsx)(m.A,{})]},e[1])))})]})}},3740:(e,t,n)=>{n.d(t,{w:()=>l});var s=n(5887);const l=function(e){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;arguments.length>1&&void 0!==arguments[1]&&arguments[1]?s.Ay.error(e,{duration:t}):s.Ay.success(e,{duration:t})}},1045:(e,t,n)=>{n.r(t),n.d(t,{default:()=>p});var s=n(9950),l=n(5297),i=n(5242),o=n(898),a=n(7818),r=n(3740),c=n(5887),d=n(4414);var u=n(2569),m=n(9145),v=n(5660),x=n(3060),h=n(9693),g=n(1596);const p=()=>{var e,t,n,p,f,b,w;const{t:j}=(0,a.Bd)(),y=(0,u.wA)(),{retention:N,duration:_,scales:A}=m.c,C=()=>setTimeout((()=>window.location.reload()),2500),[k,T]=(0,s.useState)({open:!1,inputType:"number"}),S=()=>T({...k,open:!1}),q=e=>{if(null!==e&&void 0!==e&&e.length){const t=parseInt(e),{maximum:n,minimum:s}=N;if(isNaN(t)||tn)return;(0,r.w)(j("views.setting.toasts.retention_set",{current:t})),y((0,x.L)(t)),S(),C()}else T({...k,open:!0,values:{...N},onSubmit:q,cancelText:"views.setting.forms.waveform_retention.cancel",submitText:"views.setting.forms.waveform_retention.submit",title:"views.setting.forms.waveform_retention.title",content:"views.setting.forms.waveform_retention.content",placeholder:"views.setting.forms.waveform_retention.placeholder"})},[F,I]=(0,s.useState)({open:!1}),L=()=>I({...F,open:!1}),V=e=>{if(null!==e&&void 0!==e&&e.length){if(A.some((t=>t.property().value===e))){var t;const n=null===(t=A.find((t=>t.property().value===e)))||void 0===t?void 0:t.property().name;(0,r.w)(j("views.setting.toasts.scale_changed",{scale:n})),y((0,g.L)(e)),L(),C()}}else I({...F,open:!0,onSelect:V,title:"views.setting.selects.choose_scale.title",options:A.map((e=>{let{property:t}=e;const{name:n,value:s}=t();return[n,s]}))})},{retention:W}=(0,u.d4)((e=>{let{retention:t}=e;return t})),{duration:O}=(0,u.d4)((e=>{let{duration:t}=e;return t})),{scale:Z}=(0,u.d4)((e=>{let{scale:t}=e;return t})),$=(null===(e=A.find((e=>e.property().value===Z)))||void 0===e?void 0:e.property().name)||"Unknown",[B]=(0,s.useState)([{label:"views.setting.panels.waveform_retention",content:"views.setting.contents.waveform_retention",button:"views.setting.buttons.waveform_retention",className:"bg-teal-700 hover:bg-teal-800",onClick:q,values:{current:W,...N}},{label:"views.setting.panels.query_duration",content:"views.setting.contents.query_duration",button:"views.setting.buttons.query_duration",className:"bg-lime-700 hover:bg-lime-800",onClick:e=>{if(null!==e&&void 0!==e&&e.length){const t=parseInt(e),{maximum:n,minimum:s}=N;if(isNaN(t)||tn)return;(0,r.w)(j("views.setting.toasts.duration_set",{current:t})),y((0,x.L)(t)),S(),C()}else T({...k,open:!0,values:{..._},onSubmit:q,cancelText:"views.setting.forms.query_duration.cancel",submitText:"views.setting.forms.query_duration.submit",title:"views.setting.forms.query_duration.title",content:"views.setting.forms.query_duration.content",placeholder:"views.setting.forms.query_duration.placeholder"})},values:{current:O,..._}},{label:"views.setting.panels.select_scale",button:"views.setting.buttons.select_scale",className:"bg-sky-700 hover:bg-sky-800",content:"views.setting.contents.select_scale",onClick:V,values:{scale:$}},{label:"views.setting.panels.purge_cache",content:"views.setting.contents.purge_cache",button:"views.setting.buttons.purge_cache",className:"bg-pink-700 hover:bg-pink-800",onClick:()=>{((e,t)=>{let{title:n="Confirmation",cancelText:s="Cancel",confirmText:l="OK",onConfirmed:i,onCancelled:o,timeout:a=3e4}=t;c.Ay.custom((t=>{let{visible:a,id:r}=t;return(0,d.jsxs)("div",{className:"animate-fade animate-duration-300 max-w-md w-full bg-white shadow-lg rounded-lg flex border ".concat(a?"block":"hidden"),children:[(0,d.jsx)("div",{className:"flex-1 p-4",children:(0,d.jsx)("div",{className:"flex items-start",children:(0,d.jsxs)("div",{className:"ml-3 flex-1",children:[(0,d.jsx)("p",{className:"text-sm font-medium text-gray-900",children:n}),(0,d.jsx)("p",{className:"mt-1 text-sm text-gray-500",children:e})]})})}),(0,d.jsxs)("div",{className:"flex border-gray-200 gap-2 items-center justify-center m-2",children:[(0,d.jsx)("button",{onClick:()=>{c.Ay.dismiss(r),i()},className:"w-full border rounded-lg px-3 py-2 flex text-sm font-medium text-white bg-red-500 hover:bg-red-700 ",children:l}),(0,d.jsx)("button",{onClick:()=>{c.Ay.dismiss(r),o&&o()},className:"w-full border rounded-lg px-3 py-2 flex text-sm font-medium hover:bg-gray-300",children:s})]})]})}),{duration:a})})(j("views.setting.toasts.confirm_purge"),{title:j("views.setting.toasts.confirm_title"),confirmText:j("views.setting.toasts.confirm_button"),cancelText:j("views.setting.toasts.cancel_button"),onConfirmed:()=>{(0,r.w)(j("views.setting.toasts.cache_purged")),localStorage.clear(),C()}})}}]);return(0,d.jsx)(d.Fragment,{children:(0,d.jsxs)(l.m,{className:"gap-4 grid md:grid-cols-2",children:[B.map((e=>{let{label:t,content:n,button:s,className:l,onClick:a,values:r}=e;return(0,d.jsxs)(o.Z,{className:"",label:j(t),children:[j(n,{...r}).split("\n").map((e=>(0,d.jsx)("div",{children:e},e))),(0,d.jsx)(i.$,{label:j(s),className:l,onClick:()=>a()})]},t)})),(0,d.jsx)(v.l,{...k,onClose:S,title:j(null!==(t=k.title)&&void 0!==t?t:""),cancelText:j(null!==(n=k.cancelText)&&void 0!==n?n:""),submitText:j(null!==(p=k.submitText)&&void 0!==p?p:""),placeholder:j(null!==(f=k.placeholder)&&void 0!==f?f:""),content:j(null!==(b=k.content)&&void 0!==b?b:"",{...k.values})}),(0,d.jsx)(h.l,{...F,onClose:L,title:j(null!==(w=F.title)&&void 0!==w?w:"")})]})})}}}]);
\ No newline at end of file
diff --git a/frontend/dist/static/js/548.a7a825fc.chunk.js b/frontend/dist/static/js/548.a7a825fc.chunk.js
new file mode 100644
index 00000000..a180f446
--- /dev/null
+++ b/frontend/dist/static/js/548.a7a825fc.chunk.js
@@ -0,0 +1 @@
+(self.webpackChunksrc=self.webpackChunksrc||[]).push([[548],{1274:function(t,e,i){var s;"undefined"!=typeof self&&self,t.exports=(s=i(9950),function(t){function e(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,s=new Array(e);iparseInt(i.userAgent.split("Firefox/")[1],10),i.hasTouch=!!i.win.TouchEvent,i.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],i.noop=function(){},i.supportsPassiveEvents=function(){let t=!1;if(!i.isMS){let e=Object.defineProperty({},"passive",{get:function(){t=!0}});i.win.addEventListener&&i.win.removeEventListener&&(i.win.addEventListener("testPassive",i.noop,e),i.win.removeEventListener("testPassive",i.noop,e))}return t}(),i.charts=[],i.composed=[],i.dateFormats={},i.seriesTypes={},i.symbolSizes={},i.chartCount=0,e})),i(e,"Core/Utilities.js",[e["Core/Globals.js"]],(function(t){let e,{charts:i,doc:s,win:o}=t;function r(e,i,s,n){let a=i?"Highcharts error":"Highcharts warning";32===e&&(e="".concat(a,": Deprecated member"));let l=p(e),h=l?"".concat(a," #").concat(e,": www.highcharts.com/errors/").concat(e,"/"):e.toString();if(void 0!==n){let t="";l&&(h+="?"),k(n,(function(e,i){t+="\n - ".concat(i,": ").concat(e),l&&(h+=encodeURI(i)+"="+encodeURI(e))})),h+=t}M(t,"displayError",{chart:s,code:e,message:h,params:n},(function(){if(i)throw Error(h);o.console&&-1===r.messages.indexOf(h)&&console.warn(h)})),r.messages.push(h)}function n(t,e){return parseInt(t,e||10)}function a(t){return"string"==typeof t}function l(t){let e=Object.prototype.toString.call(t);return"[object Array]"===e||"[object Array Iterator]"===e}function h(t,e){return!!t&&"object"==typeof t&&(!e||!l(t))}function d(t){return h(t)&&"number"==typeof t.nodeType}function c(t){let e=t&&t.constructor;return!(!h(t,!0)||d(t)||!e||!e.name||"Object"===e.name)}function p(t){return"number"==typeof t&&!isNaN(t)&&t<1/0&&t>-1/0}function u(t){return null!=t}function g(t,e,i){let s,o=a(e)&&!u(i),r=(e,i)=>{u(e)?t.setAttribute(i,e):o?(s=t.getAttribute(i))||"class"!==i||(s=t.getAttribute(i+"Name")):t.removeAttribute(i)};return a(e)?r(i,e):k(e,r),s}function f(t){return l(t)?t:[t]}function m(t,e){let i;for(i in t||(t={}),e)t[i]=e[i];return t}function x(){let t=arguments,e=t.length;for(let i=0;i1e14?t:parseFloat(t.toPrecision(e||14))}(r||(r={})).messages=[],Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};let S=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){let i,s=t.length;for(i=0;it.order-e.order)),t.forEach((t=>{!1===t.fn.call(e,o)&&o.preventDefault()}))}r&&!o.defaultPrevented&&r.call(e,o)}k({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},(function(e,i){t[i]=function(t){return r(32,!1,void 0,{["Highcharts.".concat(i)]:"use Array.".concat(e)}),Array.prototype[e].apply(t,[].slice.call(arguments,1))}}));let C=function(){let t=Math.random().toString(36).substring(2,9)+"-",i=0;return function(){return"highcharts-"+(e?"":t)+i++}}();o.jQuery&&(o.jQuery.fn.highcharts=function(){let e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[a(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):i[g(this[0],"data-highcharts-chart")]});let T={addEvent:function(e,i,s){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r="function"==typeof e&&e.prototype||e;Object.hasOwnProperty.call(r,"hcEvents")||(r.hcEvents={});let n=r.hcEvents;t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);let a=e.addEventListener;a&&a.call(e,i,s,!!t.supportsPassiveEvents&&{passive:void 0===o.passive?-1!==i.indexOf("touch"):o.passive,capture:!1}),n[i]||(n[i]=[]);let l={fn:s,order:"number"==typeof o.order?o.order:1/0};return n[i].push(l),n[i].sort(((t,e)=>t.order-e.order)),function(){A(e,i,s)}},arrayMax:function(t){let e=t.length,i=t[0];for(;e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){let e=t.length,i=t[0];for(;e--;)t[e]e?t-1&&o[d]){i=f(i),r[d]=[];for(let e=0;e{if(t.length>1)for(o=t.length-1;o>0;o--){var n;(s=t[o]-t[o-1])<0&&!r?(null!==(n=e)&&void 0!==n&&n(),e=void 0):s&&(void 0===i||s=i-1&&(i=Math.floor(s)),Math.max(0,i-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))}if("height"===i)return Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0));let a=o.getComputedStyle(e,void 0);return a&&(r=a.getPropertyValue(i),x(s,"opacity"!==i)&&(r=n(r))),r},inArray:function(t,e,i){return r(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),e.indexOf(t,i)},insertItem:function(t,e){let i,s=t.options.index,o=e.length;for(i=t.options.isInternal?o:0;i=t))&&(o||!(a<=(e[r]+(e[r+1]||e[r]))/2)));r++);return v(n*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:k,offset:function(t){let e=s.documentElement,i=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0};return{top:i.top+(o.pageYOffset||e.scrollTop)-(e.clientTop||0),left:i.left+(o.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:i.width,height:i.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:x,pInt:n,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:A,splat:f,stableSort:function(t,e){let i,s,o=t.length;for(s=0;s0?setTimeout(t,e,i):(t.call(0,i),-1)},timeUnits:{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},uniqueKey:C,useSerialIds:function(t){return e=x(t,e)},wrap:function(t,e,i){let s=t[e];t[e]=function(){let t=arguments,e=this;return i.apply(this,[function(){return s.apply(e,arguments.length?arguments:t)}].concat([].slice.call(arguments)))}}};return T})),i(e,"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:{},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"}})),i(e,"Core/Color/Palettes.js",[],(function(){return{colors:["#2caffe","#544fc5","#00e272","#fe6a35","#6b8abc","#d568fb","#2ee0ca","#fa4b42","#feb56a","#91e8e1"]}})),i(e,"Core/Time.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e){let{win:i}=t,{defined:s,error:o,extend:r,isNumber:n,isObject:a,merge:l,objectEach:h,pad:d,pick:c,splat:p,timeUnits:u}=e,g=t.isSafari&&i.Intl&&i.Intl.DateTimeFormat.prototype.formatRange,f=t.isSafari&&i.Intl&&!i.Intl.DateTimeFormat.prototype.formatRange;return class{constructor(t){this.options={},this.useUTC=!1,this.variableTimezone=!1,this.Date=i.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}get(t,e){if(this.variableTimezone||this.timezoneOffset){let i=e.getTime(),s=i-this.getTimezoneOffset(e);e.setTime(s);let o=e["getUTC"+t]();return e.setTime(i),o}return this.useUTC?e["getUTC"+t]():e["get"+t]()}set(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&this.getTimezoneOffset(e)%36e5==0)return e["setUTC"+t](i);let s=this.getTimezoneOffset(e),o=e.getTime()-s;e.setTime(o),e["setUTC"+t](i);let r=this.getTimezoneOffset(e);return o=e.getTime()+r,e.setTime(o)}return this.useUTC||g&&"FullYear"===t?e["setUTC"+t](i):e["set"+t](i)}update(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=c(t.useUTC,!0);this.options=t=l(!0,this.options,t),this.Date=t.Date||i.Date||Date,this.useUTC=e,this.timezoneOffset=e&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)}makeTime(t,e,i,s,o,r){let n,a,l;return this.useUTC?(n=this.Date.UTC.apply(0,arguments),a=this.getTimezoneOffset(n),n+=a,a!==(l=this.getTimezoneOffset(n))?n+=l-a:a-36e5!==this.getTimezoneOffset(n-36e5)||f||(n-=36e5)):n=new this.Date(t,e,c(i,1),c(s,0),c(o,0),c(r,0)).getTime(),n}timezoneOffsetFunction(){let t=this,e=this.options,i=e.getTimezoneOffset;return this.useUTC?e.timezone?t=>{try{let[i,s,o,r,a=0]=Intl.DateTimeFormat("en",{timeZone:e.timezone,timeZoneName:"shortOffset"}).format(t).split(/(GMT|:)/).map(Number),l=-36e5*(o+a/60);if(n(l))return l}catch(t){o(34)}return 0}:this.useUTC&&i?t=>6e4*i(t.valueOf()):()=>6e4*(t.timezoneOffset||0):t=>6e4*new Date(t.toString()).getTimezoneOffset()}dateFormat(e,i,o){if(!s(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");let n=this,a=new this.Date(i),l=this.get("Hours",a),p=this.get("Day",a),u=this.get("Date",a),g=this.get("Month",a),f=this.get("FullYear",a),m=t.defaultOptions.lang,x=m&&m.weekdays,b=m&&m.shortWeekdays,y=r({a:b?b[p]:x[p].substr(0,3),A:x[p],d:d(u),e:d(u,2," "),w:p,b:m.shortMonths[g],B:m.months[g],m:d(g+1),o:g+1,y:f.toString().substr(2,2),Y:f,H:d(l),k:l,I:d(l%12||12),l:l%12||12,M:d(this.get("Minutes",a)),p:l<12?"AM":"PM",P:l<12?"am":"pm",S:d(this.get("Seconds",a)),L:d(Math.floor(i%1e3),3)},t.dateFormats);return h(y,(function(t,s){for(;-1!==e.indexOf("%"+s);)e=e.replace("%"+s,"function"==typeof t?t.call(n,i):t)})),o?e.substr(0,1).toUpperCase()+e.substr(1):e}resolveDTLFormat(t){return a(t,!0)?t:{main:(t=p(t))[0],from:t[1],to:t[2]}}getTimeTicks(t,e,i,o){let n,a,l,h,d=this,p=d.Date,g=[],f={},m=new p(e),x=t.unitRange,b=t.count||1;if(o=c(o,1),s(e)){d.set("Milliseconds",m,x>=u.second?0:b*Math.floor(d.get("Milliseconds",m)/b)),x>=u.second&&d.set("Seconds",m,x>=u.minute?0:b*Math.floor(d.get("Seconds",m)/b)),x>=u.minute&&d.set("Minutes",m,x>=u.hour?0:b*Math.floor(d.get("Minutes",m)/b)),x>=u.hour&&d.set("Hours",m,x>=u.day?0:b*Math.floor(d.get("Hours",m)/b)),x>=u.day&&d.set("Date",m,x>=u.month?1:Math.max(1,b*Math.floor(d.get("Date",m)/b))),x>=u.month&&(d.set("Month",m,x>=u.year?0:b*Math.floor(d.get("Month",m)/b)),a=d.get("FullYear",m)),x>=u.year&&(a-=a%b,d.set("FullYear",m,a)),x===u.week&&(h=d.get("Day",m),d.set("Date",m,d.get("Date",m)-h+o+(h4*u.month||d.getTimezoneOffset(e)!==d.getTimezoneOffset(i));let p=m.getTime();for(n=1;p1?p=d.makeTime(a,t,r,c+n*b):p+=x*b:p=d.makeTime(a,t,r+n*b*(x===u.day?1:7)),n++;g.push(p),x<=u.hour&&g.length<1e4&&g.forEach((function(t){t%18e5==0&&"000000000"===d.dateFormat("%H%M%S%L",t)&&(f[t]="day")}))}return g.info=r(t,{higherRanks:f,totalRange:x*b}),g}getDateFormat(t,e,i,s){let o=this.dateFormat("%m-%d %H:%M:%S.%L",e),r="01-01 00:00:00.000",n={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond",l=a;for(a in u){if(t===u.week&&+this.dateFormat("%w",e)===i&&o.substr(6)===r.substr(6)){a="week";break}if(u[a]>t){a=l;break}if(n[a]&&o.substr(n[a])!==r.substr(n[a]))break;"week"!==a&&(l=a)}return this.resolveDTLFormat(s[a]).main}}})),i(e,"Core/Defaults.js",[e["Core/Chart/ChartDefaults.js"],e["Core/Globals.js"],e["Core/Color/Palettes.js"],e["Core/Time.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o){let{isTouchDevice:r,svg:n}=e,{merge:a}=o,l={colors:i.colors,symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],decimalPoint:".",numericSymbols:["k","M","G","T","P","E"],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:t,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:n,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:r?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',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"}};l.chart.styledMode=!1;let h=new s(l.time);return{defaultOptions:l,defaultTime:h,getOptions:function(){return l},setOptions:function(t){return a(!0,l,t),(t.time||t.global)&&(e.time?e.time.update(a(l.global,l.time,t.global,t.time)):e.time=h),l}}})),i(e,"Core/Color/Color.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e){let{isNumber:i,merge:s,pInt:o}=e;class r{static parse(t){return t?new r(t):r.None}constructor(e){let i,s,o,n;this.rgba=[NaN,NaN,NaN,NaN],this.input=e;let a=t.Color;if(a&&a!==r)return new a(e);if("object"==typeof e&&void 0!==e.stops)this.stops=e.stops.map((t=>new r(t[1])));else if("string"==typeof e){if(this.input=e=r.names[e.toLowerCase()]||e,"#"===e.charAt(0)){let t=e.length,i=parseInt(e.substr(1),16);7===t?s=[(16711680&i)>>16,(65280&i)>>8,255&i,1]:4===t&&(s=[(3840&i)>>4|(3840&i)>>8,(240&i)>>4|240&i,(15&i)<<4|15&i,1])}if(!s)for(o=r.parsers.length;o--&&!s;)(i=(n=r.parsers[o]).regex.exec(e))&&(s=n.parse(i))}s&&(this.rgba=s)}get(t){let e=this.input,o=this.rgba;if("object"==typeof e&&void 0!==this.stops){let i=s(e);return i.stops=[].slice.call(i.stops),this.stops.forEach(((e,s)=>{i.stops[s]=[i.stops[s][0],e.get(t)]})),i}return o&&i(o[0])?"rgb"===t||!t&&1===o[3]?"rgb("+o[0]+","+o[1]+","+o[2]+")":"a"===t?"".concat(o[3]):"rgba("+o.join(",")+")":e}brighten(t){let e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(let i=0;i<3;i++)e[i]+=o(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 s=this.rgba,o=t.rgba;if(!i(s[0])||!i(o[0]))return t.input||"none";let r=1!==o[3]||1!==s[3];return(r?"rgba(":"rgb(")+Math.round(o[0]+(s[0]-o[0])*(1-e))+","+Math.round(o[1]+(s[1]-o[1])*(1-e))+","+Math.round(o[2]+(s[2]-o[2])*(1-e))+(r?","+(o[3]+(s[3]-o[3])*(1-e)):"")+")"}}return r.names={white:"#ffffff",black:"#000000"},r.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(t){return[o(t[1]),o(t[2]),o(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[o(t[1]),o(t[2]),o(t[3]),1]}}],r.None=new r(""),r})),i(e,"Core/Animation/Fx.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){let{parse:s}=t,{win:o}=e,{isNumber:r,objectEach:n}=i;class a{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,o=[];if(1!==s&&e&&i)if(e.length===i.length&&s<1)for(let n=0;n=l+this.startTime?(this.now=this.end,this.pos=1,this.update(),h[this.prop]=!0,i=!0,n(h,(function(t){!0!==t&&(i=!1)})),i&&a&&a.call(r),e=!1):(this.pos=o.easing((s-this.startTime)/l),this.now=this.start+(this.end-this.start)*this.pos,this.update(),e=!0),e}initPath(t,e,i){let s,o,n,a,l=t.startX,h=t.endX,d=i.slice(),c=t.isArea,p=c?2:1,u=e&&e.slice();if(!u)return[d,d];function g(t,e){for(;t.length{let s=d(t.options.animation);a=n(e)&&i(e.defer)?o.defer:Math.max(a,s.duration+s.defer),l=Math.min(o.duration,s.duration)})),t.renderer.forExport&&(a=0),{defer:Math.max(0,a-l),duration:Math.min(a,l)}},setAnimation:function(t,e){e.renderer.globalAnimation=h(t,e.options.chart.animation,!0)},stop:c}})),i(e,"Core/Renderer/HTML/AST.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e){let{SVG_NS:i,win:s}=t,{attr:o,createElement:r,css:n,error:a,isFunction:l,isString:h,objectEach:d,splat:c}=e,{trustedTypes:p}=s,u=p&&l(p.createPolicy)&&p.createPolicy("highcharts",{createHTML:t=>t}),g=u?u.createHTML(""):"",f=function(){try{return!!(new DOMParser).parseFromString(g,"text/html")}catch(t){return!1}}();class m{static filterUserAttributes(t){return d(t,((e,i)=>{let s=!0;-1===m.allowedAttributes.indexOf(i)&&(s=!1),-1!==["background","dynsrc","href","lowsrc","src"].indexOf(i)&&(s=h(e)&&m.allowedReferences.some((t=>0===e.indexOf(t)))),s||(a(33,!1,void 0,{"Invalid attribute in config":"".concat(i)}),delete t[i]),h(e)&&t[i]&&(t[i]=e.replace(/{let i=e.split(":").map((t=>t.trim())),s=i.shift();return s&&i.length&&(t[s.replace(/-([a-z])/g,(t=>t[1].toUpperCase()))]=i.join(":")),t}),{})}static setElementHTML(t,e){t.innerHTML=m.emptyHTML,e&&new m(e).addToDOM(t)}constructor(t){this.nodes="string"==typeof t?this.parseMarkup(t):t}addToDOM(e){return function e(s,r){let l;return c(s).forEach((function(s){let h,c=s.tagName,p=s.textContent?t.doc.createTextNode(s.textContent):void 0,u=m.bypassHTMLFiltering;if(c)if("#text"===c)h=p;else if(-1!==m.allowedTags.indexOf(c)||u){let a="svg"===c?i:r.namespaceURI||i,l=t.doc.createElementNS(a,c),g=s.attributes||{};d(s,(function(t,e){"tagName"!==e&&"attributes"!==e&&"children"!==e&&"style"!==e&&"textContent"!==e&&(g[e]=t)})),o(l,u?g:m.filterUserAttributes(g)),s.style&&n(l,s.style),p&&l.appendChild(p),e(s.children||[],l),h=l}else a(33,!1,void 0,{"Invalid tagName in config":c});h&&r.appendChild(h),l=h})),l}(this.nodes,e)}parseMarkup(t){let e,i=[];if(t=t.trim().replace(/ style=(["'])/g," data-style=$1"),f)e=(new DOMParser).parseFromString(u?u.createHTML(t):t,"text/html");else{let i=r("div");i.innerHTML=t,e={body:i}}let s=(t,e)=>{let i=t.nodeName.toLowerCase(),o={tagName:i};"#text"===i&&(o.textContent=t.textContent||"");let r=t.attributes;if(r){let t={};[].forEach.call(r,(e=>{"data-style"===e.name?o.style=m.parseStyle(e.value):t[e.name]=e.value})),o.attributes=t}if(t.childNodes.length){let e=[];[].forEach.call(t.childNodes,(t=>{s(t,e)})),e.length&&(o.children=e)}e.push(o)};return[].forEach.call(e.body.childNodes,(t=>s(t,i))),i}}return m.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","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"],m.allowedReferences=["https://","http://","mailto:","/","../","./","#"],m.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"],m.emptyHTML=g,m.bypassHTMLFiltering=!1,m})),i(e,"Core/Templating.js",[e["Core/Defaults.js"],e["Core/Utilities.js"]],(function(t,e){let{defaultOptions:i,defaultTime:s}=t,{extend:o,getNestedProperty:r,isArray:n,isNumber:a,isObject:l,isString:h,pick:d,pInt:c}=e,p={add:(t,e)=>t+e,divide:(t,e)=>0!==e?t/e:"",eq:(t,e)=>t==e,each:function(t){let e=arguments[arguments.length-1];return!!n(t)&&t.map(((i,s)=>u(e.body,o(l(i)?i:{"@this":i},{"@index":s,"@first":0===s,"@last":s===t.length-1})))).join("")},ge:(t,e)=>t>=e,gt:(t,e)=>t>e,if:t=>!!t,le:(t,e)=>t<=e,lt:(t,e)=>tt*e,ne:(t,e)=>t!=e,subtract:(t,e)=>t-e,unless:t=>!t};function u(){let t,e,o,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",a=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,h=/\{([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= #\(\)]+)\}/g,c=/\(([a-zA-Z0-9\:\.\,;\-\/<>%_@"'= ]+)\)/g,f=[],m=/f$/,x=/\.([0-9])/,b=i.lang,y=l&&l.time||s,v=l&&l.numberFormatter||g,S=function(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e||"false"!==e&&((t=Number(e)).toString()===e?t:r(e,a))},k=0;for(;null!==(t=h.exec(n));){var A;let i=c.exec(t[1]);i&&(t=i,o=!0),e&&e.isBlock||(e={ctx:a,expression:t[1],find:t[0],isBlock:"#"===t[1].charAt(0),start:t.index,startInner:t.index+t[0].length,length:t[0].length});let s=t[1].split(" ")[0].replace("#","");p[s]&&(e.isBlock&&s===e.fn&&k++,e.fn||(e.fn=s));let r="else"===t[1];if(e.isBlock&&e.fn&&(t[1]==="/".concat(e.fn)||r))if(k)!r&&k--;else{let i=e.startInner,s=n.substr(i,t.index-i);void 0===e.body?(e.body=s,e.startInner=t.index+t[0].length):e.elseBody=s,e.find+=s+t[0],r||(f.push(e),e=void 0)}else e.isBlock||f.push(e);if(i&&(null===(A=e)||void 0===A||!A.isBlock))break}return f.forEach((t=>{let e,i,{body:s,elseBody:o,expression:r,fn:l}=t;if(l){let n=[t],h=r.split(" ");for(i=p[l].length;i--;)n.unshift(S(h[i+1]));e=p[l].apply(a,n),t.isBlock&&"boolean"==typeof e&&(e=u(e?s:o,a))}else{let t=r.split(":");if(e=S(t.shift()||""),t.length&&"number"==typeof e){let i=t.join(":");if(m.test(i)){let t=parseInt((i.match(x)||["","-1"])[1],10);null!==e&&(e=v(e,t,b.decimalPoint,i.indexOf(",")>-1?b.thousandsSep:""))}else e=y.dateFormat(i,e)}}n=n.replace(t.find,d(e,""))})),o?u(n,a,l):n}function g(t,e,s,o){let r,n;t=+t||0,e=+e;let l=i.lang,h=(t.toString().split(".")[1]||"").split("e")[0].length,p=t.toString().split("e"),u=e;-1===e?e=Math.min(h,20):a(e)?e&&p[1]&&p[1]<0&&((n=e+ +p[1])>=0?(p[0]=(+p[0]).toExponential(n).split("e")[0],e=n):(p[0]=p[0].split(".")[0]||0,t=e<20?(p[0]*Math.pow(10,p[1])).toFixed(e):0,p[1]=0)):e=2;let g=(Math.abs(p[1]?p[0]:t)+Math.pow(10,-Math.max(e,h)-1)).toFixed(e),f=String(c(g)),m=f.length>3?f.length%3:0;return s=d(s,l.decimalPoint),o=d(o,l.thousandsSep),r=(t<0?"-":"")+(m?f.substr(0,m)+o:""),0>+p[1]&&!u?r="0":r+=f.substr(m).replace(/(\d{3})(?=\d)/g,"$1"+o),e&&(r+=s+g.slice(-e)),p[1]&&0!=+r&&(r+="e"+p[1]),r}return{dateFormat:function(t,e,i){return s.dateFormat(t,e,i)},format:u,helpers:p,numberFormat:g}})),i(e,"Core/Renderer/RendererUtilities.js",[e["Core/Utilities.js"]],(function(t){var e;let{clamp:i,pick:s,pushUnique:o,stableSort:r}=t;return(e||(e={})).distribute=function t(e,n,a){let l,h,d,c,p,u,g=e,f=g.reducedLen||n,m=(t,e)=>t.target-e.target,x=[],b=e.length,y=[],v=x.push,S=!0,k=0;for(l=b;l--;)k+=e[l].size;if(k>f){for(r(e,((t,e)=>(e.rank||0)-(t.rank||0))),d=(u=e[0].rank===e[e.length-1].rank)?b/2:-1,h=u?d:b-1;d&&k>f;)c=e[l=Math.floor(h)],o(y,l)&&(k-=c.size),h+=d,u&&h>=e.length&&(d/=2,h=d);y.sort(((t,e)=>e-t)).forEach((t=>v.apply(x,e.splice(t,1))))}for(r(e,m),e=e.map((t=>({size:t.size,targets:[t.target],align:s(t.align,.5)})));S;){for(l=e.length;l--;)c=e[l],p=(Math.min.apply(0,c.targets)+Math.max.apply(0,c.targets))/2,c.pos=i(p-c.size*c.align,0,n-c.size);for(l=e.length,S=!1;l--;)l>0&&e[l-1].pos+e[l-1].size>e[l].pos&&(e[l-1].size+=e[l].size,e[l-1].targets=e[l-1].targets.concat(e[l].targets),e[l-1].align=.5,e[l-1].pos+e[l-1].size>n&&(e[l-1].pos=n-e[l-1].size),e.splice(l,1),S=!0)}return v.apply(g,x),l=0,e.some((e=>{let i=0;return(e.targets||[]).some((()=>(g[l].pos=e.pos+i,void 0!==a&&Math.abs(g[l].pos-g[l].target)>a?(g.slice(0,l+1).forEach((t=>delete t.pos)),g.reducedLen=(g.reducedLen||n)-.1*n,g.reducedLen>.1*n&&t(g,n,a),!0):(i+=g[l].size,l++,!1))))})),r(g,m),g},e})),i(e,"Core/Renderer/SVG/SVGElement.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i,s){let{animate:o,animObject:r,stop:n}=t,{deg2rad:a,doc:l,noop:h,svg:d,SVG_NS:c,win:p}=i,{addEvent:u,attr:g,createElement:f,css:m,defined:x,erase:b,extend:y,fireEvent:v,isArray:S,isFunction:k,isObject:A,isString:M,merge:C,objectEach:T,pick:w,pInt:P,syncTimeout:L,uniqueKey:E}=s;class O{_defaultGetter(t){let e=w(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0);return/^[\-0-9\.]+$/.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),void 0!==this.textStr&&"text"===this.element.nodeName&&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(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "))!==i&&this.attr("class",t),this}afterSetters(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}align(t,e,i){let s,o,r,n,a,l={},h=this.renderer,d=h.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||M(i))&&(this.alignTo=r=i||"renderer",b(d,this),d.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,r=this.alignTo),i=w(i,h[r],"scrollablePlotBox"===r?h.plotBox:void 0,h);let c=t.align,p=t.verticalAlign;return s=(i.x||0)+(t.x||0),o=(i.y||0)+(t.y||0),"right"===c?n=1:"center"===c&&(n=2),n&&(s+=(i.width-(t.width||0))/n),l[e?"translateX":"x"]=Math.round(s),"bottom"===p?a=1:"middle"===p&&(a=2),a&&(o+=(i.height-(t.height||0))/a),l[e?"translateY":"y"]=Math.round(o),this[this.placed?"animate":"attr"](l),this.placed=!0,this.alignAttr=l,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=r(w(e,this.renderer.globalAnimation,!0)),n=s.defer;return l.hidden&&(s.duration=0),0!==s.duration?(i&&(s.complete=i),L((()=>{this.element&&o(this,t,s)}),n)):(this.attr(t,void 0,i||s.complete),T(t,(function(t,e){s.step&&s.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this}applyTextOutline(t){let e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));let s=t.split(" "),o=s[s.length-1],r=s[0];if(r&&"none"!==r&&i.svg){this.fakeTS=!0,r=r.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*Number(e)+i})),this.removeTextOutline();let t=l.createElementNS(c,"tspan");g(t,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":r,"stroke-linejoin":"round"});let i=e.querySelector("textPath")||e;[].forEach.call(i.childNodes,(e=>{let i=e.cloneNode(!0);i.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((t=>i.removeAttribute(t))),t.appendChild(i)}));let s=0;[].forEach.call(i.querySelectorAll("text tspan"),(t=>{s+=Number(t.getAttribute("dy"))}));let n=l.createElementNS(c,"tspan");n.textContent="\u200b",g(n,{x:Number(e.getAttribute("x")),dy:-s}),t.appendChild(n),i.insertBefore(t,i.firstChild)}}attr(t,e,i,s){let o,r,a,l=this.element,h=O.symbolCustomAttribs,d=this;return"string"==typeof t&&void 0!==e&&(o=t,(t={})[o]=e),"string"==typeof t?d=(this[t+"Getter"]||this._defaultGetter).call(this,t,l):(T(t,(function(e,i){a=!1,s||n(this,i),this.symbolName&&-1!==h.indexOf(i)&&(r||(this.symbolAttr(t),r=!0),a=!0),this.rotation&&("x"===i||"y"===i)&&(this.doTransform=!0),a||(this[i+"Setter"]||this._defaultSetter).call(this,e,i,l)}),this),this.afterSetters()),i&&i.call(this),d}clip(t){if(t&&!t.clipPath){let e=E()+"-",i=this.renderer.createElement("clipPath").attr({id:e}).add(this.renderer.defs);y(t,{clipPath:i,id:e,count:0}),t.add(i)}return this.attr("clip-path",t?"url(".concat(this.renderer.url,"#").concat(t.id,")"):"none")}crisp(t,e){e=e||t.strokeWidth||0;let i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),x(t.strokeWidth)&&(t.strokeWidth=e),t}complexColor(t,i,s){let o,r,n,a,l,h,d,c,p,u,g,f=this.renderer,m=[];v(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?r="radialGradient":t.linearGradient&&(r="linearGradient"),r){if(n=t[r],l=f.gradients,h=t.stops,p=s.radialReference,S(n)&&(t[r]=n={x1:n[0],y1:n[1],x2:n[2],y2:n[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===r&&p&&!x(n.gradientUnits)&&(a=n,n=C(n,f.getRadialAttr(p,a),{gradientUnits:"userSpaceOnUse"})),T(n,(function(t,e){"id"!==e&&m.push(e,t)})),T(h,(function(t){m.push(t)})),l[m=m.join(",")])u=l[m].attr("id");else{n.id=u=E();let t=l[m]=f.createElement(r).attr(n).add(f.defs);t.radAttr=a,t.stops=[],h.forEach((function(i){0===i[1].indexOf("rgba")?(d=(o=e.parse(i[1])).get("rgb"),c=o.get("a")):(d=i[1],c=1);let s=f.createElement("stop").attr({offset:i[0],"stop-color":d,"stop-opacity":c}).add(t);t.stops.push(s)}))}g="url("+f.url+"#"+u+")",s.setAttribute(i,g),s.gradient=m,t.toString=function(){return g}}}))}css(t){let e,i=this.styles,s={},o=this.element,r=!i;if(i&&T(t,(function(t,e){i&&i[e]!==t&&(s[e]=t,r=!0)})),r){i&&(t=y(i,s)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===o.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=P(t.width)),this.styles=t,e&&!d&&this.renderer.forExport&&delete t.width;let r=C(t);o.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach((t=>r&&delete r[t])),r.color&&(r.fill=r.color)),m(o,r)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}dashstyleSetter(t){let e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){let s=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",");for(e=s.length;e--;)s[e]=""+P(s[e])*w(i,NaN);t=s.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}destroy(){var t;let e,i,s=this,o=s.element||{},r=s.renderer,a=o.ownerSVGElement,l="SPAN"===o.nodeName&&s.parentGroup||void 0;if(o.onclick=o.onmouseout=o.onmouseover=o.onmousemove=o.point=null,n(s),s.clipPath&&a){let t=s.clipPath;[].forEach.call(a.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(e){e.getAttribute("clip-path").indexOf(t.element.id)>-1&&e.removeAttribute("clip-path")})),s.clipPath=t.destroy()}if(s.connector=null===(t=s.connector)||void 0===t?void 0:t.destroy(),s.stops){for(i=0;ie&&e.join?(i?t+" ":"")+e.join(" "):(e||"").toString()),"")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)}fillSetter(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)}hrefSetter(t,e,i){i.setAttributeNS("http://www.w3.org/1999/xlink",e,t)}getBBox(t,e){let i,s,o,r,n,{alignValue:l,element:h,renderer:d,styles:c,textStr:p}=this,{cache:u,cacheKeys:g}=d,f=h.namespaceURI===this.SVG_NS,b=w(e,this.rotation,0),v=d.styledMode?h&&O.prototype.getStyle.call(h,"font-size"):c&&c.fontSize;if(x(p)&&(-1===(n=p.toString()).indexOf("<")&&(n=n.replace(/[0-9]/g,"0")),n+=["",d.rootFontSize,v,b,this.textWidth,l,c&&c.textOverflow,c&&c.fontWeight].join(",")),n&&!t&&(i=u[n]),!i){if(f||d.forExport){try{r=this.fakeTS&&function(t){let e=h.querySelector(".highcharts-text-outline");e&&m(e,{display:t})},k(r)&&r("none"),i=h.getBBox?y({},h.getBBox()):{width:h.offsetWidth,height:h.offsetHeight,x:0,y:0},k(r)&&r("")}catch(t){}(!i||i.width<0)&&(i={x:0,y:0,width:0,height:0})}else i=this.htmlGetBBox();if(s=i.width,o=i.height,f&&(i.height=o={"11px,17":14,"13px,20":16}["".concat(v||"",",").concat(Math.round(o))]||o),b){let t=Number(h.getAttribute("y")||0)-i.y,e={right:1,center:.5}[l||0]||0,r=b*a,n=(b-90)*a,d=s*Math.cos(r),c=s*Math.sin(r),p=Math.cos(n),u=Math.sin(n),g=i.x+e*(s-d)+t*p,f=g+d,m=f-o*p,x=m-d,y=i.y+t-e*c+t*u,v=y+c,S=v-o*u,k=S-c;i.x=Math.min(g,f,m,x),i.y=Math.min(y,v,S,k),i.width=Math.max(g,f,m,x)-i.x,i.height=Math.max(y,v,S,k)-i.y}}if(n&&(""===p||i.height>0)){for(;g.length>250;)delete u[g.shift()];u[n]||g.push(n),u[n]=i}return i}getStyle(t){return p.getComputedStyle(this.element||this,"").getPropertyValue(t)}hasClass(t){return-1!==(""+this.attr("class")).split(" ").indexOf(t)}hide(){return this.attr({visibility:"hidden"})}htmlGetBBox(){return{height:0,width:0,x:0,y:0}}constructor(t,e){this.onEvents={},this.opacity=1,this.SVG_NS=c,this.element="span"===e?f(e):l.createElementNS(this.SVG_NS,e),this.renderer=t,v(this,"afterInit")}on(t,e){let{onEvents:i}=this;return i[t]&&i[t](),i[t]=u(this.element,t,e),this}opacitySetter(t,e,i){let s=Number(Number(t).toFixed(3));this.opacity=s,i.setAttribute(e,s)}removeClass(t){return this.attr("class",(""+this.attr("class")).replace(M(t)?RegExp("(^| )".concat(t,"( |$)")):t," ").replace(/ +/g," ").trim())}removeTextOutline(){let t=this.element.querySelector("tspan.highcharts-text-outline");t&&this.safeRemoveChild(t)}safeRemoveChild(t){let e=t.parentNode;e&&e.removeChild(t)}setRadialReference(t){let e=this.element.gradient&&this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this}setTextPath(t,e){e=C(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},e);let i=this.renderer.url,s=this.text||this,o=s.textPath,{attributes:r,enabled:n}=e;if(t=t||o&&o.path,o&&o.undo(),t&&n){let e=u(s,"afterModifyTree",(e=>{if(t&&n){let o=t.attr("id");o||t.attr("id",o=E());let n={x:0,y:0};x(r.dx)&&(n.dx=r.dx,delete r.dx),x(r.dy)&&(n.dy=r.dy,delete r.dy),s.attr(n),this.attr({transform:""}),this.box&&(this.box=this.box.destroy());let a=e.nodes.slice(0);e.nodes.length=0,e.nodes[0]={tagName:"textPath",attributes:y(r,{"text-anchor":r.textAnchor,href:"".concat(i,"#").concat(o)}),children:a}}}));s.textPath={path:t,undo:e}}else s.attr({dx:0,dy:0}),delete s.textPath;return this.added&&(s.textCache="",this.renderer.buildText(s)),this}shadow(t){var e;let{renderer:i}=this,s=C(90===(null===(e=this.parentGroup)||void 0===e?void 0:e.rotation)?{offsetX:-1,offsetY:-1}:{},A(t)?t:{}),o=i.shadowDefinition(s);return this.attr({filter:t?"url(".concat(i.url,"#").concat(o,")"):"none"})}show(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.attr({visibility:t?"inherit":"visible"})}"stroke-widthSetter"(t,e,i){this[e]=t,i.setAttribute(e,t)}strokeWidth(){if(!this.renderer.styledMode)return this["stroke-width"]||0;let t,e=this.getStyle("stroke-width"),i=0;return e.indexOf("px")===e.length-2?i=P(e):""!==e&&(g(t=l.createElementNS(c,"rect"),{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i}symbolAttr(t){let e=this;O.symbolCustomAttribs.forEach((function(i){e[i]=w(t[i],e[i])})),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})}textSetter(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))}titleSetter(t){let e=this.element,i=e.getElementsByTagName("title")[0]||l.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(w(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}toFront(){let t=this.element;return t.parentNode.appendChild(t),this}translate(t,e){return this.attr({translateX:t,translateY:e})}updateTransform(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform",{element:e,matrix:i,rotation:s=0,scaleX:o,scaleY:r,translateX:n=0,translateY:a=0}=this,l=["translate("+n+","+a+")"];x(i)&&l.push("matrix("+i.join(",")+")"),s&&l.push("rotate("+s+" "+w(this.rotationOriginX,e.getAttribute("x"),0)+" "+w(this.rotationOriginY,e.getAttribute("y")||0)+")"),(x(o)||x(r))&&l.push("scale("+w(o,1)+" "+w(r,1)+")"),l.length&&!(this.text||this).textPath&&e.setAttribute(t,l.join(" "))}visibilitySetter(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}xGetter(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}zIndexSetter(t,e){let i,s,o,r,n,a=this.renderer,l=this.parentGroup,h=(l||a).element||a.box,d=this.element,c=h===a.box,p=!1,u=this.added;if(x(t)?(d.setAttribute("data-z-index",t),t=+t,this[e]===t&&(u=!1)):x(this[e])&&d.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&l&&(l.handleZ=!0),n=(i=h.childNodes).length-1;n>=0&&!p;n--)r=!x(o=(s=i[n]).getAttribute("data-z-index")),s!==d&&(t<0&&r&&!c&&!n?(h.insertBefore(d,i[n]),p=!0):(P(o)<=t||r&&(!x(t)||t>=0))&&(h.insertBefore(d,i[n+1]),p=!0));p||(h.insertBefore(d,i[c?3:0]),p=!0)}return p}}return O.symbolCustomAttribs=["anchorX","anchorY","clockwise","end","height","innerR","r","start","width","x","y"],O.prototype.strokeSetter=O.prototype.fillSetter,O.prototype.yGetter=O.prototype.xGetter,O.prototype.matrixSetter=O.prototype.rotationOriginXSetter=O.prototype.rotationOriginYSetter=O.prototype.rotationSetter=O.prototype.scaleXSetter=O.prototype.scaleYSetter=O.prototype.translateXSetter=O.prototype.translateYSetter=O.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},O})),i(e,"Core/Renderer/RendererRegistry.js",[e["Core/Globals.js"]],(function(t){var e,i;let s;return(i=e||(e={})).rendererTypes={},i.getRendererType=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return i.rendererTypes[t]||i.rendererTypes[s]},i.registerRendererType=function(e,o,r){i.rendererTypes[e]=o,(!s||r)&&(s=e,t.Renderer=o)},e})),i(e,"Core/Renderer/SVG/SVGLabel.js",[e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t,e){let{defined:i,extend:s,isNumber:o,merge:r,pick:n,removeEvent:a}=e;class l extends t{constructor(t,e,i,s,o,r,n,a,h,d){let c;super(t,"g"),this.paddingLeftSetter=this.paddingSetter,this.paddingRightSetter=this.paddingSetter,this.textStr=e,this.x=i,this.y=s,this.anchorX=r,this.anchorY=n,this.baseline=h,this.className=d,this.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&this.addClass("highcharts-"+d),this.text=t.text(void 0,0,0,a).attr({zIndex:1}),"string"==typeof o&&((c=/^url\((.*?)\)$/.test(o))||this.renderer.symbols[o])&&(this.symbolKey=o),this.bBox=l.emptyBBox,this.padding=3,this.baselineOffset=0,this.needsBox=t.styledMode||c,this.deferredAttr={},this.alignFactor=0}alignSetter(t){let e={left:0,center:.5,right:1}[t];e!==this.alignFactor&&(this.alignFactor=e,this.bBox&&o(this.xSetting)&&this.attr({x:this.xSetting}))}anchorXSetter(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}anchorYSetter(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}boxAttr(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}css(e){if(e){let t={};e=r(e),l.textProps.forEach((i=>{void 0!==e[i]&&(t[i]=e[i],delete e[i])})),this.text.css(t),"fontSize"in t||"fontWeight"in t?this.updateTextPadding():("width"in t||"textOverflow"in t)&&this.updateBoxSize()}return t.prototype.css.call(this,e)}destroy(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)}fillSetter(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}getBBox(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();let t=this.padding,e=n(this.paddingLeft,t);return{width:this.width||0,height:this.height||0,x:this.bBox.x-e,y:this.bBox.y-t}}getCrispAdjust(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}heightSetter(t){this.heightSetting=t}onAdd(){this.text.add(this),this.attr({text:n(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}paddingSetter(t,e){o(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}rSetter(t,e){this.boxAttr(e,t)}strokeSetter(t,e){this.stroke=t,this.boxAttr(e,t)}"stroke-widthSetter"(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}"text-alignSetter"(t){this.textAlign=t}textSetter(t){void 0!==t&&this.text.attr({text:t}),this.updateTextPadding()}updateBoxSize(){let t,e=this.text,r={},n=this.padding,a=this.bBox=o(this.widthSetting)&&o(this.heightSetting)&&!this.textAlign||!i(e.textStr)?l.emptyBBox:e.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||a.height||0)+2*n;let h=this.renderer.fontMetrics(e);if(this.baselineOffset=n+Math.min((this.text.firstLineMetrics||h).b,a.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-h.h)/2),this.needsBox&&!e.textPath){if(!this.box){let t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect();t.addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)}t=this.getCrispAdjust(),r.x=t,r.y=(this.baseline?-this.baselineOffset:0)+t,r.width=Math.round(this.width),r.height=Math.round(this.height),this.box.attr(s(r,this.deferredAttr)),this.deferredAttr={}}}updateTextPadding(){let t=this.text;if(!t.textPath){this.updateBoxSize();let e=this.baseline?0:this.baselineOffset,s=n(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(s+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),(s!==t.x||e!==t.y)&&(t.attr("x",s),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),void 0!==e&&t.attr("y",e)),t.x=s,t.y=e}}widthSetter(t){this.widthSetting=o(t)?t:void 0}getPaddedWidth(){let t=this.padding,e=n(this.paddingLeft,t),i=n(this.paddingRight,t);return(this.widthSetting||this.bBox.width||0)+e+i}xSetter(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)}ySetter(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}return l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps=["color","direction","fontFamily","fontSize","fontStyle","fontWeight","lineHeight","textAlign","textDecoration","textOutline","textOverflow","whiteSpace","width"],l})),i(e,"Core/Renderer/SVG/Symbols.js",[e["Core/Utilities.js"]],(function(t){let{defined:e,isNumber:i,pick:s}=t;function o(t,i,o,r,n){let a=[];if(n){let l=n.start||0,h=s(n.r,o),d=s(n.r,r||o),c=.001>Math.abs((n.end||0)-l-2*Math.PI),p=(n.end||0)-.001,u=n.innerR,g=s(n.open,c),f=Math.cos(l),m=Math.sin(l),x=Math.cos(p),b=Math.sin(p),y=s(n.longArc,p-l-Math.PI<.001?0:1),v=["A",h,d,0,y,s(n.clockwise,1),t+h*x,i+d*b];v.params={start:l,end:p,cx:t,cy:i},a.push(["M",t+h*f,i+d*m],v),e(u)&&((v=["A",u,u,0,y,e(n.clockwise)?1-n.clockwise:0,t+u*f,i+u*m]).params={start:p,end:l,cx:t,cy:i},a.push(g?["M",t+u*x,i+u*b]:["L",t+u*x,i+u*b],v)),g||a.push(["Z"])}return a}function r(t,e,i,s,o){return o&&o.r?n(t,e,i,s,o):[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]}function n(t,e,i,s,o){let r=(null===o||void 0===o?void 0:o.r)||0;return[["M",t+r,e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}return{arc:o,callout:function(t,e,s,o,r){let a=Math.min(r&&r.r||0,s,o),l=a+6,h=r&&r.anchorX,d=r&&r.anchorY||0,c=n(t,e,s,o,{r:a});if(!i(h)||h0&&d0)return c;if(t+h>s-l)if(d>e+l&&de+l&&d0){let i=do&&hl&&c.splice(1,1,["L",h-6,e],["L",h,e-6],["L",h+6,e],["L",s-a,e]);return c},circle:function(t,e,i,s){return o(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},rect:r,roundedRect:n,square:r,triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]}}})),i(e,"Core/Renderer/SVG/TextBuilder.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){let{doc:s,SVG_NS:o,win:r}=e,{attr:n,extend:a,fireEvent:l,isString:h,objectEach:d,pick:c}=i;return class{constructor(t){let e=t.styles;this.renderer=t.renderer,this.svgElement=t,this.width=t.textWidth,this.textLineHeight=e&&e.lineHeight,this.textOutline=e&&e.textOutline,this.ellipsis=!(!e||"ellipsis"!==e.textOverflow),this.noWrap=!(!e||"nowrap"!==e.whiteSpace)}buildSVG(){let e=this.svgElement,i=e.element,o=e.renderer,r=c(e.textStr,"").toString(),n=-1!==r.indexOf("<"),a=i.childNodes,l=!e.added&&o.box,d=[r,this.ellipsis,this.noWrap,this.textLineHeight,this.textOutline,e.getStyle("font-size"),this.width].join(",");if(d!==e.textCache){e.textCache=d,delete e.actualWidth;for(let t=a.length;t--;)i.removeChild(a[t]);if(n||this.ellipsis||this.width||e.textPath||-1!==r.indexOf(" ")&&(!this.noWrap||//g.test(r))){if(""!==r){l&&l.appendChild(i);let s=new t(r);this.modifyTree(s.nodes),s.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),l&&l.removeChild(i)}}else i.appendChild(s.createTextNode(this.unescapeEntities(r)));h(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}modifyDOM(){let t,e=this.svgElement,i=n(e.element,"x");for(e.firstLineMetrics=void 0;(t=e.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)e.element.removeChild(t);[].forEach.call(e.element.querySelectorAll("tspan.highcharts-br"),((t,s)=>{t.nextSibling&&t.previousSibling&&(0===s&&1===t.previousSibling.nodeType&&(e.firstLineMetrics=e.renderer.fontMetrics(t.previousSibling)),n(t,{dy:this.getLineHeight(t.nextSibling),x:i}))}));let a=this.width||0;if(!a)return;let l=(t,r)=>{let l=t.textContent||"",h=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!this.noWrap&&(h.length>1||e.element.childNodes.length>1),c=this.getLineHeight(r),p=0,u=e.actualWidth;if(this.ellipsis)l&&this.truncate(t,l,void 0,0,Math.max(0,a-.8*c),((t,e)=>t.substring(0,e)+"\u2026"));else if(d){let l=[],d=[];for(;r.firstChild&&r.firstChild!==t;)d.push(r.firstChild),r.removeChild(r.firstChild);for(;h.length;)h.length&&!this.noWrap&&p>0&&(l.push(t.textContent||""),t.textContent=h.join(" ").replace(/- /g,"-")),this.truncate(t,void 0,h,0===p&&u||0,a,((t,e)=>h.slice(0,e).join(" ").replace(/- /g,"-"))),u=e.actualWidth,p++;d.forEach((e=>{r.insertBefore(e,t)})),l.forEach((e=>{r.insertBefore(s.createTextNode(e),t);let a=s.createElementNS(o,"tspan");a.textContent="\u200b",n(a,{dy:c,x:i}),r.insertBefore(a,t)}))}},h=t=>{[].slice.call(t.childNodes).forEach((i=>{i.nodeType===r.Node.TEXT_NODE?l(i,t):(-1!==i.className.baseVal.indexOf("highcharts-br")&&(e.actualWidth=0),h(i))}))};h(e.element)}getLineHeight(t){let e=t.nodeType===r.Node.TEXT_NODE?t.parentElement:t;return this.textLineHeight?parseInt(this.textLineHeight.toString(),10):this.renderer.fontMetrics(e||this.svgElement.element).h}modifyTree(t){let e=(i,s)=>{let{attributes:o={},children:r,style:n={},tagName:l}=i,h=this.renderer.styledMode;if("b"===l||"strong"===l?h?o.class="highcharts-strong":n.fontWeight="bold":("i"===l||"em"===l)&&(h?o.class="highcharts-emphasized":n.fontStyle="italic"),n&&n.color&&(n.fill=n.color),"br"===l){o.class="highcharts-br",i.textContent="\u200b";let e=t[s+1];e&&e.textContent&&(e.textContent=e.textContent.replace(/^ +/gm,""))}else"a"===l&&r&&r.some((t=>"#text"===t.tagName))&&(i.children=[{children:r,tagName:"tspan"}]);"#text"!==l&&"a"!==l&&(i.tagName="tspan"),a(i,{attributes:o,style:n}),r&&r.filter((t=>"#text"!==t.tagName)).forEach(e)};t.forEach(e),l(this.svgElement,"afterModifyTree",{nodes:t})}truncate(t,e,i,s,o,r){let n,a,l=this.svgElement,{renderer:h,rotation:d}=l,c=[],p=i?1:0,u=(e||i||"").length,g=u,f=function(e,o){let r=o||e,n=t.parentNode;if(n&&void 0===c[r]&&n.getSubStringLength)try{c[r]=s+n.getSubStringLength(0,i?r+1:r)}catch(t){}return c[r]};if(l.rotation=0,s+(a=f(t.textContent.length))>o){for(;p<=u;)g=Math.ceil((p+u)/2),i&&(n=r(i,g)),a=f(g,n&&n.length-1),p===u?p=u+1:a>o?u=g-1:p=g;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=n||r(e||i,g))}i&&i.splice(0,g),l.actualWidth=a,l.rotation=d}unescapeEntities(t,e){return d(this.renderer.escapes,(function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(RegExp(i,"g"),s))})),t}}})),i(e,"Core/Renderer/SVG/SVGRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGLabel.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Renderer/SVG/TextBuilder.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o,r,n,a,l){let h,{charts:d,deg2rad:c,doc:p,isFirefox:u,isMS:g,isWebKit:f,noop:m,SVG_NS:x,symbolSizes:b,win:y}=i,{addEvent:v,attr:S,createElement:k,css:A,defined:M,destroyObjectProperties:C,extend:T,isArray:w,isNumber:P,isObject:L,isString:E,merge:O,pick:D,pInt:j,uniqueKey:B}=l;class I{constructor(t,e,i,s,o,r,n){let a,l,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),d=h.element;n||h.css(this.getStyle(s||{})),t.appendChild(d),S(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&S(d,"xmlns",this.SVG_NS),this.box=d,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(p.createTextNode("Created with Highcharts 11.3.0")),this.defs=this.createElement("defs").add(),this.allowHTML=r,this.forExport=o,this.styledMode=n,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=h.getStyle("font-size"),this.setSize(e,i,!1),u&&t.getBoundingClientRect&&((a=function(){A(t,{left:0,top:0}),l=t.getBoundingClientRect(),A(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=v(y,"resize",a))}definition(e){return new t([e]).addToDOM(this.defs.element)}getReferenceURL(){if((u||f)&&p.getElementsByTagName("base").length){if(!M(h)){let e=B(),i=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(p.body);A(i,{position:"fixed",top:0,left:0,zIndex:9e5});let s=p.elementFromPoint(6,6);h="hitme"===(s&&s.id),p.body.removeChild(i)}if(h)return y.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}getStyle(t){return this.style=T({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},t),this.style}setStyle(t){this.boxWrapper.css(this.getStyle(t))}isHidden(){return!this.boxWrapper.getBBox().width}destroy(){let t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),C(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null,null}createElement(t){return new this.Element(this,t)}getRadialAttr(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}}shadowDefinition(t){let e=["highcharts-drop-shadow-".concat(this.chartIndex),...Object.keys(t).map((e=>"".concat(e,"-").concat(t[e])))].join("-").toLowerCase().replace(/[^a-z0-9\-]/g,""),i=O({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector("#".concat(e))||this.definition({tagName:"filter",attributes:{id:e,filterUnits:i.filterUnits},children:[{tagName:"feDropShadow",attributes:{dx:i.offsetX,dy:i.offsetY,"flood-color":i.color,"flood-opacity":Math.min(5*i.opacity,1),stdDeviation:i.width/2}}]}),e}buildText(t){new a(t).buildSVG()}getContrast(t){let i=e.parse(t).rgba.map((t=>{let e=t/255;return e<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)})),s=.2126*i[0]+.7152*i[1]+.0722*i[2];return 1.05/(s+.05)>(s+.05)/.05?"#FFFFFF":"#000000"}button(e,i,s,o){let r,n,a,l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},h=arguments.length>5?arguments[5]:void 0,d=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,p=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,f=this.label(e,i,s,p,void 0,void 0,u,void 0,"button"),m=this.styledMode,x=l.states||{},b=0;l=O(l),delete l.states;let y=O({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},l.style);delete l.style;let S=t.filterUserAttributes(l);return f.attr(O({padding:8,r:2},S)),m||(S=O({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},S),r=(h=O(S,{fill:"#e6e6e6"},t.filterUserAttributes(h||x.hover||{}))).style,delete h.style,n=(d=O(S,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(d||x.select||{}))).style,delete d.style,a=(c=O(S,{style:{color:"#cccccc"}},t.filterUserAttributes(c||x.disabled||{}))).style,delete c.style),v(f.element,g?"mouseover":"mouseenter",(function(){3!==b&&f.setState(1)})),v(f.element,g?"mouseout":"mouseleave",(function(){3!==b&&f.setState(b)})),f.setState=function(t){if(1!==t&&(f.state=b=t),f.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),!m){f.attr([S,h,d,c][t||0]);let e=[y,r,n,a][t||0];L(e)&&f.css(e)}},!m&&(f.attr(S).css(T({cursor:"default"},y)),u&&f.text.css({pointerEvents:"none"})),f.on("touchstart",(t=>t.stopPropagation())).on("click",(function(t){3!==b&&o.call(f,t)}))}crispLine(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"round",s=t[0],o=t[1];return M(s[1])&&s[1]===o[1]&&(s[1]=o[1]=Math[i](s[1])-e%2/2),M(s[2])&&s[2]===o[2]&&(s[2]=o[2]=Math[i](s[2])+e%2/2),t}path(t){let e=this.styledMode?{}:{fill:"none"};return w(t)?e.d=t:L(t)&&T(e,t),this.createElement("path").attr(e)}circle(t,e,i){let s=L(t)?t:void 0===t?{}:{x:t,y:e,r:i},o=this.createElement("circle");return o.xSetter=o.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},o.attr(s)}arc(t,e,i,s,o,r){let n;L(t)?(e=(n=t).y,i=n.r,s=n.innerR,o=n.start,r=n.end,t=n.x):n={innerR:s,start:o,end:r};let a=this.symbol("arc",t,e,i,i,n);return a.r=i,a}rect(t,e,i,s,o,r){let n=L(t)?t:void 0===t?{}:{x:t,y:e,r:o,width:Math.max(i||0,0),height:Math.max(s||0,0)},a=this.createElement("rect");return this.styledMode||(void 0!==r&&(n["stroke-width"]=r,T(n,a.crisp(n))),n.fill="none"),a.rSetter=function(t,e,i){a.r=t,S(i,{rx:t,ry:t})},a.rGetter=function(){return a.r||0},a.attr(n)}roundedRect(t){return this.symbol("roundedRect").attr(t)}setSize(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:D(i,!0)?void 0:0}),this.alignElements()}g(t){let e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}image(t,e,i,s,o,r){let n={preserveAspectRatio:"none"};P(e)&&(n.x=e),P(i)&&(n.y=i),P(s)&&(n.width=s),P(o)&&(n.height=o);let a=this.createElement("image").attr(n),l=function(e){a.attr({href:t}),r.call(a,e)};if(r){a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="});let e=new y.Image;v(e,"load",l),e.src=t,e.complete&&l({})}else a.attr({href:t});return a}symbol(t,e,i,s,o,r){let n,a,l,h,c=this,u=/^url\((.*?)\)$/,g=u.test(t),f=!g&&(this.symbols[t]?t:"circle"),m=f&&this.symbols[f];if(m)"number"==typeof e&&(a=m.call(this.symbols,Math.round(e||0),Math.round(i||0),s||0,o||0,r)),n=this.path(a),c.styledMode||n.attr("fill","none"),T(n,{symbolName:f||void 0,x:e,y:i,width:s,height:o}),r&&T(n,r);else if(g){l=t.match(u)[1];let s=n=this.image(l);s.imgwidth=D(r&&r.width,b[l]&&b[l].width),s.imgheight=D(r&&r.height,b[l]&&b[l].height),h=t=>t.attr({width:t.width,height:t.height}),["width","height"].forEach((t=>{s["".concat(t,"Setter")]=function(t,e){this[e]=t;let{alignByTranslate:i,element:s,width:o,height:n,imgwidth:a,imgheight:l}=this,h="width"===e?a:l,d=1;r&&"within"===r.backgroundSize&&o&&n&&a&&l?(d=Math.min(o/a,n/l),S(s,{width:Math.round(a*d),height:Math.round(l*d)})):s&&h&&s.setAttribute(e,h),!i&&a&&l&&this.translate(((o||0)-a*d)/2,((n||0)-l*d)/2)}})),M(e)&&s.attr({x:e,y:i}),s.isImg=!0,M(s.imgwidth)&&M(s.imgheight)?h(s):(s.attr({width:0,height:0}),k("img",{onload:function(){let t=d[c.chartIndex];0===this.width&&(A(this,{position:"absolute",top:"-999em"}),p.body.appendChild(this)),b[l]={width:this.width,height:this.height},s.imgwidth=this.width,s.imgheight=this.height,s.element&&h(s),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:l}),this.imgCount++)}return n}clipRect(t,e,i,s){return this.rect(t,e,i,s,0)}text(t,e,i,s){let o={};if(s&&(this.allowHTML||!this.forExport))return this.html(t,e,i);o.x=Math.round(e||0),i&&(o.y=Math.round(i)),M(t)&&(o.text=t);let r=this.createElement("text").attr(o);return s&&(!this.forExport||this.allowHTML)||(r.xSetter=function(t,e,i){let s=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(let r,n=0;nt.align()))}}return T(I.prototype,{Element:o,SVG_NS:x,escapes:{"&":"&","<":"<",">":">","'":"'",'"':"""},symbols:n,draw:m}),s.registerRendererType("svg",I,!0),I})),i(e,"Core/Renderer/HTML/HTMLElement.js",[e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t,e,i){let{composed:s}=t,{css:o,defined:r,extend:n,pushUnique:a,pInt:l}=i;class h extends e{static compose(t){if(a(s,this.compose)){let e=h.prototype,i=t.prototype;i.getSpanCorrection=e.getSpanCorrection,i.htmlCss=e.htmlCss,i.htmlGetBBox=e.htmlGetBBox,i.htmlUpdateTransform=e.htmlUpdateTransform,i.setSpanRotation=e.setSpanRotation}return t}getSpanCorrection(t,e,i){this.xCorr=-t*i,this.yCorr=-e}htmlCss(t){let e,{element:i}=this,s="SPAN"===i.tagName&&t&&"width"in t,r=s&&t.width;return s&&(delete t.width,this.textWidth=l(r)||void 0,e=!0),"ellipsis"===(null===t||void 0===t?void 0:t.textOverflow)&&(t.whiteSpace="nowrap",t.overflow="hidden"),n(this.styles,t),o(i,t),e&&this.htmlUpdateTransform(),this}htmlGetBBox(){let{element:t}=this;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}htmlUpdateTransform(){if(!this.added)return void(this.alignOnAdd=!0);let{element:t,renderer:e,rotation:i,styles:s,textAlign:n="left",textWidth:a,translateX:l=0,translateY:h=0,x:d=0,y:c=0}=this,p={left:0,center:.5,right:1}[n],u=null===s||void 0===s?void 0:s.whiteSpace;if(o(t,{marginLeft:"".concat(l,"px"),marginTop:"".concat(h,"px")}),"SPAN"===t.tagName){let s,l=[i,n,t.innerHTML,a,this.textAlign].join(","),h=!1;if(a!==this.oldTextWidth){let e=this.textPxLength?this.textPxLength:(o(t,{width:"",whiteSpace:u||"nowrap"}),t.offsetWidth),s=a||0;(s>this.oldTextWidth||e>s)&&(/[ \-]/.test(t.textContent||t.innerText)||"ellipsis"===t.style.textOverflow)&&(o(t,{width:e>s||i?a+"px":"auto",display:"block",whiteSpace:u||"normal"}),this.oldTextWidth=a,h=!0)}this.hasBoxWidthChanged=h,l!==this.cTT&&(s=e.fontMetrics(t).b,r(i)&&(i!==(this.oldRotation||0)||n!==this.oldAlign)&&this.setSpanRotation(i,p,s),this.getSpanCorrection(!r(i)&&this.textPxLength||t.offsetWidth,s,p)),o(t,{left:d+(this.xCorr||0)+"px",top:c+(this.yCorr||0)+"px"}),this.cTT=l,this.oldRotation=i,this.oldAlign=n}}setSpanRotation(t,e,i){o(this.element,{transform:"rotate(".concat(t,"deg)"),transformOrigin:"".concat(100*e,"% ").concat(i,"px")})}}return h})),i(e,"Core/Renderer/HTML/HTMLRenderer.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Globals.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o){let{composed:r}=e,{attr:n,createElement:a,extend:l,pick:h,pushUnique:d}=o;class c extends s{static compose(t){if(d(r,this.compose)){let e=c.prototype;t.prototype.html=e.html}return t}html(e,s,o){let r=this.createElement("span"),d=r.element,c=r.renderer,p=function(t,e){["opacity","visibility"].forEach((function(s){t[s+"Setter"]=function(o,r,n){let a=t.div?t.div.style:e;i.prototype[s+"Setter"].call(this,o,r,n),a&&(a[r]=o)}})),t.addedSetters=!0};return r.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,h(e,"")),this.textStr=e,r.doTransform=!0)},p(r,r.element.style),r.xSetter=r.ySetter=r.alignSetter=r.rotationSetter=function(t,e){"align"===e?r.alignValue=r.textAlign=t:r[e]=t,r.doTransform=!0},r.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},r.attr({text:e,x:Math.round(s),y:Math.round(o)}).css({position:"absolute"}),c.styledMode||r.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),d.style.whiteSpace="nowrap",r.css=r.htmlCss,r.add=function(t){let e,i,s=c.box.parentNode,o=[];if(this.parentGroup=t,t){if(!(e=t.div)){for(i=t;i;)o.push(i),i=i.parentGroup;o.reverse().forEach((function(t){var i;let h=n(t.element,"class"),d=t.css;function c(e,i){t[i]=e,"translateX"===i?g.left=e+"px":g.top=e+"px",t.doTransform=!0}let u=t.styles||{};e=t.div=t.div||a("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,visibility:t.visibility},e||s);let g=e.style;l(t,{classSetter:(i=e,function(t){this.element.setAttribute("class",t),i.className=t}),css:function(e){return d.call(t,e),["cursor","pointerEvents"].forEach((t=>{e[t]&&(g[t]=e[t])})),t},on:function(){return o[0].div&&r.on.apply({element:o[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:c,translateYSetter:c}),t.addedSetters||p(t),t.css(u)}))}}else e=s;return e.appendChild(d),r.added=!0,r.alignOnAdd&&r.htmlUpdateTransform(),r},r}}return c})),i(e,"Core/Axis/AxisDefaults.js",[],(function(){var t,e;return(e=t||(t={})).xAxis={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:{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,reversed:void 0,reversedStacks:!1,showEmpty:!0,showFirstLabel:!0,showLastLabel:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",useHTML:!1,x:0,y:0,style:{color:"#666666",fontSize:"0.8em"}},type:"linear",uniqueNames:!0,visible:!0,minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#333333",lineWidth:1,gridLineColor:"#e6e6e6",gridLineWidth:void 0,tickColor:"#333333"},e.yAxis={reversedStacks:!0,endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:void 0},startOnTick:!0,title:{text:"Values"},stackLabels:{animation:{},allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){let{numberFormatter:t}=this.axis.chart;return t(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t})),i(e,"Core/Foundation.js",[e["Core/Utilities.js"]],(function(t){var e;let{addEvent:i,isFunction:s,objectEach:o,removeEvent:r}=t;return(e||(e={})).registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},o(e.events,(function(e,o){t.eventOptions[o]!==e&&(t.eventOptions[o]&&(r(t,o,t.eventOptions[o]),delete t.eventOptions[o]),s(e)&&(t.eventOptions[o]=e,i(t,o,e,{order:0})))}))},e})),i(e,"Core/Axis/Tick.js",[e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){let{deg2rad:s}=e,{clamp:o,correctFloat:r,defined:n,destroyObjectProperties:a,extend:l,fireEvent:h,isNumber:d,merge:c,objectEach:p,pick:u}=i;return class{constructor(t,e,i,s,o){this.isNew=!0,this.isNewLabel=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=o||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,h(this,"init"),i||s||this.addLabel()}addLabel(){let e,i,s,o=this,a=o.axis,c=a.options,p=a.chart,g=a.categories,f=a.logarithmic,m=a.names,x=o.pos,b=u(o.options&&o.options.labels,c.labels),y=a.tickPositions,v=x===y[0],S=x===y[y.length-1],k=(!b.step||1===b.step)&&1===a.tickInterval,A=y.info,M=o.label,C=this.parameters.category||(g?u(g[x],m[x],x):x);f&&d(C)&&(C=r(f.lin2log(C))),a.dateTime&&(A?e=(i=p.time.resolveDTLFormat(c.dateTimeLabelFormats[!c.grid&&A.higherRanks[x]||A.unitName])).main:d(C)&&(e=a.dateTime.getXDateFormat(C,c.dateTimeLabelFormats||{}))),o.isFirst=v,o.isLast=S;let T={axis:a,chart:p,dateTimeLabelFormat:e,isFirst:v,isLast:S,pos:x,tick:o,tickPositionInfo:A,value:C};h(this,"labelFormat",T);let w=e=>b.formatter?b.formatter.call(e,e):b.format?(e.text=a.defaultLabelFormatter.call(e,e),t.format(b.format,e,p)):a.defaultLabelFormatter.call(e,e),P=w.call(T,T),L=i&&i.list;o.shortenLabel=L?function(){for(s=0;s0&&r+p*g>h&&(e=Math.round((n-r)/Math.cos(c*s))):(r-p*gh&&(x=h-t.x+x*p,b=-1),(x=Math.min(f,x))x||i.autoRotation&&(d.styles||{}).width)&&(e=x)),e&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(e)+"px",(o.style||{}).textOverflow||(m.textOverflow="ellipsis"),d.css(m)))}moveLabel(t,e){let i,s=this,o=s.label,r=s.axis,n=!1;o&&o.textStr===t?(s.movedLabel=o,n=!0,delete s.label):p(r.ticks,(function(e){n||e.isNew||e===s||!e.label||e.label.textStr!==t||(s.movedLabel=e.label,n=!0,e.labelPos=s.movedLabel.xy,delete e.label)})),!n&&(s.labelPos||o)&&(i=s.labelPos||o.xy,s.movedLabel=s.createLabel(t,e,i),s.movedLabel&&s.movedLabel.attr({opacity:0}))}render(t,e,i){let s=this.axis,o=s.horiz,r=this.pos,n=u(this.tickmarkOffset,s.tickmarkOffset),a=this.getPosition(o,r,n,e),l=a.x,d=a.y,c=o&&l===s.pos+s.len||!o&&d===s.pos?-1:1,p=u(i,this.label&&this.label.newOpacity,1);i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,c),this.renderMark(a,i,c),this.renderLabel(a,e,p,t),this.isNew=!1,h(this,"afterRender")}renderGridLine(t,e,i){let s,o=this.axis,r=o.options,n={},a=this.pos,l=this.type,h=u(this.tickmarkOffset,o.tickmarkOffset),d=o.chart.renderer,c=this.gridLine,p=r.gridLineWidth,g=r.gridLineColor,f=r.gridLineDashStyle;"minor"===this.type&&(p=r.minorGridLineWidth,g=r.minorGridLineColor,f=r.minorGridLineDashStyle),c||(o.chart.styledMode||(n.stroke=g,n["stroke-width"]=p||0,n.dashstyle=f),l||(n.zIndex=1),t&&(e=0),this.gridLine=c=d.path().attr(n).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(o.gridGroup)),c&&(s=o.getPlotLinePath({value:a+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:s,opacity:e})}renderMark(t,e,i){let s=this.axis,o=s.options,r=s.chart.renderer,n=this.type,a=s.tickSize(n?n+"Tick":"tick"),l=t.x,h=t.y,d=u(o["minor"!==n?"tickWidth":"minorTickWidth"],!n&&s.isXAxis?1:0),c=o["minor"!==n?"tickColor":"minorTickColor"],p=this.mark,g=!p;a&&(s.opposite&&(a[0]=-a[0]),p||(this.mark=p=r.path().addClass("highcharts-"+(n?n+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||p.attr({stroke:c,"stroke-width":d})),p[g?"attr":"animate"]({d:this.getMarkPath(l,h,a[0],p.strokeWidth()*i,s.horiz,r),opacity:e}))}renderLabel(t,e,i,s){let o=this.axis,r=o.horiz,n=o.options,a=this.label,l=n.labels,h=l.step,c=u(this.tickmarkOffset,o.tickmarkOffset),p=t.x,g=t.y,f=!0;a&&d(p)&&(a.xy=t=this.getLabelPosition(p,g,a,r,l,c,s,h),this.isFirst&&!this.isLast&&!n.showFirstLabel||this.isLast&&!this.isFirst&&!n.showLastLabel?f=!1:!r||l.step||l.rotation||e||0===i||this.handleOverflow(t),h&&s%h&&(f=!1),f&&d(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))}replaceMovedLabel(){let t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}})),i(e,"Core/Axis/Axis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/AxisDefaults.js"],e["Core/Color/Color.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Axis/Tick.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o,r,n,a){let{animObject:l}=t,{xAxis:h,yAxis:d}=e,{defaultOptions:c}=s,{registerEventOptions:p}=o,{deg2rad:u}=r,{arrayMax:g,arrayMin:f,clamp:m,correctFloat:x,defined:b,destroyObjectProperties:y,erase:v,error:S,extend:k,fireEvent:A,getClosestDistance:M,insertItem:C,isArray:T,isNumber:w,isString:P,merge:L,normalizeTickInterval:E,objectEach:O,pick:D,relativeLength:j,removeEvent:B,splat:I,syncTimeout:R}=a,z=(t,e)=>E(e,void 0,void 0,D(t.options.allowDecimals,e<.5||void 0!==t.tickAmount),!!t.tickAmount);k(c,{xAxis:h,yAxis:L(h,d)});class N{constructor(t,e,i){this.init(t,e,i)}init(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.coll,s="xAxis"===i,o=this.isZAxis||(t.inverted?!s:s);this.chart=t,this.horiz=o,this.isXAxis=s,this.coll=i,A(this,"init",{userOptions:e}),this.opposite=D(e.opposite,this.opposite),this.side=D(e.side,this.side,o?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);let r=this.options,n=r.labels,a=r.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=D(r.reversed,this.reversed),this.visible=r.visible,this.zoomEnabled=r.zoomEnabled,this.hasNames="category"===a||!0===r.categories,this.categories=T(r.categories)&&r.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=b(r.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=r.minRange||r.maxZoom,this.range=r.range,this.offset=r.offset||0,this.max=void 0,this.min=void 0;let l=D(r.crosshair,I(t.options.tooltip.crosshairs)[s?0:1]);this.crosshair=!0===l?{}:l,-1===t.axes.indexOf(this)&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),C(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&!b(this.reversed)&&(this.reversed=!0),this.labelRotation=w(n.rotation)?n.rotation:void 0,p(this,r),A(this,"afterInit")}setOptions(t){let e=this.horiz?{labels:{autoRotation:[-45]},margin:15}:{title:{rotation:90*this.side}};this.options=L(e,c[this.coll],t),A(this,"afterSetOptions",{userOptions:t})}defaultLabelFormatter(t){let e,i,s=this.axis,o=this.chart,{numberFormatter:r}=o,n=w(this.value)?this.value:NaN,a=s.chart.time,l=s.categories,h=this.dateTimeLabelFormat,d=c.lang,p=d.numericSymbols,u=d.numericSymbolMagnitude||1e3,g=s.logarithmic?Math.abs(n):s.tickInterval,f=p&&p.length;if(l)i="".concat(this.value);else if(h)i=a.dateFormat(h,n);else if(f&&p&&g>=1e3)for(;f--&&void 0===i;)g>=(e=Math.pow(u,f+1))&&10*n%e==0&&null!==p[f]&&0!==n&&(i=r(n/e,-1)+p[f]);return void 0===i&&(i=Math.abs(n)>=1e4?r(n,-1):r(n,-1,void 0,"")),i}getSeriesExtremes(){let t,e=this;A(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=void 0,e.softThreshold=!e.isXAxis,e.series.forEach((i=>{if(i.reserveSpace()){let s,o,r,n=i.options,a=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=(a||0)&&(a=void 0),e.isXAxis)(s=i.xData)&&s.length&&(s=e.logarithmic?s.filter((t=>t>0)):s,o=(t=i.getXExtremes(s)).min,r=t.max,w(o)||o instanceof Date||(s=s.filter(w),o=(t=i.getXExtremes(s)).min,r=t.max),s.length&&(e.dataMin=Math.min(D(e.dataMin,o),o),e.dataMax=Math.max(D(e.dataMax,r),r)));else{let t=i.applyExtremes();w(t.dataMin)&&(o=t.dataMin,e.dataMin=Math.min(D(e.dataMin,o),o)),w(t.dataMax)&&(r=t.dataMax,e.dataMax=Math.max(D(e.dataMax,r),r)),b(a)&&(e.threshold=a),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}}))})),A(this,"afterGetSeriesExtremes")}translate(t,e,i,s,o,r){var n;let a=this.linkedParent||this,l=s&&a.old?a.old.min:a.min;if(!w(l))return NaN;let h=a.minPixelPadding,d=(a.isOrdinal||(null===(n=a.brokenAxis)||void 0===n?void 0:n.hasBreaks)||a.logarithmic&&o)&&a.lin2val,c=1,p=0,u=s&&a.old?a.old.transA:a.transA,g=0;if(u||(u=a.transA),i&&(c*=-1,p=a.len),a.reversed&&(c*=-1,p-=c*(a.sector||a.len)),e)g=(t=t*c+p-h)/u+l,d&&(g=a.lin2val(g));else{d&&(t=a.val2lin(t));let e=c*(t-l)*u;g=(a.isRadial?e:x(e))+p+c*h+(w(r)?u*r:0)}return g}toPixels(t,e){return this.translate(t,!1,!this.horiz,void 0,!0)+(e?0:this.pos)}toValue(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,void 0,!0)}getPlotLinePath(t){let e,i,s,o,r,n=this,a=n.chart,l=n.left,h=n.top,d=t.old,c=t.value,p=t.lineWidth,u=d&&a.oldChartHeight||a.chartHeight,g=d&&a.oldChartWidth||a.chartWidth,f=n.transB,x=t.translatedValue,b=t.force;function y(t,e,i){return"pass"!==b&&(ti)&&(b?t=m(t,e,i):r=!0),t}let v={value:c,lineWidth:p,old:d,force:b,acrossPanes:t.acrossPanes,translatedValue:x};return A(this,"getPlotLinePath",v,(function(t){e=s=Math.round((x=m(x=D(x,n.translate(c,void 0,void 0,d)),-1e5,1e5))+f),i=o=Math.round(u-x-f),w(x)?n.horiz?(i=h,o=u-n.bottom,e=s=y(e,l,l+n.width)):(e=l,s=g-n.right,i=o=y(i,h,h+n.height)):(r=!0,b=!1),t.path=r&&!b?void 0:a.renderer.crispLine([["M",e,i],["L",s,o]],p||1)})),v.path}getLinearTickPositions(t,e,i){let s,o,r,n=x(Math.floor(e/t)*t),a=x(Math.ceil(i/t)*t),l=[];if(x(n+t)===n&&(r=20),this.single)return[e];for(s=n;s<=a&&(l.push(s),(s=x(s+t,r))!==o);)o=s;return l}getMinorTickInterval(){let{minorTicks:t,minorTickInterval:e}=this.options;return!0===t?D(e,"auto"):!1!==t?e:void 0}getMinorTickPositions(){let t,e=this.options,i=this.tickPositions,s=this.minorTickInterval,o=this.pointRangePadding||0,r=(this.min||0)-o,n=(this.max||0)+o,a=n-r,l=[];if(a&&a/s{var e;return(t.xIncrement?null===(e=t.xData)||void 0===e?void 0:e.slice(0,2):t.xData)||[]})))||0),this.dataMax-this.dataMin)),w(n)&&w(a)&&w(l)&&n-a=l,t=(l-n+a)/2,i=[a-t,D(o.min,a-t)],e&&(i[2]=r?r.log2lin(this.dataMin):this.dataMin),s=[(a=g(i))+l,D(o.max,a+l)],e&&(s[2]=r?r.log2lin(this.dataMax):this.dataMax),(n=f(s))-at-e)),t=M([i]))}return t&&e?Math.min(t,e):t||e}nameToX(t){let e,i=T(this.options.categories),s=i?this.categories:this.names,o=t.options.x;return t.series.requireSorting=!1,b(o)||(o=this.options.uniqueNames&&s?i?s.indexOf(t.name):D(s.keys[t.name],-1):t.series.autoIncrement()),-1===o?!i&&s&&(e=s.length):e=o,void 0!==e?(this.names[e]=t.name,this.names.keys[t.name]=e):t.x&&(e=t.x),e}updateNames(){let t=this,e=this.names;e.length>0&&(Object.keys(e.keys).forEach((function(t){delete e.keys[t]})),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach((e=>{e.xIncrement=null,(!e.points||e.isDirtyData)&&(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach((function(i,s){let o;(null===i||void 0===i?void 0:i.options)&&void 0!==i.name&&void 0!==(o=t.nameToX(i))&&o!==i.x&&(i.x=o,e.xData[s]=o)}))})))}setAxisTranslation(){let t,e,i=this,s=i.max-i.min,o=i.linkedParent,r=!!i.categories,n=i.isXAxis,a=i.axisPointRange||0,l=0,h=0,d=i.transA;(n||r||a)&&(t=i.getClosest(),o?(l=o.minPointOffset,h=o.pointRangePadding):i.series.forEach((function(e){let s=r?1:n?D(e.options.pointRange,t,0):i.axisPointRange||0,o=e.options.pointPlacement;if(a=Math.max(a,s),!i.single||r){let t=e.is("xrange")?!n:n;l=Math.max(l,t&&P(o)?0:s/2),h=Math.max(h,t&&"on"===o?0:s)}})),e=i.ordinal&&i.ordinal.slope&&t?i.ordinal.slope/t:1,i.minPointOffset=l*=e,i.pointRangePadding=h*=e,i.pointRange=Math.min(a,i.single&&r?1:s),n&&t&&(i.closestPointRange=t)),i.translationSlope=i.transA=d=i.staticScale||i.len/(s+h||1),i.transB=i.horiz?i.left:i.bottom,i.minPixelPadding=d*l,A(this,"afterSetAxisTranslation")}minFromRange(){let{max:t,min:e}=this;return w(t)&&w(e)&&t-e||void 0}setTickInterval(t){var e;let i,s,o,r,n,{categories:a,chart:l,dataMax:h,dataMin:d,dateTime:c,isXAxis:p,logarithmic:u,options:g,softThreshold:f}=this,m=w(this.threshold)?this.threshold:void 0,y=this.minRange||0,{ceiling:v,floor:k,linkedTo:M,softMax:C,softMin:T}=g,P=w(M)&&(null===(e=l[this.coll])||void 0===e?void 0:e[M]),L=g.tickPixelInterval,E=g.maxPadding,O=g.minPadding,j=0,B=w(g.tickInterval)&&g.tickInterval>=0?g.tickInterval:void 0;if(c||a||P||this.getTickAmount(),r=D(this.userMin,g.min),n=D(this.userMax,g.max),P?(this.linkedParent=P,i=P.getExtremes(),this.min=D(i.min,i.dataMin),this.max=D(i.max,i.dataMax),g.type!==P.options.type&&S(11,!0,l)):(f&&b(m)&&w(h)&&w(d)&&(d>=m?(s=m,O=0):h<=m&&(o=m,E=0)),this.min=D(r,s,d),this.max=D(n,o,h)),w(this.max)&&w(this.min)&&(u&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,D(d,this.min))&&S(10,!0,l),this.min=x(u.log2lin(this.min),16),this.max=x(u.log2lin(this.max),16)),this.range&&w(d)&&(this.userMin=this.min=r=Math.max(d,this.minFromRange()||0),this.userMax=n=this.max,this.range=void 0)),A(this,"foundExtremes"),this.adjustForMinRange(),w(this.min)&&w(this.max)){var I;if(!w(this.userMin)&&w(T)&&Tthis.max&&(this.max=n=C),a||this.axisPointRange||null!==(I=this.stacking)&&void 0!==I&&I.usePercentage||P||!(j=this.max-this.min)||(!b(r)&&O&&(this.min-=j*O),b(n)||!E||(this.max+=j*E)),!w(this.userMin)&&w(k)&&(this.min=Math.max(this.min,k)),!w(this.userMax)&&w(v)&&(this.max=Math.min(this.max,v)),f&&w(d)&&w(h)){let t=m||0;!b(r)&&this.min=t?this.min=g.minRange?Math.min(t,this.max-y):t:!b(n)&&this.max>t&&h<=t&&(this.max=g.minRange?Math.max(t,this.min+y):t)}!l.polar&&this.min>this.max&&(b(g.min)?this.max=this.min:b(g.max)&&(this.min=this.max)),j=this.max-this.min}if(this.min!==this.max&&w(this.min)&&w(this.max)?P&&!B&&L===P.options.tickPixelInterval?this.tickInterval=B=P.tickInterval:this.tickInterval=D(B,this.tickAmount?j/Math.max(this.tickAmount-1,1):void 0,a?1:j*L/Math.max(this.len,L)):this.tickInterval=1,p&&!t){var R,N;let t=this.min!==(null===(R=this.old)||void 0===R?void 0:R.min)||this.max!==(null===(N=this.old)||void 0===N?void 0:N.max);this.series.forEach((function(e){var i;e.forceCrop=null===(i=e.forceCropping)||void 0===i?void 0:i.call(e),e.processData(t)})),A(this,"postProcessData",{hasExtremesChanged:t})}this.setAxisTranslation(),A(this,"initialAxisTranslation"),this.pointRange&&!B&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval));let G=D(g.minTickInterval,c&&!this.series.some((t=>t.noSharedTooltip))?this.closestPointRange:0);!B&&this.tickIntervalMath.max(2*this.len,200))h=[this.min,this.max],S(19,!1,this.chart);else if(this.dateTime)h=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,null===(c=this.ordinal)||void 0===c?void 0:c.positions,this.closestPointRange,!0);else if(this.logarithmic)h=this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max);else{let t=this.tickInterval,e=t;for(;e<=2*t&&(h=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&h.length>this.tickAmount);)this.tickInterval=z(this,e*=1.1)}h.length>this.len&&(h=[h[0],h[h.length-1]])[0]===h[1]&&(h.length=1),s&&(this.tickPositions=h,(t=s.apply(this,[this.min,this.max]))&&(h=t))}this.tickPositions=h,this.paddedTicks=h.slice(0),this.trimTicks(h,a,l),!this.isLinked&&w(this.min)&&w(this.max)&&(this.single&&h.length<2&&!this.categories&&!this.series.some((t=>t.is("heatmap")&&"between"===t.options.pointPlacement))&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),A(this,"afterSetTickPositions")}trimTicks(t,e,i){let s=t[0],o=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(A(this,"trimTicks"),!this.isLinked){if(e&&s!==-1/0)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=o;else for(;this.max+r{let{horiz:e,options:i}=t;return[e?i.left:i.top,i.width,i.height,i.pane].join(",")},o=s(this);this.chart[this.coll].forEach((function(r){let{series:n}=r;n.length&&n.some((t=>t.visible))&&r!==e&&s(r)===o&&(t=!0,i.push(r))}))}if(t&&r){i.forEach((t=>{let i=t.getThresholdAlignment(e);w(i)&&n.push(i)}));let t=n.length>1?n.reduce(((t,e)=>t+e),0)/n.length:void 0;i.forEach((e=>{e.thresholdAlignment=t}))}return t}getThresholdAlignment(t){if((!w(this.dataMin)||this!==t&&this.series.some((t=>t.isDirty||t.isDirtyData)))&&this.getSeriesExtremes(),w(this.threshold)){let t=m((this.threshold-(this.dataMin||0))/((this.dataMax||0)-(this.dataMin||0)),0,1);return this.options.reversed&&(t=1-t),t}}getTickAmount(){let t=this.options,e=t.tickPixelInterval,i=t.tickAmount;b(t.tickInterval)||i||!(this.lenl.push(x(l[l.length-1]+u)),f=()=>l.unshift(x(l[0]-u));if(w(d)&&(i=d<.5?Math.ceil(d*(h-1)):Math.floor(d*(h-1)),a.reversed&&(i=h-1-i)),s.hasData()&&w(n)&&w(r)){let d=()=>{s.transA*=(c-1)/(h-1),s.min=a.startOnTick?l[0]:Math.min(n,l[0]),s.max=a.endOnTick?l[l.length-1]:Math.max(r,l[l.length-1])};if(w(i)&&w(s.threshold)){for(;l[i]!==p||l.length!==h||l[0]>n||l[l.length-1]s.threshold?f():g();if(u>8*s.tickInterval)break;u*=2}d()}else if(c0&&e{o=o||t.isDirtyData||t.isDirty,r=r||t.xAxis&&t.xAxis.isDirty||!1})),this.setAxisSize();let n=this.len!==(this.old&&this.old.len);n||o||r||this.isLinked||this.forceRedraw||this.userMin!==(this.old&&this.old.userMin)||this.userMax!==(this.old&&this.old.userMax)||this.alignToOthers()?(s&&"yAxis"===i&&s.buildStacks(),this.forceRedraw=!1,this.userMinRange||(this.minRange=void 0),this.getSeriesExtremes(),this.setTickInterval(),s&&"xAxis"===i&&s.buildStacks(),this.isDirty||(this.isDirty=n||this.min!==(null===(t=this.old)||void 0===t?void 0:t.min)||this.max!==(null===(e=this.old)||void 0===e?void 0:e.max))):s&&s.cleanStacks(),o&&this.panningState&&(this.panningState.isDirty=!0),A(this,"afterSetScale")}setExtremes(t,e){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],s=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0,r=this,n=r.chart;r.series.forEach((t=>{delete t.kdTree})),A(r,"setExtremes",o=k(o,{min:t,max:e}),(()=>{r.userMin=t,r.userMax=e,r.eventArgs=o,i&&n.redraw(s)}))}zoom(t,e){let i=this,s=this.dataMin,o=this.dataMax,r=this.options,n=Math.min(s,D(r.min,s)),a=Math.max(o,D(r.max,o)),l={newMin:t,newMax:e};return A(this,"zoom",l,(function(t){let e=t.newMin,r=t.newMax;(e!==i.min||r!==i.max)&&(!i.allowZoomOutside&&(b(s)&&(ea&&(e=a)),b(o)&&(ra&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),l.zoomed}setAxisSize(){let t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,o=this.width=Math.round(j(D(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(j(D(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),n=this.top=Math.round(j(D(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop)),a=this.left=Math.round(j(D(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft));this.bottom=t.chartHeight-r-n,this.right=t.chartWidth-o-a,this.len=Math.max(s?o:r,0),this.pos=s?a:n}getExtremes(){let t=this.logarithmic;return{min:t?x(t.lin2log(this.min)):this.min,max:t?x(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}getThreshold(t){let e=this.logarithmic,i=e?e.lin2log(this.min):this.min,s=e?e.lin2log(this.max):this.max;return null===t||t===-1/0?t=i:t===1/0?t=s:i>t?t=i:s15&&e<165?t.align="right":e>195&&e<345&&(t.align="left")})),i.align}tickSize(t){let e,i=this.options,s=D(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),o=i["tick"===t?"tickLength":"minorTickLength"];s&&o&&("inside"===i[t+"Position"]&&(o=-o),e=[o,s]);let r={tickSize:e};return A(this,"afterTickSize",r),r.tickSize}labelMetrics(){let t=this.chart.renderer,e=this.ticks,i=e[Object.keys(e)[0]]||{};return this.chart.renderer.fontMetrics(i.label||i.movedLabel||t.box)}unsquish(){let t,e,i=this.options.labels,s=this.horiz,o=this.tickInterval,r=this.len/(((this.categories?1:0)+this.max-this.min)/o),n=i.rotation,a=this.labelMetrics().h,l=Math.max(this.max-this.min,0),h=function(t){let e=t/(r||1);return(e=e>1?Math.ceil(e):1)*o>l&&t!==1/0&&r!==1/0&&l&&(e=Math.ceil(l/o)),x(e*o)},d=o,c=Number.MAX_VALUE;if(s){if(!i.staggerLines&&(w(n)?e=[n]:r=-90&&o<=90)&&(s=(i=h(Math.abs(a/Math.sin(u*o))))+Math.abs(o/360))m&&(m=e.label.textPxLength)})),this.maxLabelLength=m,this.autoRotation)m>p&&m>g.h?u.rotation=this.labelRotation:this.labelRotation=0;else if(c&&(t=p,!f))for(e="clip",s=n.length;!d&&s--;)(i=a[n[s]].label)&&(i.styles&&"ellipsis"===i.styles.textOverflow?i.css({textOverflow:"clip"}):i.textPxLength>c&&i.css({width:c+"px"}),i.getBBox().height>this.len/n.length-(g.h-g.f)&&(i.specificTextOverflow="ellipsis"));u.rotation&&(t=m>.5*o.chartHeight?.33*o.chartHeight:m,f||(e="ellipsis")),this.labelAlign=l.align||this.autoLabelAlign(this.labelRotation),this.labelAlign&&(u.align=this.labelAlign),n.forEach((function(i){let s=a[i],o=s&&s.label,r=h.width,n={};o&&(o.attr(u),s.shortenLabel?s.shortenLabel():t&&!r&&"nowrap"!==h.whiteSpace&&(to.g(e).attr({zIndex:n}).addClass("highcharts-".concat(i.toLowerCase()).concat(r," ")+(this.isRadial?"highcharts-radial-axis".concat(r," "):"")+(s.className||"")).add(t);this.axisGroup||(this.gridGroup=r("grid","-grid",s.gridZIndex),this.axisGroup=r("axis","",s.zIndex),this.labelGroup=r("axis-labels","-labels",s.labels.zIndex))}getOffset(){let t,e,i,s,o=this,{chart:r,horiz:n,options:a,side:l,ticks:h,tickPositions:d,coll:c}=o,p=r.inverted&&!o.isZAxis?[1,0,3,2][l]:l,u=o.hasData(),g=a.title,f=a.labels,m=w(a.crossing),x=r.axisOffset,y=r.clipOffset,v=[-1,1,1,-1][l],S=0,k=0,M=0;if(o.showAxis=t=u||a.showEmpty,o.staggerLines=o.horiz&&f.staggerLines||void 0,o.createGroups(),u||o.isLinked?(d.forEach((function(t){o.generateTick(t)})),o.renderUnsquish(),o.reserveSpaceDefault=0===l||2===l||{1:"left",3:"right"}[l]===o.labelAlign,D(f.reserveSpace,!m&&null,"center"===o.labelAlign||null,o.reserveSpaceDefault)&&d.forEach((function(t){M=Math.max(h[t].getLabelSize(),M)})),o.staggerLines&&(M*=o.staggerLines),o.labelOffset=M*(o.opposite?-1:1)):O(h,(function(t,e){t.destroy(),delete h[e]})),null!==g&&void 0!==g&&g.text&&!1!==g.enabled&&(o.addTitle(t),t&&!m&&!1!==g.reserveSpace&&(o.titleOffset=S=o.axisTitle.getBBox()[n?"height":"width"],k=b(e=g.offset)?0:D(g.margin,n?5:10))),o.renderLine(),o.offset=v*D(a.offset,x[l]?x[l]+(a.margin||0):0),o.tickRotCorr=o.tickRotCorr||{x:0,y:0},s=0===l?-o.labelMetrics().h:2===l?o.tickRotCorr.y:0,i=Math.abs(M)+k,M&&(i-=s,i+=v*(n?D(f.y,o.tickRotCorr.y+v*f.distance):D(f.x,v*f.distance))),o.axisTitleMargin=D(e,i),o.getMaxLabelDimensions&&(o.maxLabelDimensions=o.getMaxLabelDimensions(h,d)),"colorAxis"!==c){let t=this.tickSize("tick");x[l]=Math.max(x[l],(o.axisTitleMargin||0)+S+v*o.offset,i,d&&d.length&&t?t[0]+v*o.offset:0);let e=!o.axisLine||a.offset?0:2*Math.floor(o.axisLine.strokeWidth()/2);y[p]=Math.max(y[p],e)}A(this,"afterGetOffset")}getLinePath(t){let e=this.chart,i=this.opposite,s=this.offset,o=this.horiz,r=this.left+(i?this.width:0)+s,n=e.chartHeight-this.bottom-(i?this.height:0)+s;return i&&(t*=-1),e.renderer.crispLine([["M",o?this.left:r,o?n:this.top],["L",o?e.chartWidth-this.right:r,o?n:e.chartHeight-this.bottom]],t)}renderLine(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))}getTitlePosition(t){let e=this.horiz,i=this.left,s=this.top,o=this.len,r=this.options.title,n=e?i:s,a=this.opposite,l=this.offset,h=r.x,d=r.y,c=this.chart.renderer.fontMetrics(t),p=t?Math.max(t.getBBox(!1,0).height-c.h-1,0):0,u={low:n+(e?0:o),middle:n+o/2,high:n+(e?o:0)}[r.align],g=(e?s+this.height:i)+(e?1:-1)*(a?-1:1)*(this.axisTitleMargin||0)+[-p,p,c.f,-p][this.side],f={x:e?u+h:g+(a?this.width:0)+l+h,y:e?g+d-(a?this.height:0)+l:u+d};return A(this,"afterGetTitlePosition",{titlePosition:f}),f}renderMinorTick(t,e){let i=this.minorTicks;i[t]||(i[t]=new n(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)}renderTick(t,e,i){let s=this.isLinked,o=this.ticks;(!s||t>=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(o[t]||(o[t]=new n(this,t)),i&&o[t].isNew&&o[t].render(e,!0,-1),o[t].render(e))}render(){let t,e,i=this,s=i.chart,o=i.logarithmic,a=s.renderer,h=i.options,d=i.isLinked,c=i.tickPositions,p=i.axisTitle,u=i.ticks,g=i.minorTicks,f=i.alternateBands,m=h.stackLabels,x=h.alternateGridColor,b=h.crossing,y=i.tickmarkOffset,v=i.axisLine,S=i.showAxis,k=l(a.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[u,g,f].forEach((function(t){O(t,(function(t){t.isActive=!1}))})),w(b)){let t=this.isXAxis?s.yAxis[0]:s.xAxis[0],e=[1,-1,-1,1][this.side];if(t){let s=t.toPixels(b,!0);i.horiz&&(s=t.len-s),i.offset=e*s}}if(i.hasData()||d){let a=i.chart.hasRendered&&i.old&&w(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach((function(t){i.renderMinorTick(t,a)})),c.length&&(c.forEach((function(t,e){i.renderTick(t,e,a)})),y&&(0===i.min||i.single)&&(u[-1]||(u[-1]=new n(i,-1,null,!0)),u[-1].render(-1))),x&&c.forEach((function(n,a){e=void 0!==c[a+1]?c[a+1]+y:i.max-y,a%2==0&&n=.5)t=Math.round(t),h=o.getLinearTickPositions(t,e,i);else if(t>=.08){let o,r,n,a,l,d,c;for(o=t>.3?[1,2,4]:t>.15?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9],r=Math.floor(e);re&&(!s||d<=i)&&void 0!==d&&h.push(d),d>i&&(c=!0),d=l}else{let d=this.lin2log(e),c=this.lin2log(i),p=s?o.getMinorTickInterval():l.tickInterval,u="auto"===p?null:p,g=l.tickPixelInterval/(s?5:1),f=s?a/o.tickPositions.length:a;t=r(t=n(u,this.minorAutoInterval,(c-d)*g/(f||1))),h=o.getLinearTickPositions(t,d,c).map(this.log2lin),s||(this.minorAutoInterval=t/5)}return s||(o.tickInterval=t),h}lin2log(t){return Math.pow(10,t)}log2lin(t){return Math.log(t)/Math.LN10}}t.Additions=l}(i||(i={})),i})),i(e,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e){var i;let{composed:s}=t,{erase:o,extend:r,isNumber:n,pushUnique:a}=e;return function(t){let e;function i(t){return this.addPlotBandOrLine(t,"plotBands")}function l(t,i){let s=this.userOptions,o=new e(this,t);if(this.visible&&(o=o.render()),o){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach((t=>{this.addPlotBandOrLine(t)}))),i){let e=s[i]||[];e.push(t),s[i]=e}this.plotLinesAndBands.push(o)}return o}function h(t){return this.addPlotBandOrLine(t,"plotLines")}function d(t,e,i){i=i||this.options;let s,o,r=this.getPlotLinePath({value:e,force:!0,acrossPanes:i.acrossPanes}),a=[],l=this.horiz,h=!n(this.min)||!n(this.max)||tthis.max&&e>this.max,d=this.getPlotLinePath({value:t,force:!0,acrossPanes:i.acrossPanes}),c=1;if(d&&r)for(h&&(o=d.toString()===r.toString(),c=0),s=0;s{var i;null===(i=M)||void 0===i||i.on(e,(function(t){g[e].apply(this,[t])}))})),this.eventsAdded=!0),!P&&M.d||null===(e=C)||void 0===e||!e.length?M&&(C?(M.show(),M.animate({d:C})):M.d&&(M.hide(),A&&(this.label=A=A.destroy()))):M.attr({d:C}),k&&(o(k.text)||o(k.formatter))&&null!==(i=C)&&void 0!==i&&i.length&&r.width>0&&r.height>0&&!C.isFlat?(k=l({align:c&&T&&"center",x:c?!T&&4:10,verticalAlign:!c&&T&&"middle",y:c?T?16:10:T?6:-4,rotation:c&&!T&&90},k),this.renderLabel(k,C,T,f)):A&&A.hide(),this}renderLabel(t,e,o,r){let n=this.axis,a=n.chart.renderer,h=this.label;h||(this.label=h=a.text(this.getLabelText(t),0,0,t.useHTML).attr({align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(o?"band":"line")+"-label"+(t.className||""),zIndex:r}),n.chart.styledMode||h.css(l({fontSize:"0.8em",textOverflow:"ellipsis"},t.style)),h.add());let d=e.xBounds||[e[0][1],e[1][1],o?e[2][1]:e[0][1]],c=e.yBounds||[e[0][2],e[1][2],o?e[2][2]:e[0][2]],p=s(d),u=s(c);if(h.align(t,!1,{x:p,y:u,width:i(d)-p,height:i(c)-u}),!h.alignValue||"left"===h.alignValue){let e=t.clip?n.width:n.chart.chartWidth;h.css({width:(90===h.rotation?n.height-(h.alignAttr.y-n.top):e-(h.alignAttr.x-n.left))+"px"})}h.show(!0)}getLabelText(t){return o(t.formatter)?t.formatter.call(this):t.text}destroy(){n(this.axis.plotLinesAndBands,this),delete this.axis,r(this)}}return c})),i(e,"Core/Tooltip.js",[e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o){var r;let{format:n}=t,{composed:a,doc:l,isSafari:h}=e,{distribute:d}=i,{addEvent:c,clamp:p,css:u,discardElement:g,extend:f,fireEvent:m,isArray:x,isNumber:b,isString:y,merge:v,pick:S,pushUnique:k,splat:A,syncTimeout:M}=o;class C{constructor(t,e){this.allowShared=!0,this.crosshairs=[],this.distance=0,this.isHidden=!0,this.isSticky=!1,this.now={},this.options={},this.outside=!1,this.chart=t,this.init(t,e)}bodyFormatter(t){return t.map((function(t){let e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")}))}cleanSplit(t){this.chart.series.forEach((function(e){let i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)}))}defaultFormatter(t){let e,i=this.points||A(this);return(e=(e=[t.tooltipFooterHeaderFormatter(i[0])]).concat(t.bodyFormatter(i))).push(t.tooltipFooterHeaderFormatter(i[0],!0)),e}destroy(){this.label&&(this.label=this.label.destroy()),this.split&&(this.cleanSplit(!0),this.tt&&(this.tt=this.tt.destroy())),this.renderer&&(this.renderer=this.renderer.destroy(),g(this.container)),o.clearTimeout(this.hideTimer),o.clearTimeout(this.tooltipTimeout)}getAnchor(t,e){let i,s=this.chart,o=s.pointer,r=s.inverted,n=s.plotTop,a=s.plotLeft;if((t=A(t))[0].series&&t[0].series.yAxis&&!t[0].series.yAxis.options.reversedStacks&&(t=t.slice().reverse()),this.followPointer&&e)void 0===e.chartX&&(e=o.normalize(e)),i=[e.chartX-a,e.chartY-n];else if(t[0].tooltipPos)i=t[0].tooltipPos;else{let s=0,o=0;t.forEach((function(t){let e=t.pos(!0);e&&(s+=e[0],o+=e[1])})),s/=t.length,o/=t.length,this.shared&&t.length>1&&e&&(r?s=e.chartX:o=e.chartY),i=[s-a,o-n]}return i.map(Math.round)}getClassName(t,e,i){let s=this.options,o=t.series,r=o.options;return[s.className,"highcharts-label",i&&"highcharts-tooltip-header",e?"highcharts-tooltip-box":"highcharts-tooltip",!i&&"highcharts-color-"+S(t.colorIndex,o.colorIndex),r&&r.className].filter(y).join(" ")}getLabel(){let t=this,i=this.chart.styledMode,o=this.options,r=this.split&&this.allowShared,n=this.container,a=this.chart.renderer;if(this.label){let t=!this.label.hasClass("highcharts-label");(!r&&t||r&&!t)&&this.destroy()}if(!this.label){if(this.outside){let t=this.chart.options.chart.style,i=s.getRendererType();this.container=n=e.doc.createElement("div"),n.className="highcharts-tooltip-container",u(n,{position:"absolute",top:"1px",pointerEvents:"none",zIndex:Math.max(this.options.style.zIndex||0,(t&&t.zIndex||0)+3)}),this.renderer=a=new i(n,0,0,t,void 0,void 0,a.styledMode)}if(r?this.label=a.g("tooltip"):(this.label=a.label("",0,0,o.shape,void 0,void 0,o.useHTML,void 0,"tooltip").attr({padding:o.padding,r:o.borderRadius}),i||this.label.attr({fill:o.backgroundColor,"stroke-width":o.borderWidth||0}).css(o.style).css({pointerEvents:o.style.pointerEvents||(this.shouldStickOnContact()?"auto":"none")})),t.outside){let e=this.label,{xSetter:i,ySetter:s}=e;e.xSetter=function(s){i.call(e,t.distance),n&&(n.style.left=s+"px")},e.ySetter=function(i){s.call(e,t.distance),n&&(n.style.top=i+"px")}}this.label.attr({zIndex:8}).shadow(o.shadow).add()}return n&&!n.parentElement&&e.doc.body.appendChild(n),this.label}getPlayingField(){let{body:t,documentElement:e}=l,{chart:i,distance:s,outside:o}=this;return{width:o?Math.max(t.scrollWidth,e.scrollWidth,t.offsetWidth,e.offsetWidth,e.clientWidth)-2*s:i.chartWidth,height:o?Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,e.clientHeight):i.chartHeight}}getPosition(t,e,i){var s;let o,{distance:r,chart:n,outside:a}=this,{inverted:l,plotLeft:h,plotTop:d,polar:c}=n,{plotX:p=0,plotY:u=0}=i,g={},f=l&&i.h||0,{height:m,width:x}=this.getPlayingField(),b=n.pointer.getChartPosition(),y=t=>t*b.scaleX,v=t=>t*b.scaleY,k=i=>{let s="x"===i;return[i,s?x:m,s?t:e].concat(a?[s?y(t):v(e),s?b.left-r+y(p+h):b.top-r+v(u+d),0,s?x:m]:[s?t:e,s?p+h:u+d,s?h:d,s?h+n.plotWidth:d+n.plotHeight])},A=k("y"),M=k("x"),C=!!i.negative;!c&&(null===(s=n.hoverSeries)||void 0===s||null===(s=s.yAxis)||void 0===s?void 0:s.reversed)&&(C=!C);let T=!this.followPointer&&S(i.ttBelow,!c&&!l===C),w=function(t,e,i,s,o,n,l){let h=a?"y"===t?v(r):y(r):r,d=(i-s)/2,c=se?m:m+f)}},P=function(t,e,i,s,o){if(oe-r)return!1;g[t]=oe-s/2?e-s-2:o-i/2},L=function(t){[A,M]=[M,A],o=t},E=()=>{!1!==w.apply(0,A)?!1!==P.apply(0,M)||o||(L(!0),E()):o?g.x=g.y=0:(L(!0),E())};return(l&&!c||this.len>1)&&L(),E(),g}hide(t){let e=this;o.clearTimeout(this.hideTimer),t=S(t,this.options.hideDelay),this.isHidden||(this.hideTimer=M((function(){let i=e.getLabel();e.getLabel().animate({opacity:0},{duration:t?150:t,complete:()=>{i.hide(),e.container&&e.container.remove()}}),e.isHidden=!0}),t))}init(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted&&!t.polar,this.shared=e.shared||this.split,this.outside=S(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))}shouldStickOnContact(t){return!(this.followPointer||!this.options.stickOnContact||t&&!this.chart.pointer.inClass(t.target,"highcharts-tooltip"))}move(t,e,i,s){let r=this,n=r.now,a=!1!==r.options.animation&&!r.isHidden&&(Math.abs(t-n.x)>1||Math.abs(e-n.y)>1),l=r.followPointer||r.len>1;f(n,{x:a?(2*n.x+t)/3:t,y:a?(n.y+e)/2:e,anchorX:l?void 0:a?(2*n.anchorX+i)/3:i,anchorY:l?void 0:a?(n.anchorY+s)/2:s}),r.getLabel().attr(n),r.drawTracker(),a&&(o.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout((function(){r&&r.move(t,e,i,s)}),32))}refresh(t,e){let i=this.chart,s=this.options,r=i.pointer,a=A(t),l=a[0],h=[],d=s.format,c=s.formatter||this.defaultFormatter,p=this.shared,u=i.styledMode,g={};if(!s.enabled||!l.series)return;o.clearTimeout(this.hideTimer),this.allowShared=!(!x(t)&&t.series&&t.series.noSharedTooltip),this.followPointer=!this.split&&l.series.tooltipOptions.followPointer;let f=this.getAnchor(t,e),b=f[0],v=f[1];p&&this.allowShared?(r.applyInactiveState(a),a.forEach((function(t){t.setState("hover"),h.push(t.getLabelConfig())})),(g=l.getLabelConfig()).points=h):g=l.getLabelConfig(),this.len=h.length;let k=y(d)?n(d,g,i):c.call(g,this),M=l.series;if(this.distance=S(M.tooltipOptions.distance,16),!1===k)this.hide();else{if(this.split&&this.allowShared)this.renderSplit(k,a);else{let t=b,o=v;if(e&&r.isDirectTouch&&(t=e.chartX-i.plotLeft,o=e.chartY-i.plotTop),!i.polar&&!1!==M.options.clip&&!a.some((e=>r.isDirectTouch||e.series.shouldShowTooltip(t,o))))return void this.hide();{let t=this.getLabel();(!s.style.width||u)&&t.css({width:(this.outside?this.getPlayingField():i.spacingBox).width+"px"}),t.attr({text:k&&k.join?k.join(""):k}),t.addClass(this.getClassName(l),!0),u||t.attr({stroke:s.borderColor||l.color||M.color||"#666666"}),this.updatePosition({plotX:b,plotY:v,negative:l.negative,ttBelow:l.ttBelow,h:f[2]||0})}}this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1}m(this,"refresh")}renderSplit(t,e){let i=this,{chart:s,chart:{chartWidth:o,chartHeight:r,plotHeight:n,plotLeft:a,plotTop:c,pointer:u,scrollablePixelsY:g=0,scrollablePixelsX:m,scrollingContainer:{scrollLeft:x,scrollTop:b}={scrollLeft:0,scrollTop:0},styledMode:v},distance:k,options:A,options:{positioner:M}}=i,C=i.outside&&"number"!=typeof m?l.documentElement.getBoundingClientRect():{left:x,right:x+o,top:b,bottom:b+r},T=i.getLabel(),w=this.renderer||s.renderer,P=!(!s.xAxis[0]||!s.xAxis[0].opposite),{left:L,top:E}=u.getChartPosition(),O=c+b,D=0,j=n-g;function B(t,e,s,o){let r,n,a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];return s?(r=P?0:j,n=p(t-o/2,C.left,C.right-o-(i.outside?L:0))):(r=e-O,n=p(n=a?t-o-k:t+k,a?n:C.left,C.right)),{x:n,y:r}}y(t)&&(t=[!1,t]);let I=t.slice(0,e.length+1).reduce((function(t,s,o){if(!1!==s&&""!==s){let r=e[o-1]||{isHeader:!0,plotX:e[0].plotX,plotY:n,series:{}},l=r.isHeader,h=l?i:r.series,d=h.tt=function(t,e,s){let o=t,{isHeader:r,series:n}=e;if(!o){var a;let t={padding:A.padding,r:A.borderRadius};v||(t.fill=A.backgroundColor,t["stroke-width"]=null!==(a=A.borderWidth)&&void 0!==a?a:1),o=w.label("",0,0,A[r?"headerShape":"shape"],void 0,void 0,A.useHTML).addClass(i.getClassName(e,!0,r)).attr(t).add(T)}return o.isActive=!0,o.attr({text:s}),v||o.css(A.style).attr({stroke:A.borderColor||e.color||n.color||"#333333"}),o}(h.tt,r,s.toString()),u=d.getBBox(),g=u.width+d.strokeWidth();l&&(D=u.height,j+=D,P&&(O-=D));let{anchorX:f,anchorY:m}=function(t){let e,i,{isHeader:s,plotX:o=0,plotY:r=0,series:l}=t;if(s)e=Math.max(a+o,a),i=c+n/2;else{let{xAxis:t,yAxis:s}=l;e=t.pos+p(o,-k,t.len+k),l.shouldShowTooltip(0,s.pos-c+r,{ignoreX:!0})&&(i=s.pos+r)}return{anchorX:e=p(e,C.left-k,C.right+k),anchorY:i}}(r);if("number"==typeof m){let e=u.height+1,s=M?M.call(i,g,e,r):B(f,m,l,g);t.push({align:M?0:void 0,anchorX:f,anchorY:m,boxWidth:g,point:r,rank:S(s.rank,l?1:0),size:e,target:s.y,tt:d,x:s.x})}else d.isActive=!1}return t}),[]);!M&&I.some((t=>{let{outside:e}=i,s=(e?L:0)+t.anchorX;return ss}))&&(I=I.map((t=>{let{x:e,y:i}=B(t.anchorX,t.anchorY,t.point.isHeader,t.boxWidth,!1);return f(t,{target:i,x:e})}))),i.cleanSplit(),d(I,j);let R={left:L,right:L};I.forEach((function(t){let{x:e,boxWidth:s,isHeader:o}=t;!o&&(i.outside&&L+eR.right&&(R.right=L+e))})),I.forEach((function(t){let{x:e,anchorX:s,anchorY:o,pos:r,point:{isHeader:n}}=t,a={visibility:void 0===r?"hidden":"inherit",x:e,y:(r||0)+O,anchorX:s,anchorY:o};if(i.outside&&e0&&(n||(a.x=e+t,a.anchorX=s+t),n&&(a.x=(R.right-R.left)/2,a.anchorX=s+t))}t.tt.attr(a)}));let{container:z,outside:N,renderer:G}=i;if(N&&z&&G){let{width:t,height:e,x:i,y:s}=T.getBBox();G.setSize(t+i,e+s,!1),z.style.left=R.left+"px",z.style.top=E+"px"}h&&T.attr({opacity:1===T.opacity?.999:1})}drawTracker(){if(!this.shouldStickOnContact())return void(this.tracker&&(this.tracker=this.tracker.destroy()));let t=this.chart,e=this.label,i=this.shared?t.hoverPoints:t.hoverPoint;if(!e||!i)return;let s={x:0,y:0,width:0,height:0},o=this.getAnchor(i),r=e.getBBox();o[0]+=t.plotLeft-(e.translateX||0),o[1]+=t.plotTop-(e.translateY||0),s.x=Math.min(0,o[0]),s.y=Math.min(0,o[1]),s.width=o[0]<0?Math.max(Math.abs(o[0]),r.width-o[0]):Math.max(Math.abs(o[0]),r.width),s.height=o[1]<0?Math.max(Math.abs(o[1]),r.height-Math.abs(o[1])):Math.max(Math.abs(o[1]),r.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}styledModeFormat(t){return t.replace('style="font-size: 0.8em"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex} {series.options.className} {point.options.className}"')}tooltipFooterHeaderFormatter(t,e){let i=t.series,s=i.tooltipOptions,o=i.xAxis,r=o&&o.dateTime,a={isFooter:e,labelConfig:t},l=s.xDateFormat,h=s[e?"footerFormat":"headerFormat"];return m(this,"headerFormatter",a,(function(e){r&&!l&&b(t.key)&&(l=r.getXDateFormat(t.key,s.dateTimeLabelFormats)),r&&l&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){h=h.replace("{point."+t+"}","{point."+t+":"+l+"}")})),i.chart.styledMode&&(h=this.styledModeFormat(h)),e.text=n(h,{point:t,series:i},this.chart)})),a.text}update(t){this.destroy(),this.init(this.chart,v(!0,this.options,t))}updatePosition(t){let e,{chart:i,container:s,distance:o,options:r,renderer:n}=this,{height:a=0,width:l=0}=this.getLabel(),h=i.pointer,{left:d,top:c,scaleX:p,scaleY:g}=h.getChartPosition(),f=(r.positioner||this.getPosition).call(this,l,a,t),m=(t.plotX||0)+i.plotLeft,x=(t.plotY||0)+i.plotTop;n&&s&&(r.positioner&&(f.x+=d-o,f.y+=c-o),e=(r.borderWidth||0)+2*o+2,n.setSize(l+e,a+e,!1),(1!==p||1!==g)&&(u(s,{transform:"scale(".concat(p,", ").concat(g,")")}),m*=p,x*=g),m+=d-f.x,x+=c-f.y),this.move(Math.round(f.x),Math.round(f.y||0),m,x)}}return(r=C||(C={})).compose=function t(e){k(a,t)&&c(e,"afterInit",(function(){let t=this.chart;t.options.tooltip&&(t.tooltip=new r(t,t.options.tooltip))}))},C})),i(e,"Core/Series/Point.js",[e["Core/Renderer/HTML/AST.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o){let{animObject:r}=e,{defaultOptions:n}=i,{format:a}=s,{addEvent:l,defined:h,erase:d,extend:c,fireEvent:p,getNestedProperty:u,isArray:g,isFunction:f,isNumber:m,isObject:x,merge:b,objectEach:y,pick:v,syncTimeout:S,removeEvent:k,uniqueKey:A}=o;class M{animateBeforeDestroy(){let t=this,e={x:t.startXPos,opacity:0},i=t.getGraphicalProps();i.singular.forEach((function(i){t[i]=t[i].animate("dataLabel"===i?{x:t[i].startXPos,y:t[i].startYPos,opacity:0}:e)})),i.plural.forEach((function(e){t[e].forEach((function(e){e.element&&e.animate(c({x:t.startXPos},e.startYPos?{x:e.startXPos,y:e.startYPos}:{}))}))}))}applyOptions(t,e){let i=this.series,s=i.options.pointValKey||i.pointValKey;return c(this,t=M.prototype.optionsToObject.call(this,t)),this.options=this.options?c(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,s&&(this.y=M.prototype.getNestedProperty.call(this,s)),this.selected&&(this.state="select"),"name"in this&&void 0===e&&i.xAxis&&i.xAxis.hasNames&&(this.x=i.xAxis.nameToX(this)),void 0===this.x&&i?this.x=void 0===e?i.autoIncrement():e:m(t.x)&&i.options.relativeXValue&&(this.x=i.autoIncrement(t.x)),this.isNull=this.isValid&&!this.isValid(),this.formatPrefix=this.isNull?"null":"point",this}destroy(){if(!this.destroyed){let t=this,e=t.series,i=e.chart,s=e.options.dataSorting,o=i.hoverPoints,n=t.series.chart.renderer.globalAnimation,a=r(n),l=()=>{for(let e in(t.graphic||t.graphics||t.dataLabel||t.dataLabels)&&(k(t),t.destroyElements()),t)delete t[e]};t.legendItem&&i.legend.destroyItem(t),o&&(t.setState(),d(o,t),o.length||(i.hoverPoints=null)),t===i.hoverPoint&&t.onMouseOut(),s&&s.enabled?(this.animateBeforeDestroy(),S(l,a.duration)):l(),i.pointCount--}this.destroyed=!0}destroyElements(t){let e=this,i=e.getGraphicalProps(t);i.singular.forEach((function(t){e[t]=e[t].destroy()})),i.plural.forEach((function(t){e[t].forEach((function(t){t&&t.element&&t.destroy()})),delete e[t]}))}firePointEvent(t,e,i){let s=this,o=this.series.options;(o.point.events[t]||s.options&&s.options.events&&s.options.events[t])&&s.importEvents(),"click"===t&&o.allowPointSelect&&(i=function(t){!s.destroyed&&s.select&&s.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),p(s,t,e,i)}getClassName(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")}getGraphicalProps(t){let e,i,s=this,o=[],r={singular:[],plural:[]};for((t=t||{graphic:1,dataLabel:1}).graphic&&o.push("graphic","connector"),t.dataLabel&&o.push("dataLabel","dataLabelPath","dataLabelUpper"),i=o.length;i--;)s[e=o[i]]&&r.singular.push(e);return["graphic","dataLabel"].forEach((function(e){let i=e+"s";t[e]&&s[i]&&r.plural.push(i)})),r}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(t){return t?0===t.indexOf("custom.")?u(t,this.options):this[t]:void 0}getZone(){let t,e=this.series,i=e.zones,s=e.zoneAxis||"y",o=0;for(t=i[0];this[s]>=t.value;)t=i[++o];return this.nonZonedColor||(this.nonZonedColor=this.color),t&&t.color&&!this.options.color?this.color=t.color:this.color=this.nonZonedColor,t}hasNewShapeType(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType}constructor(t,e,i){var s;this.formatPrefix="point",this.visible=!0,this.series=t,this.applyOptions(e,i),null!==(s=this.id)&&void 0!==s||(this.id=A()),this.resolveColor(),t.chart.pointCount++,p(this,"afterInit")}isValid(){return(m(this.x)||this.x instanceof Date)&&m(this.y)}optionsToObject(t){let e,i=this.series,s=i.options.keys,o=s||i.pointArrayMap||["y"],r=o.length,n={},a=0,l=0;if(m(t)||null===t)n[o[0]]=t;else if(g(t))for(!s&&t.length>r&&("string"==(e=typeof t[0])?n.name=t[0]:"number"===e&&(n.x=t[0]),a++);l0?M.prototype.setNestedProperty(n,t[a],o[l]):n[o[l]]=t[a]),a++,l++;else"object"==typeof t&&(n=t,t.dataLabels&&(i.hasDataLabels=()=>!0),t.marker&&(i._hasPointMarkers=!0));return n}pos(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.plotY;if(!this.destroyed){let{plotX:i,series:s}=this,{chart:o,xAxis:r,yAxis:n}=s,a=0,l=0;if(m(i)&&m(e))return t&&(a=r?r.pos:o.plotLeft,l=n?n.pos:o.plotTop),o.inverted&&r&&n?[n.len-e+l,r.len-i+a]:[i+a,e+l]}}resolveColor(){let t,e,i,s=this.series,o=s.chart.options.chart,r=s.chart.styledMode,n=o.colorCount;delete this.nonZonedColor,s.options.colorByPoint?(r||(t=(e=s.options.colors||s.chart.options.colors)[s.colorCounter],n=e.length),i=s.colorCounter,s.colorCounter++,s.colorCounter===n&&(s.colorCounter=0)):(r||(t=s.color),i=s.colorIndex),this.colorIndex=v(this.options.colorIndex,i),this.color=v(this.options.color,t)}setNestedProperty(t,e,i){return i.split(".").reduce((function(t,i,s,o){let r=o.length-1===s;return t[i]=r?e:x(t[i],!0)?t[i]:{},t[i]}),t),t}shouldDraw(){return!this.isNull}tooltipFormatter(t){let e=this.series,i=e.tooltipOptions,s=v(i.valueDecimals,""),o=i.valuePrefix||"",r=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach((function(e){e="{point."+e,(o||r)&&(t=t.replace(RegExp(e+"}","g"),o+e+"}"+r)),t=t.replace(RegExp(e+"}","g"),e+":,."+s+"f}")})),a(t,{point:this,series:this.series},e.chart)}update(t,e,i,s){let o,r=this,n=r.series,a=r.graphic,l=n.chart,h=n.options;function d(){r.applyOptions(t);let s=a&&r.hasMockGraphic,d=null===r.y?!s:s;a&&d&&(r.graphic=a.destroy(),delete r.hasMockGraphic),x(t,!0)&&(a&&a.element&&t&&t.marker&&void 0!==t.marker.symbol&&(r.graphic=a.destroy()),null!==t&&void 0!==t&&t.dataLabels&&r.dataLabel&&(r.dataLabel=r.dataLabel.destroy())),o=r.index,n.updateParallelArrays(r,o),h.data[o]=x(h.data[o],!0)||x(t,!0)?r.options:v(t,h.data[o]),n.isDirty=n.isDirtyData=!0,!n.fixedBox&&n.hasCartesianSeries&&(l.isDirtyBox=!0),"point"===h.legendType&&(l.isDirtyLegend=!0),e&&l.redraw(i)}e=v(e,!0),!1===s?d():r.firePointEvent("update",{options:t},d)}remove(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}select(t,e){let i=this,s=i.series,o=s.chart;t=v(t,!i.selected),this.selectedStaging=t,i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||o.getSelectedPoints().forEach((function(t){let e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(o.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging}onMouseOver(t){let e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)}onMouseOut(){let t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null}importEvents(){if(!this.hasImportedEvents){let t=this,e=b(t.series.options.point,t.options).events;t.events=e,y(e,(function(e,i){f(e)&&l(t,i,e)})),this.hasImportedEvents=!0}}setState(e,i){let s,o,r,a,l=this.series,h=this.state,d=l.options.states[e||"normal"]||{},u=n.plotOptions[l.type].marker&&l.options.marker,g=u&&!1===u.enabled,f=u&&u.states&&u.states[e||"normal"]||{},x=!1===f.enabled,b=this.marker||{},y=l.chart,S=u&&l.markerAttribs,k=l.halo,A=l.stateMarkerGraphic;if((e=e||"")===this.state&&!i||this.selected&&"select"!==e||!1===d.enabled||e&&(x||g&&!1===f.enabled)||e&&b.states&&b.states[e]&&!1===b.states[e].enabled)return;if(this.state=e,S&&(s=l.markerAttribs(this,e)),this.graphic&&!this.hasMockGraphic){if(h&&this.graphic.removeClass("highcharts-point-"+h),e&&this.graphic.addClass("highcharts-point-"+e),!y.styledMode){o=l.pointAttribs(this,e),r=v(y.options.chart.animation,d.animation);let t=o.opacity;l.options.inactiveOtherPoints&&m(t)&&(this.dataLabels||[]).forEach((function(e){e&&!e.hasClass("highcharts-data-label-hidden")&&(e.animate({opacity:t},r),e.connector&&e.connector.animate({opacity:t},r))})),this.graphic.animate(o,r)}s&&this.graphic.animate(s,v(y.options.chart.animation,f.animation,u.animation)),A&&A.hide()}else e&&f&&(a=b.symbol||l.symbol,A&&A.currentSymbol!==a&&(A=A.destroy()),s&&(A?A[i?"animate":"attr"]({x:s.x,y:s.y}):a&&(l.stateMarkerGraphic=A=y.renderer.symbol(a,s.x,s.y,s.width,s.height).add(l.markerGroup),A.currentSymbol=a)),!y.styledMode&&A&&"inactive"!==this.state&&A.attr(l.pointAttribs(this,e))),A&&(A[e&&this.isInside?"show":"hide"](),A.element.point=this,A.addClass(this.getClassName(),!0));let M=d.halo,C=this.graphic||A,T=C&&C.visibility||"inherit";M&&M.size&&C&&"hidden"!==T&&!this.isCluster?(k||(l.halo=k=y.renderer.path().add(C.parentGroup)),k.show()[i?"animate":"attr"]({d:this.haloPath(M.size)}),k.attr({class:"highcharts-halo highcharts-color-"+v(this.colorIndex,l.colorIndex)+(this.className?" "+this.className:""),visibility:T,zIndex:-1}),k.point=this,y.styledMode||k.attr(c({fill:this.color||l.color,"fill-opacity":M.opacity},t.filterUserAttributes(M.attributes||{})))):k&&k.point&&k.point.haloPath&&k.animate({d:k.point.haloPath(0)},null,k.hide),p(this,"afterSetState",{state:e})}haloPath(t){let e=this.pos();return e?this.series.chart.renderer.symbols.circle(Math.floor(e[0])-t,e[1]-t,2*t,2*t):[]}}return M})),i(e,"Core/Pointer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){var s;let{parse:o}=t,{charts:r,composed:n,noop:a}=e,{addEvent:l,attr:h,css:d,defined:c,extend:p,find:u,fireEvent:g,isNumber:f,isObject:m,objectEach:x,offset:b,pick:y,pushUnique:v,splat:S}=i;class k{applyInactiveState(t){let e,i=[];(t||[]).forEach((function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))}destroy(){let t=this;this.eventsToUnbind.forEach((t=>t())),this.eventsToUnbind=[],!e.chartCount&&(k.unbindDocumentMouseUp&&(k.unbindDocumentMouseUp=k.unbindDocumentMouseUp()),k.unbindDocumentTouchEnd&&(k.unbindDocumentTouchEnd=k.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),x(t,(function(e,i){t[i]=void 0}))}getSelectionMarkerAttrs(t,e){let i={args:{chartX:t,chartY:e},attrs:{},shapeType:"rect"};return g(this,"getSelectionMarkerAttrs",i,(i=>{let s,{chart:o,mouseDownX:r=0,mouseDownY:n=0,zoomHor:a,zoomVert:l}=this,h=i.attrs;h.x=o.plotLeft,h.y=o.plotTop,h.width=a?1:o.plotWidth,h.height=l?1:o.plotHeight,a&&(s=t-r,h.width=Math.abs(s),h.x=(s>0?0:s)+r),l&&(s=e-n,h.height=Math.abs(s),h.y=(s>0?0:s)+n)})),i}drag(t){let e,i=this.chart,s=i.options.chart,r=i.plotLeft,n=i.plotTop,a=i.plotWidth,l=i.plotHeight,h=this.mouseDownX||0,d=this.mouseDownY||0,c=m(s.panning)?s.panning&&s.panning.enabled:s.panning,p=s.panKey&&t[s.panKey+"Key"],u=t.chartX,g=t.chartY,f=this.selectionMarker;if((!f||!f.touch)&&(ur+a&&(u=r+a),gn+l&&(g=n+l),this.hasDragged=Math.sqrt(Math.pow(h-u,2)+Math.pow(d-g,2)),this.hasDragged>10)){e=i.isInsidePlot(h-r,d-n,{visiblePlotOnly:!0});let{shapeType:a,attrs:l}=this.getSelectionMarkerAttrs(u,g);(i.hasCartesianSeries||i.mapView)&&(this.zoomX||this.zoomY)&&e&&!p&&!f&&(this.selectionMarker=f=i.renderer[a](),f.attr({class:"highcharts-selection-marker",zIndex:7}).add(),i.styledMode||f.attr({fill:s.selectionMarkerFill||o("#334eff").setOpacity(.25).get()})),f&&f.attr(l),e&&!f&&c&&i.pan(t,s.panning)}}dragStart(t){let e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY}getSelectionBox(t){let e={args:{marker:t},result:{}};return g(this,"getSelectionBox",e,(e=>{e.result={x:t.attr?+t.attr("x"):t.x,y:t.attr?+t.attr("y"):t.y,width:t.attr?t.attr("width"):t.width,height:t.attr?t.attr("height"):t.height}})),e.result}drop(t){let e=this,i=this.chart,s=this.hasPinched;if(this.selectionMarker){let{x:o,y:r,width:n,height:a}=this.getSelectionBox(this.selectionMarker),l={originalEvent:t,xAxis:[],yAxis:[],x:o,y:r,width:n,height:a},h=!!i.mapView;(this.hasDragged||s)&&(i.axes.forEach((function(i){if(i.zoomEnabled&&c(i.min)&&(s||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])&&f(o)&&f(r)&&f(n)&&f(a)){let e=i.horiz,s="touchend"===t.type?i.minPixelPadding:0,d=i.toValue((e?o:r)+s),c=i.toValue((e?o+n:r+a)-s);l[i.coll].push({axis:i,min:Math.min(d,c),max:Math.max(d,c)}),h=!0}})),h&&g(i,"selection",l,(function(t){i.zoom(p(t,s?{animation:!1}:null))}))),f(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),s&&this.scaleGroups()}i&&f(i.index)&&(d(i.container,{cursor:i._cursor}),i.cancelClick=+this.hasDragged>10,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])}findNearestKDPoint(t,e,i){let s;return t.forEach((function(t){let o=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y"),r=t.searchPoint(i,o);m(r,!0)&&r.series&&(!m(s,!0)||function(t,i){let s=t.distX-i.distX,o=t.dist-i.dist,r=(i.series.group&&i.series.group.zIndex)-(t.series.group&&t.series.group.zIndex);return 0!==s&&e?s:0!==o?o:0!==r?r:t.series.index>i.series.index?-1:1}(s,r)>0)&&(s=r)})),s}getChartCoordinatesFromPoint(t,e){let i=t.series,s=i.xAxis,o=i.yAxis,r=t.shapeArgs;if(s&&o){let i=y(t.clientX,t.plotX),n=t.plotY||0;return t.isNode&&r&&f(r.x)&&f(r.y)&&(i=r.x,n=r.y),e?{chartX:o.len+o.pos-n,chartY:s.len+s.pos-i}:{chartX:i+s.pos,chartY:n+o.pos}}if(r&&r.x&&r.y)return{chartX:r.x,chartY:r.y}}getChartPosition(){if(this.chartPosition)return this.chartPosition;let{container:t}=this.chart,e=b(t);this.chartPosition={left:e.left,top:e.top,scaleX:1,scaleY:1};let i=t.offsetWidth,s=t.offsetHeight;return i>2&&s>2&&(this.chartPosition.scaleX=e.width/i,this.chartPosition.scaleY=e.height/s),this.chartPosition}getCoordinates(t){let e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e}getHoverData(t,e,i,s,o,r){let n,a=[],l=function(t){return t.visible&&!(!o&&t.directTouch)&&y(t.options.enableMouseTracking,!0)},h=e,d={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:o};g(this,"beforeGetHoverData",d),n=h&&!h.stickyTracking?[h]:i.filter((t=>t.stickyTracking&&(d.filter||l)(t)));let c=s&&t||!r?t:this.findNearestKDPoint(n,o,r);return h=c&&c.series,c&&(o&&!h.noSharedTooltip?(n=i.filter((function(t){return d.filter?d.filter(t):l(t)&&!t.noSharedTooltip}))).forEach((function(t){let e=u(t.points,(function(t){return t.x===c.x&&!t.isNull}));m(e)&&(t.boosted&&t.boost&&(e=t.boost.getPoint(e)),a.push(e))})):a.push(c)),g(this,"afterGetHoverData",d={hoverPoint:c}),{hoverPoint:d.hoverPoint,hoverSeries:h,hoverPoints:a}}getPointFromEvent(t){let e,i=t.target;for(;i&&!e;)e=i.point,i=i.parentNode;return e}onTrackerMouseOut(t){let e=this.chart,i=t.relatedTarget,s=e.hoverSeries;this.isDirectTouch=!1,!s||!i||s.stickyTracking||this.inClass(i,"highcharts-tooltip")||this.inClass(i,"highcharts-series-"+s.index)&&this.inClass(i,"highcharts-tracker")||s.onMouseOut()}inClass(t,e){let i,s=t;for(;s;){if(i=h(s,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}s=s.parentElement}}constructor(t,e){var i;this.hasDragged=!1,this.lastValidTouch={},this.pinchDown=[],this.eventsToUnbind=[],this.options=e,this.chart=t,this.runChartClick=!(null===(i=e.chart.events)||void 0===i||!i.click),this.pinchDown=[],this.lastValidTouch={},this.setDOMEvents(),g(this,"afterInit")}normalize(t,e){let i=t.touches,s=i?i.length?i.item(0):y(i.changedTouches,t.changedTouches)[0]:t;e||(e=this.getChartPosition());let o=s.pageX-e.left,r=s.pageY-e.top;return p(t,{chartX:Math.round(o/=e.scaleX),chartY:Math.round(r/=e.scaleY)})}onContainerClick(t){let e=this.chart,i=e.hoverPoint,s=this.normalize(t),o=e.plotLeft,r=e.plotTop;!e.cancelClick&&(i&&this.inClass(s.target,"highcharts-tracker")?(g(i.series,"click",p(s,{point:i})),e.hoverPoint&&i.firePointEvent("click",s)):(p(s,this.getCoordinates(s)),e.isInsidePlot(s.chartX-o,s.chartY-r,{visiblePlotOnly:!0})&&g(e,"click",s)))}onContainerMouseDown(t){let i=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))}onContainerMouseLeave(t){let e=r[y(k.hoverChartIndex,-1)];t=this.normalize(t),this.onContainerMouseMove(t),e&&t.relatedTarget&&!this.inClass(t.relatedTarget,"highcharts-tooltip")&&(e.pointer.reset(),e.pointer.chartPosition=void 0)}onContainerMouseEnter(t){delete this.chartPosition}onContainerMouseMove(t){let e=this.chart,i=e.tooltip,s=this.normalize(t);this.setHoverChartIndex(t),("mousedown"===e.mouseIsDown||this.touchSelect(s))&&this.drag(s),!e.openMenu&&(this.inClass(s.target,"highcharts-tracker")||e.isInsidePlot(s.chartX-e.plotLeft,s.chartY-e.plotTop,{visiblePlotOnly:!0}))&&(!i||!i.shouldStickOnContact(s))&&(this.inClass(s.target,"highcharts-no-tooltip")?this.reset(!1,0):this.runPointActions(s))}onDocumentTouchEnd(t){let e=r[y(k.hoverChartIndex,-1)];e&&e.pointer.drop(t)}onContainerTouchMove(t){this.touchSelect(t)?this.onContainerMouseMove(t):this.touch(t)}onContainerTouchStart(t){this.touchSelect(t)?this.onContainerMouseDown(t):(this.zoomOption(t),this.touch(t,!0))}onDocumentMouseMove(t){let e=this.chart,i=e.tooltip,s=this.chartPosition,o=this.normalize(t,s);!s||e.isInsidePlot(o.chartX-e.plotLeft,o.chartY-e.plotTop,{visiblePlotOnly:!0})||i&&i.shouldStickOnContact(o)||this.inClass(o.target,"highcharts-tracker")||this.reset()}onDocumentMouseUp(t){let e=r[y(k.hoverChartIndex,-1)];e&&e.pointer.drop(t)}pinch(t){let e=this,i=e.chart,s=e.pinchDown,o=t.touches||[],r=o.length,n=e.lastValidTouch,l=e.hasZoom,h={},d=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),c={},u=e.chart.tooltip,f=1===r&&y(u&&u.options.followTouchMove,!0),m=e.selectionMarker;r>1?e.initiated=!0:f&&(e.initiated=!1),l&&e.initiated&&!d&&!1!==t.cancelable&&t.preventDefault(),[].map.call(o,(function(t){return e.normalize(t)})),"touchstart"===t.type?([].forEach.call(o,(function(t,e){s[e]={chartX:t.chartX,chartY:t.chartY}})),n.x=[s[0].chartX,s[1]&&s[1].chartX],n.y=[s[0].chartY,s[1]&&s[1].chartY],i.axes.forEach((function(t){if(t.zoomEnabled){let e=i.bounds[t.horiz?"h":"v"],s=t.minPixelPadding,o=t.toPixels(Math.min(y(t.options.min,t.dataMin),t.dataMin)),r=t.toPixels(Math.max(y(t.options.max,t.dataMax),t.dataMax)),n=Math.min(o,r),a=Math.max(o,r);e.min=Math.min(t.pos,n-s),e.max=Math.max(t.pos+t.len,a+s)}})),e.res=!0):f?this.runPointActions(e.normalize(t)):s.length&&(g(i,"touchpan",{originalEvent:t},(()=>{m||(e.selectionMarker=m=p({destroy:a,touch:!0},i.plotBox)),e.pinchTranslate(s,o,h,m,c,n),e.hasPinched=l,e.scaleGroups(h,c)})),e.res&&(e.res=!1,this.reset(!1,0)))}pinchTranslate(t,e,i,s,o,r){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,s,o,r),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,s,o,r)}pinchTranslateDirection(t,e,i,s,o,r,n,a){let l,h,d,c,p=this.chart,u=t?"x":"y",g=t?"X":"Y",f="chart"+g,m=t?"width":"height",x=p["plot"+(t?"Left":"Top")],b=p.inverted,y=p.bounds[t?"h":"v"],v=1===e.length,S=e[0][f],k=!v&&e[1][f],A=function(){"number"==typeof T&&Math.abs(S-k)>20&&(M=a||Math.abs(C-T)/Math.abs(S-k)),d=(x-C)/M+S,l=p["plot"+(t?"Width":"Height")]/M},M=a||1,C=i[0][f],T=!v&&i[1][f];A(),(h=d)y.max&&(h=y.max-l,c=!0),c?(C-=.8*(C-n[u][0]),"number"==typeof T&&(T-=.8*(T-n[u][1])),A()):n[u]=[C,T],b||(r[u]=d-x,r[m]=l);let w=b?t?"scaleY":"scaleX":"scale"+g,P=b?1/M:M;o[m]=l,o[u]=h,s[w]=M*(b&&!t?-1:1),s["translate"+g]=P*x+(C-P*S)}reset(t,e){let i=this.chart,s=i.hoverSeries,o=i.hoverPoint,r=i.hoverPoints,n=i.tooltip,a=n&&n.shared?r:o;t&&a&&S(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?n&&a&&S(a).length&&(n.refresh(a),n.shared&&r?r.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):o&&(o.setState(o.state,!0),i.axes.forEach((function(t){t.crosshair&&o.series[t.coll]===t&&t.drawCrosshair(null,o)})))):(o&&o.onMouseOut(),r&&r.forEach((function(t){t.setState()})),s&&s.onMouseOut(),n&&n.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)}runPointActions(t,e,i){let s=this.chart,o=s.series,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,a=!!n&&n.shared,h=e||s.hoverPoint,d=h&&h.series||s.hoverSeries,c=(!t||"touchmove"!==t.type)&&(!!e||d&&d.directTouch&&this.isDirectTouch),p=this.getHoverData(h,d,o,c,a,t);h=p.hoverPoint,d=p.hoverSeries;let g=p.hoverPoints,f=d&&d.tooltipOptions.followPointer&&!d.tooltipOptions.split,m=a&&d&&!d.noSharedTooltip;if(h&&(i||h!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===g.indexOf(t)&&t.setState()})),s.hoverSeries!==d&&d.onMouseOver(),this.applyInactiveState(g),(g||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!h.series)return;s.hoverPoints=g,s.hoverPoint=h,h.firePointEvent("mouseOver",void 0,(()=>{n&&h&&n.refresh(m?g:h,t)}))}else if(f&&n&&!n.isHidden){let e=n.getAnchor([{}],t);s.isInsidePlot(e[0],e[1],{visiblePlotOnly:!0})&&n.updatePosition({plotX:e[0],plotY:e[1]})}this.unDocMouseMove||(this.unDocMouseMove=l(s.container.ownerDocument,"mousemove",(function(t){let e=r[k.hoverChartIndex];e&&e.pointer.onDocumentMouseMove(t)})),this.eventsToUnbind.push(this.unDocMouseMove)),s.axes.forEach((function(e){let i,o=y((e.crosshair||{}).snap,!0);!o||(i=s.hoverPoint)&&i.series[e.coll]===e||(i=u(g,(t=>t.series&&t.series[e.coll]===e))),i||!o?e.drawCrosshair(t,i):e.hideCrosshair()}))}scaleGroups(t,e){let i=this.chart;i.series.forEach((function(s){let o=t||s.getPlotBox("series");s.group&&(s.xAxis&&s.xAxis.zoomEnabled||i.mapView)&&(s.group.attr(o),s.markerGroup&&(s.markerGroup.attr(t||s.getPlotBox("marker")),s.markerGroup.clip(e?i.clipRect:null)),s.dataLabelsGroup&&s.dataLabelsGroup.attr(o))})),i.clipRect.attr(e||i.clipBox)}setDOMEvents(){let t=this.chart.container,i=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.eventsToUnbind.push(l(t,"mouseenter",this.onContainerMouseEnter.bind(this))),this.eventsToUnbind.push(l(t,"mouseleave",this.onContainerMouseLeave.bind(this))),k.unbindDocumentMouseUp||(k.unbindDocumentMouseUp=l(i,"mouseup",this.onDocumentMouseUp.bind(this)));let s=this.chart.renderTo.parentElement;for(;s&&"BODY"!==s.tagName;)this.eventsToUnbind.push(l(s,"scroll",(()=>{delete this.chartPosition}))),s=s.parentElement;e.hasTouch&&(this.eventsToUnbind.push(l(t,"touchstart",this.onContainerTouchStart.bind(this),{passive:!1})),this.eventsToUnbind.push(l(t,"touchmove",this.onContainerTouchMove.bind(this),{passive:!1})),k.unbindDocumentTouchEnd||(k.unbindDocumentTouchEnd=l(i,"touchend",this.onDocumentTouchEnd.bind(this),{passive:!1})))}setHoverChartIndex(t){let i=this.chart,s=e.charts[y(k.hoverChartIndex,-1)];s&&s!==i&&s.pointer.onContainerMouseLeave(t||{relatedTarget:i.container}),s&&s.mouseIsDown||(k.hoverChartIndex=i.index)}touch(t,e){let i,s,o=this.chart;this.setHoverChartIndex(),1===t.touches.length?(t=this.normalize(t),o.isInsidePlot(t.chartX-o.plotLeft,t.chartY-o.plotTop,{visiblePlotOnly:!0})&&!o.openMenu?(e&&this.runPointActions(t),"touchmove"===t.type&&(i=!!(s=this.pinchDown)[0]&&Math.sqrt(Math.pow(s[0].chartX-t.chartX,2)+Math.pow(s[0].chartY-t.chartY,2))>=4),y(i,!0)&&this.pinch(t)):e&&this.reset()):2===t.touches.length&&this.pinch(t)}touchSelect(t){return!(!this.chart.zooming.singleTouch||!t.touches||1!==t.touches.length)}zoomOption(t){let e,i,s=this.chart,o=(s.options.chart,s.inverted),r=s.zooming.type||"";/touch/.test(t.type)&&(r=y(s.zooming.pinchType,r)),this.zoomX=e=/x/.test(r),this.zoomY=i=/y/.test(r),this.zoomHor=e&&!o||i&&o,this.zoomVert=i&&!o||e&&o,this.hasZoom=e||i}}return(s=k||(k={})).compose=function t(e){v(n,t)&&l(e,"beforeRender",(function(){this.pointer=new s(this,this.options)}))},k})),i(e,"Core/Legend/Legend.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Series/Point.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o,r){var n;let{animObject:a,setAnimation:l}=t,{format:h}=e,{composed:d,marginNames:c}=i,{distribute:p}=o,{addEvent:u,createElement:g,css:f,defined:m,discardElement:x,find:b,fireEvent:y,isNumber:v,merge:S,pick:k,pushUnique:A,relativeLength:M,stableSort:C,syncTimeout:T}=r;class w{constructor(t,e){this.allItems=[],this.initialItemY=0,this.itemHeight=0,this.itemMarginBottom=0,this.itemMarginTop=0,this.itemX=0,this.itemY=0,this.lastItemY=0,this.lastLineHeight=0,this.legendHeight=0,this.legendWidth=0,this.maxItemWidth=0,this.maxLegendWidth=0,this.offsetWidth=0,this.padding=0,this.pages=[],this.symbolHeight=0,this.symbolWidth=0,this.titleHeight=0,this.totalItemWidth=0,this.widthOption=0,this.chart=t,this.setOptions(e),e.enabled&&(this.render(),u(this.chart,"endResize",(function(){this.legend.positionCheckboxes()}))),u(this.chart,"render",(()=>{this.options.enabled&&this.proximate&&(this.proximatePositions(),this.positionItems())}))}setOptions(t){let e=k(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=S(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop,this.itemMarginBottom=t.itemMarginBottom,this.padding=e,this.initialItemY=e-5,this.symbolWidth=k(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0}update(t,e){let i=this.chart;this.setOptions(S(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,k(e,!0)&&i.redraw(),y(this,"afterUpdate",{redraw:e})}colorizeItem(t,e){let{area:i,group:s,label:o,line:r,symbol:n}=t.legendItem||{};if(null!==s&&void 0!==s&&s[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){let{itemHiddenStyle:s={}}=this,a=s.color,{fillColor:l,fillOpacity:h,lineColor:d,marker:c}=t.options,p=t=>(!e&&(t.fill&&(t.fill=a),t.stroke&&(t.stroke=a)),t);null!==o&&void 0!==o&&o.css(S(e?this.itemStyle:s)),null!==r&&void 0!==r&&r.attr(p({stroke:d||t.color})),n&&n.attr(p(c&&n.isMarker?t.pointAttribs():{fill:t.color})),null===i||void 0===i||i.attr(p({fill:l||t.color,"fill-opacity":l?1:null!==h&&void 0!==h?h:.75}))}y(this,"afterColorizeItem",{item:t,visible:e})}positionItems(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()}positionItem(t){let{group:e,x:i=0,y:s=0}=t.legendItem||{},o=this.options,r=o.symbolPadding,n=!o.rtl,a=t.checkbox;if(e&&e.element){let o={translateX:n?i:this.legendWidth-i-2*r-4,translateY:s};e[m(e.translateY)?"animate":"attr"](o,void 0,(()=>{y(this,"afterPositionItem",{item:t})}))}a&&(a.x=i,a.y=s)}destroyItem(t){let e=t.checkbox,i=t.legendItem||{};for(let s of["group","label","line","symbol"])i[s]&&(i[s]=i[s].destroy());e&&x(e),t.legendItem=void 0}destroy(){for(let t of this.getAllItems())this.destroyItem(t);for(let t of["clipRect","up","down","pager","nav","box","title","group"])this[t]&&(this[t]=this[t].destroy());this.display=null}positionCheckboxes(){let t,e=this.group&&this.group.alignAttr,i=this.clipHeight||this.legendHeight,s=this.titleHeight;e&&(t=e.translateY,this.allItems.forEach((function(o){let r,n=o.checkbox;n&&(r=t+s+n.y+(this.scrollOffset||0)+3,f(n,{left:e.translateX+o.checkboxOffset+n.x-20+"px",top:r+"px",display:this.proximate||r>t-6&&r1.5*A?v.height:A))}layoutItem(t){let e=this.options,i=this.padding,s="horizontal"===e.layout,o=t.itemHeight,r=this.itemMarginBottom,n=this.itemMarginTop,a=s?k(e.itemDistance,20):0,l=this.maxLegendWidth,h=e.alignColumns&&this.totalItemWidth>l?this.maxItemWidth:t.itemWidth,d=t.legendItem||{};s&&this.itemX-i+h>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=n+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=n+this.itemY+r,this.lastLineHeight=Math.max(o,this.lastLineHeight),d.x=this.itemX,d.y=this.itemY,s?this.itemX+=h:(this.itemY+=n+o+r,this.lastLineHeight=o),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):h)+i,this.offsetWidth)}getAllItems(){let t=[];return this.chart.series.forEach((function(e){let i=e&&e.options;e&&k(i.showInLegend,!m(i.linkedTo)&&void 0,!0)&&(t=t.concat((e.legendItem||{}).labels||("point"===i.legendType?e.data:e)))})),y(this,"afterGetAllItems",{allItems:t}),t}getAlignment(){let t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)}adjustMargins(t,e){let i=this.chart,s=this.options,o=this.getAlignment();o&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(r,n){r.test(o)&&!m(t[n])&&(i[c[n]]=Math.max(i[c[n]],i.legend[(n+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][n]*s[n%2?"x":"y"]+k(s.margin,12)+e[n]+(i.titleOffset[n]||0)))}))}proximatePositions(){let t,e=this.chart,i=[],s="left"===this.options.align;for(let o of(this.allItems.forEach((function(t){let o,r,n,a,l=s;t.yAxis&&(t.xAxis.options.reversed&&(l=!l),t.points&&(o=b(l?t.points:t.points.slice(0).reverse(),(function(t){return v(t.plotY)}))),r=this.itemMarginTop+t.legendItem.label.getBBox().height+this.itemMarginBottom,a=t.yAxis.top-e.plotTop,n=t.visible?(o?o.plotY:t.yAxis.height)+(a-.3*r):a+t.yAxis.height,i.push({target:n,size:r,item:t}))}),this),p(i,e.plotHeight)))t=o.item.legendItem||{},v(o.pos)&&(t.y=e.plotTop-e.spacing[0]+o.pos)}render(){let t,e,i,s,o=this.chart,r=o.renderer,n=this.options,a=this.padding,l=this.getAllItems(),h=this.group,d=this.box;this.itemX=a,this.itemY=this.initialItemY,this.offsetWidth=0,this.lastItemY=0,this.widthOption=M(n.width,o.spacingBox.width-a),s=o.spacingBox.width-2*a-n.x,["rm","lm"].indexOf(this.getAlignment().substring(0,2))>-1&&(s/=2),this.maxLegendWidth=this.widthOption||s,h||(this.group=h=r.g("legend").addClass(n.className||"").attr({zIndex:7}).add(),this.contentGroup=r.g().attr({zIndex:1}).add(h),this.scrollGroup=r.g().add(this.contentGroup)),this.renderTitle(),C(l,((t,e)=>(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0))),n.reversed&&l.reverse(),this.allItems=l,this.display=t=!!l.length,this.lastLineHeight=0,this.maxItemWidth=0,this.totalItemWidth=0,this.itemHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),e=(this.widthOption||this.offsetWidth)+a,i=this.lastItemY+this.lastLineHeight+this.titleHeight,i=this.handleOverflow(i)+a,d||(this.box=d=r.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(h)),o.styledMode||d.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),e>0&&i>0&&d[d.placed?"animate":"attr"](d.crisp.call({},{x:0,y:0,width:e,height:i},d.strokeWidth())),h[t?"show":"hide"](),o.styledMode&&"none"===h.getStyle("display")&&(e=i=0),this.legendWidth=e,this.legendHeight=i,t&&this.align(),this.proximate||this.positionItems(),y(this,"afterRender")}align(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.chart.spacingBox,e=this.chart,i=this.options,s=t.y;/(lth|ct|rth)/.test(this.getAlignment())&&e.titleOffset[0]>0?s+=e.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&e.titleOffset[2]>0&&(s-=e.titleOffset[2]),s!==t.y&&(t=S(t,{y:s})),e.hasRendered||(this.group.placed=!1),this.group.align(S(i,{width:this.legendWidth,height:this.legendHeight,verticalAlign:this.proximate?"top":i.verticalAlign}),!0,t)}handleOverflow(t){let e,i,s,o=this,r=this.chart,n=r.renderer,a=this.options,l=a.y,h="top"===a.verticalAlign,d=this.padding,c=a.maxHeight,p=a.navigation,u=k(p.animation,!0),g=p.arrowSize||12,f=this.pages,m=this.allItems,x=function(t){"number"==typeof t?S.attr({height:t}):S&&(o.clipRect=S.destroy(),o.contentGroup.clip()),o.contentGroup.div&&(o.contentGroup.div.style.clip=t?"rect("+d+"px,9999px,"+(d+t)+"px,0)":"auto")},b=function(t){return o[t]=n.circle(0,0,1.3*g).translate(g/2,g/2).add(v),r.styledMode||o[t].attr("fill","rgba(0,0,0,0.0001)"),o[t]},y=r.spacingBox.height+(h?-l:l)-d,v=this.nav,S=this.clipRect;return"horizontal"!==a.layout||"middle"===a.verticalAlign||a.floating||(y/=2),c&&(y=Math.min(y,c)),f.length=0,t&&y>0&&t>y&&!1!==p.enabled?(this.clipHeight=e=Math.max(y-20-this.titleHeight-d,0),this.currentPage=k(this.currentPage,1),this.fullHeight=t,m.forEach(((t,o)=>{s=t.legendItem||{};let r=s.y||0,n=Math.round(s.label.getBBox().height),a=f.length;(!a||r-f[a-1]>e&&(i||r)!==f[a-1])&&(f.push(i||r),a++),s.pageIx=a-1,i&&((m[o-1].legendItem||{}).pageIx=a-1),o===m.length-1&&r+n-f[a-1]>e&&r>f[a-1]&&(f.push(r),s.pageIx=a),r!==i&&(i=r)})),S||(S=o.clipRect=n.clipRect(0,d-2,9999,0),o.contentGroup.clip(S)),x(e),v||(this.nav=v=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,g,g).add(v),b("upTracker").on("click",(function(){o.scroll(-1,u)})),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),!r.styledMode&&p.style&&this.pager.css(p.style),this.pager.add(v),this.down=n.symbol("triangle-down",0,0,g,g).add(v),b("downTracker").on("click",(function(){o.scroll(1,u)}))),o.scroll(0),t=y):v&&(x(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t}scroll(t,e){let i=this.chart,s=this.pages,o=s.length,r=this.clipHeight,n=this.options.navigation,h=this.pager,d=this.padding,c=this.currentPage+t;if(c>o&&(c=o),c>0){void 0!==e&&l(e,i),this.nav.attr({translateX:d,translateY:r+this.padding+7+this.titleHeight,visibility:"inherit"}),[this.up,this.upTracker].forEach((function(t){t.attr({class:1===c?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})})),h.attr({text:c+"/"+o}),[this.down,this.downTracker].forEach((function(t){t.attr({x:18+this.pager.getBBox().width,class:c===o?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),this),i.styledMode||(this.up.attr({fill:1===c?n.inactiveColor:n.activeColor}),this.upTracker.css({cursor:1===c?"default":"pointer"}),this.down.attr({fill:c===o?n.inactiveColor:n.activeColor}),this.downTracker.css({cursor:c===o?"default":"pointer"})),this.scrollOffset=-s[c-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=c,this.positionCheckboxes();let t=a(k(e,i.renderer.globalAnimation,!0));T((()=>{y(this,"afterScroll",{currentPage:c})}),t.duration)}}setItemEvents(t,e,i){let o=this,r=t.legendItem||{},n=o.chart.renderer.boxWrapper,a=t instanceof s,l="highcharts-legend-"+(a?"point":"series")+"-active",h=o.chart.styledMode,d=i?[e,r.symbol]:[r.group],c=e=>{o.allItems.forEach((i=>{t!==i&&[i].concat(i.linkedSeries||[]).forEach((t=>{t.setState(e,!a)}))}))};for(let s of d)s&&s.on("mouseover",(function(){t.visible&&c("inactive"),t.setState("hover"),t.visible&&n.addClass(l),h||e.css(o.options.itemHoverStyle)})).on("mouseout",(function(){o.chart.styledMode||e.css(S(t.visible?o.itemStyle:o.itemHiddenStyle)),c(""),n.removeClass(l),t.setState()})).on("click",(function(e){let i="legendItemClick",s=function(){t.setVisible&&t.setVisible(),c(t.visible?"inactive":"")};n.removeClass(l),e={browserEvent:e},t.firePointEvent?t.firePointEvent(i,e,s):y(t,i,e,s)}))}createCheckboxForItem(t){t.checkbox=g("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),u(t.checkbox,"click",(function(e){let i=e.target;y(t.series||t,"checkboxClick",{checked:i.checked,item:t},(function(){t.select()}))}))}}return(n=w||(w={})).compose=function t(e){A(d,t)&&u(e,"beforeMargins",(function(){this.legend=new n(this,this.options.legend)}))},w})),i(e,"Core/Legend/LegendSymbol.js",[e["Core/Utilities.js"]],(function(t){var e;let{extend:i,merge:s,pick:o}=t;return function(t){function e(t,e,r){let n,a=this.legendItem=this.legendItem||{},{chart:l,options:h}=this,{baseline:d=0,symbolWidth:c,symbolHeight:p}=t,u=this.symbol||"circle",g=p/2,f=l.renderer,m=a.group,x=d-Math.round(p*(r?.4:.3)),b={},y=h.marker,v=0;if(l.styledMode||(b["stroke-width"]=Math.min(h.lineWidth||0,24),h.dashStyle?b.dashstyle=h.dashStyle:"square"===h.linecap||(b["stroke-linecap"]="round")),a.line=f.path().addClass("highcharts-graph").attr(b).add(m),r&&(a.area=f.path().addClass("highcharts-area").add(m)),b["stroke-linecap"]&&(v=Math.min(a.line.strokeWidth(),c)/2),c){var S;let t=[["M",v,x],["L",c-v,x]];a.line.attr({d:t}),null===(S=a.area)||void 0===S||S.attr({d:[...t,["L",c-v,d],["L",v,d]]})}if(y&&!1!==y.enabled&&c){let t=Math.min(o(y.radius,g),g);0===u.indexOf("url")&&(y=s(y,{width:p,height:p}),t=0),a.symbol=n=f.symbol(u,c/2-t,x-t,2*t,2*t,i({context:"legend"},y)).addClass("highcharts-point").add(m),n.isMarker=!0}}t.areaMarker=function(t,i){e.call(this,t,i,!0)},t.lineMarker=e,t.rectangle=function(t,e){let i=e.legendItem||{},s=t.options,r=t.symbolHeight,n=s.squareSymbol,a=n?r:t.symbolWidth;i.symbol=this.chart.renderer.rect(n?(t.symbolWidth-r)/2:0,t.baseline-r+1,a,r,o(t.options.symbolRadius,r/2)).addClass("highcharts-point").attr({zIndex:3}).add(i.group)}}(e||(e={})),e})),i(e,"Core/Series/SeriesDefaults.js",[],(function(){return{lineWidth:2,allowPointSelect:!1,crisp:!0,showCheckbox:!1,animation:{duration:1e3},enableMouseTracking:!0,events:{},marker:{enabledThreshold:2,lineColor:"#ffffff",lineWidth:0,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:150},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{animation:{},align:"center",borderWidth:0,defer:!0,formatter:function(){let{numberFormatter:t}=this.series.chart;return"number"!=typeof this.y?"":t(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"}})),i(e,"Core/Series/SeriesRegistry.js",[e["Core/Globals.js"],e["Core/Defaults.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],(function(t,e,i,s){var o;let{defaultOptions:r}=e,{extendClass:n,merge:a}=s;return function(e){function s(t,s){let o=r.plotOptions||{},n=s.defaultOptions,a=s.prototype;a.type=t,a.pointClass||(a.pointClass=i),n&&(o[t]=n),e.seriesTypes[t]=s}e.seriesTypes=t.seriesTypes,e.registerSeriesType=s,e.seriesType=function(t,o,l,h,d){let c=r.plotOptions||{};return o=o||"",c[t]=a(c[o],l),s(t,n(e.seriesTypes[o]||function(){},h)),e.seriesTypes[t].prototype.type=t,d&&(e.seriesTypes[t].prototype.pointClass=n(i,d)),e.seriesTypes[t]}}(o||(o={})),o})),i(e,"Core/Series/Series.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Defaults.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Legend/LegendSymbol.js"],e["Core/Series/Point.js"],e["Core/Series/SeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o,r,n,a,l,h){let{animObject:d,setAnimation:c}=t,{defaultOptions:p}=e,{registerEventOptions:u}=i,{hasTouch:g,svg:f,win:m}=s,{seriesTypes:x}=a,{arrayMax:b,arrayMin:y,clamp:v,correctFloat:S,defined:k,destroyObjectProperties:A,diffObjects:M,erase:C,error:T,extend:w,find:P,fireEvent:L,getClosestDistance:E,getNestedProperty:O,insertItem:D,isArray:j,isNumber:B,isString:I,merge:R,objectEach:z,pick:N,removeEvent:G,splat:U,syncTimeout:W}=h;class X{constructor(){this.zoneAxis="y"}init(t,e){let i;L(this,"init",{options:e});let s=this,o=t.series;this.eventsToUnbind=[],s.chart=t,s.options=s.setOptions(e);let r=s.options,n=!1!==r.visible;s.linkedSeries=[],s.bindAxes(),w(s,{name:r.name,state:"",visible:n,selected:!0===r.selected}),u(this,r);let a=r.events;(a&&a.click||r.point&&r.point.events&&r.point.events.click||r.allowPointSelect)&&(t.runTrackerClick=!0),s.getColor(),s.getSymbol(),s.parallelArrays.forEach((function(t){s[t+"Data"]||(s[t+"Data"]=[])})),s.isCartesian&&(t.hasCartesianSeries=!0),o.length&&(i=o[o.length-1]),s._i=N(i&&i._i,-1)+1,s.opacity=s.options.opacity,t.orderItems("series",D(this,o)),r.dataSorting&&r.dataSorting.enabled?s.setDataSortingOptions():s.points||s.data||s.setData(r.data,!1),L(this,"afterInit")}is(t){return x[t]&&this instanceof x[t]}bindAxes(){let t,e=this,i=e.options,s=e.chart;L(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(o){s[o].forEach((function(s){t=s.options,(N(i[o],0)===s.index||void 0!==i[o]&&i[o]===t.id)&&(D(e,s.series),e[o]=s,s.isDirty=!0)})),e[o]||e.optionalAxis===o||T(18,!0,s)}))})),L(this,"afterBindAxes")}updateParallelArrays(t,e,i){let s=t.series,o=B(e)?function(i){let o="y"===i&&s.toYData?s.toYData(t):t[i];s[i+"Data"][e]=o}:function(t){Array.prototype[e].apply(s[t+"Data"],i)};s.parallelArrays.forEach(o)}hasData(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&this.yData.length>0}hasMarkerChanged(t,e){let i=t.marker,s=e.marker||{};return i&&(s.enabled&&!i.enabled||s.symbol!==i.symbol||s.height!==i.height||s.width!==i.width)}autoIncrement(t){let e,i,s=this.options,o=s.pointIntervalUnit,r=s.relativeXValue,n=this.chart.time,a=this.xIncrement;return a=N(a,s.pointStart,0),this.pointInterval=i=N(this.pointInterval,s.pointInterval,1),r&&B(t)&&(i*=t),o&&(e=new n.Date(a),"day"===o?n.set("Date",e,n.get("Date",e)+i):"month"===o?n.set("Month",e,n.get("Month",e)+i):"year"===o&&n.set("FullYear",e,n.get("FullYear",e)+i),i=e.getTime()-a),r&&B(t)?a+i:(this.xIncrement=a+i,a)}setDataSortingOptions(){let t=this.options;w(this,{requireSorting:!1,sorted:!1,enabledDataSorting:!0,allowDG:!1}),k(t.pointRange)||(t.pointRange=1)}setOptions(t){var e,i;let s,o=this.chart,r=o.options.plotOptions,n=o.userOptions||{},a=R(t),l=o.styledMode,h={plotOptions:r,userOptions:a};L(this,"setOptions",h);let d=h.plotOptions[this.type],c=n.plotOptions||{},u=c.series||{},g=p.plotOptions[this.type]||{},f=c[this.type]||{};this.userOptions=h.userOptions;let m=R(d,r.series,f,a);this.tooltipOptions=R(p.tooltip,null===(e=p.plotOptions.series)||void 0===e?void 0:e.tooltip,null===g||void 0===g?void 0:g.tooltip,o.userOptions.tooltip,null===(i=c.series)||void 0===i?void 0:i.tooltip,f.tooltip,a.tooltip),this.stickyTracking=N(a.stickyTracking,f.stickyTracking,u.stickyTracking,!!this.tooltipOptions.shared&&!this.noSharedTooltip||m.stickyTracking),null===d.marker&&delete m.marker,this.zoneAxis=m.zoneAxis||"y";let x=this.zones=(m.zones||[]).slice();return(m.negativeColor||m.negativeFillColor)&&!m.zones&&(s={value:m[this.zoneAxis+"Threshold"]||m.threshold||0,className:"highcharts-negative"},l||(s.color=m.negativeColor,s.fillColor=m.negativeFillColor),x.push(s)),x.length&&k(x[x.length-1].value)&&x.push(l?{}:{color:this.color,fillColor:this.fillColor}),L(this,"afterSetOptions",{options:m}),m}getName(){return N(this.options.name,"Series "+(this.index+1))}getCyclic(t,e,i){let s,o,r=this.chart,n="".concat(t,"Index"),a="".concat(t,"Counter"),l=(null===i||void 0===i?void 0:i.length)||r.options.chart.colorCount;!e&&(k(o=N("color"===t?this.options.colorIndex:void 0,this[n]))?s=o:(r.series.length||(r[a]=0),s=r[a]%l,r[a]+=1),i&&(e=i[s])),void 0!==s&&(this[n]=s),this[t]=e}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(){let t=this.options.marker;this.getCyclic("symbol",t.symbol,this.chart.options.symbols)}findPointIndex(t,e){let i,s,o,n=t.id,a=t.x,l=this.points,h=this.options.dataSorting;if(n){let t=this.chart.get(n);t instanceof r&&(i=t)}else if(this.linkedParent||this.enabledDataSorting||this.options.relativeXValue){let e=e=>!e.touched&&e.index===t.index;if(h&&h.matchByName?e=e=>!e.touched&&e.name===t.name:this.options.relativeXValue&&(e=e=>!e.touched&&e.options.x===t.x),!(i=P(l,e)))return}return i&&void 0!==(o=i&&i.index)&&(s=!0),void 0===o&&B(a)&&(o=this.xData.indexOf(a,e)),-1!==o&&void 0!==o&&this.cropped&&(o=o>=this.cropStart?o-this.cropStart:o),!s&&B(o)&&l[o]&&l[o].touched&&(o=void 0),o}updateData(t,e){let i,s,o,r,n=this.options,a=n.dataSorting,l=this.points,h=[],d=this.requireSorting,c=t.length===l.length,p=!0;if(this.xIncrement=null,t.forEach((function(t,e){let s,o=k(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},p=o.x;o.id||B(p)?(-1===(s=this.findPointIndex(o,r))||void 0===s?h.push(t):l[s]&&t!==n.data[s]?(l[s].update(t,!1,null,!1),l[s].touched=!0,d&&(r=s+1)):l[s]&&(l[s].touched=!0),(!c||e!==s||a&&a.enabled||this.hasDerivedData)&&(i=!0)):h.push(t)}),this),i)for(s=l.length;s--;)(o=l[s])&&!o.touched&&o.remove&&o.remove(!1,e);else!c||a&&a.enabled?p=!1:(t.forEach((function(t,e){t===l[e].y||l[e].destroyed||l[e].update(t,!1,null,!1)})),h.length=0);return l.forEach((function(t){t&&(t.touched=!1)})),!!p&&(h.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=b(this.xData),this.autoIncrement()),!0)}setData(t){let e,i,s,o,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,l=this,h=l.points,d=h&&h.length||0,c=l.options,p=l.chart,u=c.dataSorting,g=l.xAxis,f=c.turboThreshold,m=this.xData,x=this.yData,b=l.pointArrayMap,y=b&&b.length,v=c.keys,S=0,k=1,A=null;p.options.chart.allowMutatingData||(c.data&&delete l.options.data,l.userOptions.data&&delete l.userOptions.data,o=R(!0,t));let M=(t=o||t||[]).length;if(u&&u.enabled&&(t=this.sortData(t)),p.options.chart.allowMutatingData&&!1!==a&&M&&d&&!l.cropped&&!l.hasGroupedData&&l.visible&&!l.boosted&&(s=this.updateData(t,n)),!s){if(l.xIncrement=null,l.colorCounter=0,this.parallelArrays.forEach((function(t){l[t+"Data"].length=0})),f&&M>f)if(B(A=l.getFirstValidPoint(t)))for(e=0;e=0?S:0,k=k>=0?k:1),1===A.length&&(k=0),S===k)for(e=0;e{let s=O(i,t),o=O(i,e);return os?1:0}));return o.forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){let i=e.options,o=i.data;i.dataSorting&&i.dataSorting.enabled||!o||(o.forEach((function(i,r){o[r]=s(e,i),t[r]&&(o[r].x=t[r].x,o[r].index=r)})),e.setData(o,!1))})),t}getProcessedData(t){let e,i,s,o,r,n=this,a=n.xAxis,l=n.options,h=l.cropThreshold,d=t||n.getExtremesFromAll||l.getExtremesFromAll,c=null===a||void 0===a?void 0:a.logarithmic,p=n.isCartesian,u=0,g=n.xData,f=n.yData,m=!1,x=g.length;a&&(o=(s=a.getExtremes()).min,r=s.max,m=!(!a.categories||a.names.length)),p&&n.sorted&&!d&&(!h||x>h||n.forceCrop)&&(g[x-1]r?(g=[],f=[]):n.yData&&(g[0]r)&&(g=(e=this.cropData(n.xData,n.yData,o,r)).xData,f=e.yData,u=e.start,i=!0));let b=E([c?g.map(c.log2lin):g],(()=>n.requireSorting&&!m&&T(15,!1,n.chart)));return{xData:g,yData:f,cropped:i,cropStart:u,closestPointRange:b}}processData(t){let e=this.xAxis;if(this.isCartesian&&!this.isDirty&&!e.isDirty&&!this.yAxis.isDirty&&!t)return!1;let i=this.getProcessedData();this.cropped=i.cropped,this.cropStart=i.cropStart,this.processedXData=i.xData,this.processedYData=i.yData,this.closestPointRange=this.basePointRange=i.closestPointRange,L(this,"afterProcessData")}cropData(t,e,i,s){let o,r,n=t.length,a=0,l=n;for(o=0;o=i){a=Math.max(0,o-1);break}for(r=o;rs){l=r+1;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}}generatePoints(){let t,e,i,s,o=this.options,r=this.processedData||o.data,n=this.processedXData,a=this.processedYData,l=this.pointClass,h=n.length,d=this.cropStart||0,c=this.hasGroupedData,p=o.keys,u=[],g=o.dataGrouping&&o.dataGrouping.groupAll?d:0,f=this.data;if(!f&&!c){let t=[];t.length=r.length,f=this.data=t}for(p&&c&&(this.options.keys=!1),s=0;s0:n.length)||!g),o=e||this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!h||(c[a+u]||r)>=f&&(c[a-u]||r)<=m,s&&o)if(l=n.length)for(;l--;)B(n[l])&&(p[x++]=n[l]);else p[x++]=n;let S={activeYData:p,dataMin:y(p),dataMax:b(p)};return L(this,"afterGetExtremes",{dataExtremes:S}),S}applyExtremes(){let t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t}getFirstValidPoint(t){let e=t.length,i=0,s=null;for(;null===s&&i{t&&!this.chart.container.querySelector('[clip-path="url(#'.concat(t.id,')"]'))&&(t.destroy(),delete i[e])})),this.finishedAnimating=!0,L(this,"afterAnimate")}drawPoints(){let t,e,i,s,o,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,l=this.chart,h=l.styledMode,{colorAxis:d,options:c}=this,p=c.marker,u=this[this.specialGroup||"markerGroup"],g=this.xAxis,f=N(p.enabled,!g||!!g.isRadial||null,this.closestPointRangePx>=p.enabledThreshold*p.radius);if(!1!==p.enabled||this._hasPointMarkers)for(t=0;t0||e.hasImage)&&(e.graphic=i=l.renderer.symbol(t,n.x,n.y,n.width,n.height,r?o:p).add(u),this.enabledDataSorting&&l.hasRendered&&(i.attr({x:e.startXPos}),s="animate")),i&&"animate"===s&&i[a?"show":"hide"](a).animate(n),i){let t=this.pointAttribs(e,h||!e.selected?void 0:"select");h?d&&i.css({fill:t.fill}):i[s](t)}i&&i.addClass(e.getClassName(),!0)}else i&&(e.graphic=i.destroy())}markerAttribs(t,e){let i,s,o=this.options,r=o.marker,n=t.marker||{},a=n.symbol||r.symbol,l={},h=N(n.radius,r&&r.radius);e&&(i=r.states[e],h=N((s=n.states&&n.states[e])&&s.radius,i&&i.radius,h&&h+(i&&i.radiusPlus||0))),t.hasImage=a&&0===a.indexOf("url"),t.hasImage&&(h=0);let d=t.pos();return B(h)&&d&&(l.x=d[0]-h,l.y=d[1]-h,o.crisp&&(l.x=Math.floor(l.x))),h&&(l.width=l.height=2*h),l}pointAttribs(t,e){let i,s,o,r,n=this.options.marker,a=t&&t.options,l=a&&a.marker||{},h=a&&a.color,d=t&&t.color,c=t&&t.zone&&t.zone.color,p=this.color,u=N(l.lineWidth,n.lineWidth),g=1;return p=h||c||d||p,o=l.fillColor||n.fillColor||p,r=l.lineColor||n.lineColor||p,e=e||"normal",i=n.states[e]||{},u=N((s=l.states&&l.states[e]||{}).lineWidth,i.lineWidth,u+N(s.lineWidthPlus,i.lineWidthPlus,0)),o=s.fillColor||i.fillColor||o,{stroke:r=s.lineColor||i.lineColor||r,"stroke-width":u,fill:o,opacity:g=N(s.opacity,i.opacity,g)}}destroy(t){let e,i,s,o=this,r=o.chart,n=/AppleWebKit\/533/.test(m.navigator.userAgent),a=o.data||[];for(L(o,"destroy",{keepEventsForUpdate:t}),this.removeEvents(t),(o.axisTypes||[]).forEach((function(t){(s=o[t])&&s.series&&(C(s.series,o),s.isDirty=s.forceRedraw=!0)})),o.legendItem&&o.chart.legend.destroyItem(o),e=a.length;e--;)(i=a[e])&&i.destroy&&i.destroy();o.zones.forEach(A),h.clearTimeout(o.animationTimeout),z(o,(function(t,e){t instanceof l&&!t.survive&&t[n&&"group"===e?"hide":"destroy"]()})),r.hoverSeries===o&&(r.hoverSeries=void 0),C(r.series,o),r.orderItems("series"),z(o,(function(e,i){t&&"hcEvents"===i||delete o[i]}))}applyZones(){let{area:t,chart:e,graph:i,zones:s,points:o,xAxis:r,yAxis:n,zoneAxis:a}=this,{inverted:l,renderer:h}=e,d=this["".concat(a,"Axis")],{isXAxis:c,len:p=0}=d||{},u=((null===i||void 0===i?void 0:i.strokeWidth())||0)/2+1,g=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;l&&(i=p-i);let{translated:s=0,lineClip:o}=t,r=i-s;null===o||void 0===o||o.push(["L",e,Math.abs(r){t.forEach(((e,i)=>{("M"===e[0]||"L"===e[0])&&(t[i]=[e[0],c?p-e[1]:e[1],c?e[2]:p-e[2]])}))};if(s.forEach(((t,i)=>{t.lineClip=[],t.translated=v(d.toPixels(N(t.value,e),!0)||0,0,p)})),i&&!this.showLine&&i.hide(),t&&t.hide(),"y"===a&&o.length{var s,o,a;let d=e.lineClip||[],p=Math.round(e.translated||0);r.reversed&&d.reverse();let{clip:g,simpleClip:x}=e,b=0,y=0,v=r.len,S=n.len;c?(b=p,v=m):(y=p,S=m);let k=[["M",b,y],["L",v,y],["L",v,S],["L",b,S],["Z"]],A=[k[0],...d,k[1],k[2],...f,k[3],k[4]];f=d.reverse(),m=p,l&&(u(A),t&&u(k)),g?(g.animate({d:A}),null===(s=x)||void 0===s||s.animate({d:k})):(g=e.clip=h.path(A),t&&(x=e.simpleClip=h.path(k))),i&&null!==(o=e.graph)&&void 0!==o&&o.clip(g),t&&(null===(a=e.area)||void 0===a||a.clip(x))}))}else this.visible&&(i&&i.show(),t&&t.show())}plotGroup(t,e,i,s,o){let r=this[t],n=!r,a={visibility:i,zIndex:s||.1};return k(this.opacity)&&!this.chart.styledMode&&"inactive"!==this.state&&(a.opacity=this.opacity),r||(this[t]=r=this.chart.renderer.g().add(o)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(k(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(a)[n?"attr":"animate"](this.getPlotBox(e)),r}getPlotBox(t){let e=this.xAxis,i=this.yAxis,s=this.chart,o=s.inverted&&!s.polar&&e&&!1!==this.invertible&&"series"===t;return s.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:s.plotLeft,translateY:i?i.top:s.plotTop,rotation:o?90:0,rotationOriginX:o?(e.len-i.len)/2:0,rotationOriginY:o?(e.len+i.len)/2:0,scaleX:o?-1:1,scaleY:1}}removeEvents(t){let{eventsToUnbind:e}=this;t||G(this),e.length&&(e.forEach((t=>{t()})),e.length=0)}render(){var t,e,i,s,o;let r=this,{chart:n,options:a,hasRendered:l}=r,h=d(a.animation),c=r.visible?"inherit":"hidden",p=a.zIndex,u=n.seriesGroup,g=r.finishedAnimating?0:h.duration;L(this,"render"),r.plotGroup("group","series",c,p,u),r.markerGroup=r.plotGroup("markerGroup","markers",c,p,u),!1!==a.clip&&r.setClip(),g&&null!==(t=r.animate)&&void 0!==t&&t.call(r,!0),r.drawGraph&&(r.drawGraph(),r.applyZones()),r.visible&&r.drawPoints(),null!==(e=r.drawDataLabels)&&void 0!==e&&e.call(r),null!==(i=r.redrawPoints)&&void 0!==i&&i.call(r),a.enableMouseTracking&&null!==(s=r.drawTracker)&&void 0!==s&&s.call(r),g&&null!==(o=r.animate)&&void 0!==o&&o.call(r),l||(g&&h.defer&&(g+=h.defer),r.animationTimeout=W((()=>{r.afterAnimate()}),g||0)),r.isDirty=!1,r.hasRendered=!0,L(r,"afterRender")}redraw(){let t=this.isDirty||this.isDirtyData;this.translate(),this.render(),t&&delete this.kdTree}reserveSpace(){return this.visible||!this.chart.options.chart.ignoreHiddenSeries}searchPoint(t,e){let{xAxis:i,yAxis:s}=this,o=this.chart.inverted;return this.searchKDTree({clientX:o?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:o?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)}buildKDTree(t){this.buildingKdTree=!0;let e=this,i=e.options.findNearestPointBy.indexOf("y")>-1?2:1;delete e.kdTree,W((function(){e.kdTree=function t(i,s,o){let r,n,a=null===i||void 0===i?void 0:i.length;if(a)return r=e.kdAxisArray[s%o],i.sort(((t,e)=>(t[r]||0)-(e[r]||0))),{point:i[n=Math.floor(a/2)],left:t(i.slice(0,n),s+1,o),right:t(i.slice(n+1),s+1,o)}}(e.getValidPoints(void 0,!e.directTouch),i,i),e.buildingKdTree=!1}),e.options.kdNow||"touchstart"===(null===t||void 0===t?void 0:t.type)?0:1)}searchKDTree(t,e,i){let s=this,[o,r]=this.kdAxisArray,n=e?"distX":"dist",a=(s.options.findNearestPointBy||"").indexOf("y")>-1?2:1,l=!!s.isBubble;if(this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,a,h,d){let c,p,u=i.point,g=s.kdAxisArray[a%h],f=u;!function(t,e,i){let s=t[o],n=e[o],a=k(s)&&k(n)?s-n:null,h=t[r],d=e[r],c=k(h)&&k(d)?h-d:0,p=l&&(null===(i=e.marker)||void 0===i?void 0:i.radius)||0;e.dist=Math.sqrt((a&&a*a||0)+c*c)-p,e.distX=k(a)?Math.abs(a)-p:Number.MAX_VALUE}(e,u);let m=(e[g]||0)-(u[g]||0)+(l&&(null===(d=u.marker)||void 0===d?void 0:d.radius)||0),x=m<0?"left":"right",b=m<0?"right":"left";return i[x]&&(f=(c=t(e,i[x],a+1,h))[n]=0&&r<=(s?s.len:e.plotHeight)&&o>=0&&o<=(i?i.len:e.plotWidth)}drawTracker(){var t;let e=this,i=e.options,s=i.trackByArea,o=[].concat((s?e.areaPath:e.graphPath)||[]),r=e.chart,n=r.pointer,a=r.renderer,l=(null===(t=r.options.tooltip)||void 0===t?void 0:t.snap)||0,h=()=>{i.enableMouseTracking&&r.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(f?1e-4:.002)+")",c=e.tracker;c?c.attr({d:o}):e.graph&&(e.tracker=c=a.path(o).attr({visibility:e.visible?"inherit":"hidden",zIndex:2}).addClass(s?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),r.styledMode||c.attr({"stroke-linecap":"round","stroke-linejoin":"round",stroke:d,fill:s?d:"none","stroke-width":e.graph.strokeWidth()+(s?0:2*l)}),[e.tracker,e.markerGroup,e.dataLabelsGroup].forEach((t=>{t&&(t.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",(t=>{n.onTrackerMouseOut(t)})),i.cursor&&!r.styledMode&&t.css({cursor:i.cursor}),g&&t.on("touchstart",h))}))),L(this,"afterDrawTracker")}addPoint(t,e,i,s,o){let r,n,a=this.options,l=this.data,h=this.chart,d=this.xAxis,c=d&&d.hasNames&&d.names,p=a.data,u=this.xData;e=N(e,!0);let g={series:this};this.pointClass.prototype.applyOptions.apply(g,[t]);let f=g.x;if(n=u.length,this.requireSorting&&ff;)n--;this.updateParallelArrays(g,"splice",[n,0,0]),this.updateParallelArrays(g,n),c&&g.name&&(c[f]=g.name),p.splice(n,0,t),(r||this.processedData)&&(this.data.splice(n,0,null),this.processData()),"point"===a.legendType&&this.generatePoints(),i&&(l[0]&&l[0].remove?l[0].remove(!1):(l.shift(),this.updateParallelArrays(g,"shift"),p.shift())),!1!==o&&L(this,"addPoint",{point:g}),this.isDirty=!0,this.isDirtyData=!0,e&&h.redraw(s)}removePoint(t,e,i){let s=this,o=s.data,r=o[t],n=s.points,a=s.chart,l=function(){n&&n.length===o.length&&n.splice(t,1),o.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(r||{series:s},"splice",[t,1]),r&&r.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};c(i,a),e=N(e,!0),r?r.firePointEvent("remove",null,l):l()}remove(t,e,i,s){let o=this,r=o.chart;function n(){o.destroy(s),r.isDirtyLegend=r.isDirtyBox=!0,r.linkSeries(s),N(t,!0)&&r.redraw(e)}!1!==i?L(o,"remove",null,n):n()}update(t,e){var i,s,o,r;L(this,"update",{options:t=M(t,this.userOptions)});let n,a,l=this,h=l.chart,d=l.userOptions,c=l.initialType||l.type,p=h.options.plotOptions,u=x[c].prototype,g=l.finishedAnimating&&{animation:!1},f={},m=["colorIndex","eventOptions","navigatorSeries","symbolIndex","baseSeries"],b=t.type||d.type||h.options.chart.type,y=!(this.hasDerivedData||b&&b!==this.type||void 0!==t.pointStart||void 0!==t.pointInterval||void 0!==t.relativeXValue||t.joinBy||t.mapData||["dataGrouping","pointStart","pointInterval","pointIntervalUnit","keys"].some((t=>l.hasOptionChanged(t))));b=b||c,y&&(m.push("data","isDirtyData","isDirtyCanvas","points","processedData","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","hasDataLabels","nodes","layout","level","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&m.push("area","graph"),l.parallelArrays.forEach((function(t){m.push(t+"Data")})),t.data&&(t.dataSorting&&w(l.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=R(d,{index:void 0===d.index?l.index:d.index,pointStart:null!==(i=null!==(s=null===p||void 0===p||null===(o=p.series)||void 0===o?void 0:o.pointStart)&&void 0!==s?s:d.pointStart)&&void 0!==i?i:null===(r=l.xData)||void 0===r?void 0:r[0]},!y&&{data:l.options.data},t,g),y&&t.data&&(t.data=l.options.data),(m=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(m)).forEach((function(t){m[t]=l[t],delete l[t]}));let v=!1;if(x[b]){if(v=b!==l.type,l.remove(!1,!1,!1,!0),v)if(Object.setPrototypeOf)Object.setPrototypeOf(l,x[b].prototype);else{let t=Object.hasOwnProperty.call(l,"hcEvents")&&l.hcEvents;for(a in u)l[a]=void 0;w(l,x[b].prototype),t?l.hcEvents=t:delete l.hcEvents}}else T(17,!0,h,{missingModuleFor:b});if(m.forEach((function(t){l[t]=m[t]})),l.init(h,t),y&&this.points)for(let x of(!1===(n=l.options).visible?(f.graphic=1,f.dataLabel=1):(this.hasMarkerChanged(n,d)&&(f.graphic=1),(null===(S=l.hasDataLabels)||void 0===S?void 0:S.call(l))||(f.dataLabel=1)),this.points)){var S;x&&x.series&&(x.resolveColor(),Object.keys(f).length&&x.destroyElements(f),!1===n.showInLegend&&x.legendItem&&h.legend.destroyItem(x))}l.initialType=c,h.linkSeries(),h.setSortedData(),v&&l.linkedSeries.length&&(l.isDirtyData=!0),L(this,"afterUpdate"),N(e,!0)&&h.redraw(!!y&&void 0)}setName(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}hasOptionChanged(t){var e,i;let s=this.chart,o=this.options[t],r=s.options.plotOptions,n=this.userOptions[t],a=N(null===r||void 0===r||null===(e=r[this.type])||void 0===e?void 0:e[t],null===r||void 0===r||null===(i=r.series)||void 0===i?void 0:i[t]);return n&&!k(a)?o!==n:o!==N(a,o)}onMouseOver(){let t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&L(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this}onMouseOut(){let t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&L(this,"mouseOut"),i&&!this.stickyTracking&&(!i.shared||this.noSharedTooltip)&&i.hide(),e.series.forEach((function(t){t.setState("",!0)}))}setState(t,e){let i=this,s=i.options,o=i.graph,r=s.inactiveOtherPoints,n=s.states,a=N(n[t||"normal"]&&n[t||"normal"].animation,i.chart.options.chart.animation),l=s.lineWidth,h=s.opacity;if(t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(n[t]&&!1===n[t].enabled)return;if(t&&(l=n[t].lineWidth||l+(n[t].lineWidthPlus||0),h=N(n[t].opacity,h)),o&&!o.dashstyle&&B(l))for(let t of[o,...this.zones.map((t=>t.graph))])null===t||void 0===t||t.animate({"stroke-width":l},a);r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:h},a)}))}e&&r&&i.points&&i.setAllPointsToState(t||void 0)}setAllPointsToState(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))}setVisible(t,e){var i;let s=this,o=s.chart,r=o.options.chart.ignoreHiddenSeries,n=s.visible;s.visible=t=s.options.visible=s.userOptions.visible=void 0===t?!n:t;let a=t?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((t=>{var e;null===(e=s[t])||void 0===e||e[a]()})),(o.hoverSeries===s||(null===(i=o.hoverPoint)||void 0===i?void 0:i.series)===s)&&s.onMouseOut(),s.legendItem&&o.legend.colorizeItem(s,t),s.isDirty=!0,s.options.stacking&&o.series.forEach((t=>{t.options.stacking&&t.visible&&(t.isDirty=!0)})),s.linkedSeries.forEach((e=>{e.setVisible(t,!1)})),r&&(o.isDirtyBox=!0),L(s,a),!1!==e&&o.redraw()}show(){this.setVisible(!0)}hide(){this.setVisible(!1)}select(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),L(this,t?"select":"unselect")}shouldShowTooltip(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return i.series=this,i.visiblePlotOnly=!0,this.chart.isInsidePlot(t,e,i)}drawLegendSymbol(t,e){var i;null===(i=o[this.options.legendSymbol||"rectangle"])||void 0===i||i.call(this,t,e)}}return X.defaultOptions=n,X.types=a.seriesTypes,X.registerType=a.registerSeriesType,w(X.prototype,{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,directTouch:!1,isCartesian:!0,kdAxisArray:["clientX","plotY"],parallelArrays:["x","y"],pointClass:r,requireSorting:!0,sorted:!0}),a.series=X,X})),i(e,"Core/Chart/Chart.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Defaults.js"],e["Core/Templating.js"],e["Core/Foundation.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Time.js"],e["Core/Utilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Axis/Tick.js"]],(function(t,e,i,s,o,r,n,a,l,h,d,c,p,u){let{animate:g,animObject:f,setAnimation:m}=t,{defaultOptions:x,defaultTime:b}=i,{numberFormat:y}=s,{registerEventOptions:v}=o,{charts:S,doc:k,marginNames:A,svg:M,win:C}=r,{seriesTypes:T}=l,{addEvent:w,attr:P,createElement:L,clamp:E,css:O,defined:D,diffObjects:j,discardElement:B,erase:I,error:R,extend:z,find:N,fireEvent:G,getStyle:U,isArray:W,isNumber:X,isObject:H,isString:F,merge:Y,objectEach:V,pick:_,pInt:q,relativeLength:Z,removeEvent:K,splat:$,syncTimeout:J,uniqueKey:Q}=c;class tt{static chart(t,e,i){return new tt(t,e,i)}constructor(t,e,i){this.sharedClips={};let s=[...arguments];(F(t)||t.nodeName)&&(this.renderTo=s.shift()),this.init(s[0],s[1])}setZoomOptions(){let t=this.options.chart,e=t.zooming;this.zooming={...e,type:_(t.zoomType,e.type),key:_(t.zoomKey,e.key),pinchType:_(t.pinchType,e.pinchType),singleTouch:_(t.zoomBySingleTouch,e.singleTouch,!1),resetButton:Y(e.resetButton,t.resetZoomButton)}}init(t,e){G(this,"init",{args:arguments},(function(){let i=Y(x,t),s=i.chart;this.userOptions=z({},t),this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=e,this.isResizing=0,this.options=i,this.axes=[],this.series=[],this.time=t.time&&Object.keys(t.time).length?new d(t.time):r.time,this.numberFormatter=s.numberFormatter||y,this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes,this.index=S.length,S.push(this),r.chartCount++,v(this,s),this.xAxis=[],this.yAxis=[],this.pointCount=this.colorCounter=this.symbolCounter=0,this.setZoomOptions(),G(this,"afterInit"),this.firstRender()}))}initSeries(t){let e=this.options.chart,i=t.type||e.type,s=T[i];s||R(17,!0,this,{missingModuleFor:i});let o=new s;return"function"==typeof o.init&&o.init(this,t),o}setSortedData(){this.getSeriesOrderByLinks().forEach((function(t){t.points||t.data||!t.enabledDataSorting||t.setData(t.options.data,!1)}))}getSeriesOrderByLinks(){return this.series.concat().sort((function(t,e){return t.linkedSeries.length||e.linkedSeries.length?e.linkedSeries.length-t.linkedSeries.length:0}))}orderItems(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=this[t],s=this.options[t]=$(this.options[t]).slice(),o=this.userOptions[t]=this.userOptions[t]?$(this.userOptions[t]).slice():[];if(this.hasRendered&&(s.splice(e),o.splice(e)),i)for(let r=e,n=i.length;r2&&void 0!==arguments[2]?arguments[2]:{},{inverted:s,plotBox:o,plotLeft:r,plotTop:n,scrollablePlotBox:a}=this,l=0,h=0;i.visiblePlotOnly&&this.scrollingContainer&&({scrollLeft:l,scrollTop:h}=this.scrollingContainer);let d=i.series,c=i.visiblePlotOnly&&a||o,p=i.inverted?e:t,u=i.inverted?t:e,g={x:p,y:u,isInsidePlot:!0,options:i};if(!i.ignoreX){let t=d&&(s&&!this.polar?d.yAxis:d.xAxis)||{pos:r,len:1/0},e=i.paneCoordinates?t.pos+p:r+p;e>=Math.max(l+r,t.pos)&&e<=Math.min(l+r+c.width,t.pos+t.len)||(g.isInsidePlot=!1)}if(!i.ignoreY&&g.isInsidePlot){let t=!s&&i.axis&&!i.axis.isXAxis&&i.axis||d&&(s?d.xAxis:d.yAxis)||{pos:n,len:1/0},e=i.paneCoordinates?t.pos+u:n+u;e>=Math.max(h+n,t.pos)&&e<=Math.min(h+n+c.height,t.pos+t.len)||(g.isInsidePlot=!1)}return G(this,"afterIsInsidePlot",g),g.isInsidePlot}redraw(t){G(this,"beforeRedraw");let e,i,s,o,r=this.hasCartesianSeries?this.axes:this.colorAxis||[],n=this.series,a=this.pointer,l=this.legend,h=this.userOptions.legend,d=this.renderer,c=d.isHidden(),p=[],u=this.isDirtyBox,g=this.isDirtyLegend;for(d.rootFontSize=d.boxWrapper.getStyle("font-size"),this.setResponsive&&this.setResponsive(!1),m(!!this.hasRendered&&t,this),c&&this.temporaryDisplay(),this.layOutTitles(!1),s=n.length;s--;)if(((o=n[s]).options.stacking||o.options.centerInCategory)&&(i=!0,o.isDirty)){e=!0;break}if(e)for(s=n.length;s--;)(o=n[s]).options.stacking&&(o.isDirty=!0);n.forEach((function(t){t.isDirty&&("point"===t.options.legendType?("function"==typeof t.updateTotals&&t.updateTotals(),g=!0):h&&(h.labelFormatter||h.labelFormat)&&(g=!0)),t.isDirtyData&&G(t,"updatedData")})),g&&l&&l.options.enabled&&(l.render(),this.isDirtyLegend=!1),i&&this.getStacks(),r.forEach((function(t){t.updateNames(),t.setScale()})),this.getMargins(),r.forEach((function(t){t.isDirty&&(u=!0)})),r.forEach((function(t){let e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,p.push((function(){G(t,"afterSetExtremes",z(t.eventArgs,t.getExtremes())),delete t.eventArgs}))),(u||i)&&t.redraw()})),u&&this.drawChartBox(),G(this,"predraw"),n.forEach((function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1})),a&&a.reset(!0),d.draw(),G(this,"redraw"),G(this,"render"),c&&this.temporaryDisplay(!0),p.forEach((function(t){t.call()}))}get(t){let e=this.series;function i(e){return e.id===t||e.options&&e.options.id===t}let s=N(this.axes,i)||N(this.series,i);for(let o=0;!s&&o(e.getPointsCollection().forEach((e=>{_(e.selectedStaging,e.selected)&&t.push(e)})),t)),[])}getSelectedSeries(){return this.series.filter((function(t){return t.selected}))}setTitle(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)}applyDescription(t,e){let i=this,s=this.options[t]=Y(this.options[t],e),o=this[t];o&&e&&(this[t]=o=o.destroy()),s&&!o&&((o=this.renderer.text(s.text,0,0,s.useHTML).attr({align:s.align,class:"highcharts-"+t,zIndex:s.zIndex||4}).add()).update=function(e,s){i.applyDescription(t,e),i.layOutTitles(s)},this.styledMode||o.css(z("title"===t?{fontSize:this.options.isStock?"1em":"1.2em"}:{},s.style)),this[t]=o)}layOutTitles(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=[0,0,0],i=this.renderer,s=this.spacingBox;["title","subtitle","caption"].forEach((function(t){let o=this[t],r=this.options[t],n=r.verticalAlign||"top",a="title"===t?"top"===n?-3:0:"top"===n?e[0]+2:0;if(o){o.css({width:(r.width||s.width+(r.widthAdjust||0))+"px"});let t=i.fontMetrics(o).b,l=Math.round(o.getBBox(r.useHTML).height);o.align(z({y:"bottom"===n?t:a+t,height:l},r),!1,"spacingBox"),r.floating||("top"===n?e[0]=Math.ceil(e[0]+l):"bottom"===n&&(e[2]=Math.ceil(e[2]+l)))}}),this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);let o=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,G(this,"afterLayOutTitles"),!this.isDirtyBox&&o&&(this.isDirtyBox=this.isDirtyLegend=o,this.hasRendered&&t&&this.isDirtyBox&&this.redraw())}getContainerBox(){return{width:U(this.renderTo,"width",!0)||0,height:U(this.renderTo,"height",!0)||0}}getChartSize(){let t=this.options.chart,e=t.width,i=t.height,s=this.getContainerBox();this.chartWidth=Math.max(0,e||s.width||600),this.chartHeight=Math.max(0,Z(i,this.chartWidth)||(s.height>1?s.height:400)),this.containerBox=s}temporaryDisplay(t){let e,i=this.renderTo;if(t)for(;i&&i.style;)i.hcOrigStyle&&(O(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(k.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(k.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,k.body.appendChild(i)),("none"===U(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),O(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==k.body););}setClassName(t){this.container.className="highcharts-container "+(t||"")}getContainer(){let t,e=this.options,i=e.chart,s="data-highcharts-chart",o=Q(),r=this.renderTo;r||(this.renderTo=r=i.renderTo),F(r)&&(this.renderTo=r=k.getElementById(r)),r||R(13,!0,this);let a=q(P(r,s));X(a)&&S[a]&&S[a].hasRendered&&S[a].destroy(),P(r,s,this.index),r.innerHTML=p.emptyHTML,i.skipClone||r.offsetWidth||this.temporaryDisplay(),this.getChartSize();let l=this.chartWidth,d=this.chartHeight;O(r,{overflow:"hidden"}),this.styledMode||(t=z({position:"relative",overflow:"hidden",width:l+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)",userSelect:"none","touch-action":"manipulation",outline:"none"},i.style||{}));let c=L("div",{id:o},t,r);this.container=c,this._cursor=c.style.cursor;let u=i.renderer||!M?n.getRendererType(i.renderer):h;if(this.renderer=new u(c,l,d,void 0,i.forExport,e.exporting&&e.exporting.allowHTML,this.styledMode),this.containerBox=this.getContainerBox(),m(void 0,this),this.setClassName(i.className),this.styledMode)for(let n in e.defs)this.renderer.definition(e.defs[n]);else this.renderer.setStyle(i.style);this.renderer.chartIndex=this.index,G(this,"afterGetContainer")}getMargins(t){let{spacing:e,margin:i,titleOffset:s}=this;this.resetMargins(),s[0]&&!D(i[0])&&(this.plotTop=Math.max(this.plotTop,s[0]+e[0])),s[2]&&!D(i[2])&&(this.marginBottom=Math.max(this.marginBottom,s[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),G(this,"getMargins"),t||this.getAxisMargins()}getAxisMargins(){let t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,s=t.margin,o=function(t){t.forEach((function(t){t.visible&&t.getOffset()}))};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),A.forEach((function(i,o){D(s[o])||(t[i]+=e[o])})),t.setChartSize()}getOptions(){return j(this.userOptions,x)}reflow(t){let e=this,i=e.containerBox,s=e.getContainerBox();delete e.pointer.chartPosition,!e.isPrinting&&!e.isResizing&&i&&s.width&&((s.width!==i.width||s.height!==i.height)&&(c.clearTimeout(e.reflowTimeout),e.reflowTimeout=J((function(){e.container&&e.setSize(void 0,void 0,!1)}),t?100:0)),e.containerBox=s)}setReflow(){let t=this,e=e=>{var i;(null===(i=t.options)||void 0===i?void 0:i.chart.reflow)&&t.hasLoaded&&t.reflow(e)};if("function"==typeof ResizeObserver)new ResizeObserver(e).observe(t.renderTo);else{let t=w(C,"resize",e);w(this,"destroy",t)}}setSize(t,e,i){let s=this,o=s.renderer;s.isResizing+=1,m(i,s);let r=o.globalAnimation;s.oldChartHeight=s.chartHeight,s.oldChartWidth=s.chartWidth,void 0!==t&&(s.options.chart.width=t),void 0!==e&&(s.options.chart.height=e),s.getChartSize();let{chartWidth:n,chartHeight:a,scrollablePixelsX:l=0,scrollablePixelsY:h=0}=s;(s.isDirtyBox||n!==s.oldChartWidth||a!==s.oldChartHeight)&&(s.styledMode||(r?g:O)(s.container,{width:"".concat(n+l,"px"),height:"".concat(a+h,"px")},r),s.setChartSize(!0),o.setSize(n,a,r),s.axes.forEach((function(t){t.isDirty=!0,t.setScale()})),s.isDirtyLegend=!0,s.isDirtyBox=!0,s.layOutTitles(),s.getMargins(),s.redraw(r),s.oldChartHeight=void 0,G(s,"resize"),setTimeout((()=>{s&&G(s,"endResize",void 0,(()=>{s.isResizing-=1}))}),f(r).duration))}setChartSize(t){let e,i,s,o,r=this.inverted,n=this.renderer,a=this.chartWidth,l=this.chartHeight,h=this.options.chart,d=this.spacing,c=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=s=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=o=Math.max(0,Math.round(l-i-this.marginBottom)),this.plotSizeX=r?o:s,this.plotSizeY=r?s:o,this.plotBorderWidth=h.plotBorderWidth||0,this.spacingBox=n.spacingBox={x:d[3],y:d[0],width:a-d[3]-d[1],height:l-d[0]-d[2]},this.plotBox=n.plotBox={x:e,y:i,width:s,height:o};let p=2*Math.floor(this.plotBorderWidth/2),u=Math.ceil(Math.max(p,c[3])/2),g=Math.ceil(Math.max(p,c[0])/2);this.clipBox={x:u,y:g,width:Math.floor(this.plotSizeX-Math.max(p,c[1])/2-u),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(p,c[2])/2-g))},t||(this.axes.forEach((function(t){t.setAxisSize(),t.setAxisTranslation()})),n.alignElements()),G(this,"afterSetChartSize",{skipAxes:t})}resetMargins(){G(this,"resetMargins");let t=this,e=t.options.chart;["margin","spacing"].forEach((function(i){let s=e[i],o=H(s)?s:[s,s,s,s];["Top","Right","Bottom","Left"].forEach((function(s,r){t[i][r]=_(e[i+s],o[r])}))})),A.forEach((function(e,i){t[e]=_(t.margin[i],t.spacing[i])})),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]}drawChartBox(){let t,e,i,s=this.options.chart,o=this.renderer,r=this.chartWidth,n=this.chartHeight,a=this.styledMode,l=this.plotBGImage,h=s.backgroundColor,d=s.plotBackgroundColor,c=s.plotBackgroundImage,p=this.plotLeft,u=this.plotTop,g=this.plotWidth,f=this.plotHeight,m=this.plotBox,x=this.clipRect,b=this.clipBox,y=this.chartBackground,v=this.plotBackground,S=this.plotBorder,k="animate";y||(this.chartBackground=y=o.rect().addClass("highcharts-background").add(),k="attr"),a?t=e=y.strokeWidth():(e=(t=s.borderWidth||0)+(s.shadow?8:0),i={fill:h||"none"},(t||y["stroke-width"])&&(i.stroke=s.borderColor,i["stroke-width"]=t),y.attr(i).shadow(s.shadow)),y[k]({x:e/2,y:e/2,width:r-e-t%2,height:n-e-t%2,r:s.borderRadius}),k="animate",v||(k="attr",this.plotBackground=v=o.rect().addClass("highcharts-plot-background").add()),v[k](m),!a&&(v.attr({fill:d||"none"}).shadow(s.plotShadow),c&&(l?(c!==l.attr("href")&&l.attr("href",c),l.animate(m)):this.plotBGImage=o.image(c,p,u,g,f).add())),x?x.animate({width:b.width,height:b.height}):this.clipRect=o.clipRect(b),k="animate",S||(k="attr",this.plotBorder=S=o.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),a||S.attr({stroke:s.plotBorderColor,"stroke-width":s.plotBorderWidth||0,fill:"none"}),S[k](S.crisp({x:p,y:u,width:g,height:f},-S.strokeWidth())),this.isDirtyBox=!1,G(this,"afterDrawChartBox")}propFromSeries(){let t,e,i,s=this,o=s.options.chart,r=s.options.series;["inverted","angular","polar"].forEach((function(n){for(e=T[o.type],i=o[n]||e&&e.prototype[n],t=r&&r.length;!i&&t--;)(e=T[r[t].type])&&e.prototype[n]&&(i=!0);s[n]=i}))}linkSeries(t){let e=this,i=e.series;i.forEach((function(t){t.linkedSeries.length=0})),i.forEach((function(t){let{linkedTo:i}=t.options;if(F(i)){let s;(s=":previous"===i?e.series[t.index-1]:e.get(i))&&s.linkedParent!==t&&(s.linkedSeries.push(t),t.linkedParent=s,s.enabledDataSorting&&t.setDataSortingOptions(),t.visible=_(t.options.visible,s.options.visible,t.visible))}})),G(this,"afterLinkSeries",{isUpdating:t})}renderSeries(){this.series.forEach((function(t){t.translate(),t.render()}))}render(){let t,e=this.axes,i=this.colorAxis,s=this.renderer,o=this.options.chart.axisLayoutRuns||2,r=t=>{t.forEach((t=>{t.visible&&t.render()}))},n=0,a=!0,l=0;for(let d of(this.setTitle(),G(this,"beforeMargins"),null!==(h=this.getStacks)&&void 0!==h&&h.call(this),this.getMargins(!0),this.setChartSize(),e)){var h;let{options:t}=d,{labels:e}=t;if(d.horiz&&d.visible&&e.enabled&&d.series.length&&"colorAxis"!==d.coll&&!this.polar){n=t.tickLength,d.createGroups();let i=new u(d,0,"",!0),s=i.createLabel("x",e);if(i.destroy(),s&&_(e.reserveSpace,!X(t.crossing))&&(n=s.getBBox().height+e.distance+Math.max(t.offset||0,0)),n){null===s||void 0===s||s.destroy();break}}}for(this.plotHeight=Math.max(this.plotHeight-n,0);(a||t||o>1)&&l(l?1:1.1),t=s/this.plotHeight>(l?1:1.05),l++}this.drawChartBox(),this.hasCartesianSeries?r(e):i&&i.length&&r(i),this.seriesGroup||(this.seriesGroup=s.g("series-group").attr({zIndex:3}).shadow(this.options.chart.seriesGroupShadow).add()),this.renderSeries(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.hasRendered=!0}addCredits(t){let e=this,i=Y(!0,this.options.credits,t);i.enabled&&!this.credits&&(this.credits=this.renderer.text(i.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",(function(){i.href&&(C.location.href=i.href)})).attr({align:i.position.align,zIndex:8}),e.styledMode||this.credits.css(i.style),this.credits.add().align(i.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})}destroy(){let t,e=this,i=e.axes,s=e.series,o=e.container,n=o&&o.parentNode;for(G(e,"destroy"),e.renderer.forExport?I(S,e):S[e.index]=void 0,r.chartCount--,e.renderTo.removeAttribute("data-highcharts-chart"),K(e),t=i.length;t--;)i[t]=i[t].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),t=s.length;t--;)s[t]=s[t].destroy();["title","subtitle","chartBackground","plotBackground","plotBGImage","plotBorder","seriesGroup","clipRect","credits","pointer","rangeSelector","legend","resetZoomButton","tooltip","renderer"].forEach((function(t){let i=e[t];i&&i.destroy&&(e[t]=i.destroy())})),o&&(o.innerHTML=p.emptyHTML,K(o),n&&B(o)),V(e,(function(t,i){delete e[i]}))}firstRender(){let t=this,e=t.options;t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes();let i=W(e.series)?e.series:[];e.series=[],i.forEach((function(e){t.initSeries(e)})),t.linkSeries(),t.setSortedData(),G(t,"beforeRender"),t.render(),t.pointer.getChartPosition(),t.renderer.imgCount||t.hasLoaded||t.onload(),t.temporaryDisplay(!0)}onload(){this.callbacks.concat([this.callback]).forEach((function(t){t&&void 0!==this.index&&t.apply(this,[this])}),this),G(this,"load"),G(this,"render"),D(this.index)&&this.setReflow(),this.warnIfA11yModuleNotLoaded(),this.hasLoaded=!0}warnIfA11yModuleNotLoaded(){let{options:t,title:e}=this;!t||this.accessibility||(this.renderer.boxWrapper.attr({role:"img","aria-label":(e&&e.element.textContent||"").replace(/0&&(y+=o,b=S),(o=y-k)>0&&(y=k,b-=o),e.series.length&&b!==u.min&&y!==u.max&&b>=S&&y<=k&&(e.setExtremes(b,y,!1,!1,{trigger:"pan"}),!s.resetZoomButton&&b!==S&&y!==k&&a.match("y")&&(s.showResetZoom(),e.displayBtn=!1),i=!0),r[h]=l)})),V(r,((t,e)=>{s[e]=t})),i&&s.redraw(!1),O(s.container,{cursor:"move"})}))}}return z(tt.prototype,{callbacks:[],collectionsWithInit:{xAxis:[tt.prototype.addAxis,[!0]],yAxis:[tt.prototype.addAxis,[!1]],series:[tt.prototype.addSeries]},collectionsWithUpdate:["xAxis","yAxis","series"],propsRequireDirtyBox:["backgroundColor","borderColor","borderWidth","borderRadius","plotBackgroundColor","plotBackgroundImage","plotBorderColor","plotBorderWidth","plotShadow","shadow"],propsRequireReflow:["margin","marginTop","marginRight","marginBottom","marginLeft","spacing","spacingTop","spacingRight","spacingBottom","spacingLeft"],propsRequireUpdateSeries:["chart.inverted","chart.polar","chart.ignoreHiddenSeries","chart.type","colors","plotOptions","time","tooltip"]}),tt})),i(e,"Extensions/ScrollablePlotArea.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Globals.js"],e["Core/Renderer/RendererRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,s){let{stop:o}=t,{composed:r}=e,{addEvent:n,createElement:a,css:l,defined:h,extend:d,merge:c,pick:p,pushUnique:u}=s;function g(){var t,e,s;let r,{axisOffset:h,chartWidth:d,chartHeight:c,container:u,plotHeight:g,plotLeft:f,plotTop:m,plotWidth:x,scrollablePixelsX:b=0,scrollablePixelsY:y=0,scrollingContainer:v}=this,S=!this.fixedDiv,k=this.options.chart,A=k.scrollablePlotArea,{scrollPositionX:M,scrollPositionY:C}=A,T=i.getRendererType(),{fixedRenderer:w}=this;w?w.setSize(d,c):(this.fixedDiv=a("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:((null===(t=k.style)||void 0===t?void 0:t.zIndex)||0)+2,top:0},void 0,!0),null!==v&&void 0!==v&&v.parentNode.insertBefore(this.fixedDiv,v),l(this.renderTo,{overflow:"visible"}),this.fixedRenderer=w=new T(this.fixedDiv,d,c,k.style),this.scrollableMask=w.path().attr({fill:k.backgroundColor||"#fff","fill-opacity":p(A.opacity,.85),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),n(this,"afterShowResetZoom",this.moveFixedElements),n(this,"afterApplyDrilldown",this.moveFixedElements),n(this,"afterLayOutTitles",this.moveFixedElements)),(this.scrollableDirty||S)&&(this.scrollableDirty=!1,this.moveFixedElements());let P=d+b,L=c+y;o(this.container),l(u,{width:"".concat(P,"px"),height:"".concat(L,"px")}),this.renderer.boxWrapper.attr({width:P,height:L,viewBox:[0,0,P,L].join(" ")}),null!==(e=this.chartBackground)&&void 0!==e&&e.attr({width:P,height:L}),v&&(l(v,{width:"".concat(this.chartWidth,"px"),height:"".concat(this.chartHeight,"px")}),S&&(M&&(v.scrollLeft=b*M),C&&(v.scrollTop=y*C)));let E=m-h[0]-1,O=f-h[3]-1,D=m+g+h[2]+1,j=f+x+h[1]+1,B=f+x-b,I=m+g-y;r=b?[["M",0,E],["L",f-1,E],["L",f-1,D],["L",0,D],["Z"],["M",B,E],["L",d,E],["L",d,D],["L",B,D],["Z"]]:y?[["M",O,0],["L",O,m-1],["L",j,m-1],["L",j,0],["Z"],["M",O,I],["L",O,c],["L",j,c],["L",j,I],["Z"]]:[["M",0,0]],"adjustHeight"!==this.redrawTrigger&&(null===(s=this.scrollableMask)||void 0===s||s.attr({d:r}))}function f(){let t,e=this.container,i=this.fixedRenderer,s=[".highcharts-breadcrumbs-group",".highcharts-contextbutton",".highcharts-caption",".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"];for(let o of(this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted||this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),t&&s.push("".concat(t,":not(.highcharts-radial-axis)"),"".concat(t,"-labels:not(.highcharts-radial-axis-labels)")),s))[].forEach.call(e.querySelectorAll(o),(t=>{(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"}))}function m(){let t,e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingParent=a("div",{className:"highcharts-scrolling-parent"},{position:"relative"},this.renderTo),this.scrollingContainer=a("div",{className:"highcharts-scrolling"},e,this.scrollingParent),n(this.scrollingContainer,"scroll",(()=>{this.pointer&&(delete this.pointer.chartPosition,this.hoverPoint&&(t=this.hoverPoint),this.pointer.runPointActions(void 0,t,!0))})),this.innerContainer=a("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null}function x(){this.chart.scrollableDirty=!0}function b(t){let e,i,s,o=this.options.chart.scrollablePlotArea,r=o&&o.minWidth,n=o&&o.minHeight;if(!this.renderer.forExport&&(r?(this.scrollablePixelsX=e=Math.max(0,r-this.chartWidth),e&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.width=this.plotWidth+=e,this.inverted?this.clipBox.height+=e:this.clipBox.width+=e,s={1:{name:"right",value:e}})):n&&(this.scrollablePixelsY=i=Math.max(0,n-this.chartHeight),h(i)&&(this.scrollablePlotBox=this.renderer.scrollablePlotBox=c(this.plotBox),this.plotBox.height=this.plotHeight+=i,this.inverted?this.clipBox.width+=i:this.clipBox.height+=i,s={2:{name:"bottom",value:i}})),s&&!t.skipAxes))for(let a of this.axes)if(s[a.side]){let t=a.getPlotLinePath;a.getPlotLinePath=function(){let e=s[a.side].name,i=s[a.side].value,o=this[e];this[e]=o-i;let r=t.apply(this,arguments);return this[e]=o,r}}else a.setAxisSize(),a.setAxisTranslation()}function y(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}function v(){this.chart.scrollableDirty=!0}return{compose:function t(e,i,s){u(r,t)&&(n(e,"afterInit",x),d(i.prototype,{applyFixed:g,moveFixedElements:f,setUpScrolling:m}),n(i,"afterSetChartSize",b),n(i,"render",y),n(s,"show",v))}}})),i(e,"Core/Axis/Stacking/StackItem.js",[e["Core/Templating.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{format:s}=t,{series:o}=e,{destroyObjectProperties:r,fireEvent:n,isNumber:a,pick:l}=i;return class{constructor(t,e,i,s,o){let r=t.chart.inverted,n=t.reversed;this.axis=t;let a=this.isNegative=!!i!=!!n;this.options=e=e||{},this.x=s,this.total=null,this.cumulative=null,this.points={},this.hasValidPoints=!1,this.stack=o,this.leftCliff=0,this.rightCliff=0,this.alignOptions={align:e.align||(r?a?"left":"right":"center"),verticalAlign:e.verticalAlign||(r?"middle":a?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(r?a?"right":"left":"center")}destroy(){r(this,this.axis)}render(t){let e=this.axis.chart,i=this.options,o=i.format,r=o?s(o,this,e):i.formatter.call(this);if(this.label)this.label.attr({text:r,visibility:"hidden"});else{this.label=e.renderer.label(r,null,void 0,i.shape,void 0,void 0,i.useHTML,!1,"stack-labels");let s={r:i.borderRadius||0,text:r,padding:l(i.padding,5),visibility:"hidden"};e.styledMode||(s.fill=i.backgroundColor,s.stroke=i.borderColor,s["stroke-width"]=i.borderWidth,this.label.css(i.style||{})),this.label.attr(s),this.label.added||this.label.add(t)}this.label.labelrank=e.plotSizeY,n(this,"afterRender")}setOffset(t,e,i,s,r,h){let{alignOptions:d,axis:c,label:p,options:u,textAlign:g}=this,f=c.chart,m=this.getStackBox({xOffset:t,width:e,boxBottom:i,boxTop:s,defaultX:r,xAxis:h}),{verticalAlign:x}=d;if(p&&m){let t,e=p.getBBox(),i=p.padding,s="justify"===l(u.overflow,"justify");d.x=u.x||0,d.y=u.y||0;let{x:r,y:n}=this.adjustStackPosition({labelBox:e,verticalAlign:x,textAlign:g});m.x-=r,m.y-=n,p.align(d,!1,m),(t=f.isInsidePlot(p.alignAttr.x+d.x+r,p.alignAttr.y+d.y+n))||(s=!1),s&&o.prototype.justifyDataLabel.call(c,p,d,p.alignAttr,e,m),p.attr({x:p.alignAttr.x,y:p.alignAttr.y,rotation:u.rotation,rotationOriginX:e.width/2,rotationOriginY:e.height/2}),l(!s&&u.crop,!0)&&(t=a(p.x)&&a(p.y)&&f.isInsidePlot(p.x-i+(p.width||0),p.y)&&f.isInsidePlot(p.x+i,p.y)),p[t?"show":"hide"]()}n(this,"afterSetOffset",{xOffset:t,width:e})}adjustStackPosition(t){let{labelBox:e,verticalAlign:i,textAlign:s}=t,o={bottom:0,middle:1,top:2,right:1,center:0,left:-1},r=o[i],n=o[s];return{x:e.width/2+e.width/2*n,y:e.height/2*r}}getStackBox(t){let e=this.axis,i=e.chart,{boxTop:s,defaultX:o,xOffset:r,width:n,boxBottom:h}=t,d=e.stacking.usePercentage?100:l(s,this.total,0),c=e.toPixels(d),p=t.xAxis||i.xAxis[0],u=l(o,p.translate(this.x))+r,g=e.toPixels(h||a(e.min)&&e.logarithmic&&e.logarithmic.lin2log(e.min)||0),f=Math.abs(c-g),m=i.inverted,x=this.isNegative;return m?{x:(x?c:c-f)-i.plotLeft,y:p.height-u-n,width:f,height:n}:{x:u+p.transB-i.plotLeft,y:(x?c-f:c)-i.plotTop,width:n,height:f}}}})),i(e,"Core/Axis/Stacking/StackingAxis.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Axis/Axis.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o,r){var n;let{getDeferredAnimation:a}=t,{composed:l}=i,{series:{prototype:h}}=s,{addEvent:d,correctFloat:c,defined:p,destroyObjectProperties:u,fireEvent:g,isArray:f,isNumber:m,objectEach:x,pick:b,pushUnique:y}=r;function v(){let t=this.inverted;this.axes.forEach((t=>{t.stacking&&t.stacking.stacks&&t.hasVisibleSeries&&(t.stacking.oldStacks=t.stacking.stacks)})),this.series.forEach((e=>{let i=e.xAxis&&e.xAxis.options||{};e.options.stacking&&e.reserveSpace()&&(e.stackKey=[e.type,b(e.options.stack,""),t?i.top:i.left,t?i.height:i.width].join(","))}))}function S(){let t=this.stacking;if(t){var e;let i=t.stacks;x(i,((t,e)=>{u(t),delete i[e]})),null===(e=t.stackTotalGroup)||void 0===e||e.destroy()}}function k(){this.stacking||(this.stacking=new P(this))}function A(t,e,i,s){return!p(t)||t.x!==e||s&&t.stackKey!==s?t={x:e,index:0,key:s,stackKey:s}:t.index++,t.key=[i,e,t.index].join(","),t}function M(){let t,e=this,i=e.yAxis,s=e.stackKey||"",o=i.stacking.stacks,r=e.processedXData,n=e.options.stacking,a=e[n+"Stacker"];a&&[s,"-"+s].forEach((i=>{let s,n,l,h=r.length;for(;h--;){var d,c;s=r[h],t=e.getStackIndicator(t,s,e.index,i),n=null===(d=o[i])||void 0===d?void 0:d[s],(l=null===(c=n)||void 0===c?void 0:c.points[t.key||""])&&a.call(e,l,n,h)}}))}function C(t,e,i){let s=e.total?100/e.total:0;t[0]=c(t[0]*s),t[1]=c(t[1]*s),this.stackedYData[i]=t[1]}function T(t){(this.is("column")||this.is("columnrange"))&&(this.options.centerInCategory&&!this.options.stacking&&this.chart.series.length>1?h.setStackedPoints.call(this,t,"group"):t.stacking.resetStacks())}function w(t,e){let i,s,r,n,a,l,h,d,u,g=e||this.options.stacking;if(!g||!this.reserveSpace()||({group:"xAxis"}[g]||"yAxis")!==t.coll)return;let m=this.processedXData,x=this.processedYData,y=[],v=x.length,S=this.options,k=S.threshold||0,A=S.startFromThreshold?k:0,M=S.stack,C=e?"".concat(this.type,",").concat(g):this.stackKey||"",T="-"+C,w=this.negStacks,P=t.stacking,L=P.stacks,E=P.oldStacks;for(P.stacksTouched+=1,h=0;h0&&!1===this.singleStacks&&(r.points[l][0]=r.points[this.index+","+d+",0"][0])):(delete r.points[l],delete r.points[this.index]);let e=r.total||0;"percent"===g?(n=s?C:T,e=w&&null!==(D=L[n])&&void 0!==D&&D[d]?(n=L[n][d]).total=Math.max(n.total||0,e)+Math.abs(u)||0:c(e+(Math.abs(u)||0))):"group"===g?(f(u)&&(u=u[0]),null!==u&&e++):e=c(e+(u||0)),r.cumulative="group"===g?(e||1)-1:c(b(r.cumulative,A)+(u||0)),r.total=e,null!==u&&(r.points[l].push(r.cumulative),y[h]=r.cumulative,r.hasValidPoints=!0)}"percent"===g&&(P.usePercentage=!0),"group"!==g&&(this.stackedYData=y),P.oldStacks={}}class P{constructor(t){this.oldStacks={},this.stacks={},this.stacksTouched=0,this.axis=t}buildStacks(){let t,e,i=this.axis,s=i.series,o="xAxis"===i.coll,r=i.options.reversedStacks,n=s.length;for(this.resetStacks(),this.usePercentage=!1,e=n;e--;)t=s[r?e:n-e-1],o&&t.setGroupedPoints(i),t.setStackedPoints(i);if(!o)for(e=0;e{x(t,(t=>{t.cumulative=t.total}))})))}resetStacks(){x(this.stacks,(t=>{x(t,((e,i)=>{m(e.touched)&&e.touched{x(t,(t=>{t.render(l)}))})),l.animate({opacity:1},n)}}return(n||(n={})).compose=function t(e,i,s){if(y(l,t)){let t=i.prototype,o=s.prototype;d(e,"init",k),d(e,"destroy",S),t.getStacks=v,o.getStackIndicator=A,o.modifyStacks=M,o.percentStacker=C,o.setGroupedPoints=T,o.setStackedPoints=w}},n})),i(e,"Series/Line/LineSeries.js",[e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{defined:s,merge:o,isObject:r}=i;class n extends t{drawGraph(){let t=this.options,e=(this.gappedPath||this.getGraphPath).call(this),i=this.chart.styledMode;[this,...this.zones].forEach(((s,n)=>{let a,l=s.graph,h=l?"animate":"attr",d=s.dashStyle||t.dashStyle;l?(l.endX=this.preventGraphAnimation?null:e.xMap,l.animate({d:e})):e.length&&(s.graph=l=this.chart.renderer.path(e).addClass("highcharts-graph"+(n?" highcharts-zone-graph-".concat(n-1," "):" ")+(n&&s.className||"")).attr({zIndex:1}).add(this.group)),l&&!i&&(a={stroke:!n&&t.lineColor||s.color||this.color||"#cccccc","stroke-width":t.lineWidth||0,fill:this.fillGraph&&this.color||"none"},d?a.dashstyle=d:"square"!==t.linecap&&(a["stroke-linecap"]=a["stroke-linejoin"]="round"),l[h](a).shadow(n<2&&t.shadow&&o({filterUnits:"userSpaceOnUse"},r(t.shadow)?t.shadow:{}))),l&&(l.startX=e.xMap,l.isArea=e.isArea)}))}getGraphPath(t,e,i){let o,r=this,n=r.options,a=[],l=[],h=n.step,d=(t=t||r.points).reversed;return d&&t.reverse(),(h={right:1,center:2}[h]||h&&3)&&d&&(h=4-h),(t=this.getValidPoints(t,!1,!(n.connectNulls&&!e&&!i))).forEach((function(d,c){let p,u=d.plotX,g=d.plotY,f=t[c-1],m=d.isNull||"number"!=typeof g;(d.leftCliff||f&&f.rightCliff)&&!i&&(o=!0),m&&!s(e)&&c>0?o=!n.connectNulls:m&&!e?o=!0:(0===c||o?p=[["M",d.plotX,d.plotY]]:r.getPointSpline?p=[r.getPointSpline(t,d,c)]:h?(p=1===h?[["L",f.plotX,g]]:2===h?[["L",(f.plotX+u)/2,f.plotY],["L",(f.plotX+u)/2,g]]:[["L",u,f.plotY]]).push(["L",u,g]):p=[["L",u,g]],l.push(d.x),h&&(l.push(d.x),2===h&&l.push(d.x)),a.push.apply(a,p),o=!1)})),a.xMap=l,r.graphPath=a,a}}return n.defaultOptions=o(t.defaultOptions,{legendSymbol:"lineMarker"}),e.registerSeriesType("line",n),n})),i(e,"Series/Area/AreaSeries.js",[e["Core/Color/Color.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{parse:s}=t,{seriesTypes:{line:o}}=e,{extend:r,merge:n,objectEach:a,pick:l}=i;class h extends o{drawGraph(){this.areaPath=[],super.drawGraph.apply(this);let{areaPath:t,options:e}=this;[this,...this.zones].forEach(((i,s)=>{var o;let r={},n=i.fillColor||e.fillColor,a=i.area,l=a?"animate":"attr";a?(a.endX=this.preventGraphAnimation?null:t.xMap,a.animate({d:t})):(r.zIndex=0,(a=i.area=this.chart.renderer.path(t).addClass("highcharts-area"+(s?" highcharts-zone-area-".concat(s-1," "):" ")+(s&&i.className||"")).add(this.group)).isArea=!0),this.chart.styledMode||(r.fill=n||i.color||this.color,r["fill-opacity"]=n?1:null!==(o=e.fillOpacity)&&void 0!==o?o:.75,a.css({pointerEvents:this.stickyTracking?"none":"auto"})),a[l](r),a.startX=t.xMap,a.shiftUnit=e.step?2:1}))}getGraphPath(t){let e,i,s,r=o.prototype.getGraphPath,n=this.options,a=n.stacking,h=this.yAxis,d=[],c=[],p=this.index,u=h.stacking.stacks[this.stackKey],g=n.threshold,f=Math.round(h.getThreshold(n.threshold)),m=l(n.connectNulls,"percent"===a),x=function(i,s,o){let r,n,l=t[i],m=a&&u[l.x].points[p],x=l[o+"Null"]||0,b=l[o+"Cliff"]||0,y=!0;b||x?(r=(x?m[0]:m[1])+b,n=m[0]+b,y=!!x):!a&&t[s]&&t[s].isNull&&(r=n=g),void 0!==r&&(c.push({plotX:e,plotY:null===r?f:h.getThreshold(r),isNull:y,isCliff:!0}),d.push({plotX:e,plotY:null===n?f:h.getThreshold(n),doCurve:!1}))};t=t||this.points,a&&(t=this.getStackPoints(t));for(let o=0,A=t.length;ot.visible));s.forEach((function(t,a){let f,m,x=0;if(h[t]&&!h[t].isNull)i.push(h[t]),[-1,1].forEach((function(i){let o=1===i?"rightNull":"leftNull",r=n[s[a+i]],l=0;if(r){let i=u;for(;i>=0&&i=0&&ei&&r>h?(r=Math.max(i,h),a=2*h-r):rp&&a>h?(a=Math.max(p,h),r=2*h-a):a=Math.abs(e)&&a>.5;return s=a-(e=Math.round(e)+n),l&&s&&(e-=1,s+=1),{x:t,y:e,width:i,height:s}}adjustForMissingColumns(t,e,i,s){if(!i.isNull&&s.columnCount>1){var o;let r=this.xAxis.series.filter((t=>t.visible)).map((t=>t.index)),n=0,a=0;y(null===(o=this.xAxis.stacking)||void 0===o?void 0:o.stacks,(t=>{if("number"==typeof i.x){let e=t[i.x.toString()];if(e){let t=e.points[this.index];if(f(t)){let t=Object.keys(e.points).filter((t=>!t.match(",")&&e.points[t]&&e.points[t].length>1)).map(parseFloat).filter((t=>-1!==r.indexOf(t))).sort(((t,e)=>e-t));n=t.indexOf(this.index),a=t.length}}}}));let l=(a-1)*s.paddedWidth+e;t=(i.plotX||0)+l/2-e-n*s.paddedWidth}return t}translate(){let t=this,e=t.chart,i=t.options,s=t.dense=t.closestPointRange*t.xAxis.transA<2,r=t.borderWidth=b(i.borderWidth,s?0:1),n=t.xAxis,a=t.yAxis,l=i.threshold,h=b(i.minPointLength,5),d=t.getColumnMetrics(),u=d.width,f=t.pointXOffset=d.offset,x=t.dataMin,y=t.dataMax,v=t.barW=Math.max(u,1+2*r),S=t.translatedThreshold=a.getThreshold(l);e.inverted&&(S-=.5),i.pointPadding&&(v=Math.ceil(v)),o.prototype.translate.apply(t),t.points.forEach((function(s){let o=b(s.yBottom,S),r=999+Math.abs(o),g=s.plotX||0,k=c(s.plotY,-r,a.len+r);s.stackBox;let A,M=Math.min(k,o),C=Math.max(k,o)-M,T=u,w=g+f,P=v;h&&Math.abs(C)h?o-h:S-(A?h:0)),p(s.options.pointWidth)&&(w-=Math.round(((T=P=Math.ceil(s.options.pointWidth))-u)/2)),i.centerInCategory&&!i.stacking&&(w=t.adjustForMissingColumns(w,T,s,d)),s.barX=w,s.pointWidth=T,s.tooltipPos=e.inverted?[c(a.len+a.pos-e.plotLeft-k,a.pos-e.plotLeft,a.len+a.pos-e.plotLeft),n.len+n.pos-e.plotTop-w-P/2,C]:[n.left-e.plotLeft+w+P/2,c(k+a.pos-e.plotTop,a.pos-e.plotTop,a.len+a.pos-e.plotTop),C],s.shapeType=t.pointClass.prototype.shapeType||"roundedRect",s.shapeArgs=t.crispCol(w,s.isNull?S:M,P,s.isNull?0:C)})),g(this,"afterColumnTranslate")}drawGraph(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")}pointAttribs(t,e){let i,s,o,r=this.options,n=this.pointAttrToOptions||{},a=n.stroke||"borderColor",h=n["stroke-width"]||"borderWidth",d=t&&t.color||this.color,c=t&&t[a]||r[a]||d,p=t&&t.options.dashStyle||r.dashStyle,u=t&&t[h]||r[h]||this[h]||0,g=b(t&&t.opacity,r.opacity,1);t&&this.zones.length&&(s=t.getZone(),d=t.options.color||s&&(s.color||t.nonZonedColor)||this.color,s&&(c=s.borderColor||c,p=s.dashStyle||p,u=s.borderWidth||u)),e&&t&&(o=(i=x(r.states[e],t.options.states&&t.options.states[e]||{})).brightness,d=i.color||void 0!==o&&l(d).brighten(i.brightness).get()||d,c=i[a]||c,u=i[h]||u,p=i.dashStyle||p,g=b(i.opacity,g));let f={fill:d,stroke:c,"stroke-width":u,opacity:g};return p&&(f.dashstyle=p),f}drawPoints(){let t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.points,i=this,s=this.chart,o=i.options,r=s.renderer,n=o.animationLimit||250;e.forEach((function(e){let a=e.plotY,l=e.graphic,h=!!l,d=l&&s.pointCount0&&void 0!==arguments[0]?arguments[0]:this.points,i=this,s=i.chart,o=s.pointer,r=function(t){let e=o.getPointFromEvent(t);void 0!==e&&i.options.enableMouseTracking&&(o.isDirectTouch=!0,e.onMouseOver(t))};e.forEach((function(e){t=f(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach((function(t){t.div?t.div.point=e:t.element.point=e}))})),i._hasTracking||(i.trackerGroups.forEach((function(t){i[t]&&(i[t].addClass("highcharts-tracker").on("mouseover",r).on("mouseout",(function(t){o.onTrackerMouseOut(t)})),h&&i[t].on("touchstart",r),!s.styledMode&&i.options.cursor&&i[t].css({cursor:i.options.cursor}))})),i._hasTracking=!0),g(this,"afterDrawTracker")}remove(){let t=this,e=t.chart;e.hasRendered&&e.series.forEach((function(e){e.type===t.type&&(e.isDirty=!0)})),o.prototype.remove.apply(t,arguments)}}return S.defaultOptions=x(o.defaultOptions,i),u(S.prototype,{directTouch:!0,getSymbol:d,negStacks:!0,trackerGroups:["group","dataLabelsGroup"]}),r.registerSeriesType("column",S),S})),i(e,"Core/Series/DataLabel.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Templating.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i,s){var o;let{getDeferredAnimation:r}=t,{format:n}=e,{composed:a}=i,{defined:l,extend:h,fireEvent:d,isArray:c,isString:p,merge:u,objectEach:g,pick:f,pInt:m,pushUnique:x,splat:b}=s;return function(t){function e(){return k(this).some((t=>null===t||void 0===t?void 0:t.enabled))}function i(t,e,i,s,o){let r,n,a,d=this,c=this.chart,p=this.isCartesian&&c.inverted,u=this.enabledDataSorting,g=t.plotX,m=t.plotY,x=i.rotation,b=i.align,y=l(g)&&l(m)&&c.isInsidePlot(g,Math.round(m),{inverted:p,paneCoordinates:!0,series:d}),v=i=>{u&&d.xAxis&&!S&&d.setDataLabelStartPos(t,e,o,y,i)},S="justify"===f(i.overflow,u?"none":"justify"),k=this.visible&&!1!==t.visible&&l(g)&&(t.series.forceDL||u&&!S||y||f(i.inside,!!this.options.stacking)&&s&&c.isInsidePlot(g,p?s.x+1:s.y+s.height-1,{inverted:p,paneCoordinates:!0,series:d})),A=t.pos();if(k&&A){x&&e.attr({align:b});let t=e.getBBox(!0),l=[0,0];if(r=c.renderer.fontMetrics(e).b,s=h({x:A[0],y:Math.round(A[1]),width:0,height:0},s),h(i,{width:t.width,height:t.height}),x?(S=!1,n=c.renderer.rotCorr(r,x),a={x:s.x+(i.x||0)+s.width/2+n.x,y:s.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height},l=[t.x-Number(e.attr("x")),t.y-Number(e.attr("y"))],v(a),e[o?"attr":"animate"](a)):(v(s),e.align(i,void 0,s),a=e.alignAttr),S&&s.height>=0)this.justifyDataLabel(e,i,a,t,s,o);else if(f(i.crop,!0)){let{x:e,y:i}=a;e+=l[0],i+=l[1],k=c.isInsidePlot(e,i,{paneCoordinates:!0,series:d})&&c.isInsidePlot(e+t.width,i+t.height,{paneCoordinates:!0,series:d})}i.shape&&!x&&e[o?"attr":"animate"]({anchorX:A[0],anchorY:A[1]})}o&&u&&(e.placed=!1),k||u&&!S?e.show():(e.hide(),e.placed=!1)}function s(){return this.plotGroup("dataLabelsGroup","data-labels",this.hasRendered?"inherit":"hidden",this.options.dataLabels.zIndex||6)}function o(t){let e=this.hasRendered||0,i=this.initDataLabelsGroup().attr({opacity:+e});return!e&&i&&(this.visible&&i.show(),this.options.animation?i.animate({opacity:1},t):i.attr({opacity:1})),i}function y(t){var e;let i;t=t||this.points;let s=this,o=s.chart,a=s.options,h=o.renderer,{backgroundColor:c,plotBackgroundColor:u}=o.options.chart,x=h.getContrast(p(u)&&u||p(c)&&c||"#000000"),y=k(s),{animation:v,defer:A}=y[0],M=A?r(o,v,s):{defer:0,duration:0};d(this,"drawDataLabels"),null!==(e=s.hasDataLabels)&&void 0!==e&&e.call(s)&&(i=this.initDataLabels(M),t.forEach((t=>{var e;let r=t.dataLabels||[];b(S(y,t.dlOptions||(null===(e=t.options)||void 0===e?void 0:e.dataLabels))).forEach(((e,d)=>{let c,u,b,y,v,S=e.enabled&&t.visible&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){let i=e.filter;if(i){let e=i.operator,s=t[i.property],o=i.value;return">"===e&&s>o||"<"===e&&s="===e&&s>=o||"<="===e&&s<=o||"=="===e&&s==o||"==="===e&&s===o||"!="===e&&s!=o||"!=="===e&&s!==o}return!0}(t,e),{backgroundColor:k,borderColor:A,distance:M,style:C={}}=e,T={},w=r[d],P=!w;if(S&&(u=f(e[t.formatPrefix+"Format"],e.format),c=t.getLabelConfig(),b=l(u)?n(u,c,o):(e[t.formatPrefix+"Formatter"]||e.formatter).call(c,e),y=e.rotation,!o.styledMode&&(C.color=f(e.color,C.color,p(s.color)?s.color:void 0,"#000000"),"contrast"===C.color?("none"!==k&&(v=k),t.contrastColor=h.getContrast("auto"!==v&&v||t.color||s.color),C.color=v||!l(M)&&e.inside||0>m(M||0)||a.stacking?t.contrastColor:x):delete t.contrastColor,a.cursor&&(C.cursor=a.cursor)),T={r:e.borderRadius||0,rotation:y,padding:e.padding,zIndex:1},o.styledMode||(T.fill="auto"===k?t.color:k,T.stroke="auto"===A?t.color:A,T["stroke-width"]=e.borderWidth),g(T,((t,e)=>{void 0===t&&delete T[e]}))),!w||S&&l(b)&&!!w.div==!!e.useHTML&&(w.rotation&&e.rotation||w.rotation===e.rotation)||(w=void 0,P=!0),S&&l(b)&&(w?T.text=b:(w=y?h.text(b,0,0,e.useHTML).addClass("highcharts-data-label"):h.label(b,0,0,e.shape,void 0,void 0,e.useHTML,void 0,"data-label"))&&w.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":"")),w)){var L;w.options=e,w.attr(T),o.styledMode||w.css(C).shadow(e.shadow);let n=e[t.formatPrefix+"TextPath"]||e.textPath;n&&!e.useHTML&&(w.setTextPath((null===(L=t.getDataLabelPath)||void 0===L?void 0:L.call(t,w))||t.graphic,n),t.dataLabelPath&&!n.enabled&&(t.dataLabelPath=t.dataLabelPath.destroy())),w.added||w.add(i),s.alignDataLabel(t,w,e,void 0,P),w.isActive=!0,r[d]&&r[d]!==w&&r[d].destroy(),r[d]=w}}));let d=r.length;for(;d--;){var c;r[d]&&r[d].isActive?r[d].isActive=!1:(null!==(c=r[d])&&void 0!==c&&c.destroy(),r.splice(d,1))}t.dataLabel=r[0],t.dataLabels=r}))),d(this,"afterDrawDataLabels")}function v(t,e,i,s,o,r){let n,a,l=this.chart,h=e.align,d=e.verticalAlign,c=t.box?0:t.padding||0,{x:p=0,y:u=0}=e;return(n=(i.x||0)+c)<0&&("right"===h&&p>=0?(e.align="left",e.inside=!0):p-=n,a=!0),(n=(i.x||0)+s.width-c)>l.plotWidth&&("left"===h&&p<=0?(e.align="right",e.inside=!0):p+=l.plotWidth-n,a=!0),(n=i.y+c)<0&&("bottom"===d&&u>=0?(e.verticalAlign="top",e.inside=!0):u-=n,a=!0),(n=(i.y||0)+s.height-c)>l.plotHeight&&("top"===d&&u<=0?(e.verticalAlign="bottom",e.inside=!0):u+=l.plotHeight-n,a=!0),a&&(e.x=p,e.y=u,t.placed=!r,t.align(e,void 0,o)),a}function S(t,e){let i,s=[];if(c(t)&&!c(e))s=t.map((function(t){return u(t,e)}));else if(c(e)&&!c(t))s=e.map((function(e){return u(t,e)}));else if(c(t)||c(e)){if(c(t)&&c(e))for(i=Math.max(t.length,e.length);i--;)s[i]=u(t[i],e[i])}else s=u(t,e);return s}function k(t){var e,i;let s=t.chart.options.plotOptions;return b(S(S(null===s||void 0===s||null===(e=s.series)||void 0===e?void 0:e.dataLabels,null===s||void 0===s||null===(i=s[t.type])||void 0===i?void 0:i.dataLabels),t.options.dataLabels))}function A(t,e,i,s,o){let r=this.chart,n=r.inverted,a=this.xAxis,l=a.reversed,h=((n?e.height:e.width)||0)/2,d=t.pointWidth,c=d?d/2:0;e.startXPos=n?o.x:l?-h-c:a.width-h+c,e.startYPos=n?l?this.yAxis.height-h+c:-h-c:o.y,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)}t.compose=function t(r){if(x(a,t)){let t=r.prototype;t.initDataLabelsGroup=s,t.initDataLabels=o,t.alignDataLabel=i,t.drawDataLabels=y,t.justifyDataLabel=v,t.setDataLabelStartPos=A,t.hasDataLabels=e}}}(o||(o={})),o})),i(e,"Series/Column/ColumnDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,s){var o;let{composed:r}=e,{series:n}=i,{merge:a,pick:l,pushUnique:h}=s;return function(e){function i(t,e,i,s,o){let r=this.chart.inverted,h=t.series,d=(h.xAxis?h.xAxis.len:this.chart.plotSizeX)||0,c=(h.yAxis?h.yAxis.len:this.chart.plotSizeY)||0,p=t.dlBox||t.shapeArgs,u=l(t.below,t.plotY>l(this.translatedThreshold,c)),g=l(i.inside,!!this.options.stacking);if(p){if(s=a(p),"allow"!==i.overflow||!1!==i.crop){s.y<0&&(s.height+=s.y,s.y=0);let t=s.y+s.height-c;t>0&&t\u25cf {series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}}})),i(e,"Series/Scatter/ScatterSeries.js",[e["Series/Scatter/ScatterSeriesDefaults.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i){let{column:s,line:o}=e.seriesTypes,{addEvent:r,extend:n,merge:a}=i;class l extends o{applyJitter(){let t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(s,o){["x","y"].forEach((function(r,n){let a,l,h,d,c="plot"+r.toUpperCase();e[r]&&!s.isNull&&(a=t[r+"Axis"],d=e[r]*a.transA,a&&!a.isLog&&(l=Math.max(0,s[c]-d),h=Math.min(a.len,s[c]+d),s[c]=l+(h-l)*function(t){let e=1e4*Math.sin(t);return e-Math.floor(e)}(o+n*i),"x"===r&&(s.clientX=s.plotX)))}))}))}drawGraph(){this.options.lineWidth?super.drawGraph():this.graph&&(this.graph=this.graph.destroy())}}return l.defaultOptions=a(o.defaultOptions,t),n(l.prototype,{drawTracker:s.prototype.drawTracker,sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"]}),r(l,"afterTranslate",(function(){this.applyJitter()})),e.registerSeriesType("scatter",l),l})),i(e,"Series/CenteredUtilities.js",[e["Core/Globals.js"],e["Core/Series/Series.js"],e["Core/Utilities.js"]],(function(t,e,i){var s,o;let{deg2rad:r}=t,{fireEvent:n,isNumber:a,pick:l,relativeLength:h}=i;return(o=s||(s={})).getCenter=function(){let t,i,s,o=this.options,r=this.chart,d=2*(o.slicedOffset||0),c=r.plotWidth-2*d,p=r.plotHeight-2*d,u=o.center,g=Math.min(c,p),f=o.thickness,m=o.size,x=o.innerSize||0;"string"==typeof m&&(m=parseFloat(m)),"string"==typeof x&&(x=parseFloat(x));let b=[l(u[0],"50%"),l(u[1],"50%"),l(m&&m<0?void 0:o.size,"100%"),l(x&&x<0?void 0:o.innerSize||0,"0%")];for(!r.angular||this instanceof e||(b[3]=0),i=0;i<4;++i)s=b[i],t=i<2||2===i&&/%$/.test(s),b[i]=h(s,[c,p,g,b[2]][i])+(t?d:0);return b[3]>b[2]&&(b[3]=b[2]),a(f)&&2*f0&&(b[3]=b[2]-2*f),n(this,"afterGetCenter",{positions:b}),b},o.getStartAndEndRadians=function(t,e){let i=a(t)?t:0,s=a(e)&&e>i&&e-i<360?e:i+360;return{start:r*(i+-90),end:r*(s+-90)}},s})),i(e,"Series/Pie/PiePoint.js",[e["Core/Animation/AnimationUtilities.js"],e["Core/Series/Point.js"],e["Core/Utilities.js"]],(function(t,e,i){let{setAnimation:s}=t,{addEvent:o,defined:r,extend:n,isNumber:a,isString:l,pick:h,relativeLength:d}=i;class c extends e{getConnectorPath(t){let e=t.dataLabelPosition,i=t.options||{},s=i.connectorShape,o=this.connectorShapes[s]||s;return e&&o.call(this,{...e.computed,alignment:e.alignment},e.connectorPosition,i)||[]}getTranslate(){return this.sliced&&this.slicedTranslation||{translateX:0,translateY:0}}haloPath(t){let e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end,borderRadius:e.borderRadius})}constructor(t,e,i){var s;super(t,e,i),this.half=0,null!==(s=this.name)&&void 0!==s||(this.name="Slice");let r=t=>{this.slice("select"===t.type)};o(this,"select",r),o(this,"unselect",r)}isValid(){return a(this.y)&&this.y>=0}setVisible(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t!==this.visible&&this.update({visible:null!==t&&void 0!==t?t:!this.visible},e,void 0,!1)}slice(t,e,i){let o=this.series,n=o.chart;s(i,n),e=h(e,!0),this.sliced=this.options.sliced=t=r(t)?t:!this.sliced,o.options.data[o.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate())}}return n(c.prototype,{connectorShapes:{fixedOffset:function(t,e,i){let s=e.breakAt,o=e.touchingSliceAt,r=i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-o.x,2*s.y-o.y,s.x,s.y]:["L",s.x,s.y];return[["M",t.x,t.y],r,["L",o.x,o.y]]},straight:function(t,e){let i=e.touchingSliceAt;return[["M",t.x,t.y],["L",i.x,i.y]]},crookedLine:function(t,e,i){let{breakAt:s,touchingSliceAt:o}=e,{series:r}=this,[n,a,l]=r.center,h=l/2,{plotLeft:c,plotWidth:p}=r.chart,u="left"===t.alignment,{x:g,y:f}=t,m=s.x;if(i.crookDistance){let t=d(i.crookDistance,1);m=u?n+h+(p+c-n-h)*(1-t):c+(n-h)*t}else m=n+(a-f)*Math.tan((this.angle||0)-Math.PI/2);let x=[["M",g,f]];return(u?m<=g&&m>=s.x:m>=g&&m<=s.x)&&x.push(["L",m,f]),x.push(["L",s.x,s.y],["L",o.x,o.y]),x}}}),c})),i(e,"Series/Pie/PieSeriesDefaults.js",[],(function(){return{borderRadius:3,center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{connectorPadding:5,connectorShape:"crookedLine",crookDistance:void 0,distance:30,enabled:!0,formatter:function(){return this.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}}}})),i(e,"Series/Pie/PieSeries.js",[e["Series/CenteredUtilities.js"],e["Series/Column/ColumnSeries.js"],e["Core/Globals.js"],e["Series/Pie/PiePoint.js"],e["Series/Pie/PieSeriesDefaults.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Renderer/SVG/Symbols.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o,r,n,a,l){let{getStartAndEndRadians:h}=t,{noop:d}=i,{clamp:c,extend:p,fireEvent:u,merge:g,pick:f,relativeLength:m,splat:x}=l;class b extends r{animate(t){let e=this,i=e.points,s=e.startAngleRad;t||i.forEach((function(t){let i=t.graphic,o=t.shapeArgs;i&&o&&(i.attr({r:f(t.startR,e.center&&e.center[3]/2),start:s,end:s}),i.animate({r:o.r,start:o.start,end:o.end},e.options.animation))}))}drawEmpty(){let t,e,i=this.startAngleRad,s=this.endAngleRad,o=this.options;0===this.total&&this.center?(t=this.center[0],e=this.center[1],this.graph||(this.graph=this.chart.renderer.arc(t,e,this.center[1]/2,0,i,s).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:a.arc(t,e,this.center[2]/2,0,{start:i,end:s,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":o.borderWidth,fill:o.fillColor||"none",stroke:o.color||"#cccccc"})):this.graph&&(this.graph=this.graph.destroy())}drawPoints(){let t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))}generatePoints(){super.generatePoints(),this.updateTotals()}getX(t,e,i,s){let o=this.center,r=this.radii?this.radii[i.index]||0:o[2]/2,n=s.dataLabelPosition,a=(null===n||void 0===n?void 0:n.distance)||0,l=Math.asin(c((t-o[1])/(r+a),-1,1));return o[0]+(e?-1:1)*(Math.cos(l)*(r+a))+(a>0?(e?-1:1)*(s.padding||0):0)}hasData(){return!!this.processedXData.length}redrawPoints(){let t,e,i,s,o=this,r=o.chart;this.drawEmpty(),o.group&&!r.styledMode&&o.group.shadow(o.options.shadow),o.points.forEach((function(n){let a={};e=n.graphic,!n.isNull&&e?(s=n.shapeArgs,t=n.getTranslate(),r.styledMode||(i=o.pointAttribs(n,n.selected&&"select")),n.delayedRendering?(e.setRadialReference(o.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}),n.delayedRendering=!1):(e.setRadialReference(o.center),r.styledMode||g(!0,a,i),g(!0,a,s,t),e.animate(a)),e.attr({visibility:n.visible?"inherit":"hidden"}),e.addClass(n.getClassName(),!0)):e&&(n.graphic=e.destroy())}))}sortByAngle(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))}translate(t){u(this,"translate"),this.generatePoints();let e,i,s,o,r,n,a,l=this.options,d=l.slicedOffset,c=h(l.startAngle,l.endAngle),p=this.startAngleRad=c.start,g=(this.endAngleRad=c.end)-p,f=this.points,m=l.ignoreHiddenPoint,x=f.length,b=0;for(t||(this.center=t=this.getCenter()),n=0;n1.5*Math.PI?s-=2*Math.PI:s<-Math.PI/2&&(s+=2*Math.PI),a.slicedTranslation={translateX:Math.round(Math.cos(s)*d),translateY:Math.round(Math.sin(s)*d)},o=Math.cos(s)*t[2]/2,r=Math.sin(s)*t[2]/2,a.tooltipPos=[t[0]+.7*o,t[1]+.7*r],a.half=s<-Math.PI/2||s>Math.PI/2?1:0,a.angle=s}u(this,"afterTranslate")}updateTotals(){let t,e,i=this.points,s=i.length,o=this.options.ignoreHiddenPoint,r=0;for(t=0;t0&&(e.visible||!o)?e.y/r*100:0,e.total=r}}return b.defaultOptions=g(r.defaultOptions,o),p(b.prototype,{axisTypes:[],directTouch:!0,drawGraph:void 0,drawTracker:e.prototype.drawTracker,getCenter:t.getCenter,getSymbol:d,isCartesian:!1,noSharedTooltip:!0,pointAttribs:e.prototype.pointAttribs,pointClass:s,requireSorting:!1,searchPoint:d,trackerGroups:["group","dataLabelsGroup"]}),n.registerSeriesType("pie",b),b})),i(e,"Series/Pie/PieDataLabel.js",[e["Core/Series/DataLabel.js"],e["Core/Globals.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Series/SeriesRegistry.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o){var r;let{composed:n,noop:a}=e,{distribute:l}=i,{series:h}=s,{arrayMax:d,clamp:c,defined:p,pick:u,pushUnique:g,relativeLength:f}=o;return function(e){let i={radialDistributionY:function(t,e){var i;return((null===(i=e.dataLabelPosition)||void 0===i?void 0:i.top)||0)+t.distributeBox.pos},radialDistributionX:function(t,e,i,s,o){let r=o.dataLabelPosition;return t.getX(i<((null===r||void 0===r?void 0:r.top)||0)+2||i>((null===r||void 0===r?void 0:r.bottom)||0)-2?s:i,e.half,e,o)},justify:function(t,e,i,s){var o;return s[0]+(t.half?-1:1)*(i+((null===(o=e.dataLabelPosition)||void 0===o?void 0:o.distance)||0))},alignToPlotEdges:function(t,e,i,s){let o=t.getBBox().width;return e?o+s:i-o-s},alignToConnectors:function(t,e,i,s){let o,r=0;return t.forEach((function(t){(o=t.dataLabel.getBBox().width)>r&&(r=o)})),e?r+s:i-r-s}};function s(t,e){let{center:i,options:s}=this,o=i[2]/2,r=t.angle||0,n=Math.cos(r),a=Math.sin(r),l=i[0]+n*o,h=i[1]+a*o,d=Math.min((s.slicedOffset||0)+(s.borderWidth||0),e/5);return{natural:{x:l+n*e,y:h+a*e},computed:{},alignment:e<0?"center":t.half?"right":"left",connectorPosition:{breakAt:{x:l+n*d,y:h+a*d},touchingSliceAt:{x:l,y:h}},distance:e}}function o(){var t;let e,i,s,o=this,r=o.points,n=o.chart,a=n.plotWidth,c=n.plotHeight,g=n.plotLeft,m=Math.round(n.chartWidth/3),x=o.center,b=x[2]/2,y=x[1],v=[[],[]],S=[0,0,0,0],k=o.dataLabelPositioners,A=0;o.visible&&(null===(t=o.hasDataLabels)||void 0===t?void 0:t.call(o))&&(r.forEach((t=>{(t.dataLabels||[]).forEach((t=>{t.shortened&&(t.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.shortened=!1)}))})),h.prototype.drawDataLabels.apply(o),r.forEach((t=>{(t.dataLabels||[]).forEach(((e,i)=>{var s;let o=x[2]/2,r=e.options,n=f((null===r||void 0===r?void 0:r.distance)||0,o);0===i&&v[t.half].push(t),!p(null===r||void 0===r||null===(s=r.style)||void 0===s?void 0:s.width)&&e.getBBox().width>m&&(e.css({width:Math.round(.7*m)+"px"}),e.shortened=!0),e.dataLabelPosition=this.getDataLabelPosition(t,n),A=Math.max(A,n)}))})),v.forEach(((t,e)=>{let r,h,d,f=t.length,m=[],v=0;f&&(o.sortByAngle(t,e-.5),A>0&&(r=Math.max(0,y-b-A),h=Math.min(y+b+A,n.plotHeight),t.forEach((t=>{(t.dataLabels||[]).forEach(((e,i)=>{var s;let o=e.dataLabelPosition;o&&o.distance>0&&(o.top=Math.max(0,y-b-o.distance),o.bottom=Math.min(y+b+o.distance,n.plotHeight),v=e.getBBox().height||21,t.distributeBox={target:((null===(s=e.dataLabelPosition)||void 0===s?void 0:s.natural.y)||0)-o.top+v/2,size:v,rank:t.y},m.push(t.distributeBox))}))})),l(m,d=h+v-r,d/5)),t.forEach((r=>{(r.dataLabels||[]).forEach((n=>{let l=n.options||{},h=r.distributeBox,d=n.dataLabelPosition,f=(null===d||void 0===d?void 0:d.natural.y)||0,y=l.connectorPadding||0,v=0,A=f,M="inherit";if(d){if(m&&p(h)&&d.distance>0&&(void 0===h.pos?M="hidden":(s=h.size,A=k.radialDistributionY(r,n))),l.justify)v=k.justify(r,n,b,x);else switch(l.alignTo){case"connectors":v=k.alignToConnectors(t,e,a,g);break;case"plotEdges":v=k.alignToPlotEdges(n,e,a,g);break;default:v=k.radialDistributionX(o,r,A,f,n)}if(d.attribs={visibility:M,align:d.alignment},d.posAttribs={x:v+(l.x||0)+({left:y,right:-y}[d.alignment]||0),y:A+(l.y||0)-n.getBBox().height/2},d.computed.x=v,d.computed.y=A,u(l.crop,!0)){let t;v-(i=n.getBBox().width)a-y&&0===e&&(t=Math.round(v+i-a+y),S[1]=Math.max(t,S[1])),A-s/2<0?S[0]=Math.max(Math.round(s/2-A),S[0]):A+s/2>c&&(S[2]=Math.max(Math.round(A+s/2-c),S[2])),d.sideOverflow=t}}}))})))})),(0===d(S)||this.verifyDataLabelOverflow(S))&&(this.placeDataLabels(),this.points.forEach((t=>{(t.dataLabels||[]).forEach((i=>{let{connectorColor:s,connectorWidth:r=1}=i.options||{},a=i.dataLabelPosition;if(r){var l;let h;e=i.connector,a&&a.distance>0?(h=!e,e||(i.connector=e=n.renderer.path().addClass("highcharts-data-label-connector highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(o.dataLabelsGroup)),n.styledMode||e.attr({"stroke-width":r,stroke:s||t.color||"#666666"}),e[h?"attr":"animate"]({d:t.getConnectorPath(i)}),e.attr({visibility:null===(l=a.attribs)||void 0===l?void 0:l.visibility})):e&&(i.connector=e.destroy())}}))}))))}function r(){this.points.forEach((t=>{(t.dataLabels||[]).forEach((t=>{var e;let i=t.dataLabelPosition;i?(i.sideOverflow&&(t.css({width:Math.max(t.getBBox().width-i.sideOverflow,0)+"px",textOverflow:((null===(e=t.options)||void 0===e?void 0:e.style)||{}).textOverflow||"ellipsis"}),t.shortened=!0),t.attr(i.attribs),t[t.moved?"animate":"attr"](i.posAttribs),t.moved=!0):t&&t.attr({y:-9999})})),delete t.distributeBox}),this)}function m(t){let e=this.center,i=this.options,s=i.center,o=i.minSize||80,r=o,n=null!==i.size;return!n&&(null!==s[0]?r=Math.max(e[2]-Math.max(t[1],t[3]),o):(r=Math.max(e[2]-t[1]-t[3],o),e[0]+=(t[3]-t[1])/2),null!==s[1]?r=c(r,o,e[2]-Math.max(t[0],t[2])):(r=c(r,o,e[2]-t[0]-t[2]),e[1]+=(t[0]-t[2])/2),r!(e.x>=t.x+t.width||e.x+e.width<=t.x||e.y>=t.y+t.height||e.y+e.height<=t.y),p=t=>{let e,i,s,o,n,a=t.box?0:t.padding||0,l=0,d=0;if(t&&(!t.alignAttr||t.placed))return e=t.alignAttr||{x:t.attr("x"),y:t.attr("y")},i=t.parentGroup,t.width||(s=t.getBBox(),t.width=s.width,t.height=s.height,l=h.fontMetrics(t.element).h),o=t.width-2*a,(n={left:"0",center:"0.5",right:"1"}[t.alignValue])?d=+n*o:r(t.x)&&Math.round(t.x)!==t.translateX&&(d=t.x-(t.translateX||0)),{x:e.x+(i.translateX||0)+a-(d||0),y:e.y+(i.translateY||0)+a-l,width:t.width-2*a,height:(t.height||0)-2*a}},u=!1;for(let o=0;o(e.labelrank||0)-(t.labelrank||0)));for(let o=0;o{n(t,(t=>{t.label&&e.push(t.label)}))}));for(let s of t.series||[]){var i;if(s.visible&&null!==(i=s.hasDataLabels)&&void 0!==i&&i.call(s)){let i=i=>{for(let s of i)s.visible&&(s.dataLabels||[]).forEach((i=>{var o,r;let n=i.options||{};i.labelrank=a(n.labelrank,s.labelrank,null===(o=s.shapeArgs)||void 0===o?void 0:o.height),(null!==(r=n.allowOverlap)&&void 0!==r?r:Number(n.distance)>0)?(i.oldOpacity=i.opacity,i.newOpacity=1,d(i,t)):e.push(i)}))};i(s.nodes||[]),i(s.points)}}this.hideOverlappingLabels(e)}return{compose:function t(e){l(i,t)&&(e.prototype.hideOverlappingLabels=h,s(e,"render",c))}}})),i(e,"Extensions/BorderRadius.js",[e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){let{defaultOptions:s}=t,{composed:o,noop:r}=e,{addEvent:n,extend:a,isObject:l,merge:h,pushUnique:d,relativeLength:c}=i,p={radius:0,scope:"stack",where:void 0},u=r,g=r;function f(t,e,i,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=u(t,e,i,s,o),{innerR:n=0,r:a=i,start:l=0,end:h=0}=o;if(o.open||!o.borderRadius)return r;let d=h-l,p=Math.sin(d/2),g=Math.max(Math.min(c(o.borderRadius||0,a-n),(a-n)/2,a*p/(1+p)),0),f=Math.min(g,d/Math.PI*2*n),m=r.length-1;for(;m--;)!function(t,e,i){let s,o,r,n=t[e],a=t[e+1];if("Z"===a[0]&&(a=t[0]),"M"!==n[0]&&"L"!==n[0]||"A"!==a[0]?"A"===n[0]&&("M"===a[0]||"L"===a[0])&&(s=a,o=n):(s=n,o=a,r=!0),s&&o&&o.params){let n=o[1],a=o[5],l=o.params,{start:h,end:d,cx:c,cy:p}=l,u=a?n-i:n+i,g=u?Math.asin(i/u):0,f=a?g:-g,m=Math.cos(g)*u;r?(l.start=h+f,s[1]=c+m*Math.cos(h),s[2]=p+m*Math.sin(h),t.splice(e+1,0,["A",i,i,0,0,1,c+n*Math.cos(l.start),p+n*Math.sin(l.start)])):(l.end=d-f,o[6]=c+n*Math.cos(l.end),o[7]=p+n*Math.sin(l.end),t.splice(e+1,0,["A",i,i,0,0,1,c+m*Math.cos(d),p+m*Math.sin(d)])),o[4]=Math.abs(l.end-l.start)1?f:g);return r}function m(){if(this.options.borderRadius&&(!this.chart.is3d||!this.chart.is3d())){var t;let{options:e,yAxis:i}=this,o="percent"===e.stacking,r=null===(t=s.plotOptions)||void 0===t||null===(t=t[this.type])||void 0===t?void 0:t.borderRadius,n=x(e.borderRadius,l(r)?r:{}),h=i.options.reversed;for(let t of this.points){let{shapeArgs:s}=t;if("roundedRect"===t.shapeType&&s){let{width:r=0,height:l=0,y:d=0}=s,p=d,u=l;if("stack"===n.scope&&t.stackTotal){let s=i.translate(o?100:t.stackTotal,!1,!0,!1,!0),r=i.translate(e.threshold||0,!1,!0,!1,!0),n=this.crispCol(0,Math.min(s,r),0,Math.abs(s-r));p=n.y,u=n.height}let g=(t.negative?-1:1)*(h?-1:1)==-1,f=n.where;!f&&this.is("waterfall")&&Math.abs((t.yBottom||0)-(this.translatedThreshold||0))>this.borderWidth&&(f="all"),f||(f="end");let m=Math.min(c(n.radius,r),r/2,"all"===f?l/2:1/0)||0;"end"===f&&(g&&(p-=m),u+=m),a(s,{brBoxHeight:u,brBoxY:p,r:m})}}}}function x(t,e){return l(t)||(t={radius:t||0}),h(p,e,t)}function b(){let t=x(this.options.borderRadius);for(let e of this.points){let i=e.shapeArgs;i&&(i.borderRadius=c(t.radius,(i.r||0)-(i.innerR||0)))}}function y(t,e,i,s){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},r=g(t,e,i,s,o),{r:n=0,brBoxHeight:a=s,brBoxY:l=e}=o,h=e-l,d=l+a-(e+s),c=h-n>-.1?0:n,p=d-n>-.1?0:n,u=Math.max(c&&h,0),f=Math.max(p&&d,0),m=[t+c,e],x=[t+i-c,e],b=[t+i,e+c],y=[t+i,e+s-p],v=[t+i-p,e+s],S=[t+p,e+s],k=[t,e+s-p],A=[t,e+c],M=(t,e)=>Math.sqrt(Math.pow(t,2)-Math.pow(e,2));if(u){let t=M(c,c-u);m[0]-=t,x[0]+=t,b[1]=A[1]=e+c-u}if(s=l(i.minWidth,0)&&this.chartHeight>=l(i.minHeight,0)}).call(this)&&e.push(t._id)}function i(t,e){let i,s=this.options.responsive,r=this.currentResponsive,l=[];!e&&s&&s.rules&&s.rules.forEach((t=>{void 0===t._id&&(t._id=d()),this.matchResponsiveRule(t,l)}),this);let h=a(...l.map((t=>n((s||{}).rules||[],(e=>e._id===t)))).map((t=>t&&t.chartOptions)));h.isResponsiveOptions=!0,l=l.toString()||void 0;let c=r&&r.ruleIds;l!==c&&(r&&this.update(r.undoOptions,t,!0),l?((i=o(h,this.options,!0,this.collectionsWithUpdate)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:l,mergedOptions:h,undoOptions:i},this.update(h,t,!0)):this.currentResponsive=void 0)}t.compose=function t(o){return h(s,t)&&r(o.prototype,{matchResponsiveRule:e,setResponsive:i}),o}}(i||(i={})),i})),i(e,"masters/highcharts.src.js",[e["Core/Globals.js"],e["Core/Utilities.js"],e["Core/Defaults.js"],e["Core/Animation/Fx.js"],e["Core/Animation/AnimationUtilities.js"],e["Core/Renderer/HTML/AST.js"],e["Core/Templating.js"],e["Core/Renderer/RendererUtilities.js"],e["Core/Renderer/SVG/SVGElement.js"],e["Core/Renderer/SVG/SVGRenderer.js"],e["Core/Renderer/HTML/HTMLElement.js"],e["Core/Renderer/HTML/HTMLRenderer.js"],e["Core/Axis/Axis.js"],e["Core/Axis/DateTimeAxis.js"],e["Core/Axis/LogarithmicAxis.js"],e["Core/Axis/PlotLineOrBand/PlotLineOrBand.js"],e["Core/Axis/Tick.js"],e["Core/Tooltip.js"],e["Core/Series/Point.js"],e["Core/Pointer.js"],e["Core/Legend/Legend.js"],e["Core/Chart/Chart.js"],e["Extensions/ScrollablePlotArea.js"],e["Core/Axis/Stacking/StackingAxis.js"],e["Core/Axis/Stacking/StackItem.js"],e["Core/Series/Series.js"],e["Core/Series/SeriesRegistry.js"],e["Series/Column/ColumnSeries.js"],e["Series/Column/ColumnDataLabel.js"],e["Series/Pie/PieSeries.js"],e["Series/Pie/PieDataLabel.js"],e["Core/Series/DataLabel.js"],e["Extensions/OverlappingDataLabels.js"],e["Extensions/BorderRadius.js"],e["Core/Responsive.js"],e["Core/Color/Color.js"],e["Core/Time.js"]],(function(t,e,i,s,o,r,n,a,l,h,d,c,p,u,g,f,m,x,b,y,v,S,k,A,M,C,T,w,P,L,E,O,D,j,B,I,R){return t.animate=o.animate,t.animObject=o.animObject,t.getDeferredAnimation=o.getDeferredAnimation,t.setAnimation=o.setAnimation,t.stop=o.stop,t.timers=s.timers,t.AST=r,t.Axis=p,t.Chart=S,t.chart=S.chart,t.Fx=s,t.Legend=v,t.PlotLineOrBand=f,t.Point=b,t.Pointer=y,t.Series=C,t.StackItem=M,t.SVGElement=l,t.SVGRenderer=h,t.Templating=n,t.Tick=m,t.Time=R,t.Tooltip=x,t.Color=I,t.color=I.parse,c.compose(h),d.compose(l),y.compose(S),v.compose(S),t.defaultOptions=i.defaultOptions,t.getOptions=i.getOptions,t.time=i.defaultTime,t.setOptions=i.setOptions,t.dateFormat=n.dateFormat,t.format=n.format,t.numberFormat=n.numberFormat,e.extend(t,e),t.distribute=a.distribute,t.seriesType=T.seriesType,P.compose(w),j.compose(C,L,l,h),O.compose(C),u.compose(p),g.compose(p),D.compose(S),E.compose(L),f.compose(p),B.compose(S),k.compose(p,S,C),A.compose(p,S,C),x.compose(y),t})),e["masters/highcharts.src.js"]._modules=e,e["masters/highcharts.src.js"]},t.exports?(r.default=r,t.exports=o&&o.document?r(o):r):void 0===(s=function(){return r(o)}.call(e,i,e,t))||(t.exports=s)},9027:(t,e,i)=>{var s,o,r;r=function(t){"use strict";var e=t?t._modules:{};function i(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i),"function"==typeof CustomEvent&&window.dispatchEvent(new CustomEvent("HighchartsModuleLoaded",{detail:{path:e,module:t[e]}})))}i(e,"Extensions/Boost/Boostables.js",[],(function(){return["area","areaspline","arearange","column","columnrange","bar","line","scatter","heatmap","bubble","treemap"]})),i(e,"Extensions/Boost/BoostableMap.js",[e["Extensions/Boost/Boostables.js"]],(function(t){let e={};return t.forEach((t=>{e[t]=!0})),e})),i(e,"Extensions/Boost/BoostChart.js",[e["Extensions/Boost/BoostableMap.js"],e["Core/Globals.js"],e["Core/Utilities.js"]],(function(t,e,i){let{composed:s}=e,{addEvent:o,pick:r,pushUnique:n}=i;function a(e){let i=e.series,s=e.boost=e.boost||{},o=e.options.boost||{},n=r(o.seriesThreshold,50);if(i.length>=n)return!0;if(1===i.length)return!1;let a=o.allowForce;if(void 0===a)for(let t of(a=!0,e.xAxis))if(r(t.min,-1/0)>r(t.dataMin,-1/0)||r(t.max,1/0)0)return t=e.length,!0})),t}(r.processedXData,l.data,r.points)>=(l.boostThreshold||Number.MAX_VALUE)&&++d);return s.forceChartBoost=a&&(h===i.length&&d===h||d>5),s.forceChartBoost}function l(t){function e(){t.boost&&t.boost.wgl&&a(t)&&t.boost.wgl.render(t)}o(t,"predraw",(function(){t.boost=t.boost||{},t.boost.forceChartBoost=void 0,t.boosted=!1,t.boost.clear&&t.boost.clear(),t.boost.canvas&&t.boost.wgl&&a(t)&&t.boost.wgl.allocateBuffer(t),t.boost.markerGroup&&t.xAxis&&t.xAxis.length>0&&t.yAxis&&t.yAxis.length>0&&t.boost.markerGroup.translate(t.xAxis[0].pos,t.yAxis[0].pos)})),o(t,"load",e,{order:-1}),o(t,"redraw",e);let i=-1,s=-1;o(t.pointer,"afterGetHoverData",(()=>{let e=t.hoverSeries;if(t.boost=t.boost||{},t.boost.markerGroup&&e){let o=t.inverted?e.yAxis:e.xAxis,r=t.inverted?e.xAxis:e.yAxis;(o&&o.pos!==i||r&&r.pos!==s)&&(t.boost.markerGroup.translate(o.pos,r.pos),i=o.pos,s=r.pos)}}))}return{compose:function t(e,i){return i&&n(s,t)&&e.prototype.callbacks.push(l),e},getBoostClipRect:function(t,e){let i={x:t.plotLeft,y:t.plotTop,width:t.plotWidth,height:t.navigator?t.navigator.top+t.navigator.height-t.plotTop:t.plotHeight};if(e.getClipBox){let{xAxis:s,yAxis:o}=e;if(i=e.getClipBox(),t.inverted){let t=i.width;i.width=i.height,i.height=t,i.x=o.pos,i.y=s.pos}else i.x=s.pos,i.y=o.pos}if(e===t){let e=t.inverted?t.xAxis:t.yAxis;e.length<=1&&(i.y=Math.min(e[0].pos,i.y),i.height=e[0].pos-t.plotTop+e[0].len)}return i},isChartSeriesBoosting:a}})),i(e,"Extensions/Boost/WGLDrawMode.js",[],(function(){return{area:"LINES",arearange:"LINES",areaspline:"LINES",column:"LINES",columnrange:"LINES",bar:"LINES",line:"LINE_STRIP",scatter:"POINTS",heatmap:"TRIANGLES",treemap:"TRIANGLES",bubble:"POINTS"}})),i(e,"Extensions/Boost/WGLShader.js",[e["Core/Utilities.js"]],(function(t){let{clamp:e,error:i,pick:s}=t;return class{constructor(t){this.errors=[],this.uLocations={},this.gl=t,!t||this.createShader()}bind(){this.gl&&this.shaderProgram&&this.gl.useProgram(this.shaderProgram)}createShader(){let t=this.stringToProgram("#version 100\n#define LN10 2.302585092994046\nprecision highp float;\nattribute vec4 aVertexPosition;\nattribute vec4 aColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform mat4 uPMatrix;\nuniform float pSize;\nuniform float translatedThreshold;\nuniform bool hasThreshold;\nuniform bool skipTranslation;\nuniform float xAxisTrans;\nuniform float xAxisMin;\nuniform float xAxisMinPad;\nuniform float xAxisPointRange;\nuniform float xAxisLen;\nuniform bool xAxisPostTranslate;\nuniform float xAxisOrdinalSlope;\nuniform float xAxisOrdinalOffset;\nuniform float xAxisPos;\nuniform bool xAxisCVSCoord;\nuniform bool xAxisIsLog;\nuniform bool xAxisReversed;\nuniform float yAxisTrans;\nuniform float yAxisMin;\nuniform float yAxisMinPad;\nuniform float yAxisPointRange;\nuniform float yAxisLen;\nuniform bool yAxisPostTranslate;\nuniform float yAxisOrdinalSlope;\nuniform float yAxisOrdinalOffset;\nuniform float yAxisPos;\nuniform bool yAxisCVSCoord;\nuniform bool yAxisIsLog;\nuniform bool yAxisReversed;\nuniform bool isBubble;\nuniform bool bubbleSizeByArea;\nuniform float bubbleZMin;\nuniform float bubbleZMax;\nuniform float bubbleZThreshold;\nuniform float bubbleMinSize;\nuniform float bubbleMaxSize;\nuniform bool bubbleSizeAbs;\nuniform bool isInverted;\nfloat bubbleRadius(){\nfloat value = aVertexPosition.w;\nfloat zMax = bubbleZMax;\nfloat zMin = bubbleZMin;\nfloat radius = 0.0;\nfloat pos = 0.0;\nfloat zRange = zMax - zMin;\nif (bubbleSizeAbs){\nvalue = value - bubbleZThreshold;\nzMax = max(zMax - bubbleZThreshold, zMin - bubbleZThreshold);\nzMin = 0.0;\n}\nif (value < zMin){\nradius = bubbleZMin / 2.0 - 1.0;\n} else {\npos = zRange > 0.0 ? (value - zMin) / zRange : 0.5;\nif (bubbleSizeByArea && pos > 0.0){\npos = sqrt(pos);\n}\nradius = ceil(bubbleMinSize + pos * (bubbleMaxSize - bubbleMinSize)) / 2.0;\n}\nreturn radius * 2.0;\n}\nfloat translate(float val,\nfloat pointPlacement,\nfloat localA,\nfloat localMin,\nfloat minPixelPadding,\nfloat pointRange,\nfloat len,\nbool cvsCoord,\nbool isLog,\nbool reversed\n){\nfloat sign = 1.0;\nfloat cvsOffset = 0.0;\nif (cvsCoord) {\nsign *= -1.0;\ncvsOffset = len;\n}\nif (isLog) {\nval = log(val) / LN10;\n}\nif (reversed) {\nsign *= -1.0;\ncvsOffset -= sign * len;\n}\nreturn sign * (val - localMin) * localA + cvsOffset + \n(sign * minPixelPadding);\n}\nfloat xToPixels(float value) {\nif (skipTranslation){\nreturn value;// + xAxisPos;\n}\nreturn translate(value, 0.0, xAxisTrans, xAxisMin, xAxisMinPad, xAxisPointRange, xAxisLen, xAxisCVSCoord, xAxisIsLog, xAxisReversed);// + xAxisPos;\n}\nfloat yToPixels(float value, float checkTreshold) {\nfloat v;\nif (skipTranslation){\nv = value;// + yAxisPos;\n} else {\nv = translate(value, 0.0, yAxisTrans, yAxisMin, yAxisMinPad, yAxisPointRange, yAxisLen, yAxisCVSCoord, yAxisIsLog, yAxisReversed);// + yAxisPos;\nif (v > yAxisLen) {\nv = yAxisLen;\n}\n}\nif (checkTreshold > 0.0 && hasThreshold) {\nv = min(v, translatedThreshold);\n}\nreturn v;\n}\nvoid main(void) {\nif (isBubble){\ngl_PointSize = bubbleRadius();\n} else {\ngl_PointSize = pSize;\n}\nvColor = aColor;\nif (skipTranslation && isInverted) {\ngl_Position = uPMatrix * vec4(aVertexPosition.y + yAxisPos, aVertexPosition.x + xAxisPos, 0.0, 1.0);\n} else if (isInverted) {\ngl_Position = uPMatrix * vec4(yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, xToPixels(aVertexPosition.x) + xAxisPos, 0.0, 1.0);\n} else {\ngl_Position = uPMatrix * vec4(xToPixels(aVertexPosition.x) + xAxisPos, yToPixels(aVertexPosition.y, aVertexPosition.z) + yAxisPos, 0.0, 1.0);\n}\n}","vertex"),e=this.stringToProgram("precision highp float;\nuniform vec4 fillColor;\nvarying highp vec2 position;\nvarying highp vec4 vColor;\nuniform sampler2D uSampler;\nuniform bool isCircle;\nuniform bool hasColor;\nvoid main(void) {\nvec4 col = fillColor;\nvec4 tcol = texture2D(uSampler, gl_PointCoord.st);\nif (hasColor) {\ncol = vColor;\n}\nif (isCircle) {\ncol *= tcol;\nif (tcol.r < 0.0) {\ndiscard;\n} else {\ngl_FragColor = col;\n}\n} else {\ngl_FragColor = col;\n}\n}","fragment"),i=t=>this.gl.getUniformLocation(this.shaderProgram,t);return t&&e?(this.shaderProgram=this.gl.createProgram(),this.gl.attachShader(this.shaderProgram,t),this.gl.attachShader(this.shaderProgram,e),this.gl.linkProgram(this.shaderProgram),this.gl.getProgramParameter(this.shaderProgram,this.gl.LINK_STATUS)?(this.gl.useProgram(this.shaderProgram),this.gl.bindAttribLocation(this.shaderProgram,0,"aVertexPosition"),this.pUniform=i("uPMatrix"),this.psUniform=i("pSize"),this.fcUniform=i("fillColor"),this.isBubbleUniform=i("isBubble"),this.bubbleSizeAbsUniform=i("bubbleSizeAbs"),this.bubbleSizeAreaUniform=i("bubbleSizeByArea"),this.uSamplerUniform=i("uSampler"),this.skipTranslationUniform=i("skipTranslation"),this.isCircleUniform=i("isCircle"),this.isInverted=i("isInverted"),!0):(this.errors.push(this.gl.getProgramInfoLog(this.shaderProgram)),this.handleErrors(),this.shaderProgram=!1,!1)):(this.shaderProgram=!1,this.handleErrors(),!1)}handleErrors(){this.errors.length&&i("[highcharts boost] shader error - "+this.errors.join("\n"))}stringToProgram(t,e){let i=this.gl.createShader("vertex"===e?this.gl.VERTEX_SHADER:this.gl.FRAGMENT_SHADER);return this.gl.shaderSource(i,t),this.gl.compileShader(i),this.gl.getShaderParameter(i,this.gl.COMPILE_STATUS)?i:(this.errors.push("when compiling "+e+" shader:\n"+this.gl.getShaderInfoLog(i)),!1)}destroy(){this.gl&&this.shaderProgram&&(this.gl.deleteProgram(this.shaderProgram),this.shaderProgram=!1)}fillColorUniform(){return this.fcUniform}getProgram(){return this.shaderProgram}pointSizeUniform(){return this.psUniform}perspectiveUniform(){return this.pUniform}reset(){this.gl&&this.shaderProgram&&(this.gl.uniform1i(this.isBubbleUniform,0),this.gl.uniform1i(this.isCircleUniform,0))}setBubbleUniforms(t,i,o){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=t.options,a=Number.MAX_VALUE,l=-Number.MAX_VALUE;if(this.gl&&this.shaderProgram&&t.is("bubble")){let h=t.getPxExtremes();a=s(n.zMin,e(i,!1===n.displayNegative?n.zThreshold:-Number.MAX_VALUE,a)),l=s(n.zMax,Math.max(l,o)),this.gl.uniform1i(this.isBubbleUniform,1),this.gl.uniform1i(this.isCircleUniform,1),this.gl.uniform1i(this.bubbleSizeAreaUniform,"width"!==t.options.sizeBy),this.gl.uniform1i(this.bubbleSizeAbsUniform,t.options.sizeByAbsoluteValue),this.setUniform("bubbleMinSize",h.minPxSize*r),this.setUniform("bubbleMaxSize",h.maxPxSize*r),this.setUniform("bubbleZMin",a),this.setUniform("bubbleZMax",l),this.setUniform("bubbleZThreshold",t.options.zThreshold)}}setColor(t){this.gl&&this.shaderProgram&&this.gl.uniform4f(this.fcUniform,t[0]/255,t[1]/255,t[2]/255,t[3])}setDrawAsCircle(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isCircleUniform,t?1:0)}setInverted(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.isInverted,t)}setPMatrix(t){this.gl&&this.shaderProgram&&this.gl.uniformMatrix4fv(this.pUniform,!1,t)}setPointSize(t){this.gl&&this.shaderProgram&&this.gl.uniform1f(this.psUniform,t)}setSkipTranslation(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.skipTranslationUniform,!0===t?1:0)}setTexture(t){this.gl&&this.shaderProgram&&this.gl.uniform1i(this.uSamplerUniform,t)}setUniform(t,e){if(this.gl&&this.shaderProgram){let i=this.uLocations[t]=this.uLocations[t]||this.gl.getUniformLocation(this.shaderProgram,t);this.gl.uniform1f(i,e)}}}})),i(e,"Extensions/Boost/WGLVertexBuffer.js",[],(function(){return class{constructor(t,e,i){this.buffer=!1,this.iterator=0,this.preAllocated=!1,this.vertAttribute=!1,this.components=i||2,this.dataComponents=i,this.gl=t,this.shader=e}allocate(t){this.iterator=-1,this.preAllocated=new Float32Array(4*t)}bind(){if(!this.buffer)return!1;this.gl.vertexAttribPointer(this.vertAttribute,this.components,this.gl.FLOAT,!1,0,0)}build(t,e,i){let s;return this.data=t||[],this.data&&0!==this.data.length||this.preAllocated?(this.components=i||this.components,this.buffer&&this.gl.deleteBuffer(this.buffer),this.preAllocated||(s=new Float32Array(this.data)),this.buffer=this.gl.createBuffer(),this.gl.bindBuffer(this.gl.ARRAY_BUFFER,this.buffer),this.gl.bufferData(this.gl.ARRAY_BUFFER,this.preAllocated||s,this.gl.STATIC_DRAW),this.vertAttribute=this.gl.getAttribLocation(this.shader.getProgram(),e),this.gl.enableVertexAttribArray(this.vertAttribute),s=!1,!0):(this.destroy(),!1)}destroy(){this.buffer&&(this.gl.deleteBuffer(this.buffer),this.buffer=!1,this.vertAttribute=!1),this.iterator=0,this.components=this.dataComponents||2,this.data=[]}push(t,e,i,s){this.preAllocated&&(this.preAllocated[++this.iterator]=t,this.preAllocated[++this.iterator]=e,this.preAllocated[++this.iterator]=i,this.preAllocated[++this.iterator]=s)}render(t,e,i){let s=this.preAllocated?this.preAllocated.length:this.data.length;return!!this.buffer&&!!s&&((!t||t>s||t<0)&&(t=0),(!e||e>s)&&(e=s),!(t>=e)&&(i=i||"POINTS",this.gl.drawArrays(this.gl[i],t/this.components,(e-t)/this.components),!0))}}})),i(e,"Extensions/Boost/WGLRenderer.js",[e["Core/Color/Color.js"],e["Core/Globals.js"],e["Core/Utilities.js"],e["Extensions/Boost/WGLDrawMode.js"],e["Extensions/Boost/WGLShader.js"],e["Extensions/Boost/WGLVertexBuffer.js"]],(function(t,e,i,s,o,r){let{parse:n}=t,{doc:a,win:l}=e,{isNumber:h,isObject:d,merge:c,objectEach:p,pick:u}=i,g={column:!0,columnrange:!0,bar:!0,area:!0,areaspline:!0,arearange:!0},f={scatter:!0,bubble:!0},m=["webgl","experimental-webgl","moz-webgl","webkit-3d"];class x{static orthoMatrix(t,e){return[2/t,0,0,0,0,-2/e,0,0,0,0,-2,0,-1,1,-1,1]}static seriesPointCount(t){let e,i,s;return t.boosted?(e=!!t.options.stacking,i=t.xData||t.options.xData||t.processedXData,s=(e?t.data:i||t.options.data).length,"treemap"===t.type?s*=12:"heatmap"===t.type?s*=6:g[t.type]&&(s*=2),s):0}constructor(t){this.data=[],this.height=0,this.isInited=!1,this.markerData=[],this.series=[],this.textureHandles={},this.width=0,this.postRenderCallback=t,this.settings={pointSize:1,lineWidth:1,fillColor:"#AA00AA",useAlpha:!0,usePreallocated:!1,useGPUTranslations:!1,debug:{timeRendering:!1,timeSeriesProcessing:!1,timeSetup:!1,timeBufferCopy:!1,timeKDTree:!1,showSkipSummary:!1}}}getPixelRatio(){return this.settings.pixelRatio||l.devicePixelRatio||1}setOptions(t){"pixelRatio"in t||(t.pixelRatio=1),c(!0,this.settings,t)}allocateBuffer(t){let e=this.vbuffer,i=0;this.settings.usePreallocated&&(t.series.forEach((t=>{t.boosted&&(i+=x.seriesPointCount(t))})),e&&e.allocate(i))}allocateBufferForSingleSeries(t){let e=this.vbuffer,i=0;this.settings.usePreallocated&&(t.boosted&&(i=x.seriesPointCount(t)),e&&e.allocate(i))}clear(){let t=this.gl;t&&t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT)}pushSeriesData(t,e){let i,s,o,r,a,l,h,c,p=this.data,u=this.settings,f=this.vbuffer,m=t.pointArrayMap&&"low,high"===t.pointArrayMap.join(","),{chart:x,options:b,sorted:y,xAxis:v,yAxis:S}=t,k=!!b.stacking,A=b.data,M=t.xAxis.getExtremes(),C=M.min-(t.xAxis.minPointOffset||0),T=M.max+(t.xAxis.minPointOffset||0),w=t.yAxis.getExtremes(),P=w.min-(t.yAxis.minPointOffset||0),L=w.max+(t.yAxis.minPointOffset||0),E=t.xData||b.xData||t.processedXData,O=t.yData||b.yData||t.processedYData,D=t.zData||b.zData||t.processedZData,j=!E||0===E.length,B=b.connectNulls,I=t.points||!1,R=k?t.data:E||A,z={x:Number.MAX_VALUE,y:0},N={x:-Number.MAX_VALUE,y:0},G=void 0===x.index,U=g[t.type],W=b.zoneAxis||"y",X=b.zones||!1,H=b.threshold,F=this.getPixelRatio(),Y=t.chart.plotWidth,V=!1,_=!1,q=0,Z=!1,K=-1,$=!1,J=!1,Q=!1,tt=!1,et=!1,it=!1,st=!0,ot=!0,rt=!1,nt=!1,at=0;if(b.boostData&&b.boostData.length>0)return;if(b.gapSize&&(nt="value"!==b.gapUnit?b.gapSize*t.closestPointRange:b.gapSize),X&&(c=[],X.forEach(((t,e)=>{if(t.color){let i=n(t.color).rgba;i[0]/=255,i[1]/=255,i[2]/=255,c[e]=i,rt||void 0!==t.value||(rt=i)}})),!rt)){let e=t.pointAttribs&&t.pointAttribs().fill||t.color;rt=n(e).rgba,rt[0]/=255,rt[1]/=255,rt[2]/=255}x.inverted&&(Y=t.chart.plotHeight),t.closestPointRangePx=Number.MAX_VALUE;let lt=t=>{t&&(e.colorData.push(t[0]),e.colorData.push(t[1]),e.colorData.push(t[2]),e.colorData.push(t[3]))},ht=function(t,i,s){let o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;lt(arguments.length>4?arguments[4]:void 0),1!==F&&(!u.useGPUTranslations||e.skipTranslation)&&(t*=F,i*=F,o*=F),u.usePreallocated&&f?(f.push(t,i,s?1:0,o),at+=4):(p.push(t),p.push(i),p.push(s?F:0),p.push(o))},dt=()=>{e.segments.length&&(e.segments[e.segments.length-1].to=p.length||at)},ct=()=>{e.segments.length&&e.segments[e.segments.length-1].from===(p.length||at)||(dt(),e.segments.push({from:p.length||at}))},pt=(t,e,i,s,o)=>{lt(o),ht(t+i,e),lt(o),ht(t,e),lt(o),ht(t,e+s),lt(o),ht(t,e+s),lt(o),ht(t+i,e+s),lt(o),ht(t+i,e)};if(ct(),I&&I.length>0)return e.skipTranslation=!0,e.drawMode="TRIANGLES",I[0].node&&I[0].node.levelDynamic&&I.sort(((t,e)=>{if(t.node){if(t.node.levelDynamic>e.node.levelDynamic)return 1;if(t.node.levelDynamic{let i,o,r=e.plotY;if(void 0!==r&&!isNaN(r)&&null!==e.y&&e.shapeArgs){let{x:r=0,y:a=0,width:l=0,height:h=0}=e.shapeArgs;i=(o=x.styledMode?e.series.colorAttribs(e):o=e.series.pointAttribs(e))["stroke-width"]||0,et=n(o.fill).rgba,et[0]/=255,et[1]/=255,et[2]/=255,t.is("treemap")&&(i=i||1,s=n(o.stroke).rgba,s[0]/=255,s[1]/=255,s[2]/=255,pt(r,a,l,h,s),i/=2),t.is("heatmap")&&x.inverted&&(r=v.len-r,a=S.len-a,l=-l,h=-h),pt(r+i,a+i,l-2*i,h-2*i,et)}})),void dt();for(;K=3&&(l=a[2],a[2]>e.zMax&&(e.zMax=a[2]),a[2]e.zMax&&(e.zMax=D[K]),D[K]=C&&J<=T&&(Q=!0),$&&$>=C&&$<=T&&(tt=!0),m?(j&&(r=a.slice(1,3)),h=r[0],r=r[1]):k&&(o=a.x,h=(r=a.stackY)-a.y),null!=P&&null!=L&&(st=r>=P&&r<=L),o>T&&N.xC&&(z.x=o,z.y=r),null!==r||!B){if(null===r||!st&&!Q&&!tt){ct();continue}if(y&&(J>=C||o>=C)&&($<=T||o<=T)&&(it=!0),it||Q||tt){if(nt&&o-$>nt&&ct(),X){let t;X.some(((e,i)=>{let s=X[i-1];return"x"===W?void 0!==e.value&&o<=e.value&&(c[i]&&(!s||o>=s.value)&&(t=c[i]),!0):void 0!==e.value&&r<=e.value&&(c[i]&&(!s||r>=s.value)&&(t=c[i]),!0)})),et=t||rt||et}if(u.useGPUTranslations||(e.skipTranslation=!0,o=v.toPixels(o,!0),r=S.toPixels(r,!0),!(o>Y)||"POINTS"!==e.drawMode)){if(e.hasMarkers&&it&&!1!==V&&(t.closestPointRangePx=Math.min(t.closestPointRangePx,Math.abs(o-V))),!u.useGPUTranslations&&!u.usePreallocated&&V&&1>Math.abs(o-V)&&_&&1>Math.abs(r-_)){u.debug.showSkipSummary&&++q;continue}U&&(i=h,(!1===h||void 0===h)&&(i=r<0?r:0),(m||k)&&!S.logarithmic||(i=Math.max(null===H?P:H,P)),u.useGPUTranslations||(i=S.toPixels(i,!0)),ht(o,i,0,0,et)),b.step&&!ot&&ht(o,_,0,2,et),ht(o,r,0,"bubble"===t.type?l||1:2,et),V=o,_=r,Z=!0,ot=!1}}}}else ct()}u.debug.showSkipSummary&&console.log("skipped points:",q);let ut=(t,i)=>{u.useGPUTranslations||(e.skipTranslation=!0,t.x=v.toPixels(t.x,!0),t.y=S.toPixels(t.y,!0)),i?this.data=[t.x,t.y,0,2].concat(this.data):ht(t.x,t.y,0,2)};!Z&&!1!==B&&"line_strip"===t.drawMode&&(z.x-Number.MAX_VALUE&&ut(N)),dt()}pushSeries(t){let e=this.markerData,i=this.series,o=this.settings;i.length>0&&i[i.length-1].hasMarkers&&(i[i.length-1].markerTo=e.length),o.debug.timeSeriesProcessing&&console.time("building "+t.type+" series");let r={segments:[],markerFrom:e.length,colorData:[],series:t,zMin:Number.MAX_VALUE,zMax:-Number.MAX_VALUE,hasMarkers:!!t.options.marker&&!1!==t.options.marker.enabled,showMarkers:!0,drawMode:s[t.type]||"LINE_STRIP"};t.index>=i.length?i.push(r):i[t.index]=r,this.pushSeriesData(t,r),o.debug.timeSeriesProcessing&&console.timeEnd("building "+t.type+" series")}flush(){let t=this.vbuffer;this.data=[],this.markerData=[],this.series=[],t&&t.destroy()}setXAxis(t){let e=this.shader;if(!e)return;let i=this.getPixelRatio();e.setUniform("xAxisTrans",t.transA*i),e.setUniform("xAxisMin",t.min),e.setUniform("xAxisMinPad",t.minPixelPadding*i),e.setUniform("xAxisPointRange",t.pointRange),e.setUniform("xAxisLen",t.len*i),e.setUniform("xAxisPos",t.pos*i),e.setUniform("xAxisCVSCoord",!t.horiz),e.setUniform("xAxisIsLog",!!t.logarithmic),e.setUniform("xAxisReversed",!!t.reversed)}setYAxis(t){let e=this.shader;if(!e)return;let i=this.getPixelRatio();e.setUniform("yAxisTrans",t.transA*i),e.setUniform("yAxisMin",t.min),e.setUniform("yAxisMinPad",t.minPixelPadding*i),e.setUniform("yAxisPointRange",t.pointRange),e.setUniform("yAxisLen",t.len*i),e.setUniform("yAxisPos",t.pos*i),e.setUniform("yAxisCVSCoord",!t.horiz),e.setUniform("yAxisIsLog",!!t.logarithmic),e.setUniform("yAxisReversed",!!t.reversed)}setThreshold(t,e){let i=this.shader;i&&(i.setUniform("hasThreshold",t),i.setUniform("translatedThreshold",e))}renderChart(i){let s=this.gl,o=this.settings,a=this.shader,l=this.vbuffer,d=this.getPixelRatio();if(!i)return!1;this.width=i.chartWidth*d,this.height=i.chartHeight*d;let c=this.height,p=this.width;if(!s||!a||!p||!c)return!1;o.debug.timeRendering&&console.time("gl rendering"),s.canvas.width=p,s.canvas.height=c,a.bind(),s.viewport(0,0,p,c),a.setPMatrix(x.orthoMatrix(p,c)),o.lineWidth>1&&!e.isMS&&s.lineWidth(o.lineWidth),l&&(l.build(this.data,"aVertexPosition",4),l.bind()),a.setInverted(i.inverted),this.series.forEach(((e,c)=>{let p,g,m,x=e.series.options,b=x.marker,y=void 0!==x.lineWidth?x.lineWidth:1,v=x.threshold,S=h(v),k=e.series.yAxis.getThreshold(v),A=u(x.marker?x.marker.enabled:null,!!e.series.xAxis.isRadial||null,e.series.closestPointRangePx>2*((x.marker?x.marker.radius:10)||10)),M=this.textureHandles[b&&b.symbol||e.series.symbol]||this.textureHandles.circle,C=[];if(0!==e.segments.length&&e.segments[0].from!==e.segments[0].to&&(M.isReady&&(s.bindTexture(s.TEXTURE_2D,M.handle),a.setTexture(M.handle)),i.styledMode?m=e.series.markerGroup&&e.series.markerGroup.getStyle("fill"):(m="POINTS"===e.drawMode&&e.series.pointAttribs&&e.series.pointAttribs().fill||e.series.color,x.colorByPoint&&(m=e.series.chart.options.colors[c])),e.series.fillOpacity&&x.fillOpacity&&(m=new t(m).setOpacity(u(x.fillOpacity,1)).get()),C=n(m).rgba,o.useAlpha||(C[3]=1),"LINES"===e.drawMode&&o.useAlpha&&C[3]<1&&(C[3]/=10),"add"===x.boostBlending?(s.blendFunc(s.SRC_ALPHA,s.ONE),s.blendEquation(s.FUNC_ADD)):"mult"===x.boostBlending||"multiply"===x.boostBlending?s.blendFunc(s.DST_COLOR,s.ZERO):"darken"===x.boostBlending?(s.blendFunc(s.ONE,s.ONE),s.blendEquation(s.FUNC_MIN)):s.blendFuncSeparate(s.SRC_ALPHA,s.ONE_MINUS_SRC_ALPHA,s.ONE,s.ONE_MINUS_SRC_ALPHA),a.reset(),e.colorData.length>0?(a.setUniform("hasColor",1),(g=new r(s,a)).build(Array(e.segments[0].from).concat(e.colorData),"aColor",4),g.bind()):(a.setUniform("hasColor",0),s.disableVertexAttribArray(s.getAttribLocation(a.getProgram(),"aColor"))),a.setColor(C),this.setXAxis(e.series.xAxis),this.setYAxis(e.series.yAxis),this.setThreshold(S,k),"POINTS"===e.drawMode&&a.setPointSize(2*u(x.marker&&x.marker.radius,.5)*d),a.setSkipTranslation(e.skipTranslation),"bubble"===e.series.type&&a.setBubbleUniforms(e.series,e.zMin,e.zMax,d),a.setDrawAsCircle(f[e.series.type]||!1),l)){if(y>0||"LINE_STRIP"!==e.drawMode)for(p=0;p{this.render(t)}),1)}setSize(t,e){let i=this.shader;i&&(this.width!==t||this.height!==e)&&(this.width=t,this.height=e,i.bind(),i.setPMatrix(x.orthoMatrix(t,e)))}init(t,e){let i=this.settings;if(this.isInited=!1,!t)return!1;i.debug.timeSetup&&console.time("gl setup");for(let o=0;o{let i={isReady:!1,texture:a.createElement("canvas"),handle:s.createTexture()},o=i.texture.getContext("2d");this.textureHandles[t]=i,i.texture.width=512,i.texture.height=512,o.mozImageSmoothingEnabled=!1,o.webkitImageSmoothingEnabled=!1,o.msImageSmoothingEnabled=!1,o.imageSmoothingEnabled=!1,o.strokeStyle="rgba(255, 255, 255, 0)",o.fillStyle="#FFF",e(o);try{s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,i.handle),s.texImage2D(s.TEXTURE_2D,0,s.RGBA,s.RGBA,s.UNSIGNED_BYTE,i.texture),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_S,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_WRAP_T,s.CLAMP_TO_EDGE),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MAG_FILTER,s.LINEAR),s.texParameteri(s.TEXTURE_2D,s.TEXTURE_MIN_FILTER,s.LINEAR),s.bindTexture(s.TEXTURE_2D,null),i.isReady=!0}catch(t){}};return l("circle",(t=>{t.beginPath(),t.arc(256,256,256,0,2*Math.PI),t.stroke(),t.fill()})),l("square",(t=>{t.fillRect(0,0,512,512)})),l("diamond",(t=>{t.beginPath(),t.moveTo(256,0),t.lineTo(512,256),t.lineTo(256,512),t.lineTo(0,256),t.lineTo(256,0),t.fill()})),l("triangle",(t=>{t.beginPath(),t.moveTo(0,512),t.lineTo(256,0),t.lineTo(512,512),t.lineTo(0,512),t.fill()})),l("triangle-down",(t=>{t.beginPath(),t.moveTo(0,0),t.lineTo(256,512),t.lineTo(512,0),t.lineTo(0,0),t.fill()})),this.isInited=!0,i.debug.timeSetup&&console.timeEnd("gl setup"),!0}destroy(){let t=this.gl,e=this.shader,i=this.vbuffer;this.flush(),i&&i.destroy(),e&&e.destroy(),t&&(p(this.textureHandles,(e=>{e.handle&&t.deleteTexture(e.handle)})),t.canvas.width=1,t.canvas.height=1)}}return x})),i(e,"Extensions/Boost/BoostSeries.js",[e["Extensions/Boost/BoostableMap.js"],e["Extensions/Boost/Boostables.js"],e["Extensions/Boost/BoostChart.js"],e["Core/Defaults.js"],e["Core/Globals.js"],e["Core/Utilities.js"],e["Extensions/Boost/WGLRenderer.js"]],(function(t,e,i,s,o,r,n){let a,l,{getBoostClipRect:h,isChartSeriesBoosting:d}=i,{getOptions:c}=s,{composed:p,doc:u,noop:g,win:f}=o,{addEvent:m,destroyObjectProperties:x,error:b,extend:y,fireEvent:v,isArray:S,isNumber:k,pick:A,pushUnique:M,wrap:C,defined:T}=r;function w(t,e){let i=e.boost;t&&i&&i.target&&i.canvas&&!d(e.chart)&&t.allocateBufferForSingleSeries(e)}function P(t){return A(t&&t.options&&t.options.boost&&t.options.boost.enabled,!0)}function L(t,e){let i=t.constructor,s=t.seriesGroup||e.group,o=t.chartWidth,r=t.chartHeight,a=t,c="undefined"!=typeof SVGForeignObjectElement;a=d(t)?t:e;let p=a.boost=a.boost||{};return c=!1,l||(l=u.createElement("canvas")),!p.target&&(p.canvas=l,t.renderer.forExport,a.renderTarget=p.target=t.renderer.image("",0,0,o,r).addClass("highcharts-boost-canvas").add(s),p.clear=function(){p.target.attr({href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="})},p.copy=function(){p.resize(),p.target.attr({href:p.canvas.toDataURL("image/png")})},p.resize=function(){o=t.chartWidth,r=t.chartHeight,(p.targetFo||p.target).attr({x:0,y:0,width:o,height:r}).css({pointerEvents:"none",mixedBlendMode:"normal",opacity:1}),a instanceof i&&a.boost.markerGroup.translate(t.plotLeft,t.plotTop)},p.clipRect=t.renderer.clipRect(),(p.targetFo||p.target).attr({zIndex:e.options.zIndex}).clip(p.clipRect),a instanceof i&&(a.boost.markerGroup=a.renderer.g().add(s).translate(e.xAxis.pos,e.yAxis.pos))),p.canvas.width=o,p.canvas.height=r,p.clipRect&&p.clipRect.attr(h(t,a)),p.resize(),p.clear(),!p.wgl&&(p.wgl=new n((t=>{t.settings.debug.timeBufferCopy&&console.time("buffer copy"),p.copy(),t.settings.debug.timeBufferCopy&&console.timeEnd("buffer copy")})),p.wgl.init(p.canvas)||b("[highcharts boost] - unable to init WebGL renderer"),p.wgl.setOptions(t.options.boost||{}),a instanceof i&&p.wgl.allocateBuffer(t)),p.wgl.setSize(o,r),p.wgl}function E(t){let e=t.points;if(e){let t,i;for(i=0;i{let i=t[e];i&&(t[e]=i.destroy())})),t.zones.forEach(x)}function O(t,e,i,s,o,r){let n=(o=o||0)+(s=s||3e3),a=!0;for(;a&&o(i.boostThreshold||Number.MAX_VALUE)&&k(r.min)&&k(r.max)&&(!e||k(o.min)&&k(o.max))&&(!n||k(n.min)&&k(n.max))}let j=(t,e)=>!t.forceCrop&&(d(t.chart)||(e?e.length:0)>=(t.options.boostThreshold||Number.MAX_VALUE));function B(){let t=this,e=t.chart;e.boost&&e.boost.markerGroup===t.markerGroup&&(t.markerGroup=null),e.hoverPoints&&(e.hoverPoints=e.hoverPoints.filter((function(e){return e.series===t}))),e.hoverPoint&&e.hoverPoint.series===t&&(e.hoverPoint=null)}function I(){let t=this.boost;t&&t.canvas&&t.target&&(t.wgl&&t.wgl.clear(),t.clear&&t.clear())}function R(t){let e=t.boost;e&&e.canvas&&e.target&&e.wgl&&!d(t.chart)&&e.wgl.render(t.chart)}function z(t,e){let i=t.options,s=t.xAxis,o=t.pointClass;if(e instanceof o)return e;let r=t.xData||i.xData||t.processedXData||!1,n=new o(t,(t.options.data||[])[e.i],r?r[e.i]:void 0);return n.category=A(s.categories?s.categories[n.x]:n.x,n.x),n.dist=e.dist,n.distX=e.distX,n.plotX=e.plotX,n.plotY=e.plotY,n.index=e.i,n.percentage=e.percentage,n.isInside=t.isPointInside(n),n}function N(t){var e,i,s,o,r,n;let{options:a,xAxis:l,yAxis:h}=this;if(!this.isDirty&&!l.isDirty&&!h.isDirty&&!t)return!1;this.yAxis.setTickInterval();let d=a.boostThreshold||0,c=a.cropThreshold,p=a.data||this.data,u=this.xData,g=l.getExtremes(),f=g.max,m=g.min,x=this.yData,b=h.getExtremes(),y=b.max,v=b.min;if(!this.boosted&&l.old&&h.old&&m>=(null!==(e=l.old.min)&&void 0!==e?e:-Number.MAX_VALUE)&&f<=(null!==(i=l.old.max)&&void 0!==i?i:Number.MAX_VALUE)&&v>=(null!==(s=h.old.min)&&void 0!==s?s:-Number.MAX_VALUE)&&y<=(null!==(o=h.old.max)&&void 0!==o?o:Number.MAX_VALUE))return null!==(r=this.processedXData)&&void 0!==r||(this.processedXData=u),null!==(n=this.processedYData)&&void 0!==n||(this.processedYData=x),!0;if(!d||p.length=m&&S<=f&&k>=v&&k<=y?(A.push({x:S,y:k}),M.push(S),C.push(k)):T=!0;return this.cropped=T,this.cropStart=0,this.processedXData=M,this.processedYData=C,j(this,M)||(this.processedData=A),!0}function G(){let t,e,i,s,o,r=this.options||{},n=this.chart,l=this.xAxis,h=this.yAxis,c=r.xData||this.processedXData,p=r.yData||this.processedYData,u=this.processedData||r.data,f=l.getExtremes(),m=f.min-(l.minPointOffset||0),x=f.max+(l.minPointOffset||0),b=h.getExtremes(),y=b.min-(h.minPointOffset||0),S=b.max+(h.minPointOffset||0),k={},A=!!this.sampling,M=r.enableMouseTracking,C=r.threshold,P=this.pointArrayMap&&"low,high"===this.pointArrayMap.join(","),D=!!r.stacking,j=this.cropStart||0,B=this.requireSorting,I=!c,z="x"===r.findNearestPointBy,N=this.xData||this.options.xData||this.processedXData||!1,G=!1,U=h.getThreshold(C);if(G=L(n,this),n.boosted=!0,!this.visible)return;(this.points||this.graph)&&E(this),d(n)?(this.markerGroup&&this.markerGroup!==n.boost.markerGroup&&this.markerGroup.destroy(),this.markerGroup=n.boost.markerGroup,this.boost&&this.boost.target&&(this.renderTarget=this.boost.target=this.boost.target.destroy())):(n.boost&&this.markerGroup===n.boost.markerGroup&&(this.markerGroup=void 0),this.markerGroup=this.plotGroup("markerGroup","markers",!0,1,n.seriesGroup));let W=this.points=[],X=(t,e,i,s)=>{let o=!!N&&N[j+i],r=t=>{n.inverted&&(t=l.len-t,e=h.len-e),W.push({destroy:g,x:o,clientX:t,plotX:t,plotY:e,i:j+i,percentage:s})};t=Math.ceil(t),a=z?t:t+","+e,M&&(k[a]?o===N[N.length-1]&&(W.length--,r(t)):(k[a]=!0,r(t)))};this.buildKDTree=g,G&&(w(G,this),G.pushSeries(this),R(this));let H=G.settings;n.renderer.forExport||(H.debug.timeKDTree&&console.time("kd tree building"),O(D?this.data.slice(j):c||u,(function(r,a){let d,c,u,g,f,b=void 0===n.index,v=!1,k=!0;return!T(r)||(!b&&(I?(d=r[0],c=r[1]):(d=r,c=p[a]),P?(I&&(c=r.slice(1,3)),v=c[0],c=c[1]):D&&(d=r.x,v=(c=r.stackY)-r.y,f=r.percentage),B||(k=(c||0)>=y&&c<=S),null!==c&&d>=m&&d<=x&&k&&(u=l.toPixels(d,!0),A?((void 0===s||u===t)&&(P||(v=c),(void 0===o||c>i)&&(i=c,o=a),(void 0===s||v{v(this,"renderedCanvas"),delete this.buildKDTree,this.options&&this.buildKDTree(),H.debug.timeKDTree&&console.timeEnd("kd tree building")})))}function U(t){let e=!0;if(this.chart.options&&this.chart.options.boost&&(e=void 0===this.chart.options.boost.enabled||this.chart.options.boost.enabled),!e||!this.boosted)return t.call(this);this.chart.boosted=!0;let i=L(this.chart,this);i&&(w(i,this),i.pushSeries(this)),R(this)}function W(t){return this.boosted&&D(this)?{}:t.apply(this,[].slice.call(arguments,1))}function X(e){let i=this.options.data;if(P(this.chart)&&t[this.type]){let t=this.is("scatter")&&!this.is("bubble");if((!j(this,i)||t||this.options.stacking||!D(this,!0))&&(t&&!this.yAxis.treeGrid?N.call(this,arguments[1]):e.apply(this,[].slice.call(arguments,1)),i=this.processedXData),this.boosted=j(this,i),this.boosted){let t;this.options.data&&this.options.data.length&&!k(t=this.getFirstValidPoint(this.options.data))&&!S(t)&&b(12,!1,this.chart),function(t){t.boost=t.boost||{getPoint:e=>z(t,e)};let e=t.boost.altered=[];if(["allowDG","directTouch","stickyTracking"].forEach((i=>{e.push({prop:i,val:t[i],own:Object.hasOwnProperty.call(t,i)})})),t.allowDG=!1,t.directTouch=!1,t.stickyTracking=!0,t.finishedAnimating=!0,t.labelBySeries&&(t.labelBySeries=t.labelBySeries.destroy()),t.is("scatter")&&t.data.length){for(let e of t.data){var i;null===e||void 0===e||null===(i=e.destroy)||void 0===i||i.call(e)}t.data.length=0,t.points.length=0,delete t.processedData}}(this)}else!function(t){let e=t.boost;e&&((e.altered||[]).forEach((e=>{e.own?t[e.prop]=e.val:delete t[e.prop]})),e.clear&&e.clear())}(this)}else e.apply(this,[].slice.call(arguments,1))}function H(t){let e=t.apply(this,[].slice.call(arguments,1));return this.boost&&e?this.boost.getPoint(e):e}return{compose:function i(s,o,r){if(M(p,i)){let i=c().plotOptions,n=s.prototype;if(m(s,"destroy",B),m(s,"hide",I),r&&(n.renderCanvas=G),C(n,"getExtremes",W),C(n,"processData",X),C(n,"searchPoint",H),["translate","generatePoints","drawTracker","drawPoints","render"].forEach((e=>function(e,i,s){function o(e){let i=this.options.stacking&&("translate"===s||"generatePoints"===s);this.boosted&&!i&&P(this.chart)&&"heatmap"!==this.type&&"treemap"!==this.type&&t[this.type]&&0!==this.options.boostThreshold?"render"===s&&this.renderCanvas&&this.renderCanvas():e.call(this)}if(C(e,s,o),"translate"===s)for(let t of["column","arearange","columnrange","heatmap","treemap"])i[t]&&C(i[t].prototype,s,o)}(n,o,e))),e.forEach((t=>{let e=i[t];e&&(e.boostThreshold=5e3,e.boostData=[],o[t].prototype.fillOpacity=!0)})),r){let{area:t,areaspline:e,bubble:i,column:s,heatmap:r,scatter:n,treemap:a}=o;if(t&&y(t.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),e&&y(e.prototype,{fill:!0,fillOpacity:!0,sampling:!0}),i){let t=i.prototype;delete t.buildKDTree,C(t,"markerAttribs",(function(t){return!this.boosted&&t.apply(this,[].slice.call(arguments,1))}))}s&&y(s.prototype,{fill:!0,sampling:!0}),n&&(n.prototype.fill=!0),[r,a].forEach((t=>{t&&C(t.prototype,"drawPoints",U)}))}}return s},destroyGraphics:E,eachAsync:O,getPoint:z}})),i(e,"Extensions/Boost/NamedColors.js",[],(function(){return{defaultHTMLColorMap:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",feldspar:"#d19275",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslateblue:"#8470ff",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",violetred:"#d02090",wheat:"#f5deb3",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}}})),i(e,"Extensions/Boost/Boost.js",[e["Extensions/Boost/BoostChart.js"],e["Extensions/Boost/BoostSeries.js"],e["Core/Globals.js"],e["Extensions/Boost/NamedColors.js"],e["Core/Utilities.js"]],(function(t,e,i,s,o){let{composed:r,doc:n,win:a}=i,{error:l,pushUnique:h}=o,d=["webgl","experimental-webgl","moz-webgl","webkit-3d"];function c(){let t;if(void 0!==a.WebGLRenderingContext){t=n.createElement("canvas");for(let e=0;e>>0;return"go"+e}(a));if(!v[i]){var s=a!==t?t:function(t){for(var n,e,r=[{}];n=l.exec(t.replace(f,""));)n[4]?r.shift():n[3]?(e=n[3].replace(p," ").trim(),r.unshift(r[0][e]=r[0][e]||{})):r[0][n[1]]=n[2].replace(p," ").trim();return r[0]}(t);v[i]=m(o?(0,c.Z)({},"@keyframes "+i,s):s,e?"":"."+i)}var u=e&&v.g?v.g:null;return e&&(v.g=v[i]),function(t,n,e,r){r?n.data=n.data.replace(r,t):-1===n.data.indexOf(t)&&(n.data=e?t+n.data:n.data+t)}(v[i],n,r,u),i},y=function(t,n,e){return t.reduce((function(t,r,o){var a=n[o];if(a&&a.call){var i=a(e),s=i&&i.props&&i.props.className||/^go/.test(i)&&i;a=s?"."+s:i&&"object"==typeof i?i.props?"":m(i,""):!1===i?"":i}return t+r+(null==a?"":a)}),"")};function b(t){var n=this||{},e=t.call?t(n.p):t;return h(e.unshift?e.raw?y(e,[].slice.call(arguments,1),n.p):e.reduce((function(t,e){return Object.assign(t,e&&e.call?e(n.p):e)}),{}):e,d(n.target),n.g,n.o,n.k)}b.bind({g:1});var Z,x,w,E,k,O,j,C,z,N,P,A,D,I,M,T,F,H,L,S=b.bind({k:1});function _(t,n){var e=this||{};return function(){var r=arguments;function o(a,i){var s=Object.assign({},a),c=s.className||o.className;e.p=Object.assign({theme:x&&x()},s),e.o=/ *go\d+/.test(c),s.className=b.apply(e,r)+(c?" "+c:""),n&&(s.ref=i);var u=t;return t[0]&&(u=s.as||t,delete s.as),w&&u[0]&&w(s),Z(u,s)}return n?n(o):o}}var U=function(t,n){return function(t){return"function"==typeof t}(t)?t(n):t},q=function(){var t=0;return function(){return(++t).toString()}}(),B=function(){var t;return function(){if(void 0===t&&typeof window<"u"){var n=matchMedia("(prefers-reduced-motion: reduce)");t=!n||n.matches}return t}}(),R=new Map,Y=function(t){if(!R.has(t)){var n=setTimeout((function(){R.delete(t),K({type:4,toastId:t})}),1e3);R.set(t,n)}},$=function t(n,e){switch(e.type){case 0:return(0,i.Z)((0,i.Z)({},n),{},{toasts:[e.toast].concat((0,a.Z)(n.toasts)).slice(0,20)});case 1:return e.toast.id&&function(t){var n=R.get(t);n&&clearTimeout(n)}(e.toast.id),(0,i.Z)((0,i.Z)({},n),{},{toasts:n.toasts.map((function(t){return t.id===e.toast.id?(0,i.Z)((0,i.Z)({},t),e.toast):t}))});case 2:var r=e.toast;return n.toasts.find((function(t){return t.id===r.id}))?t(n,{type:1,toast:r}):t(n,{type:0,toast:r});case 3:var o=e.toastId;return o?Y(o):n.toasts.forEach((function(t){Y(t.id)})),(0,i.Z)((0,i.Z)({},n),{},{toasts:n.toasts.map((function(t){return t.id===o||void 0===o?(0,i.Z)((0,i.Z)({},t),{},{visible:!1}):t}))});case 4:return void 0===e.toastId?(0,i.Z)((0,i.Z)({},n),{},{toasts:[]}):(0,i.Z)((0,i.Z)({},n),{},{toasts:n.toasts.filter((function(t){return t.id!==e.toastId}))});case 5:return(0,i.Z)((0,i.Z)({},n),{},{pausedAt:e.time});case 6:var s=e.time-(n.pausedAt||0);return(0,i.Z)((0,i.Z)({},n),{},{pausedAt:void 0,toasts:n.toasts.map((function(t){return(0,i.Z)((0,i.Z)({},t),{},{pauseDuration:t.pauseDuration+s})}))})}},G=[],J={toasts:[],pausedAt:void 0},K=function(t){J=$(J,t),G.forEach((function(t){t(J)}))},Q={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},V=function(t){return function(n,e){var r=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",e=arguments.length>2?arguments[2]:void 0;return(0,i.Z)((0,i.Z)({createdAt:Date.now(),visible:!0,type:n,ariaProps:{role:"status","aria-live":"polite"},message:t,pauseDuration:0},e),{},{id:(null==e?void 0:e.id)||q()})}(n,t,e);return K({type:2,toast:r}),r.id}},W=function(t,n){return V("blank")(t,n)};W.error=V("error"),W.success=V("success"),W.loading=V("loading"),W.custom=V("custom"),W.dismiss=function(t){K({type:3,toastId:t})},W.remove=function(t){return K({type:4,toastId:t})},W.promise=function(t,n,e){var r=W.loading(n.loading,(0,i.Z)((0,i.Z)({},e),null==e?void 0:e.loading));return t.then((function(t){return W.success(U(n.success,t),(0,i.Z)((0,i.Z)({id:r},e),null==e?void 0:e.success)),t})).catch((function(t){W.error(U(n.error,t),(0,i.Z)((0,i.Z)({id:r},e),null==e?void 0:e.error))})),t};var X=function(t,n){K({type:1,toast:{id:t,height:n}})},tt=function(){K({type:5,time:Date.now()})},nt=function(t){var n=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=(0,s.useState)(J),e=(0,o.Z)(n,2),r=e[0],a=e[1];(0,s.useEffect)((function(){return G.push(a),function(){var t=G.indexOf(a);t>-1&&G.splice(t,1)}}),[r]);var c=r.toasts.map((function(n){var e,r;return(0,i.Z)((0,i.Z)((0,i.Z)((0,i.Z)({},t),t[n.type]),n),{},{duration:n.duration||(null==(e=t[n.type])?void 0:e.duration)||(null==t?void 0:t.duration)||Q[n.type],style:(0,i.Z)((0,i.Z)((0,i.Z)({},t.style),null==(r=t[n.type])?void 0:r.style),n.style)})}));return(0,i.Z)((0,i.Z)({},r),{},{toasts:c})}(t),e=n.toasts,r=n.pausedAt;(0,s.useEffect)((function(){if(!r){var t=Date.now(),n=e.map((function(n){if(n.duration!==1/0){var e=(n.duration||0)+n.pauseDuration-(t-n.createdAt);if(!(e<0))return setTimeout((function(){return W.dismiss(n.id)}),e);n.visible&&W.dismiss(n.id)}}));return function(){n.forEach((function(t){return t&&clearTimeout(t)}))}}}),[e,r]);var c=(0,s.useCallback)((function(){r&&K({type:6,time:Date.now()})}),[r]),u=(0,s.useCallback)((function(t,n){var r,o=n||{},i=o.reverseOrder,s=void 0!==i&&i,c=o.gutter,u=void 0===c?8:c,d=o.defaultPosition,l=e.filter((function(n){return(n.position||d)===(t.position||d)&&n.height})),f=l.findIndex((function(n){return n.id===t.id})),p=l.filter((function(t,n){return n * {\n pointer-events: auto;\n }\n"]))),Et=function(t){var n=t.reverseOrder,e=t.position,r=void 0===e?"top-center":e,o=t.toastOptions,a=t.gutter,c=t.children,u=t.containerStyle,d=t.containerClassName,l=nt(o),f=l.toasts,p=l.handlers;return s.createElement("div",{style:(0,i.Z)({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},u),className:d,onMouseEnter:p.startPause,onMouseLeave:p.endPause},f.map((function(t){var e=t.position||r,o=function(t,n){var e=t.includes("top"),r=e?{top:0}:{bottom:0},o=t.includes("center")?{justifyContent:"center"}:t.includes("right")?{justifyContent:"flex-end"}:{};return(0,i.Z)((0,i.Z)({left:0,right:0,display:"flex",position:"absolute",transition:B()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(n*(e?1:-1),"px)")},r),o)}(e,p.calculateOffset(t,{reverseOrder:n,gutter:a,defaultPosition:r}));return s.createElement(xt,{id:t.id,key:t.id,onHeightUpdate:p.updateHeight,className:t.visible?wt:"",style:o},"custom"===t.type?U(t.message,t):c?c(t):s.createElement(Zt,{toast:t,position:e}))})))},kt=W}}]);
\ No newline at end of file
diff --git a/frontend/dist/static/js/596.0088f6dd.chunk.js b/frontend/dist/static/js/596.0088f6dd.chunk.js
deleted file mode 100644
index a65e5b4b..00000000
--- a/frontend/dist/static/js/596.0088f6dd.chunk.js
+++ /dev/null
@@ -1 +0,0 @@
-(self.webpackChunkobserver=self.webpackChunkobserver||[]).push([[596],{7548:function(t,e,i){var s;"undefined"!=typeof self&&self,t.exports=(s=i(7313),function(t){function e(s){if(i[s])return i[s].exports;var r=i[s]={i:s,l:!1,exports:{}};return t[s].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,s){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,i){"use strict";function s(){return s=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var i=0,s=new Array(e);iparseInt(e.userAgent.split("Firefox/")[1],10),e.hasTouch=!!e.win.TouchEvent,e.marginNames=["plotTop","marginRight","marginBottom","plotLeft"],e.noop=function(){},e.supportsPassiveEvents=function(){var t=!1;if(!e.isMS){var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.win.addEventListener&&e.win.removeEventListener&&(e.win.addEventListener("testPassive",e.noop,i),e.win.removeEventListener("testPassive",e.noop,i))}return t}(),e.charts=[],e.dateFormats={},e.seriesTypes={},e.symbolSizes={},e.chartCount=0}(e||(e={})),e})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(i,s,r,n){var o=s?"Highcharts error":"Highcharts warning";32===i&&(i="".concat(o,": Deprecated member"));var a=h(i),l=a?"".concat(o," #").concat(i,": www.highcharts.com/errors/").concat(i,"/"):i.toString();if("undefined"!==typeof n){var c="";a&&(l+="?"),y(n,(function(t,e){c+="\n - ".concat(e,": ").concat(t),a&&(l+=encodeURI(e)+"="+encodeURI(t))})),l+=c}b(t,"displayError",{chart:r,code:i,message:l,params:n},(function(){if(s)throw Error(l);S.console&&-1===e.messages.indexOf(l)&&console.warn(l)})),e.messages.push(l)}function i(t,e){return parseInt(t,e||10)}function s(t){return"string"===typeof t}function r(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function n(t,e){return!!t&&"object"===typeof t&&(!e||!r(t))}function o(t){return n(t)&&"number"===typeof t.nodeType}function a(t){var e=t&&t.constructor;return!(!n(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function h(t){return"number"===typeof t&&!isNaN(t)&&1/0>t&&-1/03&&void 0!==arguments[3]?arguments[3]:{},n="function"===typeof e&&e.prototype||e;Object.hasOwnProperty.call(n,"hcEvents")||(n.hcEvents={}),n=n.hcEvents,t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0);var o=e.addEventListener;return o&&o.call(e,i,s,!!t.supportsPassiveEvents&&{passive:void 0===r.passive?-1!==i.indexOf("touch"):r.passive,capture:!1}),n[i]||(n[i]=[]),n[i].push({fn:s,order:"number"===typeof r.order?r.order:1/0}),n[i].sort((function(t,e){return t.order-e.order})),function(){x(e,i,s)}},arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]e?t(s=t[r]-t[r-1])&&!n?(null===e||void 0===e||e(),e=void 0):s&&("undefined"===typeof i||s=s-1&&(s=Math.floor(r)),Math.max(0,s-(t(e,"padding-left",!0)||0)-(t(e,"padding-right",!0)||0))):"height"===s?Math.max(0,Math.min(e.offsetHeight,e.scrollHeight)-(t(e,"padding-top",!0)||0)-(t(e,"padding-bottom",!0)||0)):((e=S.getComputedStyle(e,void 0))&&(n=e.getPropertyValue(s),p(r,"opacity"!==s)&&(n=i(n))),n)},inArray:function(t,i,s){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,s)},insertItem:function(t,e){var i,s=t.options.index,r=e.length;for(i=t.options.isInternal?r:0;i=i&&(e=[1/i]))),s=0;s=t||!r&&o<=(e[s]+(e[s+1]||e[s]))/2));s++);return v(n*i,-Math.round(Math.log(.001)/Math.LN10))},objectEach:y,offset:function(t){var e=A.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0,width:0,height:0}).top+(S.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(S.pageXOffset||e.scrollLeft)-(e.clientLeft||0),width:t.width,height:t.height}},pad:function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},pick:p,pInt:i,pushUnique:function(t,e){return 0>t.indexOf(e)&&!!t.push(e)},relativeLength:function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},removeEvent:x,splat:d,stableSort:function(t,e){var i,s,r=t.length;for(s=0;s>16,(65280&n)>>8,255&n,1]:4===r&&(i=[(3840&n)>>4|(3840&n)>>8,(240&n)>>4|240&n,(15&n)<<4|15&n,1])}if(!i)for(n=e.parsers.length;n--&&!i;)(r=(s=e.parsers[n]).regex.exec(t))&&(i=s.parse(r))}i&&(this.rgba=i)}},{key:"get",value:function(t){var e=this.input,r=this.rgba;if("object"===typeof e&&"undefined"!==typeof this.stops){var n=s(e);return n.stops=[].slice.call(n.stops),this.stops.forEach((function(e,i){n.stops[i]=[n.stops[i][0],e.get(t)]})),n}return r&&i(r[0])?"rgb"===t||!t&&1===r[3]?"rgb("+r[0]+","+r[1]+","+r[2]+")":"a"===t?"".concat(r[3]):"rgba("+r.join(",")+")":e}},{key:"brighten",value:function(t){var e=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(var s=0;3>s;s++)e[s]+=r(255*t),0>e[s]&&(e[s]=0),2550&&void 0!==arguments[0]?arguments[0]:{},e=c(t.useUTC,!0);this.options=t=a(!0,this.options,t),this.Date=t.Date||i.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset||void 0,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=e&&!(!t.getTimezoneOffset&&!t.timezone)}},{key:"makeTime",value:function(t,e,i,s,r,n){var o,a,h;return this.useUTC?(o=this.Date.UTC.apply(0,arguments),o+=a=this.getTimezoneOffset(o),a!==(h=this.getTimezoneOffset(o))?o+=h-a:a-36e5!==this.getTimezoneOffset(o-36e5)||m||(o-=36e5)):o=new this.Date(t,e,c(i,1),c(s,0),c(r,0),c(n,0)).getTime(),o}},{key:"timezoneOffsetFunction",value:function(){var t=this,e=this.options,s=e.getTimezoneOffset,n=e.moment||i.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(n)return function(t){return 6e4*-n.tz(t,e.timezone).utcOffset()};r(25)}return this.useUTC&&s?function(t){return 6e4*s(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}}},{key:"dateFormat",value:function(e,i,r){if(!s(i)||isNaN(i))return t.defaultOptions.lang&&t.defaultOptions.lang.invalidDate||"";e=c(e,"%Y-%m-%d %H:%M:%S");var o=this,a=new this.Date(i),d=this.get("Hours",a),u=this.get("Day",a),p=this.get("Date",a),f=this.get("Month",a),g=this.get("FullYear",a),m=t.defaultOptions.lang,v=m&&m.weekdays,y=m&&m.shortWeekdays;return a=n({a:y?y[u]:v[u].substr(0,3),A:v[u],d:l(p),e:l(p,2," "),w:u,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(d),k:d,I:l(d%12||12),l:d%12||12,M:l(this.get("Minutes",a)),p:12>d?"AM":"PM",P:12>d?"am":"pm",S:l(a.getSeconds()),L:l(Math.floor(i%1e3),3)},t.dateFormats),h(a,(function(t,s){for(;-1!==e.indexOf("%"+s);)e=e.replace("%"+s,"function"===typeof t?t.call(o,i):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e}},{key:"resolveDTLFormat",value:function(t){return o(t,!0)?t:{main:(t=d(t))[0],from:t[1],to:t[2]}}},{key:"getTimeTicks",value:function(t,e,i,r){var o,a=this,h=[],l={},d=new a.Date(e),p=t.unitRange,f=t.count||1;if(r=c(r,1),s(e)){if(a.set("Milliseconds",d,p>=u.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),p>=u.second&&a.set("Seconds",d,p>=u.minute?0:f*Math.floor(a.get("Seconds",d)/f)),p>=u.minute&&a.set("Minutes",d,p>=u.hour?0:f*Math.floor(a.get("Minutes",d)/f)),p>=u.hour&&a.set("Hours",d,p>=u.day?0:f*Math.floor(a.get("Hours",d)/f)),p>=u.day&&a.set("Date",d,p>=u.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),p>=u.month){a.set("Month",d,p>=u.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}p>=u.year&&a.set("FullYear",d,g-g%f),p===u.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+r+(g4*u.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(i)),e=d.getTime(),d=1;eh.length&&h.forEach((function(t){0===t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(l[t]="day")}))}return h.info=n(t,{higherRanks:l,totalRange:p*f}),h}},{key:"getDateFormat",value:function(t,e,i,s){var r,n=this.dateFormat("%m-%d %H:%M:%S.%L",e),o={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(r in u){if(t===u.week&&+this.dateFormat("%w",e)===i&&"00:00:00.000"===n.substr(6)){r="week";break}if(u[r]>t){r=a;break}if(o[r]&&n.substr(o[r])!=="01-01 00:00:00.000".substr(o[r]))break;"week"!==r&&(a=r)}return this.resolveDTLFormat(s[r]).main}}]),e}();return v})),e(i,"Core/Defaults.js",[i["Core/Chart/ChartDefaults.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Color/Palettes.js"],i["Core/Time.js"],i["Core/Utilities.js"]],(function(t,e,i,s,r,n){var o=i.isTouchDevice,a=i.svg,h=n.merge,l={colors:s.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:t,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:a,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:o?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',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"}};l.chart.styledMode=!1;var c=new r(l.time);return t={defaultOptions:l,defaultTime:c,getOptions:function(){return l},setOptions:function(t){return h(!0,l,t),(t.time||t.global)&&(i.time?i.time.update(h(l.global,l.time,t.global,t.time)):i.time=c),l}}})),e(i,"Core/Animation/Fx.js",[i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=t.parse,r=e.win,n=i.isNumber,o=i.objectEach,a=function(){function t(e,i,s){p(this,t),this.pos=NaN,this.options=i,this.elem=e,this.prop=s}return f(t,[{key:"dSetter",value:function(){var t=this.paths,e=t&&t[0];t=t&&t[1];var i=this.now||0,s=[];if(1!==i&&e&&t)if(e.length===t.length&&1>i)for(var r=0;r=a+this.startTime?(this.now=this.end,this.pos=1,this.update(),e=h[this.prop]=!0,o(h,(function(t){!0!==t&&(e=!1)})),e&&n&&n.call(r),t=!1):(this.pos=s.easing((i-this.startTime)/a),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0),t}},{key:"initPath",value:function(t,e,i){function s(t,e){for(;t.length0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0,c=arguments.length>2?arguments[2]:void 0,u=/\{([a-zA-Z0-9:\.,;\-\/<>%_@"'= #\(\)]+)\}/g,f=/\(([a-zA-Z0-9:\.,;\-\/<>%_@"'= ]+)\)/g,g=[],m=/f$/,v=/\.([0-9])/,y=r.lang,x=c&&c.time||n,b=c&&c.numberFormatter||s,k=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return"true"===e||"false"!==e&&((t=Number(e)).toString()===e?t:a(e,l))},A=0;null!==(t=u.exec(h));){var S=f.exec(t[1]);S&&(t=S,o=!0),e&&e.isBlock||(e={ctx:l,expression:t[1],find:t[0],isBlock:"#"===t[1].charAt(0),start:t.index,startInner:t.index+t[0].length,length:t[0].length});var M=t[1].split(" ")[0].replace("#","");if(p[M]&&(e.isBlock&&M===e.fn&&A++,e.fn||(e.fn=M)),M="else"===t[1],e.isBlock&&e.fn&&(t[1]==="/".concat(e.fn)||M))if(A)M||A--;else{var C=e.startInner;C=h.substr(C,t.index-C),void 0===e.body?(e.body=C,e.startInner=t.index+t[0].length):e.elseBody=C,e.find+=C+t[0],M||(g.push(e),e=void 0)}else e.isBlock||g.push(e);if(S&&(null===e||void 0===e||!e.isBlock))break}return g.forEach((function(t){var e,s=t.body,r=t.elseBody,n=t.expression,o=t.fn;if(o){var a=[t],c=n.split(" ");for(e=p[o].length;e--;)a.unshift(k(c[e+1]));e=p[o].apply(l,a),t.isBlock&&"boolean"===typeof e&&(e=i(e?s:r,l))}else a=n.split(":"),e=k(a.shift()||""),a.length&&"number"===typeof e&&(a=a.join(":"),m.test(a)?(c=parseInt((a.match(v)||["","-1"])[1],10),null!==e&&(e=b(e,c,y.decimalPoint,-1a[1]){var c=e+ +a[1];0<=c?(a[0]=(+a[0]).toExponential(c).split("e")[0],e=c):(a[0]=a[0].split(".")[0]||0,t=20>e?(a[0]*Math.pow(10,a[1])).toFixed(e):0,a[1]=0)}}else e=2;c=(Math.abs(a[1]?a[0]:t)+Math.pow(10,-Math.max(e,o)-1)).toFixed(e);var p=3<(o=String(u(c))).length?o.length%3:0;return i=d(i,n.decimalPoint),s=d(s,n.thousandsSep),t=(0>t?"-":"")+(p?o.substr(0,p)+s:""),t=0>+a[1]&&!h?"0":t+o.substr(p).replace(/(\d{3})(?=\d)/g,"$1"+s),e&&(t+=i+c.slice(-e)),a[1]&&0!==+t&&(t+="e"+a[1]),t}var r=t.defaultOptions,n=t.defaultTime,o=e.extend,a=e.getNestedProperty,h=e.isArray,l=e.isNumber,c=e.isObject,d=e.pick,u=e.pInt,p={add:function(t,e){return t+e},divide:function(t,e){return 0!==e?t/e:""},eq:function(t,e){return t==e},each:function(t){var e=arguments[arguments.length-1];return!!h(t)&&t.map((function(s,r){return i(e.body,o(c(s)?s:{"@this":s},{"@index":r,"@first":0===r,"@last":r===t.length-1}))})).join("")},ge:function(t,e){return t>=e},gt:function(t,e){return t>e},if:function(t){return!!t},le:function(t,e){return t<=e},lt:function(t,e){return tl){for(r(e,c),f=a=0;f<=l;)f+=e[a].size,a++;p=e.splice(a-1,e.length)}for(r(e,d),e=e.map((function(t){return{size:t.size,targets:[t.target],align:s(t.align,.5)}}));u;){for(a=e.length;a--;)l=e[a],c=(Math.min.apply(0,l.targets)+Math.max.apply(0,l.targets))/2,l.pos=i(c-l.size*l.align,0,n-l.size);for(a=e.length,u=!1;a--;)0e[a].pos&&(e[a-1].size+=e[a].size,e[a-1].targets=e[a-1].targets.concat(e[a].targets),e[a-1].align=.5,e[a-1].pos+e[a-1].size>n&&(e[a-1].pos=n-e[a-1].size),e.splice(a,1),u=!0)}return h.push.apply(h,p),a=0,e.some((function(e){var i=0;return(e.targets||[]).some((function(){return h[a].pos=e.pos+i,"undefined"!==typeof o&&Math.abs(h[a].pos-h[a].target)>o?(h.slice(0,a+1).forEach((function(t){return delete t.pos})),h.reducedLen=(h.reducedLen||n)-.1*n,h.reducedLen>.1*n&&t(h,n,o),!0):(i+=h[a].size,a++,!1)}))})),r(h,d),h}}(e||(e={})),e})),e(i,"Core/Renderer/SVG/SVGElement.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var r=t.animate,n=t.animObject,o=t.stop,a=i.deg2rad,h=i.doc,l=i.svg,c=i.SVG_NS,d=i.win,u=s.addEvent,g=s.attr,m=s.createElement,v=s.css,y=s.defined,x=s.erase,b=s.extend,k=s.fireEvent,A=s.isArray,S=s.isFunction,M=s.isObject,C=s.isString,w=s.merge,T=s.objectEach,P=s.pick,L=s.pInt,E=s.syncTimeout,O=s.uniqueKey,D=function(){function t(){p(this,t),this.element=void 0,this.onEvents={},this.opacity=1,this.renderer=void 0,this.SVG_NS=c}return f(t,[{key:"_defaultGetter",value:function(t){return t=P(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t}},{key:"_defaultSetter",value:function(t,e,i){i.setAttribute(e,t)}},{key:"add",value:function(t){var e,i=this.renderer,s=this.element;return t&&(this.parentGroup=t),"undefined"!==typeof this.textStr&&"text"===this.element.nodeName&&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}},{key:"addClass",value:function(t,e){var i=e?"":this.attr("class")||"";return t=(t||"").split(/ /g).reduce((function(t,e){return-1===i.indexOf(e)&&t.push(e),t}),i?[i]:[]).join(" "),t!==i&&this.attr("class",t),this}},{key:"afterSetters",value:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)}},{key:"align",value:function(t,e,i){var s,r,n,o={},a=this.renderer,h=a.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||C(i))&&(this.alignTo=s=i||"renderer",x(h,this),h.push(this),i=void 0)):(t=this.alignOptions,e=this.alignByTranslate,s=this.alignTo),i=P(i,a[s],"scrollablePlotBox"===s?a.plotBox:void 0,a),s=t.align;var l=t.verticalAlign;return a=(i.x||0)+(t.x||0),h=(i.y||0)+(t.y||0),"right"===s?r=1:"center"===s&&(r=2),r&&(a+=(i.width-(t.width||0))/r),o[e?"translateX":"x"]=Math.round(a),"bottom"===l?n=1:"middle"===l&&(n=2),n&&(h+=(i.height-(t.height||0))/n),o[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](o),this.placed=!0,this.alignAttr=o,this}},{key:"alignSetter",value:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))}},{key:"animate",value:function(t,e,i){var s=this,o=n(P(e,this.renderer.globalAnimation,!0));return e=o.defer,h.hidden&&(o.duration=0),0!==o.duration?(i&&(o.complete=i),E((function(){s.element&&r(s,t,o)}),e)):(this.attr(t,void 0,i||o.complete),T(t,(function(t,e){o.step&&o.step.call(this,t,{prop:e,pos:1,elem:this})}),this)),this}},{key:"applyTextOutline",value:function(t){var e=this.element;-1!==t.indexOf("contrast")&&(t=t.replace(/contrast/g,this.renderer.getContrast(e.style.fill)));var s=t.split(" ");if(t=s[s.length-1],(s=s[0])&&"none"!==s&&i.svg){this.fakeTS=!0,s=s.replace(/(^[\d\.]+)(.*?)$/g,(function(t,e,i){return 2*Number(e)+i})),this.removeTextOutline();var r=h.createElementNS(c,"tspan");g(r,{class:"highcharts-text-outline",fill:t,stroke:t,"stroke-width":s,"stroke-linejoin":"round"}),t=e.querySelector("textPath")||e,[].forEach.call(t.childNodes,(function(t){var e=t.cloneNode(!0);e.removeAttribute&&["fill","stroke","stroke-width","stroke"].forEach((function(t){return e.removeAttribute(t)})),r.appendChild(e)}));var n=0;[].forEach.call(t.querySelectorAll("text tspan"),(function(t){n+=Number(t.getAttribute("dy"))})),(s=h.createElementNS(c,"tspan")).textContent="\u200b",g(s,{x:Number(e.getAttribute("x")),dy:-n}),r.appendChild(s),t.insertBefore(r,t.firstChild)}}},{key:"attr",value:function(e,i,s,r){var n,a,h,l=this.element,c=t.symbolCustomAttribs,d=this;return"string"===typeof e&&"undefined"!==typeof i&&(n=e,(e={})[n]=i),"string"===typeof e?d=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(T(e,(function(t,i){h=!1,r||o(this,i),this.symbolName&&-1!==c.indexOf(i)&&(a||(this.symbolAttr(e),a=!0),h=!0),!this.rotation||"x"!==i&&"y"!==i||(this.doTransform=!0),h||(this[i+"Setter"]||this._defaultSetter).call(this,t,i,l)}),this),this.afterSetters()),s&&s.call(this),d}},{key:"clip",value:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")}},{key:"crisp",value:function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),y(t.strokeWidth)&&(t.strokeWidth=e),t}},{key:"complexColor",value:function(t,i,s){var r,n,o,a,h,l,c,d,u,p,f,g=this.renderer,m=[];k(this.renderer,"complexColor",{args:arguments},(function(){if(t.radialGradient?n="radialGradient":t.linearGradient&&(n="linearGradient"),n){if(o=t[n],h=g.gradients,l=t.stops,u=s.radialReference,A(o)&&(t[n]=o={x1:o[0],y1:o[1],x2:o[2],y2:o[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===n&&u&&!y(o.gradientUnits)&&(a=o,o=w(o,g.getRadialAttr(u,a),{gradientUnits:"userSpaceOnUse"})),T(o,(function(t,e){"id"!==e&&m.push(e,t)})),T(l,(function(t){m.push(t)})),m=m.join(","),h[m])p=h[m].attr("id");else{o.id=p=O();var v=h[m]=g.createElement(n).attr(o).add(g.defs);v.radAttr=a,v.stops=[],l.forEach((function(t){0===t[1].indexOf("rgba")?(r=e.parse(t[1]),c=r.get("rgb"),d=r.get("a")):(c=t[1],d=1),t=g.createElement("stop").attr({offset:t[0],"stop-color":c,"stop-opacity":d}).add(v),v.stops.push(t)}))}f="url("+g.url+"#"+p+")",s.setAttribute(i,f),s.gradient=m,t.toString=function(){return f}}}))}},{key:"css",value:function(t){var e,i=this.styles,s={},r=this.element,n=!i;if(i&&T(t,(function(t,e){i&&i[e]!==t&&(s[e]=t,n=!0)})),n){i&&(t=b(i,s)),null===t.width||"auto"===t.width?delete this.textWidth:"text"===r.nodeName.toLowerCase()&&t.width&&(e=this.textWidth=L(t.width)),this.styles=t,e&&!l&&this.renderer.forExport&&delete t.width;var o=w(t);r.namespaceURI===this.SVG_NS&&(["textOutline","textOverflow","width"].forEach((function(t){return o&&delete o[t]})),o.color&&(o.fill=o.color)),v(r,o)}return this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t.textOutline&&this.applyTextOutline(t.textOutline)),this}},{key:"dashstyleSetter",value:function(t){var e=this["stroke-width"];if("inherit"===e&&(e=1),t=t&&t.toLowerCase()){var i=t.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(t=i.length;t--;)i[t]=""+L(i[t])*P(e,NaN);t=i.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}}},{key:"destroy",value:function(){var t=this,e=t.element||{},i=t.renderer,s=e.ownerSVGElement,r="SPAN"===e.nodeName&&t.parentGroup||void 0;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,o(t),t.clipPath&&s){var n=t.clipPath;[].forEach.call(s.querySelectorAll("[clip-path],[CLIP-PATH]"),(function(t){-1u.width)&&(u={x:0,y:0,width:0,height:0})}else u=this.htmlGetBBox();if(g=u.width,e=u.height,d&&(u.height=e={"11px,17":14,"13px,20":16}["".concat(f||"",",").concat(Math.round(e))]||e),i){d=Number(r.getAttribute("y")||0)-u.y,f={right:1,center:.5}[s||0]||0;var m=i*a,x=(i-90)*a,k=g*Math.cos(m);i=g*Math.sin(m);var A=Math.cos(x);m=Math.sin(x),k=(A=(x=(g=u.x+f*(g-k)+d*A)+k)-e*A)-k,i=(e=(f=(d=u.y+d-f*i+d*m)+i)-e*m)-i,u.x=Math.min(g,x,A,k),u.y=Math.min(d,f,e,i),u.width=Math.max(g,x,A,k)-u.x,u.height=Math.max(d,f,e,i)-u.y}}if(p&&(""===h||00&&void 0!==arguments[0])||arguments[0];return this.attr({visibility:t?"inherit":"visible"})}},{key:"stroke-widthSetter",value:function(t,e,i){this[e]=t,i.setAttribute(e,t)}},{key:"strokeWidth",value:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t,e=this.getStyle("stroke-width"),i=0;return e.indexOf("px")===e.length-2?i=L(e):""!==e&&(t=h.createElementNS(c,"rect"),g(t,{width:e,"stroke-width":0}),this.element.parentNode.appendChild(t),i=t.getBBox().width,t.parentNode.removeChild(t)),i}},{key:"symbolAttr",value:function(e){var i=this;t.symbolCustomAttribs.forEach((function(t){i[t]=P(e[t],i[t])})),i.attr({d:i.renderer.symbols[i.symbolName](i.x,i.y,i.width,i.height,i)})}},{key:"textSetter",value:function(t){t!==this.textStr&&(delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))}},{key:"titleSetter",value:function(t){var e=this.element,i=e.getElementsByTagName("title")[0]||h.createElementNS(this.SVG_NS,"title");e.insertBefore?e.insertBefore(i,e.firstChild):e.appendChild(i),i.textContent=String(P(t,"")).replace(/<[^>]*>/g,"").replace(/</g,"<").replace(/>/g,">")}},{key:"toFront",value:function(){var t=this.element;return t.parentNode.appendChild(t),this}},{key:"translate",value:function(t,e){return this.attr({translateX:t,translateY:e})}},{key:"updateTransform",value:function(){var t=this.element,e=this.matrix,i=this.rotation,s=void 0===i?0:i,r=this.scaleX,n=this.scaleY,o=this.translateX,a=void 0===o?0:o,h=this.translateY,l=["translate("+a+","+(void 0===h?0:h)+")"];y(e)&&l.push("matrix("+e.join(",")+")"),s&&l.push("rotate("+s+" "+P(this.rotationOriginX,t.getAttribute("x"),0)+" "+P(this.rotationOriginY,t.getAttribute("y")||0)+")"),(y(r)||y(n))&&l.push("scale("+P(r,1)+" "+P(n,1)+")"),l.length&&!(this.text||this).textPath&&t.setAttribute("transform",l.join(" "))}},{key:"visibilitySetter",value:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t}},{key:"xGetter",value:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)}},{key:"zIndexSetter",value:function(t,e){var i=this.renderer,s=this.parentGroup,r=(s||i).element||i.box,n=this.element;i=r===i.box;var o,a,h=!1,l=this.added;if(y(t)?(n.setAttribute("data-z-index",t),t=+t,this[e]===t&&(l=!1)):y(this[e])&&n.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&s&&(s.handleZ=!0),a=(e=r.childNodes).length-1;0<=a&&!h;a--)l=(s=e[a]).getAttribute("data-z-index"),o=!y(l),s!==n&&(0>t&&o&&!i&&!a?(r.insertBefore(n,e[a]),h=!0):(L(l)<=t||o&&(!y(t)||0<=t))&&(r.insertBefore(n,e[a+1]),h=!0));h||(r.insertBefore(n,e[i?3:0]),h=!0)}return h}}]),t}();return D.symbolCustomAttribs="anchorX anchorY clockwise end height innerR r start width x y".split(" "),D.prototype.strokeSetter=D.prototype.fillSetter,D.prototype.yGetter=D.prototype.xGetter,D.prototype.matrixSetter=D.prototype.rotationOriginXSetter=D.prototype.rotationOriginYSetter=D.prototype.rotationSetter=D.prototype.scaleXSetter=D.prototype.scaleYSetter=D.prototype.translateXSetter=D.prototype.translateYSetter=D.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},D})),e(i,"Core/Renderer/RendererRegistry.js",[i["Core/Globals.js"]],(function(t){var e;return function(e){var i;e.rendererTypes={},e.getRendererType=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i;return e.rendererTypes[t]||e.rendererTypes[i]},e.registerRendererType=function(s,r,n){e.rendererTypes[s]=r,i&&!n||(i=s,t.Renderer=r)}}(e||(e={})),e})),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.defined,s=e.extend,r=e.isNumber,n=e.merge,o=e.pick,a=e.removeEvent,h=function(e){d(l,e);var h=u(l);function l(t,e,i,s,r,n,o,a,c,d){var u,f;return p(this,l),(u=h.call(this)).paddingRightSetter=u.paddingLeftSetter=u.paddingSetter,u.init(t,"g"),u.textStr=e,u.x=i,u.y=s,u.anchorX=n,u.anchorY=o,u.baseline=c,u.className=d,u.addClass("button"===d?"highcharts-no-tooltip":"highcharts-label"),d&&u.addClass("highcharts-"+d),u.text=t.text(void 0,0,0,a).attr({zIndex:1}),"string"===typeof r&&((f=/^url\((.*?)\)$/.test(r))||u.renderer.symbols[r])&&(u.symbolKey=r),u.bBox=l.emptyBBox,u.padding=3,u.baselineOffset=0,u.needsBox=t.styledMode||f,u.deferredAttr={},u.alignFactor=0,u}return f(l,[{key:"alignSetter",value:function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))}},{key:"anchorXSetter",value:function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)}},{key:"anchorYSetter",value:function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)}},{key:"boxAttr",value:function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e}},{key:"css",value:function(e){if(e){var i={};e=n(e),l.textProps.forEach((function(t){"undefined"!==typeof e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i),"fontSize"in i||"fontWeight"in i?this.updateTextPadding():("width"in i||"textOverflow"in i)&&this.updateBoxSize()}return t.prototype.css.call(this,e)}},{key:"destroy",value:function(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)}},{key:"fillSetter",value:function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)}},{key:"getBBox",value:function(){this.textStr&&0===this.bBox.width&&0===this.bBox.height&&this.updateBoxSize();var t=this.padding,e=o(this.paddingLeft,t);return{width:this.width,height:this.height,x:this.bBox.x-e,y:this.bBox.y-t}}},{key:"getCrispAdjust",value:function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2}},{key:"heightSetter",value:function(t){this.heightSetting=t}},{key:"onAdd",value:function(){this.text.add(this),this.attr({text:o(this.textStr,""),x:this.x||0,y:this.y||0}),this.box&&i(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})}},{key:"paddingSetter",value:function(t,e){r(t)?t!==this[e]&&(this[e]=t,this.updateTextPadding()):this[e]=void 0}},{key:"rSetter",value:function(t,e){this.boxAttr(e,t)}},{key:"strokeSetter",value:function(t,e){this.stroke=t,this.boxAttr(e,t)}},{key:"stroke-widthSetter",value:function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)}},{key:"text-alignSetter",value:function(t){this.textAlign=t}},{key:"textSetter",value:function(t){"undefined"!==typeof t&&this.text.attr({text:t}),this.updateTextPadding()}},{key:"updateBoxSize",value:function(){var t=this.text,e={},n=this.padding,o=this.bBox=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!i(t.textStr)?l.emptyBBox:t.getBBox();this.width=this.getPaddedWidth(),this.height=(this.heightSetting||o.height||0)+2*n;var a=this.renderer.fontMetrics(t);this.baselineOffset=n+Math.min((this.text.firstLineMetrics||a).b,o.height||1/0),this.heightSetting&&(this.baselineOffset+=(this.heightSetting-a.h)/2),this.needsBox&&!t.textPath&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this)),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t,e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(s(e,this.deferredAttr)),this.deferredAttr={})}},{key:"updateTextPadding",value:function(){var t=this.text;if(!t.textPath){this.updateBoxSize();var e=this.baseline?0:this.baselineOffset,s=o(this.paddingLeft,this.padding);i(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(s+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),s===t.x&&e===t.y||(t.attr("x",s),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0)),"undefined"!==typeof e&&t.attr("y",e)),t.x=s,t.y=e}}},{key:"widthSetter",value:function(t){this.widthSetting=r(t)?t:void 0}},{key:"getPaddedWidth",value:function(){var t=this.padding,e=o(this.paddingLeft,t);return t=o(this.paddingRight,t),(this.widthSetting||this.bBox.width||0)+e+t}},{key:"xSetter",value:function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*this.getPaddedWidth(),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)}},{key:"ySetter",value:function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)}}]),l}(t);return h.emptyBBox={width:0,height:0,x:0,y:0},h.textProps="color direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow whiteSpace width".split(" "),h})),e(i,"Core/Renderer/SVG/Symbols.js",[i["Core/Utilities.js"]],(function(t){function e(t,e,i,s,n){var a=[];if(n){var h=n.start||0,l=o(n.r,i);i=o(n.r,s||i),s=(n.end||0)-.001;var c=n.innerR,d=o(n.open,.001>Math.abs((n.end||0)-h-2*Math.PI)),u=Math.cos(h),p=Math.sin(h),f=Math.cos(s),g=Math.sin(s),m=o(n.longArc,.001>s-h-Math.PI?0:1),v=["A",l,i,0,m,o(n.clockwise,1),t+l*f,e+i*g];v.params={start:h,end:s,cx:t,cy:e},a.push(["M",t+l*u,e+i*p],v),r(c)&&((v=["A",c,c,0,m,r(n.clockwise)?1-n.clockwise:0,t+c*u,e+c*p]).params={start:s,end:h,cx:t,cy:e},a.push(d?["M",t+c*f,e+c*g]:["L",t+c*f,e+c*g],v)),d||a.push(["Z"])}return a}function i(t,e,i,r,n){return n&&n.r?s(t,e,i,r,n):[["M",t,e],["L",t+i,e],["L",t+i,e+r],["L",t,e+r],["Z"]]}function s(t,e,i,s,r){return[["M",t+(r=(null===r||void 0===r?void 0:r.r)||0),e],["L",t+i-r,e],["A",r,r,0,0,1,t+i,e+r],["L",t+i,e+s-r],["A",r,r,0,0,1,t+i-r,e+s],["L",t+r,e+s],["A",r,r,0,0,1,t,e+s-r],["L",t,e+r],["A",r,r,0,0,1,t+r,e],["Z"]]}var r=t.defined,n=t.isNumber,o=t.pick;return{arc:e,callout:function(t,e,i,r,o){var a=Math.min(o&&o.r||0,i,r),h=a+6,l=o&&o.anchorX;o=o&&o.anchorY||0;var c=s(t,e,i,r,{r:a});return n(l)?(t+l>=i?o>e+h&&o=t+l?o>e+h&&or&&l>t+h&&lo&&l>t+h&&l/g.test(n))?""!==n&&(r&&r.appendChild(i),n=new t(n),this.modifyTree(n.nodes),n.addToDOM(i),this.modifyDOM(),this.ellipsis&&-1!==(i.textContent||"").indexOf("\u2026")&&e.attr("title",this.unescapeEntities(e.textStr||"",["<",">"])),r&&r.removeChild(i)):i.appendChild(s.createTextNode(this.unescapeEntities(n))),l(this.textOutline)&&e.applyTextOutline&&e.applyTextOutline(this.textOutline)}}},{key:"modifyDOM",value:function(){var t,e=this,i=this.svgElement,a=o(i.element,"x");for(i.firstLineMetrics=void 0;(t=i.element.firstChild)&&/^[\s\u200B]*$/.test(t.textContent||" ");)i.element.removeChild(t);[].forEach.call(i.element.querySelectorAll("tspan.highcharts-br"),(function(t,s){t.nextSibling&&t.previousSibling&&(0===s&&1===t.previousSibling.nodeType&&(i.firstLineMetrics=i.renderer.fontMetrics(t.previousSibling)),o(t,{dy:e.getLineHeight(t.nextSibling),x:a}))}));var h=this.width||0;if(h){var l=function(t,n){var l=t.textContent||"",c=l.replace(/([^\^])-/g,"$1- ").split(" "),d=!e.noWrap&&(1r){for(;d<=u;)p=Math.ceil((d+u)/2),i&&(o=n(i,p)),a=f(p,o&&o.length-1),d===u?d=u+1:a>r?u=p-1:d=p;0===u?t.textContent="":e&&u===e.length-1||(t.textContent=o||n(e||i,p))}i&&i.splice(0,p),h.actualWidth=a,h.rotation=l}},{key:"unescapeEntities",value:function(t,e){return c(this.renderer.escapes,(function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))})),t}}]),e}();return u})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Color/Color.js"],i["Core/Globals.js"],i["Core/Renderer/RendererRegistry.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Renderer/SVG/Symbols.js"],i["Core/Renderer/SVG/TextBuilder.js"],i["Core/Utilities.js"]],(function(t,e,i,s,r,n,o,a,h){var l,d=i.charts,u=i.deg2rad,g=i.doc,m=i.isFirefox,v=i.isMS,y=i.isWebKit,x=i.noop,b=i.SVG_NS,k=i.symbolSizes,A=i.win,S=h.addEvent,M=h.attr,C=h.createElement,w=h.css,T=h.defined,P=h.destroyObjectProperties,L=h.extend,E=h.isArray,O=h.isNumber,D=h.isObject,j=h.isString,R=h.merge,B=h.pick,I=h.pInt,z=h.uniqueKey,N=function(){function i(t,e,s,r,n,o,a){p(this,i),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(t,e,s,r,n,o,a)}return f(i,[{key:"init",value:function(t,e,i,s,r,n,o){var a,h=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"}),l=h.element;o||h.css(this.getStyle(s)),t.appendChild(l),M(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&M(l,"xmlns",this.SVG_NS),this.box=l,this.boxWrapper=h,this.alignedObjects=[],this.url=this.getReferenceURL(),this.createElement("desc").add().element.appendChild(g.createTextNode("Created with Highcharts 11.1.0")),this.defs=this.createElement("defs").add(),this.allowHTML=n,this.forExport=r,this.styledMode=o,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.rootFontSize=h.getStyle("font-size"),this.setSize(e,i,!1),m&&t.getBoundingClientRect&&((e=function(){w(t,{left:0,top:0}),a=t.getBoundingClientRect(),w(t,{left:Math.ceil(a.left)-a.left+"px",top:Math.ceil(a.top)-a.top+"px"})})(),this.unSubPixelFix=S(A,"resize",e))}},{key:"definition",value:function(e){return new t([e]).addToDOM(this.defs.element)}},{key:"getReferenceURL",value:function(){if((m||y)&&g.getElementsByTagName("base").length){if(!T(l)){var e=z();e=new t([{tagName:"svg",attributes:{width:8,height:8},children:[{tagName:"defs",children:[{tagName:"clipPath",attributes:{id:e},children:[{tagName:"rect",attributes:{width:4,height:4}}]}]},{tagName:"rect",attributes:{id:"hitme",width:8,height:8,"clip-path":"url(#".concat(e,")"),fill:"rgba(0,0,0,0.001)"}}]}]).addToDOM(g.body),w(e,{position:"fixed",top:0,left:0,zIndex:9e5});var i=g.elementFromPoint(6,6);l="hitme"===(i&&i.id),g.body.removeChild(e)}if(l)return A.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20")}return""}},{key:"getStyle",value:function(t){return this.style=L({fontFamily:"Helvetica, Arial, sans-serif",fontSize:"1rem"},t)}},{key:"setStyle",value:function(t){this.boxWrapper.css(this.getStyle(t))}},{key:"isHidden",value:function(){return!this.boxWrapper.getBBox().width}},{key:"destroy",value:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),P(this.gradients||{}),this.gradients=null,this.defs=t.destroy(),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null}},{key:"createElement",value:function(t){var e=new this.Element;return e.init(this,t),e}},{key:"getRadialAttr",value:function(t,e){return{cx:t[0]-t[2]/2+(e.cx||0)*t[2],cy:t[1]-t[2]/2+(e.cy||0)*t[2],r:(e.r||0)*t[2]}}},{key:"shadowDefinition",value:function(t){var e=["highcharts-drop-shadow-".concat(this.chartIndex)].concat(c(Object.keys(t).map((function(e){return t[e]})))).join("-").replace(/[^a-z0-9\-]/g,""),i=R({color:"#000000",offsetX:1,offsetY:1,opacity:.15,width:5},t);return this.defs.element.querySelector("#".concat(e))||this.definition({tagName:"filter",attributes:{id:e},children:[{tagName:"feDropShadow",attributes:{dx:i.offsetX,dy:i.offsetY,"flood-color":i.color,"flood-opacity":Math.min(5*i.opacity,1),stdDeviation:i.width/2}}]}),e}},{key:"buildText",value:function(t){new a(t).buildSVG()}},{key:"getContrast",value:function(t){return 1.05/(.05+(t=.2126*(t=e.parse(t).rgba.map((function(t){return.03928>=(t/=255)?t/12.92:Math.pow((t+.055)/1.055,2.4)})))[0]+.7152*t[1]+.0722*t[2]))>(t+.05)/.05?"#FFFFFF":"#000000"}},{key:"button",value:function(e,i,s,r){var n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,h=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,c=arguments.length>9?arguments[9]:void 0,d=this.label(e,i,s,l,void 0,void 0,c,void 0,"button"),u=this.styledMode;e=n.states||{};var p=0;delete(n=R(n)).states;var f=R({color:"#333333",cursor:"pointer",fontSize:"0.8em",fontWeight:"normal"},n.style);delete n.style;var g,m,y,x=t.filterUserAttributes(n);return d.attr(R({padding:8,r:2},x)),u||(x=R({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1},x),o=R(x,{fill:"#e6e6e6"},t.filterUserAttributes(o||e.hover||{})),g=o.style,delete o.style,a=R(x,{fill:"#e6e9ff",style:{color:"#000000",fontWeight:"bold"}},t.filterUserAttributes(a||e.select||{})),m=a.style,delete a.style,h=R(x,{style:{color:"#cccccc"}},t.filterUserAttributes(h||e.disabled||{})),y=h.style,delete h.style),S(d.element,v?"mouseover":"mouseenter",(function(){3!==p&&d.setState(1)})),S(d.element,v?"mouseout":"mouseleave",(function(){3!==p&&d.setState(p)})),d.setState=function(t){1!==t&&(d.state=p=t),d.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),u||(d.attr([x,o,a,h][t||0]),D(t=[f,g,m,y][t||0])&&d.css(t))},u||(d.attr(x).css(L({cursor:"default"},f)),c&&d.text.css({pointerEvents:"none"})),d.on("touchstart",(function(t){return t.stopPropagation()})).on("click",(function(t){3!==p&&r.call(d,t)}))}},{key:"crispLine",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"round",s=t[0],r=t[1];return T(s[1])&&s[1]===r[1]&&(s[1]=r[1]=Math[i](s[1])-e%2/2),T(s[2])&&s[2]===r[2]&&(s[2]=r[2]=Math[i](s[2])+e%2/2),t}},{key:"path",value:function(t){var e=this.styledMode?{}:{fill:"none"};return E(t)?e.d=t:D(t)&&L(e,t),this.createElement("path").attr(e)}},{key:"circle",value:function(t,e,i){return t=D(t)?t:"undefined"===typeof t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)}},{key:"arc",value:function(t,e,i,s,r,n){return D(t)?(e=(s=t).y,i=s.r,t=s.x):s={innerR:s,start:r,end:n},(t=this.symbol("arc",t,e,i,i,s)).r=i,t}},{key:"rect",value:function(t,e,i,s,r,n){t=D(t)?t:"undefined"===typeof t?{}:{x:t,y:e,r:r,width:Math.max(i||0,0),height:Math.max(s||0,0)};var o=this.createElement("rect");return this.styledMode||("undefined"!==typeof n&&(t["stroke-width"]=n,L(t,o.crisp(t))),t.fill="none"),o.rSetter=function(t,e,i){o.r=t,M(i,{rx:t,ry:t})},o.rGetter=function(){return o.r||0},o.attr(t)}},{key:"roundedRect",value:function(t){return this.symbol("roundedRect").attr(t)}},{key:"setSize",value:function(t,e,i){this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:B(i,!0)?void 0:0}),this.alignElements()}},{key:"g",value:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e}},{key:"image",value:function(t,e,i,s,r,n){var o={preserveAspectRatio:"none"};O(e)&&(o.x=e),O(i)&&(o.y=i),O(s)&&(o.width=s),O(r)&&(o.height=r);var a=this.createElement("image").attr(o);return e=function(e){a.attr({href:t}),n.call(a,e)},n?(a.attr({href:"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}),i=new A.Image,S(i,"load",e),i.src=t,i.complete&&e({})):a.attr({href:t}),a}},{key:"symbol",value:function(t,e,i,s,r,n){var o,a,h,l,c=this,u=/^url\((.*?)\)$/,p=u.test(t),f=!p&&(this.symbols[t]?t:"circle"),m=f&&this.symbols[f];if(m)"number"===typeof e&&(a=m.call(this.symbols,Math.round(e||0),Math.round(i||0),s||0,r||0,n)),o=this.path(a),c.styledMode||o.attr("fill","none"),L(o,{symbolName:f||void 0,x:e,y:i,width:s,height:r}),n&&L(o,n);else if(p){h=t.match(u)[1];var v=o=this.image(h);v.imgwidth=B(n&&n.width,k[h]&&k[h].width),v.imgheight=B(n&&n.height,k[h]&&k[h].height),l=function(t){return t.attr({width:t.width,height:t.height})},["width","height"].forEach((function(t){v[t+"Setter"]=function(t,e){this[e]=t;var i=this.alignByTranslate,s=this.element,r=this.width,o=this.height,a=this.imgwidth,h=this.imgheight;if(t=this["img"+e],T(t)){var l=1;n&&"within"===n.backgroundSize&&r&&o?(l=Math.min(r/a,o/h),M(s,{width:Math.round(a*l),height:Math.round(h*l)})):s&&s.setAttribute(e,t),i||this.translate(((r||0)-a*l)/2,((o||0)-h*l)/2)}}})),T(e)&&v.attr({x:e,y:i}),v.isImg=!0,T(v.imgwidth)&&T(v.imgheight)?l(v):(v.attr({width:0,height:0}),C("img",{onload:function(){var t=d[c.chartIndex];0===this.width&&(w(this,{position:"absolute",top:"-999em"}),g.body.appendChild(this)),k[h]={width:this.width,height:this.height},v.imgwidth=this.width,v.imgheight=this.height,v.element&&l(v),this.parentNode&&this.parentNode.removeChild(this),c.imgCount--,c.imgCount||!t||t.hasLoaded||t.onload()},src:h}),this.imgCount++)}return o}},{key:"clipRect",value:function(t,e,i,s){var r=z()+"-",n=this.createElement("clipPath").attr({id:r}).add(this.defs);return(t=this.rect(t,e,i,s,0).add(n)).id=r,t.clipPath=n,t.count=0,t}},{key:"text",value:function(t,e,i,s){var r={};return!s||!this.allowHTML&&this.forExport?(r.x=Math.round(e||0),i&&(r.y=Math.round(i)),T(t)&&(r.text=t),t=this.createElement("text").attr(r),(!s||this.forExport&&!this.allowHTML)&&(t.xSetter=function(t,e,i){for(var s,r=i.getElementsByTagName("tspan"),n=i.getAttribute(e),o=0;o(t=I(r.prototype.getStyle.call(t,"font-size")||0))?t+3:Math.round(1.2*t);return{h:e,b:Math.round(.8*e),f:t}}},{key:"rotCorr",value:function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*u),4)),{x:-t/3*Math.sin(e*u),y:s}}},{key:"pathToSegments",value:function(t){for(var e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},r=0;r":">","'":"'",'"':"""},symbols:o,draw:x}),s.registerRendererType("svg",N,!0),N})),e(i,"Core/Renderer/HTML/HTMLElement.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=t.isFirefox,r=t.isMS,n=t.isWebKit,o=t.win,a=i.css,h=i.defined,l=i.extend,c=i.pick,g=i.pInt,m=[],v=function(t){d(v,t);var e=u(v);function v(){return p(this,v),e.apply(this,arguments)}return f(v,[{key:"getSpanCorrection",value:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}},{key:"htmlCss",value:function(t){var e,i="SPAN"===this.element.tagName&&t&&"width"in t,s=c(i&&t.width,void 0);return i&&(delete t.width,this.textWidth=s,e=!0),t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=l(this.styles,t),a(this.element,t),e&&this.htmlUpdateTransform(),this}},{key:"htmlGetBBox",value:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}},{key:"htmlUpdateTransform",value:function(){if(this.added){var t=this.renderer,e=this.element,i=this.x||0,s=this.y||0,r=this.textAlign||"left",n={left:0,center:.5,right:1}[r],o=this.styles,l=o&&o.whiteSpace;if(a(e,{marginLeft:this.translateX||0,marginTop:this.translateY||0}),"SPAN"===e.tagName){o=this.rotation;var c=this.textWidth&&g(this.textWidth),d=[o,r,e.innerHTML,this.textWidth,this.textAlign].join(),u=!1;if(c!==this.oldTextWidth){if(this.textPxLength)var p=this.textPxLength;else a(e,{width:"",whiteSpace:l||"nowrap"}),p=e.offsetWidth;(c>this.oldTextWidth||p>c)&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)&&(a(e,{width:p>c||o?c+"px":"auto",display:"block",whiteSpace:l||"normal"}),this.oldTextWidth=c,u=!0)}this.hasBoxWidthChanged=u,d!==this.cTT&&(t=t.fontMetrics(e).b,!h(o)||o===(this.oldRotation||0)&&r===this.oldAlign||this.setSpanRotation(o,n,t),this.getSpanCorrection(!h(o)&&this.textPxLength||e.offsetWidth,t,n,o,r)),a(e,{left:i+(this.xCorr||0)+"px",top:s+(this.yCorr||0)+"px"}),this.cTT=d,this.oldRotation=o,this.oldAlign=r}}else this.alignOnAdd=!0}},{key:"setSpanRotation",value:function(t,e,i){var h={},l=r&&!/Edge/.test(o.navigator.userAgent)?"-ms-transform":n?"-webkit-transform":s?"MozTransform":o.opera?"-o-transform":void 0;l&&(h[l]=h.transform="rotate("+t+"deg)",h[l+(s?"Origin":"-origin")]=h.transformOrigin=100*e+"% "+i+"px",a(this.element,h))}}],[{key:"compose",value:function(t){if(i.pushUnique(m,t)){var e=v.prototype,s=t.prototype;s.getSpanCorrection=e.getSpanCorrection,s.htmlCss=e.htmlCss,s.htmlGetBBox=e.htmlGetBBox,s.htmlUpdateTransform=e.htmlUpdateTransform,s.setSpanRotation=e.setSpanRotation}return t}}]),v}(e);return v})),e(i,"Core/Renderer/HTML/HTMLRenderer.js",[i["Core/Renderer/HTML/AST.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var r=s.attr,n=s.createElement,o=s.extend,a=s.pick,h=[],l=function(i){d(c,i);var l=u(c);function c(){return p(this,c),l.apply(this,arguments)}return f(c,[{key:"html",value:function(i,s,h){var l=this.createElement("span"),c=l.element,d=l.renderer,u=function(t,i){["opacity","visibility"].forEach((function(s){t[s+"Setter"]=function(r,n,o){var a=t.div?t.div.style:i;e.prototype[s+"Setter"].call(this,r,n,o),a&&(a[n]=r)}})),t.addedSetters=!0};return l.textSetter=function(e){e!==this.textStr&&(delete this.bBox,delete this.oldTextWidth,t.setElementHTML(this.element,a(e,"")),this.textStr=e,l.doTransform=!0)},u(l,l.element.style),l.xSetter=l.ySetter=l.alignSetter=l.rotationSetter=function(t,e){"align"===e?l.alignValue=l.textAlign=t:l[e]=t,l.doTransform=!0},l.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},l.attr({text:i,x:Math.round(s),y:Math.round(h)}).css({position:"absolute"}),d.styledMode||l.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),c.style.whiteSpace="nowrap",l.css=l.htmlCss,l.add=function(t){var e,i=d.box.parentNode,s=[];if(this.parentGroup=t){if(!(e=t.div)){for(;t;)s.push(t),t=t.parentGroup;s.reverse().forEach((function(t){function a(e,i){t[i]=e,"translateX"===i?d.left=e+"px":d.top=e+"px",t.doTransform=!0}var h=r(t.element,"class"),c=t.styles||{},d=(e=t.div=t.div||n("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,visibility:t.visibility},e||i)).style;o(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(e),css:function(e){return l.css.call(t,e),["cursor","pointerEvents"].forEach((function(t){e[t]&&(d[t]=e[t])})),t},on:function(){return s[0].div&&l.on.apply({element:s[0].div,onEvents:t.onEvents},arguments),t},translateXSetter:a,translateYSetter:a}),t.addedSetters||u(t),t.css(c)}))}}else e=i;return e.appendChild(c),l.added=!0,l.alignOnAdd&&l.htmlUpdateTransform(),l},l}}],[{key:"compose",value:function(t){return s.pushUnique(h,t)&&(t.prototype.html=c.prototype.html),t}}]),c}(i);return l})),e(i,"Core/Axis/AxisDefaults.js",[],(function(){var t;return function(t){t.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"},t.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(){return(0,this.axis.chart.numberFormatter)(this.total||0,-1)},style:{color:"#000000",fontSize:"0.7em",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},t.defaultLeftAxisOptions={title:{rotation:270}},t.defaultRightAxisOptions={title:{rotation:90}},t.defaultBottomAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}},t.defaultTopAxisOptions={labels:{autoRotation:[-45]},margin:15,title:{rotation:0}}}(t||(t={})),t})),e(i,"Core/Foundation.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.addEvent,s=t.isFunction,r=t.objectEach,n=t.removeEvent;return function(t){t.registerEventOptions=function(t,e){t.eventOptions=t.eventOptions||{},r(e.events,(function(e,r){t.eventOptions[r]!==e&&(t.eventOptions[r]&&(n(t,r,t.eventOptions[r]),delete t.eventOptions[r]),s(e)&&(t.eventOptions[r]=e,i(t,r,e,{order:0})))}))}}(e||(e={})),e})),e(i,"Core/Axis/Tick.js",[i["Core/Templating.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=e.deg2rad,r=i.clamp,n=i.correctFloat,o=i.defined,a=i.destroyObjectProperties,h=i.extend,l=i.fireEvent,c=i.isNumber,d=i.merge,u=i.objectEach,g=i.pick,m=function(){function e(t,i,s,r,n){p(this,e),this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=i,this.type=s||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,l(this,"init"),s||r||this.addLabel()}return f(e,[{key:"addLabel",value:function(){var e=this,i=e.axis,s=i.options,r=i.chart,a=i.categories,d=i.logarithmic,u=i.names,p=e.pos,f=g(e.options&&e.options.labels,s.labels),m=i.tickPositions,v=p===m[0],y=p===m[m.length-1],x=(!f.step||1===f.step)&&1===i.tickInterval;m=m.info;var b,k,A,S=e.label;a=this.parameters.category||(a?g(a[p],u[p],p):p),d&&c(a)&&(a=n(d.lin2log(a))),i.dateTime&&(m?b=(k=r.time.resolveDTLFormat(s.dateTimeLabelFormats[!s.grid&&m.higherRanks[p]||m.unitName])).main:c(a)&&(b=i.dateTime.getXDateFormat(a,s.dateTimeLabelFormats||{}))),e.isFirst=v,e.isLast=y;var M={axis:i,chart:r,dateTimeLabelFormat:b,isFirst:v,isLast:y,pos:p,tick:e,tickPositionInfo:m,value:a};l(this,"labelFormat",M);var C=function(e){return f.formatter?f.formatter.call(e,e):f.format?(e.text=i.defaultLabelFormatter.call(e,e),t.format(f.format,e,r)):i.defaultLabelFormatter.call(e,e)};s=C.call(M,M);var w=k&&k.list;e.shortenLabel=w?function(){for(A=0;Ac&&r-d*uo&&(h=Math.round((n-r)/Math.cos(c*s))):(n=r+(1-d)*u,r-d*uo&&(m=o-t.x+m*d,v=-1),(m=Math.min(p,m))m||e.autoRotation&&(l.styles||{}).width)&&(h=m)),h&&(this.shortenLabel?this.shortenLabel():(f.width=Math.floor(h)+"px",(i.style||{}).textOverflow||(f.textOverflow="ellipsis"),l.css(f)))}},{key:"moveLabel",value:function(t,e){var i=this,s=i.label,r=i.axis,n=!1;s&&s.textStr===t?(i.movedLabel=s,n=!0,delete i.label):u(r.ticks,(function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),n||!i.labelPos&&!s||(s=i.labelPos||s.xy,i.movedLabel=i.createLabel(s,t,e),i.movedLabel&&i.movedLabel.attr({opacity:0}))}},{key:"render",value:function(t,e,i){var s=this.axis,r=s.horiz,n=this.pos,o=g(this.tickmarkOffset,s.tickmarkOffset);o=(n=this.getPosition(r,n,o,e)).x;var a=n.y;s=r&&o===s.pos+s.len||!r&&a===s.pos?-1:1,r=g(i,this.label&&this.label.newOpacity,1),i=g(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(n,i,s),this.renderLabel(n,e,r,t),this.isNew=!1,l(this,"afterRender")}},{key:"renderGridLine",value:function(t,e,i){var s=this.axis,r=s.options,n={},o=this.pos,a=this.type,h=g(this.tickmarkOffset,s.tickmarkOffset),l=s.chart.renderer,c=this.gridLine,d=r.gridLineWidth,u=r.gridLineColor,p=r.gridLineDashStyle;"minor"===this.type&&(d=r.minorGridLineWidth,u=r.minorGridLineColor,p=r.minorGridLineDashStyle),c||(s.chart.styledMode||(n.stroke=u,n["stroke-width"]=d||0,n.dashstyle=p),a||(n.zIndex=1),t&&(e=0),this.gridLine=c=l.path().attr(n).addClass("highcharts-"+(a?a+"-":"")+"grid-line").add(s.gridGroup)),c&&(i=s.getPlotLinePath({value:o+h,lineWidth:c.strokeWidth()*i,force:"pass",old:t,acrossPanes:!1}))&&c[t||this.isNew?"attr":"animate"]({d:i,opacity:e})}},{key:"renderMark",value:function(t,e,i){var s=this.axis,r=s.options,n=s.chart.renderer,o=this.type,a=s.tickSize(o?o+"Tick":"tick"),h=t.x;t=t.y;var l=g(r["minor"!==o?"tickWidth":"minorTickWidth"],!o&&s.isXAxis?1:0);r=r["minor"!==o?"tickColor":"minorTickColor"];var c=this.mark,d=!c;a&&(s.opposite&&(a[0]=-a[0]),c||(this.mark=c=n.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||c.attr({stroke:r,"stroke-width":l})),c[d?"attr":"animate"]({d:this.getMarkPath(h,t,a[0],c.strokeWidth()*i,s.horiz,n),opacity:e}))}},{key:"renderLabel",value:function(t,e,i,s){var r=this.axis,n=r.horiz,o=r.options,a=this.label,h=o.labels,l=h.step;r=g(this.tickmarkOffset,r.tickmarkOffset);var d=t.x;t=t.y;var u=!0;a&&c(d)&&(a.xy=t=this.getLabelPosition(d,t,a,n,h,r,s,l),this.isFirst&&!this.isLast&&!o.showFirstLabel||this.isLast&&!this.isFirst&&!o.showLastLabel?u=!1:!n||h.step||h.rotation||e||0===i||this.handleOverflow(t),l&&s%l&&(u=!1),u&&c(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t).show(!0),this.isNewLabel=!1):(a.hide(),this.isNewLabel=!0))}},{key:"replaceMovedLabel",value:function(){var t=this.label,e=this.axis;t&&!this.isNew&&(t.animate({opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel}}]),e}();return m})),e(i,"Core/Axis/Axis.js",[i["Core/Animation/AnimationUtilities.js"],i["Core/Axis/AxisDefaults.js"],i["Core/Color/Color.js"],i["Core/Defaults.js"],i["Core/Foundation.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"]],(function(t,e,i,s,r,n,o,a){var h=t.animObject,c=s.defaultOptions,d=r.registerEventOptions,u=n.deg2rad,g=a.arrayMax,m=a.arrayMin,v=a.clamp,y=a.correctFloat,x=a.defined,b=a.destroyObjectProperties,k=a.erase,A=a.error,S=a.extend,M=a.fireEvent,C=a.getClosestDistance,w=a.insertItem,T=a.isArray,P=a.isNumber,L=a.isString,E=a.merge,O=a.normalizeTickInterval,D=a.objectEach,j=a.pick,R=a.relativeLength,B=a.removeEvent,I=a.splat,z=a.syncTimeout,N=function(t,e){return O(e,void 0,void 0,j(t.options.allowDecimals,.5>e||void 0!==t.tickAmount),!!t.tickAmount)},G=function(){function t(e,i,s){p(this,t),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(e,i,s)}return f(t,[{key:"init",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.coll,s="xAxis"===i;this.chart=t,this.horiz=this.isZAxis||(t.inverted?!s:s),this.isXAxis=s,this.coll=i,M(this,"init",{userOptions:e}),this.opposite=j(e.opposite,this.opposite),this.side=j(e.side,this.side,this.horiz?this.opposite?0:2:this.opposite?1:3),this.setOptions(e);var r=(i=this.options).labels,n=i.type;this.userOptions=e,this.minPixelPadding=0,this.reversed=j(i.reversed,this.reversed),this.visible=i.visible,this.zoomEnabled=i.zoomEnabled,this.hasNames="category"===n||!0===i.categories,this.categories=i.categories||(this.hasNames?[]:void 0),this.names||(this.names=[],this.names.keys={}),this.plotLinesAndBandsGroups={},this.positiveValuesOnly=!!this.logarithmic,this.isLinked=x(i.linkedTo),this.ticks={},this.labelEdge=[],this.minorTicks={},this.plotLinesAndBands=[],this.alternateBands={},this.len=0,this.minRange=this.userMinRange=i.minRange||i.maxZoom,this.range=i.range,this.offset=i.offset||0,this.min=this.max=null,e=j(i.crosshair,I(t.options.tooltip.crosshairs)[s?0:1]),this.crosshair=!0===e?{}:e,-1===t.axes.indexOf(this)&&(s?t.axes.splice(t.xAxis.length,0,this):t.axes.push(this),w(this,t[this.coll])),t.orderItems(this.coll),this.series=this.series||[],t.inverted&&!this.isZAxis&&s&&"undefined"===typeof this.reversed&&(this.reversed=!0),this.labelRotation=P(r.rotation)?r.rotation:void 0,d(this,i),M(this,"afterInit")}},{key:"setOptions",value:function(t){this.options=E(e.defaultXAxisOptions,"yAxis"===this.coll&&e.defaultYAxisOptions,[e.defaultTopAxisOptions,e.defaultRightAxisOptions,e.defaultBottomAxisOptions,e.defaultLeftAxisOptions][this.side],E(c[this.coll],t)),M(this,"afterSetOptions",{userOptions:t})}},{key:"defaultLabelFormatter",value:function(t){var e=this.axis;t=this.chart.numberFormatter;var i=P(this.value)?this.value:NaN,s=e.chart.time,r=this.dateTimeLabelFormat,n=c.lang,o=n.numericSymbols;n=n.numericSymbolMagnitude||1e3;var a,h=e.logarithmic?Math.abs(i):e.tickInterval,l=o&&o.length;if(e.categories)a="".concat(this.value);else if(r)a=s.dateFormat(r,i);else if(l&&1e3<=h)for(;l--&&"undefined"===typeof a;)h>=(e=Math.pow(n,l+1))&&0===10*i%e&&null!==o[l]&&0!==i&&(a=t(i/e,-1)+o[l]);return"undefined"===typeof a&&(a=1e4<=Math.abs(i)?t(i,-1):t(i,-1,void 0,"")),a}},{key:"getSeriesExtremes",value:function(){var t,e=this,i=e.chart;M(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.series.forEach((function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var r,n,o=s.options,a=o.threshold;e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=a&&(a=null),e.isXAxis?(o=s.xData)&&o.length&&(o=e.logarithmic?o.filter((function(t){return 0i)&&(x?t=v(t,e,i):o=!0),t}var i,s,r,n,o,a=this,h=a.chart,l=a.left,c=a.top,d=t.old,u=t.value,p=t.lineWidth,f=d&&h.oldChartHeight||h.chartHeight,g=d&&h.oldChartWidth||h.chartWidth,m=a.transB,y=t.translatedValue,x=t.force;return t={value:u,lineWidth:p,old:d,force:x,acrossPanes:t.acrossPanes,translatedValue:y},M(this,"getPlotLinePath",t,(function(t){y=j(y,a.translate(u,void 0,void 0,d)),y=v(y,-1e5,1e5),i=r=Math.round(y+m),s=n=Math.round(f-y-m),P(y)?a.horiz?(s=c,n=f-a.bottom,i=r=e(i,l,l+a.width)):(i=l,r=g-a.right,s=n=e(s,c,c+a.height)):(o=!0,x=!1),t.path=o&&!x?null:h.renderer.crispLine([["M",i,s],["L",r,n]],p||1)})),t.path}},{key:"getLinearTickPositions",value:function(t,e,i){var s=y(Math.floor(e/t)*t);i=y(Math.ceil(i/t)*t);var r,n,o=[];if(y(s+t)===s&&(n=20),this.single)return[e];for(e=s;e<=i&&(o.push(e),(e=y(e+t,n))!==r);)r=e;return o}},{key:"getMinorTickInterval",value:function(){var t=this.options;return!0===t.minorTicks?j(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval}},{key:"getMinorTickPositions",value:function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=this.pointRangePadding||0,r=this.min-s,n=(s=this.max+s)-r,o=[];if(n&&n/i=this.minRange,t=[r-(n=((e=this.minRange)-n+r)/2),j(i.min,r-n)],o&&(t[2]=s?s.log2lin(this.dataMin):this.dataMin),n=[(r=g(t))+e,j(i.max,r+e)],o&&(n[2]=s?s.log2lin(this.dataMax):this.dataMax),(n=m(n))-r=g?(m=g,p=0):this.dataMax<=g&&(e=g,u=0)),this.min=j(i,m,this.dataMin),this.max=j(s,e,this.dataMax);if(n&&(this.positiveValuesOnly&&!t&&0>=Math.min(this.min,j(this.dataMin,this.min))&&A(10,1,r),this.min=y(n.log2lin(this.min),16),this.max=y(n.log2lin(this.max),16)),this.range&&x(this.max)&&(this.userMin=this.min=i=Math.max(this.dataMin,this.minFromRange()),this.userMax=s=this.max,this.range=null),M(this,"foundExtremes"),this.beforePadding&&this.beforePadding(),this.adjustForMinRange(),!P(this.userMin)&&P(o.softMin)&&o.softMinthis.max&&(this.max=s=o.softMax),!(c||this.axisPointRange||this.stacking&&this.stacking.usePercentage||h)&&x(this.min)&&x(this.max)&&(r=this.max-this.min)&&(!x(i)&&p&&(this.min-=r*p),!x(s)&&u&&(this.max+=r*u)),!P(this.userMin)&&P(o.floor)&&(this.min=Math.max(this.min,o.floor)),!P(this.userMax)&&P(o.ceiling)&&(this.max=Math.min(this.max,o.ceiling)),d&&x(this.dataMin)&&(g=g||0,!x(i)&&this.min=g?this.min=this.options.minRange?Math.min(g,this.max-this.minRange):g:!x(s)&&this.max>g&&this.dataMax<=g&&(this.max=this.options.minRange?Math.max(g,this.min+this.minRange):g)),P(this.min)&&P(this.max)&&!this.chart.polar&&this.min>this.max&&(x(this.options.min)?this.max=this.min:x(this.options.max)&&(this.min=this.max)),this.tickInterval=this.min===this.max||"undefined"===typeof this.min||"undefined"===typeof this.max?1:h&&this.linkedParent&&!f&&l===this.linkedParent.options.tickPixelInterval?f=this.linkedParent.tickInterval:j(f,this.tickAmount?(this.max-this.min)/Math.max(this.tickAmount-1,1):void 0,c?1:(this.max-this.min)*l/Math.max(this.len,l)),a&&!t){var v=this.min!==(this.old&&this.old.min)||this.max!==(this.old&&this.old.max);this.series.forEach((function(t){t.forceCrop=t.forceCropping&&t.forceCropping(),t.processData(v)})),M(this,"postProcessData",{hasExtremesChanged:v})}this.setAxisTranslation(),M(this,"initialAxisTranslation"),this.pointRange&&!f&&(this.tickInterval=Math.max(this.pointRange,this.tickInterval)),t=j(o.minTickInterval,this.dateTime&&!this.series.some((function(t){return t.noSharedTooltip}))?this.closestPointRange:0),!f&&this.tickIntervalMath.max(2*this.len,200)))if(this.dateTime)o=this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.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(r=e=this.tickInterval;r<=2*e&&(o=this.getLinearTickPositions(this.tickInterval,this.min,this.max),this.tickAmount&&o.length>this.tickAmount);)this.tickInterval=N(this,r*=1.1);else o=[this.min,this.max],A(19,!1,this.chart);o.length>this.len&&(o=[o[0],o[o.length-1]])[0]===o[1]&&(o.length=1),s&&(this.tickPositions=o,(t=s.apply(this,[this.min,this.max]))&&(o=t))}this.tickPositions=o,this.paddedTicks=o.slice(0),this.trimTicks(o,a,n),!this.isLinked&&P(this.min)&&P(this.max)&&(this.single&&2>o.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),i||t||this.adjustTickAmount()),M(this,"afterSetTickPositions")}},{key:"trimTicks",value:function(t,e,i){var s=t[0],r=t[t.length-1],n=!this.isOrdinal&&this.minPointOffset||0;if(M(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-n>t[0];)t.shift();if(i)this.max=r;else for(;this.max+ni&&(this.finalTickAmt=i,i=5),this.tickAmount=i}},{key:"adjustTickAmount",value:function(){var t,e=this,i=e.finalTickAmt,s=e.max,r=e.min,n=e.options,o=e.tickPositions,a=e.tickAmount,h=e.thresholdAlignment,l=o&&o.length,c=j(e.threshold,e.softThreshold?0:null),d=e.tickInterval;if(P(h)&&(t=.5>h?Math.ceil(h*(a-1)):Math.floor(h*(a-1)),n.reversed&&(t=a-1-t)),e.hasData()&&P(r)&&P(s)){var u=function(){e.transA*=(l-1)/(a-1),e.min=n.startOnTick?o[0]:Math.min(r,o[0]),e.max=n.endOnTick?o[o.length-1]:Math.max(s,o[o.length-1])};if(P(t)&&P(e.threshold)){for(;o[t]!==c||o.length!==a||o[0]>r||o[o.length-1]e.threshold?o.unshift(y(o[0]-d)):o.push(y(o[o.length-1]+d));if(d>8*e.tickInterval)break;d*=2}u()}else if(l=i&&0a&&(e=a)),x(r)&&(na&&(n=a))),i.displayBtn="undefined"!==typeof e||"undefined"!==typeof n,i.setExtremes(e,n,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed}},{key:"setAxisSize",value:function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,r=this.width=Math.round(R(j(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),n=this.height=Math.round(R(j(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),o=this.top=Math.round(R(j(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(R(j(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-n-o,this.right=t.chartWidth-r-e,this.len=Math.max(s?r:n,0),this.pos=s?e:o}},{key:"getExtremes",value:function(){var t=this.logarithmic;return{min:t?y(t.lin2log(this.min)):this.min,max:t?y(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}}},{key:"getThreshold",value:function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:ee?t.align="right":195e&&(t.align="left")})),t.align}},{key:"tickSize",value:function(t){var e,i=this.options,s=j(i["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0),r=i["tick"===t?"tickLength":"minorTickLength"];return s&&r&&("inside"===i[t+"Position"]&&(r=-r),e=[r,s]),M(this,"afterTickSize",t={tickSize:e}),t.tickSize}},{key:"labelMetrics",value:function(){var t=this.chart.renderer,e=this.ticks;return e=e[Object.keys(e)[0]]||{},this.chart.renderer.fontMetrics(e.label||e.movedLabel||t.box)}},{key:"unsquish",value:function(){var t,e,i=this.options.labels,s=this.horiz,r=this.tickInterval,n=this.len/(((this.categories?1:0)+this.max-this.min)/r),o=i.rotation,a=.75*this.labelMetrics().h,h=Math.max(this.max-this.min,0),c=function(t){var e=t/(n||1);return(e=1h&&1/0!==t&&1/0!==n&&h&&(e=Math.ceil(h/r)),y(e*r)},d=r,p=Number.MAX_VALUE;if(s){if(i.staggerLines||(P(o)?e=[o]:n=v)&&(f=(s=c(Math.abs(a/Math.sin(u*v))))+Math.abs(v/360))s.step)return s.rotation?0:(this.staggerLines||1)*this.len/r;if(!i){if(void 0!==(t=s.style.width))return parseInt(String(t),10);if(n)return n-e.spacing[3]}return.33*e.chartWidth}},{key:"renderUnsquish",value:function(){var t,e,i=this.chart,s=i.renderer,r=this.tickPositions,n=this.ticks,o=this.options.labels,a=o.style,h=this.horiz,l=this.getSlotWidth(),c=Math.max(1,Math.round(l-2*o.padding)),d={},u=this.labelMetrics(),p=a.textOverflow,f=0;if(L(o.rotation)||(d.rotation=o.rotation||0),r.forEach((function(t){(t=n[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>f&&(f=t.label.textPxLength)})),this.maxLabelLength=f,this.autoRotation)f>c&&f>u.h?d.rotation=this.labelRotation:this.labelRotation=0;else if(l&&(t=c,!p))for(e="clip",c=r.length;!h&&c--;){var g=r[c];(g=n[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>l&&g.css({width:l+"px"}),g.getBBox().height>this.len/r.length-(u.h-u.f)&&(g.specificTextOverflow="ellipsis"))}d.rotation&&(t=f>.5*i.chartHeight?.33*i.chartHeight:f,p||(e="ellipsis")),(this.labelAlign=o.align||this.autoLabelAlign(this.labelRotation))&&(d.align=this.labelAlign),r.forEach((function(i){var s=(i=n[i])&&i.label,r=a.width,o={};s&&(s.attr(d),i.shortenLabel?i.shortenLabel():t&&!r&&"nowrap"!==a.whiteSpace&&(t=this.min&&t<=this.max||this.grid&&this.grid.isColumn)&&(s[t]||(s[t]=new o(this,t)),i&&s[t].isNew&&s[t].render(e,!0,-1),s[t].render(e))}},{key:"render",value:function(){var t,e,i=this,s=i.chart,r=i.logarithmic,a=i.options,l=i.isLinked,c=i.tickPositions,d=i.axisTitle,u=i.ticks,p=i.minorTicks,f=i.alternateBands,g=a.stackLabels,m=a.alternateGridColor,v=a.crossing,y=i.tickmarkOffset,x=i.axisLine,b=i.showAxis,k=h(s.renderer.globalAnimation);if(i.labelEdge.length=0,i.overlap=!1,[u,p,f].forEach((function(t){D(t,(function(t){t.isActive=!1}))})),P(v)){var A=this.isXAxis?s.yAxis[0]:s.xAxis[0],S=[1,-1,-1,1][this.side];A&&(v=A.toPixels(v,!0),i.horiz&&(v=A.len-v),i.offset=S*v)}if(i.hasData()||l){var C=i.chart.hasRendered&&i.old&&P(i.old.min);i.minorTickInterval&&!i.categories&&i.getMinorTickPositions().forEach((function(t){i.renderMinorTick(t,C)})),c.length&&(c.forEach((function(t,e){i.renderTick(t,e,C)})),y&&(0===i.min||i.single)&&(u[-1]||(u[-1]=new o(i,-1,null,!0)),u[-1].render(-1))),m&&c.forEach((function(o,a){e="undefined"!==typeof c[a+1]?c[a+1]+y:i.max-y,0===a%2&&oe&&(!n||p<=i)&&"undefined"!==typeof p&&l.push(p),p>i&&(f=!0),p=u}else e=this.lin2log(e),i=this.lin2log(i),t=n?o.getMinorTickInterval():h.tickInterval,t=r("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(n?5:1)*(i-e)/((n?a/o.tickPositions.length:a)||1)),t=s(t),l=o.getLinearTickPositions(t,e,i).map(this.log2lin),n||(this.minorAutoInterval=t/5);return n||(o.tickInterval=t),l}},{key:"lin2log",value:function(t){return Math.pow(10,t)}},{key:"log2lin",value:function(t){return Math.log(t)/Math.LN10}}]),t}();e.Additions=h}(e||(e={})),e})),e(i,"Core/Axis/PlotLineOrBand/PlotLineOrBandAxis.js",[i["Core/Utilities.js"]],(function(t){var e,i=t.erase,s=t.extend,r=t.isNumber;return function(e){function n(t){return this.addPlotBandOrLine(t,"plotBands")}function o(t,e){var i=this,s=this.userOptions,r=new u(this,t);if(this.visible&&(r=r.render()),r){if(this._addedPlotLB||(this._addedPlotLB=!0,(s.plotLines||[]).concat(s.plotBands||[]).forEach((function(t){i.addPlotBandOrLine(t)}))),e){var n=s[e]||[];n.push(t),s[e]=n}this.plotLinesAndBands.push(r)}return r}function a(t){return this.addPlotBandOrLine(t,"plotLines")}function h(t,e){var i,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.options,n=this.getPlotLinePath({value:e,force:!0,acrossPanes:s.acrossPanes}),o=[],a=this.horiz;if(e=!r(this.min)||!r(this.max)||tthis.max&&e>this.max,t=this.getPlotLinePath({value:t,force:!0,acrossPanes:s.acrossPanes}),s=1,t&&n)for(e&&(i=t.toString()===n.toString(),s=0),e=0;ev-o?v:v-o);else{if(!m)return!1;n[t]=Math.max(l,h+o+i>e?h:h+o)}},v=function(t,e,i,s,o){var a;return oe-r?a=!1:n[t]=oe-s/2?e-s-2:o-i/2,a},y=function(t){var e=p;p=f,f=e,u=t};return(s.inverted||1