@accounter/client
Version:
Accounter client application
4 lines • 290 kB
JavaScript
import{a as e,r as t,s as n,t as r}from"./dist-C51EwTaa.js";import{a as i,i as a,o,t as s}from"./utils-DdVdMk8X.js";import{Zo as c,ba as l}from"./error-handling-Dpfd9svJ.js";import{n as u,t as d}from"./dist-CpBGIA40.js";import{r as f}from"./similar-transactions-modal-DD7YfdjJ.js";import{Lt as p,W as m}from"./table--bF0wbxq.js";import{$t as h,y as g}from"./index-CL8-JoMZ.js";import{A as _,B as v,C as y,D as b,E as x,F as S,H as C,I as w,J as T,K as E,L as D,M as O,N as k,O as ee,P as te,S as ne,T as A,U as re,V as ie,W as ae,X as oe,Y as se,_ as ce,a as le,b as ue,c as de,d as fe,f as pe,g as me,h as he,i as ge,j as _e,k as ve,l as ye,m as be,n as xe,o as Se,p as j,q as Ce,r as we,s as Te,t as Ee,u as De,v as Oe,w as ke,x as Ae,y as je}from"./wiggle-CncM-Ckv.js";function Me(e=se){if(e===se)return Ne;if(typeof e!=`function`)throw TypeError(`compare is not a function`);return(t,n)=>{let r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function Ne(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:+(e>t))}function Pe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function Fe(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Ie(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?Ne:Me(i);r>n;){if(r-n>600){let a=r-n+1,o=t-n+1,s=Math.log(a),c=.5*Math.exp(2*s/3),l=.5*Math.sqrt(s*c*(a-c)/a)*(o-a/2<0?-1:1),u=Math.max(n,Math.floor(t-o*c/a+l)),d=Math.min(r,Math.floor(t+(a-o)*c/a+l));Ie(e,t,u,d,i)}let a=e[t],o=n,s=r;for(Le(e,n,t),i(e[r],a)>0&&Le(e,n,r);o<s;){for(Le(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?Le(e,n,s):(++s,Le(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Le(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function Re(e,t,n){if(e=Float64Array.from(T(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Fe(e);if(t>=1)return Pe(e);var r,i=(r-1)*t,a=Math.floor(i),o=Pe(Ie(e,a).subarray(0,a+1));return o+(Fe(e.subarray(a+1))-o)*(i-a)}}function ze(e,t,n=Ce){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e);return o+(+n(e[a+1],a+1,e)-o)*(i-a)}}function Be(){var e=ie().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=ae(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return Be(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},re.apply(d(),arguments)}function Ve(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return Ve(t())},e}function He(){return Ve(Be.apply(null,arguments).paddingInner(1))}function Ue(e,t){t===void 0&&(t=e,e=D);for(var n=0,r=t.length-1,i=t[0],a=Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return a[t](e-t)}}function We(e){var t;function n(e){return e==null||isNaN(e=+e)?t:e}return n.invert=n,n.domain=n.range=function(t){return arguments.length?(e=Array.from(t,S),n):e.slice()},n.unknown=function(e){return arguments.length?(t=e,n):t},n.copy=function(){return We(e).unknown(t)},e=arguments.length?Array.from(e,S):[0,1],_e(n)}function Ge(e){return Math.sign(e)*e*e}function Ke(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function qe(){var e=k(),t=[0,1],n=!1,r;function i(t){var i=Ke(e(t));return isNaN(i)?r:n?Math.round(i):i}return i.invert=function(t){return e.invert(Ge(t))},i.domain=function(t){return arguments.length?(e.domain(t),i):e.domain()},i.range=function(n){return arguments.length?(e.range((t=Array.from(n,S)).map(Ge)),i):t.slice()},i.rangeRound=function(e){return i.range(e).round(!0)},i.round=function(e){return arguments.length?(n=!!e,i):n},i.clamp=function(t){return arguments.length?(e.clamp(t),i):e.clamp()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return qe(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},re.apply(i,arguments),_e(i)}function Je(){var e=[],t=[],n=[],r;function i(){var r=0,i=Math.max(1,t.length);for(n=Array(i-1);++r<i;)n[r-1]=ze(e,r/i);return a}function a(e){return e==null||isNaN(e=+e)?r:t[E(n,e)]}return a.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},a.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(se),i()},a.range=function(e){return arguments.length?(t=Array.from(e),i()):t.slice()},a.unknown=function(e){return arguments.length?(r=e,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return Je().domain(e).range(t).unknown(r)},re.apply(a,arguments)}function Ye(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(e){return e!=null&&e<=e?i[E(r,e,0,n)]:a}function s(){var i=-1;for(r=Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?([e,t]=n,e=+e,t=+t,s()):[e,t]},o.range=function(e){return arguments.length?(n=(i=Array.from(e)).length-1,s()):i.slice()},o.invertExtent=function(a){var o=i.indexOf(a);return o<0?[NaN,NaN]:o<1?[e,r[0]]:o>=n?[r[n-1],t]:[r[o-1],r[o]]},o.unknown=function(e){return arguments.length&&(a=e),o},o.thresholds=function(){return r.slice()},o.copy=function(){return Ye().domain([e,t]).range(i).unknown(a)},re.apply(_e(o),arguments)}function Xe(){var e=[],t=te;function n(n){if(n!=null&&!isNaN(n=+n))return t((E(e,n,1)-1)/(e.length-1))}return n.domain=function(t){if(!arguments.length)return e.slice();e=[];for(let n of t)n!=null&&!isNaN(n=+n)&&e.push(n);return e.sort(se),n},n.interpolator=function(e){return arguments.length?(t=e,n):t},n.range=function(){return e.map((n,r)=>t(r/(e.length-1)))},n.quantiles=function(t){return Array.from({length:t+1},(n,r)=>Re(e,r/t))},n.copy=function(){return Xe(t).domain(e)},C.apply(n,arguments)}function Ze(){var e=0,t=.5,n=1,r=1,i,a,o,s,c,l=te,u,d=!1,f;function p(e){return isNaN(e=+e)?f:(e=.5+((e=+u(e))-a)*(r*e<r*a?s:c),l(d?Math.max(0,Math.min(1,e)):e))}p.domain=function(l){return arguments.length?([e,t,n]=l,i=u(e=+e),a=u(t=+t),o=u(n=+n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p):[e,t,n]},p.clamp=function(e){return arguments.length?(d=!!e,p):d},p.interpolator=function(e){return arguments.length?(l=e,p):l};function m(e){return function(t){var n,r,i;return arguments.length?([n,r,i]=t,l=Ue(e,[n,r,i]),p):[l(0),l(.5),l(1)]}}return p.range=m(D),p.rangeRound=m(w),p.unknown=function(e){return arguments.length?(f=e,p):f},function(l){return u=l,i=l(e),a=l(t),o=l(n),s=i===a?0:.5/(a-i),c=a===o?0:.5/(o-a),r=a<i?-1:1,p}}function Qe(){var e=_e(Ze()(te));return e.copy=function(){return be(e,Qe())},C.apply(e,arguments)}function $e(){var e=ve(Ze()).domain([.1,1,10]);return e.copy=function(){return be(e,$e()).base(e.base())},C.apply(e,arguments)}function et(){var e=b(Ze());return e.copy=function(){return be(e,et()).constant(e.constant())},C.apply(e,arguments)}function tt(){var e=ke(Ze());return e.copy=function(){return be(e,tt()).exponent(e.exponent())},C.apply(e,arguments)}function nt(){return tt.apply(null,arguments).exponent(.5)}var rt=Math.PI,it=2*rt,at=1e-6,ot=it-at;function st(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ct(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return st;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var lt=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?st:ct(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>at)if(!(Math.abs(u*s-c*l)>at)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((rt-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>at&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>at||Math.abs(this._y1-l)>at)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%it+it),d>ot?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>at&&this._append`A${n},${n},0,${+(d>=rt)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function ut(){return new lt}ut.prototype=lt.prototype;function dt(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new lt(t)}function ft(e){this._context=e}ft.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function pt(e){return new ft(e)}function mt(e){return e[0]}function ht(e){return e[1]}function gt(e,t){var n=j(!0),r=null,i=pt,a=null,o=dt(s);e=typeof e==`function`?e:e===void 0?mt:j(e),t=typeof t==`function`?t:t===void 0?ht:j(t);function s(s){var c,l=(s=Te(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:j(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:j(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:j(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function _t(e,t,n){var r=null,i=j(!0),a=null,o=pt,s=null,c=dt(l);e=typeof e==`function`?e:e===void 0?mt:j(+e),t=typeof t==`function`?t:j(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?ht:j(+n);function l(l){var u,d,f,p=(l=Te(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h)if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return gt().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:j(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:j(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:j(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:j(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:j(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:j(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:j(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}var vt=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function yt(e){return new vt(e,!0)}function bt(e){return new vt(e,!1)}var xt={draw(e,t){let n=fe(t/ye);e.moveTo(n,0),e.arc(0,0,n,0,pe)}},St={draw(e,t){let n=fe(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},Ct=fe(1/3),wt=Ct*2,Tt={draw(e,t){let n=fe(t/wt),r=n*Ct;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Et={draw(e,t){let n=fe(t),r=-n/2;e.rect(r,r,n,n)}},Dt=.8908130915292852,Ot=De(ye/10)/De(7*ye/10),kt=De(pe/10)*Ot,At=-de(pe/10)*Ot,jt={draw(e,t){let n=fe(t*Dt),r=kt*n,i=At*n;e.moveTo(0,-n),e.lineTo(r,i);for(let t=1;t<5;++t){let a=pe*t/5,o=de(a),s=De(a);e.lineTo(s*n,-o*n),e.lineTo(o*r-s*i,s*r+o*i)}e.closePath()}},Mt=fe(3),Nt={draw(e,t){let n=-fe(t/(Mt*3));e.moveTo(0,n*2),e.lineTo(-Mt*n,-n),e.lineTo(Mt*n,-n),e.closePath()}},Pt=-.5,Ft=fe(3)/2,It=1/fe(12),Lt=(It/2+1)*3,Rt={draw(e,t){let n=fe(t/Lt),r=n/2,i=n*It,a=r,o=n*It+n,s=-a,c=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,c),e.lineTo(Pt*r-Ft*i,Ft*r+Pt*i),e.lineTo(Pt*a-Ft*o,Ft*a+Pt*o),e.lineTo(Pt*s-Ft*c,Ft*s+Pt*c),e.lineTo(Pt*r+Ft*i,Pt*i-Ft*r),e.lineTo(Pt*a+Ft*o,Pt*o-Ft*a),e.lineTo(Pt*s+Ft*c,Pt*c-Ft*s),e.closePath()}};function zt(e,t){let n=null,r=dt(i);e=typeof e==`function`?e:j(e||xt),t=typeof t==`function`?t:j(t===void 0?64:+t);function i(){let i;if(n||=i=r(),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+``||null}return i.type=function(t){return arguments.length?(e=typeof t==`function`?t:j(t),i):e},i.size=function(e){return arguments.length?(t=typeof e==`function`?e:j(+e),i):t},i.context=function(e){return arguments.length?(n=e??null,i):n},i}function Bt(){}function Vt(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Ht(e){this._context=e}Ht.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Vt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Vt(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ut(e){return new Ht(e)}function Wt(e){this._context=e}Wt.prototype={areaStart:Bt,areaEnd:Bt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Vt(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Gt(e){return new Wt(e)}function Kt(e){this._context=e}Kt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Vt(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qt(e){return new Kt(e)}function Jt(e){this._context=e}Jt.prototype={areaStart:Bt,areaEnd:Bt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function Yt(e){return new Jt(e)}function Xt(e){return e<0?-1:1}function Zt(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Xt(a)+Xt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Qt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function $t(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function en(e){this._context=e}en.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:$t(this,this._t0,Qt(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,$t(this,Qt(this,n=Zt(this,e,t)),n);break;default:$t(this,this._t0,n=Zt(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function tn(e){this._context=new nn(e)}(tn.prototype=Object.create(en.prototype)).point=function(e,t){en.prototype.point.call(this,t,e)};function nn(e){this._context=e}nn.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function rn(e){return new en(e)}function an(e){return new tn(e)}function on(e){this._context=e}on.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=sn(e),i=sn(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function sn(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function cn(e){return new on(e)}function ln(e,t){this._context=e,this._t=t}ln.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}this._x=e,this._y=t}};function un(e){return new ln(e,.5)}function dn(e){return new ln(e,0)}function fn(e){return new ln(e,1)}var M=n(o()),pn=n(c());u();var mn=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function hn(e){return typeof e==`string`?mn.includes(e):!1}var gn=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function _n(e){return typeof e==`string`?gn.has(e):!1}function vn(e){return typeof e==`string`&&e.startsWith(`data-`)}function yn(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(_n(n)||vn(n))&&(t[n]=e[n]);return t}function bn(e){if(e==null)return null;if((0,M.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return yn(t)}return typeof e==`object`&&!Array.isArray(e)?yn(e):null}function xn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(_n(n)||vn(n)||hn(n))&&(t[n]=e[n]);return t}function Sn(e){return e==null?null:(0,M.isValidElement)(e)?xn(e.props):typeof e==`object`&&!Array.isArray(e)?xn(e):null}var Cn=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function wn(){return wn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wn.apply(null,arguments)}function Tn(e,t){if(e==null)return{};var n,r,i=En(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function En(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Dn=(0,M.forwardRef)((e,t)=>{var{children:n,width:r,height:a,viewBox:o,className:s,style:c,title:l,desc:u}=e,d=Tn(e,Cn),f=o||{width:r,height:a,x:0,y:0},p=i(`recharts-surface`,s);return M.createElement(`svg`,wn({},xn(d),{className:p,width:r,height:a,style:c,viewBox:`${f.x} ${f.y} ${f.width} ${f.height}`,ref:t}),M.createElement(`title`,null,l),M.createElement(`desc`,null,u),n)});r();var On=oe(),kn=[`children`,`className`];function An(){return An=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},An.apply(null,arguments)}function jn(e,t){if(e==null)return{};var n,r,i=Mn(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Mn(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Nn=M.forwardRef((e,t)=>{var{children:n,className:r}=e,a=jn(e,kn),o=i(`recharts-layer`,r);return M.createElement(`g`,An({className:o},xn(a),{ref:t}),n)}),Pn=(0,M.createContext)(null),Fn=()=>(0,M.useContext)(Pn);function In(e){return e===`__proto__`}function Ln(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e.includes(`.`)||e.includes(`[`)||e.includes(`]`)}}function Rn(e){return typeof e==`string`||typeof e==`symbol`?e:Object.is(e?.valueOf?.(),-0)?`-0`:String(e)}function zn(e){if(e==null)return``;if(typeof e==`string`)return e;if(Array.isArray(e))return e.map(zn).join(`,`);let t=String(e);return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function Bn(e){if(Array.isArray(e))return e.map(Rn);if(typeof e==`symbol`)return[e];e=zn(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let s=e[r];if(a)s===`\\`&&r+1<n?(r++,i+=e[r]):s===a?a=``:i+=s;else if(o)s===`"`||s===`'`?a=s:s===`]`?(o=!1,t.push(i),i=``):i+=s;else if(s===`[`)o=!0,i&&=(t.push(i),``);else if(s===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=s;r++}return i&&t.push(i),t}function Vn(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(In(t))return n;let r=e[t];return r===void 0?Ln(t)?Vn(e,Bn(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=Rn(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return Hn(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),In(t))return n;let r=e[t];return r===void 0?n:r}}}function Hn(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||In(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var Un=4;function Wn(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:Un),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function N(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+Wn(i)+n},``)}var Gn=e=>e===0?0:e>0?1:-1,Kn=e=>typeof e==`number`&&e!=+e,qn=e=>typeof e==`string`&&e.indexOf(`%`)===e.length-1,P=e=>(typeof e==`number`||e instanceof Number)&&!Kn(e),Jn=e=>P(e)||typeof e==`string`,Yn=0,Xn=e=>{var t=++Yn;return`${e||``}${t}`},Zn=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!P(e)&&typeof e!=`string`)return n;var i;if(qn(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return Kn(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},Qn=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function $n(e,t,n){return P(e)&&P(t)?Wn(e+n*(t-e)):t}function er(e,t,n){if(!(!e||!e.length))return e.find(e=>e&&(typeof t==`function`?t(e):Vn(e,t))===n)}var F=e=>e==null,tr=e=>F(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function nr(e){return e!=null}function rr(){}var ir=[`type`,`size`,`sizeType`];function ar(){return ar=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ar.apply(null,arguments)}function or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?or(Object(n),!0).forEach(function(t){cr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cr(e,t,n){return(t=lr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lr(e){var t=ur(e,`string`);return typeof t==`symbol`?t:t+``}function ur(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function dr(e,t){if(e==null)return{};var n,r,i=fr(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function fr(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var pr={symbolCircle:xt,symbolCross:St,symbolDiamond:Tt,symbolSquare:Et,symbolStar:jt,symbolTriangle:Nt,symbolWye:Rt},mr=Math.PI/180,hr=e=>pr[`symbol${tr(e)}`]||xt,gr=(e,t,n)=>{if(t===`area`)return e;switch(n){case`cross`:return 5*e*e/9;case`diamond`:return .5*e*e/Math.sqrt(3);case`square`:return e*e;case`star`:var r=18*mr;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2);case`triangle`:return Math.sqrt(3)*e*e/4;case`wye`:return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},_r=(e,t)=>{pr[`symbol${tr(e)}`]=t},vr=e=>{var{type:t=`circle`,size:n=64,sizeType:r=`area`}=e,a=sr(sr({},dr(e,ir)),{},{type:t,size:n,sizeType:r}),o=`circle`;typeof t==`string`&&(o=t);var s=()=>{var e=hr(o),t=zt().type(e).size(gr(n,r,o))();if(t!==null)return t},{className:c,cx:l,cy:u}=a,d=xn(a);return P(l)&&P(u)&&P(n)?M.createElement(`path`,ar({},d,{className:i(`recharts-symbols`,c),transform:`translate(${l}, ${u})`,d:s()})):null};vr.registerSymbol=_r;var yr=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,br=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,M.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{hn(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},xr=(e,t,n)=>r=>(e(t,n,r),null),Sr=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];hn(i)&&typeof a==`function`&&(r||={},r[i]=xr(a,t,n))}),r};function Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function wr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cr(Object(n),!0).forEach(function(t){Tr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Tr(e,t,n){return(t=Er(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Er(e){var t=Dr(e,`string`);return typeof t==`symbol`?t:t+``}function Dr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Or(e,t){var n=wr({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function kr(){return kr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kr.apply(null,arguments)}function Ar(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Ar(Object(n),!0).forEach(function(t){Mr(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ar(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Mr(e,t,n){return(t=Nr(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nr(e){var t=Pr(e,`string`);return typeof t==`symbol`?t:t+``}function Pr(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Fr=32,Ir={align:`center`,iconSize:14,inactiveColor:`#ccc`,layout:`horizontal`,verticalAlign:`middle`,labelStyle:{}};function Lr(e){if(typeof e==`object`&&e&&`strokeDasharray`in e)return String(e.strokeDasharray)}function Rr(e){var{data:t,iconType:n,inactiveColor:r}=e,i=Fr/2,a=Fr/6,o=Fr/3,s=t.inactive?r:t.color,c=n??t.type;if(c===`none`)return null;if(c===`plainline`)return M.createElement(`line`,{strokeWidth:4,fill:`none`,stroke:s,strokeDasharray:Lr(t.payload),x1:0,y1:i,x2:Fr,y2:i,className:`recharts-legend-icon`});if(c===`line`)return M.createElement(`path`,{strokeWidth:4,fill:`none`,stroke:s,d:`M0,${i}h${o}
A${a},${a},0,1,1,${2*o},${i}
H${Fr}M${2*o},${i}
A${a},${a},0,1,1,${o},${i}`,className:`recharts-legend-icon`});if(c===`rect`)return M.createElement(`path`,{stroke:`none`,fill:s,d:`M0,${Fr/8}h${Fr}v${Fr*3/4}h${-Fr}z`,className:`recharts-legend-icon`});if(M.isValidElement(t.legendIcon)){var l=jr({},t);return delete l.legendIcon,M.cloneElement(t.legendIcon,l)}return M.createElement(vr,{fill:s,cx:i,cy:i,size:Fr,sizeType:`diameter`,type:c})}function zr(e){var{payload:t,iconSize:n,layout:r,formatter:a,inactiveColor:o,iconType:s,labelStyle:c}=e,l={x:0,y:0,width:Fr,height:Fr},u={display:r===`horizontal`?`inline-block`:`block`,marginRight:10},d={display:`inline-block`,verticalAlign:`middle`,marginRight:4};return t.map((t,r)=>{var f=t.formatter||a,p=i({"recharts-legend-item":!0,[`legend-item-${r}`]:!0,inactive:t.inactive});if(t.type===`none`)return null;var m=typeof c==`object`?jr({},c):{};m.color=t.inactive?o:m.color||t.color;var h=f?f(t.value,t,r):t.value;return M.createElement(`li`,kr({className:p,style:u,key:`legend-item-${r}`},Sr(e,t,r)),M.createElement(Dn,{width:n,height:n,viewBox:l,style:d,"aria-label":`${t.value} legend icon`},M.createElement(Rr,{data:t,iconType:s,inactiveColor:o})),M.createElement(`span`,{className:`recharts-legend-item-text`,style:m},h))})}var Br=e=>{var t=Or(e,Ir),{payload:n,layout:r,align:i}=t;if(!n||!n.length)return null;var a={padding:0,margin:0,textAlign:r===`horizontal`?i:`left`};return M.createElement(`ul`,{className:`recharts-default-legend`,style:a},M.createElement(zr,kr({},t,{payload:n})))};function Vr(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function Hr(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function Ur(e){return e}function Wr(e){return function(t){return Vn(t,e)}}function Gr(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function Kr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function qr(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}function Jr(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Yr=`[object RegExp]`,Xr=`[object String]`,Zr=`[object Number]`,Qr=`[object Boolean]`,$r=`[object Arguments]`,ei=`[object Symbol]`,ti=`[object Date]`,ni=`[object Map]`,ri=`[object Set]`,ii=`[object Array]`,ai=`[object ArrayBuffer]`,oi=`[object Object]`,si=`[object DataView]`,ci=`[object Uint8Array]`,li=`[object Uint8ClampedArray]`,ui=`[object Uint16Array]`,di=`[object Uint32Array]`,fi=`[object Int8Array]`,pi=`[object Int16Array]`,mi=`[object Int32Array]`,hi=`[object Float32Array]`,gi=`[object Float64Array]`,_i=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof d==`object`&&d||(function(){return this})();function vi(e){return _i.Buffer!==void 0&&_i.Buffer.isBuffer(e)}function yi(e,t){return bi(e,void 0,e,new Map,t)}function bi(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Gr(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=bi(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,bi(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(bi(a,void 0,n,r,i));return t}if(vi(e))return e.subarray();if(Kr(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=bi(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),xi(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),xi(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),xi(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,xi(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),xi(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),xi(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),xi(t,e,n,r,i),t}if(typeof e==`object`&&Si(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),xi(t,e,n,r,i),t}return e}function xi(e,t,n=e,r,i){let a=[...Object.keys(t),...qr(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=bi(t[s],s,n,r,i))}}function Si(e){switch(Jr(e)){case $r:case ii:case ai:case si:case Qr:case ti:case hi:case gi:case fi:case pi:case mi:case ni:case Zr:case oi:case Yr:case ri:case Xr:case ei:case ci:case li:case ui:case di:return!0;default:return!1}}function Ci(e){return bi(e,void 0,e,new Map,void 0)}function wi(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Ti(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Ei(e,t,n){return typeof n==`function`?Di(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Di(t,r,e,s,!1):!!c},new Map,!0):Ei(e,t,()=>void 0)}function Di(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Oi(e,t,n,r);case`function`:return Object.keys(t).length>0?Di(e,{...t},n,r,i):wi(e,t);default:return Ti(e)&&i?typeof t==`string`?t===``:!0:wi(e,t)}}function Oi(e,t,n,r){if(t==null)return!0;if(Array.isArray(t))return Ai(e,t,n,r);if(t instanceof Map)return ki(e,t,n,r);if(t instanceof Set)return ji(e,t,n,r);let i=Object.keys(t);if(e==null||Gr(e))return i.length===0;if(i.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let a=0;a<i.length;a++){let o=i[a];if(!Gr(e)&&!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function ki(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Ai(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function ji(e,t,n,r){return t.size===0?!0:e instanceof Set?Ai([...e],[...t],n,r):!1}function Mi(e,t){return Ei(e,t,()=>void 0)}function Ni(e){return e=Ci(e),t=>Mi(t,e)}function Pi(e,t){return yi(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Jr(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),xi(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Zr:case Xr:case Qr:{let t=new e.constructor(e?.valueOf());return xi(t,e),t}case $r:{let t={};return xi(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}function Fi(e){return Pi(e)}var Ii=/^(?:0|[1-9]\d*)$/;function Li(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return Ii.test(e)}}function Ri(e){return typeof e==`object`&&!!e&&Jr(e)===`[object Arguments]`}function zi(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&Ln(t)&&e?.[t]==null?Bn(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=n[e];if((r==null||!Object.hasOwn(r,t))&&!((Array.isArray(r)||Ri(r))&&Li(t)&&t<r.length))return!1;r=r[t]}return!0}function Bi(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=Rn(e);break}return t=Fi(t),function(n){let r=Vn(n,e);return r===void 0?zi(n,e):t===void 0?r===void 0:Mi(r,t)}}function Vi(e){if(e==null)return Ur;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?Bi(e[0],e[1]):Ni(e);case`string`:case`symbol`:case`number`:return Wr(e)}}function Hi(e){return Number.isSafeInteger(e)&&e>=0}function Ui(e){return e!=null&&typeof e!=`function`&&Hi(e.length)}function Wi(e){return typeof e==`object`&&!!e}function Gi(e){return Wi(e)&&Ui(e)}function Ki(e,t=Ur){return Gi(e)?Vr(Array.from(e),Hr(Vi(t),1)):[]}function qi(e,t,n){return t===!0?Ki(e,n):typeof t==`function`?Ki(e,t):e}var Ji=(0,M.createContext)(null),Yi=e=>e,I=()=>{var e=(0,M.useContext)(Ji);return e?e.store.dispatch:Yi},Xi=()=>{},Zi=()=>Xi,Qi=(e,t)=>e===t;function L(e){var t=(0,M.useContext)(Ji),n=(0,M.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:Xi,[t,e]);return(0,On.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:Zi,t?t.store.getState:Xi,t?t.store.getState:Xi,n,Qi)}function $i(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function ea(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!=`object`)throw TypeError(t)}function ta(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var na=e=>Array.isArray(e)?e:[e];function ra(e){let t=Array.isArray(e[0])?e[0]:e;return ta(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function ia(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var aa=class{constructor(e){this.value=e}deref(){return this.value}},oa=typeof WeakRef<`u`?WeakRef:aa,sa=0,ca=1;function la(){return{s:sa,v:void 0,o:null,p:null}}function ua(e,t={}){let n=la(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=la(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=la(),e.set(n,t)):t=r}}let s=t,c;if(t.s===ca)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=i?.deref?.()??i;e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c=