import{i as e,l as t,r as n,s as r}from"./linear-DAeDjlp3.js";import{t as i}from"./init-D6jRqBbL.js";function a(e){return e}var o=1,s=2,c=3,l=4,u=1e-6;function d(e){return`translate(`+e+`,0)`}function f(e){return`translate(0,`+e+`)`}function ee(e){return t=>+e(t)}function p(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function te(){return!this.__axis}function m(e,t){var n=[],r=null,i=null,m=6,h=6,g=3,_=typeof window<`u`&&window.devicePixelRatio>1?0:.5,v=e===o||e===l?-1:1,y=e===l||e===s?`x`:`y`,b=e===o||e===c?d:f;function x(d){var f=r??(t.ticks?t.ticks.apply(t,n):t.domain()),x=i??(t.tickFormat?t.tickFormat.apply(t,n):a),S=Math.max(m,0)+g,C=t.range(),w=+C[0]+_,T=+C[C.length-1]+_,E=(t.bandwidth?p:ee)(t.copy(),_),D=d.selection?d.selection():d,O=D.selectAll(`.domain`).data([null]),k=D.selectAll(`.tick`).data(f,t).order(),A=k.exit(),j=k.enter().append(`g`).attr(`class`,`tick`),M=k.select(`line`),N=k.select(`text`);O=O.merge(O.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),k=k.merge(j),M=M.merge(j.append(`line`).attr(`stroke`,`currentColor`).attr(y+`2`,v*m)),N=N.merge(j.append(`text`).attr(`fill`,`currentColor`).attr(y,v*S).attr(`dy`,e===o?`0em`:e===c?`0.71em`:`0.32em`)),d!==D&&(O=O.transition(d),k=k.transition(d),M=M.transition(d),N=N.transition(d),A=A.transition(d).attr(`opacity`,u).attr(`transform`,function(e){return isFinite(e=E(e))?b(e+_):this.getAttribute(`transform`)}),j.attr(`opacity`,u).attr(`transform`,function(e){var t=this.parentNode.__axis;return b((t&&isFinite(t=t(e))?t:E(e))+_)})),A.remove(),O.attr(`d`,e===l||e===s?h?`M`+v*h+`,`+w+`H`+_+`V`+T+`H`+v*h:`M`+_+`,`+w+`V`+T:h?`M`+w+`,`+v*h+`V`+_+`H`+T+`V`+v*h:`M`+w+`,`+_+`H`+T),k.attr(`opacity`,1).attr(`transform`,function(e){return b(E(e)+_)}),M.attr(y+`2`,v*m),N.attr(y,v*S).text(x),D.filter(te).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===s?`start`:e===l?`end`:`middle`),D.each(function(){this.__axis=E})}return x.scale=function(e){return arguments.length?(t=e,x):t},x.ticks=function(){return n=Array.from(arguments),x},x.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),x):n.slice()},x.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),x):r&&r.slice()},x.tickFormat=function(e){return arguments.length?(i=e,x):i},x.tickSize=function(e){return arguments.length?(m=h=+e,x):m},x.tickSizeInner=function(e){return arguments.length?(m=+e,x):m},x.tickSizeOuter=function(e){return arguments.length?(h=+e,x):h},x.tickPadding=function(e){return arguments.length?(g=+e,x):g},x.offset=function(e){return arguments.length?(_=+e,x):_},x}function h(e){return m(o,e)}function g(e){return m(s,e)}function _(e){return m(c,e)}function v(e){return m(l,e)}function y(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(sS(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(b.setTime(+t),x.setTime(+r),e(b),e(x),Math.floor(n(b,x))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var C=S(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);C.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?S(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):C),C.range;var w=1e3,T=w*60,E=T*60,D=E*24,O=D*7,k=D*30,A=D*365,j=S(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*w)},(e,t)=>(t-e)/w,e=>e.getUTCSeconds());j.range;var M=S(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*w)},(e,t)=>{e.setTime(+e+t*T)},(e,t)=>(t-e)/T,e=>e.getMinutes());M.range;var N=S(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*T)},(e,t)=>(t-e)/T,e=>e.getUTCMinutes());N.range;var P=S(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*w-e.getMinutes()*T)},(e,t)=>{e.setTime(+e+t*E)},(e,t)=>(t-e)/E,e=>e.getHours());P.range;var ne=S(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*E)},(e,t)=>(t-e)/E,e=>e.getUTCHours());ne.range;var F=S(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*T)/D,e=>e.getDate()-1);F.range;var I=S(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/D,e=>e.getUTCDate()-1);I.range;var re=S(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/D,e=>Math.floor(e/D));re.range;function L(e){return S(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*T)/O)}var R=L(0),z=L(1),ie=L(2),ae=L(3),B=L(4),oe=L(5),se=L(6);R.range,z.range,ie.range,ae.range,B.range,oe.range,se.range;function V(e){return S(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/O)}var H=V(0),U=V(1),ce=V(2),le=V(3),W=V(4),ue=V(5),de=V(6);H.range,U.range,ce.range,le.range,W.range,ue.range,de.range;var G=S(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());G.range;var fe=S(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());fe.range;var K=S(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());K.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:S(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),K.range;var q=S(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());q.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:S(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),q.range;function pe(e,n,i,a,o,s){let c=[[j,1,w],[j,5,5*w],[j,15,15*w],[j,30,30*w],[s,1,T],[s,5,5*T],[s,15,15*T],[s,30,30*T],[o,1,E],[o,3,3*E],[o,6,6*E],[o,12,12*E],[a,1,D],[a,2,2*D],[i,1,O],[n,1,k],[n,3,3*k],[e,1,A]];function l(e,t,n){let r=te).right(c,o);if(s===c.length)return e.every(r(n/A,i/A,a));if(s===0)return C.every(Math.max(r(n,i,a),1));let[l,u]=c[o/c[s-1][2]53)return null;`w`in r||(r.w=1),`Z`in r?(a=ye(J(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?U.ceil(a):U(a),a=I.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=ve(J(r.y,0,1)),o=a.getDay(),a=o>4||o===0?z.ceil(a):z(a),a=F.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else (`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?ye(J(r.y,0,1)).getUTCDay():ve(J(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,ye(r)):ve(r)}}function S(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=y[s in xe?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function C(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function w(e,t,n){var r=ee.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function T(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=te.exec(t.slice(n));return r?(e.m=m.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,n,r){return S(e,t,n,r)}function k(e,t,r){return S(e,n,t,r)}function A(e,t,n){return S(e,r,t,n)}function j(e){return o[e.getDay()]}function M(e){return a[e.getDay()]}function N(e){return c[e.getMonth()]}function P(e){return s[e.getMonth()]}function ne(e){return i[+(e.getHours()>=12)]}function re(e){return 1+~~(e.getMonth()/3)}function L(e){return o[e.getUTCDay()]}function R(e){return a[e.getUTCDay()]}function ie(e){return c[e.getUTCMonth()]}function ae(e){return s[e.getUTCMonth()]}function B(e){return i[+(e.getUTCHours()>=12)]}function oe(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=b(e+=``,_);return t.toString=function(){return e},t},parse:function(e){var t=x(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=b(e+=``,v);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e+=``,!0);return t.toString=function(){return e},t}}}var xe={"-":``,_:` `,0:`0`},Y=/^\s*\d+/,Se=/^%/,Ce=/[\\^$*+?|[\]().{}]/g;function X(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a[e.toLowerCase(),t]))}function Te(e,t,n){var r=Y.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ee(e,t,n){var r=Y.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function De(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Oe(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function ke(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ae(e,t,n){var r=Y.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function je(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Me(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Ne(e,t,n){var r=Y.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Pe(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Fe(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ie(e,t,n){var r=Y.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Le(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Re(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ze(e,t,n){var r=Y.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Be(e,t,n){var r=Y.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ve(e,t,n){var r=Y.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function He(e,t,n){var r=Se.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Ue(e,t,n){var r=Y.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function We(e,t,n){var r=Y.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ge(e,t){return X(e.getDate(),t,2)}function Ke(e,t){return X(e.getHours(),t,2)}function qe(e,t){return X(e.getHours()%12||12,t,2)}function Je(e,t){return X(1+F.count(K(e),e),t,3)}function Ye(e,t){return X(e.getMilliseconds(),t,3)}function Xe(e,t){return Ye(e,t)+`000`}function Ze(e,t){return X(e.getMonth()+1,t,2)}function Qe(e,t){return X(e.getMinutes(),t,2)}function $e(e,t){return X(e.getSeconds(),t,2)}function et(e){var t=e.getDay();return t===0?7:t}function tt(e,t){return X(R.count(K(e)-1,e),t,2)}function nt(e){var t=e.getDay();return t>=4||t===0?B(e):B.ceil(e)}function rt(e,t){return e=nt(e),X(B.count(K(e),e)+(K(e).getDay()===4),t,2)}function it(e){return e.getDay()}function at(e,t){return X(z.count(K(e)-1,e),t,2)}function ot(e,t){return X(e.getFullYear()%100,t,2)}function st(e,t){return e=nt(e),X(e.getFullYear()%100,t,2)}function ct(e,t){return X(e.getFullYear()%1e4,t,4)}function lt(e,t){var n=e.getDay();return e=n>=4||n===0?B(e):B.ceil(e),X(e.getFullYear()%1e4,t,4)}function ut(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+X(t/60|0,`0`,2)+X(t%60,`0`,2)}function dt(e,t){return X(e.getUTCDate(),t,2)}function ft(e,t){return X(e.getUTCHours(),t,2)}function pt(e,t){return X(e.getUTCHours()%12||12,t,2)}function mt(e,t){return X(1+I.count(q(e),e),t,3)}function ht(e,t){return X(e.getUTCMilliseconds(),t,3)}function gt(e,t){return ht(e,t)+`000`}function _t(e,t){return X(e.getUTCMonth()+1,t,2)}function vt(e,t){return X(e.getUTCMinutes(),t,2)}function yt(e,t){return X(e.getUTCSeconds(),t,2)}function bt(e){var t=e.getUTCDay();return t===0?7:t}function xt(e,t){return X(H.count(q(e)-1,e),t,2)}function St(e){var t=e.getUTCDay();return t>=4||t===0?W(e):W.ceil(e)}function Ct(e,t){return e=St(e),X(W.count(q(e),e)+(q(e).getUTCDay()===4),t,2)}function wt(e){return e.getUTCDay()}function Tt(e,t){return X(U.count(q(e)-1,e),t,2)}function Et(e,t){return X(e.getUTCFullYear()%100,t,2)}function Dt(e,t){return e=St(e),X(e.getUTCFullYear()%100,t,2)}function Ot(e,t){return X(e.getUTCFullYear()%1e4,t,4)}function kt(e,t){var n=e.getUTCDay();return e=n>=4||n===0?W(e):W.ceil(e),X(e.getUTCFullYear()%1e4,t,4)}function At(){return`+0000`}function jt(){return`%`}function Mt(e){return+e}function Nt(e){return Math.floor(e/1e3)}var $,Pt,Ft,It,Lt;Rt({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],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`]});function Rt(e){return $=be(e),Pt=$.format,Ft=$.parse,It=$.utcFormat,Lt=$.utcParse,$}function zt(e){return new Date(e)}function Bt(e){return e instanceof Date?+e:+new Date(+e)}function Vt(t,r,i,a,o,s,c,l,u,d){var f=n(),ee=f.invert,p=f.domain,te=d(`.%L`),m=d(`:%S`),h=d(`%I:%M`),g=d(`%I %p`),_=d(`%a %d`),v=d(`%b %d`),b=d(`%B`),x=d(`%Y`);function S(e){return(u(e)