Current section
Files
Jump to
Current section
Files
dist/js/app.js
(()=>{var ji=Object.create;var qo=Object.defineProperty;var Ji=Object.getOwnPropertyDescriptor;var Zi=Object.getOwnPropertyNames;var $i=Object.getPrototypeOf,Qi=Object.prototype.hasOwnProperty;var Xi=(e,n)=>()=>(n||e((n={exports:{}}).exports,n),n.exports);var er=(e,n,i,l)=>{if(n&&typeof n=="object"||typeof n=="function")for(let s of Zi(n))!Qi.call(e,s)&&s!==i&&qo(e,s,{get:()=>n[s],enumerable:!(l=Ji(n,s))||l.enumerable});return e};var tr=(e,n,i)=>(i=e!=null?ji($i(e)):{},er(n||!e||!e.__esModule?qo(i,"default",{value:e,enumerable:!0}):i,e));var Jo=Xi((jo,Zl)=>{(function(e,n){"use strict";function i(){l.width=e.innerWidth,l.height=5*m.barThickness;var w=l.getContext("2d");w.shadowBlur=m.shadowBlur,w.shadowColor=m.shadowColor;var h,b=w.createLinearGradient(0,0,l.width,0);for(h in m.barColors)b.addColorStop(h,m.barColors[h]);w.lineWidth=m.barThickness,w.beginPath(),w.moveTo(0,m.barThickness/2),w.lineTo(Math.ceil(s*l.width),m.barThickness/2),w.strokeStyle=b,w.stroke()}var l,s,a,u=null,p=null,d=null,m={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},S={config:function(w){for(var h in w)m.hasOwnProperty(h)&&(m[h]=w[h])},show:function(w){var h,b;a||(w?d=d||setTimeout(()=>S.show(),w):(a=!0,p!==null&&e.cancelAnimationFrame(p),l||((b=(l=n.createElement("canvas")).style).position="fixed",b.top=b.left=b.right=b.margin=b.padding=0,b.zIndex=100001,b.display="none",m.className&&l.classList.add(m.className),n.body.appendChild(l),h="resize",w=i,(b=e).addEventListener?b.addEventListener(h,w,!1):b.attachEvent?b.attachEvent("on"+h,w):b["on"+h]=w),l.style.opacity=1,l.style.display="block",S.progress(0),m.autoRun&&function L(){u=e.requestAnimationFrame(L),S.progress("+"+.05*Math.pow(1-Math.sqrt(s),2))}()))},progress:function(w){return w===void 0||(typeof w=="string"&&(w=(0<=w.indexOf("+")||0<=w.indexOf("-")?s:0)+parseFloat(w)),s=1<w?1:w,i()),s},hide:function(){clearTimeout(d),d=null,a&&(a=!1,u!=null&&(e.cancelAnimationFrame(u),u=null),function w(){return 1<=S.progress("+.1")&&(l.style.opacity-=.05,l.style.opacity<=.05)?(l.style.display="none",void(p=null)):void(p=e.requestAnimationFrame(w))}())}};typeof Zl=="object"&&typeof Zl.exports=="object"?Zl.exports=S:typeof define=="function"&&define.amd?define(function(){return S}):this.topbar=S}).call(jo,window,document)});var pn=tr(Jo());var Me="u-",lr="uplot",nr=Me+"hz",or=Me+"vt",sr=Me+"title",ir=Me+"wrap",rr=Me+"under",fr=Me+"over",ur=Me+"axis",Nt=Me+"off",ar=Me+"select",cr=Me+"cursor-x",hr=Me+"cursor-y",pr=Me+"cursor-pt",mr=Me+"legend",dr=Me+"live",gr=Me+"inline",wr=Me+"series",Sr=Me+"marker",Zo=Me+"label",_r=Me+"value",Ll="width",Cl="height",Pl="top",$o="bottom",tl="left",On="right",Xn="#000",Qo=Xn+"0",Xo="mousemove",es="mousedown",Hn="mouseup",ts="mouseenter",ls="mouseleave",ns="dblclick",vr="resize",yr="scroll",os="change",tn="dppxchange",eo="--",hl=typeof window<"u",Bn=hl?document:null,nl=hl?window:null,br=hl?navigator:null,re,$l;function Un(){let e=devicePixelRatio;re!=e&&(re=e,$l&&qn(os,$l,Un),$l=matchMedia(`(min-resolution: ${re-.001}dppx) and (max-resolution: ${re+.001}dppx)`),Ot(os,$l,Un),nl.dispatchEvent(new CustomEvent(tn)))}function Ke(e,n){if(n!=null){let i=e.classList;!i.contains(n)&&i.add(n)}}function Kn(e,n){let i=e.classList;i.contains(n)&&i.remove(n)}function we(e,n,i){e.style[n]=i+"px"}function ot(e,n,i,l){let s=Bn.createElement(e);return n!=null&&Ke(s,n),i?.insertBefore(s,l),s}function Ze(e,n){return ot("div",e,n)}var ss=new WeakMap;function pt(e,n,i,l,s){let a="translate("+n+"px,"+i+"px)",u=ss.get(e);a!=u&&(e.style.transform=a,ss.set(e,a),n<0||i<0||n>l||i>s?Ke(e,Nt):Kn(e,Nt))}var is=new WeakMap;function kr(e,n,i){let l=n+i,s=is.get(e);l!=s&&(is.set(e,l),e.style.background=n,e.style.borderColor=i)}var rs=new WeakMap;function Tr(e,n,i,l){let s=n+""+i,a=rs.get(e);s!=a&&(rs.set(e,s),e.style.height=i+"px",e.style.width=n+"px",e.style.marginLeft=l?-n/2+"px":0,e.style.marginTop=l?-i/2+"px":0)}var to={passive:!0},Fs={...to,capture:!0};function Ot(e,n,i,l){n.addEventListener(e,i,l?Fs:to)}function qn(e,n,i,l){n.removeEventListener(e,i,l?Fs:to)}hl&&Un();function bt(e,n,i,l){let s;i=i||0,l=l||n.length-1;let a=l<=2147483647;for(;l-i>1;)s=a?i+l>>1:qe((i+l)/2),n[s]<e?i=s:l=s;return e-n[i]<=n[l]-e?i:l}function ol(e,n,i,l){for(let s=l==1?n:i;s>=n&&s<=i;s+=l)if(e[s]!=null)return s;return-1}function xr(e,n,i,l){let s=X,a=-X;if(l==1)s=e[n],a=e[i];else if(l==-1)s=e[i],a=e[n];else for(let u=n;u<=i;u++){let p=e[u];p!=null&&(p<s&&(s=p),p>a&&(a=p))}return[s,a]}function Mr(e,n,i){let l=X,s=-X;for(let a=n;a<=i;a++){let u=e[a];u!=null&&u>0&&(u<l&&(l=u),u>s&&(s=u))}return[l==X?1:l,s==-X?10:s]}function sn(e,n,i,l){let s=as(e),a=as(n),u=i==10?mt:zs;e==n&&(s==-1?(e*=i,n/=i):(e/=i,n*=i));let p=s==1?qe:sl,d=a==1?sl:qe,m=p(u(Ce(e))),S=d(u(Ce(n))),w=il(i,m),h=il(i,S);return i==10&&(m<0&&(w=ce(w,-m)),S<0&&(h=ce(h,-S))),l||i==2?(e=w*s,n=h*a):(e=Os(e,w),n=Tt(n,h)),[e,n]}function lo(e,n,i,l){let s=sn(e,n,i,l);return e==0&&(s[0]=0),n==0&&(s[1]=0),s}var no=.1,fs={mode:3,pad:no},Fl={pad:0,soft:null,mode:0},Er={min:Fl,max:Fl};function ln(e,n,i,l){return rn(i)?us(e,n,i):(Fl.pad=i,Fl.soft=l?0:null,Fl.mode=l?3:0,us(e,n,Er))}function se(e,n){return e??n}function Ar(e,n,i){for(n=se(n,0),i=se(i,e.length-1);n<=i;){if(e[n]!=null)return!0;n++}return!1}function us(e,n,i){let l=i.min,s=i.max,a=se(l.pad,0),u=se(s.pad,0),p=se(l.hard,-X),d=se(s.hard,X),m=se(l.soft,X),S=se(s.soft,-X),w=se(l.mode,0),h=se(s.mode,0),b=n-e,L=mt(b),M=Ie(Ce(e),Ce(n)),F=mt(M),W=Ce(F-L);(b<1e-9||W>10)&&(b=0,(e==0||n==0)&&(b=1e-9,w==2&&m!=X&&(a=0),h==2&&S!=-X&&(u=0)));let C=b||M||1e3,T=mt(C),R=il(10,qe(T)),A=C*(b==0?e==0?.1:1:a),Y=ce(Os(e-A,R/10),9),P=e>=m&&(w==1||w==3&&Y<=m||w==2&&Y>=m)?m:X,B=Ie(p,Y<P&&e>=P?P:$e(P,Y)),U=C*(b==0?n==0?.1:1:u),V=ce(Tt(n+U,R/10),9),x=n<=S&&(h==1||h==3&&V>=S||h==2&&V<=S)?S:-X,H=$e(d,V>x&&n<=x?x:Ie(x,V));return B==H&&B==0&&(H=100),[B,H]}var Pr=new Intl.NumberFormat(hl?br.language:"en-US"),oo=e=>Pr.format(e),je=Math,en=je.PI,Ce=je.abs,qe=je.floor,xe=je.round,sl=je.ceil,$e=je.min,Ie=je.max,il=je.pow,as=je.sign,mt=je.log10,zs=je.log2,Dr=(e,n=1)=>je.sinh(e)*n,In=(e,n=1)=>je.asinh(e/n),X=1/0;function cs(e){return(mt((e^e>>31)-(e>>31))|0)+1}function nn(e,n,i){return $e(Ie(e,n),i)}function Q(e){return typeof e=="function"?e:()=>e}var Lr=()=>{},Vs=e=>e,Ns=(e,n)=>n,Cr=e=>null,hs=e=>!0,ps=(e,n)=>e==n,rl=e=>ce(e,14);function Vt(e,n){return rl(ce(rl(e/n))*n)}function Tt(e,n){return rl(sl(rl(e/n))*n)}function Os(e,n){return rl(qe(rl(e/n))*n)}function ce(e,n=0){if(Rr(e))return e;let i=10**n,l=e*i*(1+Number.EPSILON);return xe(l)/i}var fl=new Map;function Hs(e){return((""+e).split(".")[1]||"").length}function Vl(e,n,i,l){let s=[],a=l.map(Hs);for(let u=n;u<i;u++){let p=Ce(u),d=ce(il(e,u),p);for(let m=0;m<l.length;m++){let S=l[m]*d,w=(S>=0&&u>=0?0:p)+(u>=a[m]?0:a[m]),h=ce(S,w);s.push(h),fl.set(h,w)}}return s}var zl={},so=[],ul=[null,null],kt=Array.isArray,Rr=Number.isInteger,Fr=e=>e===void 0;function ms(e){return typeof e=="string"}function rn(e){let n=!1;if(e!=null){let i=e.constructor;n=i==null||i==Object}return n}function zr(e){return e!=null&&typeof e=="object"}var Vr=Object.getPrototypeOf(Uint8Array);function al(e,n=rn){let i;if(kt(e)){let l=e.find(s=>s!=null);if(kt(l)||n(l)){i=Array(e.length);for(let s=0;s<e.length;s++)i[s]=al(e[s],n)}else i=e.slice()}else if(e instanceof Vr)i=e.slice();else if(n(e)){i={};for(let l in e)i[l]=al(e[l],n)}else i=e;return i}function ke(e){let n=arguments;for(let i=1;i<n.length;i++){let l=n[i];for(let s in l)rn(e[s])?ke(e[s],al(l[s])):e[s]=al(l[s])}return e}var Nr=0,Or=1,Hr=2;function Ir(e,n,i){for(let l=0,s,a=-1;l<n.length;l++){let u=n[l];if(u>a){for(s=u-1;s>=0&&e[s]==null;)e[s--]=null;for(s=u+1;s<i&&e[s]==null;)e[a=s++]=null}}}function Wr(e,n){if(Br(e)){let u=e[0].slice();for(let p=1;p<e.length;p++)u.push(...e[p].slice(1));return Ur(u[0])||(u=Yr(u)),u}let i=new Set;for(let u=0;u<e.length;u++){let d=e[u][0],m=d.length;for(let S=0;S<m;S++)i.add(d[S])}let l=[Array.from(i).sort((u,p)=>u-p)],s=l[0].length,a=new Map;for(let u=0;u<s;u++)a.set(l[0][u],u);for(let u=0;u<e.length;u++){let p=e[u],d=p[0];for(let m=1;m<p.length;m++){let S=p[m],w=Array(s).fill(void 0),h=n?n[u][m]:Or,b=[];for(let L=0;L<S.length;L++){let M=S[L],F=a.get(d[L]);M===null?h!=Nr&&(w[F]=M,h==Hr&&b.push(F)):w[F]=M}Ir(w,b,s),l.push(w)}}return l}var Gr=typeof queueMicrotask>"u"?e=>Promise.resolve().then(e):queueMicrotask;function Yr(e){let n=e[0],i=n.length,l=Array(i);for(let a=0;a<l.length;a++)l[a]=a;l.sort((a,u)=>n[a]-n[u]);let s=[];for(let a=0;a<e.length;a++){let u=e[a],p=Array(i);for(let d=0;d<i;d++)p[d]=u[l[d]];s.push(p)}return s}function Br(e){let n=e[0][0],i=n.length;for(let l=1;l<e.length;l++){let s=e[l][0];if(s.length!=i)return!1;if(s!=n){for(let a=0;a<i;a++)if(s[a]!=n[a])return!1}}return!0}function Ur(e,n=100){let i=e.length;if(i<=1)return!0;let l=0,s=i-1;for(;l<=s&&e[l]==null;)l++;for(;s>=l&&e[s]==null;)s--;if(s<=l)return!0;let a=Ie(1,qe((s-l+1)/n));for(let u=e[l],p=l+a;p<=s;p+=a){let d=e[p];if(d!=null){if(d<=u)return!1;u=d}}return!0}var Is=["January","February","March","April","May","June","July","August","September","October","November","December"],Ws=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];function Gs(e){return e.slice(0,3)}var Kr=Ws.map(Gs),qr=Is.map(Gs),jr={MMMM:Is,MMM:qr,WWWW:Ws,WWW:Kr};function Dl(e){return(e<10?"0":"")+e}function Jr(e){return(e<10?"00":e<100?"0":"")+e}var Zr={YYYY:e=>e.getFullYear(),YY:e=>(e.getFullYear()+"").slice(2),MMMM:(e,n)=>n.MMMM[e.getMonth()],MMM:(e,n)=>n.MMM[e.getMonth()],MM:e=>Dl(e.getMonth()+1),M:e=>e.getMonth()+1,DD:e=>Dl(e.getDate()),D:e=>e.getDate(),WWWW:(e,n)=>n.WWWW[e.getDay()],WWW:(e,n)=>n.WWW[e.getDay()],HH:e=>Dl(e.getHours()),H:e=>e.getHours(),h:e=>{let n=e.getHours();return n==0?12:n>12?n-12:n},AA:e=>e.getHours()>=12?"PM":"AM",aa:e=>e.getHours()>=12?"pm":"am",a:e=>e.getHours()>=12?"p":"a",mm:e=>Dl(e.getMinutes()),m:e=>e.getMinutes(),ss:e=>Dl(e.getSeconds()),s:e=>e.getSeconds(),fff:e=>Jr(e.getMilliseconds())};function io(e,n){n=n||jr;let i=[],l=/\{([a-z]+)\}|[^{]+/gi,s;for(;s=l.exec(e);)i.push(s[0][0]=="{"?Zr[s[1]]:s[0]);return a=>{let u="";for(let p=0;p<i.length;p++)u+=typeof i[p]=="string"?i[p]:i[p](a,n);return u}}var $r=new Intl.DateTimeFormat().resolvedOptions().timeZone;function Qr(e,n){let i;return n=="UTC"||n=="Etc/UTC"?i=new Date(+e+e.getTimezoneOffset()*6e4):n==$r?i=e:(i=new Date(e.toLocaleString("en-US",{timeZone:n})),i.setMilliseconds(e.getMilliseconds())),i}var Ys=e=>e%1==0,on=[1,2,2.5,5],Xr=Vl(10,-16,0,on),Bs=Vl(10,0,16,on),ef=Bs.filter(Ys),tf=Xr.concat(Bs),ro=`
`,Us="{YYYY}",ds=ro+Us,Ks="{M}/{D}",Rl=ro+Ks,Ql=Rl+"/{YY}",qs="{aa}",lf="{h}:{mm}",ll=lf+qs,gs=ro+ll,ws=":{ss}",ue=null;function js(e){let n=e*1e3,i=n*60,l=i*60,s=l*24,a=s*30,u=s*365,d=(e==1?Vl(10,0,3,on).filter(Ys):Vl(10,-3,0,on)).concat([n,n*5,n*10,n*15,n*30,i,i*5,i*10,i*15,i*30,l,l*2,l*3,l*4,l*6,l*8,l*12,s,s*2,s*3,s*4,s*5,s*6,s*7,s*8,s*9,s*10,s*15,a,a*2,a*3,a*4,a*6,u,u*2,u*5,u*10,u*25,u*50,u*100]),m=[[u,Us,ue,ue,ue,ue,ue,ue,1],[s*28,"{MMM}",ds,ue,ue,ue,ue,ue,1],[s,Ks,ds,ue,ue,ue,ue,ue,1],[l,"{h}"+qs,Ql,ue,Rl,ue,ue,ue,1],[i,ll,Ql,ue,Rl,ue,ue,ue,1],[n,ws,Ql+" "+ll,ue,Rl+" "+ll,ue,gs,ue,1],[e,ws+".{fff}",Ql+" "+ll,ue,Rl+" "+ll,ue,gs,ue,1]];function S(w){return(h,b,L,M,F,W)=>{let C=[],T=F>=u,R=F>=a&&F<u,A=w(L),Y=ce(A*e,3),P=Wn(A.getFullYear(),T?0:A.getMonth(),R||T?1:A.getDate()),B=ce(P*e,3);if(R||T){let U=R?F/a:0,V=T?F/u:0,x=Y==B?Y:ce(Wn(P.getFullYear()+V,P.getMonth()+U,1)*e,3),H=new Date(xe(x/e)),ee=H.getFullYear(),te=H.getMonth();for(let I=0;x<=M;I++){let fe=Wn(ee+V*I,te+U*I,1),Z=fe-w(ce(fe*e,3));x=ce((+fe+Z)*e,3),x<=M&&C.push(x)}}else{let U=F>=s?s:F,V=qe(L)-qe(Y),x=B+V+Tt(Y-B,U);C.push(x);let H=w(x),ee=H.getHours()+H.getMinutes()/i+H.getSeconds()/l,te=F/l,I=h.axes[b]._space,fe=W/I;for(;x=ce(x+F,e==1?0:3),!(x>M);)if(te>1){let Z=qe(ce(ee+te,6))%24,le=w(x).getHours()-Z;le>1&&(le=-1),x-=le*l,ee=(ee+te)%24;let ie=C[C.length-1];ce((x-ie)/F,3)*fe>=.7&&C.push(x)}else C.push(x)}return C}}return[d,m,S]}var[nf,of,sf]=js(1),[rf,ff,uf]=js(.001);Vl(2,-53,53,[1]);function Ss(e,n){return e.map(i=>i.map((l,s)=>s==0||s==8||l==null?l:n(s==1||i[8]==0?l:i[1]+l)))}function _s(e,n){return(i,l,s,a,u)=>{let p=n.find(L=>u>=L[0])||n[n.length-1],d,m,S,w,h,b;return l.map(L=>{let M=e(L),F=M.getFullYear(),W=M.getMonth(),C=M.getDate(),T=M.getHours(),R=M.getMinutes(),A=M.getSeconds(),Y=F!=d&&p[2]||W!=m&&p[3]||C!=S&&p[4]||T!=w&&p[5]||R!=h&&p[6]||A!=b&&p[7]||p[1];return d=F,m=W,S=C,w=T,h=R,b=A,Y(M)})}}function af(e,n){let i=io(n);return(l,s,a,u,p)=>s.map(d=>i(e(d)))}function Wn(e,n,i){return new Date(e,n,i)}function vs(e,n){return n(e)}var cf="{YYYY}-{MM}-{DD} {h}:{mm}{aa}";function ys(e,n){return(i,l,s,a)=>a==null?eo:n(e(l))}function hf(e,n){let i=e.series[n];return i.width?i.stroke(e,n):i.points.width?i.points.stroke(e,n):null}function pf(e,n){return e.series[n].fill(e,n)}var mf={show:!0,live:!0,isolate:!1,mount:Lr,markers:{show:!0,width:2,stroke:hf,fill:pf,dash:"solid"},idx:null,idxs:null,values:[]};function df(e,n){let i=e.cursor.points,l=Ze(),s=i.size(e,n);we(l,Ll,s),we(l,Cl,s);let a=s/-2;we(l,"marginLeft",a),we(l,"marginTop",a);let u=i.width(e,n,s);return u&&we(l,"borderWidth",u),l}function gf(e,n){let i=e.series[n].points;return i._fill||i._stroke}function wf(e,n){let i=e.series[n].points;return i._stroke||i._fill}function Sf(e,n){return e.series[n].points.size}function _f(e,n,i){return i}var Gn=[0,0];function vf(e,n,i){return Gn[0]=n,Gn[1]=i,Gn}function Xl(e,n,i,l=!0){return s=>{s.button==0&&(!l||s.target==n)&&i(s)}}function Yn(e,n,i,l=!0){return s=>{(!l||s.target==n)&&i(s)}}var yf={show:!0,x:!0,y:!0,lock:!1,move:vf,points:{show:df,size:Sf,width:0,stroke:wf,fill:gf},bind:{mousedown:Xl,mouseup:Xl,click:Xl,dblclick:Xl,mousemove:Yn,mouseleave:Yn,mouseenter:Yn},drag:{setScale:!0,x:!0,y:!1,dist:0,uni:null,click:(e,n)=>{n.stopPropagation(),n.stopImmediatePropagation()},_x:!1,_y:!1},focus:{dist:(e,n,i,l,s)=>l-s,prox:-1,bias:0},left:-10,top:-10,idx:null,dataIdx:_f,idxs:null,event:null},Js={show:!0,stroke:"rgba(0,0,0,0.07)",width:2},fo=ke({},Js,{filter:Ns}),Zs=ke({},fo,{size:10}),$s=ke({},Js,{show:!1}),uo='12px system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',Qs="bold "+uo,Xs=1.5,bs={show:!0,scale:"x",stroke:Xn,space:50,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Qs,side:2,grid:fo,ticks:Zs,border:$s,font:uo,lineGap:Xs,rotate:0},bf="Value",kf="Time",ks={show:!0,scale:"x",auto:!1,sorted:1,min:X,max:-X,idxs:[]};function Tf(e,n,i,l,s){return n.map(a=>a==null?"":oo(a))}function xf(e,n,i,l,s,a,u){let p=[],d=fl.get(s)||0;i=u?i:ce(Tt(i,s),d);for(let m=i;m<=l;m=ce(m+s,d))p.push(Object.is(m,-0)?0:m);return p}function jn(e,n,i,l,s,a,u){let p=[],d=e.scales[e.axes[n].scale].log,m=d==10?mt:zs,S=qe(m(i));s=il(d,S),d==10&&S<0&&(s=ce(s,-S));let w=i;do p.push(w),w=w+s,d==10&&(w=ce(w,fl.get(s))),w>=s*d&&(s=w);while(w<=l);return p}function Mf(e,n,i,l,s,a,u){let d=e.scales[e.axes[n].scale].asinh,m=l>d?jn(e,n,Ie(d,i),l,s):[d],S=l>=0&&i<=0?[0]:[];return(i<-d?jn(e,n,Ie(d,-l),-i,s):[d]).reverse().map(h=>-h).concat(S,m)}var ei=/./,Ef=/[12357]/,Af=/[125]/,Ts=/1/,Jn=(e,n,i,l)=>e.map((s,a)=>n==4&&s==0||a%l==0&&i.test(s.toExponential()[s<0?1:0])?s:null);function Pf(e,n,i,l,s){let a=e.axes[i],u=a.scale,p=e.scales[u],d=e.valToPos,m=a._space,S=d(10,u),w=d(9,u)-S>=m?ei:d(7,u)-S>=m?Ef:d(5,u)-S>=m?Af:Ts;if(w==Ts){let h=Ce(d(1,u)-S);if(h<m)return Jn(n.slice().reverse(),p.distr,w,sl(m/h)).reverse()}return Jn(n,p.distr,w,1)}function Df(e,n,i,l,s){let a=e.axes[i],u=a.scale,p=a._space,d=e.valToPos,m=Ce(d(1,u)-d(2,u));return m<p?Jn(n.slice().reverse(),3,ei,sl(p/m)).reverse():n}function Lf(e,n,i,l){return l==null?eo:n==null?"":oo(n)}var xs={show:!0,scale:"y",stroke:Xn,space:30,gap:5,size:50,labelGap:0,labelSize:30,labelFont:Qs,side:3,grid:fo,ticks:Zs,border:$s,font:uo,lineGap:Xs,rotate:0};function Cf(e,n){let i=3+(e||1)*2;return ce(i*n,3)}function Rf(e,n){let{scale:i,idxs:l}=e.series[0],s=e._data[0],a=e.valToPos(s[l[0]],i,!0),u=e.valToPos(s[l[1]],i,!0),p=Ce(u-a),d=e.series[n],m=p/(d.points.space*re);return l[1]-l[0]<=m}var Ms={scale:null,auto:!0,sorted:0,min:X,max:-X},ti=(e,n,i,l,s)=>s,Es={show:!0,auto:!0,sorted:0,gaps:ti,alpha:1,facets:[ke({},Ms,{scale:"x"}),ke({},Ms,{scale:"y"})]},As={scale:"y",auto:!0,sorted:0,show:!0,spanGaps:!1,gaps:ti,alpha:1,points:{show:Rf,filter:null},values:null,min:X,max:-X,idxs:[],path:null,clip:null};function Ff(e,n,i,l,s){return i/10}var li={time:!0,auto:!0,distr:1,log:10,asinh:1,min:null,max:null,dir:1,ori:0},zf=ke({},li,{time:!1,ori:1}),Ps={};function ni(e,n){let i=Ps[e];return i||(i={key:e,plots:[],sub(l){i.plots.push(l)},unsub(l){i.plots=i.plots.filter(s=>s!=l)},pub(l,s,a,u,p,d,m){for(let S=0;S<i.plots.length;S++)i.plots[S]!=s&&i.plots[S].pub(l,s,a,u,p,d,m)}},e!=null&&(Ps[e]=i)),i}var cl=1<<0,Zn=1<<1;function Ht(e,n,i){let l=e.mode,s=e.series[n],a=l==2?e._data[n]:e._data,u=e.scales,p=e.bbox,d=a[0],m=l==2?a[1]:a[n],S=l==2?u[s.facets[0].scale]:u[e.series[0].scale],w=l==2?u[s.facets[1].scale]:u[s.scale],h=p.left,b=p.top,L=p.width,M=p.height,F=e.valToPosH,W=e.valToPosV;return S.ori==0?i(s,d,m,S,w,F,W,h,b,L,M,un,pl,cn,si,ri):i(s,d,m,S,w,W,F,b,h,M,L,an,ml,ho,ii,fi)}function ao(e,n){let i=0,l=0,s=se(e.bands,so);for(let a=0;a<s.length;a++){let u=s[a];u.series[0]==n?i=u.dir:u.series[1]==n&&(u.dir==1?l|=1:l|=2)}return[i,l==1?-1:l==2?1:l==3?2:0]}function Vf(e,n,i,l,s){let a=e.mode,u=e.series[n],p=a==2?u.facets[1].scale:u.scale,d=e.scales[p];return s==-1?d.min:s==1?d.max:d.distr==3?d.dir==1?d.min:d.max:0}function dt(e,n,i,l,s,a){return Ht(e,n,(u,p,d,m,S,w,h,b,L,M,F)=>{let W=u.pxRound,C=m.dir*(m.ori==0?1:-1),T=m.ori==0?pl:ml,R,A;C==1?(R=i,A=l):(R=l,A=i);let Y=W(w(p[R],m,M,b)),P=W(h(d[R],S,F,L)),B=W(w(p[A],m,M,b)),U=W(h(a==1?S.max:S.min,S,F,L)),V=new Path2D(s);return T(V,B,U),T(V,Y,U),T(V,Y,P),V})}function fn(e,n,i,l,s,a){let u=null;if(e.length>0){u=new Path2D;let p=n==0?cn:ho,d=i;for(let w=0;w<e.length;w++){let h=e[w];if(h[1]>h[0]){let b=h[0]-d;b>0&&p(u,d,l,b,l+a),d=h[1]}}let m=i+s-d,S=10;m>0&&p(u,d,l-S/2,m,l+a+S)}return u}function Nf(e,n,i){let l=e[e.length-1];l&&l[0]==n?l[1]=i:e.push([n,i])}function co(e,n,i,l,s,a,u){let p=[],d=e.length;for(let m=s==1?i:l;m>=i&&m<=l;m+=s)if(n[m]===null){let w=m,h=m;if(s==1)for(;++m<=l&&n[m]===null;)h=m;else for(;--m>=i&&n[m]===null;)h=m;let b=a(e[w]),L=h==w?b:a(e[h]),M=w-s;b=u<=0&&M>=0&&M<d?a(e[M]):b;let W=h+s;L=u>=0&&W>=0&&W<d?a(e[W]):L,L>=b&&p.push([b,L])}return p}function Ds(e){return e==0?Vs:e==1?xe:n=>Vt(n,e)}function oi(e){let n=e==0?un:an,i=e==0?(s,a,u,p,d,m)=>{s.arcTo(a,u,p,d,m)}:(s,a,u,p,d,m)=>{s.arcTo(u,a,d,p,m)},l=e==0?(s,a,u,p,d)=>{s.rect(a,u,p,d)}:(s,a,u,p,d)=>{s.rect(u,a,d,p)};return(s,a,u,p,d,m=0,S=0)=>{m==0&&S==0?l(s,a,u,p,d):(m=$e(m,p/2,d/2),S=$e(S,p/2,d/2),n(s,a+m,u),i(s,a+p,u,a+p,u+d,m),i(s,a+p,u+d,a,u+d,S),i(s,a,u+d,a,u,S),i(s,a,u,a+p,u,m),s.closePath())}}var un=(e,n,i)=>{e.moveTo(n,i)},an=(e,n,i)=>{e.moveTo(i,n)},pl=(e,n,i)=>{e.lineTo(n,i)},ml=(e,n,i)=>{e.lineTo(i,n)},cn=oi(0),ho=oi(1),si=(e,n,i,l,s,a)=>{e.arc(n,i,l,s,a)},ii=(e,n,i,l,s,a)=>{e.arc(i,n,l,s,a)},ri=(e,n,i,l,s,a,u)=>{e.bezierCurveTo(n,i,l,s,a,u)},fi=(e,n,i,l,s,a,u)=>{e.bezierCurveTo(i,n,s,l,u,a)};function ui(e){return(n,i,l,s,a)=>Ht(n,i,(u,p,d,m,S,w,h,b,L,M,F)=>{let{pxRound:W,points:C}=u,T,R;m.ori==0?(T=un,R=si):(T=an,R=ii);let A=ce(C.width*re,3),Y=(C.size-C.width)/2*re,P=ce(Y*2,3),B=new Path2D,U=new Path2D,{left:V,top:x,width:H,height:ee}=n.bbox;cn(U,V-P,x-P,H+P*2,ee+P*2);let te=I=>{if(d[I]!=null){let fe=W(w(p[I],m,M,b)),Z=W(h(d[I],S,F,L));T(B,fe+Y,Z),R(B,fe,Z,Y,0,en*2)}};if(a)a.forEach(te);else for(let I=l;I<=s;I++)te(I);return{stroke:A>0?B:null,fill:B,clip:U,flags:cl|Zn}})}function ai(e){return(n,i,l,s,a,u)=>{l!=s&&(a!=l&&u!=l&&e(n,i,l),a!=s&&u!=s&&e(n,i,s),e(n,i,u))}}var Of=ai(pl),Hf=ai(ml);function ci(e){let n=se(e?.alignGaps,0);return(i,l,s,a)=>Ht(i,l,(u,p,d,m,S,w,h,b,L,M,F)=>{let W=u.pxRound,C=z=>W(w(z,m,M,b)),T=z=>W(h(z,S,F,L)),R,A;m.ori==0?(R=pl,A=Of):(R=ml,A=Hf);let Y=m.dir*(m.ori==0?1:-1),P={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},B=P.stroke,U=X,V=-X,x,H,ee,te=C(p[Y==1?s:a]),I=ol(d,s,a,1*Y),fe=ol(d,s,a,-1*Y),Z=C(p[I]),We=C(p[fe]),Re=!1;for(let z=Y==1?s:a;z>=s&&z<=a;z+=Y){let j=C(p[z]),N=d[z];j==te?N!=null?(H=T(N),U==X&&(R(B,j,H),x=H),U=$e(H,U),V=Ie(H,V)):N===null&&(Re=!0):(U!=X&&(A(B,te,U,V,x,H),ee=te),N!=null?(H=T(N),R(B,j,H),U=V=x=H):(U=X,V=-X,N===null&&(Re=!0)),te=j)}U!=X&&U!=V&&ee!=te&&A(B,te,U,V,x,H);let[le,ie]=ao(i,l);if(u.fill!=null||le!=0){let z=P.fill=new Path2D(B),j=u.fillTo(i,l,u.min,u.max,le),N=T(j);R(z,We,N),R(z,Z,N)}if(!u.spanGaps){let z=[];Re&&z.push(...co(p,d,s,a,Y,C,n)),P.gaps=z=u.gaps(i,l,s,a,z),P.clip=fn(z,m.ori,b,L,M,F)}return ie!=0&&(P.band=ie==2?[dt(i,l,s,a,B,-1),dt(i,l,s,a,B,1)]:dt(i,l,s,a,B,ie)),P})}function If(e){let n=se(e.align,1),i=se(e.ascDesc,!1),l=se(e.alignGaps,0),s=se(e.extend,!1);return(a,u,p,d)=>Ht(a,u,(m,S,w,h,b,L,M,F,W,C,T)=>{let R=m.pxRound,{left:A,width:Y}=a.bbox,P=le=>R(L(le,h,C,F)),B=le=>R(M(le,b,T,W)),U=h.ori==0?pl:ml,V={stroke:new Path2D,fill:null,clip:null,band:null,gaps:null,flags:cl},x=V.stroke,H=h.dir*(h.ori==0?1:-1);p=ol(w,p,d,1),d=ol(w,p,d,-1);let ee=B(w[H==1?p:d]),te=P(S[H==1?p:d]),I=te,fe=te;s&&n==-1&&(fe=A,U(x,fe,ee)),U(x,te,ee);for(let le=H==1?p:d;le>=p&&le<=d;le+=H){let ie=w[le];if(ie==null)continue;let z=P(S[le]),j=B(ie);n==1?U(x,z,ee):U(x,I,j),U(x,z,j),ee=j,I=z}let Z=I;s&&n==1&&(Z=A+Y,U(x,Z,ee));let[We,Re]=ao(a,u);if(m.fill!=null||We!=0){let le=V.fill=new Path2D(x),ie=m.fillTo(a,u,m.min,m.max,We),z=B(ie);U(le,Z,z),U(le,fe,z)}if(!m.spanGaps){let le=[];le.push(...co(S,w,p,d,H,P,l));let ie=m.width*re/2,z=i||n==1?ie:-ie,j=i||n==-1?-ie:ie;le.forEach(N=>{N[0]+=z,N[1]+=j}),V.gaps=le=m.gaps(a,u,p,d,le),V.clip=fn(le,h.ori,F,W,C,T)}return Re!=0&&(V.band=Re==2?[dt(a,u,p,d,x,-1),dt(a,u,p,d,x,1)]:dt(a,u,p,d,x,Re)),V})}function Wf(e){e=e||zl;let n=se(e.size,[.6,X,1]),i=e.align||0,l=(e.gap||0)*re,s=e.radius;s=s==null?[0,0]:typeof s=="number"?[s,0]:s;let a=Q(s),u=1-n[0],p=se(n[1],X)*re,d=se(n[2],1)*re,m=se(e.disp,zl),S=se(e.each,b=>{}),{fill:w,stroke:h}=m;return(b,L,M,F)=>Ht(b,L,(W,C,T,R,A,Y,P,B,U,V,x)=>{let H=W.pxRound,ee,te;R.ori==0?[ee,te]=a(b,L):[te,ee]=a(b,L);let I=R.dir*(R.ori==0?1:-1),fe=R.ori==0?cn:ho,Z=R.ori==0?S:(J,he,Xe,Ye,Je,G,K)=>{S(J,he,Xe,Je,Ye,K,G)},We=se(b.bands,so).find(J=>J.series[0]==L),Re=We!=null?We.dir:0,le=W.fillTo(b,L,W.min,W.max,Re),ie=H(P(le,A,x,U)),z,j,N=H(W.width*re),Ge=!1,xt=null,ut=null,st=null,gt=null;w!=null&&(N==0||h!=null)&&(Ge=!0,xt=w.values(b,L,M,F),ut=new Map,new Set(xt).forEach(J=>{J!=null&&ut.set(J,new Path2D)}),N>0&&(st=h.values(b,L,M,F),gt=new Map,new Set(st).forEach(J=>{J!=null&>.set(J,new Path2D)})));let{x0:wt,size:Qe}=m;if(wt!=null&&Qe!=null){C=wt.values(b,L,M,F),wt.unit==2&&(C=C.map(he=>b.posToVal(B+he*V,R.key,!0)));let J=Qe.values(b,L,M,F);Qe.unit==2?j=J[0]*V:j=Y(J[0],R,V,B)-Y(0,R,V,B),N>=j/2&&(N=0),j=H(nn(j-N,d,p)),z=I==1?-N/2:j+N/2}else{let J=V;if(C.length>1){let Xe=null;for(let Ye=0,Je=1/0;Ye<C.length;Ye++)if(T[Ye]!==void 0){if(Xe!=null){let G=Ce(C[Ye]-C[Xe]);G<Je&&(Je=G,J=Ce(Y(C[Ye],R,V,B)-Y(C[Xe],R,V,B)))}Xe=Ye}}let he=J*u;j=J-he-l,N>=j/2&&(N=0),he+l<5&&(H=Vs),j=H(nn(J-he,d,p)-N-l),z=(i==0?j/2:i==I?0:j)-i*I*l/2}let at={stroke:null,fill:null,clip:null,band:null,gaps:null,flags:0},dl=Ge?null:new Path2D,Mt=null;if(We!=null)Mt=b.data[We.series[1]];else{let{y0:J,y1:he}=m;J!=null&&he!=null&&(T=he.values(b,L,M,F),Mt=J.values(b,L,M,F))}let Ol=ee*j,Hl=te*j;for(let J=I==1?M:F;J>=M&&J<=F;J+=I){let he=T[J];if(he==null)continue;if(Mt!=null){let ct=Mt[J]??0;if(he-ct==0)continue;ie=P(ct,A,x,U)}let Xe=R.distr!=2||m!=null?C[J]:J,Ye=Y(Xe,R,V,B),Je=P(se(he,le),A,x,U),G=H(Ye-z),K=H(Ie(Je,ie)),Te=H($e(Je,ie)),Ee=K-Te;if(he!=null){let ct=he<0?Hl:Ol,It=he<0?Ol:Hl;Ge?(N>0&&st[J]!=null&&fe(gt.get(st[J]),G,Te+qe(N/2),j,Ie(0,Ee-N),ct,It),xt[J]!=null&&fe(ut.get(xt[J]),G,Te+qe(N/2),j,Ie(0,Ee-N),ct,It)):fe(dl,G,Te+qe(N/2),j,Ie(0,Ee-N),ct,It),Z(b,L,J,G-N/2,Te,j+N,Ee)}}return N>0?at.stroke=Ge?gt:dl:Ge||(at._fill=W.width==0?W._fill:W._stroke??W._fill,at.width=0),at.fill=Ge?ut:dl,at})}function Gf(e,n){let i=se(n?.alignGaps,0);return(l,s,a,u)=>Ht(l,s,(p,d,m,S,w,h,b,L,M,F,W)=>{let C=p.pxRound,T=Z=>C(h(Z,S,F,L)),R=Z=>C(b(Z,w,W,M)),A,Y,P;S.ori==0?(A=un,P=pl,Y=ri):(A=an,P=ml,Y=fi);let B=S.dir*(S.ori==0?1:-1);a=ol(m,a,u,1),u=ol(m,a,u,-1);let U=T(d[B==1?a:u]),V=U,x=[],H=[];for(let Z=B==1?a:u;Z>=a&&Z<=u;Z+=B)if(m[Z]!=null){let Re=d[Z],le=T(Re);x.push(V=le),H.push(R(m[Z]))}let ee={stroke:e(x,H,A,P,Y,C),fill:null,clip:null,band:null,gaps:null,flags:cl},te=ee.stroke,[I,fe]=ao(l,s);if(p.fill!=null||I!=0){let Z=ee.fill=new Path2D(te),We=p.fillTo(l,s,p.min,p.max,I),Re=R(We);P(Z,V,Re),P(Z,U,Re)}if(!p.spanGaps){let Z=[];Z.push(...co(d,m,a,u,B,T,i)),ee.gaps=Z=p.gaps(l,s,a,u,Z),ee.clip=fn(Z,S.ori,L,M,F,W)}return fe!=0&&(ee.band=fe==2?[dt(l,s,a,u,te,-1),dt(l,s,a,u,te,1)]:dt(l,s,a,u,te,fe)),ee})}function Yf(e){return Gf(Bf,e)}function Bf(e,n,i,l,s,a){let u=e.length;if(u<2)return null;let p=new Path2D;if(i(p,e[0],n[0]),u==2)l(p,e[1],n[1]);else{let d=Array(u),m=Array(u-1),S=Array(u-1),w=Array(u-1);for(let h=0;h<u-1;h++)S[h]=n[h+1]-n[h],w[h]=e[h+1]-e[h],m[h]=S[h]/w[h];d[0]=m[0];for(let h=1;h<u-1;h++)m[h]===0||m[h-1]===0||m[h-1]>0!=m[h]>0?d[h]=0:(d[h]=3*(w[h-1]+w[h])/((2*w[h]+w[h-1])/m[h-1]+(w[h]+2*w[h-1])/m[h]),isFinite(d[h])||(d[h]=0));d[u-1]=m[u-2];for(let h=0;h<u-1;h++)s(p,e[h]+w[h]/3,n[h]+d[h]*w[h]/3,e[h+1]-w[h]/3,n[h+1]-d[h+1]*w[h]/3,e[h+1],n[h+1])}return p}var $n=new Set;function Ls(){for(let e of $n)e.syncRect(!0)}hl&&(Ot(vr,nl,Ls),Ot(yr,nl,Ls,!0),Ot(tn,nl,()=>{Oe.pxRatio=re}));var Uf=ci(),Kf=ui();function Cs(e,n,i,l){return(l?[e[0],e[1]].concat(e.slice(2)):[e[0]].concat(e.slice(1))).map((a,u)=>Qn(a,u,n,i))}function qf(e,n){return e.map((i,l)=>l==0?null:ke({},n,i))}function Qn(e,n,i,l){return ke({},n==0?i:l,e)}function hi(e,n,i){return n==null?ul:[n,i]}var jf=hi;function Jf(e,n,i){return n==null?ul:ln(n,i,no,!0)}function pi(e,n,i,l){return n==null?ul:sn(n,i,e.scales[l].log,!1)}var Zf=pi;function mi(e,n,i,l){return n==null?ul:lo(n,i,e.scales[l].log,!1)}var $f=mi;function Qf(e,n,i,l,s){let a=Ie(cs(e),cs(n)),u=n-e,p=bt(s/l*u,i);do{let d=i[p],m=l*d/u;if(m>=s&&a+(d<5?fl.get(d):0)<=17)return[d,m]}while(++p<i.length);return[0,0]}function Rs(e){let n,i;return e=e.replace(/(\d+)px/,(l,s)=>(n=xe((i=+s)*re))+"px"),[e,n,i]}function Xf(e){e.show&&[e.font,e.labelFont].forEach(n=>{let i=ce(n[2]*re,1);n[0]=n[0].replace(/[0-9.]+px/,i+"px"),n[1]=i})}function Oe(e,n,i){let l={mode:se(e.mode,1)},s=l.mode;function a(t,o){return((o.distr==3?mt(t>0?t:o.clamp(l,t,o.min,o.max,o.key)):o.distr==4?In(t,o.asinh):t)-o._min)/(o._max-o._min)}function u(t,o,r,f){let c=a(t,o);return f+r*(o.dir==-1?1-c:c)}function p(t,o,r,f){let c=a(t,o);return f+r*(o.dir==-1?c:1-c)}function d(t,o,r,f){return o.ori==0?u(t,o,r,f):p(t,o,r,f)}l.valToPosH=u,l.valToPosV=p;let m=!1;l.status=0;let S=l.root=Ze(lr);if(e.id!=null&&(S.id=e.id),Ke(S,e.class),e.title){let t=Ze(sr,S);t.textContent=e.title}let w=ot("canvas"),h=l.ctx=w.getContext("2d"),b=Ze(ir,S);Ot("click",b,t=>{t.target===M&&(pe!=qt||me!=jt)&&ze.click(l,t)},!0);let L=l.under=Ze(rr,b);b.appendChild(w);let M=l.over=Ze(fr,b);e=al(e);let F=+se(e.pxAlign,1),W=Ds(F);(e.plugins||[]).forEach(t=>{t.opts&&(e=t.opts(l,e)||e)});let C=e.ms||.001,T=l.series=s==1?Cs(e.series||[],ks,As,!1):qf(e.series||[null],Es),R=l.axes=Cs(e.axes||[],bs,xs,!0),A=l.scales={},Y=l.bands=e.bands||[];Y.forEach(t=>{t.fill=Q(t.fill||null),t.dir=se(t.dir,-1)});let P=s==2?T[1].facets[0].scale:T[0].scale,B={axes:Ri,series:Ai},U=(e.drawOrder||["axes","series"]).map(t=>B[t]);function V(t){let o=A[t];if(o==null){let r=(e.scales||zl)[t]||zl;if(r.from!=null)V(r.from),A[t]=ke({},A[r.from],r,{key:t});else{o=A[t]=ke({},t==P?li:zf,r),o.key=t;let f=o.time,c=o.range,g=kt(c);if((t!=P||s==2&&!f)&&(g&&(c[0]==null||c[1]==null)&&(c={min:c[0]==null?fs:{mode:1,hard:c[0],soft:c[0]},max:c[1]==null?fs:{mode:1,hard:c[1],soft:c[1]}},g=!1),!g&&rn(c))){let _=c;c=(v,k,E)=>k==null?ul:ln(k,E,_)}o.range=Q(c||(f?jf:t==P?o.distr==3?Zf:o.distr==4?$f:hi:o.distr==3?pi:o.distr==4?mi:Jf)),o.auto=Q(g?!1:o.auto),o.clamp=Q(o.clamp||Ff),o._min=o._max=null}}}V("x"),V("y"),s==1&&T.forEach(t=>{V(t.scale)}),R.forEach(t=>{V(t.scale)});for(let t in e.scales)V(t);let x=A[P],H=x.distr,ee,te;x.ori==0?(Ke(S,nr),ee=u,te=p):(Ke(S,or),ee=p,te=u);let I={};for(let t in A){let o=A[t];(o.min!=null||o.max!=null)&&(I[t]={min:o.min,max:o.max},o.min=o.max=null)}let fe=e.tzDate||(t=>new Date(xe(t/C))),Z=e.fmtDate||io,We=C==1?sf(fe):uf(fe),Re=_s(fe,Ss(C==1?of:ff,Z)),le=ys(fe,vs(cf,Z)),ie=[],z=l.legend=ke({},mf,e.legend),j=z.show,N=z.markers;z.idxs=ie,N.width=Q(N.width),N.dash=Q(N.dash),N.stroke=Q(N.stroke),N.fill=Q(N.fill);let Ge,xt,ut,st=[],gt=[],wt,Qe=!1,at={};if(z.live){let t=T[1]?T[1].values:null;Qe=t!=null,wt=Qe?t(l,1,0):{_:0};for(let o in wt)at[o]=eo}if(j)if(Ge=ot("table",mr,S),ut=ot("tbody",null,Ge),z.mount(l,Ge),Qe){xt=ot("thead",null,Ge,ut);let t=ot("tr",null,xt);ot("th",null,t);for(var dl in wt)ot("th",Zo,t).textContent=dl}else Ke(Ge,gr),z.live&&Ke(Ge,dr);let Mt={show:!0},Ol={show:!1};function Hl(t,o){if(o==0&&(Qe||!z.live||s==2))return ul;let r=[],f=ot("tr",wr,ut,ut.childNodes[o]);Ke(f,t.class),t.show||Ke(f,Nt);let c=ot("th",null,f);if(N.show){let v=Ze(Sr,c);if(o>0){let k=N.width(l,o);k&&(v.style.border=k+"px "+N.dash(l,o)+" "+N.stroke(l,o)),v.style.background=N.fill(l,o)}}let g=Ze(Zo,c);g.textContent=t.label,o>0&&(N.show||(g.style.color=t.width>0?N.stroke(l,o):N.fill(l,o)),he("click",c,v=>{if(O._lock)return;Ct(v);let k=T.indexOf(t);if((v.ctrlKey||v.metaKey)!=z.isolate){let E=T.some((y,D)=>D>0&&D!=k&&y.show);T.forEach((y,D)=>{D>0&&rt(D,E?D==k?Mt:Ol:Mt,!0,ye.setSeries)})}else rt(k,{show:!t.show},!0,ye.setSeries)},!1),gl&&he(ts,c,v=>{O._lock||(Ct(v),rt(T.indexOf(t),Qt,!0,ye.setSeries))},!1));for(var _ in wt){let v=ot("td",_r,f);v.textContent="--",r.push(v)}return[f,r]}let J=new Map;function he(t,o,r,f=!0){let c=J.get(o)||{},g=O.bind[t](l,o,r,f);g&&(Ot(t,o,c[t]=g),J.set(o,c))}function Xe(t,o,r){let f=J.get(o)||{};for(let c in f)(t==null||c==t)&&(qn(c,o,f[c]),delete f[c]);t==null&&J.delete(o)}let Ye=0,Je=0,G=0,K=0,Te=0,Ee=0,ct=Te,It=Ee,mn=G,dn=K,Et=0,At=0,Pt=0,Dt=0;l.bbox={};let gn=!1,Il=!1,Wt=!1,Lt=!1,Wl=!1,et=!1;function wn(t,o,r){(r||t!=l.width||o!=l.height)&&go(t,o),Bt(!1),Wt=!0,Il=!0,Ft()}function go(t,o){l.width=Ye=G=t,l.height=Je=K=o,Te=Ee=0,vi(),yi();let r=l.bbox;Et=r.left=Vt(Te*re,.5),At=r.top=Vt(Ee*re,.5),Pt=r.width=Vt(G*re,.5),Dt=r.height=Vt(K*re,.5)}let wi=3;function Si(){let t=!1,o=0;for(;!t;){o++;let r=Li(o),f=Ci(o);t=o==wi||r&&f,t||(go(l.width,l.height),Il=!0)}}function _i({width:t,height:o}){wn(t,o)}l.setSize=_i;function vi(){let t=!1,o=!1,r=!1,f=!1;R.forEach((c,g)=>{if(c.show&&c._show){let{side:_,_size:v}=c,k=_%2,E=c.label!=null?c.labelSize:0,y=v+E;y>0&&(k?(G-=y,_==3?(Te+=y,f=!0):r=!0):(K-=y,_==0?(Ee+=y,t=!0):o=!0))}}),Rt[0]=t,Rt[1]=r,Rt[2]=o,Rt[3]=f,G-=St[1]+St[3],Te+=St[3],K-=St[2]+St[0],Ee+=St[0]}function yi(){let t=Te+G,o=Ee+K,r=Te,f=Ee;function c(g,_){switch(g){case 1:return t+=_,t-_;case 2:return o+=_,o-_;case 3:return r-=_,r+_;case 0:return f-=_,f+_}}R.forEach((g,_)=>{if(g.show&&g._show){let v=g.side;g._pos=c(v,g._size),g.label!=null&&(g._lpos=c(v,g.labelSize))}})}let O=l.cursor=ke({},yf,{drag:{y:s==2}},e.cursor),Ct=t=>{O.event=t};O.idxs=ie,O._lock=!1;let it=O.points;it.show=Q(it.show),it.size=Q(it.size),it.stroke=Q(it.stroke),it.width=Q(it.width),it.fill=Q(it.fill);let Gt=l.focus=ke({},e.focus||{alpha:.3},O.focus),gl=Gt.prox>=0,He=[null],wl=[null],Sl=[null];function bi(t,o){if(o>0){let r=O.points.show(l,o);if(r)return Ke(r,pr),Ke(r,t.class),pt(r,-10,-10,G,K),M.insertBefore(r,He[o]),r}}function wo(t,o){if(s==1||o>0){let r=s==1&&A[t.scale].time,f=t.value;t.value=r?ms(f)?ys(fe,vs(f,Z)):f||le:f||Lf,t.label=t.label||(r?kf:bf)}if(o>0){t.width=t.width==null?1:t.width,t.paths=t.paths||Uf||Cr,t.fillTo=Q(t.fillTo||Vf),t.pxAlign=+se(t.pxAlign,F),t.pxRound=Ds(t.pxAlign),t.stroke=Q(t.stroke||null),t.fill=Q(t.fill||null),t._stroke=t._fill=t._paths=t._focus=null;let r=Cf(Ie(1,t.width),1),f=t.points=ke({},{size:r,width:Ie(1,r*.2),stroke:t.stroke,space:r*2,paths:Kf,_stroke:null,_fill:null},t.points);f.show=Q(f.show),f.filter=Q(f.filter),f.fill=Q(f.fill),f.stroke=Q(f.stroke),f.paths=Q(f.paths),f.pxAlign=t.pxAlign}if(j){let r=Hl(t,o);st.splice(o,0,r[0]),gt.splice(o,0,r[1]),z.values.push(null)}if(O.show){ie.splice(o,0,null);let r=bi(t,o);r!=null&&(He.splice(o,0,r),wl.splice(o,0,0),Sl.splice(o,0,0))}Ve("addSeries",o)}function ki(t,o){o=o??T.length,t=s==1?Qn(t,o,ks,As):Qn(t,o,null,Es),T.splice(o,0,t),wo(T[o],o)}l.addSeries=ki;function Ti(t){if(T.splice(t,1),j){z.values.splice(t,1),gt.splice(t,1);let o=st.splice(t,1)[0];Xe(null,o.firstChild),o.remove()}O.show&&(ie.splice(t,1),He.length>1&&(He.splice(t,1)[0].remove(),wl.splice(t,1),Sl.splice(t,1))),Ve("delSeries",t)}l.delSeries=Ti;let Rt=[!1,!1,!1,!1];function xi(t,o){if(t._show=t.show,t.show){let r=t.side%2,f=A[t.scale];f==null&&(t.scale=r?T[1].scale:P,f=A[t.scale]);let c=f.time;t.size=Q(t.size),t.space=Q(t.space),t.rotate=Q(t.rotate),kt(t.incrs)&&t.incrs.forEach(_=>{!fl.has(_)&&fl.set(_,Hs(_))}),t.incrs=Q(t.incrs||(f.distr==2?ef:c?C==1?nf:rf:tf)),t.splits=Q(t.splits||(c&&f.distr==1?We:f.distr==3?jn:f.distr==4?Mf:xf)),t.stroke=Q(t.stroke),t.grid.stroke=Q(t.grid.stroke),t.ticks.stroke=Q(t.ticks.stroke),t.border.stroke=Q(t.border.stroke);let g=t.values;t.values=kt(g)&&!kt(g[0])?Q(g):c?kt(g)?_s(fe,Ss(g,Z)):ms(g)?af(fe,g):g||Re:g||Tf,t.filter=Q(t.filter||(f.distr>=3&&f.log==10?Pf:f.distr==3&&f.log==2?Df:Ns)),t.font=Rs(t.font),t.labelFont=Rs(t.labelFont),t._size=t.size(l,null,o,0),t._space=t._rotate=t._incrs=t._found=t._splits=t._values=null,t._size>0&&(Rt[o]=!0,t._el=Ze(ur,b))}}function _l(t,o,r,f){let[c,g,_,v]=r,k=o%2,E=0;return k==0&&(v||g)&&(E=o==0&&!c||o==2&&!_?xe(bs.size/3):0),k==1&&(c||_)&&(E=o==1&&!g||o==3&&!v?xe(xs.size/2):0),E}let So=l.padding=(e.padding||[_l,_l,_l,_l]).map(t=>Q(se(t,_l))),St=l._padding=So.map((t,o)=>t(l,o,Rt,0)),Fe,Ae=null,Pe=null,Gl=s==1?T[0].idxs:null,tt=null,vl=!1;function _o(t,o){if(n=t??[],s==2){Fe=0;for(let r=1;r<T.length;r++)Fe+=n[r][0].length;l._data=n}else{n.length==0&&(n=[[]]),tt=n[0],Fe=tt.length;let r=n;if(H==2){r=n.slice();let f=r[0]=Array(Fe);for(let c=0;c<Fe;c++)f[c]=c}l._data=n=r}if(l.data=n,Bt(!0),Ve("setData"),H==2&&(Wt=!0),o!==!1){let r=x;r.auto(l,vl)?Sn():Zt(P,r.min,r.max),Lt=Lt||O.left>=0,et=!0,Ft()}}l.setData=_o;function Sn(){vl=!0;let t,o;s==1&&(Fe>0?(Ae=Gl[0]=0,Pe=Gl[1]=Fe-1,t=n[0][Ae],o=n[0][Pe],H==2?(t=Ae,o=Pe):t==o&&(H==3?[t,o]=sn(t,t,x.log,!1):H==4?[t,o]=lo(t,t,x.log,!1):x.time?o=t+xe(86400/C):[t,o]=ln(t,o,no,!0))):(Ae=Gl[0]=t=null,Pe=Gl[1]=o=null)),Zt(P,t,o)}let Yl,Yt,_n,vn,yn,bn,kn,Tn,xn,yl;function vo(t,o,r,f,c,g){t??(t=Qo),r??(r=so),f??(f="butt"),c??(c=Qo),g??(g="round"),t!=Yl&&(h.strokeStyle=Yl=t),c!=Yt&&(h.fillStyle=Yt=c),o!=_n&&(h.lineWidth=_n=o),g!=yn&&(h.lineJoin=yn=g),f!=bn&&(h.lineCap=bn=f),r!=vn&&h.setLineDash(vn=r)}function yo(t,o,r,f){o!=Yt&&(h.fillStyle=Yt=o),t!=kn&&(h.font=kn=t),r!=Tn&&(h.textAlign=Tn=r),f!=xn&&(h.textBaseline=xn=f)}function Mn(t,o,r,f,c=0){if(f.length>0&&t.auto(l,vl)&&(o==null||o.min==null)){let g=se(Ae,0),_=se(Pe,f.length-1),v=r.min==null?t.distr==3?Mr(f,g,_):xr(f,g,_,c):[r.min,r.max];t.min=$e(t.min,r.min=v[0]),t.max=Ie(t.max,r.max=v[1])}}let bo={min:null,max:null};function Mi(){for(let f in A){let c=A[f];I[f]==null&&(c.min==null||I[P]!=null&&c.auto(l,vl))&&(I[f]=bo)}for(let f in A){let c=A[f];I[f]==null&&c.from!=null&&I[c.from]!=null&&(I[f]=bo)}I[P]!=null&&Bt(!0);let t={};for(let f in I){let c=I[f];if(c!=null){let g=t[f]=al(A[f],zr);if(c.min!=null)ke(g,c);else if(f!=P||s==2)if(Fe==0&&g.from==null){let _=g.range(l,null,null,f);g.min=_[0],g.max=_[1]}else g.min=X,g.max=-X}}if(Fe>0){T.forEach((f,c)=>{if(s==1){let g=f.scale,_=I[g];if(_==null)return;let v=t[g];if(c==0){let k=v.range(l,v.min,v.max,g);v.min=k[0],v.max=k[1],Ae=bt(v.min,n[0]),Pe=bt(v.max,n[0]),Pe-Ae>1&&(n[0][Ae]<v.min&&Ae++,n[0][Pe]>v.max&&Pe--),f.min=tt[Ae],f.max=tt[Pe]}else f.show&&f.auto&&Mn(v,_,f,n[c],f.sorted);f.idxs[0]=Ae,f.idxs[1]=Pe}else if(c>0&&f.show&&f.auto){let[g,_]=f.facets,v=g.scale,k=_.scale,[E,y]=n[c];Mn(t[v],I[v],g,E,g.sorted),Mn(t[k],I[k],_,y,_.sorted),f.min=_.min,f.max=_.max}});for(let f in t){let c=t[f],g=I[f];if(c.from==null&&(g==null||g.min==null)){let _=c.range(l,c.min==X?null:c.min,c.max==-X?null:c.max,f);c.min=_[0],c.max=_[1]}}}for(let f in t){let c=t[f];if(c.from!=null){let g=t[c.from];if(g.min==null)c.min=c.max=null;else{let _=c.range(l,g.min,g.max,f);c.min=_[0],c.max=_[1]}}}let o={},r=!1;for(let f in t){let c=t[f],g=A[f];if(g.min!=c.min||g.max!=c.max){g.min=c.min,g.max=c.max;let _=g.distr;g._min=_==3?mt(g.min):_==4?In(g.min,g.asinh):g.min,g._max=_==3?mt(g.max):_==4?In(g.max,g.asinh):g.max,o[f]=r=!0}}if(r){T.forEach((f,c)=>{s==2?c>0&&o.y&&(f._paths=null):o[f.scale]&&(f._paths=null)});for(let f in o)Wt=!0,Ve("setScale",f);O.show&&O.left>=0&&(Lt=et=!0)}for(let f in I)I[f]=null}function Ei(t){let o=nn(Ae-1,0,Fe-1),r=nn(Pe+1,0,Fe-1);for(;t[o]==null&&o>0;)o--;for(;t[r]==null&&r<Fe-1;)r++;return[o,r]}function Ai(){Fe>0&&(T.forEach((t,o)=>{if(o>0&&t.show&&(ko(o,!1),ko(o,!0),t._paths==null)){let r=s==2?[0,n[o][0].length-1]:Ei(n[o]);t._paths=t.paths(l,o,r[0],r[1])}}),T.forEach((t,o)=>{if(o>0&&t.show){yl!=t.alpha&&(h.globalAlpha=yl=t.alpha),t._paths!=null&&To(o,!1);{let r=t._paths!=null?t._paths.gaps:null,f=t.points.show(l,o,Ae,Pe,r),c=t.points.filter(l,o,f,r);(f||c)&&(t.points._paths=t.points.paths(l,o,Ae,Pe,c),To(o,!0))}yl!=1&&(h.globalAlpha=yl=1),Ve("drawSeries",o)}}))}function ko(t,o){let r=o?T[t].points:T[t];r._stroke=r.stroke(l,t),r._fill=r.fill(l,t)}function To(t,o){let r=o?T[t].points:T[t],{stroke:f,fill:c,clip:g,flags:_,_stroke:v=r._stroke,_fill:k=r._fill,_width:E=r.width}=r._paths;E=ce(E*re,3);let y=null,D=E%2/2;o&&k==null&&(k=E>0?"#fff":v);let q=r.pxAlign==1&&D>0;if(q&&h.translate(D,D),!o){let _e=Et-E/2,$=At-E/2,ne=Pt+E,oe=Dt+E;y=new Path2D,y.rect(_e,$,ne,oe)}o?En(v,E,r.dash,r.cap,k,f,c,_,g):Pi(t,v,E,r.dash,r.cap,k,f,c,_,y,g),q&&h.translate(-D,-D)}function Pi(t,o,r,f,c,g,_,v,k,E,y){let D=!1;k!=0&&Y.forEach((q,_e)=>{if(q.series[0]==t){let $=T[q.series[1]],ne=n[q.series[1]],oe=($._paths||zl).band;kt(oe)&&(oe=q.dir==1?oe[0]:oe[1]);let ae,Se=null;$.show&&oe&&Ar(ne,Ae,Pe)?(Se=q.fill(l,_e)||g,ae=$._paths.clip):oe=null,En(o,r,f,c,Se,_,v,k,E,y,ae,oe),D=!0}}),D||En(o,r,f,c,g,_,v,k,E,y)}let xo=cl|Zn;function En(t,o,r,f,c,g,_,v,k,E,y,D){vo(t,o,r,f,c),(k||E||D)&&(h.save(),k&&h.clip(k),E&&h.clip(E)),D?(v&xo)==xo?(h.clip(D),y&&h.clip(y),Ul(c,_),Bl(t,g,o)):v&Zn?(Ul(c,_),h.clip(D),Bl(t,g,o)):v&cl&&(h.save(),h.clip(D),y&&h.clip(y),Ul(c,_),h.restore(),Bl(t,g,o)):(Ul(c,_),Bl(t,g,o)),(k||E||D)&&h.restore()}function Bl(t,o,r){r>0&&(o instanceof Map?o.forEach((f,c)=>{h.strokeStyle=Yl=c,h.stroke(f)}):o!=null&&t&&h.stroke(o))}function Ul(t,o){o instanceof Map?o.forEach((r,f)=>{h.fillStyle=Yt=f,h.fill(r)}):o!=null&&t&&h.fill(o)}function Di(t,o,r,f){let c=R[t],g;if(f<=0)g=[0,0];else{let _=c._space=c.space(l,t,o,r,f),v=c._incrs=c.incrs(l,t,o,r,f,_);g=Qf(o,r,v,f,_)}return c._found=g}function An(t,o,r,f,c,g,_,v,k,E){let y=_%2/2;F==1&&h.translate(y,y),vo(v,_,k,E,v),h.beginPath();let D,q,_e,$,ne=c+(f==0||f==3?-g:g);r==0?(q=c,$=ne):(D=c,_e=ne);for(let oe=0;oe<t.length;oe++)o[oe]!=null&&(r==0?D=_e=t[oe]:q=$=t[oe],h.moveTo(D,q),h.lineTo(_e,$));h.stroke(),F==1&&h.translate(-y,-y)}function Li(t){let o=!0;return R.forEach((r,f)=>{if(!r.show)return;let c=A[r.scale];if(c.min==null){r._show&&(o=!1,r._show=!1,Bt(!1));return}else r._show||(o=!1,r._show=!0,Bt(!1));let g=r.side,_=g%2,{min:v,max:k}=c,[E,y]=Di(f,v,k,_==0?G:K);if(y==0)return;let D=c.distr==2,q=r._splits=r.splits(l,f,v,k,E,y,D),_e=c.distr==2?q.map(ae=>tt[ae]):q,$=c.distr==2?tt[q[1]]-tt[q[0]]:E,ne=r._values=r.values(l,r.filter(l,_e,f,y,$),f,y,$);r._rotate=g==2?r.rotate(l,ne,f,y):0;let oe=r._size;r._size=sl(r.size(l,ne,f,t)),oe!=null&&r._size!=oe&&(o=!1)}),o}function Ci(t){let o=!0;return So.forEach((r,f)=>{let c=r(l,f,Rt,t);c!=St[f]&&(o=!1),St[f]=c}),o}function Ri(){for(let t=0;t<R.length;t++){let o=R[t];if(!o.show||!o._show)continue;let r=o.side,f=r%2,c,g,_=o.stroke(l,t),v=r==0||r==3?-1:1;if(o.label){let nt=o.labelGap*v,ht=xe((o._lpos+nt)*re);yo(o.labelFont[0],_,"center",r==2?Pl:$o),h.save(),f==1?(c=g=0,h.translate(ht,xe(At+Dt/2)),h.rotate((r==3?-en:en)/2)):(c=xe(Et+Pt/2),g=ht),h.fillText(o.label,c,g),h.restore()}let[k,E]=o._found;if(E==0)continue;let y=A[o.scale],D=f==0?Pt:Dt,q=f==0?Et:At,_e=xe(o.gap*re),$=o._splits,ne=y.distr==2?$.map(nt=>tt[nt]):$,oe=y.distr==2?tt[$[1]]-tt[$[0]]:k,ae=o.ticks,Se=o.border,Ue=ae.show?xe(ae.size*re):0,ge=o._rotate*-en/180,be=W(o._pos*re),Ne=(Ue+_e)*v,ve=be+Ne;g=f==0?ve:0,c=f==1?ve:0;let Be=o.font[0],lt=o.align==1?tl:o.align==2?On:ge>0?tl:ge<0?On:f==0?"center":r==3?On:tl,yt=ge||f==1?"middle":r==2?Pl:$o;yo(Be,_,lt,yt);let Yo=o.font[1]*o.lineGap,Jl=$.map(nt=>W(d(nt,y,D,q))),Bo=o._values;for(let nt=0;nt<Bo.length;nt++){let ht=Bo[nt];if(ht!=null){f==0?c=Jl[nt]:g=Jl[nt],ht=""+ht;let Uo=ht.indexOf(`
`)==-1?[ht]:ht.split(/\n/gm);for(let Al=0;Al<Uo.length;Al++){let Ko=Uo[Al];ge?(h.save(),h.translate(c,g+Al*Yo),h.rotate(ge),h.fillText(Ko,0,0),h.restore()):h.fillText(Ko,c,g+Al*Yo)}}}ae.show&&An(Jl,ae.filter(l,ne,t,E,oe),f,r,be,Ue,ce(ae.width*re,3),ae.stroke(l,t),ae.dash,ae.cap);let el=o.grid;el.show&&An(Jl,el.filter(l,ne,t,E,oe),f,f==0?2:1,f==0?At:Et,f==0?Dt:Pt,ce(el.width*re,3),el.stroke(l,t),el.dash,el.cap),Se.show&&An([be],[1],f==0?1:0,f==0?1:2,f==1?At:Et,f==1?Dt:Pt,ce(Se.width*re,3),Se.stroke(l,t),Se.dash,Se.cap)}Ve("drawAxes")}function Bt(t){T.forEach((o,r)=>{r>0&&(o._paths=null,t&&(s==1?(o.min=null,o.max=null):o.facets.forEach(f=>{f.min=null,f.max=null})))})}let Pn=!1;function Ft(){Pn||(Gr(Fi),Pn=!0)}function Fi(){if(gn&&(Mi(),gn=!1),Wt&&(Si(),Wt=!1),Il){if(we(L,tl,Te),we(L,Pl,Ee),we(L,Ll,G),we(L,Cl,K),we(M,tl,Te),we(M,Pl,Ee),we(M,Ll,G),we(M,Cl,K),we(b,Ll,Ye),we(b,Cl,Je),w.width=xe(Ye*re),w.height=xe(Je*re),R.forEach(({_el:t,_show:o,_size:r,_pos:f,side:c})=>{if(t!=null)if(o){let g=c===3||c===0?r:0,_=c%2==1;we(t,_?"left":"top",f-g),we(t,_?"width":"height",r),we(t,_?"top":"left",_?Ee:Te),we(t,_?"height":"width",_?K:G),Kn(t,Nt)}else Ke(t,Nt)}),Yl=Yt=_n=yn=bn=kn=Tn=xn=vn=null,yl=1,Ml(!0),Te!=ct||Ee!=It||G!=mn||K!=dn){Bt(!1);let t=G/mn,o=K/dn;if(O.show&&!Lt&&O.left>=0){O.left*=t,O.top*=o,Ut&&pt(Ut,xe(O.left),0,G,K),Kt&&pt(Kt,0,xe(O.top),G,K);for(let r=1;r<He.length;r++)wl[r]*=t,Sl[r]*=o,pt(He[r],Tt(wl[r],1),Tt(Sl[r],1),G,K)}if(de.show&&!Wl&&de.left>=0&&de.width>0){de.left*=t,de.width*=t,de.top*=o,de.height*=o;for(let r in zn)we(Jt,r,de[r])}ct=Te,It=Ee,mn=G,dn=K}Ve("setSize"),Il=!1}Ye>0&&Je>0&&(h.clearRect(0,0,w.width,w.height),Ve("drawClear"),U.forEach(t=>t()),Ve("draw")),de.show&&Wl&&(Kl(de),Wl=!1),O.show&&Lt&&(zt(null,!0,!1),Lt=!1),z.show&&z.live&&et&&(Rn(),et=!1),m||(m=!0,l.status=1,Ve("ready")),vl=!1,Pn=!1}l.redraw=(t,o)=>{Wt=o||!1,t!==!1?Zt(P,x.min,x.max):Ft()};function Dn(t,o){let r=A[t];if(r.from==null){if(Fe==0){let f=r.range(l,o.min,o.max,t);o.min=f[0],o.max=f[1]}if(o.min>o.max){let f=o.min;o.min=o.max,o.max=f}if(Fe>1&&o.min!=null&&o.max!=null&&o.max-o.min<1e-16)return;t==P&&r.distr==2&&Fe>0&&(o.min=bt(o.min,n[0]),o.max=bt(o.max,n[0]),o.min==o.max&&o.max++),I[t]=o,gn=!0,Ft()}}l.setScale=Dn;let Ln,Cn,Ut,Kt,Mo,Eo,qt,jt,Ao,Po,pe,me,_t=!1,ze=O.drag,De=ze.x,Le=ze.y;O.show&&(O.x&&(Ln=Ze(cr,M)),O.y&&(Cn=Ze(hr,M)),x.ori==0?(Ut=Ln,Kt=Cn):(Ut=Cn,Kt=Ln),pe=O.left,me=O.top);let de=l.select=ke({show:!0,over:!0,left:0,width:0,top:0,height:0},e.select),Jt=de.show?Ze(ar,de.over?M:L):null;function Kl(t,o){if(de.show){for(let r in t)de[r]=t[r],r in zn&&we(Jt,r,t[r]);o!==!1&&Ve("setSelect")}}l.setSelect=Kl;function zi(t,o){let r=T[t],f=j?st[t]:null;r.show?f&&Kn(f,Nt):(f&&Ke(f,Nt),He.length>1&&pt(He[t],-10,-10,G,K))}function Zt(t,o,r){Dn(t,{min:o,max:r})}function rt(t,o,r,f){o.focus!=null&&Ii(t),o.show!=null&&T.forEach((c,g)=>{g>0&&(t==g||t==null)&&(c.show=o.show,zi(g,o.show),Zt(s==2?c.facets[1].scale:c.scale,null,null),Ft())}),r!==!1&&Ve("setSeries",t,o),f&&El("setSeries",l,t,o)}l.setSeries=rt;function Vi(t,o){ke(Y[t],o)}function Ni(t,o){t.fill=Q(t.fill||null),t.dir=se(t.dir,-1),o=o??Y.length,Y.splice(o,0,t)}function Oi(t){t==null?Y.length=0:Y.splice(t,1)}l.addBand=Ni,l.setBand=Vi,l.delBand=Oi;function Hi(t,o){T[t].alpha=o,O.show&&He[t]&&(He[t].style.opacity=o),j&&st[t]&&(st[t].style.opacity=o)}let $t,bl,kl,Qt={focus:!0};function Ii(t){if(t!=kl){let o=t==null,r=Gt.alpha!=1;T.forEach((f,c)=>{let g=o||c==0||c==t;f._focus=o?null:g,r&&Hi(c,g?1:Gt.alpha)}),kl=t,r&&Ft()}}j&&gl&&he(ls,Ge,t=>{O._lock||(Ct(t),kl!=null&&rt(null,Qt,!0,ye.setSeries))});function ft(t,o,r){let f=A[o];r&&(t=t/re-(f.ori==1?Ee:Te));let c=G;f.ori==1&&(c=K,t=c-t),f.dir==-1&&(t=c-t);let g=f._min,_=f._max,v=t/c,k=g+(_-g)*v,E=f.distr;return E==3?il(10,k):E==4?Dr(k,f.asinh):k}function Wi(t,o){let r=ft(t,P,o);return bt(r,n[0],Ae,Pe)}l.valToIdx=t=>bt(t,n[0]),l.posToIdx=Wi,l.posToVal=ft,l.valToPos=(t,o,r)=>A[o].ori==0?u(t,A[o],r?Pt:G,r?Et:0):p(t,A[o],r?Dt:K,r?At:0);function Gi(t){t(l),Ft()}l.batch=Gi,l.setCursor=(t,o,r)=>{pe=t.left,me=t.top,zt(null,o,r)};function Do(t,o){we(Jt,tl,de.left=t),we(Jt,Ll,de.width=o)}function Lo(t,o){we(Jt,Pl,de.top=t),we(Jt,Cl,de.height=o)}let Tl=x.ori==0?Do:Lo,xl=x.ori==1?Do:Lo;function Yi(){if(j&&z.live)for(let t=s==2?1:0;t<T.length;t++){if(t==0&&Qe)continue;let o=z.values[t],r=0;for(let f in o)gt[t][r++].firstChild.nodeValue=o[f]}}function Rn(t,o){t!=null&&(t.idxs?t.idxs.forEach((r,f)=>{ie[f]=r}):Fr(t.idx)||ie.fill(t.idx),z.idx=ie[0]);for(let r=0;r<T.length;r++)(r>0||s==1&&!Qe)&&Bi(r,ie[r]);j&&z.live&&Yi(),et=!1,o!==!1&&Ve("setLegend")}l.setLegend=Rn;function Bi(t,o){let r=T[t],f=t==0&&H==2?tt:n[t],c;Qe?c=r.values(l,t,o)??at:(c=r.value(l,o==null?null:f[o],t,o),c=c==null?at:{_:c}),z.values[t]=c}function zt(t,o,r){Ao=pe,Po=me,[pe,me]=O.move(l,pe,me),O.show&&(Ut&&pt(Ut,xe(pe),0,G,K),Kt&&pt(Kt,0,xe(me),G,K));let f,c=Ae>Pe;$t=X;let g=x.ori==0?G:K,_=x.ori==1?G:K;if(pe<0||Fe==0||c){f=null;for(let v=0;v<T.length;v++)v>0&&He.length>1&&pt(He[v],-10,-10,G,K);gl&&rt(null,Qt,!0,t==null&&ye.setSeries),z.live&&(ie.fill(f),et=!0)}else{let v,k,E;s==1&&(v=x.ori==0?pe:me,k=ft(v,P),f=bt(k,n[0],Ae,Pe),E=ee(n[0][f],x,g,0));for(let y=s==2?1:0;y<T.length;y++){let D=T[y],q=ie[y],_e=q==null?null:s==1?n[y][q]:n[y][1][q],$=O.dataIdx(l,y,f,k),ne=$==null?null:s==1?n[y][$]:n[y][1][$];et=et||ne!=_e||$!=q,ie[y]=$;let oe=$==f?E:ee(s==1?n[0][$]:n[y][0][$],x,g,0);if(y>0&&D.show){let ae=ne==null?-10:te(ne,s==1?A[D.scale]:A[D.facets[1].scale],_,0);if(gl&&s==1&&ne!=null){let ge=Ce(Gt.dist(l,y,$,ae,me));if(ge<$t){let be=Gt.bias;if(be!=0){let Ne=x.ori==1?pe:me,ve=ft(Ne,D.scale),Be=ne>=0?1:-1,lt=ve>=0?1:-1;lt==Be&&(lt==1?be==1?ne>=ve:ne<=ve:be==1?ne<=ve:ne>=ve)&&($t=ge,bl=y)}else $t=ge,bl=y}}let Se,Ue;if(x.ori==0?(Se=oe,Ue=ae):(Se=ae,Ue=oe),et&&He.length>1){kr(He[y],O.points.fill(l,y),O.points.stroke(l,y));let ge,be,Ne,ve,Be=!0,lt=O.points.bbox;if(lt!=null){Be=!1;let yt=lt(l,y);Ne=yt.left,ve=yt.top,ge=yt.width,be=yt.height}else Ne=Se,ve=Ue,ge=be=O.points.size(l,y);Tr(He[y],ge,be,Be),wl[y]=Ne,Sl[y]=ve,pt(He[y],Tt(Ne,1),Tt(ve,1),G,K)}}}}if(O.idx=f,O.left=pe,O.top=me,et&&(z.idx=f,Rn()),de.show&&_t)if(t!=null){let[v,k]=ye.scales,[E,y]=ye.match,[D,q]=t.cursor.sync.scales,_e=t.cursor.drag;if(De=_e._x,Le=_e._y,De||Le){let{left:$,top:ne,width:oe,height:ae}=t.select,Se=t.scales[v].ori,Ue=t.posToVal,ge,be,Ne,ve,Be,lt=v!=null&&E(v,D),yt=k!=null&&y(k,q);lt&&De?(Se==0?(ge=$,be=oe):(ge=ne,be=ae),Ne=A[v],ve=ee(Ue(ge,D),Ne,g,0),Be=ee(Ue(ge+be,D),Ne,g,0),Tl($e(ve,Be),Ce(Be-ve))):Tl(0,g),yt&&Le?(Se==1?(ge=$,be=oe):(ge=ne,be=ae),Ne=A[k],ve=te(Ue(ge,q),Ne,_,0),Be=te(Ue(ge+be,q),Ne,_,0),xl($e(ve,Be),Ce(Be-ve))):xl(0,_)}else ql()}else{let v=Ce(Ao-Mo),k=Ce(Po-Eo);if(x.ori==1){let q=v;v=k,k=q}De=ze.x&&v>=ze.dist,Le=ze.y&&k>=ze.dist;let E=ze.uni;E!=null?De&&Le&&(De=v>=E,Le=k>=E,!De&&!Le&&(k>v?Le=!0:De=!0)):ze.x&&ze.y&&(De||Le)&&(De=Le=!0);let y,D;De&&(x.ori==0?(y=qt,D=pe):(y=jt,D=me),Tl($e(y,D),Ce(D-y)),Le||xl(0,_)),Le&&(x.ori==1?(y=qt,D=pe):(y=jt,D=me),xl($e(y,D),Ce(D-y)),De||Tl(0,g)),!De&&!Le&&(Tl(0,0),xl(0,0))}if(ze._x=De,ze._y=Le,t==null){if(r){if(Go!=null){let[v,k]=ye.scales;ye.values[0]=v!=null?ft(x.ori==0?pe:me,v):null,ye.values[1]=k!=null?ft(x.ori==1?pe:me,k):null}El(Xo,l,pe,me,G,K,f)}if(gl){let v=r&&ye.setSeries,k=Gt.prox;kl==null?$t<=k&&rt(bl,Qt,!0,v):$t>k?rt(null,Qt,!0,v):bl!=kl&&rt(bl,Qt,!0,v)}}o!==!1&&Ve("setCursor")}let vt=null;Object.defineProperty(l,"rect",{get(){return vt==null&&Ml(!1),vt}});function Ml(t=!1){t?vt=null:(vt=M.getBoundingClientRect(),Ve("syncRect",vt))}function Co(t,o,r,f,c,g,_){O._lock||_t&&t!=null&&t.movementX==0&&t.movementY==0||(Fn(t,o,r,f,c,g,_,!1,t!=null),t!=null?zt(null,!0,!0):zt(o,!0,!1))}function Fn(t,o,r,f,c,g,_,v,k){if(vt==null&&Ml(!1),Ct(t),t!=null)r=t.clientX-vt.left,f=t.clientY-vt.top;else{if(r<0||f<0){pe=-10,me=-10;return}let[E,y]=ye.scales,D=o.cursor.sync,[q,_e]=D.values,[$,ne]=D.scales,[oe,ae]=ye.match,Se=o.axes[0].side%2==1,Ue=x.ori==0?G:K,ge=x.ori==1?G:K,be=Se?g:c,Ne=Se?c:g,ve=Se?f:r,Be=Se?r:f;if($!=null?r=oe(E,$)?d(q,A[E],Ue,0):-10:r=Ue*(ve/be),ne!=null?f=ae(y,ne)?d(_e,A[y],ge,0):-10:f=ge*(Be/Ne),x.ori==1){let lt=r;r=f,f=lt}}k&&((r<=1||r>=G-1)&&(r=Vt(r,G)),(f<=1||f>=K-1)&&(f=Vt(f,K))),v?(Mo=r,Eo=f,[qt,jt]=O.move(l,r,f)):(pe=r,me=f)}let zn={width:0,height:0,left:0,top:0};function ql(){Kl(zn,!1)}let Ro,Fo,zo,Vo;function No(t,o,r,f,c,g,_){_t=!0,De=Le=ze._x=ze._y=!1,Fn(t,o,r,f,c,g,_,!0,!1),t!=null&&(he(Hn,Bn,Oo,!1),El(es,l,qt,jt,G,K,null));let{left:v,top:k,width:E,height:y}=de;Ro=v,Fo=k,zo=E,Vo=y,ql()}function Oo(t,o,r,f,c,g,_){_t=ze._x=ze._y=!1,Fn(t,o,r,f,c,g,_,!1,!0);let{left:v,top:k,width:E,height:y}=de,D=E>0||y>0,q=Ro!=v||Fo!=k||zo!=E||Vo!=y;if(D&&q&&Kl(de),ze.setScale&&D&&q){let _e=v,$=E,ne=k,oe=y;if(x.ori==1&&(_e=k,$=y,ne=v,oe=E),De&&Zt(P,ft(_e,P),ft(_e+$,P)),Le)for(let ae in A){let Se=A[ae];ae!=P&&Se.from==null&&Se.min!=X&&Zt(ae,ft(ne+oe,ae),ft(ne,ae))}ql()}else O.lock&&(O._lock=!O._lock,O._lock||zt(null,!0,!1));t!=null&&(Xe(Hn,Bn),El(Hn,l,pe,me,G,K,null))}function Ui(t,o,r,f,c,g,_){if(O._lock)return;Ct(t);let v=_t;if(_t){let k=!0,E=!0,y=10,D,q;x.ori==0?(D=De,q=Le):(D=Le,q=De),D&&q&&(k=pe<=y||pe>=G-y,E=me<=y||me>=K-y),D&&k&&(pe=pe<qt?0:G),q&&E&&(me=me<jt?0:K),zt(null,!0,!0),_t=!1}pe=-10,me=-10,zt(null,!0,!0),v&&(_t=v)}function Ho(t,o,r,f,c,g,_){O._lock||(Ct(t),Sn(),ql(),t!=null&&El(ns,l,pe,me,G,K,null))}function Io(){R.forEach(Xf),wn(l.width,l.height,!0)}Ot(tn,nl,Io);let Xt={};Xt.mousedown=No,Xt.mousemove=Co,Xt.mouseup=Oo,Xt.dblclick=Ho,Xt.setSeries=(t,o,r,f)=>{let c=ye.match[2];r=c(l,o,r),r!=-1&&rt(r,f,!0,!1)},O.show&&(he(es,M,No),he(Xo,M,Co),he(ts,M,t=>{Ct(t),Ml(!1)}),he(ls,M,Ui),he(ns,M,Ho),$n.add(l),l.syncRect=Ml);let jl=l.hooks=e.hooks||{};function Ve(t,o,r){t in jl&&jl[t].forEach(f=>{f.call(null,l,o,r)})}(e.plugins||[]).forEach(t=>{for(let o in t.hooks)jl[o]=(jl[o]||[]).concat(t.hooks[o])});let Wo=(t,o,r)=>r,ye=ke({key:null,setSeries:!1,filters:{pub:hs,sub:hs},scales:[P,T[1]?T[1].scale:null],match:[ps,ps,Wo],values:[null,null]},O.sync);ye.match.length==2&&ye.match.push(Wo),O.sync=ye;let Go=ye.key,Vn=ni(Go);function El(t,o,r,f,c,g,_){ye.filters.pub(t,o,r,f,c,g,_)&&Vn.pub(t,o,r,f,c,g,_)}Vn.sub(l);function Ki(t,o,r,f,c,g,_){ye.filters.sub(t,o,r,f,c,g,_)&&Xt[t](null,o,r,f,c,g,_)}l.pub=Ki;function qi(){Vn.unsub(l),$n.delete(l),J.clear(),qn(tn,nl,Io),S.remove(),Ge?.remove(),Ve("destroy")}l.destroy=qi;function Nn(){Ve("init",e,n),_o(n||e.data,!1),I[P]?Dn(P,I[P]):Sn(),Wl=de.show&&(de.width>0||de.height>0),Lt=et=!0,wn(e.width,e.height)}return T.forEach(wo),R.forEach(xi),i?i instanceof HTMLElement?(i.appendChild(S),Nn()):i(l,Nn):Nn(),l}Oe.assign=ke;Oe.fmtNum=oo;Oe.rangeNum=ln;Oe.rangeLog=sn;Oe.rangeAsinh=lo;Oe.orient=Ht;Oe.pxRatio=re;Oe.join=Wr;Oe.fmtDate=io,Oe.tzDate=Qr;Oe.sync=ni;{Oe.addGap=Nf,Oe.clipGaps=fn;let e=Oe.paths={points:ui};e.linear=ci,e.stepped=If,e.bars=Wf,e.spline=Yf}function po(e,n,i,l){let s=e.series[n],a=e.data[0],u=e.data[n],p="x",d=s.scale,m=new Path2D,S=Math.abs((e.valToPos(a[0],p,!0)-e.valToPos(a[1],p,!0))/2);m.moveTo(Math.round(e.valToPos(a[0],p,!0)),Math.round(e.valToPos(u[0],d,!0)));for(let M=i;M<l;M++){let F=Math.round(e.valToPos(a[M],p,!0)),W=Math.round(e.valToPos(u[M],d,!0)),C=Math.round(e.valToPos(a[M+1],p,!0)),T=Math.round(e.valToPos(u[M+1],d,!0));m.lineTo(F-S,W),m.lineTo(C-S,W),M==l-1&&(m.lineTo(C-S,T),m.lineTo(C,T))}let w=new Path2D(m),h=Math.round(e.valToPos(e.scales[d].min,d,!0)),b=Math.round(e.valToPos(e.scales[p].min,p,!0)),L=Math.round(e.valToPos(e.scales[p].max,p,!0));return w.lineTo(L,h),w.lineTo(b,h),{stroke:m,fill:w}}function Nl(e,n){return e&&e.toFixed(n)}function eu(e,n){let i={width:e.clientWidth,height:600},l=null;return n=="Linear"?l=s=>s&&s:n=="Log10"?l=s=>s&&Math.pow(10,s):n=="Log2"&&(l=s=>s&&Math.pow(2,s)),{id:e.id+"-chart",width:i.width,height:i.height,labelSize:10,labelFont:"bold 8px Arial",ticks:{show:!1},points:{show:!1},font:"8px Arial",padding:[null,30,null,30],series:[{value:"{HH}:{mm}:{ss}"},{label:"P99",stroke:"rgb(155, 214, 206)",value:(s,a)=>Nl(l(a),3)+"ms",fill:"rgb(155, 214, 206, 0.5 )",paths:po,scale:"ms"},{label:"P90",stroke:"rgb(79, 169, 184)",value:(s,a)=>Nl(l(a),3)+"ms",fill:"rgb(79, 169, 184, 0.5)",paths:po,scale:"ms"},{label:"P50",stroke:"rgb(2, 88, 115)",value:(s,a)=>Nl(l(a),3)+"ms",fill:"rgb(2, 88, 115, 0.5)",paths:po,scale:"ms"},{label:"count",stroke:"rgb(30, 30, 30)",value:(s,a)=>l(a)+"cps",scale:"calls"}],axes:[{values:[[1,"{HH}:{mm}:{ss}",null,null,null,null,null,null,1]]},{scale:"ms",grid:{show:!1},values:(s,a,u)=>a.map(p=>Nl(l(p),3)+"ms")},{side:1,values:(s,a,u)=>a.map(p=>Nl(l(p),1)+" calls"),scale:"calls",grid:{show:!1}}]}}var mo=class{constructor(n,i,l){let s=eu(n,l);this.uplotChart=new Oe(s,i,n)}updateData(n,i){this.uplotChart.setData(n,i)}},hn="",di={mounted(){let e=this.el.parentElement.querySelector(".chart");hn=JSON.parse(e.dataset.scale);let n=JSON.parse(e.dataset.quantile);this.chart=new mo(e,n,hn)},updated(){let e=this.el.parentElement.querySelector(".chart"),n=JSON.parse(e.dataset.scale);if(hn==n){let i=JSON.parse(e.dataset.quantile);this.chart.updateData(i,hn)}else this.mounted()}};var tu=document.querySelector("html").getAttribute("phx-socket")||"/live",lu=document.querySelector("meta[name='csrf-token']").getAttribute("content"),nu={ChartData:di},gi=new LiveView.LiveSocket(tu,Phoenix.Socket,{hooks:nu,params:{_csrf_token:lu}});pn.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",e=>pn.default.show());window.addEventListener("phx:page-loading-stop",e=>pn.default.hide());gi.connect();window.liveSocket=gi;})();
/*! Bundled license information:
topbar/topbar.min.js:
(**
* @license MIT
* topbar 2.0.0, 2023-02-04
* http://buunguyen.github.io/topbar
* Copyright (c) 2021 Buu Nguyen
*)
*/