@kaitranntt/ccs 5.12.1-dev.2 → 5.12.1-dev.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +23 -0
- package/VERSION +1 -1
- package/dist/cliproxy/account-manager.d.ts +20 -1
- package/dist/cliproxy/account-manager.d.ts.map +1 -1
- package/dist/cliproxy/account-manager.js +58 -3
- package/dist/cliproxy/account-manager.js.map +1 -1
- package/dist/cliproxy/auth-handler.d.ts +2 -0
- package/dist/cliproxy/auth-handler.d.ts.map +1 -1
- package/dist/cliproxy/auth-handler.js +26 -3
- package/dist/cliproxy/auth-handler.js.map +1 -1
- package/dist/cliproxy/cliproxy-executor.d.ts.map +1 -1
- package/dist/cliproxy/cliproxy-executor.js +57 -2
- package/dist/cliproxy/cliproxy-executor.js.map +1 -1
- package/dist/commands/cliproxy-command.d.ts.map +1 -1
- package/dist/commands/cliproxy-command.js +121 -5
- package/dist/commands/cliproxy-command.js.map +1 -1
- package/dist/commands/help-command.d.ts.map +1 -1
- package/dist/commands/help-command.js +3 -0
- package/dist/commands/help-command.js.map +1 -1
- package/dist/ui/assets/{accounts-B9xp2MbI.js → accounts-CINaiRWK.js} +1 -1
- package/dist/ui/assets/{analytics-BfjSH3d-.js → analytics-FGMB3Rg8.js} +36 -36
- package/dist/ui/assets/{api-DYr0Tx6Z.js → api-CgKbdMRy.js} +1 -1
- package/dist/ui/assets/cliproxy-BHWpNSSw.js +1 -0
- package/dist/ui/assets/{dropdown-menu-iwA6PgQW.js → dropdown-menu-B25I20Pd.js} +1 -1
- package/dist/ui/assets/form-utils-DKkU3nz7.js +20 -0
- package/dist/ui/assets/{health-ChYme1jV.js → health-BVdxHbAV.js} +1 -1
- package/dist/ui/assets/icons-DT8ZzQec.js +1 -0
- package/dist/ui/assets/index-CQlEaCI8.css +1 -0
- package/dist/ui/assets/index-CfJhTNCX.js +10 -0
- package/dist/ui/assets/{settings-B2OdR7RO.js → settings-DrNBNTwT.js} +1 -1
- package/dist/ui/assets/{shared-ZSfv4HA6.js → shared-CsIcdSca.js} +1 -1
- package/dist/ui/assets/{table-OTpVLgy9.js → table-C7tMF2ph.js} +1 -1
- package/dist/ui/index.html +4 -4
- package/dist/web-server/usage-routes.d.ts.map +1 -1
- package/dist/web-server/usage-routes.js +204 -2
- package/dist/web-server/usage-routes.js.map +1 -1
- package/package.json +3 -2
- package/dist/ui/assets/cliproxy-BuB-MuAt.js +0 -1
- package/dist/ui/assets/form-utils-CSa50xnO.js +0 -20
- package/dist/ui/assets/icons-ByUiVGTN.js +0 -1
- package/dist/ui/assets/index-ChihF1Y9.css +0 -1
- package/dist/ui/assets/index-P2CKOdyd.js +0 -10
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import{j as S}from"./radix-ui-DAH8Vq_G.js";import{i as Fi,j as se,r as D,c as P}from"./react-vendor-CjrBBxxX.js";import{c as vt,B as Fn,I as Ql,C as ft,a as dt,S as pe,b as J,d as m1,T as g1,e as b1,f as Go,g as Ko,h as Ut,i as Pn}from"./index-P2CKOdyd.js";import{n as k0,o as x1,D as I0,Z as N0,p as D0,q as R0,r as w1,s as O1,a as _1,R as S1,t as A1}from"./icons-ByUiVGTN.js";import{T as q0,a as L0,b as ia,c as Ne,d as B0,e as De}from"./table-OTpVLgy9.js";import{u as P1,a as Ci}from"./tanstack-DAI1tKxf.js";import"./form-utils-CSa50xnO.js";const F0=6048e5,j1=864e5,Wi=43200,Ah=1440,Ph=Symbol.for("constructDateFrom");function gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ph in e?e[Ph](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return gt(t||e,e)}function T1(e,t,r){const n=Oe(e,r?.in);return isNaN(t)?gt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}let E1={};function $i(){return E1}function Yn(e,t){const r=$i(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Oe(e,t?.in),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function aa(e,t){return Yn(e,{...t,weekStartsOn:1})}function W0(e,t){const r=Oe(e,t?.in),n=r.getFullYear(),i=gt(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=aa(i),o=gt(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=aa(o);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function oa(e){const t=Oe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ao(e,...t){const r=gt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function jh(e,t){const r=Oe(e,t?.in);return r.setHours(0,0,0,0),r}function M1(e,t,r){const[n,i]=ao(r?.in,e,t),a=jh(n),o=jh(i),u=+a-oa(a),s=+o-oa(o);return Math.round((u-s)/j1)}function C1(e,t){const r=W0(e,t),n=gt(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),aa(n)}function ra(e,t){const r=+Oe(e)-+Oe(t);return r<0?-1:r>0?1:r}function $1(e){return gt(e,Date.now())}function k1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function I1(e){return!(!k1(e)&&typeof e!="number"||isNaN(+Oe(e)))}function N1(e,t,r){const[n,i]=ao(r?.in,e,t),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return a*12+o}function D1(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function R1(e,t){return+Oe(e)-+Oe(t)}function q1(e,t){const r=Oe(e,t?.in);return r.setHours(23,59,59,999),r}function L1(e,t){const r=Oe(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function B1(e,t){const r=Oe(e,t?.in);return+q1(r,t)==+L1(r,t)}function F1(e,t,r){const[n,i,a]=ao(r?.in,e,e,t),o=ra(i,a),u=Math.abs(N1(i,a));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*u);let s=ra(i,a)===-o;B1(n)&&u===1&&ra(n,a)===1&&(s=!1);const c=o*(u-+s);return c===0?0:c}function W1(e,t,r){const n=R1(e,t)/1e3;return D1(r?.roundingMethod)(n)}function z1(e,t){const r=Oe(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function U1(e,t){const r=Oe(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const H1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},G1=(e,t,r)=>{let n;const i=H1[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Yo(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const K1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Y1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},V1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},X1={date:Yo({formats:K1,defaultWidth:"full"}),time:Yo({formats:Y1,defaultWidth:"full"}),dateTime:Yo({formats:V1,defaultWidth:"full"})},Z1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Q1=(e,t,r,n)=>Z1[e];function jn(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=r?.width?String(r.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=r?.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const J1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},e_={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},t_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},r_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},n_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},i_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},a_=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},o_={ordinalNumber:a_,era:jn({values:J1,defaultWidth:"wide"}),quarter:jn({values:e_,defaultWidth:"wide",argumentCallback:e=>e-1}),month:jn({values:t_,defaultWidth:"wide"}),day:jn({values:r_,defaultWidth:"wide"}),dayPeriod:jn({values:n_,defaultWidth:"wide",formattingValues:i_,defaultFormattingWidth:"wide"})};function Tn(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?s_(u,l=>l.test(o)):u_(u,l=>l.test(o));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;const f=t.slice(o.length);return{value:c,rest:f}}}function u_(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function s_(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function c_(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const l_=/^(\d+)(th|st|nd|rd)?/i,f_=/\d+/i,d_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},h_={any:[/^b/i,/^(a|c)/i]},p_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},v_={any:[/1/i,/2/i,/3/i,/4/i]},y_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},m_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},b_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},x_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},w_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},O_={ordinalNumber:c_({matchPattern:l_,parsePattern:f_,valueCallback:e=>parseInt(e,10)}),era:Tn({matchPatterns:d_,defaultMatchWidth:"wide",parsePatterns:h_,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:p_,defaultMatchWidth:"wide",parsePatterns:v_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Tn({matchPatterns:y_,defaultMatchWidth:"wide",parsePatterns:m_,defaultParseWidth:"any"}),day:Tn({matchPatterns:g_,defaultMatchWidth:"wide",parsePatterns:b_,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:x_,defaultMatchWidth:"any",parsePatterns:w_,defaultParseWidth:"any"})},z0={code:"en-US",formatDistance:G1,formatLong:X1,formatRelative:Q1,localize:o_,match:O_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function __(e,t){const r=Oe(e,t?.in);return M1(r,U1(r))+1}function S_(e,t){const r=Oe(e,t?.in),n=+aa(r)-+C1(r);return Math.round(n/F0)+1}function U0(e,t){const r=Oe(e,t?.in),n=r.getFullYear(),i=$i(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=gt(t?.in||e,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const u=Yn(o,t),s=gt(t?.in||e,0);s.setFullYear(n,0,a),s.setHours(0,0,0,0);const c=Yn(s,t);return+r>=+u?n+1:+r>=+c?n:n-1}function A_(e,t){const r=$i(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=U0(e,t),a=gt(t?.in||e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),Yn(a,t)}function P_(e,t){const r=Oe(e,t?.in),n=+Yn(r,t)-+A_(r,t);return Math.round(n/F0)+1}function oe(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Bt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return oe(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):oe(r+1,2)},d(e,t){return oe(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return oe(e.getHours()%12||12,t.length)},H(e,t){return oe(e.getHours(),t.length)},m(e,t){return oe(e.getMinutes(),t.length)},s(e,t){return oe(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return oe(i,t.length)}},Tr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Th={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Bt.y(e,t)},Y:function(e,t,r,n){const i=U0(e,n),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return oe(o,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):oe(a,t.length)},R:function(e,t){const r=W0(e);return oe(r,t.length)},u:function(e,t){const r=e.getFullYear();return oe(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return oe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return oe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Bt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return oe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=P_(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):oe(i,t.length)},I:function(e,t,r){const n=S_(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):oe(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Bt.d(e,t)},D:function(e,t,r){const n=__(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):oe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return oe(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return oe(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return oe(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Tr.noon:n===0?i=Tr.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Tr.evening:n>=12?i=Tr.afternoon:n>=4?i=Tr.morning:i=Tr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Bt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Bt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Bt.s(e,t)},S:function(e,t){return Bt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return Mh(n);case"XXXX":case"XX":return ar(n);case"XXXXX":case"XXX":default:return ar(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Mh(n);case"xxxx":case"xx":return ar(n);case"xxxxx":case"xxx":default:return ar(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Eh(n,":");case"OOOO":default:return"GMT"+ar(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Eh(n,":");case"zzzz":default:return"GMT"+ar(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return oe(n,t.length)},T:function(e,t,r){return oe(+e,t.length)}};function Eh(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return a===0?r+String(i):r+String(i)+t+oe(a,2)}function Mh(e,t){return e%60===0?(e>0?"-":"+")+oe(Math.abs(e)/60,2):ar(e,t)}function ar(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=oe(Math.trunc(n/60),2),a=oe(n%60,2);return r+i+t+a}const Ch=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},H0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},j_=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Ch(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ch(n,t)).replace("{{time}}",H0(i,t))},T_={p:H0,P:j_},E_=/^D+$/,M_=/^Y+$/,C_=["D","DD","YY","YYYY"];function $_(e){return E_.test(e)}function k_(e){return M_.test(e)}function I_(e,t,r){const n=N_(e,t,r);if(console.warn(n),C_.includes(e))throw new RangeError(n)}function N_(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const D_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,R_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,q_=/^'([^]*?)'?$/,L_=/''/g,B_=/[a-zA-Z]/;function ua(e,t,r){const n=$i(),i=n.locale??z0,a=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,u=Oe(e,r?.in);if(!I1(u))throw new RangeError("Invalid time value");let s=t.match(R_).map(f=>{const l=f[0];if(l==="p"||l==="P"){const d=T_[l];return d(f,i.formatLong)}return f}).join("").match(D_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const l=f[0];if(l==="'")return{isToken:!1,value:F_(f)};if(Th[l])return{isToken:!0,value:f};if(l.match(B_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:f}});i.localize.preprocessor&&(s=i.localize.preprocessor(u,s));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return s.map(f=>{if(!f.isToken)return f.value;const l=f.value;(k_(l)||$_(l))&&I_(l,t,String(e));const d=Th[l[0]];return d(u,l,i.localize,c)}).join("")}function F_(e){const t=e.match(q_);return t?t[1].replace(L_,"'"):e}function W_(e,t,r){const n=$i(),i=r?.locale??n.locale??z0,a=2520,o=ra(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const u=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o}),[s,c]=ao(r?.in,...o>0?[t,e]:[e,t]),f=W1(c,s),l=(oa(c)-oa(s))/1e3,d=Math.round((f-l)/60);let h;if(d<2)return r?.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,u):f<10?i.formatDistance("lessThanXSeconds",10,u):f<20?i.formatDistance("lessThanXSeconds",20,u):f<40?i.formatDistance("halfAMinute",0,u):f<60?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",1,u):d===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",d,u);if(d<45)return i.formatDistance("xMinutes",d,u);if(d<90)return i.formatDistance("aboutXHours",1,u);if(d<Ah){const y=Math.round(d/60);return i.formatDistance("aboutXHours",y,u)}else{if(d<a)return i.formatDistance("xDays",1,u);if(d<Wi){const y=Math.round(d/Ah);return i.formatDistance("xDays",y,u)}else if(d<Wi*2)return h=Math.round(d/Wi),i.formatDistance("aboutXMonths",h,u)}if(h=F1(c,s),h<12){const y=Math.round(d/Wi);return i.formatDistance("xMonths",y,u)}else{const y=h%12,v=Math.trunc(h/12);return y<3?i.formatDistance("aboutXYears",v,u):y<9?i.formatDistance("overXYears",v,u):i.formatDistance("almostXYears",v+1,u)}}function G0(e,t){return W_(e,$1(e),t)}function Vo(e,t,r){return T1(e,-t,r)}function z_({value:e,onChange:t,presets:r=[],className:n}){const i=u=>{t(u)},a=u=>{const s=u.target.value?new Date(u.target.value):void 0;t({from:s,to:e?.to})},o=u=>{const s=u.target.value?new Date(u.target.value):void 0;t({from:e?.from,to:s})};return S.jsxs("div",{className:vt("flex flex-wrap items-center gap-2",n),children:[r.map((u,s)=>S.jsx(Fn,{variant:U_(e,u.range)?"default":"outline",size:"sm",onClick:()=>i(u.range),children:u.label},s)),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx(k0,{className:"h-4 w-4 text-muted-foreground"}),S.jsx(Ql,{type:"date",value:e?.from?ua(e.from,"yyyy-MM-dd"):"",onChange:a,placeholder:"From",className:"w-40"})]}),S.jsx("span",{className:"text-muted-foreground",children:"to"}),S.jsx(Ql,{type:"date",value:e?.to?ua(e.to,"yyyy-MM-dd"):"",onChange:o,placeholder:"To",className:"w-40"})]})]})}function U_(e,t){if(!e||!t)return e===t;const r=e.from?.getTime()??0,n=t.from?.getTime()??0,i=e.to?.getTime()??0,a=t.to?.getTime()??0;return r===n&&i===a}function H_({data:e,isLoading:t}){if(t)return S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:[1,2,3,4].map(n=>S.jsx(ft,{children:S.jsx(dt,{className:"p-6",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsx(pe,{className:"h-4 w-[100px]"}),S.jsx(pe,{className:"h-8 w-[80px]"})]}),S.jsx(pe,{className:"h-8 w-8 rounded-lg"})]})})},n))});const r=[{title:"Total Tokens",value:e?.totalTokens??0,icon:x1,format:n=>Xo(n),color:"text-blue-600",bgColor:"bg-blue-100 dark:bg-blue-900/20"},{title:"Total Cost",value:e?.totalCost??0,icon:I0,format:n=>`$${n.toFixed(2)}`,color:"text-green-600",bgColor:"bg-green-100 dark:bg-green-900/20"},{title:"Total Requests",value:e?.totalRequests??0,icon:N0,format:n=>Xo(n),color:"text-purple-600",bgColor:"bg-purple-100 dark:bg-purple-900/20"},{title:"Avg Tokens/Request",value:e?.averageTokensPerRequest??0,icon:D0,format:n=>Xo(Math.round(n)),color:"text-orange-600",bgColor:"bg-orange-100 dark:bg-orange-900/20"}];return S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:r.map((n,i)=>{const a=n.icon;return S.jsx(ft,{className:"hover:shadow-md transition-shadow",children:S.jsx(dt,{className:"p-4",children:S.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[S.jsxs("div",{className:"space-y-1 min-w-0",children:[S.jsx("p",{className:"text-xs font-medium text-muted-foreground truncate",children:n.title}),S.jsx("p",{className:"text-xl font-bold truncate",children:n.format(n.value)})]}),S.jsx("div",{className:vt("p-2 rounded-lg shrink-0",n.bgColor),children:S.jsx(a,{className:vt("h-4 w-4",n.color)})})]})})},i)})})}function Xo(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}var Zo,$h;function He(){if($h)return Zo;$h=1;var e=Array.isArray;return Zo=e,Zo}var Qo,kh;function K0(){if(kh)return Qo;kh=1;var e=typeof Fi=="object"&&Fi&&Fi.Object===Object&&Fi;return Qo=e,Qo}var Jo,Ih;function wt(){if(Ih)return Jo;Ih=1;var e=K0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Jo=r,Jo}var eu,Nh;function ki(){if(Nh)return eu;Nh=1;var e=wt(),t=e.Symbol;return eu=t,eu}var tu,Dh;function G_(){if(Dh)return tu;Dh=1;var e=ki(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return tu=a,tu}var ru,Rh;function K_(){if(Rh)return ru;Rh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return ru=r,ru}var nu,qh;function Nt(){if(qh)return nu;qh=1;var e=ki(),t=G_(),r=K_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return nu=o,nu}var iu,Lh;function Dt(){if(Lh)return iu;Lh=1;function e(t){return t!=null&&typeof t=="object"}return iu=e,iu}var au,Bh;function yn(){if(Bh)return au;Bh=1;var e=Nt(),t=Dt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return au=n,au}var ou,Fh;function xd(){if(Fh)return ou;Fh=1;var e=He(),t=yn(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ou=i,ou}var uu,Wh;function Vt(){if(Wh)return uu;Wh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return uu=e,uu}var su,zh;function wd(){if(zh)return su;zh=1;var e=Nt(),t=Vt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return su=o,su}var cu,Uh;function Y_(){if(Uh)return cu;Uh=1;var e=wt(),t=e["__core-js_shared__"];return cu=t,cu}var lu,Hh;function V_(){if(Hh)return lu;Hh=1;var e=Y_(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return lu=r,lu}var fu,Gh;function Y0(){if(Gh)return fu;Gh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return fu=r,fu}var du,Kh;function X_(){if(Kh)return du;Kh=1;var e=wd(),t=V_(),r=Vt(),n=Y0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var h=e(d)?f:a;return h.test(n(d))}return du=l,du}var hu,Yh;function Z_(){if(Yh)return hu;Yh=1;function e(t,r){return t?.[r]}return hu=e,hu}var pu,Vh;function Or(){if(Vh)return pu;Vh=1;var e=X_(),t=Z_();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return pu=r,pu}var vu,Xh;function oo(){if(Xh)return vu;Xh=1;var e=Or(),t=e(Object,"create");return vu=t,vu}var yu,Zh;function Q_(){if(Zh)return yu;Zh=1;var e=oo();function t(){this.__data__=e?e(null):{},this.size=0}return yu=t,yu}var mu,Qh;function J_(){if(Qh)return mu;Qh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return mu=e,mu}var gu,Jh;function eS(){if(Jh)return gu;Jh=1;var e=oo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return gu=i,gu}var bu,ep;function tS(){if(ep)return bu;ep=1;var e=oo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return bu=n,bu}var xu,tp;function rS(){if(tp)return xu;tp=1;var e=oo(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return xu=r,xu}var wu,rp;function nS(){if(rp)return wu;rp=1;var e=Q_(),t=J_(),r=eS(),n=tS(),i=rS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,wu=a,wu}var Ou,np;function iS(){if(np)return Ou;np=1;function e(){this.__data__=[],this.size=0}return Ou=e,Ou}var _u,ip;function Od(){if(ip)return _u;ip=1;function e(t,r){return t===r||t!==t&&r!==r}return _u=e,_u}var Su,ap;function uo(){if(ap)return Su;ap=1;var e=Od();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Su=t,Su}var Au,op;function aS(){if(op)return Au;op=1;var e=uo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Au=n,Au}var Pu,up;function oS(){if(up)return Pu;up=1;var e=uo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Pu=t,Pu}var ju,sp;function uS(){if(sp)return ju;sp=1;var e=uo();function t(r){return e(this.__data__,r)>-1}return ju=t,ju}var Tu,cp;function sS(){if(cp)return Tu;cp=1;var e=uo();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Tu=t,Tu}var Eu,lp;function so(){if(lp)return Eu;lp=1;var e=iS(),t=aS(),r=oS(),n=uS(),i=sS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Eu=a,Eu}var Mu,fp;function _d(){if(fp)return Mu;fp=1;var e=Or(),t=wt(),r=e(t,"Map");return Mu=r,Mu}var Cu,dp;function cS(){if(dp)return Cu;dp=1;var e=nS(),t=so(),r=_d();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Cu=n,Cu}var $u,hp;function lS(){if(hp)return $u;hp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return $u=e,$u}var ku,pp;function co(){if(pp)return ku;pp=1;var e=lS();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ku=t,ku}var Iu,vp;function fS(){if(vp)return Iu;vp=1;var e=co();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Iu=t,Iu}var Nu,yp;function dS(){if(yp)return Nu;yp=1;var e=co();function t(r){return e(this,r).get(r)}return Nu=t,Nu}var Du,mp;function hS(){if(mp)return Du;mp=1;var e=co();function t(r){return e(this,r).has(r)}return Du=t,Du}var Ru,gp;function pS(){if(gp)return Ru;gp=1;var e=co();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Ru=t,Ru}var qu,bp;function Sd(){if(bp)return qu;bp=1;var e=cS(),t=fS(),r=dS(),n=hS(),i=pS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qu=a,qu}var Lu,xp;function V0(){if(xp)return Lu;xp=1;var e=Sd(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Lu=r,Lu}var Bu,wp;function vS(){if(wp)return Bu;wp=1;var e=V0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Bu=r,Bu}var Fu,Op;function yS(){if(Op)return Fu;Op=1;var e=vS(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Fu=n,Fu}var Wu,_p;function Ad(){if(_p)return Wu;_p=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Wu=e,Wu}var zu,Sp;function mS(){if(Sp)return zu;Sp=1;var e=ki(),t=Ad(),r=He(),n=yn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return zu=o,zu}var Uu,Ap;function X0(){if(Ap)return Uu;Ap=1;var e=mS();function t(r){return r==null?"":e(r)}return Uu=t,Uu}var Hu,Pp;function Z0(){if(Pp)return Hu;Pp=1;var e=He(),t=xd(),r=yS(),n=X0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Hu=i,Hu}var Gu,jp;function lo(){if(jp)return Gu;jp=1;var e=yn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Gu=t,Gu}var Ku,Tp;function Pd(){if(Tp)return Ku;Tp=1;var e=Z0(),t=lo();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Ku=r,Ku}var Yu,Ep;function Q0(){if(Ep)return Yu;Ep=1;var e=Pd();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Yu=t,Yu}var gS=Q0();const Xe=se(gS);var Vu,Mp;function bS(){if(Mp)return Vu;Mp=1;function e(t){return t==null}return Vu=e,Vu}var xS=bS();const Z=se(xS);var Xu,Cp;function wS(){if(Cp)return Xu;Cp=1;var e=Nt(),t=He(),r=Dt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Xu=i,Xu}var OS=wS();const yr=se(OS);var _S=wd();const V=se(_S);var SS=Vt();const mn=se(SS);var Zu={exports:{}},ie={};var $p;function AS(){if($p)return ie;$p=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case s:case d:case l:case a:return p;default:return g}}case t:return g}}}return ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=s,ie.Fragment=r,ie.Lazy=d,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=c,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(p){return v(p)===o},ie.isContextProvider=function(p){return v(p)===a},ie.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ie.isForwardRef=function(p){return v(p)===s},ie.isFragment=function(p){return v(p)===r},ie.isLazy=function(p){return v(p)===d},ie.isMemo=function(p){return v(p)===l},ie.isPortal=function(p){return v(p)===t},ie.isProfiler=function(p){return v(p)===i},ie.isStrictMode=function(p){return v(p)===n},ie.isSuspense=function(p){return v(p)===c},ie.isSuspenseList=function(p){return v(p)===f},ie.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===s||p.$$typeof===y||p.getModuleId!==void 0)},ie.typeOf=v,ie}var kp;function PS(){return kp||(kp=1,Zu.exports=AS()),Zu.exports}var jS=PS(),Qu,Ip;function J0(){if(Ip)return Qu;Ip=1;var e=Nt(),t=Dt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Qu=n,Qu}var Ju,Np;function TS(){if(Np)return Ju;Np=1;var e=J0();function t(r){return e(r)&&r!=+r}return Ju=t,Ju}var ES=TS();const gn=se(ES);var MS=J0();const CS=se(MS);var qe=function(t){return t===0?0:t>0?1:-1},cr=function(t){return yr(t)&&t.indexOf("%")===t.length-1},L=function(t){return CS(t)&&!gn(t)},$S=function(t){return Z(t)},Te=function(t){return L(t)||yr(t)},kS=0,bn=function(t){var r=++kS;return"".concat(t||"").concat(r)},Le=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!L(t)&&!yr(t))return n;var a;if(cr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gn(a)&&(a=n),i&&a>r&&(a=r),a},Ht=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},IS=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ze=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function sa(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Xe(n,t))===r})}var NS=function(t,r){return L(t)&&L(r)?t-r:yr(t)&&yr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function qr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}var DS=["viewBox","children"],RS=["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"],Dp=["points","pathLength"],es={svg:DS,polygon:Dp,polyline:Dp},jd=["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"],ca=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!mn(n))return null;var i={};return Object.keys(n).forEach(function(a){jd.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},qS=function(t,r,n){return function(i){return t(r,n,i),null}},mr=function(t,r,n){if(!mn(t)||Jl(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];jd.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=qS(o,r,n))}),i},LS=["children"],BS=["children"];function Rp(e,t){if(e==null)return{};var r=FS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function FS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function ef(e){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ef(e)}var qp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Tt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Lp=null,ts=null,Td=function e(t){if(t===Lp&&Array.isArray(ts))return ts;var r=[];return D.Children.forEach(t,function(n){Z(n)||(jS.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),ts=r,Lp=t,r};function rt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Tt(i)}):n=[Tt(t)],Td(e).forEach(function(i){var a=Xe(i,"type.displayName")||Xe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ye(e,t){var r=rt(e,t);return r&&r[0]}var Bp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},WS=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],zS=function(t){return t&&t.type&&yr(t.type)&&WS.indexOf(t.type)>=0},US=function(t){return t&&ef(t)==="object"&&"clipDot"in t},HS=function(t,r,n,i){var a,o=(a=es?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||RS.includes(r))||n&&jd.includes(r)},G=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(D.isValidElement(t)&&(i=t.props),!mn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;HS((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},tf=function e(t,r){if(t===r)return!0;var n=D.Children.count(t);if(n!==D.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Fp(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Fp(a,o))return!1}return!0},Fp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=Rp(n,LS),o=r.props||{},u=o.children,s=Rp(o,BS);return i&&u?qr(a,s)&&tf(i,u):!i&&!u?qr(a,s):!1}return!1},Wp=function(t,r){var n=[],i={};return Td(t).forEach(function(a,o){if(zS(a))n.push(a);else if(a){var u=Tt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},GS=function(t){var r=t&&t.type;return r&&qp[r]?qp[r]:null},KS=function(t,r){return Td(r).indexOf(t)},YS=["children","width","height","viewBox","className","style","title","desc"];function rf(){return rf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rf.apply(this,arguments)}function VS(e,t){if(e==null)return{};var r=XS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function nf(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=VS(e,YS),f=i||{width:r,height:n,x:0,y:0},l=J("recharts-surface",a);return P.createElement("svg",rf({},G(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var ZS=["children","className"];function af(){return af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},af.apply(this,arguments)}function QS(e,t){if(e==null)return{};var r=JS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function JS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var te=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=QS(e,ZS),a=J("recharts-layer",n);return P.createElement("g",af({className:a},G(i,!0),{ref:t}),r)}),ct=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},rs,zp;function eA(){if(zp)return rs;zp=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return rs=e,rs}var ns,Up;function tA(){if(Up)return ns;Up=1;var e=eA();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return ns=t,ns}var is,Hp;function ex(){if(Hp)return is;Hp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return is=s,is}var as,Gp;function rA(){if(Gp)return as;Gp=1;function e(t){return t.split("")}return as=e,as}var os,Kp;function nA(){if(Kp)return os;Kp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=c+"?",v="["+a+"]?",p="(?:"+h+"(?:"+[f,l,d].join("|")+")"+v+y+")*",g=v+y+p,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return os=O,os}var us,Yp;function iA(){if(Yp)return us;Yp=1;var e=rA(),t=ex(),r=nA();function n(i){return t(i)?r(i):e(i)}return us=n,us}var ss,Vp;function aA(){if(Vp)return ss;Vp=1;var e=tA(),t=ex(),r=iA(),n=X0();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return ss=i,ss}var cs,Xp;function oA(){if(Xp)return cs;Xp=1;var e=aA(),t=e("toUpperCase");return cs=t,cs}var uA=oA();const fo=se(uA);function fe(e){return function(){return e}}const tx=Math.cos,la=Math.sin,lt=Math.sqrt,fa=Math.PI,ho=2*fa,of=Math.PI,uf=2*of,or=1e-6,sA=uf-or;function rx(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function cA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return rx;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class lA{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?rx:cA(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>or)if(!(Math.abs(l*s-c*f)>or)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,v=s*s+c*c,p=h*h+y*y,g=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((of-Math.acos((v+d-p)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>or&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>or||Math.abs(this._y1-f)>or)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%uf+uf),d>sA?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>or&&this._append`A${n},${n},0,${+(d>=of)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Ed(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new lA(t)}function Md(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nx(e){this._context=e}nx.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 po(e){return new nx(e)}function ix(e){return e[0]}function ax(e){return e[1]}function ox(e,t){var r=fe(!0),n=null,i=po,a=null,o=Ed(u);e=typeof e=="function"?e:e===void 0?ix:fe(e),t=typeof t=="function"?t:t===void 0?ax:fe(t);function u(s){var c,f=(s=Md(s)).length,l,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(h)return a=null,h+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:fe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:fe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:fe(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function zi(e,t,r){var n=null,i=fe(!0),a=null,o=po,u=null,s=Ed(c);e=typeof e=="function"?e:e===void 0?ix:fe(+e),t=typeof t=="function"?t:fe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ax:fe(+r);function c(l){var d,h,y,v=(l=Md(l)).length,p,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(p=l[d],d,l))===g)if(g=!g)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=h;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(p,d,l),O[d]=+t(p,d,l),u.point(n?+n(p,d,l):w[d],r?+r(p,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return ox().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:fe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:fe(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:fe(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class ux{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function fA(e){return new ux(e,!0)}function dA(e){return new ux(e,!1)}const Cd={draw(e,t){const r=lt(t/fa);e.moveTo(r,0),e.arc(0,0,r,0,ho)}},hA={draw(e,t){const r=lt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},sx=lt(1/3),pA=sx*2,vA={draw(e,t){const r=lt(t/pA),n=r*sx;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},yA={draw(e,t){const r=lt(t),n=-r/2;e.rect(n,n,r,r)}},mA=.8908130915292852,cx=la(fa/10)/la(7*fa/10),gA=la(ho/10)*cx,bA=-tx(ho/10)*cx,xA={draw(e,t){const r=lt(t*mA),n=gA*r,i=bA*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ho*a/5,u=tx(o),s=la(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},ls=lt(3),wA={draw(e,t){const r=-lt(t/(ls*3));e.moveTo(0,r*2),e.lineTo(-ls*r,-r),e.lineTo(ls*r,-r),e.closePath()}},Ze=-.5,Qe=lt(3)/2,sf=1/lt(12),OA=(sf/2+1)*3,_A={draw(e,t){const r=lt(t/OA),n=r/2,i=r*sf,a=n,o=r*sf+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ze*n-Qe*i,Qe*n+Ze*i),e.lineTo(Ze*a-Qe*o,Qe*a+Ze*o),e.lineTo(Ze*u-Qe*s,Qe*u+Ze*s),e.lineTo(Ze*n+Qe*i,Ze*i-Qe*n),e.lineTo(Ze*a+Qe*o,Ze*o-Qe*a),e.lineTo(Ze*u+Qe*s,Ze*s-Qe*u),e.closePath()}};function SA(e,t){let r=null,n=Ed(i);e=typeof e=="function"?e:fe(e||Cd),t=typeof t=="function"?t:fe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:fe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function da(){}function ha(e,t,r){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+r)/6)}function lx(e){this._context=e}lx.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:ha(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:ha(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AA(e){return new lx(e)}function fx(e){this._context=e}fx.prototype={areaStart:da,areaEnd:da,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:ha(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PA(e){return new fx(e)}function dx(e){this._context=e}dx.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ha(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jA(e){return new dx(e)}function hx(e){this._context=e}hx.prototype={areaStart:da,areaEnd:da,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 TA(e){return new hx(e)}function Zp(e){return e<0?-1:1}function Qp(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Zp(a)+Zp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function Jp(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fs(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function pa(e){this._context=e}pa.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:fs(this,this._t0,Jp(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 r=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,fs(this,Jp(this,r=Qp(this,e,t)),r);break;default:fs(this,this._t0,r=Qp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function px(e){this._context=new vx(e)}(px.prototype=Object.create(pa.prototype)).point=function(e,t){pa.prototype.point.call(this,t,e)};function vx(e){this._context=e}vx.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function EA(e){return new pa(e)}function MA(e){return new px(e)}function yx(e){this._context=e}yx.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=ev(e),i=ev(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 ev(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function CA(e){return new yx(e)}function vo(e,t){this._context=e,this._t=t}vo.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function $A(e){return new vo(e,.5)}function kA(e){return new vo(e,0)}function IA(e){return new vo(e,1)}function zr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function cf(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function NA(e,t){return e[t]}function DA(e){const t=[];return t.key=e,t}function RA(){var e=fe([]),t=cf,r=zr,n=NA;function i(a){var o=Array.from(e.apply(this,arguments),DA),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=Md(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:fe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?cf:typeof a=="function"?a:fe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??zr,i):r},i}function qA(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}zr(e,t)}}function LA(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}zr(e,t)}}function BA(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,h=(l-d)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,g=v[n-1][1]||0;h+=p-g}s+=l,c+=h*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,zr(e,t)}}function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}var FA=["type","size","sizeType"];function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},lf.apply(this,arguments)}function tv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tv(Object(r),!0).forEach(function(n){WA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WA(e,t,r){return t=zA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zA(e){var t=UA(e,"string");return Vn(t)=="symbol"?t:t+""}function UA(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HA(e,t){if(e==null)return{};var r=GA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function GA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var mx={symbolCircle:Cd,symbolCross:hA,symbolDiamond:vA,symbolSquare:yA,symbolStar:xA,symbolTriangle:wA,symbolWye:_A},KA=Math.PI/180,YA=function(t){var r="symbol".concat(fo(t));return mx[r]||Cd},VA=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*KA;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},XA=function(t,r){mx["symbol".concat(fo(t))]=r},$d=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=HA(t,FA),c=rv(rv({},s),{},{type:n,size:a,sizeType:u}),f=function(){var p=YA(n),g=SA().type(p).size(VA(a,u,n));return g()},l=c.className,d=c.cx,h=c.cy,y=G(c,!0);return d===+d&&h===+h&&a===+a?P.createElement("path",lf({},y,{className:J("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};$d.registerSymbol=XA;function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function nv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ZA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?nv(Object(r),!0).forEach(function(n){Xn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function QA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bx(n.key),n)}}function eP(e,t,r){return t&&JA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tP(e,t,r){return t=va(t),rP(e,gx()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function rP(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nP(e)}function nP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gx=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(e)}function iP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&df(e,t)}function df(e,t){return df=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},df(e,t)}function Xn(e,t,r){return t=bx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bx(e){var t=aP(e,"string");return Ur(t)=="symbol"?t:t+""}function aP(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Je=32,kd=(function(e){function t(){return QA(this,t),tP(this,t,arguments)}return iP(t,e),eP(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Je/2,o=Je/6,u=Je/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Je,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
|
|
1
|
+
import{j as S}from"./radix-ui-DAH8Vq_G.js";import{i as Fi,j as se,r as D,c as P}from"./react-vendor-CjrBBxxX.js";import{c as vt,B as Fn,I as Ql,C as ft,a as dt,S as pe,b as J,g as Jl,d as y1,T as m1,e as g1,f as Go,h as Ko,i as Ut,j as Pn}from"./index-CfJhTNCX.js";import{n as C0,o as b1,D as k0,Z as I0,p as N0,q as D0,r as x1,s as w1,a as O1,R as _1,t as S1}from"./icons-DT8ZzQec.js";import{T as R0,a as q0,b as ia,c as Ne,d as L0,e as De}from"./table-C7tMF2ph.js";import{u as A1,a as $i}from"./tanstack-DAI1tKxf.js";import"./form-utils-DKkU3nz7.js";const B0=6048e5,P1=864e5,Wi=43200,Ph=1440,jh=Symbol.for("constructDateFrom");function gt(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&jh in e?e[jh](t):e instanceof Date?new e.constructor(t):new Date(t)}function Oe(e,t){return gt(t||e,e)}function j1(e,t,r){const n=Oe(e,r?.in);return isNaN(t)?gt(e,NaN):(t&&n.setDate(n.getDate()+t),n)}let T1={};function Ci(){return T1}function Yn(e,t){const r=Ci(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Oe(e,t?.in),a=i.getDay(),o=(a<n?7:0)+a-n;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function aa(e,t){return Yn(e,{...t,weekStartsOn:1})}function F0(e,t){const r=Oe(e,t?.in),n=r.getFullYear(),i=gt(r,0);i.setFullYear(n+1,0,4),i.setHours(0,0,0,0);const a=aa(i),o=gt(r,0);o.setFullYear(n,0,4),o.setHours(0,0,0,0);const u=aa(o);return r.getTime()>=a.getTime()?n+1:r.getTime()>=u.getTime()?n:n-1}function oa(e){const t=Oe(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function ao(e,...t){const r=gt.bind(null,e||t.find(n=>typeof n=="object"));return t.map(r)}function Th(e,t){const r=Oe(e,t?.in);return r.setHours(0,0,0,0),r}function E1(e,t,r){const[n,i]=ao(r?.in,e,t),a=Th(n),o=Th(i),u=+a-oa(a),s=+o-oa(o);return Math.round((u-s)/P1)}function M1(e,t){const r=F0(e,t),n=gt(e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),aa(n)}function ra(e,t){const r=+Oe(e)-+Oe(t);return r<0?-1:r>0?1:r}function $1(e){return gt(e,Date.now())}function C1(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function k1(e){return!(!C1(e)&&typeof e!="number"||isNaN(+Oe(e)))}function I1(e,t,r){const[n,i]=ao(r?.in,e,t),a=n.getFullYear()-i.getFullYear(),o=n.getMonth()-i.getMonth();return a*12+o}function N1(e){return t=>{const n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function D1(e,t){return+Oe(e)-+Oe(t)}function R1(e,t){const r=Oe(e,t?.in);return r.setHours(23,59,59,999),r}function q1(e,t){const r=Oe(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function L1(e,t){const r=Oe(e,t?.in);return+R1(r,t)==+q1(r,t)}function B1(e,t,r){const[n,i,a]=ao(r?.in,e,e,t),o=ra(i,a),u=Math.abs(I1(i,a));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*u);let s=ra(i,a)===-o;L1(n)&&u===1&&ra(n,a)===1&&(s=!1);const c=o*(u-+s);return c===0?0:c}function F1(e,t,r){const n=D1(e,t)/1e3;return N1(r?.roundingMethod)(n)}function W1(e,t){const r=Oe(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function z1(e,t){const r=Oe(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}const U1={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},H1=(e,t,r)=>{let n;const i=U1[e];return typeof i=="string"?n=i:t===1?n=i.one:n=i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};function Yo(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const G1={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},K1={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Y1={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},V1={date:Yo({formats:G1,defaultWidth:"full"}),time:Yo({formats:K1,defaultWidth:"full"}),dateTime:Yo({formats:Y1,defaultWidth:"full"})},X1={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Z1=(e,t,r,n)=>X1[e];function jn(e){return(t,r)=>{const n=r?.context?String(r.context):"standalone";let i;if(n==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,u=r?.width?String(r.width):o;i=e.formattingValues[u]||e.formattingValues[o]}else{const o=e.defaultWidth,u=r?.width?String(r.width):e.defaultWidth;i=e.values[u]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Q1={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},J1={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},e_={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},t_={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},r_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},n_={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},i_=(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},a_={ordinalNumber:i_,era:jn({values:Q1,defaultWidth:"wide"}),quarter:jn({values:J1,defaultWidth:"wide",argumentCallback:e=>e-1}),month:jn({values:e_,defaultWidth:"wide"}),day:jn({values:t_,defaultWidth:"wide"}),dayPeriod:jn({values:r_,defaultWidth:"wide",formattingValues:n_,defaultFormattingWidth:"wide"})};function Tn(e){return(t,r={})=>{const n=r.width,i=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(u)?u_(u,l=>l.test(o)):o_(u,l=>l.test(o));let c;c=e.valueCallback?e.valueCallback(s):s,c=r.valueCallback?r.valueCallback(c):c;const f=t.slice(o.length);return{value:c,rest:f}}}function o_(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r}function u_(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r}function s_(e){return(t,r={})=>{const n=t.match(e.matchPattern);if(!n)return null;const i=n[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=r.valueCallback?r.valueCallback(o):o;const u=t.slice(i.length);return{value:o,rest:u}}}const c_=/^(\d+)(th|st|nd|rd)?/i,l_=/\d+/i,f_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},d_={any:[/^b/i,/^(a|c)/i]},h_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p_={any:[/1/i,/2/i,/3/i,/4/i]},v_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},y_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},m_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},g_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},b_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},w_={ordinalNumber:s_({matchPattern:c_,parsePattern:l_,valueCallback:e=>parseInt(e,10)}),era:Tn({matchPatterns:f_,defaultMatchWidth:"wide",parsePatterns:d_,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:h_,defaultMatchWidth:"wide",parsePatterns:p_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Tn({matchPatterns:v_,defaultMatchWidth:"wide",parsePatterns:y_,defaultParseWidth:"any"}),day:Tn({matchPatterns:m_,defaultMatchWidth:"wide",parsePatterns:g_,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:b_,defaultMatchWidth:"any",parsePatterns:x_,defaultParseWidth:"any"})},W0={code:"en-US",formatDistance:H1,formatLong:V1,formatRelative:Z1,localize:a_,match:w_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function O_(e,t){const r=Oe(e,t?.in);return E1(r,z1(r))+1}function __(e,t){const r=Oe(e,t?.in),n=+aa(r)-+M1(r);return Math.round(n/B0)+1}function z0(e,t){const r=Oe(e,t?.in),n=r.getFullYear(),i=Ci(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=gt(t?.in||e,0);o.setFullYear(n+1,0,a),o.setHours(0,0,0,0);const u=Yn(o,t),s=gt(t?.in||e,0);s.setFullYear(n,0,a),s.setHours(0,0,0,0);const c=Yn(s,t);return+r>=+u?n+1:+r>=+c?n:n-1}function S_(e,t){const r=Ci(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=z0(e,t),a=gt(t?.in||e,0);return a.setFullYear(i,0,n),a.setHours(0,0,0,0),Yn(a,t)}function A_(e,t){const r=Oe(e,t?.in),n=+Yn(r,t)-+S_(r,t);return Math.round(n/B0)+1}function oe(e,t){const r=e<0?"-":"",n=Math.abs(e).toString().padStart(t,"0");return r+n}const Bt={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return oe(t==="yy"?n%100:n,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):oe(r+1,2)},d(e,t){return oe(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return oe(e.getHours()%12||12,t.length)},H(e,t){return oe(e.getHours(),t.length)},m(e,t){return oe(e.getMinutes(),t.length)},s(e,t){return oe(e.getSeconds(),t.length)},S(e,t){const r=t.length,n=e.getMilliseconds(),i=Math.trunc(n*Math.pow(10,r-3));return oe(i,t.length)}},Tr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Eh={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){const n=e.getFullYear(),i=n>0?n:1-n;return r.ordinalNumber(i,{unit:"year"})}return Bt.y(e,t)},Y:function(e,t,r,n){const i=z0(e,n),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return oe(o,2)}return t==="Yo"?r.ordinalNumber(a,{unit:"year"}):oe(a,t.length)},R:function(e,t){const r=F0(e);return oe(r,t.length)},u:function(e,t){const r=e.getFullYear();return oe(r,t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return oe(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return oe(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Bt.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return oe(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const i=A_(e,n);return t==="wo"?r.ordinalNumber(i,{unit:"week"}):oe(i,t.length)},I:function(e,t,r){const n=__(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):oe(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getDate(),{unit:"date"}):Bt.d(e,t)},D:function(e,t,r){const n=O_(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):oe(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return oe(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const i=e.getDay(),a=(i-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return oe(a,t.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),i=n===0?7:n;switch(t){case"i":return String(i);case"ii":return oe(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let i;switch(n===12?i=Tr.noon:n===0?i=Tr.midnight:i=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let i;switch(n>=17?i=Tr.evening:n>=12?i=Tr.afternoon:n>=4?i=Tr.morning:i=Tr.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){let n=e.getHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return Bt.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getHours(),{unit:"hour"}):Bt.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},k:function(e,t,r){let n=e.getHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):oe(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Bt.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Bt.s(e,t)},S:function(e,t){return Bt.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(n===0)return"Z";switch(t){case"X":return $h(n);case"XXXX":case"XX":return ar(n);case"XXXXX":case"XXX":default:return ar(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return $h(n);case"xxxx":case"xx":return ar(n);case"xxxxx":case"xxx":default:return ar(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Mh(n,":");case"OOOO":default:return"GMT"+ar(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Mh(n,":");case"zzzz":default:return"GMT"+ar(n,":")}},t:function(e,t,r){const n=Math.trunc(+e/1e3);return oe(n,t.length)},T:function(e,t,r){return oe(+e,t.length)}};function Mh(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=Math.trunc(n/60),a=n%60;return a===0?r+String(i):r+String(i)+t+oe(a,2)}function $h(e,t){return e%60===0?(e>0?"-":"+")+oe(Math.abs(e)/60,2):ar(e,t)}function ar(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),i=oe(Math.trunc(n/60),2),a=oe(n%60,2);return r+i+t+a}const Ch=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},U0=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},P_=(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],i=r[2];if(!i)return Ch(e,t);let a;switch(n){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",Ch(n,t)).replace("{{time}}",U0(i,t))},j_={p:U0,P:P_},T_=/^D+$/,E_=/^Y+$/,M_=["D","DD","YY","YYYY"];function $_(e){return T_.test(e)}function C_(e){return E_.test(e)}function k_(e,t,r){const n=I_(e,t,r);if(console.warn(n),M_.includes(e))throw new RangeError(n)}function I_(e,t,r){const n=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const N_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,D_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,R_=/^'([^]*?)'?$/,q_=/''/g,L_=/[a-zA-Z]/;function ua(e,t,r){const n=Ci(),i=n.locale??W0,a=n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,o=n.weekStartsOn??n.locale?.options?.weekStartsOn??0,u=Oe(e,r?.in);if(!k1(u))throw new RangeError("Invalid time value");let s=t.match(D_).map(f=>{const l=f[0];if(l==="p"||l==="P"){const d=j_[l];return d(f,i.formatLong)}return f}).join("").match(N_).map(f=>{if(f==="''")return{isToken:!1,value:"'"};const l=f[0];if(l==="'")return{isToken:!1,value:B_(f)};if(Eh[l])return{isToken:!0,value:f};if(l.match(L_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+l+"`");return{isToken:!1,value:f}});i.localize.preprocessor&&(s=i.localize.preprocessor(u,s));const c={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return s.map(f=>{if(!f.isToken)return f.value;const l=f.value;(C_(l)||$_(l))&&k_(l,t,String(e));const d=Eh[l[0]];return d(u,l,i.localize,c)}).join("")}function B_(e){const t=e.match(R_);return t?t[1].replace(q_,"'"):e}function F_(e,t,r){const n=Ci(),i=r?.locale??n.locale??W0,a=2520,o=ra(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const u=Object.assign({},r,{addSuffix:r?.addSuffix,comparison:o}),[s,c]=ao(r?.in,...o>0?[t,e]:[e,t]),f=F1(c,s),l=(oa(c)-oa(s))/1e3,d=Math.round((f-l)/60);let h;if(d<2)return r?.includeSeconds?f<5?i.formatDistance("lessThanXSeconds",5,u):f<10?i.formatDistance("lessThanXSeconds",10,u):f<20?i.formatDistance("lessThanXSeconds",20,u):f<40?i.formatDistance("halfAMinute",0,u):f<60?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",1,u):d===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",d,u);if(d<45)return i.formatDistance("xMinutes",d,u);if(d<90)return i.formatDistance("aboutXHours",1,u);if(d<Ph){const y=Math.round(d/60);return i.formatDistance("aboutXHours",y,u)}else{if(d<a)return i.formatDistance("xDays",1,u);if(d<Wi){const y=Math.round(d/Ph);return i.formatDistance("xDays",y,u)}else if(d<Wi*2)return h=Math.round(d/Wi),i.formatDistance("aboutXMonths",h,u)}if(h=B1(c,s),h<12){const y=Math.round(d/Wi);return i.formatDistance("xMonths",y,u)}else{const y=h%12,v=Math.trunc(h/12);return y<3?i.formatDistance("aboutXYears",v,u):y<9?i.formatDistance("overXYears",v,u):i.formatDistance("almostXYears",v+1,u)}}function H0(e,t){return F_(e,$1(e),t)}function Vo(e,t,r){return j1(e,-t,r)}function W_({value:e,onChange:t,presets:r=[],className:n}){const i=u=>{t(u)},a=u=>{const s=u.target.value?new Date(u.target.value):void 0;t({from:s,to:e?.to})},o=u=>{const s=u.target.value?new Date(u.target.value):void 0;t({from:e?.from,to:s})};return S.jsxs("div",{className:vt("flex flex-wrap items-center gap-2",n),children:[r.map((u,s)=>S.jsx(Fn,{variant:z_(e,u.range)?"default":"outline",size:"sm",onClick:()=>i(u.range),children:u.label},s)),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs("div",{className:"flex items-center gap-1",children:[S.jsx(C0,{className:"h-4 w-4 text-muted-foreground"}),S.jsx(Ql,{type:"date",value:e?.from?ua(e.from,"yyyy-MM-dd"):"",onChange:a,placeholder:"From",className:"w-40"})]}),S.jsx("span",{className:"text-muted-foreground",children:"to"}),S.jsx(Ql,{type:"date",value:e?.to?ua(e.to,"yyyy-MM-dd"):"",onChange:o,placeholder:"To",className:"w-40"})]})]})}function z_(e,t){if(!e||!t)return e===t;const r=e.from?.getTime()??0,n=t.from?.getTime()??0,i=e.to?.getTime()??0,a=t.to?.getTime()??0;return r===n&&i===a}function U_({data:e,isLoading:t}){if(t)return S.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 xl:grid-cols-4 gap-4",children:[1,2,3,4].map(n=>S.jsx(ft,{children:S.jsx(dt,{className:"p-6",children:S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("div",{className:"space-y-2",children:[S.jsx(pe,{className:"h-4 w-[100px]"}),S.jsx(pe,{className:"h-8 w-[80px]"})]}),S.jsx(pe,{className:"h-8 w-8 rounded-lg"})]})})},n))});const r=[{title:"Total Tokens",value:e?.totalTokens??0,icon:b1,format:n=>Xo(n),color:"text-blue-600",bgColor:"bg-blue-100 dark:bg-blue-900/20"},{title:"Total Cost",value:e?.totalCost??0,icon:k0,format:n=>`$${n.toFixed(2)}`,color:"text-green-600",bgColor:"bg-green-100 dark:bg-green-900/20"},{title:"Total Requests",value:e?.totalRequests??0,icon:I0,format:n=>Xo(n),color:"text-purple-600",bgColor:"bg-purple-100 dark:bg-purple-900/20"},{title:"Avg Tokens/Request",value:e?.averageTokensPerRequest??0,icon:N0,format:n=>Xo(Math.round(n)),color:"text-orange-600",bgColor:"bg-orange-100 dark:bg-orange-900/20"}];return S.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:r.map((n,i)=>{const a=n.icon;return S.jsx(ft,{className:"hover:shadow-md transition-shadow",children:S.jsx(dt,{className:"p-4",children:S.jsxs("div",{className:"flex items-center justify-between space-x-2",children:[S.jsxs("div",{className:"space-y-1 min-w-0",children:[S.jsx("p",{className:"text-xs font-medium text-muted-foreground truncate",children:n.title}),S.jsx("p",{className:"text-xl font-bold truncate",children:n.format(n.value)})]}),S.jsx("div",{className:vt("p-2 rounded-lg shrink-0",n.bgColor),children:S.jsx(a,{className:vt("h-4 w-4",n.color)})})]})})},i)})})}function Xo(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}var Zo,kh;function He(){if(kh)return Zo;kh=1;var e=Array.isArray;return Zo=e,Zo}var Qo,Ih;function G0(){if(Ih)return Qo;Ih=1;var e=typeof Fi=="object"&&Fi&&Fi.Object===Object&&Fi;return Qo=e,Qo}var Jo,Nh;function wt(){if(Nh)return Jo;Nh=1;var e=G0(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return Jo=r,Jo}var eu,Dh;function ki(){if(Dh)return eu;Dh=1;var e=wt(),t=e.Symbol;return eu=t,eu}var tu,Rh;function H_(){if(Rh)return tu;Rh=1;var e=ki(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function a(o){var u=r.call(o,i),s=o[i];try{o[i]=void 0;var c=!0}catch{}var f=n.call(o);return c&&(u?o[i]=s:delete o[i]),f}return tu=a,tu}var ru,qh;function G_(){if(qh)return ru;qh=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return ru=r,ru}var nu,Lh;function Nt(){if(Lh)return nu;Lh=1;var e=ki(),t=H_(),r=G_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?t(u):r(u)}return nu=o,nu}var iu,Bh;function Dt(){if(Bh)return iu;Bh=1;function e(t){return t!=null&&typeof t=="object"}return iu=e,iu}var au,Fh;function yn(){if(Fh)return au;Fh=1;var e=Nt(),t=Dt(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return au=n,au}var ou,Wh;function wd(){if(Wh)return ou;Wh=1;var e=He(),t=yn(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||t(a)?!0:n.test(a)||!r.test(a)||o!=null&&a in Object(o)}return ou=i,ou}var uu,zh;function Vt(){if(zh)return uu;zh=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return uu=e,uu}var su,Uh;function Od(){if(Uh)return su;Uh=1;var e=Nt(),t=Vt(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!t(u))return!1;var s=e(u);return s==n||s==i||s==r||s==a}return su=o,su}var cu,Hh;function K_(){if(Hh)return cu;Hh=1;var e=wt(),t=e["__core-js_shared__"];return cu=t,cu}var lu,Gh;function Y_(){if(Gh)return lu;Gh=1;var e=K_(),t=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!t&&t in n}return lu=r,lu}var fu,Kh;function K0(){if(Kh)return fu;Kh=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return fu=r,fu}var du,Yh;function V_(){if(Yh)return du;Yh=1;var e=Od(),t=Y_(),r=Vt(),n=K0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,c=u.hasOwnProperty,f=RegExp("^"+s.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function l(d){if(!r(d)||t(d))return!1;var h=e(d)?f:a;return h.test(n(d))}return du=l,du}var hu,Vh;function X_(){if(Vh)return hu;Vh=1;function e(t,r){return t?.[r]}return hu=e,hu}var pu,Xh;function Or(){if(Xh)return pu;Xh=1;var e=V_(),t=X_();function r(n,i){var a=t(n,i);return e(a)?a:void 0}return pu=r,pu}var vu,Zh;function oo(){if(Zh)return vu;Zh=1;var e=Or(),t=e(Object,"create");return vu=t,vu}var yu,Qh;function Z_(){if(Qh)return yu;Qh=1;var e=oo();function t(){this.__data__=e?e(null):{},this.size=0}return yu=t,yu}var mu,Jh;function Q_(){if(Jh)return mu;Jh=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return mu=e,mu}var gu,ep;function J_(){if(ep)return gu;ep=1;var e=oo(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===t?void 0:u}return n.call(o,a)?o[a]:void 0}return gu=i,gu}var bu,tp;function eS(){if(tp)return bu;tp=1;var e=oo(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:r.call(a,i)}return bu=n,bu}var xu,rp;function tS(){if(rp)return xu;rp=1;var e=oo(),t="__lodash_hash_undefined__";function r(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?t:i,this}return xu=r,xu}var wu,np;function rS(){if(np)return wu;np=1;var e=Z_(),t=Q_(),r=J_(),n=eS(),i=tS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,wu=a,wu}var Ou,ip;function nS(){if(ip)return Ou;ip=1;function e(){this.__data__=[],this.size=0}return Ou=e,Ou}var _u,ap;function _d(){if(ap)return _u;ap=1;function e(t,r){return t===r||t!==t&&r!==r}return _u=e,_u}var Su,op;function uo(){if(op)return Su;op=1;var e=_d();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return Su=t,Su}var Au,up;function iS(){if(up)return Au;up=1;var e=uo(),t=Array.prototype,r=t.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():r.call(a,o,1),--this.size,!0}return Au=n,Au}var Pu,sp;function aS(){if(sp)return Pu;sp=1;var e=uo();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return Pu=t,Pu}var ju,cp;function oS(){if(cp)return ju;cp=1;var e=uo();function t(r){return e(this.__data__,r)>-1}return ju=t,ju}var Tu,lp;function uS(){if(lp)return Tu;lp=1;var e=uo();function t(r,n){var i=this.__data__,a=e(i,r);return a<0?(++this.size,i.push([r,n])):i[a][1]=n,this}return Tu=t,Tu}var Eu,fp;function so(){if(fp)return Eu;fp=1;var e=nS(),t=iS(),r=aS(),n=oS(),i=uS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,Eu=a,Eu}var Mu,dp;function Sd(){if(dp)return Mu;dp=1;var e=Or(),t=wt(),r=e(t,"Map");return Mu=r,Mu}var $u,hp;function sS(){if(hp)return $u;hp=1;var e=rS(),t=so(),r=Sd();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return $u=n,$u}var Cu,pp;function cS(){if(pp)return Cu;pp=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Cu=e,Cu}var ku,vp;function co(){if(vp)return ku;vp=1;var e=cS();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return ku=t,ku}var Iu,yp;function lS(){if(yp)return Iu;yp=1;var e=co();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Iu=t,Iu}var Nu,mp;function fS(){if(mp)return Nu;mp=1;var e=co();function t(r){return e(this,r).get(r)}return Nu=t,Nu}var Du,gp;function dS(){if(gp)return Du;gp=1;var e=co();function t(r){return e(this,r).has(r)}return Du=t,Du}var Ru,bp;function hS(){if(bp)return Ru;bp=1;var e=co();function t(r,n){var i=e(this,r),a=i.size;return i.set(r,n),this.size+=i.size==a?0:1,this}return Ru=t,Ru}var qu,xp;function Ad(){if(xp)return qu;xp=1;var e=sS(),t=lS(),r=fS(),n=dS(),i=hS();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var c=o[u];this.set(c[0],c[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=r,a.prototype.has=n,a.prototype.set=i,qu=a,qu}var Lu,wp;function Y0(){if(wp)return Lu;wp=1;var e=Ad(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var c=n.apply(this,o);return a.cache=s.set(u,c)||s,c};return a.cache=new(r.Cache||e),a}return r.Cache=e,Lu=r,Lu}var Bu,Op;function pS(){if(Op)return Bu;Op=1;var e=Y0(),t=500;function r(n){var i=e(n,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Bu=r,Bu}var Fu,_p;function vS(){if(_p)return Fu;_p=1;var e=pS(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,u,s,c){a.push(s?c.replace(r,"$1"):u||o)}),a});return Fu=n,Fu}var Wu,Sp;function Pd(){if(Sp)return Wu;Sp=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=Array(i);++n<i;)a[n]=r(t[n],n,t);return a}return Wu=e,Wu}var zu,Ap;function yS(){if(Ap)return zu;Ap=1;var e=ki(),t=Pd(),r=He(),n=yn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(r(u))return t(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return zu=o,zu}var Uu,Pp;function V0(){if(Pp)return Uu;Pp=1;var e=yS();function t(r){return r==null?"":e(r)}return Uu=t,Uu}var Hu,jp;function X0(){if(jp)return Hu;jp=1;var e=He(),t=wd(),r=vS(),n=V0();function i(a,o){return e(a)?a:t(a,o)?[a]:r(n(a))}return Hu=i,Hu}var Gu,Tp;function lo(){if(Tp)return Gu;Tp=1;var e=yn();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Gu=t,Gu}var Ku,Ep;function jd(){if(Ep)return Ku;Ep=1;var e=X0(),t=lo();function r(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[t(i[a++])];return a&&a==o?n:void 0}return Ku=r,Ku}var Yu,Mp;function Z0(){if(Mp)return Yu;Mp=1;var e=jd();function t(r,n,i){var a=r==null?void 0:e(r,n);return a===void 0?i:a}return Yu=t,Yu}var mS=Z0();const Xe=se(mS);var Vu,$p;function gS(){if($p)return Vu;$p=1;function e(t){return t==null}return Vu=e,Vu}var bS=gS();const Z=se(bS);var Xu,Cp;function xS(){if(Cp)return Xu;Cp=1;var e=Nt(),t=He(),r=Dt(),n="[object String]";function i(a){return typeof a=="string"||!t(a)&&r(a)&&e(a)==n}return Xu=i,Xu}var wS=xS();const yr=se(wS);var OS=Od();const V=se(OS);var _S=Vt();const mn=se(_S);var Zu={exports:{}},ie={};var kp;function SS(){if(kp)return ie;kp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),u=Symbol.for("react.server_context"),s=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),f=Symbol.for("react.suspense_list"),l=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function v(p){if(typeof p=="object"&&p!==null){var g=p.$$typeof;switch(g){case e:switch(p=p.type,p){case r:case i:case n:case c:case f:return p;default:switch(p=p&&p.$$typeof,p){case u:case o:case s:case d:case l:case a:return p;default:return g}}case t:return g}}}return ie.ContextConsumer=o,ie.ContextProvider=a,ie.Element=e,ie.ForwardRef=s,ie.Fragment=r,ie.Lazy=d,ie.Memo=l,ie.Portal=t,ie.Profiler=i,ie.StrictMode=n,ie.Suspense=c,ie.SuspenseList=f,ie.isAsyncMode=function(){return!1},ie.isConcurrentMode=function(){return!1},ie.isContextConsumer=function(p){return v(p)===o},ie.isContextProvider=function(p){return v(p)===a},ie.isElement=function(p){return typeof p=="object"&&p!==null&&p.$$typeof===e},ie.isForwardRef=function(p){return v(p)===s},ie.isFragment=function(p){return v(p)===r},ie.isLazy=function(p){return v(p)===d},ie.isMemo=function(p){return v(p)===l},ie.isPortal=function(p){return v(p)===t},ie.isProfiler=function(p){return v(p)===i},ie.isStrictMode=function(p){return v(p)===n},ie.isSuspense=function(p){return v(p)===c},ie.isSuspenseList=function(p){return v(p)===f},ie.isValidElementType=function(p){return typeof p=="string"||typeof p=="function"||p===r||p===i||p===n||p===c||p===f||p===h||typeof p=="object"&&p!==null&&(p.$$typeof===d||p.$$typeof===l||p.$$typeof===a||p.$$typeof===o||p.$$typeof===s||p.$$typeof===y||p.getModuleId!==void 0)},ie.typeOf=v,ie}var Ip;function AS(){return Ip||(Ip=1,Zu.exports=SS()),Zu.exports}var PS=AS(),Qu,Np;function Q0(){if(Np)return Qu;Np=1;var e=Nt(),t=Dt(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return Qu=n,Qu}var Ju,Dp;function jS(){if(Dp)return Ju;Dp=1;var e=Q0();function t(r){return e(r)&&r!=+r}return Ju=t,Ju}var TS=jS();const gn=se(TS);var ES=Q0();const MS=se(ES);var qe=function(t){return t===0?0:t>0?1:-1},cr=function(t){return yr(t)&&t.indexOf("%")===t.length-1},L=function(t){return MS(t)&&!gn(t)},$S=function(t){return Z(t)},Te=function(t){return L(t)||yr(t)},CS=0,bn=function(t){var r=++CS;return"".concat(t||"").concat(r)},Le=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!L(t)&&!yr(t))return n;var a;if(cr(t)){var o=t.indexOf("%");a=r*parseFloat(t.slice(0,o))/100}else a=+t;return gn(a)&&(a=n),i&&a>r&&(a=r),a},Ht=function(t){if(!t)return null;var r=Object.keys(t);return r&&r.length?t[r[0]]:null},kS=function(t){if(!Array.isArray(t))return!1;for(var r=t.length,n={},i=0;i<r;i++)if(!n[t[i]])n[t[i]]=!0;else return!0;return!1},ze=function(t,r){return L(t)&&L(r)?function(n){return t+n*(r-t)}:function(){return r}};function sa(e,t,r){return!e||!e.length?null:e.find(function(n){return n&&(typeof t=="function"?t(n):Xe(n,t))===r})}var IS=function(t,r){return L(t)&&L(r)?t-r:yr(t)&&yr(r)?t.localeCompare(r):t instanceof Date&&r instanceof Date?t.getTime()-r.getTime():String(t).localeCompare(String(r))};function qr(e,t){for(var r in e)if({}.hasOwnProperty.call(e,r)&&(!{}.hasOwnProperty.call(t,r)||e[r]!==t[r]))return!1;for(var n in t)if({}.hasOwnProperty.call(t,n)&&!{}.hasOwnProperty.call(e,n))return!1;return!0}function ef(e){"@babel/helpers - typeof";return ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ef(e)}var NS=["viewBox","children"],DS=["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"],Rp=["points","pathLength"],es={svg:NS,polygon:Rp,polyline:Rp},Td=["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"],ca=function(t,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var n=t;if(D.isValidElement(t)&&(n=t.props),!mn(n))return null;var i={};return Object.keys(n).forEach(function(a){Td.includes(a)&&(i[a]=r||function(o){return n[a](n,o)})}),i},RS=function(t,r,n){return function(i){return t(r,n,i),null}},mr=function(t,r,n){if(!mn(t)||ef(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Td.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=RS(o,r,n))}),i},qS=["children"],LS=["children"];function qp(e,t){if(e==null)return{};var r=BS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function BS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function tf(e){"@babel/helpers - typeof";return tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tf(e)}var Lp={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Tt=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Bp=null,ts=null,Ed=function e(t){if(t===Bp&&Array.isArray(ts))return ts;var r=[];return D.Children.forEach(t,function(n){Z(n)||(PS.isFragment(n)?r=r.concat(e(n.props.children)):r.push(n))}),ts=r,Bp=t,r};function rt(e,t){var r=[],n=[];return Array.isArray(t)?n=t.map(function(i){return Tt(i)}):n=[Tt(t)],Ed(e).forEach(function(i){var a=Xe(i,"type.displayName")||Xe(i,"type.name");n.indexOf(a)!==-1&&r.push(i)}),r}function Ye(e,t){var r=rt(e,t);return r&&r[0]}var Fp=function(t){if(!t||!t.props)return!1;var r=t.props,n=r.width,i=r.height;return!(!L(n)||n<=0||!L(i)||i<=0)},FS=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],WS=function(t){return t&&t.type&&yr(t.type)&&FS.indexOf(t.type)>=0},zS=function(t){return t&&tf(t)==="object"&&"clipDot"in t},US=function(t,r,n,i){var a,o=(a=es?.[i])!==null&&a!==void 0?a:[];return r.startsWith("data-")||!V(t)&&(i&&o.includes(r)||DS.includes(r))||n&&Td.includes(r)},G=function(t,r,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(D.isValidElement(t)&&(i=t.props),!mn(i))return null;var a={};return Object.keys(i).forEach(function(o){var u;US((u=i)===null||u===void 0?void 0:u[o],o,r,n)&&(a[o]=i[o])}),a},rf=function e(t,r){if(t===r)return!0;var n=D.Children.count(t);if(n!==D.Children.count(r))return!1;if(n===0)return!0;if(n===1)return Wp(Array.isArray(t)?t[0]:t,Array.isArray(r)?r[0]:r);for(var i=0;i<n;i++){var a=t[i],o=r[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!Wp(a,o))return!1}return!0},Wp=function(t,r){if(Z(t)&&Z(r))return!0;if(!Z(t)&&!Z(r)){var n=t.props||{},i=n.children,a=qp(n,qS),o=r.props||{},u=o.children,s=qp(o,LS);return i&&u?qr(a,s)&&rf(i,u):!i&&!u?qr(a,s):!1}return!1},zp=function(t,r){var n=[],i={};return Ed(t).forEach(function(a,o){if(WS(a))n.push(a);else if(a){var u=Tt(a.type),s=r[u]||{},c=s.handler,f=s.once;if(c&&(!f||!i[u])){var l=c(a,u,o);n.push(l),i[u]=!0}}}),n},HS=function(t){var r=t&&t.type;return r&&Lp[r]?Lp[r]:null},GS=function(t,r){return Ed(r).indexOf(t)},KS=["children","width","height","viewBox","className","style","title","desc"];function nf(){return nf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},nf.apply(this,arguments)}function YS(e,t){if(e==null)return{};var r=VS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function VS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function af(e){var t=e.children,r=e.width,n=e.height,i=e.viewBox,a=e.className,o=e.style,u=e.title,s=e.desc,c=YS(e,KS),f=i||{width:r,height:n,x:0,y:0},l=J("recharts-surface",a);return P.createElement("svg",nf({},G(c,!0,"svg"),{className:l,width:r,height:n,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),P.createElement("title",null,u),P.createElement("desc",null,s),t)}var XS=["children","className"];function of(){return of=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},of.apply(this,arguments)}function ZS(e,t){if(e==null)return{};var r=QS(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function QS(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var te=P.forwardRef(function(e,t){var r=e.children,n=e.className,i=ZS(e,XS),a=J("recharts-layer",n);return P.createElement("g",of({className:a},G(i,!0),{ref:t}),r)}),ct=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]},rs,Up;function JS(){if(Up)return rs;Up=1;function e(t,r,n){var i=-1,a=t.length;r<0&&(r=-r>a?0:a+r),n=n>a?a:n,n<0&&(n+=a),a=r>n?0:n-r>>>0,r>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+r];return o}return rs=e,rs}var ns,Hp;function eA(){if(Hp)return ns;Hp=1;var e=JS();function t(r,n,i){var a=r.length;return i=i===void 0?a:i,!n&&i>=a?r:e(r,n,i)}return ns=t,ns}var is,Gp;function J0(){if(Gp)return is;Gp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="\\u200d",u=RegExp("["+o+e+i+a+"]");function s(c){return u.test(c)}return is=s,is}var as,Kp;function tA(){if(Kp)return as;Kp=1;function e(t){return t.split("")}return as=e,as}var os,Yp;function rA(){if(Yp)return os;Yp=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,a="\\ufe0e\\ufe0f",o="["+e+"]",u="["+i+"]",s="\\ud83c[\\udffb-\\udfff]",c="(?:"+u+"|"+s+")",f="[^"+e+"]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",d="[\\ud800-\\udbff][\\udc00-\\udfff]",h="\\u200d",y=c+"?",v="["+a+"]?",p="(?:"+h+"(?:"+[f,l,d].join("|")+")"+v+y+")*",g=v+y+p,x="(?:"+[f+u+"?",u,l,d,o].join("|")+")",w=RegExp(s+"(?="+s+")|"+x+g,"g");function O(m){return m.match(w)||[]}return os=O,os}var us,Vp;function nA(){if(Vp)return us;Vp=1;var e=tA(),t=J0(),r=rA();function n(i){return t(i)?r(i):e(i)}return us=n,us}var ss,Xp;function iA(){if(Xp)return ss;Xp=1;var e=eA(),t=J0(),r=nA(),n=V0();function i(a){return function(o){o=n(o);var u=t(o)?r(o):void 0,s=u?u[0]:o.charAt(0),c=u?e(u,1).join(""):o.slice(1);return s[a]()+c}}return ss=i,ss}var cs,Zp;function aA(){if(Zp)return cs;Zp=1;var e=iA(),t=e("toUpperCase");return cs=t,cs}var oA=aA();const fo=se(oA);function fe(e){return function(){return e}}const ex=Math.cos,la=Math.sin,lt=Math.sqrt,fa=Math.PI,ho=2*fa,uf=Math.PI,sf=2*uf,or=1e-6,uA=sf-or;function tx(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=arguments[t]+e[t]}function sA(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tx;const r=10**t;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*r)/r+n[i]}}class cA{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?tx:sA(t)}moveTo(t,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,r){this._append`L${this._x1=+t},${this._y1=+r}`}quadraticCurveTo(t,r,n,i){this._append`Q${+t},${+r},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(t,r,n,i,a,o){this._append`C${+t},${+r},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,r,n,i,a){if(t=+t,r=+r,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-t,c=i-r,f=o-t,l=u-r,d=f*f+l*l;if(this._x1===null)this._append`M${this._x1=t},${this._y1=r}`;else if(d>or)if(!(Math.abs(l*s-c*f)>or)||!a)this._append`L${this._x1=t},${this._y1=r}`;else{let h=n-o,y=i-u,v=s*s+c*c,p=h*h+y*y,g=Math.sqrt(v),x=Math.sqrt(d),w=a*Math.tan((uf-Math.acos((v+d-p)/(2*g*x)))/2),O=w/x,m=w/g;Math.abs(O-1)>or&&this._append`L${t+O*f},${r+O*l}`,this._append`A${a},${a},0,0,${+(l*h>f*y)},${this._x1=t+m*s},${this._y1=r+m*c}`}}arc(t,r,n,i,a,o){if(t=+t,r=+r,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),c=t+u,f=r+s,l=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>or||Math.abs(this._y1-f)>or)&&this._append`L${c},${f}`,n&&(d<0&&(d=d%sf+sf),d>uA?this._append`A${n},${n},0,1,${l},${t-u},${r-s}A${n},${n},0,1,${l},${this._x1=c},${this._y1=f}`:d>or&&this._append`A${n},${n},0,${+(d>=uf)},${l},${this._x1=t+n*Math.cos(a)},${this._y1=r+n*Math.sin(a)}`)}rect(t,r,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+r}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function Md(e){let t=3;return e.digits=function(r){if(!arguments.length)return t;if(r==null)t=null;else{const n=Math.floor(r);if(!(n>=0))throw new RangeError(`invalid digits: ${r}`);t=n}return e},()=>new cA(t)}function $d(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function rx(e){this._context=e}rx.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 po(e){return new rx(e)}function nx(e){return e[0]}function ix(e){return e[1]}function ax(e,t){var r=fe(!0),n=null,i=po,a=null,o=Md(u);e=typeof e=="function"?e:e===void 0?nx:fe(e),t=typeof t=="function"?t:t===void 0?ix:fe(t);function u(s){var c,f=(s=$d(s)).length,l,d=!1,h;for(n==null&&(a=i(h=o())),c=0;c<=f;++c)!(c<f&&r(l=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(l,c,s),+t(l,c,s));if(h)return a=null,h+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:fe(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:fe(+s),u):t},u.defined=function(s){return arguments.length?(r=typeof s=="function"?s:fe(!!s),u):r},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function zi(e,t,r){var n=null,i=fe(!0),a=null,o=po,u=null,s=Md(c);e=typeof e=="function"?e:e===void 0?nx:fe(+e),t=typeof t=="function"?t:fe(t===void 0?0:+t),r=typeof r=="function"?r:r===void 0?ix:fe(+r);function c(l){var d,h,y,v=(l=$d(l)).length,p,g=!1,x,w=new Array(v),O=new Array(v);for(a==null&&(u=o(x=s())),d=0;d<=v;++d){if(!(d<v&&i(p=l[d],d,l))===g)if(g=!g)h=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),y=d-1;y>=h;--y)u.point(w[y],O[y]);u.lineEnd(),u.areaEnd()}g&&(w[d]=+e(p,d,l),O[d]=+t(p,d,l),u.point(n?+n(p,d,l):w[d],r?+r(p,d,l):O[d]))}if(x)return u=null,x+""||null}function f(){return ax().defined(i).curve(o).context(a)}return c.x=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),n=null,c):e},c.x0=function(l){return arguments.length?(e=typeof l=="function"?l:fe(+l),c):e},c.x1=function(l){return arguments.length?(n=l==null?null:typeof l=="function"?l:fe(+l),c):n},c.y=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),r=null,c):t},c.y0=function(l){return arguments.length?(t=typeof l=="function"?l:fe(+l),c):t},c.y1=function(l){return arguments.length?(r=l==null?null:typeof l=="function"?l:fe(+l),c):r},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(r)},c.lineX1=function(){return f().x(n).y(t)},c.defined=function(l){return arguments.length?(i=typeof l=="function"?l:fe(!!l),c):i},c.curve=function(l){return arguments.length?(o=l,a!=null&&(u=o(a)),c):o},c.context=function(l){return arguments.length?(l==null?a=u=null:u=o(a=l),c):a},c}class ox{constructor(t,r){this._context=t,this._x=r}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(t,r){switch(t=+t,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,r):this._context.moveTo(t,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,r,t,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,t,this._y0,t,r);break}}this._x0=t,this._y0=r}}function lA(e){return new ox(e,!0)}function fA(e){return new ox(e,!1)}const Cd={draw(e,t){const r=lt(t/fa);e.moveTo(r,0),e.arc(0,0,r,0,ho)}},dA={draw(e,t){const r=lt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},ux=lt(1/3),hA=ux*2,pA={draw(e,t){const r=lt(t/hA),n=r*ux;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},vA={draw(e,t){const r=lt(t),n=-r/2;e.rect(n,n,r,r)}},yA=.8908130915292852,sx=la(fa/10)/la(7*fa/10),mA=la(ho/10)*sx,gA=-ex(ho/10)*sx,bA={draw(e,t){const r=lt(t*yA),n=mA*r,i=gA*r;e.moveTo(0,-r),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ho*a/5,u=ex(o),s=la(o);e.lineTo(s*r,-u*r),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},ls=lt(3),xA={draw(e,t){const r=-lt(t/(ls*3));e.moveTo(0,r*2),e.lineTo(-ls*r,-r),e.lineTo(ls*r,-r),e.closePath()}},Ze=-.5,Qe=lt(3)/2,cf=1/lt(12),wA=(cf/2+1)*3,OA={draw(e,t){const r=lt(t/wA),n=r/2,i=r*cf,a=n,o=r*cf+r,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ze*n-Qe*i,Qe*n+Ze*i),e.lineTo(Ze*a-Qe*o,Qe*a+Ze*o),e.lineTo(Ze*u-Qe*s,Qe*u+Ze*s),e.lineTo(Ze*n+Qe*i,Ze*i-Qe*n),e.lineTo(Ze*a+Qe*o,Ze*o-Qe*a),e.lineTo(Ze*u+Qe*s,Ze*s-Qe*u),e.closePath()}};function _A(e,t){let r=null,n=Md(i);e=typeof e=="function"?e:fe(e||Cd),t=typeof t=="function"?t:fe(t===void 0?64:+t);function i(){let a;if(r||(r=a=n()),e.apply(this,arguments).draw(r,+t.apply(this,arguments)),a)return r=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:fe(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fe(+a),i):t},i.context=function(a){return arguments.length?(r=a??null,i):r},i}function da(){}function ha(e,t,r){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+r)/6)}function cx(e){this._context=e}cx.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:ha(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:ha(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function SA(e){return new cx(e)}function lx(e){this._context=e}lx.prototype={areaStart:da,areaEnd:da,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:ha(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function AA(e){return new lx(e)}function fx(e){this._context=e}fx.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 r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:ha(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function PA(e){return new fx(e)}function dx(e){this._context=e}dx.prototype={areaStart:da,areaEnd:da,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 jA(e){return new dx(e)}function Qp(e){return e<0?-1:1}function Jp(e,t,r){var n=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(r-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Qp(a)+Qp(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function ev(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function fs(e,t,r){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*t,a-u,o-u*r,a,o)}function pa(e){this._context=e}pa.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:fs(this,this._t0,ev(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 r=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,fs(this,ev(this,r=Jp(this,e,t)),r);break;default:fs(this,this._t0,r=Jp(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}};function hx(e){this._context=new px(e)}(hx.prototype=Object.create(pa.prototype)).point=function(e,t){pa.prototype.point.call(this,t,e)};function px(e){this._context=e}px.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,r,n,i,a){this._context.bezierCurveTo(t,e,n,r,a,i)}};function TA(e){return new pa(e)}function EA(e){return new hx(e)}function vx(e){this._context=e}vx.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,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),r===2)this._context.lineTo(e[1],t[1]);else for(var n=tv(e),i=tv(t),a=0,o=1;o<r;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&r===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 tv(e){var t,r=e.length-1,n,i=new Array(r),a=new Array(r),o=new Array(r);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,a[r-1]=7,o[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/a[t-1],a[t]-=n,o[t]-=n*o[t-1];for(i[r-1]=o[r-1]/a[r-1],t=r-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function MA(e){return new vx(e)}function vo(e,t){this._context=e,this._t=t}vo.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 r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}break}}this._x=e,this._y=t}};function $A(e){return new vo(e,.5)}function CA(e){return new vo(e,0)}function kA(e){return new vo(e,1)}function zr(e,t){if((o=e.length)>1)for(var r=1,n,i,a=e[t[0]],o,u=a.length;r<o;++r)for(i=a,a=e[t[r]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function lf(e){for(var t=e.length,r=new Array(t);--t>=0;)r[t]=t;return r}function IA(e,t){return e[t]}function NA(e){const t=[];return t.key=e,t}function DA(){var e=fe([]),t=lf,r=zr,n=IA;function i(a){var o=Array.from(e.apply(this,arguments),NA),u,s=o.length,c=-1,f;for(const l of a)for(u=0,++c;u<s;++u)(o[u][c]=[0,+n(l,o[u].key,c,a)]).data=l;for(u=0,f=$d(t(o));u<s;++u)o[f[u]].index=u;return r(o,f),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fe(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:fe(+a),i):n},i.order=function(a){return arguments.length?(t=a==null?lf:typeof a=="function"?a:fe(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(r=a??zr,i):r},i}function RA(e,t){if((n=e.length)>0){for(var r,n,i=0,a=e[0].length,o;i<a;++i){for(o=r=0;r<n;++r)o+=e[r][i][1]||0;if(o)for(r=0;r<n;++r)e[r][i][1]/=o}zr(e,t)}}function qA(e,t){if((i=e.length)>0){for(var r=0,n=e[t[0]],i,a=n.length;r<a;++r){for(var o=0,u=0;o<i;++o)u+=e[o][r][1]||0;n[r][1]+=n[r][0]=-u/2}zr(e,t)}}function LA(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var r=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,c=0;u<o;++u){for(var f=e[t[u]],l=f[n][1]||0,d=f[n-1][1]||0,h=(l-d)/2,y=0;y<u;++y){var v=e[t[y]],p=v[n][1]||0,g=v[n-1][1]||0;h+=p-g}s+=l,c+=h*l}i[n-1][1]+=i[n-1][0]=r,s&&(r-=c/s)}i[n-1][1]+=i[n-1][0]=r,zr(e,t)}}function Vn(e){"@babel/helpers - typeof";return Vn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vn(e)}var BA=["type","size","sizeType"];function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ff.apply(this,arguments)}function rv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nv(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?rv(Object(r),!0).forEach(function(n){FA(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function FA(e,t,r){return t=WA(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WA(e){var t=zA(e,"string");return Vn(t)=="symbol"?t:t+""}function zA(e,t){if(Vn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Vn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function UA(e,t){if(e==null)return{};var r=HA(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function HA(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var yx={symbolCircle:Cd,symbolCross:dA,symbolDiamond:pA,symbolSquare:vA,symbolStar:bA,symbolTriangle:xA,symbolWye:OA},GA=Math.PI/180,KA=function(t){var r="symbol".concat(fo(t));return yx[r]||Cd},YA=function(t,r,n){if(r==="area")return t;switch(n){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*GA;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},VA=function(t,r){yx["symbol".concat(fo(t))]=r},kd=function(t){var r=t.type,n=r===void 0?"circle":r,i=t.size,a=i===void 0?64:i,o=t.sizeType,u=o===void 0?"area":o,s=UA(t,BA),c=nv(nv({},s),{},{type:n,size:a,sizeType:u}),f=function(){var p=KA(n),g=_A().type(p).size(YA(a,u,n));return g()},l=c.className,d=c.cx,h=c.cy,y=G(c,!0);return d===+d&&h===+h&&a===+a?P.createElement("path",ff({},y,{className:J("recharts-symbols",l),transform:"translate(".concat(d,", ").concat(h,")"),d:f()})):null};kd.registerSymbol=VA;function Ur(e){"@babel/helpers - typeof";return Ur=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ur(e)}function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},df.apply(this,arguments)}function iv(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function XA(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?iv(Object(r),!0).forEach(function(n){Xn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iv(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZA(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function QA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gx(n.key),n)}}function JA(e,t,r){return t&&QA(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function eP(e,t,r){return t=va(t),tP(e,mx()?Reflect.construct(t,r||[],va(e).constructor):t.apply(e,r))}function tP(e,t){if(t&&(Ur(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rP(e)}function rP(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mx=function(){return!!e})()}function va(e){return va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},va(e)}function nP(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function Xn(e,t,r){return t=gx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gx(e){var t=iP(e,"string");return Ur(t)=="symbol"?t:t+""}function iP(e,t){if(Ur(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ur(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Je=32,Id=(function(e){function t(){return ZA(this,t),eP(this,t,arguments)}return nP(t,e),JA(t,[{key:"renderIcon",value:function(n){var i=this.props.inactiveColor,a=Je/2,o=Je/6,u=Je/3,s=n.inactive?i:n.color;if(n.type==="plainline")return P.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:n.payload.strokeDasharray,x1:0,y1:a,x2:Je,y2:a,className:"recharts-legend-icon"});if(n.type==="line")return P.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(a,"h").concat(u,`
|
|
2
2
|
A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(a,`
|
|
3
3
|
H`).concat(Je,"M").concat(2*u,",").concat(a,`
|
|
4
|
-
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Je/8,"h").concat(Je,"v").concat(Je*3/4,"h").concat(-Je,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=ZA({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement($d,{fill:s,cx:a,cy:a,size:Je,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Je,height:Je},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var v=h.formatter||s,p=J(Xn(Xn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=V(h.value)?null:h.value;ct(!V(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?c:h.color;return P.createElement("li",ff({className:p,style:l,key:"legend-item-".concat(y)},mr(n.props,h,y)),P.createElement(nf,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,h,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(D.PureComponent);Xn(kd,"displayName","Legend");Xn(kd,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ds,iv;function oP(){if(iv)return ds;iv=1;var e=so();function t(){this.__data__=new e,this.size=0}return ds=t,ds}var hs,av;function uP(){if(av)return hs;av=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return hs=e,hs}var ps,ov;function sP(){if(ov)return ps;ov=1;function e(t){return this.__data__.get(t)}return ps=e,ps}var vs,uv;function cP(){if(uv)return vs;uv=1;function e(t){return this.__data__.has(t)}return vs=e,vs}var ys,sv;function lP(){if(sv)return ys;sv=1;var e=so(),t=_d(),r=Sd(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return ys=i,ys}var ms,cv;function xx(){if(cv)return ms;cv=1;var e=so(),t=oP(),r=uP(),n=sP(),i=cP(),a=lP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ms=o,ms}var gs,lv;function fP(){if(lv)return gs;lv=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return gs=t,gs}var bs,fv;function dP(){if(fv)return bs;fv=1;function e(t){return this.__data__.has(t)}return bs=e,bs}var xs,dv;function wx(){if(dv)return xs;dv=1;var e=Sd(),t=fP(),r=dP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,xs=n,xs}var ws,hv;function Ox(){if(hv)return ws;hv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return ws=e,ws}var Os,pv;function _x(){if(pv)return Os;pv=1;function e(t,r){return t.has(r)}return Os=e,Os}var _s,vv;function Sx(){if(vv)return _s;vv=1;var e=wx(),t=Ox(),r=_x(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,h=o.length,y=u.length;if(h!=y&&!(d&&y>h))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<h;){var O=o[g],m=u[g];if(c)var b=d?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,s,c,l)))return w.push(A)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return _s=a,_s}var Ss,yv;function hP(){if(yv)return Ss;yv=1;var e=wt(),t=e.Uint8Array;return Ss=t,Ss}var As,mv;function pP(){if(mv)return As;mv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return As=e,As}var Ps,gv;function Id(){if(gv)return Ps;gv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ps=e,Ps}var js,bv;function vP(){if(bv)return js;bv=1;var e=ki(),t=hP(),r=Od(),n=Sx(),i=pP(),a=Id(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",h="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,T,C,j,E){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!j(new t(b),new t(_)));case s:case c:case d:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case h:case v:return b==_+"";case l:var M=i;case y:var k=T&o;if(M||(M=a),b.size!=_.size&&!k)return!1;var $=E.get(b);if($)return $==_;T|=u,E.set(b,_);var N=n(M(b),M(_),T,C,j,E);return E.delete(b),N;case p:if(O)return O.call(b)==O.call(_)}return!1}return js=m,js}var Ts,xv;function Ax(){if(xv)return Ts;xv=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Ts=e,Ts}var Es,wv;function yP(){if(wv)return Es;wv=1;var e=Ax(),t=He();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Es=r,Es}var Ms,Ov;function mP(){if(Ov)return Ms;Ov=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Ms=e,Ms}var Cs,_v;function gP(){if(_v)return Cs;_v=1;function e(){return[]}return Cs=e,Cs}var $s,Sv;function bP(){if(Sv)return $s;Sv=1;var e=mP(),t=gP(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return $s=a,$s}var ks,Av;function xP(){if(Av)return ks;Av=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return ks=e,ks}var Is,Pv;function wP(){if(Pv)return Is;Pv=1;var e=Nt(),t=Dt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Is=n,Is}var Ns,jv;function Nd(){if(jv)return Ns;jv=1;var e=wP(),t=Dt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Ns=a,Ns}var qn={exports:{}},Ds,Tv;function OP(){if(Tv)return Ds;Tv=1;function e(){return!1}return Ds=e,Ds}qn.exports;var Ev;function Px(){return Ev||(Ev=1,(function(e,t){var r=wt(),n=OP(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(qn,qn.exports)),qn.exports}var Rs,Mv;function Dd(){if(Mv)return Rs;Mv=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Rs=r,Rs}var qs,Cv;function Rd(){if(Cv)return qs;Cv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qs=t,qs}var Ls,$v;function _P(){if($v)return Ls;$v=1;var e=Nt(),t=Rd(),r=Dt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",h="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",C="[object Uint32Array]",j={};j[x]=j[w]=j[O]=j[m]=j[b]=j[_]=j[A]=j[T]=j[C]=!0,j[n]=j[i]=j[p]=j[a]=j[g]=j[o]=j[u]=j[s]=j[c]=j[f]=j[l]=j[d]=j[h]=j[y]=j[v]=!1;function E(M){return r(M)&&t(M.length)&&!!j[e(M)]}return Ls=E,Ls}var Bs,kv;function jx(){if(kv)return Bs;kv=1;function e(t){return function(r){return t(r)}}return Bs=e,Bs}var Ln={exports:{}};Ln.exports;var Iv;function SP(){return Iv||(Iv=1,(function(e,t){var r=K0(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Ln,Ln.exports)),Ln.exports}var Fs,Nv;function Tx(){if(Nv)return Fs;Nv=1;var e=_P(),t=jx(),r=SP(),n=r&&r.isTypedArray,i=n?t(n):e;return Fs=i,Fs}var Ws,Dv;function AP(){if(Dv)return Ws;Dv=1;var e=xP(),t=Nd(),r=He(),n=Px(),i=Dd(),a=Tx(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),h=!l&&!d&&n(c),y=!l&&!d&&!h&&a(c),v=l||d||h||y,p=v?e(c.length,String):[],g=p.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||h&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&p.push(x);return p}return Ws=s,Ws}var zs,Rv;function PP(){if(Rv)return zs;Rv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return zs=t,zs}var Us,qv;function Ex(){if(qv)return Us;qv=1;function e(t,r){return function(n){return t(r(n))}}return Us=e,Us}var Hs,Lv;function jP(){if(Lv)return Hs;Lv=1;var e=Ex(),t=e(Object.keys,Object);return Hs=t,Hs}var Gs,Bv;function TP(){if(Bv)return Gs;Bv=1;var e=PP(),t=jP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Gs=i,Gs}var Ks,Fv;function Ii(){if(Fv)return Ks;Fv=1;var e=wd(),t=Rd();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ks=r,Ks}var Ys,Wv;function yo(){if(Wv)return Ys;Wv=1;var e=AP(),t=TP(),r=Ii();function n(i){return r(i)?e(i):t(i)}return Ys=n,Ys}var Vs,zv;function EP(){if(zv)return Vs;zv=1;var e=yP(),t=bP(),r=yo();function n(i){return e(i,r,t)}return Vs=n,Vs}var Xs,Uv;function MP(){if(Uv)return Xs;Uv=1;var e=EP(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),h=d.length,y=e(o),v=y.length;if(h!=v&&!l)return!1;for(var p=h;p--;){var g=d[p];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<h;){g=d[p];var b=a[g],_=o[g];if(s)var A=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(A===void 0?b===_||c(b,_,u,s,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var T=a.constructor,C=o.constructor;T!=C&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof C=="function"&&C instanceof C)&&(O=!1)}return f.delete(a),f.delete(o),O}return Xs=i,Xs}var Zs,Hv;function CP(){if(Hv)return Zs;Hv=1;var e=Or(),t=wt(),r=e(t,"DataView");return Zs=r,Zs}var Qs,Gv;function $P(){if(Gv)return Qs;Gv=1;var e=Or(),t=wt(),r=e(t,"Promise");return Qs=r,Qs}var Js,Kv;function Mx(){if(Kv)return Js;Kv=1;var e=Or(),t=wt(),r=e(t,"Set");return Js=r,Js}var ec,Yv;function kP(){if(Yv)return ec;Yv=1;var e=Or(),t=wt(),r=e(t,"WeakMap");return ec=r,ec}var tc,Vv;function IP(){if(Vv)return tc;Vv=1;var e=CP(),t=_d(),r=$P(),n=Mx(),i=kP(),a=Nt(),o=Y0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",h=o(e),y=o(t),v=o(r),p=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case h:return d;case y:return u;case v:return c;case p:return f;case g:return l}return O}),tc=x,tc}var rc,Xv;function NP(){if(Xv)return rc;Xv=1;var e=xx(),t=Sx(),r=vP(),n=MP(),i=IP(),a=He(),o=Px(),u=Tx(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function y(v,p,g,x,w,O){var m=a(v),b=a(p),_=m?f:i(v),A=b?f:i(p);_=_==c?l:_,A=A==c?l:A;var T=_==l,C=A==l,j=_==A;if(j&&o(v)){if(!o(p))return!1;m=!0,T=!1}if(j&&!T)return O||(O=new e),m||u(v)?t(v,p,g,x,w,O):r(v,p,_,g,x,w,O);if(!(g&s)){var E=T&&h.call(v,"__wrapped__"),M=C&&h.call(p,"__wrapped__");if(E||M){var k=E?v.value():v,$=M?p.value():p;return O||(O=new e),w(k,$,g,x,O)}}return j?(O||(O=new e),n(v,p,g,x,w,O)):!1}return rc=y,rc}var nc,Zv;function qd(){if(Zv)return nc;Zv=1;var e=NP(),t=Dt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return nc=r,nc}var ic,Qv;function DP(){if(Qv)return ic;Qv=1;var e=xx(),t=qd(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var h=d[0],y=a[h],v=d[1];if(l&&d[2]){if(y===void 0&&!(h in a))return!1}else{var p=new e;if(s)var g=s(y,v,h,a,o,p);if(!(g===void 0?t(v,y,r|n,s,p):g))return!1}}return!0}return ic=i,ic}var ac,Jv;function Cx(){if(Jv)return ac;Jv=1;var e=Vt();function t(r){return r===r&&!e(r)}return ac=t,ac}var oc,ey;function RP(){if(ey)return oc;ey=1;var e=Cx(),t=yo();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return oc=r,oc}var uc,ty;function $x(){if(ty)return uc;ty=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return uc=e,uc}var sc,ry;function qP(){if(ry)return sc;ry=1;var e=DP(),t=RP(),r=$x();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return sc=n,sc}var cc,ny;function LP(){if(ny)return cc;ny=1;function e(t,r){return t!=null&&r in Object(t)}return cc=e,cc}var lc,iy;function BP(){if(iy)return lc;iy=1;var e=Z0(),t=Nd(),r=He(),n=Dd(),i=Rd(),a=lo();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var h=a(s[f]);if(!(d=u!=null&&c(u,h)))break;u=u[h]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(h,l)&&(r(u)||t(u)))}return lc=o,lc}var fc,ay;function FP(){if(ay)return fc;ay=1;var e=LP(),t=BP();function r(n,i){return n!=null&&t(n,i,e)}return fc=r,fc}var dc,oy;function WP(){if(oy)return dc;oy=1;var e=qd(),t=Q0(),r=FP(),n=xd(),i=Cx(),a=$x(),o=lo(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var h=t(d,f);return h===void 0&&h===l?r(d,f):e(l,h,u|s)}}return dc=c,dc}var hc,uy;function xn(){if(uy)return hc;uy=1;function e(t){return t}return hc=e,hc}var pc,sy;function zP(){if(sy)return pc;sy=1;function e(t){return function(r){return r?.[t]}}return pc=e,pc}var vc,cy;function UP(){if(cy)return vc;cy=1;var e=Pd();function t(r){return function(n){return e(n,r)}}return vc=t,vc}var yc,ly;function HP(){if(ly)return yc;ly=1;var e=zP(),t=UP(),r=xd(),n=lo();function i(a){return r(a)?e(n(a)):t(a)}return yc=i,yc}var mc,fy;function Ot(){if(fy)return mc;fy=1;var e=qP(),t=WP(),r=xn(),n=He(),i=HP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return mc=a,mc}var gc,dy;function kx(){if(dy)return gc;dy=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return gc=e,gc}var bc,hy;function GP(){if(hy)return bc;hy=1;function e(t){return t!==t}return bc=e,bc}var xc,py;function KP(){if(py)return xc;py=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xc=e,xc}var wc,vy;function YP(){if(vy)return wc;vy=1;var e=kx(),t=GP(),r=KP();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wc=n,wc}var Oc,yy;function VP(){if(yy)return Oc;yy=1;var e=YP();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Oc=t,Oc}var _c,my;function XP(){if(my)return _c;my=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return _c=e,_c}var Sc,gy;function ZP(){if(gy)return Sc;gy=1;function e(){}return Sc=e,Sc}var Ac,by;function QP(){if(by)return Ac;by=1;var e=Mx(),t=ZP(),r=Id(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Ac=i,Ac}var Pc,xy;function JP(){if(xy)return Pc;xy=1;var e=wx(),t=VP(),r=XP(),n=_x(),i=QP(),a=Id(),o=200;function u(s,c,f){var l=-1,d=t,h=s.length,y=!0,v=[],p=v;if(f)y=!1,d=r;else if(h>=o){var g=c?null:i(s);if(g)return a(g);y=!1,d=n,p=new e}else p=c?[]:v;e:for(;++l<h;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;c&&p.push(w),v.push(x)}else d(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return Pc=u,Pc}var jc,wy;function ej(){if(wy)return jc;wy=1;var e=Ot(),t=JP();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return jc=r,jc}var tj=ej();const Oy=se(tj);function Ix(e,t,r){return t===!0?Oy(e,r):V(t)?Oy(e,t):e}function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}var rj=["ref"];function _y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_y(Object(r),!0).forEach(function(n){mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_y(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sy(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dx(n.key),n)}}function ij(e,t,r){return t&&Sy(e.prototype,t),r&&Sy(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aj(e,t,r){return t=ya(t),oj(e,Nx()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function oj(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uj(e)}function uj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nx=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function sj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hf(e,t)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hf(e,t)}function mo(e,t,r){return t=Dx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(e){var t=cj(e,"string");return Hr(t)=="symbol"?t:t+""}function cj(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lj(e,t){if(e==null)return{};var r=fj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function fj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function dj(e){return e.value}function hj(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=lj(t,rj);return P.createElement(kd,r)}var Ay=1,Lr=(function(e){function t(){var r;nj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=aj(this,t,[].concat(i)),mo(r,"lastBoundingBox",{width:-1,height:-1}),r}return sj(t,e),ij(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Ay||Math.abs(i.height-this.lastBoundingBox.height)>Ay)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_t({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();l={left:((c||0)-h.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return _t(_t({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=_t(_t({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},hj(a,_t(_t({},this.props),{},{payload:Ix(f,c,dj)})))}}],[{key:"getWithHeight",value:function(n,i){var a=_t(_t({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(D.PureComponent);mo(Lr,"displayName","Legend");mo(Lr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Tc,Py;function pj(){if(Py)return Tc;Py=1;var e=ki(),t=Nd(),r=He(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Tc=i,Tc}var Ec,jy;function Rx(){if(jy)return Ec;jy=1;var e=Ax(),t=pj();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Ec=r,Ec}var Mc,Ty;function vj(){if(Ty)return Mc;Ty=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Mc=e,Mc}var Cc,Ey;function yj(){if(Ey)return Cc;Ey=1;var e=vj(),t=e();return Cc=t,Cc}var $c,My;function qx(){if(My)return $c;My=1;var e=yj(),t=yo();function r(n,i){return n&&e(n,i,t)}return $c=r,$c}var kc,Cy;function mj(){if(Cy)return kc;Cy=1;var e=Ii();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return kc=t,kc}var Ic,$y;function Ld(){if($y)return Ic;$y=1;var e=qx(),t=mj(),r=t(e);return Ic=r,Ic}var Nc,ky;function Lx(){if(ky)return Nc;ky=1;var e=Ld(),t=Ii();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Nc=r,Nc}var Dc,Iy;function gj(){if(Iy)return Dc;Iy=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Dc=e,Dc}var Rc,Ny;function bj(){if(Ny)return Rc;Ny=1;var e=yn();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Rc=t,Rc}var qc,Dy;function xj(){if(Dy)return qc;Dy=1;var e=bj();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return qc=t,qc}var Lc,Ry;function wj(){if(Ry)return Lc;Ry=1;var e=Ad(),t=Pd(),r=Ot(),n=Lx(),i=gj(),a=jx(),o=xj(),u=xn(),s=He();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var h=-1;l=e(l,a(r));var y=n(f,function(v,p,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++h,value:v}});return i(y,function(v,p){return o(v,p,d)})}return Lc=c,Lc}var Bc,qy;function Oj(){if(qy)return Bc;qy=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Bc=e,Bc}var Fc,Ly;function _j(){if(Ly)return Fc;Ly=1;var e=Oj(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Fc=r,Fc}var Wc,By;function Sj(){if(By)return Wc;By=1;function e(t){return function(){return t}}return Wc=e,Wc}var zc,Fy;function Bx(){if(Fy)return zc;Fy=1;var e=Or(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zc=t,zc}var Uc,Wy;function Aj(){if(Wy)return Uc;Wy=1;var e=Sj(),t=Bx(),r=xn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Uc=n,Uc}var Hc,zy;function Pj(){if(zy)return Hc;zy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Hc=n,Hc}var Gc,Uy;function jj(){if(Uy)return Gc;Uy=1;var e=Aj(),t=Pj(),r=t(e);return Gc=r,Gc}var Kc,Hy;function Tj(){if(Hy)return Kc;Hy=1;var e=xn(),t=_j(),r=jj();function n(i,a){return r(t(i,a,e),i+"")}return Kc=n,Kc}var Yc,Gy;function go(){if(Gy)return Yc;Gy=1;var e=Od(),t=Ii(),r=Dd(),n=Vt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Yc=i,Yc}var Vc,Ky;function Ej(){if(Ky)return Vc;Ky=1;var e=Rx(),t=wj(),r=Tj(),n=go(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Vc=i,Vc}var Mj=Ej();const Bd=se(Mj);function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pf.apply(this,arguments)}function Cj(e,t){return Nj(e)||Ij(e,t)||kj(e,t)||$j()}function $j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kj(e,t){if(e){if(typeof e=="string")return Yy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yy(e,t)}}function Yy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Ij(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Nj(e){if(Array.isArray(e))return e}function Vy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vy(Object(r),!0).forEach(function(n){Dj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Dj(e,t,r){return t=Rj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rj(e){var t=qj(e,"string");return Zn(t)=="symbol"?t:t+""}function qj(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lj(e){return Array.isArray(e)&&Te(e[0])&&Te(e[1])?e.join(" ~ "):e}var Bj=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var E={padding:0,margin:0},M=(d?Bd(f,d):f).map(function(k,$){if(k.type==="none")return null;var N=Xc({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),R=k.formatter||l||Lj,B=k.value,F=k.name,H=B,Y=F;if(R&&H!=null&&Y!=null){var z=R(B,F,k,$,f);if(Array.isArray(z)){var X=Cj(z,2);H=X[0],Y=X[1]}else H=z}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:N},Te(Y)?P.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,Te(Y)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:E},M)}return null},O=Xc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Xc({margin:0},c),b=!Z(v),_=b?v:"",A=J("recharts-default-tooltip",h),T=J("recharts-tooltip-label",y);b&&p&&f!==void 0&&f!==null&&(_=p(v,f));var C=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",pf({className:A,style:O},C),P.createElement("p",{className:T,style:m},P.isValidElement(_)?_:"".concat(_)),w())};function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function Ui(e,t,r){return t=Fj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fj(e){var t=Wj(e,"string");return Qn(t)=="symbol"?t:t+""}function Wj(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var En="recharts-tooltip-wrapper",zj={visibility:"hidden"};function Uj(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return J(En,Ui(Ui(Ui(Ui({},"".concat(En,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(En,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(En,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(En,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function Xy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&L(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,h=s[n];return d<h?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function Hj(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Gj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Xy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Xy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=Hj({translateX:f,translateY:l,useTranslate3d:u})):c=zj,{cssProperties:c,cssClasses:Uj({translateX:f,translateY:l,coordinate:r})}}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function Zy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Qy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zy(Object(r),!0).forEach(function(n){yf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wx(n.key),n)}}function Vj(e,t,r){return t&&Yj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Xj(e,t,r){return t=ma(t),Zj(e,Fx()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function Zj(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qj(e)}function Qj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fx=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function Jj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vf(e,t)}function vf(e,t){return vf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},vf(e,t)}function yf(e,t,r){return t=Wx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wx(e){var t=eT(e,"string");return Gr(t)=="symbol"?t:t+""}function eT(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jy=1,tT=(function(e){function t(){var r;Kj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Xj(this,t,[].concat(i)),yf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),yf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return Jj(t,e),Vj(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>Jy||Math.abs(n.height-this.state.lastBoundingBox.height)>Jy)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,h=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=Gj({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=Qy(Qy({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},c)}}])})(D.PureComponent),rT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},_r={isSsr:rT()};function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function em(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?em(Object(r),!0).forEach(function(n){Fd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):em(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ux(n.key),n)}}function aT(e,t,r){return t&&iT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oT(e,t,r){return t=ga(t),uT(e,zx()?Reflect.construct(t,r||[],ga(e).constructor):t.apply(e,r))}function uT(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sT(e)}function sT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zx=function(){return!!e})()}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}function cT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mf(e,t)}function mf(e,t){return mf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},mf(e,t)}function Fd(e,t,r){return t=Ux(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ux(e){var t=lT(e,"string");return Kr(t)=="symbol"?t:t+""}function lT(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function fT(e){return e.dataKey}function dT(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(Bj,t)}var ot=(function(e){function t(){return nT(this,t),oT(this,t,arguments)}return cT(t,e),aT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,h=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=Ix(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,fT));var b=m.length>0;return P.createElement(tT,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:b,offset:h,position:p,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},dT(c,tm(tm({},this.props),{},{payload:m})))}}])})(D.PureComponent);Fd(ot,"displayName","Tooltip");Fd(ot,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!_r.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Zc,rm;function hT(){if(rm)return Zc;rm=1;var e=wt(),t=function(){return e.Date.now()};return Zc=t,Zc}var Qc,nm;function pT(){if(nm)return Qc;nm=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Qc=t,Qc}var Jc,im;function vT(){if(im)return Jc;im=1;var e=pT(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Jc=r,Jc}var el,am;function Hx(){if(am)return el;am=1;var e=vT(),t=Vt(),r=yn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return el=s,el}var tl,om;function yT(){if(om)return tl;om=1;var e=Vt(),t=hT(),r=Hx(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,h,y,v,p=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(M){var k=f,$=l;return f=l=void 0,p=M,h=u.apply($,k),h}function m(M){return p=M,y=setTimeout(A,s),g?O(M):h}function b(M){var k=M-v,$=M-p,N=s-k;return x?a(N,d-$):N}function _(M){var k=M-v,$=M-p;return v===void 0||k>=s||k<0||x&&$>=d}function A(){var M=t();if(_(M))return T(M);y=setTimeout(A,b(M))}function T(M){return y=void 0,w&&f?O(M):(f=l=void 0,h)}function C(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function j(){return y===void 0?h:T(t())}function E(){var M=t(),k=_(M);if(f=arguments,l=this,v=M,k){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,s),O(v)}return y===void 0&&(y=setTimeout(A,s)),h}return E.cancel=C,E.flush=j,E}return tl=o,tl}var rl,um;function mT(){if(um)return rl;um=1;var e=yT(),t=Vt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return rl=n,rl}var gT=mT();const Gx=se(gT);function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function sm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?sm(Object(r),!0).forEach(function(n){bT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bT(e,t,r){return t=xT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xT(e){var t=wT(e,"string");return Jn(t)=="symbol"?t:t+""}function wT(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function OT(e,t){return PT(e)||AT(e,t)||ST(e,t)||_T()}function _T(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
7
|
-
maybe you don't need to use a ResponsiveContainer.`,o,s),ct(!r||r>0,"The aspect(%s) must be greater than zero.",r);var
|
|
4
|
+
A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(a),className:"recharts-legend-icon"});if(n.type==="rect")return P.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Je/8,"h").concat(Je,"v").concat(Je*3/4,"h").concat(-Je,"z"),className:"recharts-legend-icon"});if(P.isValidElement(n.legendIcon)){var c=XA({},n);return delete c.legendIcon,P.cloneElement(n.legendIcon,c)}return P.createElement(kd,{fill:s,cx:a,cy:a,size:Je,sizeType:"diameter",type:n.type})}},{key:"renderItems",value:function(){var n=this,i=this.props,a=i.payload,o=i.iconSize,u=i.layout,s=i.formatter,c=i.inactiveColor,f={x:0,y:0,width:Je,height:Je},l={display:u==="horizontal"?"inline-block":"block",marginRight:10},d={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(h,y){var v=h.formatter||s,p=J(Xn(Xn({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",h.inactive));if(h.type==="none")return null;var g=V(h.value)?null:h.value;ct(!V(h.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var x=h.inactive?c:h.color;return P.createElement("li",df({className:p,style:l,key:"legend-item-".concat(y)},mr(n.props,h,y)),P.createElement(af,{width:o,height:o,viewBox:f,style:d},n.renderIcon(h)),P.createElement("span",{className:"recharts-legend-item-text",style:{color:x}},v?v(g,h,y):g))})}},{key:"render",value:function(){var n=this.props,i=n.payload,a=n.layout,o=n.align;if(!i||!i.length)return null;var u={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return P.createElement("ul",{className:"recharts-default-legend",style:u},this.renderItems())}}])})(D.PureComponent);Xn(Id,"displayName","Legend");Xn(Id,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var ds,av;function aP(){if(av)return ds;av=1;var e=so();function t(){this.__data__=new e,this.size=0}return ds=t,ds}var hs,ov;function oP(){if(ov)return hs;ov=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return hs=e,hs}var ps,uv;function uP(){if(uv)return ps;uv=1;function e(t){return this.__data__.get(t)}return ps=e,ps}var vs,sv;function sP(){if(sv)return vs;sv=1;function e(t){return this.__data__.has(t)}return vs=e,vs}var ys,cv;function cP(){if(cv)return ys;cv=1;var e=so(),t=Sd(),r=Ad(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!t||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new r(s)}return u.set(a,o),this.size=u.size,this}return ys=i,ys}var ms,lv;function bx(){if(lv)return ms;lv=1;var e=so(),t=aP(),r=oP(),n=uP(),i=sP(),a=cP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=t,o.prototype.delete=r,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,ms=o,ms}var gs,fv;function lP(){if(fv)return gs;fv=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return gs=t,gs}var bs,dv;function fP(){if(dv)return bs;dv=1;function e(t){return this.__data__.has(t)}return bs=e,bs}var xs,hv;function xx(){if(hv)return xs;hv=1;var e=Ad(),t=lP(),r=fP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,xs=n,xs}var ws,pv;function wx(){if(pv)return ws;pv=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return ws=e,ws}var Os,vv;function Ox(){if(vv)return Os;vv=1;function e(t,r){return t.has(r)}return Os=e,Os}var _s,yv;function _x(){if(yv)return _s;yv=1;var e=xx(),t=wx(),r=Ox(),n=1,i=2;function a(o,u,s,c,f,l){var d=s&n,h=o.length,y=u.length;if(h!=y&&!(d&&y>h))return!1;var v=l.get(o),p=l.get(u);if(v&&p)return v==u&&p==o;var g=-1,x=!0,w=s&i?new e:void 0;for(l.set(o,u),l.set(u,o);++g<h;){var O=o[g],m=u[g];if(c)var b=d?c(m,O,g,u,o,l):c(O,m,g,o,u,l);if(b!==void 0){if(b)continue;x=!1;break}if(w){if(!t(u,function(_,A){if(!r(w,A)&&(O===_||f(O,_,s,c,l)))return w.push(A)})){x=!1;break}}else if(!(O===m||f(O,m,s,c,l))){x=!1;break}}return l.delete(o),l.delete(u),x}return _s=a,_s}var Ss,mv;function dP(){if(mv)return Ss;mv=1;var e=wt(),t=e.Uint8Array;return Ss=t,Ss}var As,gv;function hP(){if(gv)return As;gv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,a){n[++r]=[a,i]}),n}return As=e,As}var Ps,bv;function Nd(){if(bv)return Ps;bv=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return Ps=e,Ps}var js,xv;function pP(){if(xv)return js;xv=1;var e=ki(),t=dP(),r=_d(),n=_x(),i=hP(),a=Nd(),o=1,u=2,s="[object Boolean]",c="[object Date]",f="[object Error]",l="[object Map]",d="[object Number]",h="[object RegExp]",y="[object Set]",v="[object String]",p="[object Symbol]",g="[object ArrayBuffer]",x="[object DataView]",w=e?e.prototype:void 0,O=w?w.valueOf:void 0;function m(b,_,A,T,$,j,E){switch(A){case x:if(b.byteLength!=_.byteLength||b.byteOffset!=_.byteOffset)return!1;b=b.buffer,_=_.buffer;case g:return!(b.byteLength!=_.byteLength||!j(new t(b),new t(_)));case s:case c:case d:return r(+b,+_);case f:return b.name==_.name&&b.message==_.message;case h:case v:return b==_+"";case l:var M=i;case y:var k=T&o;if(M||(M=a),b.size!=_.size&&!k)return!1;var C=E.get(b);if(C)return C==_;T|=u,E.set(b,_);var N=n(M(b),M(_),T,$,j,E);return E.delete(b),N;case p:if(O)return O.call(b)==O.call(_)}return!1}return js=m,js}var Ts,wv;function Sx(){if(wv)return Ts;wv=1;function e(t,r){for(var n=-1,i=r.length,a=t.length;++n<i;)t[a+n]=r[n];return t}return Ts=e,Ts}var Es,Ov;function vP(){if(Ov)return Es;Ov=1;var e=Sx(),t=He();function r(n,i,a){var o=i(n);return t(n)?o:e(o,a(n))}return Es=r,Es}var Ms,_v;function yP(){if(_v)return Ms;_v=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,a=0,o=[];++n<i;){var u=t[n];r(u,n,t)&&(o[a++]=u)}return o}return Ms=e,Ms}var $s,Sv;function mP(){if(Sv)return $s;Sv=1;function e(){return[]}return $s=e,$s}var Cs,Av;function gP(){if(Av)return Cs;Av=1;var e=yP(),t=mP(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:t;return Cs=a,Cs}var ks,Pv;function bP(){if(Pv)return ks;Pv=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return ks=e,ks}var Is,jv;function xP(){if(jv)return Is;jv=1;var e=Nt(),t=Dt(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return Is=n,Is}var Ns,Tv;function Dd(){if(Tv)return Ns;Tv=1;var e=xP(),t=Dt(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return t(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return Ns=a,Ns}var qn={exports:{}},Ds,Ev;function wP(){if(Ev)return Ds;Ev=1;function e(){return!1}return Ds=e,Ds}qn.exports;var Mv;function Ax(){return Mv||(Mv=1,(function(e,t){var r=wt(),n=wP(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?r.Buffer:void 0,s=u?u.isBuffer:void 0,c=s||n;e.exports=c})(qn,qn.exports)),qn.exports}var Rs,$v;function Rd(){if($v)return Rs;$v=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return Rs=r,Rs}var qs,Cv;function qd(){if(Cv)return qs;Cv=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return qs=t,qs}var Ls,kv;function OP(){if(kv)return Ls;kv=1;var e=Nt(),t=qd(),r=Dt(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",c="[object Map]",f="[object Number]",l="[object Object]",d="[object RegExp]",h="[object Set]",y="[object String]",v="[object WeakMap]",p="[object ArrayBuffer]",g="[object DataView]",x="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",m="[object Int16Array]",b="[object Int32Array]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",T="[object Uint16Array]",$="[object Uint32Array]",j={};j[x]=j[w]=j[O]=j[m]=j[b]=j[_]=j[A]=j[T]=j[$]=!0,j[n]=j[i]=j[p]=j[a]=j[g]=j[o]=j[u]=j[s]=j[c]=j[f]=j[l]=j[d]=j[h]=j[y]=j[v]=!1;function E(M){return r(M)&&t(M.length)&&!!j[e(M)]}return Ls=E,Ls}var Bs,Iv;function Px(){if(Iv)return Bs;Iv=1;function e(t){return function(r){return t(r)}}return Bs=e,Bs}var Ln={exports:{}};Ln.exports;var Nv;function _P(){return Nv||(Nv=1,(function(e,t){var r=G0(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&r.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(Ln,Ln.exports)),Ln.exports}var Fs,Dv;function jx(){if(Dv)return Fs;Dv=1;var e=OP(),t=Px(),r=_P(),n=r&&r.isTypedArray,i=n?t(n):e;return Fs=i,Fs}var Ws,Rv;function SP(){if(Rv)return Ws;Rv=1;var e=bP(),t=Dd(),r=He(),n=Ax(),i=Rd(),a=jx(),o=Object.prototype,u=o.hasOwnProperty;function s(c,f){var l=r(c),d=!l&&t(c),h=!l&&!d&&n(c),y=!l&&!d&&!h&&a(c),v=l||d||h||y,p=v?e(c.length,String):[],g=p.length;for(var x in c)(f||u.call(c,x))&&!(v&&(x=="length"||h&&(x=="offset"||x=="parent")||y&&(x=="buffer"||x=="byteLength"||x=="byteOffset")||i(x,g)))&&p.push(x);return p}return Ws=s,Ws}var zs,qv;function AP(){if(qv)return zs;qv=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return zs=t,zs}var Us,Lv;function Tx(){if(Lv)return Us;Lv=1;function e(t,r){return function(n){return t(r(n))}}return Us=e,Us}var Hs,Bv;function PP(){if(Bv)return Hs;Bv=1;var e=Tx(),t=e(Object.keys,Object);return Hs=t,Hs}var Gs,Fv;function jP(){if(Fv)return Gs;Fv=1;var e=AP(),t=PP(),r=Object.prototype,n=r.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Gs=i,Gs}var Ks,Wv;function Ii(){if(Wv)return Ks;Wv=1;var e=Od(),t=qd();function r(n){return n!=null&&t(n.length)&&!e(n)}return Ks=r,Ks}var Ys,zv;function yo(){if(zv)return Ys;zv=1;var e=SP(),t=jP(),r=Ii();function n(i){return r(i)?e(i):t(i)}return Ys=n,Ys}var Vs,Uv;function TP(){if(Uv)return Vs;Uv=1;var e=vP(),t=gP(),r=yo();function n(i){return e(i,r,t)}return Vs=n,Vs}var Xs,Hv;function EP(){if(Hv)return Xs;Hv=1;var e=TP(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(a,o,u,s,c,f){var l=u&t,d=e(a),h=d.length,y=e(o),v=y.length;if(h!=v&&!l)return!1;for(var p=h;p--;){var g=d[p];if(!(l?g in o:n.call(o,g)))return!1}var x=f.get(a),w=f.get(o);if(x&&w)return x==o&&w==a;var O=!0;f.set(a,o),f.set(o,a);for(var m=l;++p<h;){g=d[p];var b=a[g],_=o[g];if(s)var A=l?s(_,b,g,o,a,f):s(b,_,g,a,o,f);if(!(A===void 0?b===_||c(b,_,u,s,f):A)){O=!1;break}m||(m=g=="constructor")}if(O&&!m){var T=a.constructor,$=o.constructor;T!=$&&"constructor"in a&&"constructor"in o&&!(typeof T=="function"&&T instanceof T&&typeof $=="function"&&$ instanceof $)&&(O=!1)}return f.delete(a),f.delete(o),O}return Xs=i,Xs}var Zs,Gv;function MP(){if(Gv)return Zs;Gv=1;var e=Or(),t=wt(),r=e(t,"DataView");return Zs=r,Zs}var Qs,Kv;function $P(){if(Kv)return Qs;Kv=1;var e=Or(),t=wt(),r=e(t,"Promise");return Qs=r,Qs}var Js,Yv;function Ex(){if(Yv)return Js;Yv=1;var e=Or(),t=wt(),r=e(t,"Set");return Js=r,Js}var ec,Vv;function CP(){if(Vv)return ec;Vv=1;var e=Or(),t=wt(),r=e(t,"WeakMap");return ec=r,ec}var tc,Xv;function kP(){if(Xv)return tc;Xv=1;var e=MP(),t=Sd(),r=$P(),n=Ex(),i=CP(),a=Nt(),o=K0(),u="[object Map]",s="[object Object]",c="[object Promise]",f="[object Set]",l="[object WeakMap]",d="[object DataView]",h=o(e),y=o(t),v=o(r),p=o(n),g=o(i),x=a;return(e&&x(new e(new ArrayBuffer(1)))!=d||t&&x(new t)!=u||r&&x(r.resolve())!=c||n&&x(new n)!=f||i&&x(new i)!=l)&&(x=function(w){var O=a(w),m=O==s?w.constructor:void 0,b=m?o(m):"";if(b)switch(b){case h:return d;case y:return u;case v:return c;case p:return f;case g:return l}return O}),tc=x,tc}var rc,Zv;function IP(){if(Zv)return rc;Zv=1;var e=bx(),t=_x(),r=pP(),n=EP(),i=kP(),a=He(),o=Ax(),u=jx(),s=1,c="[object Arguments]",f="[object Array]",l="[object Object]",d=Object.prototype,h=d.hasOwnProperty;function y(v,p,g,x,w,O){var m=a(v),b=a(p),_=m?f:i(v),A=b?f:i(p);_=_==c?l:_,A=A==c?l:A;var T=_==l,$=A==l,j=_==A;if(j&&o(v)){if(!o(p))return!1;m=!0,T=!1}if(j&&!T)return O||(O=new e),m||u(v)?t(v,p,g,x,w,O):r(v,p,_,g,x,w,O);if(!(g&s)){var E=T&&h.call(v,"__wrapped__"),M=$&&h.call(p,"__wrapped__");if(E||M){var k=E?v.value():v,C=M?p.value():p;return O||(O=new e),w(k,C,g,x,O)}}return j?(O||(O=new e),n(v,p,g,x,w,O)):!1}return rc=y,rc}var nc,Qv;function Ld(){if(Qv)return nc;Qv=1;var e=IP(),t=Dt();function r(n,i,a,o,u){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,a,o,r,u)}return nc=r,nc}var ic,Jv;function NP(){if(Jv)return ic;Jv=1;var e=bx(),t=Ld(),r=1,n=2;function i(a,o,u,s){var c=u.length,f=c,l=!s;if(a==null)return!f;for(a=Object(a);c--;){var d=u[c];if(l&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++c<f;){d=u[c];var h=d[0],y=a[h],v=d[1];if(l&&d[2]){if(y===void 0&&!(h in a))return!1}else{var p=new e;if(s)var g=s(y,v,h,a,o,p);if(!(g===void 0?t(v,y,r|n,s,p):g))return!1}}return!0}return ic=i,ic}var ac,ey;function Mx(){if(ey)return ac;ey=1;var e=Vt();function t(r){return r===r&&!e(r)}return ac=t,ac}var oc,ty;function DP(){if(ty)return oc;ty=1;var e=Mx(),t=yo();function r(n){for(var i=t(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return oc=r,oc}var uc,ry;function $x(){if(ry)return uc;ry=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return uc=e,uc}var sc,ny;function RP(){if(ny)return sc;ny=1;var e=NP(),t=DP(),r=$x();function n(i){var a=t(i);return a.length==1&&a[0][2]?r(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return sc=n,sc}var cc,iy;function qP(){if(iy)return cc;iy=1;function e(t,r){return t!=null&&r in Object(t)}return cc=e,cc}var lc,ay;function LP(){if(ay)return lc;ay=1;var e=X0(),t=Dd(),r=He(),n=Rd(),i=qd(),a=lo();function o(u,s,c){s=e(s,u);for(var f=-1,l=s.length,d=!1;++f<l;){var h=a(s[f]);if(!(d=u!=null&&c(u,h)))break;u=u[h]}return d||++f!=l?d:(l=u==null?0:u.length,!!l&&i(l)&&n(h,l)&&(r(u)||t(u)))}return lc=o,lc}var fc,oy;function BP(){if(oy)return fc;oy=1;var e=qP(),t=LP();function r(n,i){return n!=null&&t(n,i,e)}return fc=r,fc}var dc,uy;function FP(){if(uy)return dc;uy=1;var e=Ld(),t=Z0(),r=BP(),n=wd(),i=Mx(),a=$x(),o=lo(),u=1,s=2;function c(f,l){return n(f)&&i(l)?a(o(f),l):function(d){var h=t(d,f);return h===void 0&&h===l?r(d,f):e(l,h,u|s)}}return dc=c,dc}var hc,sy;function xn(){if(sy)return hc;sy=1;function e(t){return t}return hc=e,hc}var pc,cy;function WP(){if(cy)return pc;cy=1;function e(t){return function(r){return r?.[t]}}return pc=e,pc}var vc,ly;function zP(){if(ly)return vc;ly=1;var e=jd();function t(r){return function(n){return e(n,r)}}return vc=t,vc}var yc,fy;function UP(){if(fy)return yc;fy=1;var e=WP(),t=zP(),r=wd(),n=lo();function i(a){return r(a)?e(n(a)):t(a)}return yc=i,yc}var mc,dy;function Ot(){if(dy)return mc;dy=1;var e=RP(),t=FP(),r=xn(),n=He(),i=UP();function a(o){return typeof o=="function"?o:o==null?r:typeof o=="object"?n(o)?t(o[0],o[1]):e(o):i(o)}return mc=a,mc}var gc,hy;function Cx(){if(hy)return gc;hy=1;function e(t,r,n,i){for(var a=t.length,o=n+(i?1:-1);i?o--:++o<a;)if(r(t[o],o,t))return o;return-1}return gc=e,gc}var bc,py;function HP(){if(py)return bc;py=1;function e(t){return t!==t}return bc=e,bc}var xc,vy;function GP(){if(vy)return xc;vy=1;function e(t,r,n){for(var i=n-1,a=t.length;++i<a;)if(t[i]===r)return i;return-1}return xc=e,xc}var wc,yy;function KP(){if(yy)return wc;yy=1;var e=Cx(),t=HP(),r=GP();function n(i,a,o){return a===a?r(i,a,o):e(i,t,o)}return wc=n,wc}var Oc,my;function YP(){if(my)return Oc;my=1;var e=KP();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return Oc=t,Oc}var _c,gy;function VP(){if(gy)return _c;gy=1;function e(t,r,n){for(var i=-1,a=t==null?0:t.length;++i<a;)if(n(r,t[i]))return!0;return!1}return _c=e,_c}var Sc,by;function XP(){if(by)return Sc;by=1;function e(){}return Sc=e,Sc}var Ac,xy;function ZP(){if(xy)return Ac;xy=1;var e=Ex(),t=XP(),r=Nd(),n=1/0,i=e&&1/r(new e([,-0]))[1]==n?function(a){return new e(a)}:t;return Ac=i,Ac}var Pc,wy;function QP(){if(wy)return Pc;wy=1;var e=xx(),t=YP(),r=VP(),n=Ox(),i=ZP(),a=Nd(),o=200;function u(s,c,f){var l=-1,d=t,h=s.length,y=!0,v=[],p=v;if(f)y=!1,d=r;else if(h>=o){var g=c?null:i(s);if(g)return a(g);y=!1,d=n,p=new e}else p=c?[]:v;e:for(;++l<h;){var x=s[l],w=c?c(x):x;if(x=f||x!==0?x:0,y&&w===w){for(var O=p.length;O--;)if(p[O]===w)continue e;c&&p.push(w),v.push(x)}else d(p,w,f)||(p!==v&&p.push(w),v.push(x))}return v}return Pc=u,Pc}var jc,Oy;function JP(){if(Oy)return jc;Oy=1;var e=Ot(),t=QP();function r(n,i){return n&&n.length?t(n,e(i,2)):[]}return jc=r,jc}var ej=JP();const _y=se(ej);function kx(e,t,r){return t===!0?_y(e,r):V(t)?_y(e,t):e}function Hr(e){"@babel/helpers - typeof";return Hr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hr(e)}var tj=["ref"];function Sy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function _t(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Sy(Object(r),!0).forEach(function(n){mo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ay(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Nx(n.key),n)}}function nj(e,t,r){return t&&Ay(e.prototype,t),r&&Ay(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ij(e,t,r){return t=ya(t),aj(e,Ix()?Reflect.construct(t,r||[],ya(e).constructor):t.apply(e,r))}function aj(e,t){if(t&&(Hr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oj(e)}function oj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ix(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ix=function(){return!!e})()}function ya(e){return ya=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ya(e)}function uj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pf(e,t)}function pf(e,t){return pf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pf(e,t)}function mo(e,t,r){return t=Nx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Nx(e){var t=sj(e,"string");return Hr(t)=="symbol"?t:t+""}function sj(e,t){if(Hr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Hr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cj(e,t){if(e==null)return{};var r=lj(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function lj(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function fj(e){return e.value}function dj(e,t){if(P.isValidElement(e))return P.cloneElement(e,t);if(typeof e=="function")return P.createElement(e,t);t.ref;var r=cj(t,tj);return P.createElement(Id,r)}var Py=1,Lr=(function(e){function t(){var r;rj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=ij(this,t,[].concat(i)),mo(r,"lastBoundingBox",{width:-1,height:-1}),r}return uj(t,e),nj(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();return n.height=this.wrapperNode.offsetHeight,n.width=this.wrapperNode.offsetWidth,n}return null}},{key:"updateBBox",value:function(){var n=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Py||Math.abs(i.height-this.lastBoundingBox.height)>Py)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,n&&n(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,n&&n(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?_t({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(n){var i=this.props,a=i.layout,o=i.align,u=i.verticalAlign,s=i.margin,c=i.chartWidth,f=i.chartHeight,l,d;if(!n||(n.left===void 0||n.left===null)&&(n.right===void 0||n.right===null))if(o==="center"&&a==="vertical"){var h=this.getBBoxSnapshot();l={left:((c||0)-h.width)/2}}else l=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!n||(n.top===void 0||n.top===null)&&(n.bottom===void 0||n.bottom===null))if(u==="middle"){var y=this.getBBoxSnapshot();d={top:((f||0)-y.height)/2}}else d=u==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return _t(_t({},l),d)}},{key:"render",value:function(){var n=this,i=this.props,a=i.content,o=i.width,u=i.height,s=i.wrapperStyle,c=i.payloadUniqBy,f=i.payload,l=_t(_t({position:"absolute",width:o||"auto",height:u||"auto"},this.getDefaultPosition(s)),s);return P.createElement("div",{className:"recharts-legend-wrapper",style:l,ref:function(h){n.wrapperNode=h}},dj(a,_t(_t({},this.props),{},{payload:kx(f,c,fj)})))}}],[{key:"getWithHeight",value:function(n,i){var a=_t(_t({},this.defaultProps),n.props),o=a.layout;return o==="vertical"&&L(n.props.height)?{height:n.props.height}:o==="horizontal"?{width:n.props.width||i}:null}}])})(D.PureComponent);mo(Lr,"displayName","Legend");mo(Lr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Tc,jy;function hj(){if(jy)return Tc;jy=1;var e=ki(),t=Dd(),r=He(),n=e?e.isConcatSpreadable:void 0;function i(a){return r(a)||t(a)||!!(n&&a&&a[n])}return Tc=i,Tc}var Ec,Ty;function Dx(){if(Ty)return Ec;Ty=1;var e=Sx(),t=hj();function r(n,i,a,o,u){var s=-1,c=n.length;for(a||(a=t),u||(u=[]);++s<c;){var f=n[s];i>0&&a(f)?i>1?r(f,i-1,a,o,u):e(u,f):o||(u[u.length]=f)}return u}return Ec=r,Ec}var Mc,Ey;function pj(){if(Ey)return Mc;Ey=1;function e(t){return function(r,n,i){for(var a=-1,o=Object(r),u=i(r),s=u.length;s--;){var c=u[t?s:++a];if(n(o[c],c,o)===!1)break}return r}}return Mc=e,Mc}var $c,My;function vj(){if(My)return $c;My=1;var e=pj(),t=e();return $c=t,$c}var Cc,$y;function Rx(){if($y)return Cc;$y=1;var e=vj(),t=yo();function r(n,i){return n&&e(n,i,t)}return Cc=r,Cc}var kc,Cy;function yj(){if(Cy)return kc;Cy=1;var e=Ii();function t(r,n){return function(i,a){if(i==null)return i;if(!e(i))return r(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return kc=t,kc}var Ic,ky;function Bd(){if(ky)return Ic;ky=1;var e=Rx(),t=yj(),r=t(e);return Ic=r,Ic}var Nc,Iy;function qx(){if(Iy)return Nc;Iy=1;var e=Bd(),t=Ii();function r(n,i){var a=-1,o=t(n)?Array(n.length):[];return e(n,function(u,s,c){o[++a]=i(u,s,c)}),o}return Nc=r,Nc}var Dc,Ny;function mj(){if(Ny)return Dc;Ny=1;function e(t,r){var n=t.length;for(t.sort(r);n--;)t[n]=t[n].value;return t}return Dc=e,Dc}var Rc,Dy;function gj(){if(Dy)return Rc;Dy=1;var e=yn();function t(r,n){if(r!==n){var i=r!==void 0,a=r===null,o=r===r,u=e(r),s=n!==void 0,c=n===null,f=n===n,l=e(n);if(!c&&!l&&!u&&r>n||u&&s&&f&&!c&&!l||a&&s&&f||!i&&f||!o)return 1;if(!a&&!u&&!l&&r<n||l&&i&&o&&!a&&!u||c&&i&&o||!s&&o||!f)return-1}return 0}return Rc=t,Rc}var qc,Ry;function bj(){if(Ry)return qc;Ry=1;var e=gj();function t(r,n,i){for(var a=-1,o=r.criteria,u=n.criteria,s=o.length,c=i.length;++a<s;){var f=e(o[a],u[a]);if(f){if(a>=c)return f;var l=i[a];return f*(l=="desc"?-1:1)}}return r.index-n.index}return qc=t,qc}var Lc,qy;function xj(){if(qy)return Lc;qy=1;var e=Pd(),t=jd(),r=Ot(),n=qx(),i=mj(),a=Px(),o=bj(),u=xn(),s=He();function c(f,l,d){l.length?l=e(l,function(v){return s(v)?function(p){return t(p,v.length===1?v[0]:v)}:v}):l=[u];var h=-1;l=e(l,a(r));var y=n(f,function(v,p,g){var x=e(l,function(w){return w(v)});return{criteria:x,index:++h,value:v}});return i(y,function(v,p){return o(v,p,d)})}return Lc=c,Lc}var Bc,Ly;function wj(){if(Ly)return Bc;Ly=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Bc=e,Bc}var Fc,By;function Oj(){if(By)return Fc;By=1;var e=wj(),t=Math.max;function r(n,i,a){return i=t(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=t(o.length-i,0),c=Array(s);++u<s;)c[u]=o[i+u];u=-1;for(var f=Array(i+1);++u<i;)f[u]=o[u];return f[i]=a(c),e(n,this,f)}}return Fc=r,Fc}var Wc,Fy;function _j(){if(Fy)return Wc;Fy=1;function e(t){return function(){return t}}return Wc=e,Wc}var zc,Wy;function Lx(){if(Wy)return zc;Wy=1;var e=Or(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return zc=t,zc}var Uc,zy;function Sj(){if(zy)return Uc;zy=1;var e=_j(),t=Lx(),r=xn(),n=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:r;return Uc=n,Uc}var Hc,Uy;function Aj(){if(Uy)return Hc;Uy=1;var e=800,t=16,r=Date.now;function n(i){var a=0,o=0;return function(){var u=r(),s=t-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Hc=n,Hc}var Gc,Hy;function Pj(){if(Hy)return Gc;Hy=1;var e=Sj(),t=Aj(),r=t(e);return Gc=r,Gc}var Kc,Gy;function jj(){if(Gy)return Kc;Gy=1;var e=xn(),t=Oj(),r=Pj();function n(i,a){return r(t(i,a,e),i+"")}return Kc=n,Kc}var Yc,Ky;function go(){if(Ky)return Yc;Ky=1;var e=_d(),t=Ii(),r=Rd(),n=Vt();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?t(u)&&r(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Yc=i,Yc}var Vc,Yy;function Tj(){if(Yy)return Vc;Yy=1;var e=Dx(),t=xj(),r=jj(),n=go(),i=r(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return Vc=i,Vc}var Ej=Tj();const Fd=se(Ej);function Zn(e){"@babel/helpers - typeof";return Zn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(e)}function vf(){return vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vf.apply(this,arguments)}function Mj(e,t){return Ij(e)||kj(e,t)||Cj(e,t)||$j()}function $j(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
5
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cj(e,t){if(e){if(typeof e=="string")return Vy(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vy(e,t)}}function Vy(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function kj(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Ij(e){if(Array.isArray(e))return e}function Xy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Xc(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xy(Object(r),!0).forEach(function(n){Nj(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Nj(e,t,r){return t=Dj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dj(e){var t=Rj(e,"string");return Zn(t)=="symbol"?t:t+""}function Rj(e,t){if(Zn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Zn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qj(e){return Array.isArray(e)&&Te(e[0])&&Te(e[1])?e.join(" ~ "):e}var Lj=function(t){var r=t.separator,n=r===void 0?" : ":r,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,u=o===void 0?{}:o,s=t.labelStyle,c=s===void 0?{}:s,f=t.payload,l=t.formatter,d=t.itemSorter,h=t.wrapperClassName,y=t.labelClassName,v=t.label,p=t.labelFormatter,g=t.accessibilityLayer,x=g===void 0?!1:g,w=function(){if(f&&f.length){var E={padding:0,margin:0},M=(d?Fd(f,d):f).map(function(k,C){if(k.type==="none")return null;var N=Xc({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),R=k.formatter||l||qj,B=k.value,F=k.name,H=B,Y=F;if(R&&H!=null&&Y!=null){var z=R(B,F,k,C,f);if(Array.isArray(z)){var X=Mj(z,2);H=X[0],Y=X[1]}else H=z}return P.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(C),style:N},Te(Y)?P.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,Te(Y)?P.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,P.createElement("span",{className:"recharts-tooltip-item-value"},H),P.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return P.createElement("ul",{className:"recharts-tooltip-item-list",style:E},M)}return null},O=Xc({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),m=Xc({margin:0},c),b=!Z(v),_=b?v:"",A=J("recharts-default-tooltip",h),T=J("recharts-tooltip-label",y);b&&p&&f!==void 0&&f!==null&&(_=p(v,f));var $=x?{role:"status","aria-live":"assertive"}:{};return P.createElement("div",vf({className:A,style:O},$),P.createElement("p",{className:T,style:m},P.isValidElement(_)?_:"".concat(_)),w())};function Qn(e){"@babel/helpers - typeof";return Qn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qn(e)}function Ui(e,t,r){return t=Bj(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bj(e){var t=Fj(e,"string");return Qn(t)=="symbol"?t:t+""}function Fj(e,t){if(Qn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var En="recharts-tooltip-wrapper",Wj={visibility:"hidden"};function zj(e){var t=e.coordinate,r=e.translateX,n=e.translateY;return J(En,Ui(Ui(Ui(Ui({},"".concat(En,"-right"),L(r)&&t&&L(t.x)&&r>=t.x),"".concat(En,"-left"),L(r)&&t&&L(t.x)&&r<t.x),"".concat(En,"-bottom"),L(n)&&t&&L(t.y)&&n>=t.y),"".concat(En,"-top"),L(n)&&t&&L(t.y)&&n<t.y))}function Zy(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,c=e.viewBoxDimension;if(a&&L(a[n]))return a[n];var f=r[n]-u-i,l=r[n]+i;if(t[n])return o[n]?f:l;if(o[n]){var d=f,h=s[n];return d<h?Math.max(l,s[n]):Math.max(f,s[n])}var y=l+u,v=s[n]+c;return y>v?Math.max(f,s[n]):Math.max(l,s[n])}function Uj(e){var t=e.translateX,r=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(t,"px, ").concat(r,"px, 0)"):"translate(".concat(t,"px, ").concat(r,"px)")}}function Hj(e){var t=e.allowEscapeViewBox,r=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,c,f,l;return o.height>0&&o.width>0&&r?(f=Zy({allowEscapeViewBox:t,coordinate:r,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),l=Zy({allowEscapeViewBox:t,coordinate:r,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),c=Uj({translateX:f,translateY:l,useTranslate3d:u})):c=Wj,{cssProperties:c,cssClasses:zj({translateX:f,translateY:l,coordinate:r})}}function Gr(e){"@babel/helpers - typeof";return Gr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gr(e)}function Qy(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Jy(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qy(Object(r),!0).forEach(function(n){mf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qy(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Gj(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Kj(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fx(n.key),n)}}function Yj(e,t,r){return t&&Kj(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vj(e,t,r){return t=ma(t),Xj(e,Bx()?Reflect.construct(t,r||[],ma(e).constructor):t.apply(e,r))}function Xj(e,t){if(t&&(Gr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zj(e)}function Zj(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Bx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Bx=function(){return!!e})()}function ma(e){return ma=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ma(e)}function Qj(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&yf(e,t)}function yf(e,t){return yf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},yf(e,t)}function mf(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fx(e){var t=Jj(e,"string");return Gr(t)=="symbol"?t:t+""}function Jj(e,t){if(Gr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Gr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var em=1,eT=(function(e){function t(){var r;Gj(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=Vj(this,t,[].concat(i)),mf(r,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),mf(r,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,c,f;r.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=r.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(c=(f=r.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),r}return Qj(t,e),Yj(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>em||Math.abs(n.height-this.state.lastBoundingBox.height)>em)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.children,f=i.coordinate,l=i.hasPayload,d=i.isAnimationActive,h=i.offset,y=i.position,v=i.reverseDirection,p=i.useTranslate3d,g=i.viewBox,x=i.wrapperStyle,w=Hj({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:h,position:y,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:p,viewBox:g}),O=w.cssClasses,m=w.cssProperties,b=Jy(Jy({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},m),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&l?"visible":"hidden",position:"absolute",top:0,left:0},x);return P.createElement("div",{tabIndex:-1,className:O,style:b,ref:function(A){n.wrapperNode=A}},c)}}])})(D.PureComponent),tT=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},_r={isSsr:tT()};function Kr(e){"@babel/helpers - typeof";return Kr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kr(e)}function tm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rm(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tm(Object(r),!0).forEach(function(n){Wd(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nT(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zx(n.key),n)}}function iT(e,t,r){return t&&nT(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aT(e,t,r){return t=ga(t),oT(e,Wx()?Reflect.construct(t,r||[],ga(e).constructor):t.apply(e,r))}function oT(e,t){if(t&&(Kr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uT(e)}function uT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wx(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wx=function(){return!!e})()}function ga(e){return ga=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ga(e)}function sT(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gf(e,t)}function gf(e,t){return gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gf(e,t)}function Wd(e,t,r){return t=zx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zx(e){var t=cT(e,"string");return Kr(t)=="symbol"?t:t+""}function cT(e,t){if(Kr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Kr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function lT(e){return e.dataKey}function fT(e,t){return P.isValidElement(e)?P.cloneElement(e,t):typeof e=="function"?P.createElement(e,t):P.createElement(Lj,t)}var ot=(function(e){function t(){return rT(this,t),aT(this,t,arguments)}return sT(t,e),iT(t,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,c=i.content,f=i.coordinate,l=i.filterNull,d=i.isAnimationActive,h=i.offset,y=i.payload,v=i.payloadUniqBy,p=i.position,g=i.reverseDirection,x=i.useTranslate3d,w=i.viewBox,O=i.wrapperStyle,m=y??[];l&&m.length&&(m=kx(y.filter(function(_){return _.value!=null&&(_.hide!==!0||n.props.includeHidden)}),v,lT));var b=m.length>0;return P.createElement(eT,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:f,hasPayload:b,offset:h,position:p,reverseDirection:g,useTranslate3d:x,viewBox:w,wrapperStyle:O},fT(c,rm(rm({},this.props),{},{payload:m})))}}])})(D.PureComponent);Wd(ot,"displayName","Tooltip");Wd(ot,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!_r.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Zc,nm;function dT(){if(nm)return Zc;nm=1;var e=wt(),t=function(){return e.Date.now()};return Zc=t,Zc}var Qc,im;function hT(){if(im)return Qc;im=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return Qc=t,Qc}var Jc,am;function pT(){if(am)return Jc;am=1;var e=hT(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return Jc=r,Jc}var el,om;function Ux(){if(om)return el;om=1;var e=pT(),t=Vt(),r=yn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=t(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=e(c);var l=a.test(c);return l||o.test(c)?u(c.slice(2),l?2:8):i.test(c)?n:+c}return el=s,el}var tl,um;function vT(){if(um)return tl;um=1;var e=Vt(),t=dT(),r=Ux(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,c){var f,l,d,h,y,v,p=0,g=!1,x=!1,w=!0;if(typeof u!="function")throw new TypeError(n);s=r(s)||0,e(c)&&(g=!!c.leading,x="maxWait"in c,d=x?i(r(c.maxWait)||0,s):d,w="trailing"in c?!!c.trailing:w);function O(M){var k=f,C=l;return f=l=void 0,p=M,h=u.apply(C,k),h}function m(M){return p=M,y=setTimeout(A,s),g?O(M):h}function b(M){var k=M-v,C=M-p,N=s-k;return x?a(N,d-C):N}function _(M){var k=M-v,C=M-p;return v===void 0||k>=s||k<0||x&&C>=d}function A(){var M=t();if(_(M))return T(M);y=setTimeout(A,b(M))}function T(M){return y=void 0,w&&f?O(M):(f=l=void 0,h)}function $(){y!==void 0&&clearTimeout(y),p=0,f=v=l=y=void 0}function j(){return y===void 0?h:T(t())}function E(){var M=t(),k=_(M);if(f=arguments,l=this,v=M,k){if(y===void 0)return m(v);if(x)return clearTimeout(y),y=setTimeout(A,s),O(v)}return y===void 0&&(y=setTimeout(A,s)),h}return E.cancel=$,E.flush=j,E}return tl=o,tl}var rl,sm;function yT(){if(sm)return rl;sm=1;var e=vT(),t=Vt(),r="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(r);return t(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return rl=n,rl}var mT=yT();const Hx=se(mT);function Jn(e){"@babel/helpers - typeof";return Jn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jn(e)}function cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Hi(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cm(Object(r),!0).forEach(function(n){gT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gT(e,t,r){return t=bT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bT(e){var t=xT(e,"string");return Jn(t)=="symbol"?t:t+""}function xT(e,t){if(Jn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wT(e,t){return AT(e)||ST(e,t)||_T(e,t)||OT()}function OT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
6
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _T(e,t){if(e){if(typeof e=="string")return lm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lm(e,t)}}function lm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ST(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function AT(e){if(Array.isArray(e))return e}var Gx=D.forwardRef(function(e,t){var r=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,c=e.minWidth,f=c===void 0?0:c,l=e.minHeight,d=e.maxHeight,h=e.children,y=e.debounce,v=y===void 0?0:y,p=e.id,g=e.className,x=e.onResize,w=e.style,O=w===void 0?{}:w,m=D.useRef(null),b=D.useRef();b.current=x,D.useImperativeHandle(t,function(){return Object.defineProperty(m.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),m.current},configurable:!0})});var _=D.useState({containerWidth:i.width,containerHeight:i.height}),A=wT(_,2),T=A[0],$=A[1],j=D.useCallback(function(M,k){$(function(C){var N=Math.round(M),R=Math.round(k);return C.containerWidth===N&&C.containerHeight===R?C:{containerWidth:N,containerHeight:R}})},[]);D.useEffect(function(){var M=function(F){var H,Y=F[0].contentRect,z=Y.width,X=Y.height;j(z,X),(H=b.current)===null||H===void 0||H.call(b,z,X)};v>0&&(M=Hx(M,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(M),C=m.current.getBoundingClientRect(),N=C.width,R=C.height;return j(N,R),k.observe(m.current),function(){k.disconnect()}},[j,v]);var E=D.useMemo(function(){var M=T.containerWidth,k=T.containerHeight;if(M<0||k<0)return null;ct(cr(o)||cr(s),`The width(%s) and height(%s) are both fixed numbers,
|
|
7
|
+
maybe you don't need to use a ResponsiveContainer.`,o,s),ct(!r||r>0,"The aspect(%s) must be greater than zero.",r);var C=cr(o)?M:o,N=cr(s)?k:s;r&&r>0&&(C?N=C/r:N&&(C=N*r),d&&N>d&&(N=d)),ct(C>0||N>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
8
8
|
please check the style of container, or the props width(%s) and height(%s),
|
|
9
9
|
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
10
|
-
height and width
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
12
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function JT(e,t){if(e){if(typeof e=="string")return bm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bm(e,t)}}function bm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function eE(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function tE(e){if(Array.isArray(e))return e}var Xx=/[ \f\n\r\t\v\u2028\u2029]+/,Zx=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(Xx));var o=a.map(function(s){return{word:s,width:Wn(s,i).width}}),u=n?0:Wn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},rE=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,d=function(){var $=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(N,R){var B=R.word,F=R.width,H=N[N.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(B),H.width+=F+n;else{var Y={words:[B],width:F};N.push(Y)}return N},[])},h=d(r),y=function($){return $.reduce(function(N,R){return N.width>R.width?N:R})};if(!f)return h;for(var v="…",p=function($){var N=l.slice(0,$),R=Zx({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,B=d(R),F=B.length>o||y(B).width>Number(i);return[F,B]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=p(b),A=gm(_,2),T=A[0],C=A[1],j=p(m),E=gm(j,1),M=E[0];if(!T&&!M&&(g=m+1),T&&M&&(x=m-1),!T&&M){O=C;break}w++}return O||h},xm=function(t){var r=Z(t)?[]:t.toString().split(Xx);return[{words:r}]},nE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!_r.isSsr){var s,c,f=Zx({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return xm(i);return rE({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return xm(i)},wm="#808080",gr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,g=p===void 0?wm:p,x=mm(t,VT),w=D.useMemo(function(){return nE({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,_=x.className,A=x.breakAll,T=mm(x,XT);if(!Te(n)||!Te(a))return null;var C=n+(L(O)?O:0),j=a+(L(m)?m:0),E;switch(v){case"start":E=nl("calc(".concat(c,")"));break;case"middle":E=nl("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:E=nl("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var k=w[0].width,$=x.width;M.push("scale(".concat((L($)?$/k:1)/k,")"))}return b&&M.push("rotate(".concat(b,", ").concat(C,", ").concat(j,")")),M.length&&(T.transform=M.join(" ")),P.createElement("text",bf({},G(T,!0),{x:C,y:j,className:J("recharts-text",_),textAnchor:h,fill:g.includes("url")?wm:g}),w.map(function(N,R){var B=N.words.join(A?"":" ");return P.createElement("tspan",{x:C,dy:R===0?E:u,key:"".concat(B,"-").concat(R)},B)}))};function Yt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function iE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Wd(e){let t,r,n;e.length!==2?(t=Yt,r=(u,s)=>Yt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Yt||e===iE?e:aE,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function aE(){return 0}function Qx(e){return e===null?NaN:+e}function*oE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const uE=Wd(Yt),Ni=uE.right;Wd(Qx).center;class Om extends Map{constructor(t,r=lE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(_m(this,t))}has(t){return super.has(_m(this,t))}set(t,r){return super.set(sE(this,t),r)}delete(t){return super.delete(cE(this,t))}}function _m({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function sE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function cE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function lE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function fE(e=Yt){if(e===Yt)return Jx;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Jx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const dE=Math.sqrt(50),hE=Math.sqrt(10),pE=Math.sqrt(2);function xa(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=dE?10:a>=hE?5:a>=pE?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?xa(e,t,r*2):[u,s,c]}function xf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?xa(t,e,r):xa(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function wf(e,t,r){return t=+t,e=+e,r=+r,xa(e,t,r)[2]}function Of(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?wf(t,e,r):wf(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Sm(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Am(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function ew(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Jx:fE(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),h=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));ew(e,t,h,y,i)}const a=e[t];let o=r,u=n;for(Mn(e,r,t),i(e[n],a)>0&&Mn(e,r,n);o<u;){for(Mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Mn(e,r,u):(++u,Mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function vE(e,t,r){if(e=Float64Array.from(oE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Am(e);if(t>=1)return Sm(e);var n,i=(n-1)*t,a=Math.floor(i),o=Sm(ew(e,a).subarray(0,a+1)),u=Am(e.subarray(a+1));return o+(u-o)*(i-a)}}function yE(e,t,r=Qx){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function mE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function it(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Rt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const _f=Symbol("implicit");function zd(){var e=new Om,t=[],r=[],n=_f;function i(a){let o=e.get(a);if(o===void 0){if(n!==_f)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Om;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return zd(t,r).unknown(n)},it.apply(i,arguments),i}function ri(){var e=zd().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,h=i<n,y=h?i:n,v=h?n:i;a=(v-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var p=mE(d).map(function(g){return y+a*g});return r(h?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return ri(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},it.apply(l(),arguments)}function tw(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return tw(t())},e}function zn(){return tw(ri.apply(null,arguments).paddingInner(1))}function Ud(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function rw(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Di(){}var ni=.7,wa=1/ni,Br="\\s*([+-]?\\d+)\\s*",ii="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",gE=/^#([0-9a-f]{3,8})$/,bE=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),xE=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),wE=new RegExp(`^rgba\\(${Br},${Br},${Br},${ii}\\)$`),OE=new RegExp(`^rgba\\(${yt},${yt},${yt},${ii}\\)$`),_E=new RegExp(`^hsl\\(${ii},${yt},${yt}\\)$`),SE=new RegExp(`^hsla\\(${ii},${yt},${yt},${ii}\\)$`),Pm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Ud(Di,ai,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:jm,formatHex:jm,formatHex8:AE,formatHsl:PE,formatRgb:Tm,toString:Tm});function jm(){return this.rgb().formatHex()}function AE(){return this.rgb().formatHex8()}function PE(){return nw(this).formatHsl()}function Tm(){return this.rgb().formatRgb()}function ai(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=gE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Em(t):r===3?new Ue(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ki(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ki(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bE.exec(e))?new Ue(t[1],t[2],t[3],1):(t=xE.exec(e))?new Ue(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=wE.exec(e))?Ki(t[1],t[2],t[3],t[4]):(t=OE.exec(e))?Ki(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_E.exec(e))?$m(t[1],t[2]/100,t[3]/100,1):(t=SE.exec(e))?$m(t[1],t[2]/100,t[3]/100,t[4]):Pm.hasOwnProperty(e)?Em(Pm[e]):e==="transparent"?new Ue(NaN,NaN,NaN,0):null}function Em(e){return new Ue(e>>16&255,e>>8&255,e&255,1)}function Ki(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ue(e,t,r,n)}function jE(e){return e instanceof Di||(e=ai(e)),e?(e=e.rgb(),new Ue(e.r,e.g,e.b,e.opacity)):new Ue}function Sf(e,t,r,n){return arguments.length===1?jE(e):new Ue(e,t,r,n??1)}function Ue(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Ud(Ue,Sf,rw(Di,{brighter(e){return e=e==null?wa:Math.pow(wa,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ni:Math.pow(ni,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ue(pr(this.r),pr(this.g),pr(this.b),Oa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Mm,formatHex:Mm,formatHex8:TE,formatRgb:Cm,toString:Cm}));function Mm(){return`#${lr(this.r)}${lr(this.g)}${lr(this.b)}`}function TE(){return`#${lr(this.r)}${lr(this.g)}${lr(this.b)}${lr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cm(){const e=Oa(this.opacity);return`${e===1?"rgb(":"rgba("}${pr(this.r)}, ${pr(this.g)}, ${pr(this.b)}${e===1?")":`, ${e})`}`}function Oa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lr(e){return e=pr(e),(e<16?"0":"")+e.toString(16)}function $m(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,r,n)}function nw(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=ai(e)),!e)return new st;if(e instanceof st)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new st(o,u,s,e.opacity)}function EE(e,t,r,n){return arguments.length===1?nw(e):new st(e,t,r,n??1)}function st(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Ud(st,EE,rw(Di,{brighter(e){return e=e==null?wa:Math.pow(wa,e),new st(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ni:Math.pow(ni,e),new st(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ue(il(e>=240?e-240:e+120,i,n),il(e,i,n),il(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new st(km(this.h),Yi(this.s),Yi(this.l),Oa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Oa(this.opacity);return`${e===1?"hsl(":"hsla("}${km(this.h)}, ${Yi(this.s)*100}%, ${Yi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function km(e){return e=(e||0)%360,e<0?e+360:e}function Yi(e){return Math.max(0,Math.min(1,e||0))}function il(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Hd=e=>()=>e;function ME(e,t){return function(r){return e+r*t}}function CE(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function $E(e){return(e=+e)==1?iw:function(t,r){return r-t?CE(t,r,e):Hd(isNaN(t)?r:t)}}function iw(e,t){var r=t-e;return r?ME(e,r):Hd(isNaN(e)?t:e)}const Im=(function e(t){var r=$E(t);function n(i,a){var o=r((i=Sf(i)).r,(a=Sf(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=iw(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function kE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function IE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function NE(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=wn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function DE(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _a(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function RE(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=wn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Af=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,al=new RegExp(Af.source,"g");function qE(e){return function(){return e}}function LE(e){return function(t){return e(t)+""}}function BE(e,t){var r=Af.lastIndex=al.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Af.exec(e))&&(i=al.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:_a(n,i)})),r=al.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?LE(s[0].x):qE(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function wn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Hd(t):(r==="number"?_a:r==="string"?(n=ai(t))?(t=n,Im):BE:t instanceof ai?Im:t instanceof Date?DE:IE(t)?kE:Array.isArray(t)?NE:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?RE:_a)(e,t)}function Gd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function FE(e,t){t===void 0&&(t=e,e=wn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function WE(e){return function(){return e}}function Sa(e){return+e}var Nm=[0,1];function Be(e){return e}function Pf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:WE(isNaN(t)?NaN:.5)}function zE(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function UE(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=Pf(i,n),a=r(o,a)):(n=Pf(n,i),a=r(a,o)),function(u){return a(n(u))}}function HE(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=Pf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Ni(e,u,1,n)-1;return a[s](i[s](u))}}function Ri(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function xo(){var e=Nm,t=Nm,r=wn,n,i,a,o=Be,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Be&&(o=zE(e[0],e[d-1])),u=d>2?HE:UE,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),_a)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,Sa),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Gd,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Be,f()):o!==Be},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,h){return n=d,i=h,f()}}function Kd(){return xo()(Be,Be)}function GE(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Aa(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yr(e){return e=Aa(Math.abs(e)),e?e[1]:NaN}function KE(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function YE(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var VE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oi(e){if(!(t=VE.exec(e)))throw new Error("invalid format: "+e);var t;return new Yd({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}oi.prototype=Yd.prototype;function Yd(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Yd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function XE(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var aw;function ZE(e,t){var r=Aa(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(aw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Aa(e,Math.max(0,t+a-1))[0]}function Dm(e,t){var r=Aa(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const Rm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GE,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Dm(e*100,t),r:Dm,s:ZE,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function qm(e){return e}var Lm=Array.prototype.map,Bm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function QE(e){var t=e.grouping===void 0||e.thousands===void 0?qm:KE(Lm.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?qm:YE(Lm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l){l=oi(l);var d=l.fill,h=l.align,y=l.sign,v=l.symbol,p=l.zero,g=l.width,x=l.comma,w=l.precision,O=l.trim,m=l.type;m==="n"?(x=!0,m="g"):Rm[m]||(w===void 0&&(w=12),O=!0,m="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var b=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",A=Rm[m],T=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function C(j){var E=b,M=_,k,$,N;if(m==="c")M=A(j)+M,j="";else{j=+j;var R=j<0||1/j<0;if(j=isNaN(j)?s:A(Math.abs(j),w),O&&(j=XE(j)),R&&+j==0&&y!=="+"&&(R=!1),E=(R?y==="("?y:u:y==="-"||y==="("?"":y)+E,M=(m==="s"?Bm[8+aw/3]:"")+M+(R&&y==="("?")":""),T){for(k=-1,$=j.length;++k<$;)if(N=j.charCodeAt(k),48>N||N>57){M=(N===46?i+j.slice(k+1):j.slice(k))+M,j=j.slice(0,k);break}}}x&&!p&&(j=t(j,1/0));var B=E.length+j.length+M.length,F=B<g?new Array(g-B+1).join(d):"";switch(x&&p&&(j=t(F+j,F.length?g-M.length:1/0),F=""),h){case"<":j=E+j+M+F;break;case"=":j=E+F+j+M;break;case"^":j=F.slice(0,B=F.length>>1)+E+j+M+F.slice(B);break;default:j=F+E+j+M;break}return a(j)}return C.toString=function(){return l+""},C}function f(l,d){var h=c((l=oi(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(Yr(d)/3)))*3,v=Math.pow(10,-y),p=Bm[8+y/3];return function(g){return h(v*g)+p}}return{format:c,formatPrefix:f}}var Vi,Vd,ow;JE({thousands:",",grouping:[3],currency:["$",""]});function JE(e){return Vi=QE(e),Vd=Vi.format,ow=Vi.formatPrefix,Vi}function eM(e){return Math.max(0,-Yr(Math.abs(e)))}function tM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yr(t)/3)))*3-Yr(Math.abs(e)))}function rM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yr(t)-Yr(e))+1}function uw(e,t,r,n){var i=Of(e,t,r),a;switch(n=oi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=tM(i,o))&&(n.precision=a),ow(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=rM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=eM(i))&&(n.precision=a-(n.type==="%")*2);break}}return Vd(n)}function Xt(e){var t=e.domain;return e.ticks=function(r){var n=t();return xf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return uw(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=wf(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function Pa(){var e=Kd();return e.copy=function(){return Ri(e,Pa())},it.apply(e,arguments),Xt(e)}function sw(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Sa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return sw(e).unknown(t)},e=arguments.length?Array.from(e,Sa):[0,1],Xt(r)}function cw(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Fm(e){return Math.log(e)}function Wm(e){return Math.exp(e)}function nM(e){return-Math.log(-e)}function iM(e){return-Math.exp(-e)}function aM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function oM(e){return e===10?aM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function uM(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function zm(e){return(t,r)=>-e(-t,r)}function Xd(e){const t=e(Fm,Wm),r=t.domain;let n=10,i,a;function o(){return i=uM(n),a=oM(n),r()[0]<0?(i=zm(i),a=zm(a),e(nM,iM)):e(Fm,Wm),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),h=i(f),y,v;const p=u==null?10:+u;let g=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=h;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<p&&(g=xf(c,f,p))}else g=xf(d,h,Math.min(h-d,p)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=oi(s)).precision==null&&(s.trim=!0),s=Vd(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(cw(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function lw(){const e=Xd(xo()).domain([1,10]);return e.copy=()=>Ri(e,lw()).base(e.base()),it.apply(e,arguments),e}function Um(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Hm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Zd(e){var t=1,r=e(Um(t),Hm(t));return r.constant=function(n){return arguments.length?e(Um(t=+n),Hm(t)):t},Xt(r)}function fw(){var e=Zd(xo());return e.copy=function(){return Ri(e,fw()).constant(e.constant())},it.apply(e,arguments)}function Gm(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function sM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function cM(e){return e<0?-e*e:e*e}function Qd(e){var t=e(Be,Be),r=1;function n(){return r===1?e(Be,Be):r===.5?e(sM,cM):e(Gm(r),Gm(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Xt(t)}function Jd(){var e=Qd(xo());return e.copy=function(){return Ri(e,Jd()).exponent(e.exponent())},it.apply(e,arguments),e}function lM(){return Jd.apply(null,arguments).exponent(.5)}function Km(e){return Math.sign(e)*e*e}function fM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function dw(){var e=Kd(),t=[0,1],r=!1,n;function i(a){var o=fM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Km(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Sa)).map(Km)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return dw(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},it.apply(i,arguments),Xt(i)}function hw(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=yE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ni(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Yt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return hw().domain(e).range(t).unknown(n)},it.apply(a,arguments)}function pw(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Ni(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return pw().domain([e,t]).range(i).unknown(a)},it.apply(Xt(o),arguments)}function vw(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ni(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return vw().domain(e).range(t).unknown(r)},it.apply(i,arguments)}const ol=new Date,ul=new Date;function Ee(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Ee(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(ol.setTime(+a),ul.setTime(+o),e(ol),e(ul),Math.floor(r(ol,ul))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ja=Ee(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ja.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ee(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ja);ja.range;const At=1e3,tt=At*60,Pt=tt*60,Ct=Pt*24,eh=Ct*7,Ym=Ct*30,sl=Ct*365,fr=Ee(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*At)},(e,t)=>(t-e)/At,e=>e.getUTCSeconds());fr.range;const th=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At)},(e,t)=>{e.setTime(+e+t*tt)},(e,t)=>(t-e)/tt,e=>e.getMinutes());th.range;const rh=Ee(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tt)},(e,t)=>(t-e)/tt,e=>e.getUTCMinutes());rh.range;const nh=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At-e.getMinutes()*tt)},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getHours());nh.range;const ih=Ee(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getUTCHours());ih.range;const qi=Ee(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tt)/Ct,e=>e.getDate()-1);qi.range;const wo=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>e.getUTCDate()-1);wo.range;const yw=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ct,e=>Math.floor(e/Ct));yw.range;function Sr(e){return Ee(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*tt)/eh)}const Oo=Sr(0),Ta=Sr(1),dM=Sr(2),hM=Sr(3),Vr=Sr(4),pM=Sr(5),vM=Sr(6);Oo.range;Ta.range;dM.range;hM.range;Vr.range;pM.range;vM.range;function Ar(e){return Ee(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/eh)}const _o=Ar(0),Ea=Ar(1),yM=Ar(2),mM=Ar(3),Xr=Ar(4),gM=Ar(5),bM=Ar(6);_o.range;Ea.range;yM.range;mM.range;Xr.range;gM.range;bM.range;const ah=Ee(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());ah.range;const oh=Ee(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());oh.range;const $t=Ee(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());$t.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});$t.range;const kt=Ee(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());kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});kt.range;function mw(e,t,r,n,i,a){const o=[[fr,1,At],[fr,5,5*At],[fr,15,15*At],[fr,30,30*At],[a,1,tt],[a,5,5*tt],[a,15,15*tt],[a,30,30*tt],[i,1,Pt],[i,3,3*Pt],[i,6,6*Pt],[i,12,12*Pt],[n,1,Ct],[n,2,2*Ct],[r,1,eh],[t,1,Ym],[t,3,3*Ym],[e,1,sl]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const h=l&&typeof l.range=="function"?l:s(c,f,l),y=h?h.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,h=Wd(([,,p])=>p).right(o,d);if(h===o.length)return e.every(Of(c/sl,f/sl,l));if(h===0)return ja.every(Math.max(Of(c,f,l),1));const[y,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return y.every(v)}return[u,s]}const[xM,wM]=mw(kt,oh,_o,yw,ih,rh),[OM,_M]=mw($t,ah,Oo,qi,nh,th);function cl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ll(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Cn(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function SM(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=$n(i),f=kn(i),l=$n(a),d=kn(a),h=$n(o),y=kn(o),v=$n(u),p=kn(u),g=$n(s),x=kn(s),w={a:R,A:B,b:F,B:H,c:null,d:eg,e:eg,f:KM,g:nC,G:aC,H:UM,I:HM,j:GM,L:gw,m:YM,M:VM,p:Y,q:z,Q:ng,s:ig,S:XM,u:ZM,U:QM,V:JM,w:eC,W:tC,x:null,X:null,y:rC,Y:iC,Z:oC,"%":rg},O={a:X,A:he,b:be,B:Ge,c:null,d:tg,e:tg,f:lC,g:xC,G:OC,H:uC,I:sC,j:cC,L:xw,m:fC,M:dC,p:Jt,q:Fe,Q:ng,s:ig,S:hC,u:pC,U:vC,V:yC,w:mC,W:gC,x:null,X:null,y:bC,Y:wC,Z:_C,"%":rg},m={a:C,A:j,b:E,B:M,c:k,d:Qm,e:Qm,f:BM,g:Zm,G:Xm,H:Jm,I:Jm,j:DM,L:LM,m:NM,M:RM,p:T,q:IM,Q:WM,s:zM,S:qM,u:EM,U:MM,V:CM,w:TM,W:$M,x:$,X:N,y:Zm,Y:Xm,Z:kM,"%":FM};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(W,Q){return function(ee){var q=[],me=-1,re=0,_e=W.length,Se,We,Lt;for(ee instanceof Date||(ee=new Date(+ee));++me<_e;)W.charCodeAt(me)===37&&(q.push(W.slice(re,me)),(We=Vm[Se=W.charAt(++me)])!=null?Se=W.charAt(++me):We=Se==="e"?" ":"0",(Lt=Q[Se])&&(Se=Lt(ee,We)),q.push(Se),re=me+1);return q.push(W.slice(re,me)),q.join("")}}function _(W,Q){return function(ee){var q=Cn(1900,void 0,1),me=A(q,W,ee+="",0),re,_e;if(me!=ee.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(Q&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(re=ll(Cn(q.y,0,1)),_e=re.getUTCDay(),re=_e>4||_e===0?Ea.ceil(re):Ea(re),re=wo.offset(re,(q.V-1)*7),q.y=re.getUTCFullYear(),q.m=re.getUTCMonth(),q.d=re.getUTCDate()+(q.w+6)%7):(re=cl(Cn(q.y,0,1)),_e=re.getDay(),re=_e>4||_e===0?Ta.ceil(re):Ta(re),re=qi.offset(re,(q.V-1)*7),q.y=re.getFullYear(),q.m=re.getMonth(),q.d=re.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),_e="Z"in q?ll(Cn(q.y,0,1)).getUTCDay():cl(Cn(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(_e+5)%7:q.w+q.U*7-(_e+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,ll(q)):cl(q)}}function A(W,Q,ee,q){for(var me=0,re=Q.length,_e=ee.length,Se,We;me<re;){if(q>=_e)return-1;if(Se=Q.charCodeAt(me++),Se===37){if(Se=Q.charAt(me++),We=m[Se in Vm?Q.charAt(me++):Se],!We||(q=We(W,ee,q))<0)return-1}else if(Se!=ee.charCodeAt(q++))return-1}return q}function T(W,Q,ee){var q=c.exec(Q.slice(ee));return q?(W.p=f.get(q[0].toLowerCase()),ee+q[0].length):-1}function C(W,Q,ee){var q=h.exec(Q.slice(ee));return q?(W.w=y.get(q[0].toLowerCase()),ee+q[0].length):-1}function j(W,Q,ee){var q=l.exec(Q.slice(ee));return q?(W.w=d.get(q[0].toLowerCase()),ee+q[0].length):-1}function E(W,Q,ee){var q=g.exec(Q.slice(ee));return q?(W.m=x.get(q[0].toLowerCase()),ee+q[0].length):-1}function M(W,Q,ee){var q=v.exec(Q.slice(ee));return q?(W.m=p.get(q[0].toLowerCase()),ee+q[0].length):-1}function k(W,Q,ee){return A(W,t,Q,ee)}function $(W,Q,ee){return A(W,r,Q,ee)}function N(W,Q,ee){return A(W,n,Q,ee)}function R(W){return o[W.getDay()]}function B(W){return a[W.getDay()]}function F(W){return s[W.getMonth()]}function H(W){return u[W.getMonth()]}function Y(W){return i[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function X(W){return o[W.getUTCDay()]}function he(W){return a[W.getUTCDay()]}function be(W){return s[W.getUTCMonth()]}function Ge(W){return u[W.getUTCMonth()]}function Jt(W){return i[+(W.getUTCHours()>=12)]}function Fe(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Q=b(W+="",w);return Q.toString=function(){return W},Q},parse:function(W){var Q=_(W+="",!1);return Q.toString=function(){return W},Q},utcFormat:function(W){var Q=b(W+="",O);return Q.toString=function(){return W},Q},utcParse:function(W){var Q=_(W+="",!0);return Q.toString=function(){return W},Q}}}var Vm={"-":"",_:" ",0:"0"},$e=/^\s*\d+/,AM=/^%/,PM=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function jM(e){return e.replace(PM,"\\$&")}function $n(e){return new RegExp("^(?:"+e.map(jM).join("|")+")","i")}function kn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function TM(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function EM(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function MM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function CM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function $M(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Xm(e,t,r){var n=$e.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Zm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function kM(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function IM(e,t,r){var n=$e.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function NM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Qm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function DM(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function Jm(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function RM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function qM(e,t,r){var n=$e.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function LM(e,t,r){var n=$e.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function BM(e,t,r){var n=$e.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function FM(e,t,r){var n=AM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function WM(e,t,r){var n=$e.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function zM(e,t,r){var n=$e.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function eg(e,t){return ne(e.getDate(),t,2)}function UM(e,t){return ne(e.getHours(),t,2)}function HM(e,t){return ne(e.getHours()%12||12,t,2)}function GM(e,t){return ne(1+qi.count($t(e),e),t,3)}function gw(e,t){return ne(e.getMilliseconds(),t,3)}function KM(e,t){return gw(e,t)+"000"}function YM(e,t){return ne(e.getMonth()+1,t,2)}function VM(e,t){return ne(e.getMinutes(),t,2)}function XM(e,t){return ne(e.getSeconds(),t,2)}function ZM(e){var t=e.getDay();return t===0?7:t}function QM(e,t){return ne(Oo.count($t(e)-1,e),t,2)}function bw(e){var t=e.getDay();return t>=4||t===0?Vr(e):Vr.ceil(e)}function JM(e,t){return e=bw(e),ne(Vr.count($t(e),e)+($t(e).getDay()===4),t,2)}function eC(e){return e.getDay()}function tC(e,t){return ne(Ta.count($t(e)-1,e),t,2)}function rC(e,t){return ne(e.getFullYear()%100,t,2)}function nC(e,t){return e=bw(e),ne(e.getFullYear()%100,t,2)}function iC(e,t){return ne(e.getFullYear()%1e4,t,4)}function aC(e,t){var r=e.getDay();return e=r>=4||r===0?Vr(e):Vr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function oC(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function tg(e,t){return ne(e.getUTCDate(),t,2)}function uC(e,t){return ne(e.getUTCHours(),t,2)}function sC(e,t){return ne(e.getUTCHours()%12||12,t,2)}function cC(e,t){return ne(1+wo.count(kt(e),e),t,3)}function xw(e,t){return ne(e.getUTCMilliseconds(),t,3)}function lC(e,t){return xw(e,t)+"000"}function fC(e,t){return ne(e.getUTCMonth()+1,t,2)}function dC(e,t){return ne(e.getUTCMinutes(),t,2)}function hC(e,t){return ne(e.getUTCSeconds(),t,2)}function pC(e){var t=e.getUTCDay();return t===0?7:t}function vC(e,t){return ne(_o.count(kt(e)-1,e),t,2)}function ww(e){var t=e.getUTCDay();return t>=4||t===0?Xr(e):Xr.ceil(e)}function yC(e,t){return e=ww(e),ne(Xr.count(kt(e),e)+(kt(e).getUTCDay()===4),t,2)}function mC(e){return e.getUTCDay()}function gC(e,t){return ne(Ea.count(kt(e)-1,e),t,2)}function bC(e,t){return ne(e.getUTCFullYear()%100,t,2)}function xC(e,t){return e=ww(e),ne(e.getUTCFullYear()%100,t,2)}function wC(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function OC(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Xr(e):Xr.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function _C(){return"+0000"}function rg(){return"%"}function ng(e){return+e}function ig(e){return Math.floor(+e/1e3)}var Mr,Ow,_w;SC({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 SC(e){return Mr=SM(e),Ow=Mr.format,Mr.parse,_w=Mr.utcFormat,Mr.utcParse,Mr}function AC(e){return new Date(e)}function PC(e){return e instanceof Date?+e:+new Date(+e)}function uh(e,t,r,n,i,a,o,u,s,c){var f=Kd(),l=f.invert,d=f.domain,h=c(".%L"),y=c(":%S"),v=c("%I:%M"),p=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?h:u(b)<b?y:o(b)<b?v:a(b)<b?p:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?d(Array.from(b,PC)):d().map(AC)},f.ticks=function(b){var _=d();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=d();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?d(cw(_,b)):f},f.copy=function(){return Ri(f,uh(e,t,r,n,i,a,o,u,s,c))},f}function jC(){return it.apply(uh(OM,_M,$t,ah,Oo,qi,nh,th,fr,Ow).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function TC(){return it.apply(uh(xM,wM,kt,oh,_o,wo,ih,rh,fr,_w).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function So(){var e=0,t=1,r,n,i,a,o=Be,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var h,y;return arguments.length?([h,y]=d,o=l(h,y),c):[o(0),o(1)]}}return c.range=f(wn),c.rangeRound=f(Gd),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Zt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Sw(){var e=Xt(So()(Be));return e.copy=function(){return Zt(e,Sw())},Rt.apply(e,arguments)}function Aw(){var e=Xd(So()).domain([1,10]);return e.copy=function(){return Zt(e,Aw()).base(e.base())},Rt.apply(e,arguments)}function Pw(){var e=Zd(So());return e.copy=function(){return Zt(e,Pw()).constant(e.constant())},Rt.apply(e,arguments)}function sh(){var e=Qd(So());return e.copy=function(){return Zt(e,sh()).exponent(e.exponent())},Rt.apply(e,arguments)}function EC(){return sh.apply(null,arguments).exponent(.5)}function jw(){var e=[],t=Be;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ni(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Yt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>vE(e,a/n))},r.copy=function(){return jw(t).domain(e)},Rt.apply(r,arguments)}function Ao(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Be,f,l=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(c=v,h):c};function y(v){return function(p){var g,x,w;return arguments.length?([g,x,w]=p,c=FE(v,[g,x,w]),h):[c(0),c(.5),c(1)]}}return h.range=y(wn),h.rangeRound=y(Gd),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function Tw(){var e=Xt(Ao()(Be));return e.copy=function(){return Zt(e,Tw())},Rt.apply(e,arguments)}function Ew(){var e=Xd(Ao()).domain([.1,1,10]);return e.copy=function(){return Zt(e,Ew()).base(e.base())},Rt.apply(e,arguments)}function Mw(){var e=Zd(Ao());return e.copy=function(){return Zt(e,Mw()).constant(e.constant())},Rt.apply(e,arguments)}function ch(){var e=Qd(Ao());return e.copy=function(){return Zt(e,ch()).exponent(e.exponent())},Rt.apply(e,arguments)}function MC(){return ch.apply(null,arguments).exponent(.5)}const ag=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ri,scaleDiverging:Tw,scaleDivergingLog:Ew,scaleDivergingPow:ch,scaleDivergingSqrt:MC,scaleDivergingSymlog:Mw,scaleIdentity:sw,scaleImplicit:_f,scaleLinear:Pa,scaleLog:lw,scaleOrdinal:zd,scalePoint:zn,scalePow:Jd,scaleQuantile:hw,scaleQuantize:pw,scaleRadial:dw,scaleSequential:Sw,scaleSequentialLog:Aw,scaleSequentialPow:sh,scaleSequentialQuantile:jw,scaleSequentialSqrt:EC,scaleSequentialSymlog:Pw,scaleSqrt:lM,scaleSymlog:fw,scaleThreshold:vw,scaleTime:jC,scaleUtc:TC,tickFormat:uw},Symbol.toStringTag,{value:"Module"}));var fl,og;function Po(){if(og)return fl;og=1;var e=yn();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return fl=t,fl}var dl,ug;function Cw(){if(ug)return dl;ug=1;function e(t,r){return t>r}return dl=e,dl}var hl,sg;function CC(){if(sg)return hl;sg=1;var e=Po(),t=Cw(),r=xn();function n(i){return i&&i.length?e(i,r,t):void 0}return hl=n,hl}var $C=CC();const Gt=se($C);var pl,cg;function $w(){if(cg)return pl;cg=1;function e(t,r){return t<r}return pl=e,pl}var vl,lg;function kC(){if(lg)return vl;lg=1;var e=Po(),t=$w(),r=xn();function n(i){return i&&i.length?e(i,r,t):void 0}return vl=n,vl}var IC=kC();const jo=se(IC);var yl,fg;function NC(){if(fg)return yl;fg=1;var e=Ad(),t=Ot(),r=Lx(),n=He();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return yl=i,yl}var ml,dg;function DC(){if(dg)return ml;dg=1;var e=Rx(),t=NC();function r(n,i){return e(t(n,i),1)}return ml=r,ml}var RC=DC();const qC=se(RC);var gl,hg;function LC(){if(hg)return gl;hg=1;var e=qd();function t(r,n){return e(r,n)}return gl=t,gl}var BC=LC();const Zr=se(BC);var On=1e9,FC={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},fh,ye=!0,nt="[DecimalError] ",vr=nt+"Invalid argument: ",lh=nt+"Exponent out of range: ",_n=Math.floor,ur=Math.pow,WC=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ve,Me=1e7,ve=7,kw=9007199254740991,Ma=_n(kw/ve),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return Et(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return ce(Et(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return we(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ve))throw Error(nt+"NaN");if(r.s<1)throw Error(nt+(r.s?"NaN":"-Infinity"));return r.eq(Ve)?new n(0):(ye=!1,t=Et(ui(r,a),ui(e,a),a),ye=!0,ce(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Dw(t,e):Iw(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(nt+"NaN");return r.s?(ye=!1,t=Et(r,e,0,1).times(e),ye=!0,r.minus(t)):ce(new n(r),i)};U.naturalExponential=U.exp=function(){return Nw(this)};U.naturalLogarithm=U.ln=function(){return ui(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Iw(t,e):Dw(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(vr+e);if(t=we(i)+1,n=i.d.length-1,r=n*ve+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};U.squareRoot=U.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(nt+"NaN")}for(e=we(u),ye=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ht(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=_n((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Et(u,a,o+2)).times(.5),ht(a.d).slice(0,o)===(t=ht(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ce(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ye=!0,ce(n,r)};U.times=U.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=h.length,s<c&&(a=d,d=h,h=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+h[n]*d[i-n-1]+t,a[i--]=u%Me|0,t=u/Me|0;a[i]=(a[i]+t)%Me|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ye?ce(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(bt(e,0,On),t===void 0?t=n.rounding:bt(t,0,8),ce(r,e+we(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=br(n,!0):(bt(e,0,On),t===void 0?t=i.rounding:bt(t,0,8),n=ce(new i(n),e+1,t),r=br(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?br(i):(bt(e,0,On),t===void 0?t=a.rounding:bt(t,0,8),n=ce(new a(i),e+we(i)+1,t),r=br(n.abs(),!1,e+we(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return ce(new t(e),we(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Ve);if(u=new s(u),!u.s){if(e.s<1)throw Error(nt+"Infinity");return u}if(u.eq(Ve))return u;if(n=s.precision,e.eq(Ve))return ce(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=kw){for(i=new s(Ve),t=Math.ceil(n/ve+4),ye=!1;r%2&&(i=i.times(u),vg(i.d,t)),r=_n(r/2),r!==0;)u=u.times(u),vg(u.d,t);return ye=!0,e.s<0?new s(Ve).div(i):ce(i,n)}}else if(a<0)throw Error(nt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ye=!1,i=e.times(ui(u,n+c)),ye=!0,i=Nw(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=we(i),n=br(i,r<=a.toExpNeg||r>=a.toExpPos)):(bt(e,1,On),t===void 0?t=a.rounding:bt(t,0,8),i=ce(new a(i),e,t),r=we(i),n=br(i,e<=r||r<=a.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(bt(e,1,On),t===void 0?t=n.rounding:bt(t,0,8)),ce(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=we(e),r=e.constructor;return br(e,t<=r.toExpNeg||t>=r.toExpPos)};function Iw(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ye?ce(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/ve),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Me|0,s[a]%=Me;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,ye?ce(t,l):t}function bt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(vr+e)}function ht(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ve-n.length,r&&(a+=zt(r)),a+=n;o=e[t],n=o+"",r=ve-n.length,r&&(a+=zt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Et=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Me|0,o=a/Me|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Me+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,h,y,v,p,g,x,w,O,m,b,_,A,T=n.constructor,C=n.s==i.s?1:-1,j=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(nt+"Division by zero");for(s=n.e-i.e,_=E.length,m=j.length,h=new T(C),y=h.d=[],c=0;E[c]==(j[c]||0);)++c;if(E[c]>(j[c]||0)&&--s,a==null?x=a=T.precision:o?x=a+(we(n)-we(i))+1:x=a,x<0)return new T(0);if(x=x/ve+2|0,c=0,_==1)for(f=0,E=E[0],x++;(c<m||f)&&x--;c++)w=f*Me+(j[c]||0),y[c]=w/E|0,f=w%E|0;else{for(f=Me/(E[0]+1)|0,f>1&&(E=e(E,f),j=e(j,f),_=E.length,m=j.length),O=_,v=j.slice(0,_),p=v.length;p<_;)v[p++]=0;A=E.slice(),A.unshift(0),b=E[0],E[1]>=Me/2&&++b;do f=0,u=t(E,v,_,p),u<0?(g=v[0],_!=p&&(g=g*Me+(v[1]||0)),f=g/b|0,f>1?(f>=Me&&(f=Me-1),l=e(E,f),d=l.length,p=v.length,u=t(l,v,d,p),u==1&&(f--,r(l,_<d?A:E,d))):(f==0&&(u=f=1),l=E.slice()),d=l.length,d<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(E,v,_,p),u<1&&(f++,r(v,_<p?A:E,p))),p=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[p++]=j[O]||0:(v=[j[O]],p=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),h.e=s,ce(h,o?a+we(h)+1:a)}})();function Nw(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(we(e)>16)throw Error(lh+we(e));if(!e.s)return new f(Ve);for(ye=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(ur(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ve),f.precision=u;;){if(i=ce(i.times(e),u),r=r.times(++s),o=a.plus(Et(i,r,u)),ht(o.d).slice(0,u)===ht(a.d).slice(0,u)){for(;c--;)a=ce(a.times(a),u);return f.precision=l,t==null?(ye=!0,ce(a,l)):a}a=o}}function we(e){for(var t=e.e*ve,r=e.d[0];r>=10;r/=10)t++;return t}function bl(e,t,r){if(t>e.LN10.sd())throw ye=!0,r&&(e.precision=r),Error(nt+"LN10 precision limit exceeded");return ce(new e(e.LN10),t)}function zt(e){for(var t="";e--;)t+="0";return t}function ui(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,h=e,y=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(nt+(h.s?"NaN":"-Infinity"));if(h.eq(Ve))return new v(0);if(t==null?(ye=!1,c=p):c=t,h.eq(10))return t==null&&(ye=!0),bl(v,c);if(c+=d,v.precision=c,r=ht(y),n=r.charAt(0),a=we(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ht(h.d),n=r.charAt(0),l++;a=we(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return s=bl(v,c+2,p).times(a+""),h=ui(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=p,t==null?(ye=!0,ce(h,p)):h;for(u=o=h=Et(h.minus(Ve),h.plus(Ve),c),f=ce(h.times(h),c),i=3;;){if(o=ce(o.times(f),c),s=u.plus(Et(o,new v(i),c)),ht(s.d).slice(0,c)===ht(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(bl(v,c+2,p).times(a+""))),u=Et(u,new v(l),c),v.precision=p,t==null?(ye=!0,ce(u,p)):u;u=s,i+=2}}function pg(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=_n(r/ve),e.d=[],n=(r+1)%ve,r<0&&(n+=ve),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ve;n<i;)e.d.push(+t.slice(n,n+=ve));t=t.slice(n),n=ve-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ye&&(e.e>Ma||e.e<-Ma))throw Error(lh+r)}else e.s=0,e.e=0,e.d=[0];return e}function ce(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ve,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ve),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ve,i=n-ve+o}if(r!==void 0&&(a=ur(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/ur(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=we(e),l.length=1,t=t-a-1,l[0]=ur(10,(ve-t%ve)%ve),e.e=_n(-t/ve)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=ur(10,ve-n),l[f]=i>0?(c/ur(10,o-i)%ur(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Me&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Me)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ye&&(e.e>Ma||e.e<-Ma))throw Error(lh+we(e));return e}function Dw(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ye?ce(t,h):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(h/ve),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Me-1;--s[a],s[i]+=Me}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,ye?ce(t,h):t):new d(0)}function br(e,t,r){var n,i=we(e),a=ht(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+zt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+zt(-i-1)+a,r&&(n=r-o)>0&&(a+=zt(n))):i>=o?(a+=zt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+zt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=zt(n))),e.s<0?"-"+a:a}function vg(e,t){if(e.length>t)return e.length=t,!0}function Rw(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(vr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return pg(o,a.toString())}else if(typeof a!="string")throw Error(vr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,WC.test(a))pg(o,a);else throw Error(vr+a)}if(i.prototype=U,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Rw,i.config=i.set=zC,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function zC(e){if(!e||typeof e!="object")throw Error(nt+"Object expected");var t,r,n,i=["precision",1,On,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(_n(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(vr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(vr+r+": "+n);return this}var fh=Rw(FC);Ve=new fh(1);const ue=fh;function UC(e){return YC(e)||KC(e)||GC(e)||HC()}function HC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
14
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
15
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
16
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
17
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function D$(e,t){if(e){if(typeof e=="string")return kf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return kf(e,t)}}function R$(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q$(e){if(Array.isArray(e))return kf(e)}function kf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xg(Object(r),!0).forEach(function(n){Fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fr(e,t,r){return t=L$(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function L$(e){var t=B$(e,"string");return li(t)=="symbol"?t:t+""}function B$(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function je(e,t,r){return Z(e)||Z(t)?r:Te(t)?Xe(e,t,r):V(t)?t(e):r}function Un(e,t,r,n){var i=qC(e,function(u){return je(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[jo(a),Gt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return Te(u)||u instanceof Date?u:""})}var F$=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(qe(l-f)!==qe(d-l)){var y=[];if(qe(d-l)===qe(s[1]-s[0])){h=d;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var p=d+s[1]-s[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var g=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},dh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},W$=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,h=l.length;d<h;d++){var y=f[l[d]],v=y.items,p=y.cateAxisId,g=v.filter(function(_){return Tt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ge(ge({},x),g[0].props):g[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var b=Z(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Z(b)?void 0:Le(b,n,0)})}}return o},z$=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Le(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&h>0&&(d=!0,h*=.9,y=s*h);var v=(i-y)/2>>0,p={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:p.offset+p.size+c,size:d?h:m.barSize}},_=[].concat(bg(O),[b]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:p})}),_},l)}else{var g=Le(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(bg(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},U$=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Yw({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,h=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&L(t[h]))return ge(ge({},t),{},Fr({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&L(t[y]))return ge(ge({},t),{},Fr({},y,t[y]+(d||0)))}return t},H$=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Vw=function(t,r,n,i,a){var o=r.props.children,u=rt(o,Mo).filter(function(c){return H$(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=je(f,n);if(Z(l))return c;var d=Array.isArray(l)?[jo(l),Gt(l)]:[l,l],h=s.reduce(function(y,v){var p=je(f,v,0),g=d[0]-Math.abs(Array.isArray(p)?p[0]:p),x=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},G$=function(t,r,n,i,a){var o=r.map(function(u){return Vw(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},Xw=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Vw(t,s,c,i)||Un(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},Zw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Qw=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},jt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?qe(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!gn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},xl=new WeakMap,Xi=function(t,r){if(typeof r!="function")return t;xl.has(t)||xl.set(t,new WeakMap);var n=xl.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Jw=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:ri(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Pa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:zn(),realScaleType:"point"}:a==="category"?{scale:ri(),realScaleType:"band"}:{scale:Pa(),realScaleType:"linear"};if(yr(i)){var s="scale".concat(fo(i));return{scale:(ag[s]||zn)(),realScaleType:ag[s]?s:"point"}}return V(i)?{scale:i}:{scale:zn(),realScaleType:"point"}},wg=1e-4,eO=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-wg,o=Math.max(i[0],i[1])+wg,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},K$=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},Y$=function(t,r){if(!r||r.length!==2||!L(r[0])||!L(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!L(t[0])||t[0]<n)&&(a[0]=n),(!L(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},V$=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=gn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},X$=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=gn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},Z$={sign:V$,expand:qA,none:zr,silhouette:LA,wiggle:BA,positive:X$},Q$=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=Z$[n],o=RA().keys(i).value(function(u,s){return+je(u,s,0)}).order(cf).offset(a);return o(t)},J$=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var h,y=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ge(ge({},d.type.defaultProps),d.props):d.props,v=y.stackId,p=y.hide;if(p)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Te(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[bn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ge(ge({},l),{},Fr({},g,x))},s),f={};return Object.keys(c).reduce(function(l,d){var h=c[d];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var g=h.stackGroups[p];return ge(ge({},v),{},Fr({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:Q$(t,g.items,a)}))},y)}return ge(ge({},l),{},Fr({},d,h))},f)},tO=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=h$(c,a,u);return t.domain([jo(f),Gt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=p$(l,a,u);return{niceTicks:d}}return null};function Og(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=sa(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=je(i,Z(o)?t.dataKey:o);return Z(s)?null:t.scale(s)}var _g=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=je(o,r.dataKey,r.domain[u]);return Z(s)?null:r.scale(s)-a/2+i},ek=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},tk=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Te(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},rk=function(t){return t.reduce(function(r,n){return[jo(n.concat([r[0]]).filter(L)),Gt(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},rO=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=rk(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Sg=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ag=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,If=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(L(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Sg.test(t[0])){var a=+Sg.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(L(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Ag.test(t[1])){var o=+Ag.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ka=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Bd(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},Pg=function(t,r,n){return!t||!t.length||Zr(t,Xe(n,"type.defaultProps.domain"))?r:t},nO=function(t,r){var n=t.type.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ge(ge({},G(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:dh(t),value:je(r,i),type:s,payload:r,chartType:c,hide:f})};function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function jg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jg(Object(r),!0).forEach(function(n){iO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iO(e,t,r){return t=nk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nk(e){var t=ik(e,"string");return fi(t)=="symbol"?t:t+""}function ik(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ak(e,t){return ck(e)||sk(e,t)||uk(e,t)||ok()}function ok(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
19
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
10
|
+
height and width.`,C,N,o,s,f,l,r);var R=!Array.isArray(h)&&Tt(h.type).endsWith("Chart");return P.Children.map(h,function(B){return P.isValidElement(B)?D.cloneElement(B,Hi({width:C,height:N},R?{style:Hi({height:"100%",width:"100%",maxHeight:N,maxWidth:C},B.props.style)}:{})):B})},[r,h,s,d,l,f,T,o]);return P.createElement("div",{id:p?"".concat(p):void 0,className:J("recharts-responsive-container",g),style:Hi(Hi({},O),{},{width:o,height:s,minWidth:f,minHeight:l,maxHeight:d}),ref:m},E)}),bo=function(t){return null};bo.displayName="Cell";function ei(e){"@babel/helpers - typeof";return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ei(e)}function fm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function bf(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?fm(Object(r),!0).forEach(function(n){PT(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fm(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function PT(e,t,r){return t=jT(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jT(e){var t=TT(e,"string");return ei(t)=="symbol"?t:t+""}function TT(e,t){if(ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Er={widthCache:{},cacheCount:0},ET=2e3,MT={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},dm="recharts_measurement_span";function $T(e){var t=bf({},e);return Object.keys(t).forEach(function(r){t[r]||delete t[r]}),t}var Wn=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||_r.isSsr)return{width:0,height:0};var n=$T(r),i=JSON.stringify({text:t,copyStyle:n});if(Er.widthCache[i])return Er.widthCache[i];try{var a=document.getElementById(dm);a||(a=document.createElement("span"),a.setAttribute("id",dm),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=bf(bf({},MT),n);Object.assign(a.style,o),a.textContent="".concat(t);var u=a.getBoundingClientRect(),s={width:u.width,height:u.height};return Er.widthCache[i]=s,++Er.cacheCount>ET&&(Er.cacheCount=0,Er.widthCache={}),s}catch{return{width:0,height:0}}},CT=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function ti(e){"@babel/helpers - typeof";return ti=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ti(e)}function ba(e,t){return DT(e)||NT(e,t)||IT(e,t)||kT()}function kT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function IT(e,t){if(e){if(typeof e=="string")return hm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return hm(e,t)}}function hm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function NT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function DT(e){if(Array.isArray(e))return e}function RT(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pm(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,LT(n.key),n)}}function qT(e,t,r){return t&&pm(e.prototype,t),r&&pm(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function LT(e){var t=BT(e,"string");return ti(t)=="symbol"?t:t+""}function BT(e,t){if(ti(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ti(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vm=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,ym=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,FT=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,WT=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Kx={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},zT=Object.keys(Kx),kr="NaN";function UT(e,t){return e*Kx[t]}var Gi=(function(){function e(t,r){RT(this,e),this.num=t,this.unit=r,this.num=t,this.unit=r,Number.isNaN(t)&&(this.unit=""),r!==""&&!FT.test(r)&&(this.num=NaN,this.unit=""),zT.includes(r)&&(this.num=UT(t,r),this.unit="px")}return qT(e,[{key:"add",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num+r.num,this.unit)}},{key:"subtract",value:function(r){return this.unit!==r.unit?new e(NaN,""):new e(this.num-r.num,this.unit)}},{key:"multiply",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num*r.num,this.unit||r.unit)}},{key:"divide",value:function(r){return this.unit!==""&&r.unit!==""&&this.unit!==r.unit?new e(NaN,""):new e(this.num/r.num,this.unit||r.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(r){var n,i=(n=WT.exec(r))!==null&&n!==void 0?n:[],a=ba(i,3),o=a[1],u=a[2];return new e(parseFloat(o),u??"")}}])})();function Yx(e){if(e.includes(kr))return kr;for(var t=e;t.includes("*")||t.includes("/");){var r,n=(r=vm.exec(t))!==null&&r!==void 0?r:[],i=ba(n,4),a=i[1],o=i[2],u=i[3],s=Gi.parse(a??""),c=Gi.parse(u??""),f=o==="*"?s.multiply(c):s.divide(c);if(f.isNaN())return kr;t=t.replace(vm,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var l,d=(l=ym.exec(t))!==null&&l!==void 0?l:[],h=ba(d,4),y=h[1],v=h[2],p=h[3],g=Gi.parse(y??""),x=Gi.parse(p??""),w=v==="+"?g.add(x):g.subtract(x);if(w.isNaN())return kr;t=t.replace(ym,w.toString())}return t}var mm=/\(([^()]*)\)/;function HT(e){for(var t=e;t.includes("(");){var r=mm.exec(t),n=ba(r,2),i=n[1];t=t.replace(mm,Yx(i))}return t}function GT(e){var t=e.replace(/\s+/g,"");return t=HT(t),t=Yx(t),t}function KT(e){try{return GT(e)}catch{return kr}}function nl(e){var t=KT(e.slice(5,-1));return t===kr?"":t}var YT=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],VT=["dx","dy","angle","className","breakAll"];function xf(){return xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xf.apply(this,arguments)}function gm(e,t){if(e==null)return{};var r=XT(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function XT(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function bm(e,t){return eE(e)||JT(e,t)||QT(e,t)||ZT()}function ZT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
12
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function QT(e,t){if(e){if(typeof e=="string")return xm(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xm(e,t)}}function xm(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function JT(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t===0){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function eE(e){if(Array.isArray(e))return e}var Vx=/[ \f\n\r\t\v\u2028\u2029]+/,Xx=function(t){var r=t.children,n=t.breakAll,i=t.style;try{var a=[];Z(r)||(n?a=r.toString().split(""):a=r.toString().split(Vx));var o=a.map(function(s){return{word:s,width:Wn(s,i).width}}),u=n?0:Wn(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}},tE=function(t,r,n,i,a){var o=t.maxLines,u=t.children,s=t.style,c=t.breakAll,f=L(o),l=u,d=function(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return C.reduce(function(N,R){var B=R.word,F=R.width,H=N[N.length-1];if(H&&(i==null||a||H.width+F+n<Number(i)))H.words.push(B),H.width+=F+n;else{var Y={words:[B],width:F};N.push(Y)}return N},[])},h=d(r),y=function(C){return C.reduce(function(N,R){return N.width>R.width?N:R})};if(!f)return h;for(var v="…",p=function(C){var N=l.slice(0,C),R=Xx({breakAll:c,style:s,children:N+v}).wordsWithComputedWidth,B=d(R),F=B.length>o||y(B).width>Number(i);return[F,B]},g=0,x=l.length-1,w=0,O;g<=x&&w<=l.length-1;){var m=Math.floor((g+x)/2),b=m-1,_=p(b),A=bm(_,2),T=A[0],$=A[1],j=p(m),E=bm(j,1),M=E[0];if(!T&&!M&&(g=m+1),T&&M&&(x=m-1),!T&&M){O=$;break}w++}return O||h},wm=function(t){var r=Z(t)?[]:t.toString().split(Vx);return[{words:r}]},rE=function(t){var r=t.width,n=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,u=t.maxLines;if((r||n)&&!_r.isSsr){var s,c,f=Xx({breakAll:o,children:i,style:a});if(f){var l=f.wordsWithComputedWidth,d=f.spaceWidth;s=l,c=d}else return wm(i);return tE({breakAll:o,children:i,maxLines:u,style:a},s,c,r,n)}return wm(i)},Om="#808080",gr=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.lineHeight,u=o===void 0?"1em":o,s=t.capHeight,c=s===void 0?"0.71em":s,f=t.scaleToFit,l=f===void 0?!1:f,d=t.textAnchor,h=d===void 0?"start":d,y=t.verticalAnchor,v=y===void 0?"end":y,p=t.fill,g=p===void 0?Om:p,x=gm(t,YT),w=D.useMemo(function(){return rE({breakAll:x.breakAll,children:x.children,maxLines:x.maxLines,scaleToFit:l,style:x.style,width:x.width})},[x.breakAll,x.children,x.maxLines,l,x.style,x.width]),O=x.dx,m=x.dy,b=x.angle,_=x.className,A=x.breakAll,T=gm(x,VT);if(!Te(n)||!Te(a))return null;var $=n+(L(O)?O:0),j=a+(L(m)?m:0),E;switch(v){case"start":E=nl("calc(".concat(c,")"));break;case"middle":E=nl("calc(".concat((w.length-1)/2," * -").concat(u," + (").concat(c," / 2))"));break;default:E=nl("calc(".concat(w.length-1," * -").concat(u,")"));break}var M=[];if(l){var k=w[0].width,C=x.width;M.push("scale(".concat((L(C)?C/k:1)/k,")"))}return b&&M.push("rotate(".concat(b,", ").concat($,", ").concat(j,")")),M.length&&(T.transform=M.join(" ")),P.createElement("text",xf({},G(T,!0),{x:$,y:j,className:J("recharts-text",_),textAnchor:h,fill:g.includes("url")?Om:g}),w.map(function(N,R){var B=N.words.join(A?"":" ");return P.createElement("tspan",{x:$,dy:R===0?E:u,key:"".concat(B,"-").concat(R)},B)}))};function Yt(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nE(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function zd(e){let t,r,n;e.length!==2?(t=Yt,r=(u,s)=>Yt(e(u),s),n=(u,s)=>e(u)-s):(t=e===Yt||e===nE?e:iE,r=e,n=e);function i(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<0?c=l+1:f=l}while(c<f)}return c}function a(u,s,c=0,f=u.length){if(c<f){if(t(s,s)!==0)return f;do{const l=c+f>>>1;r(u[l],s)<=0?c=l+1:f=l}while(c<f)}return c}function o(u,s,c=0,f=u.length){const l=i(u,s,c,f-1);return l>c&&n(u[l-1],s)>-n(u[l],s)?l-1:l}return{left:i,center:o,right:a}}function iE(){return 0}function Zx(e){return e===null?NaN:+e}function*aE(e,t){for(let r of e)r!=null&&(r=+r)>=r&&(yield r)}const oE=zd(Yt),Ni=oE.right;zd(Zx).center;class _m extends Map{constructor(t,r=cE){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Sm(this,t))}has(t){return super.has(Sm(this,t))}set(t,r){return super.set(uE(this,t),r)}delete(t){return super.delete(sE(this,t))}}function Sm({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):r}function uE({_intern:e,_key:t},r){const n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}function sE({_intern:e,_key:t},r){const n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}function cE(e){return e!==null&&typeof e=="object"?e.valueOf():e}function lE(e=Yt){if(e===Yt)return Qx;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,r)=>{const n=e(t,r);return n||n===0?n:(e(r,r)===0)-(e(t,t)===0)}}function Qx(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const fE=Math.sqrt(50),dE=Math.sqrt(10),hE=Math.sqrt(2);function xa(e,t,r){const n=(t-e)/Math.max(0,r),i=Math.floor(Math.log10(n)),a=n/Math.pow(10,i),o=a>=fE?10:a>=dE?5:a>=hE?2:1;let u,s,c;return i<0?(c=Math.pow(10,-i)/o,u=Math.round(e*c),s=Math.round(t*c),u/c<e&&++u,s/c>t&&--s,c=-c):(c=Math.pow(10,i)*o,u=Math.round(e/c),s=Math.round(t/c),u*c<e&&++u,s*c>t&&--s),s<u&&.5<=r&&r<2?xa(e,t,r*2):[u,s,c]}function wf(e,t,r){if(t=+t,e=+e,r=+r,!(r>0))return[];if(e===t)return[e];const n=t<e,[i,a,o]=n?xa(t,e,r):xa(e,t,r);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(n)if(o<0)for(let c=0;c<u;++c)s[c]=(a-c)/-o;else for(let c=0;c<u;++c)s[c]=(a-c)*o;else if(o<0)for(let c=0;c<u;++c)s[c]=(i+c)/-o;else for(let c=0;c<u;++c)s[c]=(i+c)*o;return s}function Of(e,t,r){return t=+t,e=+e,r=+r,xa(e,t,r)[2]}function _f(e,t,r){t=+t,e=+e,r=+r;const n=t<e,i=n?Of(t,e,r):Of(e,t,r);return(n?-1:1)*(i<0?1/-i:i)}function Am(e,t){let r;for(const n of e)n!=null&&(r<n||r===void 0&&n>=n)&&(r=n);return r}function Pm(e,t){let r;for(const n of e)n!=null&&(r>n||r===void 0&&n>=n)&&(r=n);return r}function Jx(e,t,r=0,n=1/0,i){if(t=Math.floor(t),r=Math.floor(Math.max(0,r)),n=Math.floor(Math.min(e.length-1,n)),!(r<=t&&t<=n))return e;for(i=i===void 0?Qx:lE(i);n>r;){if(n-r>600){const s=n-r+1,c=t-r+1,f=Math.log(s),l=.5*Math.exp(2*f/3),d=.5*Math.sqrt(f*l*(s-l)/s)*(c-s/2<0?-1:1),h=Math.max(r,Math.floor(t-c*l/s+d)),y=Math.min(n,Math.floor(t+(s-c)*l/s+d));Jx(e,t,h,y,i)}const a=e[t];let o=r,u=n;for(Mn(e,r,t),i(e[n],a)>0&&Mn(e,r,n);o<u;){for(Mn(e,o,u),++o,--u;i(e[o],a)<0;)++o;for(;i(e[u],a)>0;)--u}i(e[r],a)===0?Mn(e,r,u):(++u,Mn(e,u,n)),u<=t&&(r=u+1),t<=u&&(n=u-1)}return e}function Mn(e,t,r){const n=e[t];e[t]=e[r],e[r]=n}function pE(e,t,r){if(e=Float64Array.from(aE(e)),!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return Pm(e);if(t>=1)return Am(e);var n,i=(n-1)*t,a=Math.floor(i),o=Am(Jx(e,a).subarray(0,a+1)),u=Pm(e.subarray(a+1));return o+(u-o)*(i-a)}}function vE(e,t,r=Zx){if(!(!(n=e.length)||isNaN(t=+t))){if(t<=0||n<2)return+r(e[0],0,e);if(t>=1)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,a=Math.floor(i),o=+r(e[a],a,e),u=+r(e[a+1],a+1,e);return o+(u-o)*(i-a)}}function yE(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=Math.max(0,Math.ceil((t-e)/r))|0,a=new Array(i);++n<i;)a[n]=e+n*r;return a}function it(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Rt(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Sf=Symbol("implicit");function Ud(){var e=new _m,t=[],r=[],n=Sf;function i(a){let o=e.get(a);if(o===void 0){if(n!==Sf)return n;e.set(a,o=t.push(a)-1)}return r[o%r.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new _m;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(r=Array.from(a),i):r.slice()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return Ud(t,r).unknown(n)},it.apply(i,arguments),i}function ri(){var e=Ud().unknown(void 0),t=e.domain,r=e.range,n=0,i=1,a,o,u=!1,s=0,c=0,f=.5;delete e.unknown;function l(){var d=t().length,h=i<n,y=h?i:n,v=h?n:i;a=(v-y)/Math.max(1,d-s+c*2),u&&(a=Math.floor(a)),y+=(v-y-a*(d-s))*f,o=a*(1-s),u&&(y=Math.round(y),o=Math.round(o));var p=yE(d).map(function(g){return y+a*g});return r(h?p.reverse():p)}return e.domain=function(d){return arguments.length?(t(d),l()):t()},e.range=function(d){return arguments.length?([n,i]=d,n=+n,i=+i,l()):[n,i]},e.rangeRound=function(d){return[n,i]=d,n=+n,i=+i,u=!0,l()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(d){return arguments.length?(u=!!d,l()):u},e.padding=function(d){return arguments.length?(s=Math.min(1,c=+d),l()):s},e.paddingInner=function(d){return arguments.length?(s=Math.min(1,d),l()):s},e.paddingOuter=function(d){return arguments.length?(c=+d,l()):c},e.align=function(d){return arguments.length?(f=Math.max(0,Math.min(1,d)),l()):f},e.copy=function(){return ri(t(),[n,i]).round(u).paddingInner(s).paddingOuter(c).align(f)},it.apply(l(),arguments)}function ew(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ew(t())},e}function zn(){return ew(ri.apply(null,arguments).paddingInner(1))}function Hd(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function tw(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Di(){}var ni=.7,wa=1/ni,Br="\\s*([+-]?\\d+)\\s*",ii="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",yt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mE=/^#([0-9a-f]{3,8})$/,gE=new RegExp(`^rgb\\(${Br},${Br},${Br}\\)$`),bE=new RegExp(`^rgb\\(${yt},${yt},${yt}\\)$`),xE=new RegExp(`^rgba\\(${Br},${Br},${Br},${ii}\\)$`),wE=new RegExp(`^rgba\\(${yt},${yt},${yt},${ii}\\)$`),OE=new RegExp(`^hsl\\(${ii},${yt},${yt}\\)$`),_E=new RegExp(`^hsla\\(${ii},${yt},${yt},${ii}\\)$`),jm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Hd(Di,ai,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tm,formatHex:Tm,formatHex8:SE,formatHsl:AE,formatRgb:Em,toString:Em});function Tm(){return this.rgb().formatHex()}function SE(){return this.rgb().formatHex8()}function AE(){return rw(this).formatHsl()}function Em(){return this.rgb().formatRgb()}function ai(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=mE.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Mm(t):r===3?new Ue(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Ki(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Ki(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gE.exec(e))?new Ue(t[1],t[2],t[3],1):(t=bE.exec(e))?new Ue(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xE.exec(e))?Ki(t[1],t[2],t[3],t[4]):(t=wE.exec(e))?Ki(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=OE.exec(e))?km(t[1],t[2]/100,t[3]/100,1):(t=_E.exec(e))?km(t[1],t[2]/100,t[3]/100,t[4]):jm.hasOwnProperty(e)?Mm(jm[e]):e==="transparent"?new Ue(NaN,NaN,NaN,0):null}function Mm(e){return new Ue(e>>16&255,e>>8&255,e&255,1)}function Ki(e,t,r,n){return n<=0&&(e=t=r=NaN),new Ue(e,t,r,n)}function PE(e){return e instanceof Di||(e=ai(e)),e?(e=e.rgb(),new Ue(e.r,e.g,e.b,e.opacity)):new Ue}function Af(e,t,r,n){return arguments.length===1?PE(e):new Ue(e,t,r,n??1)}function Ue(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}Hd(Ue,Af,tw(Di,{brighter(e){return e=e==null?wa:Math.pow(wa,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ni:Math.pow(ni,e),new Ue(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ue(pr(this.r),pr(this.g),pr(this.b),Oa(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$m,formatHex:$m,formatHex8:jE,formatRgb:Cm,toString:Cm}));function $m(){return`#${lr(this.r)}${lr(this.g)}${lr(this.b)}`}function jE(){return`#${lr(this.r)}${lr(this.g)}${lr(this.b)}${lr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Cm(){const e=Oa(this.opacity);return`${e===1?"rgb(":"rgba("}${pr(this.r)}, ${pr(this.g)}, ${pr(this.b)}${e===1?")":`, ${e})`}`}function Oa(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function pr(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function lr(e){return e=pr(e),(e<16?"0":"")+e.toString(16)}function km(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new st(e,t,r,n)}function rw(e){if(e instanceof st)return new st(e.h,e.s,e.l,e.opacity);if(e instanceof Di||(e=ai(e)),!e)return new st;if(e instanceof st)return e;e=e.rgb();var t=e.r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),a=Math.max(t,r,n),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(r-n)/u+(r<n)*6:r===a?o=(n-t)/u+2:o=(t-r)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new st(o,u,s,e.opacity)}function TE(e,t,r,n){return arguments.length===1?rw(e):new st(e,t,r,n??1)}function st(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}Hd(st,TE,tw(Di,{brighter(e){return e=e==null?wa:Math.pow(wa,e),new st(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ni:Math.pow(ni,e),new st(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new Ue(il(e>=240?e-240:e+120,i,n),il(e,i,n),il(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new st(Im(this.h),Yi(this.s),Yi(this.l),Oa(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Oa(this.opacity);return`${e===1?"hsl(":"hsla("}${Im(this.h)}, ${Yi(this.s)*100}%, ${Yi(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Im(e){return e=(e||0)%360,e<0?e+360:e}function Yi(e){return Math.max(0,Math.min(1,e||0))}function il(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Gd=e=>()=>e;function EE(e,t){return function(r){return e+r*t}}function ME(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(n){return Math.pow(e+n*t,r)}}function $E(e){return(e=+e)==1?nw:function(t,r){return r-t?ME(t,r,e):Gd(isNaN(t)?r:t)}}function nw(e,t){var r=t-e;return r?EE(e,r):Gd(isNaN(e)?t:e)}const Nm=(function e(t){var r=$E(t);function n(i,a){var o=r((i=Af(i)).r,(a=Af(a)).r),u=r(i.g,a.g),s=r(i.b,a.b),c=nw(i.opacity,a.opacity);return function(f){return i.r=o(f),i.g=u(f),i.b=s(f),i.opacity=c(f),i+""}}return n.gamma=e,n})(1);function CE(e,t){t||(t=[]);var r=e?Math.min(t.length,e.length):0,n=t.slice(),i;return function(a){for(i=0;i<r;++i)n[i]=e[i]*(1-a)+t[i]*a;return n}}function kE(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function IE(e,t){var r=t?t.length:0,n=e?Math.min(r,e.length):0,i=new Array(n),a=new Array(r),o;for(o=0;o<n;++o)i[o]=wn(e[o],t[o]);for(;o<r;++o)a[o]=t[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function NE(e,t){var r=new Date;return e=+e,t=+t,function(n){return r.setTime(e*(1-n)+t*n),r}}function _a(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}function DE(e,t){var r={},n={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?r[i]=wn(e[i],t[i]):n[i]=t[i];return function(a){for(i in r)n[i]=r[i](a);return n}}var Pf=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,al=new RegExp(Pf.source,"g");function RE(e){return function(){return e}}function qE(e){return function(t){return e(t)+""}}function LE(e,t){var r=Pf.lastIndex=al.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(n=Pf.exec(e))&&(i=al.exec(t));)(a=i.index)>r&&(a=t.slice(r,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:_a(n,i)})),r=al.lastIndex;return r<t.length&&(a=t.slice(r),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?qE(s[0].x):RE(t):(t=s.length,function(c){for(var f=0,l;f<t;++f)u[(l=s[f]).i]=l.x(c);return u.join("")})}function wn(e,t){var r=typeof t,n;return t==null||r==="boolean"?Gd(t):(r==="number"?_a:r==="string"?(n=ai(t))?(t=n,Nm):LE:t instanceof ai?Nm:t instanceof Date?NE:kE(t)?CE:Array.isArray(t)?IE:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?DE:_a)(e,t)}function Kd(e,t){return e=+e,t=+t,function(r){return Math.round(e*(1-r)+t*r)}}function BE(e,t){t===void 0&&(t=e,e=wn);for(var r=0,n=t.length-1,i=t[0],a=new Array(n<0?0:n);r<n;)a[r]=e(i,i=t[++r]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}function FE(e){return function(){return e}}function Sa(e){return+e}var Dm=[0,1];function Be(e){return e}function jf(e,t){return(t-=e=+e)?function(r){return(r-e)/t}:FE(isNaN(t)?NaN:.5)}function WE(e,t){var r;return e>t&&(r=e,e=t,t=r),function(n){return Math.max(e,Math.min(t,n))}}function zE(e,t,r){var n=e[0],i=e[1],a=t[0],o=t[1];return i<n?(n=jf(i,n),a=r(o,a)):(n=jf(n,i),a=r(a,o)),function(u){return a(n(u))}}function UE(e,t,r){var n=Math.min(e.length,t.length)-1,i=new Array(n),a=new Array(n),o=-1;for(e[n]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<n;)i[o]=jf(e[o],e[o+1]),a[o]=r(t[o],t[o+1]);return function(u){var s=Ni(e,u,1,n)-1;return a[s](i[s](u))}}function Ri(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function xo(){var e=Dm,t=Dm,r=wn,n,i,a,o=Be,u,s,c;function f(){var d=Math.min(e.length,t.length);return o!==Be&&(o=WE(e[0],e[d-1])),u=d>2?UE:zE,s=c=null,l}function l(d){return d==null||isNaN(d=+d)?a:(s||(s=u(e.map(n),t,r)))(n(o(d)))}return l.invert=function(d){return o(i((c||(c=u(t,e.map(n),_a)))(d)))},l.domain=function(d){return arguments.length?(e=Array.from(d,Sa),f()):e.slice()},l.range=function(d){return arguments.length?(t=Array.from(d),f()):t.slice()},l.rangeRound=function(d){return t=Array.from(d),r=Kd,f()},l.clamp=function(d){return arguments.length?(o=d?!0:Be,f()):o!==Be},l.interpolate=function(d){return arguments.length?(r=d,f()):r},l.unknown=function(d){return arguments.length?(a=d,l):a},function(d,h){return n=d,i=h,f()}}function Yd(){return xo()(Be,Be)}function HE(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Aa(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[n.length>1?n[0]+n.slice(2):n,+e.slice(r+1)]}function Yr(e){return e=Aa(Math.abs(e)),e?e[1]:NaN}function GE(e,t){return function(r,n){for(var i=r.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>n&&(u=Math.max(1,n-s)),a.push(r.substring(i-=u,i+u)),!((s+=u+1)>n));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function KE(e){return function(t){return t.replace(/[0-9]/g,function(r){return e[+r]})}}var YE=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function oi(e){if(!(t=YE.exec(e)))throw new Error("invalid format: "+e);var t;return new Vd({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}oi.prototype=Vd.prototype;function Vd(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}Vd.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function VE(e){e:for(var t=e.length,r=1,n=-1,i;r<t;++r)switch(e[r]){case".":n=i=r;break;case"0":n===0&&(n=r),i=r;break;default:if(!+e[r])break e;n>0&&(n=0);break}return n>0?e.slice(0,n)+e.slice(i+1):e}var iw;function XE(e,t){var r=Aa(e,t);if(!r)return e+"";var n=r[0],i=r[1],a=i-(iw=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=n.length;return a===o?n:a>o?n+new Array(a-o+1).join("0"):a>0?n.slice(0,a)+"."+n.slice(a):"0."+new Array(1-a).join("0")+Aa(e,Math.max(0,t+a-1))[0]}function Rm(e,t){var r=Aa(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}const qm={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:HE,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Rm(e*100,t),r:Rm,s:XE,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Lm(e){return e}var Bm=Array.prototype.map,Fm=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ZE(e){var t=e.grouping===void 0||e.thousands===void 0?Lm:GE(Bm.call(e.grouping,Number),e.thousands+""),r=e.currency===void 0?"":e.currency[0]+"",n=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Lm:KE(Bm.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function c(l){l=oi(l);var d=l.fill,h=l.align,y=l.sign,v=l.symbol,p=l.zero,g=l.width,x=l.comma,w=l.precision,O=l.trim,m=l.type;m==="n"?(x=!0,m="g"):qm[m]||(w===void 0&&(w=12),O=!0,m="g"),(p||d==="0"&&h==="=")&&(p=!0,d="0",h="=");var b=v==="$"?r:v==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=v==="$"?n:/[%p]/.test(m)?o:"",A=qm[m],T=/[defgprs%]/.test(m);w=w===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function $(j){var E=b,M=_,k,C,N;if(m==="c")M=A(j)+M,j="";else{j=+j;var R=j<0||1/j<0;if(j=isNaN(j)?s:A(Math.abs(j),w),O&&(j=VE(j)),R&&+j==0&&y!=="+"&&(R=!1),E=(R?y==="("?y:u:y==="-"||y==="("?"":y)+E,M=(m==="s"?Fm[8+iw/3]:"")+M+(R&&y==="("?")":""),T){for(k=-1,C=j.length;++k<C;)if(N=j.charCodeAt(k),48>N||N>57){M=(N===46?i+j.slice(k+1):j.slice(k))+M,j=j.slice(0,k);break}}}x&&!p&&(j=t(j,1/0));var B=E.length+j.length+M.length,F=B<g?new Array(g-B+1).join(d):"";switch(x&&p&&(j=t(F+j,F.length?g-M.length:1/0),F=""),h){case"<":j=E+j+M+F;break;case"=":j=E+F+j+M;break;case"^":j=F.slice(0,B=F.length>>1)+E+j+M+F.slice(B);break;default:j=F+E+j+M;break}return a(j)}return $.toString=function(){return l+""},$}function f(l,d){var h=c((l=oi(l),l.type="f",l)),y=Math.max(-8,Math.min(8,Math.floor(Yr(d)/3)))*3,v=Math.pow(10,-y),p=Fm[8+y/3];return function(g){return h(v*g)+p}}return{format:c,formatPrefix:f}}var Vi,Xd,aw;QE({thousands:",",grouping:[3],currency:["$",""]});function QE(e){return Vi=ZE(e),Xd=Vi.format,aw=Vi.formatPrefix,Vi}function JE(e){return Math.max(0,-Yr(Math.abs(e)))}function eM(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yr(t)/3)))*3-Yr(Math.abs(e)))}function tM(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yr(t)-Yr(e))+1}function ow(e,t,r,n){var i=_f(e,t,r),a;switch(n=oi(n??",f"),n.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return n.precision==null&&!isNaN(a=eM(i,o))&&(n.precision=a),aw(n,o)}case"":case"e":case"g":case"p":case"r":{n.precision==null&&!isNaN(a=tM(i,Math.max(Math.abs(e),Math.abs(t))))&&(n.precision=a-(n.type==="e"));break}case"f":case"%":{n.precision==null&&!isNaN(a=JE(i))&&(n.precision=a-(n.type==="%")*2);break}}return Xd(n)}function Xt(e){var t=e.domain;return e.ticks=function(r){var n=t();return wf(n[0],n[n.length-1],r??10)},e.tickFormat=function(r,n){var i=t();return ow(i[0],i[i.length-1],r??10,n)},e.nice=function(r){r==null&&(r=10);var n=t(),i=0,a=n.length-1,o=n[i],u=n[a],s,c,f=10;for(u<o&&(c=o,o=u,u=c,c=i,i=a,a=c);f-- >0;){if(c=Of(o,u,r),c===s)return n[i]=o,n[a]=u,t(n);if(c>0)o=Math.floor(o/c)*c,u=Math.ceil(u/c)*c;else if(c<0)o=Math.ceil(o*c)/c,u=Math.floor(u*c)/c;else break;s=c}return e},e}function Pa(){var e=Yd();return e.copy=function(){return Ri(e,Pa())},it.apply(e,arguments),Xt(e)}function uw(e){var t;function r(n){return n==null||isNaN(n=+n)?t:n}return r.invert=r,r.domain=r.range=function(n){return arguments.length?(e=Array.from(n,Sa),r):e.slice()},r.unknown=function(n){return arguments.length?(t=n,r):t},r.copy=function(){return uw(e).unknown(t)},e=arguments.length?Array.from(e,Sa):[0,1],Xt(r)}function sw(e,t){e=e.slice();var r=0,n=e.length-1,i=e[r],a=e[n],o;return a<i&&(o=r,r=n,n=o,o=i,i=a,a=o),e[r]=t.floor(i),e[n]=t.ceil(a),e}function Wm(e){return Math.log(e)}function zm(e){return Math.exp(e)}function rM(e){return-Math.log(-e)}function nM(e){return-Math.exp(-e)}function iM(e){return isFinite(e)?+("1e"+e):e<0?0:e}function aM(e){return e===10?iM:e===Math.E?Math.exp:t=>Math.pow(e,t)}function oM(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Um(e){return(t,r)=>-e(-t,r)}function Zd(e){const t=e(Wm,zm),r=t.domain;let n=10,i,a;function o(){return i=oM(n),a=aM(n),r()[0]<0?(i=Um(i),a=Um(a),e(rM,nM)):e(Wm,zm),t}return t.base=function(u){return arguments.length?(n=+u,o()):n},t.domain=function(u){return arguments.length?(r(u),o()):r()},t.ticks=u=>{const s=r();let c=s[0],f=s[s.length-1];const l=f<c;l&&([c,f]=[f,c]);let d=i(c),h=i(f),y,v;const p=u==null?10:+u;let g=[];if(!(n%1)&&h-d<p){if(d=Math.floor(d),h=Math.ceil(h),c>0){for(;d<=h;++d)for(y=1;y<n;++y)if(v=d<0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}}else for(;d<=h;++d)for(y=n-1;y>=1;--y)if(v=d>0?y/a(-d):y*a(d),!(v<c)){if(v>f)break;g.push(v)}g.length*2<p&&(g=wf(c,f,p))}else g=wf(d,h,Math.min(h-d,p)).map(a);return l?g.reverse():g},t.tickFormat=(u,s)=>{if(u==null&&(u=10),s==null&&(s=n===10?"s":","),typeof s!="function"&&(!(n%1)&&(s=oi(s)).precision==null&&(s.trim=!0),s=Xd(s)),u===1/0)return s;const c=Math.max(1,n*u/t.ticks().length);return f=>{let l=f/a(Math.round(i(f)));return l*n<n-.5&&(l*=n),l<=c?s(f):""}},t.nice=()=>r(sw(r(),{floor:u=>a(Math.floor(i(u))),ceil:u=>a(Math.ceil(i(u)))})),t}function cw(){const e=Zd(xo()).domain([1,10]);return e.copy=()=>Ri(e,cw()).base(e.base()),it.apply(e,arguments),e}function Hm(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function Gm(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Qd(e){var t=1,r=e(Hm(t),Gm(t));return r.constant=function(n){return arguments.length?e(Hm(t=+n),Gm(t)):t},Xt(r)}function lw(){var e=Qd(xo());return e.copy=function(){return Ri(e,lw()).constant(e.constant())},it.apply(e,arguments)}function Km(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uM(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sM(e){return e<0?-e*e:e*e}function Jd(e){var t=e(Be,Be),r=1;function n(){return r===1?e(Be,Be):r===.5?e(uM,sM):e(Km(r),Km(1/r))}return t.exponent=function(i){return arguments.length?(r=+i,n()):r},Xt(t)}function eh(){var e=Jd(xo());return e.copy=function(){return Ri(e,eh()).exponent(e.exponent())},it.apply(e,arguments),e}function cM(){return eh.apply(null,arguments).exponent(.5)}function Ym(e){return Math.sign(e)*e*e}function lM(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function fw(){var e=Yd(),t=[0,1],r=!1,n;function i(a){var o=lM(e(a));return isNaN(o)?n:r?Math.round(o):o}return i.invert=function(a){return e.invert(Ym(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,Sa)).map(Ym)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(r=!!a,i):r},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return fw(e.domain(),t).round(r).clamp(e.clamp()).unknown(n)},it.apply(i,arguments),Xt(i)}function dw(){var e=[],t=[],r=[],n;function i(){var o=0,u=Math.max(1,t.length);for(r=new Array(u-1);++o<u;)r[o-1]=vE(e,o/u);return a}function a(o){return o==null||isNaN(o=+o)?n:t[Ni(r,o)]}return a.invertExtent=function(o){var u=t.indexOf(o);return u<0?[NaN,NaN]:[u>0?r[u-1]:e[0],u<r.length?r[u]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let u of o)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(Yt),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(n=o,a):n},a.quantiles=function(){return r.slice()},a.copy=function(){return dw().domain(e).range(t).unknown(n)},it.apply(a,arguments)}function hw(){var e=0,t=1,r=1,n=[.5],i=[0,1],a;function o(s){return s!=null&&s<=s?i[Ni(n,s,0,r)]:a}function u(){var s=-1;for(n=new Array(r);++s<r;)n[s]=((s+1)*t-(s-r)*e)/(r+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,u()):[e,t]},o.range=function(s){return arguments.length?(r=(i=Array.from(s)).length-1,u()):i.slice()},o.invertExtent=function(s){var c=i.indexOf(s);return c<0?[NaN,NaN]:c<1?[e,n[0]]:c>=r?[n[r-1],t]:[n[c-1],n[c]]},o.unknown=function(s){return arguments.length&&(a=s),o},o.thresholds=function(){return n.slice()},o.copy=function(){return hw().domain([e,t]).range(i).unknown(a)},it.apply(Xt(o),arguments)}function pw(){var e=[.5],t=[0,1],r,n=1;function i(a){return a!=null&&a<=a?t[Ni(e,a,0,n)]:r}return i.domain=function(a){return arguments.length?(e=Array.from(a),n=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),n=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return pw().domain(e).range(t).unknown(r)},it.apply(i,arguments)}const ol=new Date,ul=new Date;function Ee(e,t,r,n){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let c;do s.push(c=new Date(+a)),t(a,u),e(a);while(c<a&&a<o);return s},i.filter=a=>Ee(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),r&&(i.count=(a,o)=>(ol.setTime(+a),ul.setTime(+o),e(ol),e(ul),Math.floor(r(ol,ul))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(n?o=>n(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const ja=Ee(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);ja.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ee(t=>{t.setTime(Math.floor(t/e)*e)},(t,r)=>{t.setTime(+t+r*e)},(t,r)=>(r-t)/e):ja);ja.range;const At=1e3,tt=At*60,Pt=tt*60,$t=Pt*24,th=$t*7,Vm=$t*30,sl=$t*365,fr=Ee(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*At)},(e,t)=>(t-e)/At,e=>e.getUTCSeconds());fr.range;const rh=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At)},(e,t)=>{e.setTime(+e+t*tt)},(e,t)=>(t-e)/tt,e=>e.getMinutes());rh.range;const nh=Ee(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*tt)},(e,t)=>(t-e)/tt,e=>e.getUTCMinutes());nh.range;const ih=Ee(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*At-e.getMinutes()*tt)},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getHours());ih.range;const ah=Ee(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Pt)},(e,t)=>(t-e)/Pt,e=>e.getUTCHours());ah.range;const qi=Ee(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*tt)/$t,e=>e.getDate()-1);qi.range;const wo=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$t,e=>e.getUTCDate()-1);wo.range;const vw=Ee(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/$t,e=>Math.floor(e/$t));vw.range;function Sr(e){return Ee(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,r)=>{t.setDate(t.getDate()+r*7)},(t,r)=>(r-t-(r.getTimezoneOffset()-t.getTimezoneOffset())*tt)/th)}const Oo=Sr(0),Ta=Sr(1),fM=Sr(2),dM=Sr(3),Vr=Sr(4),hM=Sr(5),pM=Sr(6);Oo.range;Ta.range;fM.range;dM.range;Vr.range;hM.range;pM.range;function Ar(e){return Ee(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCDate(t.getUTCDate()+r*7)},(t,r)=>(r-t)/th)}const _o=Ar(0),Ea=Ar(1),vM=Ar(2),yM=Ar(3),Xr=Ar(4),mM=Ar(5),gM=Ar(6);_o.range;Ea.range;vM.range;yM.range;Xr.range;mM.range;gM.range;const oh=Ee(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());oh.range;const uh=Ee(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());uh.range;const Ct=Ee(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());Ct.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,r)=>{t.setFullYear(t.getFullYear()+r*e)});Ct.range;const kt=Ee(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());kt.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ee(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,r)=>{t.setUTCFullYear(t.getUTCFullYear()+r*e)});kt.range;function yw(e,t,r,n,i,a){const o=[[fr,1,At],[fr,5,5*At],[fr,15,15*At],[fr,30,30*At],[a,1,tt],[a,5,5*tt],[a,15,15*tt],[a,30,30*tt],[i,1,Pt],[i,3,3*Pt],[i,6,6*Pt],[i,12,12*Pt],[n,1,$t],[n,2,2*$t],[r,1,th],[t,1,Vm],[t,3,3*Vm],[e,1,sl]];function u(c,f,l){const d=f<c;d&&([c,f]=[f,c]);const h=l&&typeof l.range=="function"?l:s(c,f,l),y=h?h.range(c,+f+1):[];return d?y.reverse():y}function s(c,f,l){const d=Math.abs(f-c)/l,h=zd(([,,p])=>p).right(o,d);if(h===o.length)return e.every(_f(c/sl,f/sl,l));if(h===0)return ja.every(Math.max(_f(c,f,l),1));const[y,v]=o[d/o[h-1][2]<o[h][2]/d?h-1:h];return y.every(v)}return[u,s]}const[bM,xM]=yw(kt,uh,_o,vw,ah,nh),[wM,OM]=yw(Ct,oh,Oo,qi,ih,rh);function cl(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ll(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function $n(e,t,r){return{y:e,m:t,d:r,H:0,M:0,S:0,L:0}}function _M(e){var t=e.dateTime,r=e.date,n=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,c=Cn(i),f=kn(i),l=Cn(a),d=kn(a),h=Cn(o),y=kn(o),v=Cn(u),p=kn(u),g=Cn(s),x=kn(s),w={a:R,A:B,b:F,B:H,c:null,d:tg,e:tg,f:GM,g:r$,G:i$,H:zM,I:UM,j:HM,L:mw,m:KM,M:YM,p:Y,q:z,Q:ig,s:ag,S:VM,u:XM,U:ZM,V:QM,w:JM,W:e$,x:null,X:null,y:t$,Y:n$,Z:a$,"%":ng},O={a:X,A:he,b:be,B:Ge,c:null,d:rg,e:rg,f:c$,g:b$,G:w$,H:o$,I:u$,j:s$,L:bw,m:l$,M:f$,p:Jt,q:Fe,Q:ig,s:ag,S:d$,u:h$,U:p$,V:v$,w:y$,W:m$,x:null,X:null,y:g$,Y:x$,Z:O$,"%":ng},m={a:$,A:j,b:E,B:M,c:k,d:Jm,e:Jm,f:LM,g:Qm,G:Zm,H:eg,I:eg,j:NM,L:qM,m:IM,M:DM,p:T,q:kM,Q:FM,s:WM,S:RM,u:TM,U:EM,V:MM,w:jM,W:$M,x:C,X:N,y:Qm,Y:Zm,Z:CM,"%":BM};w.x=b(r,w),w.X=b(n,w),w.c=b(t,w),O.x=b(r,O),O.X=b(n,O),O.c=b(t,O);function b(W,Q){return function(ee){var q=[],me=-1,re=0,_e=W.length,Se,We,Lt;for(ee instanceof Date||(ee=new Date(+ee));++me<_e;)W.charCodeAt(me)===37&&(q.push(W.slice(re,me)),(We=Xm[Se=W.charAt(++me)])!=null?Se=W.charAt(++me):We=Se==="e"?" ":"0",(Lt=Q[Se])&&(Se=Lt(ee,We)),q.push(Se),re=me+1);return q.push(W.slice(re,me)),q.join("")}}function _(W,Q){return function(ee){var q=$n(1900,void 0,1),me=A(q,W,ee+="",0),re,_e;if(me!=ee.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(Q&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(re=ll($n(q.y,0,1)),_e=re.getUTCDay(),re=_e>4||_e===0?Ea.ceil(re):Ea(re),re=wo.offset(re,(q.V-1)*7),q.y=re.getUTCFullYear(),q.m=re.getUTCMonth(),q.d=re.getUTCDate()+(q.w+6)%7):(re=cl($n(q.y,0,1)),_e=re.getDay(),re=_e>4||_e===0?Ta.ceil(re):Ta(re),re=qi.offset(re,(q.V-1)*7),q.y=re.getFullYear(),q.m=re.getMonth(),q.d=re.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),_e="Z"in q?ll($n(q.y,0,1)).getUTCDay():cl($n(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(_e+5)%7:q.w+q.U*7-(_e+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,ll(q)):cl(q)}}function A(W,Q,ee,q){for(var me=0,re=Q.length,_e=ee.length,Se,We;me<re;){if(q>=_e)return-1;if(Se=Q.charCodeAt(me++),Se===37){if(Se=Q.charAt(me++),We=m[Se in Xm?Q.charAt(me++):Se],!We||(q=We(W,ee,q))<0)return-1}else if(Se!=ee.charCodeAt(q++))return-1}return q}function T(W,Q,ee){var q=c.exec(Q.slice(ee));return q?(W.p=f.get(q[0].toLowerCase()),ee+q[0].length):-1}function $(W,Q,ee){var q=h.exec(Q.slice(ee));return q?(W.w=y.get(q[0].toLowerCase()),ee+q[0].length):-1}function j(W,Q,ee){var q=l.exec(Q.slice(ee));return q?(W.w=d.get(q[0].toLowerCase()),ee+q[0].length):-1}function E(W,Q,ee){var q=g.exec(Q.slice(ee));return q?(W.m=x.get(q[0].toLowerCase()),ee+q[0].length):-1}function M(W,Q,ee){var q=v.exec(Q.slice(ee));return q?(W.m=p.get(q[0].toLowerCase()),ee+q[0].length):-1}function k(W,Q,ee){return A(W,t,Q,ee)}function C(W,Q,ee){return A(W,r,Q,ee)}function N(W,Q,ee){return A(W,n,Q,ee)}function R(W){return o[W.getDay()]}function B(W){return a[W.getDay()]}function F(W){return s[W.getMonth()]}function H(W){return u[W.getMonth()]}function Y(W){return i[+(W.getHours()>=12)]}function z(W){return 1+~~(W.getMonth()/3)}function X(W){return o[W.getUTCDay()]}function he(W){return a[W.getUTCDay()]}function be(W){return s[W.getUTCMonth()]}function Ge(W){return u[W.getUTCMonth()]}function Jt(W){return i[+(W.getUTCHours()>=12)]}function Fe(W){return 1+~~(W.getUTCMonth()/3)}return{format:function(W){var Q=b(W+="",w);return Q.toString=function(){return W},Q},parse:function(W){var Q=_(W+="",!1);return Q.toString=function(){return W},Q},utcFormat:function(W){var Q=b(W+="",O);return Q.toString=function(){return W},Q},utcParse:function(W){var Q=_(W+="",!0);return Q.toString=function(){return W},Q}}}var Xm={"-":"",_:" ",0:"0"},Ce=/^\s*\d+/,SM=/^%/,AM=/[\\^$*+?|[\]().{}]/g;function ne(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",a=i.length;return n+(a<r?new Array(r-a+1).join(t)+i:i)}function PM(e){return e.replace(AM,"\\$&")}function Cn(e){return new RegExp("^(?:"+e.map(PM).join("|")+")","i")}function kn(e){return new Map(e.map((t,r)=>[t.toLowerCase(),r]))}function jM(e,t,r){var n=Ce.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function TM(e,t,r){var n=Ce.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function EM(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function MM(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function $M(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function Zm(e,t,r){var n=Ce.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function Qm(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(+n[0]>68?1900:2e3),r+n[0].length):-1}function CM(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function kM(e,t,r){var n=Ce.exec(t.slice(r,r+1));return n?(e.q=n[0]*3-3,r+n[0].length):-1}function IM(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function Jm(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function NM(e,t,r){var n=Ce.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function eg(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function DM(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function RM(e,t,r){var n=Ce.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function qM(e,t,r){var n=Ce.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function LM(e,t,r){var n=Ce.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function BM(e,t,r){var n=SM.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function FM(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function WM(e,t,r){var n=Ce.exec(t.slice(r));return n?(e.s=+n[0],r+n[0].length):-1}function tg(e,t){return ne(e.getDate(),t,2)}function zM(e,t){return ne(e.getHours(),t,2)}function UM(e,t){return ne(e.getHours()%12||12,t,2)}function HM(e,t){return ne(1+qi.count(Ct(e),e),t,3)}function mw(e,t){return ne(e.getMilliseconds(),t,3)}function GM(e,t){return mw(e,t)+"000"}function KM(e,t){return ne(e.getMonth()+1,t,2)}function YM(e,t){return ne(e.getMinutes(),t,2)}function VM(e,t){return ne(e.getSeconds(),t,2)}function XM(e){var t=e.getDay();return t===0?7:t}function ZM(e,t){return ne(Oo.count(Ct(e)-1,e),t,2)}function gw(e){var t=e.getDay();return t>=4||t===0?Vr(e):Vr.ceil(e)}function QM(e,t){return e=gw(e),ne(Vr.count(Ct(e),e)+(Ct(e).getDay()===4),t,2)}function JM(e){return e.getDay()}function e$(e,t){return ne(Ta.count(Ct(e)-1,e),t,2)}function t$(e,t){return ne(e.getFullYear()%100,t,2)}function r$(e,t){return e=gw(e),ne(e.getFullYear()%100,t,2)}function n$(e,t){return ne(e.getFullYear()%1e4,t,4)}function i$(e,t){var r=e.getDay();return e=r>=4||r===0?Vr(e):Vr.ceil(e),ne(e.getFullYear()%1e4,t,4)}function a$(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ne(t/60|0,"0",2)+ne(t%60,"0",2)}function rg(e,t){return ne(e.getUTCDate(),t,2)}function o$(e,t){return ne(e.getUTCHours(),t,2)}function u$(e,t){return ne(e.getUTCHours()%12||12,t,2)}function s$(e,t){return ne(1+wo.count(kt(e),e),t,3)}function bw(e,t){return ne(e.getUTCMilliseconds(),t,3)}function c$(e,t){return bw(e,t)+"000"}function l$(e,t){return ne(e.getUTCMonth()+1,t,2)}function f$(e,t){return ne(e.getUTCMinutes(),t,2)}function d$(e,t){return ne(e.getUTCSeconds(),t,2)}function h$(e){var t=e.getUTCDay();return t===0?7:t}function p$(e,t){return ne(_o.count(kt(e)-1,e),t,2)}function xw(e){var t=e.getUTCDay();return t>=4||t===0?Xr(e):Xr.ceil(e)}function v$(e,t){return e=xw(e),ne(Xr.count(kt(e),e)+(kt(e).getUTCDay()===4),t,2)}function y$(e){return e.getUTCDay()}function m$(e,t){return ne(Ea.count(kt(e)-1,e),t,2)}function g$(e,t){return ne(e.getUTCFullYear()%100,t,2)}function b$(e,t){return e=xw(e),ne(e.getUTCFullYear()%100,t,2)}function x$(e,t){return ne(e.getUTCFullYear()%1e4,t,4)}function w$(e,t){var r=e.getUTCDay();return e=r>=4||r===0?Xr(e):Xr.ceil(e),ne(e.getUTCFullYear()%1e4,t,4)}function O$(){return"+0000"}function ng(){return"%"}function ig(e){return+e}function ag(e){return Math.floor(+e/1e3)}var Mr,ww,Ow;_$({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 _$(e){return Mr=_M(e),ww=Mr.format,Mr.parse,Ow=Mr.utcFormat,Mr.utcParse,Mr}function S$(e){return new Date(e)}function A$(e){return e instanceof Date?+e:+new Date(+e)}function sh(e,t,r,n,i,a,o,u,s,c){var f=Yd(),l=f.invert,d=f.domain,h=c(".%L"),y=c(":%S"),v=c("%I:%M"),p=c("%I %p"),g=c("%a %d"),x=c("%b %d"),w=c("%B"),O=c("%Y");function m(b){return(s(b)<b?h:u(b)<b?y:o(b)<b?v:a(b)<b?p:n(b)<b?i(b)<b?g:x:r(b)<b?w:O)(b)}return f.invert=function(b){return new Date(l(b))},f.domain=function(b){return arguments.length?d(Array.from(b,A$)):d().map(S$)},f.ticks=function(b){var _=d();return e(_[0],_[_.length-1],b??10)},f.tickFormat=function(b,_){return _==null?m:c(_)},f.nice=function(b){var _=d();return(!b||typeof b.range!="function")&&(b=t(_[0],_[_.length-1],b??10)),b?d(sw(_,b)):f},f.copy=function(){return Ri(f,sh(e,t,r,n,i,a,o,u,s,c))},f}function P$(){return it.apply(sh(wM,OM,Ct,oh,Oo,qi,ih,rh,fr,ww).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function j$(){return it.apply(sh(bM,xM,kt,uh,_o,wo,ah,nh,fr,Ow).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function So(){var e=0,t=1,r,n,i,a,o=Be,u=!1,s;function c(l){return l==null||isNaN(l=+l)?s:o(i===0?.5:(l=(a(l)-r)*i,u?Math.max(0,Math.min(1,l)):l))}c.domain=function(l){return arguments.length?([e,t]=l,r=a(e=+e),n=a(t=+t),i=r===n?0:1/(n-r),c):[e,t]},c.clamp=function(l){return arguments.length?(u=!!l,c):u},c.interpolator=function(l){return arguments.length?(o=l,c):o};function f(l){return function(d){var h,y;return arguments.length?([h,y]=d,o=l(h,y),c):[o(0),o(1)]}}return c.range=f(wn),c.rangeRound=f(Kd),c.unknown=function(l){return arguments.length?(s=l,c):s},function(l){return a=l,r=l(e),n=l(t),i=r===n?0:1/(n-r),c}}function Zt(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _w(){var e=Xt(So()(Be));return e.copy=function(){return Zt(e,_w())},Rt.apply(e,arguments)}function Sw(){var e=Zd(So()).domain([1,10]);return e.copy=function(){return Zt(e,Sw()).base(e.base())},Rt.apply(e,arguments)}function Aw(){var e=Qd(So());return e.copy=function(){return Zt(e,Aw()).constant(e.constant())},Rt.apply(e,arguments)}function ch(){var e=Jd(So());return e.copy=function(){return Zt(e,ch()).exponent(e.exponent())},Rt.apply(e,arguments)}function T$(){return ch.apply(null,arguments).exponent(.5)}function Pw(){var e=[],t=Be;function r(n){if(n!=null&&!isNaN(n=+n))return t((Ni(e,n,1)-1)/(e.length-1))}return r.domain=function(n){if(!arguments.length)return e.slice();e=[];for(let i of n)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Yt),r},r.interpolator=function(n){return arguments.length?(t=n,r):t},r.range=function(){return e.map((n,i)=>t(i/(e.length-1)))},r.quantiles=function(n){return Array.from({length:n+1},(i,a)=>pE(e,a/n))},r.copy=function(){return Pw(t).domain(e)},Rt.apply(r,arguments)}function Ao(){var e=0,t=.5,r=1,n=1,i,a,o,u,s,c=Be,f,l=!1,d;function h(v){return isNaN(v=+v)?d:(v=.5+((v=+f(v))-a)*(n*v<n*a?u:s),c(l?Math.max(0,Math.min(1,v)):v))}h.domain=function(v){return arguments.length?([e,t,r]=v,i=f(e=+e),a=f(t=+t),o=f(r=+r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h):[e,t,r]},h.clamp=function(v){return arguments.length?(l=!!v,h):l},h.interpolator=function(v){return arguments.length?(c=v,h):c};function y(v){return function(p){var g,x,w;return arguments.length?([g,x,w]=p,c=BE(v,[g,x,w]),h):[c(0),c(.5),c(1)]}}return h.range=y(wn),h.rangeRound=y(Kd),h.unknown=function(v){return arguments.length?(d=v,h):d},function(v){return f=v,i=v(e),a=v(t),o=v(r),u=i===a?0:.5/(a-i),s=a===o?0:.5/(o-a),n=a<i?-1:1,h}}function jw(){var e=Xt(Ao()(Be));return e.copy=function(){return Zt(e,jw())},Rt.apply(e,arguments)}function Tw(){var e=Zd(Ao()).domain([.1,1,10]);return e.copy=function(){return Zt(e,Tw()).base(e.base())},Rt.apply(e,arguments)}function Ew(){var e=Qd(Ao());return e.copy=function(){return Zt(e,Ew()).constant(e.constant())},Rt.apply(e,arguments)}function lh(){var e=Jd(Ao());return e.copy=function(){return Zt(e,lh()).exponent(e.exponent())},Rt.apply(e,arguments)}function E$(){return lh.apply(null,arguments).exponent(.5)}const og=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:ri,scaleDiverging:jw,scaleDivergingLog:Tw,scaleDivergingPow:lh,scaleDivergingSqrt:E$,scaleDivergingSymlog:Ew,scaleIdentity:uw,scaleImplicit:Sf,scaleLinear:Pa,scaleLog:cw,scaleOrdinal:Ud,scalePoint:zn,scalePow:eh,scaleQuantile:dw,scaleQuantize:hw,scaleRadial:fw,scaleSequential:_w,scaleSequentialLog:Sw,scaleSequentialPow:ch,scaleSequentialQuantile:Pw,scaleSequentialSqrt:T$,scaleSequentialSymlog:Aw,scaleSqrt:cM,scaleSymlog:lw,scaleThreshold:pw,scaleTime:P$,scaleUtc:j$,tickFormat:ow},Symbol.toStringTag,{value:"Module"}));var fl,ug;function Po(){if(ug)return fl;ug=1;var e=yn();function t(r,n,i){for(var a=-1,o=r.length;++a<o;){var u=r[a],s=n(u);if(s!=null&&(c===void 0?s===s&&!e(s):i(s,c)))var c=s,f=u}return f}return fl=t,fl}var dl,sg;function Mw(){if(sg)return dl;sg=1;function e(t,r){return t>r}return dl=e,dl}var hl,cg;function M$(){if(cg)return hl;cg=1;var e=Po(),t=Mw(),r=xn();function n(i){return i&&i.length?e(i,r,t):void 0}return hl=n,hl}var $$=M$();const Gt=se($$);var pl,lg;function $w(){if(lg)return pl;lg=1;function e(t,r){return t<r}return pl=e,pl}var vl,fg;function C$(){if(fg)return vl;fg=1;var e=Po(),t=$w(),r=xn();function n(i){return i&&i.length?e(i,r,t):void 0}return vl=n,vl}var k$=C$();const jo=se(k$);var yl,dg;function I$(){if(dg)return yl;dg=1;var e=Pd(),t=Ot(),r=qx(),n=He();function i(a,o){var u=n(a)?e:r;return u(a,t(o,3))}return yl=i,yl}var ml,hg;function N$(){if(hg)return ml;hg=1;var e=Dx(),t=I$();function r(n,i){return e(t(n,i),1)}return ml=r,ml}var D$=N$();const R$=se(D$);var gl,pg;function q$(){if(pg)return gl;pg=1;var e=Ld();function t(r,n){return e(r,n)}return gl=t,gl}var L$=q$();const Zr=se(L$);var On=1e9,B$={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},dh,ye=!0,nt="[DecimalError] ",vr=nt+"Invalid argument: ",fh=nt+"Exponent out of range: ",_n=Math.floor,ur=Math.pow,F$=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ve,Me=1e7,ve=7,Cw=9007199254740991,Ma=_n(Cw/ve),U={};U.absoluteValue=U.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};U.comparedTo=U.cmp=function(e){var t,r,n,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(n=a.d.length,i=e.d.length,t=0,r=n<i?n:i;t<r;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return n===i?0:n>i^a.s<0?1:-1};U.decimalPlaces=U.dp=function(){var e=this,t=e.d.length-1,r=(t-e.e)*ve;if(t=e.d[t],t)for(;t%10==0;t/=10)r--;return r<0?0:r};U.dividedBy=U.div=function(e){return Et(this,new this.constructor(e))};U.dividedToIntegerBy=U.idiv=function(e){var t=this,r=t.constructor;return ce(Et(t,new r(e),0,1),r.precision)};U.equals=U.eq=function(e){return!this.cmp(e)};U.exponent=function(){return we(this)};U.greaterThan=U.gt=function(e){return this.cmp(e)>0};U.greaterThanOrEqualTo=U.gte=function(e){return this.cmp(e)>=0};U.isInteger=U.isint=function(){return this.e>this.d.length-2};U.isNegative=U.isneg=function(){return this.s<0};U.isPositive=U.ispos=function(){return this.s>0};U.isZero=function(){return this.s===0};U.lessThan=U.lt=function(e){return this.cmp(e)<0};U.lessThanOrEqualTo=U.lte=function(e){return this.cmp(e)<1};U.logarithm=U.log=function(e){var t,r=this,n=r.constructor,i=n.precision,a=i+5;if(e===void 0)e=new n(10);else if(e=new n(e),e.s<1||e.eq(Ve))throw Error(nt+"NaN");if(r.s<1)throw Error(nt+(r.s?"NaN":"-Infinity"));return r.eq(Ve)?new n(0):(ye=!1,t=Et(ui(r,a),ui(e,a),a),ye=!0,ce(t,i))};U.minus=U.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Nw(t,e):kw(t,(e.s=-e.s,e))};U.modulo=U.mod=function(e){var t,r=this,n=r.constructor,i=n.precision;if(e=new n(e),!e.s)throw Error(nt+"NaN");return r.s?(ye=!1,t=Et(r,e,0,1).times(e),ye=!0,r.minus(t)):ce(new n(r),i)};U.naturalExponential=U.exp=function(){return Iw(this)};U.naturalLogarithm=U.ln=function(){return ui(this)};U.negated=U.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};U.plus=U.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kw(t,e):Nw(t,(e.s=-e.s,e))};U.precision=U.sd=function(e){var t,r,n,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(vr+e);if(t=we(i)+1,n=i.d.length-1,r=n*ve+1,n=i.d[n],n){for(;n%10==0;n/=10)r--;for(n=i.d[0];n>=10;n/=10)r++}return e&&t>r?t:r};U.squareRoot=U.sqrt=function(){var e,t,r,n,i,a,o,u=this,s=u.constructor;if(u.s<1){if(!u.s)return new s(0);throw Error(nt+"NaN")}for(e=we(u),ye=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=ht(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=_n((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),n=new s(t)):n=new s(i.toString()),r=s.precision,i=o=r+3;;)if(a=n,n=a.plus(Et(u,a,o+2)).times(.5),ht(a.d).slice(0,o)===(t=ht(n.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(ce(a,r+1,0),a.times(a).eq(u)){n=a;break}}else if(t!="9999")break;o+=4}return ye=!0,ce(n,r)};U.times=U.mul=function(e){var t,r,n,i,a,o,u,s,c,f=this,l=f.constructor,d=f.d,h=(e=new l(e)).d;if(!f.s||!e.s)return new l(0);for(e.s*=f.s,r=f.e+e.e,s=d.length,c=h.length,s<c&&(a=d,d=h,h=a,o=s,s=c,c=o),a=[],o=s+c,n=o;n--;)a.push(0);for(n=c;--n>=0;){for(t=0,i=s+n;i>n;)u=a[i]+h[n]*d[i-n-1]+t,a[i--]=u%Me|0,t=u/Me|0;a[i]=(a[i]+t)%Me|0}for(;!a[--o];)a.pop();return t?++r:a.shift(),e.d=a,e.e=r,ye?ce(e,l.precision):e};U.toDecimalPlaces=U.todp=function(e,t){var r=this,n=r.constructor;return r=new n(r),e===void 0?r:(bt(e,0,On),t===void 0?t=n.rounding:bt(t,0,8),ce(r,e+we(r)+1,t))};U.toExponential=function(e,t){var r,n=this,i=n.constructor;return e===void 0?r=br(n,!0):(bt(e,0,On),t===void 0?t=i.rounding:bt(t,0,8),n=ce(new i(n),e+1,t),r=br(n,!0,e+1)),r};U.toFixed=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?br(i):(bt(e,0,On),t===void 0?t=a.rounding:bt(t,0,8),n=ce(new a(i),e+we(i)+1,t),r=br(n.abs(),!1,e+we(n)+1),i.isneg()&&!i.isZero()?"-"+r:r)};U.toInteger=U.toint=function(){var e=this,t=e.constructor;return ce(new t(e),we(e)+1,t.rounding)};U.toNumber=function(){return+this};U.toPower=U.pow=function(e){var t,r,n,i,a,o,u=this,s=u.constructor,c=12,f=+(e=new s(e));if(!e.s)return new s(Ve);if(u=new s(u),!u.s){if(e.s<1)throw Error(nt+"Infinity");return u}if(u.eq(Ve))return u;if(n=s.precision,e.eq(Ve))return ce(u,n);if(t=e.e,r=e.d.length-1,o=t>=r,a=u.s,o){if((r=f<0?-f:f)<=Cw){for(i=new s(Ve),t=Math.ceil(n/ve+4),ye=!1;r%2&&(i=i.times(u),yg(i.d,t)),r=_n(r/2),r!==0;)u=u.times(u),yg(u.d,t);return ye=!0,e.s<0?new s(Ve).div(i):ce(i,n)}}else if(a<0)throw Error(nt+"NaN");return a=a<0&&e.d[Math.max(t,r)]&1?-1:1,u.s=1,ye=!1,i=e.times(ui(u,n+c)),ye=!0,i=Iw(i),i.s=a,i};U.toPrecision=function(e,t){var r,n,i=this,a=i.constructor;return e===void 0?(r=we(i),n=br(i,r<=a.toExpNeg||r>=a.toExpPos)):(bt(e,1,On),t===void 0?t=a.rounding:bt(t,0,8),i=ce(new a(i),e,t),r=we(i),n=br(i,e<=r||r<=a.toExpNeg,e)),n};U.toSignificantDigits=U.tosd=function(e,t){var r=this,n=r.constructor;return e===void 0?(e=n.precision,t=n.rounding):(bt(e,1,On),t===void 0?t=n.rounding:bt(t,0,8)),ce(new n(r),e,t)};U.toString=U.valueOf=U.val=U.toJSON=U[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=we(e),r=e.constructor;return br(e,t<=r.toExpNeg||t>=r.toExpPos)};function kw(e,t){var r,n,i,a,o,u,s,c,f=e.constructor,l=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),ye?ce(t,l):t;if(s=e.d,c=t.d,o=e.e,i=t.e,s=s.slice(),a=o-i,a){for(a<0?(n=s,a=-a,u=c.length):(n=c,i=o,u=s.length),o=Math.ceil(l/ve),u=o>u?o+1:u+1,a>u&&(a=u,n.length=1),n.reverse();a--;)n.push(0);n.reverse()}for(u=s.length,a=c.length,u-a<0&&(a=u,n=c,c=s,s=n),r=0;a;)r=(s[--a]=s[a]+c[a]+r)/Me|0,s[a]%=Me;for(r&&(s.unshift(r),++i),u=s.length;s[--u]==0;)s.pop();return t.d=s,t.e=i,ye?ce(t,l):t}function bt(e,t,r){if(e!==~~e||e<t||e>r)throw Error(vr+e)}function ht(e){var t,r,n,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)n=e[t]+"",r=ve-n.length,r&&(a+=zt(r)),a+=n;o=e[t],n=o+"",r=ve-n.length,r&&(a+=zt(r))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var Et=(function(){function e(n,i){var a,o=0,u=n.length;for(n=n.slice();u--;)a=n[u]*i+o,n[u]=a%Me|0,o=a/Me|0;return o&&n.unshift(o),n}function t(n,i,a,o){var u,s;if(a!=o)s=a>o?1:-1;else for(u=s=0;u<a;u++)if(n[u]!=i[u]){s=n[u]>i[u]?1:-1;break}return s}function r(n,i,a){for(var o=0;a--;)n[a]-=o,o=n[a]<i[a]?1:0,n[a]=o*Me+n[a]-i[a];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,a,o){var u,s,c,f,l,d,h,y,v,p,g,x,w,O,m,b,_,A,T=n.constructor,$=n.s==i.s?1:-1,j=n.d,E=i.d;if(!n.s)return new T(n);if(!i.s)throw Error(nt+"Division by zero");for(s=n.e-i.e,_=E.length,m=j.length,h=new T($),y=h.d=[],c=0;E[c]==(j[c]||0);)++c;if(E[c]>(j[c]||0)&&--s,a==null?x=a=T.precision:o?x=a+(we(n)-we(i))+1:x=a,x<0)return new T(0);if(x=x/ve+2|0,c=0,_==1)for(f=0,E=E[0],x++;(c<m||f)&&x--;c++)w=f*Me+(j[c]||0),y[c]=w/E|0,f=w%E|0;else{for(f=Me/(E[0]+1)|0,f>1&&(E=e(E,f),j=e(j,f),_=E.length,m=j.length),O=_,v=j.slice(0,_),p=v.length;p<_;)v[p++]=0;A=E.slice(),A.unshift(0),b=E[0],E[1]>=Me/2&&++b;do f=0,u=t(E,v,_,p),u<0?(g=v[0],_!=p&&(g=g*Me+(v[1]||0)),f=g/b|0,f>1?(f>=Me&&(f=Me-1),l=e(E,f),d=l.length,p=v.length,u=t(l,v,d,p),u==1&&(f--,r(l,_<d?A:E,d))):(f==0&&(u=f=1),l=E.slice()),d=l.length,d<p&&l.unshift(0),r(v,l,p),u==-1&&(p=v.length,u=t(E,v,_,p),u<1&&(f++,r(v,_<p?A:E,p))),p=v.length):u===0&&(f++,v=[0]),y[c++]=f,u&&v[0]?v[p++]=j[O]||0:(v=[j[O]],p=1);while((O++<m||v[0]!==void 0)&&x--)}return y[0]||y.shift(),h.e=s,ce(h,o?a+we(h)+1:a)}})();function Iw(e,t){var r,n,i,a,o,u,s=0,c=0,f=e.constructor,l=f.precision;if(we(e)>16)throw Error(fh+we(e));if(!e.s)return new f(Ve);for(ye=!1,u=l,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(n=Math.log(ur(2,c))/Math.LN10*2+5|0,u+=n,r=i=a=new f(Ve),f.precision=u;;){if(i=ce(i.times(e),u),r=r.times(++s),o=a.plus(Et(i,r,u)),ht(o.d).slice(0,u)===ht(a.d).slice(0,u)){for(;c--;)a=ce(a.times(a),u);return f.precision=l,t==null?(ye=!0,ce(a,l)):a}a=o}}function we(e){for(var t=e.e*ve,r=e.d[0];r>=10;r/=10)t++;return t}function bl(e,t,r){if(t>e.LN10.sd())throw ye=!0,r&&(e.precision=r),Error(nt+"LN10 precision limit exceeded");return ce(new e(e.LN10),t)}function zt(e){for(var t="";e--;)t+="0";return t}function ui(e,t){var r,n,i,a,o,u,s,c,f,l=1,d=10,h=e,y=h.d,v=h.constructor,p=v.precision;if(h.s<1)throw Error(nt+(h.s?"NaN":"-Infinity"));if(h.eq(Ve))return new v(0);if(t==null?(ye=!1,c=p):c=t,h.eq(10))return t==null&&(ye=!0),bl(v,c);if(c+=d,v.precision=c,r=ht(y),n=r.charAt(0),a=we(h),Math.abs(a)<15e14){for(;n<7&&n!=1||n==1&&r.charAt(1)>3;)h=h.times(e),r=ht(h.d),n=r.charAt(0),l++;a=we(h),n>1?(h=new v("0."+r),a++):h=new v(n+"."+r.slice(1))}else return s=bl(v,c+2,p).times(a+""),h=ui(new v(n+"."+r.slice(1)),c-d).plus(s),v.precision=p,t==null?(ye=!0,ce(h,p)):h;for(u=o=h=Et(h.minus(Ve),h.plus(Ve),c),f=ce(h.times(h),c),i=3;;){if(o=ce(o.times(f),c),s=u.plus(Et(o,new v(i),c)),ht(s.d).slice(0,c)===ht(u.d).slice(0,c))return u=u.times(2),a!==0&&(u=u.plus(bl(v,c+2,p).times(a+""))),u=Et(u,new v(l),c),v.precision=p,t==null?(ye=!0,ce(u,p)):u;u=s,i+=2}}function vg(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;t.charCodeAt(n)===48;)++n;for(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(n,i),t){if(i-=n,r=r-n-1,e.e=_n(r/ve),e.d=[],n=(r+1)%ve,r<0&&(n+=ve),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=ve;n<i;)e.d.push(+t.slice(n,n+=ve));t=t.slice(n),n=ve-t.length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),ye&&(e.e>Ma||e.e<-Ma))throw Error(fh+r)}else e.s=0,e.e=0,e.d=[0];return e}function ce(e,t,r){var n,i,a,o,u,s,c,f,l=e.d;for(o=1,a=l[0];a>=10;a/=10)o++;if(n=t-o,n<0)n+=ve,i=t,c=l[f=0];else{if(f=Math.ceil((n+1)/ve),a=l.length,f>=a)return e;for(c=a=l[f],o=1;a>=10;a/=10)o++;n%=ve,i=n-ve+o}if(r!==void 0&&(a=ur(10,o-i-1),u=c/a%10|0,s=t<0||l[f+1]!==void 0||c%a,s=r<4?(u||s)&&(r==0||r==(e.s<0?3:2)):u>5||u==5&&(r==4||s||r==6&&(n>0?i>0?c/ur(10,o-i):0:l[f-1])%10&1||r==(e.s<0?8:7))),t<1||!l[0])return s?(a=we(e),l.length=1,t=t-a-1,l[0]=ur(10,(ve-t%ve)%ve),e.e=_n(-t/ve)||0):(l.length=1,l[0]=e.e=e.s=0),e;if(n==0?(l.length=f,a=1,f--):(l.length=f+1,a=ur(10,ve-n),l[f]=i>0?(c/ur(10,o-i)%ur(10,i)|0)*a:0),s)for(;;)if(f==0){(l[0]+=a)==Me&&(l[0]=1,++e.e);break}else{if(l[f]+=a,l[f]!=Me)break;l[f--]=0,a=1}for(n=l.length;l[--n]===0;)l.pop();if(ye&&(e.e>Ma||e.e<-Ma))throw Error(fh+we(e));return e}function Nw(e,t){var r,n,i,a,o,u,s,c,f,l,d=e.constructor,h=d.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new d(e),ye?ce(t,h):t;if(s=e.d,l=t.d,n=t.e,c=e.e,s=s.slice(),o=c-n,o){for(f=o<0,f?(r=s,o=-o,u=l.length):(r=l,n=c,u=s.length),i=Math.max(Math.ceil(h/ve),u)+2,o>i&&(o=i,r.length=1),r.reverse(),i=o;i--;)r.push(0);r.reverse()}else{for(i=s.length,u=l.length,f=i<u,f&&(u=i),i=0;i<u;i++)if(s[i]!=l[i]){f=s[i]<l[i];break}o=0}for(f&&(r=s,s=l,l=r,t.s=-t.s),u=s.length,i=l.length-u;i>0;--i)s[u++]=0;for(i=l.length;i>o;){if(s[--i]<l[i]){for(a=i;a&&s[--a]===0;)s[a]=Me-1;--s[a],s[i]+=Me}s[i]-=l[i]}for(;s[--u]===0;)s.pop();for(;s[0]===0;s.shift())--n;return s[0]?(t.d=s,t.e=n,ye?ce(t,h):t):new d(0)}function br(e,t,r){var n,i=we(e),a=ht(e.d),o=a.length;return t?(r&&(n=r-o)>0?a=a.charAt(0)+"."+a.slice(1)+zt(n):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+zt(-i-1)+a,r&&(n=r-o)>0&&(a+=zt(n))):i>=o?(a+=zt(i+1-o),r&&(n=r-i-1)>0&&(a=a+"."+zt(n))):((n=i+1)<o&&(a=a.slice(0,n)+"."+a.slice(n)),r&&(n=r-o)>0&&(i+1===o&&(a+="."),a+=zt(n))),e.s<0?"-"+a:a}function yg(e,t){if(e.length>t)return e.length=t,!0}function Dw(e){var t,r,n;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(vr+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return vg(o,a.toString())}else if(typeof a!="string")throw Error(vr+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,F$.test(a))vg(o,a);else throw Error(vr+a)}if(i.prototype=U,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=Dw,i.config=i.set=W$,e===void 0&&(e={}),e)for(n=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<n.length;)e.hasOwnProperty(r=n[t++])||(e[r]=this[r]);return i.config(e),i}function W$(e){if(!e||typeof e!="object")throw Error(nt+"Object expected");var t,r,n,i=["precision",1,On,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((n=e[r=i[t]])!==void 0)if(_n(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(vr+r+": "+n);if((n=e[r="LN10"])!==void 0)if(n==Math.LN10)this[r]=new this(n);else throw Error(vr+r+": "+n);return this}var dh=Dw(B$);Ve=new dh(1);const ue=dh;function z$(e){return K$(e)||G$(e)||H$(e)||U$()}function U$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
13
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H$(e,t){if(e){if(typeof e=="string")return Tf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Tf(e,t)}}function G$(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function K$(e){if(Array.isArray(e))return Tf(e)}function Tf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Y$=function(t){return t},Rw={},qw=function(t){return t===Rw},mg=function(t){return function r(){return arguments.length===0||arguments.length===1&&qw(arguments.length<=0?void 0:arguments[0])?r:t.apply(void 0,arguments)}},V$=function e(t,r){return t===1?r:mg(function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var o=i.filter(function(u){return u!==Rw}).length;return o>=t?r.apply(void 0,i):e(t-o,mg(function(){for(var u=arguments.length,s=new Array(u),c=0;c<u;c++)s[c]=arguments[c];var f=i.map(function(l){return qw(l)?s.shift():l});return r.apply(void 0,z$(f).concat(s))}))})},To=function(t){return V$(t.length,t)},Ef=function(t,r){for(var n=[],i=t;i<r;++i)n[i-t]=i;return n},X$=To(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(r){return t[r]}).map(e)}),Z$=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(!r.length)return Y$;var i=r.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(u,s){return s(u)},a.apply(void 0,arguments))}},Mf=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},Lw=function(t){var r=null,n=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return r&&a.every(function(u,s){return u===r[s]})||(r=a,n=t.apply(void 0,a)),n}};function Q$(e){var t;return e===0?t=1:t=Math.floor(new ue(e).abs().log(10).toNumber())+1,t}function J$(e,t,r){for(var n=new ue(e),i=0,a=[];n.lt(t)&&i<1e5;)a.push(n.toNumber()),n=n.add(r),i++;return a}var eC=To(function(e,t,r){var n=+e,i=+t;return n+r*(i-n)}),tC=To(function(e,t,r){var n=t-+e;return n=n||1/0,(r-e)/n}),rC=To(function(e,t,r){var n=t-+e;return n=n||1/0,Math.max(0,Math.min(1,(r-e)/n))});const Eo={rangeStep:J$,getDigitCount:Q$,interpolateNumber:eC,uninterpolateNumber:tC,uninterpolateTruncation:rC};function $f(e){return aC(e)||iC(e)||Bw(e)||nC()}function nC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
14
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iC(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function aC(e){if(Array.isArray(e))return Cf(e)}function si(e,t){return sC(e)||uC(e,t)||Bw(e,t)||oC()}function oC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
15
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bw(e,t){if(e){if(typeof e=="string")return Cf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Cf(e,t)}}function Cf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uC(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),u;!(n=(u=o.next()).done)&&(r.push(u.value),!(t&&r.length===t));n=!0);}catch(s){i=!0,a=s}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw a}}return r}}function sC(e){if(Array.isArray(e))return e}function Fw(e){var t=si(e,2),r=t[0],n=t[1],i=r,a=n;return r>n&&(i=n,a=r),[i,a]}function Ww(e,t,r){if(e.lte(0))return new ue(0);var n=Eo.getDigitCount(e.toNumber()),i=new ue(10).pow(n),a=e.div(i),o=n!==1?.05:.1,u=new ue(Math.ceil(a.div(o).toNumber())).add(r).mul(o),s=u.mul(i);return t?s:new ue(Math.ceil(s))}function cC(e,t,r){var n=1,i=new ue(e);if(!i.isint()&&r){var a=Math.abs(e);a<1?(n=new ue(10).pow(Eo.getDigitCount(e)-1),i=new ue(Math.floor(i.div(n).toNumber())).mul(n)):a>1&&(i=new ue(Math.floor(e)))}else e===0?i=new ue(Math.floor((t-1)/2)):r||(i=new ue(Math.floor(e)));var o=Math.floor((t-1)/2),u=Z$(X$(function(s){return i.add(new ue(s-o).mul(n)).toNumber()}),Ef);return u(0,t)}function zw(e,t,r,n){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(r-1)))return{step:new ue(0),tickMin:new ue(0),tickMax:new ue(0)};var a=Ww(new ue(t).sub(e).div(r-1),n,i),o;e<=0&&t>=0?o=new ue(0):(o=new ue(e).add(t).div(2),o=o.sub(new ue(o).mod(a)));var u=Math.ceil(o.sub(e).div(a).toNumber()),s=Math.ceil(new ue(t).sub(o).div(a).toNumber()),c=u+s+1;return c>r?zw(e,t,r,n,i+1):(c<r&&(s=t>0?s+(r-c):s,u=t>0?u:u+(r-c)),{step:a,tickMin:o.sub(new ue(u).mul(a)),tickMax:o.add(new ue(s).mul(a))})}function lC(e){var t=si(e,2),r=t[0],n=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),u=Fw([r,n]),s=si(u,2),c=s[0],f=s[1];if(c===-1/0||f===1/0){var l=f===1/0?[c].concat($f(Ef(0,i-1).map(function(){return 1/0}))):[].concat($f(Ef(0,i-1).map(function(){return-1/0})),[f]);return r>n?Mf(l):l}if(c===f)return cC(c,i,a);var d=zw(c,f,o,a),h=d.step,y=d.tickMin,v=d.tickMax,p=Eo.rangeStep(y,v.add(new ue(.1).mul(h)),h);return r>n?Mf(p):p}function fC(e,t){var r=si(e,2),n=r[0],i=r[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Fw([n,i]),u=si(o,2),s=u[0],c=u[1];if(s===-1/0||c===1/0)return[n,i];if(s===c)return[s];var f=Math.max(t,2),l=Ww(new ue(c).sub(s).div(f-1),a,0),d=[].concat($f(Eo.rangeStep(new ue(s),new ue(c).sub(new ue(.99).mul(l)),l)),[c]);return n>i?Mf(d):d}var dC=Lw(lC),hC=Lw(fC),pC="Invariant failed";function xr(e,t){throw new Error(pC)}var vC=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Qr(e){"@babel/helpers - typeof";return Qr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qr(e)}function $a(){return $a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},$a.apply(this,arguments)}function yC(e,t){return xC(e)||bC(e,t)||gC(e,t)||mC()}function mC(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gC(e,t){if(e){if(typeof e=="string")return gg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gg(e,t)}}function gg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function bC(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function xC(e){if(Array.isArray(e))return e}function wC(e,t){if(e==null)return{};var r=OC(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function OC(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function _C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SC(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Gw(n.key),n)}}function AC(e,t,r){return t&&SC(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function PC(e,t,r){return t=Ca(t),jC(e,Uw()?Reflect.construct(t,r||[],Ca(e).constructor):t.apply(e,r))}function jC(e,t){if(t&&(Qr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TC(e)}function TC(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uw(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Uw=function(){return!!e})()}function Ca(e){return Ca=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ca(e)}function EC(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&kf(e,t)}function kf(e,t){return kf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},kf(e,t)}function Hw(e,t,r){return t=Gw(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Gw(e){var t=MC(e,"string");return Qr(t)=="symbol"?t:t+""}function MC(e,t){if(Qr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Qr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Mo=(function(e){function t(){return _C(this,t),PC(this,t,arguments)}return EC(t,e),AC(t,[{key:"render",value:function(){var n=this.props,i=n.offset,a=n.layout,o=n.width,u=n.dataKey,s=n.data,c=n.dataPointFormatter,f=n.xAxis,l=n.yAxis,d=wC(n,vC),h=G(d,!1);this.props.direction==="x"&&f.type!=="number"&&xr();var y=s.map(function(v){var p=c(v,u),g=p.x,x=p.y,w=p.value,O=p.errorVal;if(!O)return null;var m=[],b,_;if(Array.isArray(O)){var A=yC(O,2);b=A[0],_=A[1]}else b=_=O;if(a==="vertical"){var T=f.scale,$=x+i,j=$+o,E=$-o,M=T(w-b),k=T(w+_);m.push({x1:k,y1:j,x2:k,y2:E}),m.push({x1:M,y1:$,x2:k,y2:$}),m.push({x1:M,y1:j,x2:M,y2:E})}else if(a==="horizontal"){var C=l.scale,N=g+i,R=N-o,B=N+o,F=C(w-b),H=C(w+_);m.push({x1:R,y1:H,x2:B,y2:H}),m.push({x1:N,y1:F,x2:N,y2:H}),m.push({x1:R,y1:F,x2:B,y2:F})}return P.createElement(te,$a({className:"recharts-errorBar",key:"bar-".concat(m.map(function(Y){return"".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))},h),m.map(function(Y){return P.createElement("line",$a({},Y,{key:"line-".concat(Y.x1,"-").concat(Y.x2,"-").concat(Y.y1,"-").concat(Y.y2)}))}))});return P.createElement(te,{className:"recharts-errorBars"},y)}}])})(P.Component);Hw(Mo,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Hw(Mo,"displayName","ErrorBar");function ci(e){"@babel/helpers - typeof";return ci=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ci(e)}function bg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bg(Object(r),!0).forEach(function(n){$C(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function $C(e,t,r){return t=CC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CC(e){var t=kC(e,"string");return ci(t)=="symbol"?t:t+""}function kC(e,t){if(ci(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ci(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Kw=function(t){var r=t.children,n=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ye(r,Lr);if(!o)return null;var u=Lr.defaultProps,s=u!==void 0?rr(rr({},u),o.props):{},c;return o.props&&o.props.payload?c=o.props&&o.props.payload:a==="children"?c=(n||[]).reduce(function(f,l){var d=l.item,h=l.props,y=h.sectors||h.data||[];return f.concat(y.map(function(v){return{type:o.props.iconType||d.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):c=(n||[]).map(function(f){var l=f.item,d=l.type.defaultProps,h=d!==void 0?rr(rr({},d),l.props):{},y=h.dataKey,v=h.name,p=h.legendType,g=h.hide;return{inactive:g,dataKey:y,type:s.iconType||p||"square",color:hh(l),value:v||y,payload:h}}),rr(rr(rr({},s),Lr.getWithHeight(o,i)),{},{payload:c,item:o})};function li(e){"@babel/helpers - typeof";return li=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},li(e)}function xg(e){return RC(e)||DC(e)||NC(e)||IC()}function IC(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
17
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NC(e,t){if(e){if(typeof e=="string")return If(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return If(e,t)}}function DC(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function RC(e){if(Array.isArray(e))return If(e)}function If(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ge(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?wg(Object(r),!0).forEach(function(n){Fr(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Fr(e,t,r){return t=qC(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qC(e){var t=LC(e,"string");return li(t)=="symbol"?t:t+""}function LC(e,t){if(li(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(li(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function je(e,t,r){return Z(e)||Z(t)?r:Te(t)?Xe(e,t,r):V(t)?t(e):r}function Un(e,t,r,n){var i=R$(e,function(u){return je(u,t)});if(r==="number"){var a=i.filter(function(u){return L(u)||parseFloat(u)});return a.length?[jo(a),Gt(a)]:[1/0,-1/0]}var o=n?i.filter(function(u){return!Z(u)}):i;return o.map(function(u){return Te(u)||u instanceof Date?u:""})}var BC=function(t){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,u=(r=n?.length)!==null&&r!==void 0?r:0;if(u<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var s=a.range,c=0;c<u;c++){var f=c>0?i[c-1].coordinate:i[u-1].coordinate,l=i[c].coordinate,d=c>=u-1?i[0].coordinate:i[c+1].coordinate,h=void 0;if(qe(l-f)!==qe(d-l)){var y=[];if(qe(d-l)===qe(s[1]-s[0])){h=d;var v=l+s[1]-s[0];y[0]=Math.min(v,(v+f)/2),y[1]=Math.max(v,(v+f)/2)}else{h=f;var p=d+s[1]-s[0];y[0]=Math.min(l,(p+l)/2),y[1]=Math.max(l,(p+l)/2)}var g=[Math.min(l,(h+l)/2),Math.max(l,(h+l)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=i[c].index;break}}else{var x=Math.min(f,d),w=Math.max(f,d);if(t>(x+l)/2&&t<=(w+l)/2){o=i[c].index;break}}}else for(var O=0;O<u;O++)if(O===0&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O>0&&O<u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2&&t<=(n[O].coordinate+n[O+1].coordinate)/2||O===u-1&&t>(n[O].coordinate+n[O-1].coordinate)/2){o=n[O].index;break}return o},hh=function(t){var r,n=t,i=n.type.displayName,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,o=a.stroke,u=a.fill,s;switch(i){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:u;break;default:s=u;break}return s},FC=function(t){var r=t.barSize,n=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},u=Object.keys(a),s=0,c=u.length;s<c;s++)for(var f=a[u[s]].stackGroups,l=Object.keys(f),d=0,h=l.length;d<h;d++){var y=f[l[d]],v=y.items,p=y.cateAxisId,g=v.filter(function(_){return Tt(_.type).indexOf("Bar")>=0});if(g&&g.length){var x=g[0].type.defaultProps,w=x!==void 0?ge(ge({},x),g[0].props):g[0].props,O=w.barSize,m=w[p];o[m]||(o[m]=[]);var b=Z(O)?r:O;o[m].push({item:g[0],stackList:g.slice(1),barSize:Z(b)?void 0:Le(b,n,0)})}}return o},WC=function(t){var r=t.barGap,n=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,u=t.maxBarSize,s=o.length;if(s<1)return null;var c=Le(r,i,0,!0),f,l=[];if(o[0].barSize===+o[0].barSize){var d=!1,h=i/s,y=o.reduce(function(O,m){return O+m.barSize||0},0);y+=(s-1)*c,y>=i&&(y-=(s-1)*c,c=0),y>=i&&h>0&&(d=!0,h*=.9,y=s*h);var v=(i-y)/2>>0,p={offset:v-c,size:0};f=o.reduce(function(O,m){var b={item:m.item,position:{offset:p.offset+p.size+c,size:d?h:m.barSize}},_=[].concat(xg(O),[b]);return p=_[_.length-1].position,m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:p})}),_},l)}else{var g=Le(n,i,0,!0);i-2*g-(s-1)*c<=0&&(c=0);var x=(i-2*g-(s-1)*c)/s;x>1&&(x>>=0);var w=u===+u?Math.min(x,u):x;f=o.reduce(function(O,m,b){var _=[].concat(xg(O),[{item:m.item,position:{offset:g+(x+c)*b+(x-w)/2,size:w}}]);return m.stackList&&m.stackList.length&&m.stackList.forEach(function(A){_.push({item:A,position:_[_.length-1].position})}),_},l)}return f},zC=function(t,r,n,i){var a=n.children,o=n.width,u=n.margin,s=o-(u.left||0)-(u.right||0),c=Kw({children:a,legendWidth:s});if(c){var f=i||{},l=f.width,d=f.height,h=c.align,y=c.verticalAlign,v=c.layout;if((v==="vertical"||v==="horizontal"&&y==="middle")&&h!=="center"&&L(t[h]))return ge(ge({},t),{},Fr({},h,t[h]+(l||0)));if((v==="horizontal"||v==="vertical"&&h==="center")&&y!=="middle"&&L(t[y]))return ge(ge({},t),{},Fr({},y,t[y]+(d||0)))}return t},UC=function(t,r,n){return Z(r)?!0:t==="horizontal"?r==="yAxis":t==="vertical"||n==="x"?r==="xAxis":n==="y"?r==="yAxis":!0},Yw=function(t,r,n,i,a){var o=r.props.children,u=rt(o,Mo).filter(function(c){return UC(i,a,c.props.direction)});if(u&&u.length){var s=u.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var l=je(f,n);if(Z(l))return c;var d=Array.isArray(l)?[jo(l),Gt(l)]:[l,l],h=s.reduce(function(y,v){var p=je(f,v,0),g=d[0]-Math.abs(Array.isArray(p)?p[0]:p),x=d[1]+Math.abs(Array.isArray(p)?p[1]:p);return[Math.min(g,y[0]),Math.max(x,y[1])]},[1/0,-1/0]);return[Math.min(h[0],c[0]),Math.max(h[1],c[1])]},[1/0,-1/0])}return null},HC=function(t,r,n,i,a){var o=r.map(function(u){return Yw(t,u,n,a,i)}).filter(function(u){return!Z(u)});return o&&o.length?o.reduce(function(u,s){return[Math.min(u[0],s[0]),Math.max(u[1],s[1])]},[1/0,-1/0]):null},Vw=function(t,r,n,i,a){var o=r.map(function(s){var c=s.props.dataKey;return n==="number"&&c&&Yw(t,s,c,i)||Un(t,c,n,a)});if(n==="number")return o.reduce(function(s,c){return[Math.min(s[0],c[0]),Math.max(s[1],c[1])]},[1/0,-1/0]);var u={};return o.reduce(function(s,c){for(var f=0,l=c.length;f<l;f++)u[c[f]]||(u[c[f]]=!0,s.push(c[f]));return s},[])},Xw=function(t,r){return t==="horizontal"&&r==="xAxis"||t==="vertical"&&r==="yAxis"||t==="centric"&&r==="angleAxis"||t==="radial"&&r==="radiusAxis"},Zw=function(t,r,n,i){if(i)return t.map(function(s){return s.coordinate});var a,o,u=t.map(function(s){return s.coordinate===r&&(a=!0),s.coordinate===n&&(o=!0),s.coordinate});return a||u.push(r),o||u.push(n),u},jt=function(t,r,n){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,u=t.range,s=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,c=(r||n)&&o==="category"&&i.bandwidth?i.bandwidth()/s:0;if(c=t.axisType==="angleAxis"&&u?.length>=2?qe(u[0]-u[1])*2*c:c,r&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(l){var d=a?a.indexOf(l):l;return{coordinate:i(d)+c,value:l,offset:c}});return f.filter(function(l){return!gn(l.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(l,d){return{coordinate:i(l)+c,value:l,index:d,offset:c}}):i.ticks&&!n?i.ticks(t.tickCount).map(function(l){return{coordinate:i(l)+c,value:l,offset:c}}):i.domain().map(function(l,d){return{coordinate:i(l)+c,value:a?a[l]:l,index:d,offset:c}})},xl=new WeakMap,Xi=function(t,r){if(typeof r!="function")return t;xl.has(t)||xl.set(t,new WeakMap);var n=xl.get(t);if(n.has(r))return n.get(r);var i=function(){t.apply(void 0,arguments),r.apply(void 0,arguments)};return n.set(r,i),i},Qw=function(t,r,n){var i=t.scale,a=t.type,o=t.layout,u=t.axisType;if(i==="auto")return o==="radial"&&u==="radiusAxis"?{scale:ri(),realScaleType:"band"}:o==="radial"&&u==="angleAxis"?{scale:Pa(),realScaleType:"linear"}:a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?{scale:zn(),realScaleType:"point"}:a==="category"?{scale:ri(),realScaleType:"band"}:{scale:Pa(),realScaleType:"linear"};if(yr(i)){var s="scale".concat(fo(i));return{scale:(og[s]||zn)(),realScaleType:og[s]?s:"point"}}return V(i)?{scale:i}:{scale:zn(),realScaleType:"point"}},Og=1e-4,Jw=function(t){var r=t.domain();if(!(!r||r.length<=2)){var n=r.length,i=t.range(),a=Math.min(i[0],i[1])-Og,o=Math.max(i[0],i[1])+Og,u=t(r[0]),s=t(r[n-1]);(u<a||u>o||s<a||s>o)&&t.domain([r[0],r[n-1]])}},GC=function(t,r){if(!t)return null;for(var n=0,i=t.length;n<i;n++)if(t[n].item===r)return t[n].position;return null},KC=function(t,r){if(!r||r.length!==2||!L(r[0])||!L(r[1]))return t;var n=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]),a=[t[0],t[1]];return(!L(t[0])||t[0]<n)&&(a[0]=n),(!L(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<n&&(a[1]=n),a},YC=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0,u=0;u<r;++u){var s=gn(t[u][n][1])?t[u][n][0]:t[u][n][1];s>=0?(t[u][n][0]=a,t[u][n][1]=a+s,a=t[u][n][1]):(t[u][n][0]=o,t[u][n][1]=o+s,o=t[u][n][1])}},VC=function(t){var r=t.length;if(!(r<=0))for(var n=0,i=t[0].length;n<i;++n)for(var a=0,o=0;o<r;++o){var u=gn(t[o][n][1])?t[o][n][0]:t[o][n][1];u>=0?(t[o][n][0]=a,t[o][n][1]=a+u,a=t[o][n][1]):(t[o][n][0]=0,t[o][n][1]=0)}},XC={sign:YC,expand:RA,none:zr,silhouette:qA,wiggle:LA,positive:VC},ZC=function(t,r,n){var i=r.map(function(u){return u.props.dataKey}),a=XC[n],o=DA().keys(i).value(function(u,s){return+je(u,s,0)}).order(lf).offset(a);return o(t)},QC=function(t,r,n,i,a,o){if(!t)return null;var u=o?r.reverse():r,s={},c=u.reduce(function(l,d){var h,y=(h=d.type)!==null&&h!==void 0&&h.defaultProps?ge(ge({},d.type.defaultProps),d.props):d.props,v=y.stackId,p=y.hide;if(p)return l;var g=y[n],x=l[g]||{hasStack:!1,stackGroups:{}};if(Te(v)){var w=x.stackGroups[v]||{numericAxisId:n,cateAxisId:i,items:[]};w.items.push(d),x.hasStack=!0,x.stackGroups[v]=w}else x.stackGroups[bn("_stackId_")]={numericAxisId:n,cateAxisId:i,items:[d]};return ge(ge({},l),{},Fr({},g,x))},s),f={};return Object.keys(c).reduce(function(l,d){var h=c[d];if(h.hasStack){var y={};h.stackGroups=Object.keys(h.stackGroups).reduce(function(v,p){var g=h.stackGroups[p];return ge(ge({},v),{},Fr({},p,{numericAxisId:n,cateAxisId:i,items:g.items,stackedData:ZC(t,g.items,a)}))},y)}return ge(ge({},l),{},Fr({},d,h))},f)},eO=function(t,r){var n=r.realScaleType,i=r.type,a=r.tickCount,o=r.originalDomain,u=r.allowDecimals,s=n||r.scale;if(s!=="auto"&&s!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=dC(c,a,u);return t.domain([jo(f),Gt(f)]),{niceTicks:f}}if(a&&i==="number"){var l=t.domain(),d=hC(l,a,u);return{niceTicks:d}}return null};function _g(e){var t=e.axis,r=e.ticks,n=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Z(i[t.dataKey])){var u=sa(r,"value",i[t.dataKey]);if(u)return u.coordinate+n/2}return r[a]?r[a].coordinate+n/2:null}var s=je(i,Z(o)?t.dataKey:o);return Z(s)?null:t.scale(s)}var Sg=function(t){var r=t.axis,n=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,u=t.index;if(r.type==="category")return n[u]?n[u].coordinate+i:null;var s=je(o,r.dataKey,r.domain[u]);return Z(s)?null:r.scale(s)-a/2+i},JC=function(t){var r=t.numericAxis,n=r.scale.domain();if(r.type==="number"){var i=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]);return i<=0&&a>=0?0:a<0?a:i}return n[0]},ek=function(t,r){var n,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Te(a)){var o=r[a];if(o){var u=o.items.indexOf(t);return u>=0?o.stackedData[u]:null}}return null},tk=function(t){return t.reduce(function(r,n){return[jo(n.concat([r[0]]).filter(L)),Gt(n.concat([r[1]]).filter(L))]},[1/0,-1/0])},tO=function(t,r,n){return Object.keys(t).reduce(function(i,a){var o=t[a],u=o.stackedData,s=u.reduce(function(c,f){var l=tk(f.slice(r,n+1));return[Math.min(c[0],l[0]),Math.max(c[1],l[1])]},[1/0,-1/0]);return[Math.min(s[0],i[0]),Math.max(s[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},Ag=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Pg=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nf=function(t,r,n){if(V(t))return t(r,n);if(!Array.isArray(t))return r;var i=[];if(L(t[0]))i[0]=n?t[0]:Math.min(t[0],r[0]);else if(Ag.test(t[0])){var a=+Ag.exec(t[0])[1];i[0]=r[0]-a}else V(t[0])?i[0]=t[0](r[0]):i[0]=r[0];if(L(t[1]))i[1]=n?t[1]:Math.max(t[1],r[1]);else if(Pg.test(t[1])){var o=+Pg.exec(t[1])[1];i[1]=r[1]+o}else V(t[1])?i[1]=t[1](r[1]):i[1]=r[1];return i},ka=function(t,r,n){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!n||i>0)return i}if(t&&r&&r.length>=2){for(var a=Fd(r,function(l){return l.coordinate}),o=1/0,u=1,s=a.length;u<s;u++){var c=a[u],f=a[u-1];o=Math.min((c.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0},jg=function(t,r,n){return!t||!t.length||Zr(t,Xe(n,"type.defaultProps.domain"))?r:t},rO=function(t,r){var n=t.type.defaultProps?ge(ge({},t.type.defaultProps),t.props):t.props,i=n.dataKey,a=n.name,o=n.unit,u=n.formatter,s=n.tooltipType,c=n.chartType,f=n.hide;return ge(ge({},G(t,!1)),{},{dataKey:i,unit:o,formatter:u,name:a||i,color:hh(t),value:je(r,i),type:s,payload:r,chartType:c,hide:f})};function fi(e){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fi(e)}function Tg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function St(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Tg(Object(r),!0).forEach(function(n){nO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Tg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nO(e,t,r){return t=rk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rk(e){var t=nk(e,"string");return fi(t)=="symbol"?t:t+""}function nk(e,t){if(fi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ik(e,t){return sk(e)||uk(e,t)||ok(e,t)||ak()}function ak(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
18
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ok(e,t){if(e){if(typeof e=="string")return Eg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eg(e,t)}}function Eg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function uk(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function sk(e){if(Array.isArray(e))return e}var Ia=Math.PI/180,ck=function(t){return t*180/Math.PI},de=function(t,r,n,i){return{x:t+Math.cos(-Ia*i)*n,y:r+Math.sin(-Ia*i)*n}},iO=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(n.left||0)-(n.right||0)),Math.abs(r-(n.top||0)-(n.bottom||0)))/2},lk=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.startAngle,c=t.endAngle,f=Le(t.cx,o,o/2),l=Le(t.cy,u,u/2),d=iO(o,u,n),h=Le(t.innerRadius,d,0),y=Le(t.outerRadius,d,d*.8),v=Object.keys(r);return v.reduce(function(p,g){var x=r[g],w=x.domain,O=x.reversed,m;if(Z(x.range))i==="angleAxis"?m=[s,c]:i==="radiusAxis"&&(m=[h,y]),O&&(m=[m[1],m[0]]);else{m=x.range;var b=m,_=ik(b,2);s=_[0],c=_[1]}var A=Qw(x,a),T=A.realScaleType,$=A.scale;$.domain(w).range(m),Jw($);var j=eO($,St(St({},x),{},{realScaleType:T})),E=St(St(St({},x),j),{},{range:m,radius:y,realScaleType:T,scale:$,cx:f,cy:l,innerRadius:h,outerRadius:y,startAngle:s,endAngle:c});return St(St({},p),{},nO({},g,E))},{})},fk=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return Math.sqrt(Math.pow(n-a,2)+Math.pow(i-o,2))},dk=function(t,r){var n=t.x,i=t.y,a=r.cx,o=r.cy,u=fk({x:n,y:i},{x:a,y:o});if(u<=0)return{radius:u};var s=(n-a)/u,c=Math.acos(s);return i>o&&(c=2*Math.PI-c),{radius:u,angle:ck(c),angleInRadian:c}},hk=function(t){var r=t.startAngle,n=t.endAngle,i=Math.floor(r/360),a=Math.floor(n/360),o=Math.min(i,a);return{startAngle:r-o*360,endAngle:n-o*360}},pk=function(t,r){var n=r.startAngle,i=r.endAngle,a=Math.floor(n/360),o=Math.floor(i/360),u=Math.min(a,o);return t+u*360},Mg=function(t,r){var n=t.x,i=t.y,a=dk({x:n,y:i},r),o=a.radius,u=a.angle,s=r.innerRadius,c=r.outerRadius;if(o<s||o>c)return!1;if(o===0)return!0;var f=hk(r),l=f.startAngle,d=f.endAngle,h=u,y;if(l<=d){for(;h>d;)h-=360;for(;h<l;)h+=360;y=h>=l&&h<=d}else{for(;h>l;)h-=360;for(;h<d;)h+=360;y=h>=d&&h<=l}return y?St(St({},r),{},{radius:o,angle:pk(h,r)}):null},aO=function(t){return!D.isValidElement(t)&&!V(t)&&typeof t!="boolean"?t.className:""};function di(e){"@babel/helpers - typeof";return di=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},di(e)}var vk=["offset"];function yk(e){return xk(e)||bk(e)||gk(e)||mk()}function mk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
19
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gk(e,t){if(e){if(typeof e=="string")return Df(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Df(e,t)}}function bk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function xk(e){if(Array.isArray(e))return Df(e)}function Df(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function wk(e,t){if(e==null)return{};var r=Ok(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Ok(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function $g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Pe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?$g(Object(r),!0).forEach(function(n){_k(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):$g(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function _k(e,t,r){return t=Sk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sk(e){var t=Ak(e,"string");return di(t)=="symbol"?t:t+""}function Ak(e,t){if(di(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(di(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hi(){return hi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hi.apply(this,arguments)}var Pk=function(t){var r=t.value,n=t.formatter,i=Z(t.children)?r:t.children;return V(n)?n(i):i},jk=function(t,r){var n=qe(r-t),i=Math.min(Math.abs(r-t),360);return n*i},Tk=function(t,r,n){var i=t.position,a=t.viewBox,o=t.offset,u=t.className,s=a,c=s.cx,f=s.cy,l=s.innerRadius,d=s.outerRadius,h=s.startAngle,y=s.endAngle,v=s.clockWise,p=(l+d)/2,g=jk(h,y),x=g>=0?1:-1,w,O;i==="insideStart"?(w=h+x*o,O=v):i==="insideEnd"?(w=y-x*o,O=!v):i==="end"&&(w=y+x*o,O=v),O=g<=0?O:!O;var m=de(c,f,p,w),b=de(c,f,p,w+(O?1:-1)*359),_="M".concat(m.x,",").concat(m.y,`
|
|
20
20
|
A`).concat(p,",").concat(p,",0,1,").concat(O?0:1,`,
|
|
21
|
-
`).concat(b.x,",").concat(b.y),A=Z(t.id)?bn("recharts-radial-line-"):t.id;return P.createElement("text",hi({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:A,d:_})),P.createElement("textPath",{xlinkHref:"#".concat(A)},r))},
|
|
22
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
21
|
+
`).concat(b.x,",").concat(b.y),A=Z(t.id)?bn("recharts-radial-line-"):t.id;return P.createElement("text",hi({},n,{dominantBaseline:"central",className:J("recharts-radial-bar-label",u)}),P.createElement("defs",null,P.createElement("path",{id:A,d:_})),P.createElement("textPath",{xlinkHref:"#".concat(A)},r))},Ek=function(t){var r=t.viewBox,n=t.offset,i=t.position,a=r,o=a.cx,u=a.cy,s=a.innerRadius,c=a.outerRadius,f=a.startAngle,l=a.endAngle,d=(f+l)/2;if(i==="outside"){var h=de(o,u,c+n,d),y=h.x,v=h.y;return{x:y,y:v,textAnchor:y>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:u,textAnchor:"middle",verticalAnchor:"end"};var p=(s+c)/2,g=de(o,u,p,d),x=g.x,w=g.y;return{x,y:w,textAnchor:"middle",verticalAnchor:"middle"}},Mk=function(t){var r=t.viewBox,n=t.parentViewBox,i=t.offset,a=t.position,o=r,u=o.x,s=o.y,c=o.width,f=o.height,l=f>=0?1:-1,d=l*i,h=l>0?"end":"start",y=l>0?"start":"end",v=c>=0?1:-1,p=v*i,g=v>0?"end":"start",x=v>0?"start":"end";if(a==="top"){var w={x:u+c/2,y:s-l*i,textAnchor:"middle",verticalAnchor:h};return Pe(Pe({},w),n?{height:Math.max(s-n.y,0),width:c}:{})}if(a==="bottom"){var O={x:u+c/2,y:s+f+d,textAnchor:"middle",verticalAnchor:y};return Pe(Pe({},O),n?{height:Math.max(n.y+n.height-(s+f),0),width:c}:{})}if(a==="left"){var m={x:u-p,y:s+f/2,textAnchor:g,verticalAnchor:"middle"};return Pe(Pe({},m),n?{width:Math.max(m.x-n.x,0),height:f}:{})}if(a==="right"){var b={x:u+c+p,y:s+f/2,textAnchor:x,verticalAnchor:"middle"};return Pe(Pe({},b),n?{width:Math.max(n.x+n.width-b.x,0),height:f}:{})}var _=n?{width:c,height:f}:{};return a==="insideLeft"?Pe({x:u+p,y:s+f/2,textAnchor:x,verticalAnchor:"middle"},_):a==="insideRight"?Pe({x:u+c-p,y:s+f/2,textAnchor:g,verticalAnchor:"middle"},_):a==="insideTop"?Pe({x:u+c/2,y:s+d,textAnchor:"middle",verticalAnchor:y},_):a==="insideBottom"?Pe({x:u+c/2,y:s+f-d,textAnchor:"middle",verticalAnchor:h},_):a==="insideTopLeft"?Pe({x:u+p,y:s+d,textAnchor:x,verticalAnchor:y},_):a==="insideTopRight"?Pe({x:u+c-p,y:s+d,textAnchor:g,verticalAnchor:y},_):a==="insideBottomLeft"?Pe({x:u+p,y:s+f-d,textAnchor:x,verticalAnchor:h},_):a==="insideBottomRight"?Pe({x:u+c-p,y:s+f-d,textAnchor:g,verticalAnchor:h},_):mn(a)&&(L(a.x)||cr(a.x))&&(L(a.y)||cr(a.y))?Pe({x:u+Le(a.x,c),y:s+Le(a.y,f),textAnchor:"end",verticalAnchor:"end"},_):Pe({x:u+c/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},_)},$k=function(t){return"cx"in t&&L(t.cx)};function $e(e){var t=e.offset,r=t===void 0?5:t,n=wk(e,vk),i=Pe({offset:r},n),a=i.viewBox,o=i.position,u=i.value,s=i.children,c=i.content,f=i.className,l=f===void 0?"":f,d=i.textBreakAll;if(!a||Z(u)&&Z(s)&&!D.isValidElement(c)&&!V(c))return null;if(D.isValidElement(c))return D.cloneElement(c,i);var h;if(V(c)){if(h=D.createElement(c,i),D.isValidElement(h))return h}else h=Pk(i);var y=$k(a),v=G(i,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Tk(i,h,v);var p=y?Ek(i):Mk(i);return P.createElement(gr,hi({className:J("recharts-label",l)},v,p,{breakAll:d}),h)}$e.displayName="Label";var oO=function(t){var r=t.cx,n=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,u=t.r,s=t.radius,c=t.innerRadius,f=t.outerRadius,l=t.x,d=t.y,h=t.top,y=t.left,v=t.width,p=t.height,g=t.clockWise,x=t.labelViewBox;if(x)return x;if(L(v)&&L(p)){if(L(l)&&L(d))return{x:l,y:d,width:v,height:p};if(L(h)&&L(y))return{x:h,y,width:v,height:p}}return L(l)&&L(d)?{x:l,y:d,width:0,height:0}:L(r)&&L(n)?{cx:r,cy:n,startAngle:a||i||0,endAngle:o||i||0,innerRadius:c||0,outerRadius:f||s||u||0,clockWise:g}:t.viewBox?t.viewBox:{}},Ck=function(t,r){return t?t===!0?P.createElement($e,{key:"label-implicit",viewBox:r}):Te(t)?P.createElement($e,{key:"label-implicit",viewBox:r,value:t}):D.isValidElement(t)?t.type===$e?D.cloneElement(t,{key:"label-implicit",viewBox:r}):P.createElement($e,{key:"label-implicit",content:t,viewBox:r}):V(t)?P.createElement($e,{key:"label-implicit",content:t,viewBox:r}):mn(t)?P.createElement($e,hi({viewBox:r},t,{key:"label-implicit"})):null:null},kk=function(t,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&n&&!t.label)return null;var i=t.children,a=oO(t),o=rt(i,$e).map(function(s,c){return D.cloneElement(s,{viewBox:r||a,key:"label-".concat(c)})});if(!n)return o;var u=Ck(t.label,r||a);return[u].concat(yk(o))};$e.parseViewBox=oO;$e.renderCallByParent=kk;var wl,Cg;function Ik(){if(Cg)return wl;Cg=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return wl=e,wl}var Nk=Ik();const Dk=se(Nk);function pi(e){"@babel/helpers - typeof";return pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pi(e)}var Rk=["valueAccessor"],qk=["data","dataKey","clockWise","id","textBreakAll"];function Lk(e){return zk(e)||Wk(e)||Fk(e)||Bk()}function Bk(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
22
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fk(e,t){if(e){if(typeof e=="string")return Rf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Rf(e,t)}}function Wk(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zk(e){if(Array.isArray(e))return Rf(e)}function Rf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Na.apply(this,arguments)}function kg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ig(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?kg(Object(r),!0).forEach(function(n){Uk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):kg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Uk(e,t,r){return t=Hk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Hk(e){var t=Gk(e,"string");return pi(t)=="symbol"?t:t+""}function Gk(e,t){if(pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ng(e,t){if(e==null)return{};var r=Kk(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Kk(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Yk=function(t){return Array.isArray(t.value)?Dk(t.value):t.value};function Mt(e){var t=e.valueAccessor,r=t===void 0?Yk:t,n=Ng(e,Rk),i=n.data,a=n.dataKey,o=n.clockWise,u=n.id,s=n.textBreakAll,c=Ng(n,qk);return!i||!i.length?null:P.createElement(te,{className:"recharts-label-list"},i.map(function(f,l){var d=Z(a)?r(f,l):je(f&&f.payload,a),h=Z(u)?{}:{id:"".concat(u,"-").concat(l)};return P.createElement($e,Na({},G(f,!0),c,h,{parentViewBox:f.parentViewBox,value:d,textBreakAll:s,viewBox:$e.parseViewBox(Z(o)?f:Ig(Ig({},f),{},{clockWise:o})),key:"label-".concat(l),index:l}))}))}Mt.displayName="LabelList";function Vk(e,t){return e?e===!0?P.createElement(Mt,{key:"labelList-implicit",data:t}):P.isValidElement(e)||V(e)?P.createElement(Mt,{key:"labelList-implicit",data:t,content:e}):mn(e)?P.createElement(Mt,Na({data:t},e,{key:"labelList-implicit"})):null:null}function Xk(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&r&&!e.label)return null;var n=e.children,i=rt(n,Mt).map(function(o,u){return D.cloneElement(o,{data:t,key:"labelList-".concat(u)})});if(!r)return i;var a=Vk(e.label,t);return[a].concat(Lk(i))}Mt.renderCallByParent=Xk;function vi(e){"@babel/helpers - typeof";return vi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vi(e)}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}function Dg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Dg(Object(r),!0).forEach(function(n){Zk(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Dg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Zk(e,t,r){return t=Qk(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Qk(e){var t=Jk(e,"string");return vi(t)=="symbol"?t:t+""}function Jk(e,t){if(vi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(vi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var eI=function(t,r){var n=qe(r-t),i=Math.min(Math.abs(r-t),359.999);return n*i},Zi=function(t){var r=t.cx,n=t.cy,i=t.radius,a=t.angle,o=t.sign,u=t.isExternal,s=t.cornerRadius,c=t.cornerIsExternal,f=s*(u?1:-1)+i,l=Math.asin(s/f)/Ia,d=c?a:a+o*l,h=de(r,n,f,d),y=de(r,n,i,d),v=c?a-o*l:a,p=de(r,n,f*Math.cos(l*Ia),v);return{center:h,circleTangency:y,lineTangency:p,theta:l}},uO=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,u=t.endAngle,s=eI(o,u),c=o+s,f=de(r,n,a,o),l=de(r,n,a,c),d="M ".concat(f.x,",").concat(f.y,`
|
|
23
23
|
A `).concat(a,",").concat(a,`,0,
|
|
24
24
|
`).concat(+(Math.abs(s)>180),",").concat(+(o>c),`,
|
|
25
25
|
`).concat(l.x,",").concat(l.y,`
|
|
26
26
|
`);if(i>0){var h=de(r,n,i,o),y=de(r,n,i,c);d+="L ".concat(y.x,",").concat(y.y,`
|
|
27
27
|
A `).concat(i,",").concat(i,`,0,
|
|
28
28
|
`).concat(+(Math.abs(s)>180),",").concat(+(o<=c),`,
|
|
29
|
-
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},
|
|
29
|
+
`).concat(h.x,",").concat(h.y," Z")}else d+="L ".concat(r,",").concat(n," Z");return d},tI=function(t){var r=t.cx,n=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,u=t.forceCornerRadius,s=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,l=qe(f-c),d=Zi({cx:r,cy:n,radius:a,angle:c,sign:l,cornerRadius:o,cornerIsExternal:s}),h=d.circleTangency,y=d.lineTangency,v=d.theta,p=Zi({cx:r,cy:n,radius:a,angle:f,sign:-l,cornerRadius:o,cornerIsExternal:s}),g=p.circleTangency,x=p.lineTangency,w=p.theta,O=s?Math.abs(c-f):Math.abs(c-f)-v-w;if(O<0)return u?"M ".concat(y.x,",").concat(y.y,`
|
|
30
30
|
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
|
|
31
31
|
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
|
|
32
|
-
`):
|
|
32
|
+
`):uO({cx:r,cy:n,innerRadius:i,outerRadius:a,startAngle:c,endAngle:f});var m="M ".concat(y.x,",").concat(y.y,`
|
|
33
33
|
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(h.x,",").concat(h.y,`
|
|
34
34
|
A`).concat(a,",").concat(a,",0,").concat(+(O>180),",").concat(+(l<0),",").concat(g.x,",").concat(g.y,`
|
|
35
35
|
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(x.x,",").concat(x.y,`
|
|
36
|
-
`);if(i>0){var b=Zi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,A=b.lineTangency,T=b.theta
|
|
36
|
+
`);if(i>0){var b=Zi({cx:r,cy:n,radius:i,angle:c,sign:l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),_=b.circleTangency,A=b.lineTangency,T=b.theta,$=Zi({cx:r,cy:n,radius:i,angle:f,sign:-l,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=$.circleTangency,E=$.lineTangency,M=$.theta,k=s?Math.abs(c-f):Math.abs(c-f)-T-M;if(k<0&&o===0)return"".concat(m,"L").concat(r,",").concat(n,"Z");m+="L".concat(E.x,",").concat(E.y,`
|
|
37
37
|
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(j.x,",").concat(j.y,`
|
|
38
38
|
A`).concat(i,",").concat(i,",0,").concat(+(k>180),",").concat(+(l>0),",").concat(_.x,",").concat(_.y,`
|
|
39
|
-
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},nI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},cO=function(t){var r=Dg(Dg({},nI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var h=J("recharts-sector",d),y=o-a,v=Le(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=rI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):p=sO({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",Rf({},G(r,!0),{className:h,d:p,role:"img"}))};function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qf.apply(this,arguments)}function Rg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rg(Object(r),!0).forEach(function(n){iI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function iI(e,t,r){return t=aI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function aI(e){var t=oI(e,"string");return yi(t)=="symbol"?t:t+""}function oI(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Lg={curveBasisClosed:PA,curveBasisOpen:jA,curveBasis:AA,curveBumpX:fA,curveBumpY:dA,curveLinearClosed:TA,curveLinear:po,curveMonotoneX:EA,curveMonotoneY:MA,curveNatural:CA,curveStep:$A,curveStepAfter:IA,curveStepBefore:kA},Qi=function(t){return t.x===+t.x&&t.y===+t.y},In=function(t){return t.x},Nn=function(t){return t.y},uI=function(t,r){if(V(t))return t;var n="curve".concat(fo(t));return(n==="curveMonotone"||n==="curveBump")&&r?Lg["".concat(n).concat(r==="vertical"?"Y":"X")]:Lg[n]||po},sI=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=uI(n,u),l=c?a.filter(function(v){return Qi(v)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(v){return Qi(v)}):o,y=l.map(function(v,p){return qg(qg({},v),{},{base:h[p]})});return u==="vertical"?d=zi().y(Nn).x1(In).x0(function(v){return v.base.x}):d=zi().x(In).y1(Nn).y0(function(v){return v.base.y}),d.defined(Qi).curve(f),d(y)}return u==="vertical"&&L(o)?d=zi().y(Nn).x1(In).x0(o):L(o)?d=zi().x(In).y1(Nn).y0(o):d=ox().x(In).y(Nn),d.defined(Qi).curve(f),d(l)},Wr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?sI(t):i;return D.createElement("path",qf({},G(t,!1),ca(t),{className:J("recharts-curve",r),d:o,ref:a}))},Ol={exports:{}},_l,Bg;function cI(){if(Bg)return _l;Bg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _l=e,_l}var Sl,Fg;function lI(){if(Fg)return Sl;Fg=1;var e=cI();function t(){}function r(){}return r.resetWarningCache=t,Sl=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Sl}var Wg;function fI(){return Wg||(Wg=1,Ol.exports=lI()()),Ol.exports}var dI=fI();const ae=se(dI);var hI=Object.getOwnPropertyNames,pI=Object.getOwnPropertySymbols,vI=Object.prototype.hasOwnProperty;function zg(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ji(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function yI(e){return e?.[Symbol.toStringTag]}function Ug(e){return hI(e).concat(pI(e))}var mI=Object.hasOwn||(function(e,t){return vI.call(e,t)});function Pr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var gI="__v",bI="__o",xI="_owner",Hg=Object.getOwnPropertyDescriptor,Gg=Object.keys;function wI(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function OI(e,t){return Pr(e.getTime(),t.getTime())}function _I(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function SI(e,t){return e===t}function Kg(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,s=0;(o=a.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(u=c.next())&&!u.done;){if(i[l]){l++;continue}var d=o.value,h=u.value;if(r.equals(d[0],h[0],s,l,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}var AI=Pr;function PI(e,t,r){var n=Gg(e),i=n.length;if(Gg(t).length!==i)return!1;for(;i-- >0;)if(!lO(e,t,r,n[i]))return!1;return!0}function Dn(e,t,r){var n=Ug(e),i=n.length;if(Ug(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!lO(e,t,r,a)||(o=Hg(e,a),u=Hg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function jI(e,t){return Pr(e.valueOf(),t.valueOf())}function TI(e,t){return e.source===t.source&&e.flags===t.flags}function Yg(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var s=t.values(),c=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function EI(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function MI(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function lO(e,t,r,n){return(n===xI||n===bI||n===gI)&&(e.$$typeof||t.$$typeof)?!0:mI(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var CI="[object Arguments]",$I="[object Boolean]",kI="[object Date]",II="[object Error]",NI="[object Map]",DI="[object Number]",RI="[object Object]",qI="[object RegExp]",LI="[object Set]",BI="[object String]",FI="[object URL]",WI=Array.isArray,Vg=typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView:null,Xg=Object.assign,zI=Object.prototype.toString.call.bind(Object.prototype.toString);function UI(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,d=e.areUrlsEqual,h=e.unknownTagComparators;return function(v,p,g){if(v===p)return!0;if(v==null||p==null)return!1;var x=typeof v;if(x!==typeof p)return!1;if(x!=="object")return x==="number"?o(v,p,g):x==="function"?i(v,p,g):!1;var w=v.constructor;if(w!==p.constructor)return!1;if(w===Object)return u(v,p,g);if(WI(v))return t(v,p,g);if(Vg!=null&&Vg(v))return l(v,p,g);if(w===Date)return r(v,p,g);if(w===RegExp)return c(v,p,g);if(w===Map)return a(v,p,g);if(w===Set)return f(v,p,g);var O=zI(v);if(O===kI)return r(v,p,g);if(O===qI)return c(v,p,g);if(O===NI)return a(v,p,g);if(O===LI)return f(v,p,g);if(O===RI)return typeof v.then!="function"&&typeof p.then!="function"&&u(v,p,g);if(O===FI)return d(v,p,g);if(O===II)return n(v,p,g);if(O===CI)return u(v,p,g);if(O===$I||O===DI||O===BI)return s(v,p,g);if(h){var m=h[O];if(!m){var b=yI(v);b&&(m=h[b])}if(m)return m(v,p,g)}return!1}}function HI(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Dn:wI,areDatesEqual:OI,areErrorsEqual:_I,areFunctionsEqual:SI,areMapsEqual:n?zg(Kg,Dn):Kg,areNumbersEqual:AI,areObjectsEqual:n?Dn:PI,arePrimitiveWrappersEqual:jI,areRegExpsEqual:TI,areSetsEqual:n?zg(Yg,Dn):Yg,areTypedArraysEqual:n?Dn:EI,areUrlsEqual:MI,unknownTagComparators:void 0};if(r&&(i=Xg({},i,r(i))),t){var a=Ji(i.areArraysEqual),o=Ji(i.areMapsEqual),u=Ji(i.areObjectsEqual),s=Ji(i.areSetsEqual);i=Xg({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function GI(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function KI(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,h=f.meta;return r(s,c,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,c){return r(s,c,o)}}var YI=Qt();Qt({strict:!0});Qt({circular:!0});Qt({circular:!0,strict:!0});Qt({createInternalComparator:function(){return Pr}});Qt({strict:!0,createInternalComparator:function(){return Pr}});Qt({circular:!0,createInternalComparator:function(){return Pr}});Qt({circular:!0,createInternalComparator:function(){return Pr},strict:!0});function Qt(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=HI(e),s=UI(u),c=n?n(s):GI(s);return KI({circular:r,comparator:s,createState:i,equals:c,strict:o})}function VI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Zg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):VI(i)};requestAnimationFrame(n)}function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function XI(e){return eN(e)||JI(e)||QI(e)||ZI()}function ZI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
41
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
42
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
43
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
44
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
45
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
46
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
39
|
+
A`).concat(o,",").concat(o,",0,0,").concat(+(l<0),",").concat(A.x,",").concat(A.y,"Z")}else m+="L".concat(r,",").concat(n,"Z");return m},rI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},sO=function(t){var r=Rg(Rg({},rI),t),n=r.cx,i=r.cy,a=r.innerRadius,o=r.outerRadius,u=r.cornerRadius,s=r.forceCornerRadius,c=r.cornerIsExternal,f=r.startAngle,l=r.endAngle,d=r.className;if(o<a||f===l)return null;var h=J("recharts-sector",d),y=o-a,v=Le(u,y,0,!0),p;return v>0&&Math.abs(f-l)<360?p=tI({cx:n,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(v,y/2),forceCornerRadius:s,cornerIsExternal:c,startAngle:f,endAngle:l}):p=uO({cx:n,cy:i,innerRadius:a,outerRadius:o,startAngle:f,endAngle:l}),P.createElement("path",qf({},G(r,!0),{className:h,d:p,role:"img"}))};function yi(e){"@babel/helpers - typeof";return yi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yi(e)}function Lf(){return Lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Lf.apply(this,arguments)}function qg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lg(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qg(Object(r),!0).forEach(function(n){nI(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qg(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nI(e,t,r){return t=iI(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iI(e){var t=aI(e,"string");return yi(t)=="symbol"?t:t+""}function aI(e,t){if(yi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(yi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bg={curveBasisClosed:AA,curveBasisOpen:PA,curveBasis:SA,curveBumpX:lA,curveBumpY:fA,curveLinearClosed:jA,curveLinear:po,curveMonotoneX:TA,curveMonotoneY:EA,curveNatural:MA,curveStep:$A,curveStepAfter:kA,curveStepBefore:CA},Qi=function(t){return t.x===+t.x&&t.y===+t.y},In=function(t){return t.x},Nn=function(t){return t.y},oI=function(t,r){if(V(t))return t;var n="curve".concat(fo(t));return(n==="curveMonotone"||n==="curveBump")&&r?Bg["".concat(n).concat(r==="vertical"?"Y":"X")]:Bg[n]||po},uI=function(t){var r=t.type,n=r===void 0?"linear":r,i=t.points,a=i===void 0?[]:i,o=t.baseLine,u=t.layout,s=t.connectNulls,c=s===void 0?!1:s,f=oI(n,u),l=c?a.filter(function(v){return Qi(v)}):a,d;if(Array.isArray(o)){var h=c?o.filter(function(v){return Qi(v)}):o,y=l.map(function(v,p){return Lg(Lg({},v),{},{base:h[p]})});return u==="vertical"?d=zi().y(Nn).x1(In).x0(function(v){return v.base.x}):d=zi().x(In).y1(Nn).y0(function(v){return v.base.y}),d.defined(Qi).curve(f),d(y)}return u==="vertical"&&L(o)?d=zi().y(Nn).x1(In).x0(o):L(o)?d=zi().x(In).y1(Nn).y0(o):d=ax().x(In).y(Nn),d.defined(Qi).curve(f),d(l)},Wr=function(t){var r=t.className,n=t.points,i=t.path,a=t.pathRef;if((!n||!n.length)&&!i)return null;var o=n&&n.length?uI(t):i;return D.createElement("path",Lf({},G(t,!1),ca(t),{className:J("recharts-curve",r),d:o,ref:a}))},Ol={exports:{}},_l,Fg;function sI(){if(Fg)return _l;Fg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _l=e,_l}var Sl,Wg;function cI(){if(Wg)return Sl;Wg=1;var e=sI();function t(){}function r(){}return r.resetWarningCache=t,Sl=function(){function n(o,u,s,c,f,l){if(l!==e){var d=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw d.name="Invariant Violation",d}}n.isRequired=n;function i(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Sl}var zg;function lI(){return zg||(zg=1,Ol.exports=cI()()),Ol.exports}var fI=lI();const ae=se(fI);var dI=Object.getOwnPropertyNames,hI=Object.getOwnPropertySymbols,pI=Object.prototype.hasOwnProperty;function Ug(e,t){return function(n,i,a){return e(n,i,a)&&t(n,i,a)}}function Ji(e){return function(r,n,i){if(!r||!n||typeof r!="object"||typeof n!="object")return e(r,n,i);var a=i.cache,o=a.get(r),u=a.get(n);if(o&&u)return o===n&&u===r;a.set(r,n),a.set(n,r);var s=e(r,n,i);return a.delete(r),a.delete(n),s}}function vI(e){return e?.[Symbol.toStringTag]}function Hg(e){return dI(e).concat(hI(e))}var yI=Object.hasOwn||(function(e,t){return pI.call(e,t)});function Pr(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var mI="__v",gI="__o",bI="_owner",Gg=Object.getOwnPropertyDescriptor,Kg=Object.keys;function xI(e,t,r){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(!r.equals(e[n],t[n],n,n,e,t,r))return!1;return!0}function wI(e,t){return Pr(e.getTime(),t.getTime())}function OI(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function _I(e,t){return e===t}function Yg(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.entries(),o,u,s=0;(o=a.next())&&!o.done;){for(var c=t.entries(),f=!1,l=0;(u=c.next())&&!u.done;){if(i[l]){l++;continue}var d=o.value,h=u.value;if(r.equals(d[0],h[0],s,l,e,t,r)&&r.equals(d[1],h[1],d[0],h[0],e,t,r)){f=i[l]=!0;break}l++}if(!f)return!1;s++}return!0}var SI=Pr;function AI(e,t,r){var n=Kg(e),i=n.length;if(Kg(t).length!==i)return!1;for(;i-- >0;)if(!cO(e,t,r,n[i]))return!1;return!0}function Dn(e,t,r){var n=Hg(e),i=n.length;if(Hg(t).length!==i)return!1;for(var a,o,u;i-- >0;)if(a=n[i],!cO(e,t,r,a)||(o=Gg(e,a),u=Gg(t,a),(o||u)&&(!o||!u||o.configurable!==u.configurable||o.enumerable!==u.enumerable||o.writable!==u.writable)))return!1;return!0}function PI(e,t){return Pr(e.valueOf(),t.valueOf())}function jI(e,t){return e.source===t.source&&e.flags===t.flags}function Vg(e,t,r){var n=e.size;if(n!==t.size)return!1;if(!n)return!0;for(var i=new Array(n),a=e.values(),o,u;(o=a.next())&&!o.done;){for(var s=t.values(),c=!1,f=0;(u=s.next())&&!u.done;){if(!i[f]&&r.equals(o.value,u.value,o.value,u.value,e,t,r)){c=i[f]=!0;break}f++}if(!c)return!1}return!0}function TI(e,t){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(e[r]!==t[r])return!1;return!0}function EI(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function cO(e,t,r,n){return(n===bI||n===gI||n===mI)&&(e.$$typeof||t.$$typeof)?!0:yI(t,n)&&r.equals(e[n],t[n],n,n,e,t,r)}var MI="[object Arguments]",$I="[object Boolean]",CI="[object Date]",kI="[object Error]",II="[object Map]",NI="[object Number]",DI="[object Object]",RI="[object RegExp]",qI="[object Set]",LI="[object String]",BI="[object URL]",FI=Array.isArray,Xg=typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView:null,Zg=Object.assign,WI=Object.prototype.toString.call.bind(Object.prototype.toString);function zI(e){var t=e.areArraysEqual,r=e.areDatesEqual,n=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,u=e.areObjectsEqual,s=e.arePrimitiveWrappersEqual,c=e.areRegExpsEqual,f=e.areSetsEqual,l=e.areTypedArraysEqual,d=e.areUrlsEqual,h=e.unknownTagComparators;return function(v,p,g){if(v===p)return!0;if(v==null||p==null)return!1;var x=typeof v;if(x!==typeof p)return!1;if(x!=="object")return x==="number"?o(v,p,g):x==="function"?i(v,p,g):!1;var w=v.constructor;if(w!==p.constructor)return!1;if(w===Object)return u(v,p,g);if(FI(v))return t(v,p,g);if(Xg!=null&&Xg(v))return l(v,p,g);if(w===Date)return r(v,p,g);if(w===RegExp)return c(v,p,g);if(w===Map)return a(v,p,g);if(w===Set)return f(v,p,g);var O=WI(v);if(O===CI)return r(v,p,g);if(O===RI)return c(v,p,g);if(O===II)return a(v,p,g);if(O===qI)return f(v,p,g);if(O===DI)return typeof v.then!="function"&&typeof p.then!="function"&&u(v,p,g);if(O===BI)return d(v,p,g);if(O===kI)return n(v,p,g);if(O===MI)return u(v,p,g);if(O===$I||O===NI||O===LI)return s(v,p,g);if(h){var m=h[O];if(!m){var b=vI(v);b&&(m=h[b])}if(m)return m(v,p,g)}return!1}}function UI(e){var t=e.circular,r=e.createCustomConfig,n=e.strict,i={areArraysEqual:n?Dn:xI,areDatesEqual:wI,areErrorsEqual:OI,areFunctionsEqual:_I,areMapsEqual:n?Ug(Yg,Dn):Yg,areNumbersEqual:SI,areObjectsEqual:n?Dn:AI,arePrimitiveWrappersEqual:PI,areRegExpsEqual:jI,areSetsEqual:n?Ug(Vg,Dn):Vg,areTypedArraysEqual:n?Dn:TI,areUrlsEqual:EI,unknownTagComparators:void 0};if(r&&(i=Zg({},i,r(i))),t){var a=Ji(i.areArraysEqual),o=Ji(i.areMapsEqual),u=Ji(i.areObjectsEqual),s=Ji(i.areSetsEqual);i=Zg({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:u,areSetsEqual:s})}return i}function HI(e){return function(t,r,n,i,a,o,u){return e(t,r,u)}}function GI(e){var t=e.circular,r=e.comparator,n=e.createState,i=e.equals,a=e.strict;if(n)return function(s,c){var f=n(),l=f.cache,d=l===void 0?t?new WeakMap:void 0:l,h=f.meta;return r(s,c,{cache:d,equals:i,meta:h,strict:a})};if(t)return function(s,c){return r(s,c,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(s,c){return r(s,c,o)}}var KI=Qt();Qt({strict:!0});Qt({circular:!0});Qt({circular:!0,strict:!0});Qt({createInternalComparator:function(){return Pr}});Qt({strict:!0,createInternalComparator:function(){return Pr}});Qt({circular:!0,createInternalComparator:function(){return Pr}});Qt({circular:!0,createInternalComparator:function(){return Pr},strict:!0});function Qt(e){e===void 0&&(e={});var t=e.circular,r=t===void 0?!1:t,n=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,u=UI(e),s=zI(u),c=n?n(s):HI(s);return GI({circular:r,comparator:s,createState:i,equals:c,strict:o})}function YI(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Qg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=-1,n=function i(a){r<0&&(r=a),a-r>t?(e(a),r=-1):YI(i)};requestAnimationFrame(n)}function Bf(e){"@babel/helpers - typeof";return Bf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bf(e)}function VI(e){return JI(e)||QI(e)||ZI(e)||XI()}function XI(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
40
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZI(e,t){if(e){if(typeof e=="string")return Jg(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Jg(e,t)}}function Jg(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QI(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JI(e){if(Array.isArray(e))return e}function eN(){var e={},t=function(){return null},r=!1,n=function i(a){if(!r){if(Array.isArray(a)){if(!a.length)return;var o=a,u=VI(o),s=u[0],c=u.slice(1);if(typeof s=="number"){Qg(i.bind(null,c),s);return}i(s),Qg(i.bind(null,c));return}Bf(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){r=!0},start:function(a){r=!1,n(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function mi(e){"@babel/helpers - typeof";return mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mi(e)}function eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?eb(Object(r),!0).forEach(function(n){lO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lO(e,t,r){return t=tN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tN(e){var t=rN(e,"string");return mi(t)==="symbol"?t:String(t)}function rN(e,t){if(mi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(mi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nN=function(t,r){return[Object.keys(t),Object.keys(r)].reduce(function(n,i){return n.filter(function(a){return i.includes(a)})})},iN=function(t){return t},aN=function(t){return t.replace(/([A-Z])/g,function(r){return"-".concat(r.toLowerCase())})},Hn=function(t,r){return Object.keys(r).reduce(function(n,i){return tb(tb({},n),{},lO({},i,t(i,r[i])))},{})},rb=function(t,r,n){return t.map(function(i){return"".concat(aN(i)," ").concat(r,"ms ").concat(n)}).join(",")};function oN(e,t){return cN(e)||sN(e,t)||fO(e,t)||uN()}function uN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
41
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function cN(e){if(Array.isArray(e))return e}function lN(e){return hN(e)||dN(e)||fO(e)||fN()}function fN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
42
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fO(e,t){if(e){if(typeof e=="string")return Ff(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ff(e,t)}}function dN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hN(e){if(Array.isArray(e))return Ff(e)}function Ff(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Da=1e-4,dO=function(t,r){return[0,3*t,3*r-6*t,3*t-3*r+1]},hO=function(t,r){return t.map(function(n,i){return n*Math.pow(r,i)}).reduce(function(n,i){return n+i})},nb=function(t,r){return function(n){var i=dO(t,r);return hO(i,n)}},pN=function(t,r){return function(n){var i=dO(t,r),a=[].concat(lN(i.map(function(o,u){return o*u}).slice(1)),[0]);return hO(a,n)}},ib=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0],a=r[1],o=r[2],u=r[3];if(r.length===1)switch(r[0]){case"linear":i=0,a=0,o=1,u=1;break;case"ease":i=.25,a=.1,o=.25,u=1;break;case"ease-in":i=.42,a=0,o=1,u=1;break;case"ease-out":i=.42,a=0,o=.58,u=1;break;case"ease-in-out":i=0,a=0,o=.58,u=1;break;default:{var s=r[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var c=s[1].split(")")[0].split(",").map(function(p){return parseFloat(p)}),f=oN(c,4);i=f[0],a=f[1],o=f[2],u=f[3]}}}var l=nb(i,o),d=nb(a,u),h=pN(i,o),y=function(g){return g>1?1:g<0?0:g},v=function(g){for(var x=g>1?1:g,w=x,O=0;O<8;++O){var m=l(w)-x,b=h(w);if(Math.abs(m-x)<Da||b<Da)return d(w);w=y(w-m/b)}return d(w)};return v.isStepper=!1,v},vN=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.stiff,n=r===void 0?100:r,i=t.damping,a=i===void 0?8:i,o=t.dt,u=o===void 0?17:o,s=function(f,l,d){var h=-(f-l)*n,y=d*a,v=d+(h-y)*u/1e3,p=d*u/1e3+f;return Math.abs(p-l)<Da&&Math.abs(v)<Da?[l,0]:[p,v]};return s.isStepper=!0,s.dt=u,s},yN=function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return ib(i);case"spring":return vN();default:if(i.split("(")[0]==="cubic-bezier")return ib(i)}return typeof i=="function"?i:null};function gi(e){"@babel/helpers - typeof";return gi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gi(e)}function ab(e){return bN(e)||gN(e)||pO(e)||mN()}function mN(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
43
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bN(e){if(Array.isArray(e))return zf(e)}function ob(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ke(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ob(Object(r),!0).forEach(function(n){Wf(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ob(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wf(e,t,r){return t=xN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xN(e){var t=wN(e,"string");return gi(t)==="symbol"?t:String(t)}function wN(e,t){if(gi(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(gi(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ON(e,t){return AN(e)||SN(e,t)||pO(e,t)||_N()}function _N(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
44
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pO(e,t){if(e){if(typeof e=="string")return zf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return zf(e,t)}}function zf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function SN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function AN(e){if(Array.isArray(e))return e}var Ra=function(t,r,n){return t+(r-t)*n},Uf=function(t){var r=t.from,n=t.to;return r!==n},PN=function e(t,r,n){var i=Hn(function(a,o){if(Uf(o)){var u=t(o.from,o.to,o.velocity),s=ON(u,2),c=s[0],f=s[1];return ke(ke({},o),{},{from:c,velocity:f})}return o},r);return n<1?Hn(function(a,o){return Uf(o)?ke(ke({},o),{},{velocity:Ra(o.velocity,i[a].velocity,n),from:Ra(o.from,i[a].from,n)}):o},r):e(t,i,n-1)};const jN=(function(e,t,r,n,i){var a=nN(e,t),o=a.reduce(function(p,g){return ke(ke({},p),{},Wf({},g,[e[g],t[g]]))},{}),u=a.reduce(function(p,g){return ke(ke({},p),{},Wf({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,c,f,l=function(){return null},d=function(){return Hn(function(g,x){return x.from},u)},h=function(){return!Object.values(u).filter(Uf).length},y=function(g){c||(c=g);var x=g-c,w=x/r.dt;u=PN(r,u,w),i(ke(ke(ke({},e),t),d())),c=g,h()||(s=requestAnimationFrame(l))},v=function(g){f||(f=g);var x=(g-f)/n,w=Hn(function(m,b){return Ra.apply(void 0,ab(b).concat([r(x)]))},o);if(i(ke(ke(ke({},e),t),w)),x<1)s=requestAnimationFrame(l);else{var O=Hn(function(m,b){return Ra.apply(void 0,ab(b).concat([r(1)]))},o);i(ke(ke(ke({},e),t),O))}};return l=r.isStepper?y:v,function(){return requestAnimationFrame(l),function(){cancelAnimationFrame(s)}}});function Jr(e){"@babel/helpers - typeof";return Jr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jr(e)}var TN=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function EN(e,t){if(e==null)return{};var r=MN(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function MN(e,t){if(e==null)return{};var r={},n=Object.keys(e),i,a;for(a=0;a<n.length;a++)i=n[a],!(t.indexOf(i)>=0)&&(r[i]=e[i]);return r}function Al(e){return IN(e)||kN(e)||CN(e)||$N()}function $N(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
45
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CN(e,t){if(e){if(typeof e=="string")return Hf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Hf(e,t)}}function kN(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function IN(e){if(Array.isArray(e))return Hf(e)}function Hf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ub(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function at(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ub(Object(r),!0).forEach(function(n){Bn(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ub(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Bn(e,t,r){return t=vO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NN(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DN(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,vO(n.key),n)}}function RN(e,t,r){return t&&DN(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vO(e){var t=qN(e,"string");return Jr(t)==="symbol"?t:String(t)}function qN(e,t){if(Jr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Jr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function LN(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gf(e,t)}function Gf(e,t){return Gf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Gf(e,t)}function BN(e){var t=FN();return function(){var n=qa(e),i;if(t){var a=qa(this).constructor;i=Reflect.construct(n,arguments,a)}else i=n.apply(this,arguments);return Kf(this,i)}}function Kf(e,t){if(t&&(Jr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yf(e)}function Yf(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FN(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function qa(e){return qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},qa(e)}var xt=(function(e){LN(r,e);var t=BN(r);function r(n,i){var a;NN(this,r),a=t.call(this,n,i);var o=a.props,u=o.isActive,s=o.attributeName,c=o.from,f=o.to,l=o.steps,d=o.children,h=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Yf(a)),a.changeStyle=a.changeStyle.bind(Yf(a)),!u||h<=0)return a.state={style:{}},typeof d=="function"&&(a.state={style:f}),Kf(a);if(l&&l.length)a.state={style:l[0].style};else if(c){if(typeof d=="function")return a.state={style:c},Kf(a);a.state={style:s?Bn({},s,c):c}}else a.state={style:{}};return a}return RN(r,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,u=a.canBegin,s=a.attributeName,c=a.shouldReAnimate,f=a.to,l=a.from,d=this.state.style;if(u){if(!o){var h={style:s?Bn({},s,f):f};this.state&&d&&(s&&d[s]!==f||!s&&d!==f)&&this.setState(h);return}if(!(KI(i.to,f)&&i.canBegin&&i.isActive)){var y=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=y||c?l:i.to;if(this.state&&d){var p={style:s?Bn({},s,v):v};(s&&d[s]!==v||!s&&d!==v)&&this.setState(p)}this.runAnimation(at(at({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,u=i.to,s=i.duration,c=i.easing,f=i.begin,l=i.onAnimationEnd,d=i.onAnimationStart,h=jN(o,u,yN(c),s,this.changeStyle),y=function(){a.stopJSAnimation=h()};this.manager.start([d,f,y,s,l])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,u=i.begin,s=i.onAnimationStart,c=o[0],f=c.style,l=c.duration,d=l===void 0?0:l,h=function(v,p,g){if(g===0)return v;var x=p.duration,w=p.easing,O=w===void 0?"ease":w,m=p.style,b=p.properties,_=p.onAnimationEnd,A=g>0?o[g-1]:p,T=b||Object.keys(m);if(typeof O=="function"||O==="spring")return[].concat(Al(v),[a.runJSAnimation.bind(a,{from:A.style,to:m,duration:x,easing:O}),x]);var $=rb(T,x,O),j=at(at(at({},A.style),m),{},{transition:$});return[].concat(Al(v),[j,x,_]).filter(iN)};return this.manager.start([s].concat(Al(o.reduce(h,[f,Math.max(d,u)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=eN());var a=i.begin,o=i.duration,u=i.attributeName,s=i.to,c=i.easing,f=i.onAnimationStart,l=i.onAnimationEnd,d=i.steps,h=i.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof c=="function"||typeof h=="function"||c==="spring"){this.runJSAnimation(i);return}if(d.length>1){this.runStepAnimation(i);return}var v=u?Bn({},u,s):s,p=rb(Object.keys(v),o,c);y.start([f,a,at(at({},v),{},{transition:p}),o,l])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var u=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var s=EN(i,TN),c=D.Children.count(a),f=this.state.style;if(typeof a=="function")return a(f);if(!u||c===0||o<=0)return a;var l=function(h){var y=h.props,v=y.style,p=v===void 0?{}:v,g=y.className,x=D.cloneElement(h,at(at({},s),{},{style:at(at({},p),f),className:g}));return x};return c===1?l(D.Children.only(a)):P.createElement("div",null,D.Children.map(a,function(d){return l(d)}))}}]),r})(D.PureComponent);xt.displayName="Animate";xt.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};xt.propTypes={from:ae.oneOfType([ae.object,ae.string]),to:ae.oneOfType([ae.object,ae.string]),attributeName:ae.string,duration:ae.number,begin:ae.number,easing:ae.oneOfType([ae.string,ae.func]),steps:ae.arrayOf(ae.shape({duration:ae.number.isRequired,style:ae.object.isRequired,easing:ae.oneOfType([ae.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ae.func]),properties:ae.arrayOf("string"),onAnimationEnd:ae.func})),children:ae.oneOfType([ae.node,ae.func]),isActive:ae.bool,canBegin:ae.bool,onAnimationEnd:ae.func,shouldReAnimate:ae.bool,onAnimationStart:ae.func,onAnimationReStart:ae.func};function bi(e){"@babel/helpers - typeof";return bi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bi(e)}function La(){return La=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},La.apply(this,arguments)}function WN(e,t){return GN(e)||HN(e,t)||UN(e,t)||zN()}function zN(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
46
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function UN(e,t){if(e){if(typeof e=="string")return sb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sb(e,t)}}function sb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function HN(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function GN(e){if(Array.isArray(e))return e}function cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?cb(Object(r),!0).forEach(function(n){KN(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function KN(e,t,r){return t=YN(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YN(e){var t=VN(e,"string");return bi(t)=="symbol"?t:t+""}function VN(e,t){if(bi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(bi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var fb=function(t,r,n,i,a){var o=Math.min(Math.abs(n)/2,Math.abs(i)/2),u=i>=0?1:-1,s=n>=0?1:-1,c=i>=0&&n>=0||i<0&&n<0?1:0,f;if(o>0&&a instanceof Array){for(var l=[0,0,0,0],d=0,h=4;d<h;d++)l[d]=a[d]>o?o:a[d];f="M".concat(t,",").concat(r+u*l[0]),l[0]>0&&(f+="A ".concat(l[0],",").concat(l[0],",0,0,").concat(c,",").concat(t+s*l[0],",").concat(r)),f+="L ".concat(t+n-s*l[1],",").concat(r),l[1]>0&&(f+="A ".concat(l[1],",").concat(l[1],",0,0,").concat(c,`,
|
|
47
47
|
`).concat(t+n,",").concat(r+u*l[1])),f+="L ".concat(t+n,",").concat(r+i-u*l[2]),l[2]>0&&(f+="A ".concat(l[2],",").concat(l[2],",0,0,").concat(c,`,
|
|
48
48
|
`).concat(t+n-s*l[2],",").concat(r+i)),f+="L ".concat(t+s*l[3],",").concat(r+i),l[3]>0&&(f+="A ".concat(l[3],",").concat(l[3],",0,0,").concat(c,`,
|
|
49
49
|
`).concat(t,",").concat(r+i-u*l[3])),f+="Z"}else if(o>0&&a===+a&&a>0){var y=Math.min(o,a);f="M ".concat(t,",").concat(r+u*y,`
|
|
@@ -53,12 +53,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
53
53
|
L `).concat(t+n,",").concat(r+i-u*y,`
|
|
54
54
|
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t+n-s*y,",").concat(r+i,`
|
|
55
55
|
L `).concat(t+s*y,",").concat(r+i,`
|
|
56
|
-
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nD(e,t){if(e){if(typeof e=="string")return Yf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Yf(e,t)}}function iD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aD(e){if(Array.isArray(e))return Yf(e)}function Yf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var db=function(t){return t&&t.x===+t.x&&t.y===+t.y},oD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){db(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),db(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Gn=function(t,r){var n=oD(t);r&&(n=[n.reduce(function(a,o){return[].concat(fb(a),fb(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},uD=function(t,r,n){var i=Gn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Gn(r.reverse(),n).slice(1))},sD=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=eD(t,JN);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=uD(r,i,a);return P.createElement("g",{className:u},P.createElement("path",Ir({},G(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?P.createElement("path",Ir({},G(o,!0),{fill:"none",d:Gn(r,a)})):null,s?P.createElement("path",Ir({},G(o,!0),{fill:"none",d:Gn(i,a)})):null)}var f=Gn(r,a);return P.createElement("path",Ir({},G(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Vf(){return Vf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Vf.apply(this,arguments)}var Co=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=J("recharts-dot",a);return r===+r&&n===+n&&i===+i?D.createElement("circle",Vf({},G(t,!1),ca(t),{className:o,cx:r,cy:n,r:i})):null};function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}var cD=["x","y","top","left","width","height","className"];function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xf.apply(this,arguments)}function hb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function lD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?hb(Object(r),!0).forEach(function(n){fD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fD(e,t,r){return t=dD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dD(e){var t=hD(e,"string");return xi(t)=="symbol"?t:t+""}function hD(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pD(e,t){if(e==null)return{};var r=vD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function vD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var yD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},mD=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,h=d===void 0?0:d,y=t.className,v=pD(t,cD),p=lD({x:n,y:a,top:u,left:c,width:l,height:h},v);return!L(n)||!L(a)||!L(l)||!L(h)||!L(u)||!L(c)?null:P.createElement("path",Xf({},G(p,!0),{className:J("recharts-cross",y),d:yD(n,a,l,h,u,c)}))},Pl,pb;function gD(){if(pb)return Pl;pb=1;var e=Po(),t=Cw(),r=Ot();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Pl=n,Pl}var bD=gD();const xD=se(bD);var jl,vb;function wD(){if(vb)return jl;vb=1;var e=Po(),t=Ot(),r=$w();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return jl=n,jl}var OD=wD();const _D=se(OD);var SD=["cx","cy","angle","ticks","axisLine"],AD=["ticks","tick","angle","tickFormatter","stroke"];function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kn.apply(this,arguments)}function yb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?yb(Object(r),!0).forEach(function(n){$o(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function mb(e,t){if(e==null)return{};var r=PD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function PD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function jD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,gO(n.key),n)}}function TD(e,t,r){return t&&gb(e.prototype,t),r&&gb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ED(e,t,r){return t=Ba(t),MD(e,mO()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function MD(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CD(e)}function CD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mO=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function $D(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Zf(e,t)}function Zf(e,t){return Zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Zf(e,t)}function $o(e,t,r){return t=gO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gO(e){var t=kD(e,"string");return en(t)=="symbol"?t:t+""}function kD(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ko=(function(e){function t(){return jD(this,t),ED(this,t,arguments)}return $D(t,e),TD(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return de(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=xD(u,function(f){return f.coordinate||0}),c=_D(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=mb(n,SD),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=de(i,a,f[0],o),d=de(i,a,f[1],o),h=nr(nr(nr({},G(c,!1)),{},{fill:"none"},G(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return P.createElement("line",Kn({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=mb(i,AD),l=this.getTickTextAnchor(),d=G(f,!1),h=G(o,!1),y=a.map(function(v,p){var g=n.getTickValueCoord(v),x=nr(nr(nr(nr({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:p},g),{},{payload:v});return P.createElement(te,Kn({className:J("recharts-polar-radius-axis-tick",oO(o)),key:"tick-".concat(v.coordinate)},mr(n.props,v,p)),t.renderTickItem(o,x,s?s(v.value,p):v.value))});return P.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(te,{className:J("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),Ce.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(gr,Kn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(D.PureComponent);$o(ko,"displayName","PolarRadiusAxis");$o(ko,"axisType","radiusAxis");$o(ko,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(this,arguments)}function bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?bb(Object(r),!0).forEach(function(n){Io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ID(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,xO(n.key),n)}}function ND(e,t,r){return t&&xb(e.prototype,t),r&&xb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function DD(e,t,r){return t=Fa(t),RD(e,bO()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function RD(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qD(e)}function qD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bO=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}function LD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qf(e,t)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qf(e,t)}function Io(e,t,r){return t=xO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xO(e){var t=BD(e,"string");return tn(t)=="symbol"?t:t+""}function BD(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var FD=Math.PI/180,wb=1e-5,No=(function(e){function t(){return ID(this,t),DD(this,t,arguments)}return LD(t,e),ND(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=de(a,o,u,n.coordinate),d=de(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*FD),o;return a>wb?o=i==="outer"?"start":"end":a<-wb?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=ir(ir({},G(this.props,!1)),{},{fill:"none"},G(u,!1));if(s==="circle")return P.createElement(Co,sr({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return de(i,a,o,d.coordinate)});return P.createElement(sD,sr({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=G(this.props,!1),l=G(o,!1),d=ir(ir({},f),{},{fill:"none"},G(u,!1)),h=a.map(function(y,v){var p=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=ir(ir(ir({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:y,x:p.x2,y:p.y2});return P.createElement(te,sr({className:J("recharts-polar-angle-axis-tick",oO(o)),key:"tick-".concat(y.coordinate)},mr(n.props,y,v)),u&&P.createElement("line",sr({className:"recharts-polar-angle-axis-tick-line"},d,p)),o&&t.renderTickItem(o,x,s?s(y.value,v):y.value))});return P.createElement(te,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(te,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(gr,sr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(D.PureComponent);Io(No,"displayName","PolarAngleAxis");Io(No,"axisType","angleAxis");Io(No,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Tl,Ob;function WD(){if(Ob)return Tl;Ob=1;var e=Ex(),t=e(Object.getPrototypeOf,Object);return Tl=t,Tl}var El,_b;function zD(){if(_b)return El;_b=1;var e=Nt(),t=WD(),r=Dt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return El=c,El}var UD=zD();const HD=se(UD);var Ml,Sb;function GD(){if(Sb)return Ml;Sb=1;var e=Nt(),t=Dt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Ml=n,Ml}var KD=GD();const YD=se(KD);function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wa.apply(this,arguments)}function VD(e,t){return JD(e)||QD(e,t)||ZD(e,t)||XD()}function XD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZD(e,t){if(e){if(typeof e=="string")return Ab(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ab(e,t)}}function Ab(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function QD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function JD(e){if(Array.isArray(e))return e}function Pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function jb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Pb(Object(r),!0).forEach(function(n){eR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function eR(e,t,r){return t=tR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tR(e){var t=rR(e,"string");return wi(t)=="symbol"?t:t+""}function rR(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tb=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},nR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},iR=function(t){var r=jb(jb({},nR),t),n=D.useRef(),i=D.useState(-1),a=VD(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=J("recharts-trapezoid",h);return g?P.createElement(xt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return P.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},P.createElement("path",Wa({},G(r,!0),{className:x,d:Tb(_,A,O,m,b),ref:n})))}):P.createElement("g",null,P.createElement("path",Wa({},G(r,!0),{className:x,d:Tb(s,c,f,l,d)})))},aR=["option","shapeType","propTransformer","activeClassName","isActive"];function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function oR(e,t){if(e==null)return{};var r=uR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function uR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Eb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Eb(Object(r),!0).forEach(function(n){sR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Eb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function sR(e,t,r){return t=cR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cR(e){var t=lR(e,"string");return Oi(t)=="symbol"?t:t+""}function lR(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fR(e,t){return za(za({},t),e)}function dR(e,t){return e==="symbols"}function Mb(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(hh,r);case"trapezoid":return P.createElement(iR,r);case"sector":return P.createElement(cO,r);case"symbols":if(dR(t))return P.createElement($d,r);break;default:return null}}function hR(e){return D.isValidElement(e)?e.props:e}function wO(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?fR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=oR(e,aR),c;if(D.isValidElement(t))c=D.cloneElement(t,za(za({},s),hR(t)));else if(V(t))c=t(s);else if(HD(t)&&!YD(t)){var f=i(t,s);c=P.createElement(Mb,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement(Mb,{shapeType:r,elementProps:l})}return u?P.createElement(te,{className:o},c):c}function Do(e,t){return t!=null&&"trapezoids"in e.props}function Ro(e,t){return t!=null&&"sectors"in e.props}function _i(e,t){return t!=null&&"points"in e.props}function pR(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function vR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function yR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function mR(e,t){var r;return Do(e,t)?r=pR:Ro(e,t)?r=vR:_i(e,t)&&(r=yR),r}function gR(e,t){var r;return Do(e,t)?r="trapezoids":Ro(e,t)?r="sectors":_i(e,t)&&(r="points"),r}function bR(e,t){if(Do(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Ro(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return _i(e,t)?t.payload:{}}function xR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=gR(r,t),a=bR(r,t),o=n.filter(function(s,c){var f=Zr(a,s),l=r.props[i].filter(function(y){var v=mR(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),h=c===d;return f&&h}),u=n.indexOf(o[o.length-1]);return u}var na;function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nr.apply(this,arguments)}function Cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){et(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function wR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $b(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_O(n.key),n)}}function OR(e,t,r){return t&&$b(e.prototype,t),r&&$b(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _R(e,t,r){return t=Ua(t),SR(e,OO()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function SR(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AR(e)}function AR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OO=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function PR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jf(e,t)}function Jf(e,t){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jf(e,t)}function et(e,t,r){return t=_O(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _O(e){var t=jR(e,"string");return rn(t)=="symbol"?t:t+""}function jR(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qt=(function(e){function t(r){var n;return wR(this,t),n=_R(this,t,[r]),et(n,"pieRef",null),et(n,"sectorRefs",[]),et(n,"id",bn("recharts-pie-")),et(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),et(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return PR(t,e),OR(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=G(this.props,!1),l=G(o,!1),d=G(u,!1),h=o&&o.offsetRadius||20,y=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,x=de(v.cx,v.cy,v.outerRadius+h,g),w=le(le(le(le({},f),v),{},{stroke:"none"},l),{},{index:p,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=le(le(le(le({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:p,points:[de(v.cx,v.cy,v.outerRadius,g),x]}),m=s;return Z(s)&&Z(c)?m="value":Z(s)&&(m=c),P.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,je(v,m)))});return P.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,h=l?o:d,y=le(le({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return P.createElement(te,Nr({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},mr(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),P.createElement(wO,Nr({option:h,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,h=l.prevIsAnimationActive;return P.createElement(xt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,p=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=d&&d[O],b=O>0?Xe(w,"paddingAngle",0):0;if(m){var _=ze(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=le(le({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});p.push(A),x=A.endAngle}else{var T=w.endAngle,C=w.startAngle,j=ze(0,T-C),E=j(v),M=le(le({},w),{},{startAngle:x+b,endAngle:x+E+b});p.push(M),x=M.endAngle}}),P.createElement(te,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Zr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(c)||!L(f)||!L(l)||!L(d))return null;var v=J("recharts-pie",u);return P.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),Ce.renderCallByParent(this.props,null,!1),(!h||y)&&Mt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(V(n))return n(i);var o=J("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(Wr,Nr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),P.isValidElement(o)))return o;var u=J("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return P.createElement(gr,Nr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(D.PureComponent);na=qt;et(qt,"displayName","Pie");et(qt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!_r.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});et(qt,"parseDeltaAngle",function(e,t){var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n});et(qt,"getRealPieData",function(e){var t=e.data,r=e.children,n=G(e,!1),i=rt(r,bo);return t&&t.length?t.map(function(a,o){return le(le(le({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return le(le({},n),a.props)}):[]});et(qt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=aO(i,a),u=n+Le(e.cx,i,i/2),s=r+Le(e.cy,a,a/2),c=Le(e.innerRadius,o,0),f=Le(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});et(qt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?le(le({},t.type.defaultProps),t.props):t.props,i=na.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),y=na.parseCoordinateOfPie(n,r),v=na.parseDeltaAngle(o,u),p=Math.abs(v),g=c;Z(c)&&Z(l)?(ct(!1,`Use "dataKey" to specify the value of pie,
|
|
56
|
+
A `).concat(y,",").concat(y,",0,0,").concat(c,",").concat(t,",").concat(r+i-u*y," Z")}else f="M ".concat(t,",").concat(r," h ").concat(n," v ").concat(i," h ").concat(-n," Z");return f},XN=function(t,r){if(!t||!r)return!1;var n=t.x,i=t.y,a=r.x,o=r.y,u=r.width,s=r.height;if(Math.abs(u)>0&&Math.abs(s)>0){var c=Math.min(a,a+u),f=Math.max(a,a+u),l=Math.min(o,o+s),d=Math.max(o,o+s);return n>=c&&n<=f&&i>=l&&i<=d}return!1},ZN={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ph=function(t){var r=lb(lb({},ZN),t),n=D.useRef(),i=D.useState(-1),a=WN(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var O=n.current.getTotalLength();O&&u(O)}catch{}},[]);var s=r.x,c=r.y,f=r.width,l=r.height,d=r.radius,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isAnimationActive,x=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||f===0||l===0)return null;var w=J("recharts-rectangle",h);return x?P.createElement(xt,{canBegin:o>0,from:{width:f,height:l,x:s,y:c},to:{width:f,height:l,x:s,y:c},duration:v,animationEasing:y,isActive:x},function(O){var m=O.width,b=O.height,_=O.x,A=O.y;return P.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,isActive:g,easing:y},P.createElement("path",La({},G(r,!0),{className:w,d:fb(_,A,m,b,d),ref:n})))}):P.createElement("path",La({},G(r,!0),{className:w,d:fb(s,c,f,l,d)}))},QN=["points","className","baseLinePoints","connectNulls"];function Ir(){return Ir=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ir.apply(this,arguments)}function JN(e,t){if(e==null)return{};var r=eD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function eD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function db(e){return iD(e)||nD(e)||rD(e)||tD()}function tD(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
57
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rD(e,t){if(e){if(typeof e=="string")return Vf(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Vf(e,t)}}function nD(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iD(e){if(Array.isArray(e))return Vf(e)}function Vf(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var hb=function(t){return t&&t.x===+t.x&&t.y===+t.y},aD=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=[[]];return t.forEach(function(n){hb(n)?r[r.length-1].push(n):r[r.length-1].length>0&&r.push([])}),hb(t[0])&&r[r.length-1].push(t[0]),r[r.length-1].length<=0&&(r=r.slice(0,-1)),r},Gn=function(t,r){var n=aD(t);r&&(n=[n.reduce(function(a,o){return[].concat(db(a),db(o))},[])]);var i=n.map(function(a){return a.reduce(function(o,u,s){return"".concat(o).concat(s===0?"M":"L").concat(u.x,",").concat(u.y)},"")}).join("");return n.length===1?"".concat(i,"Z"):i},oD=function(t,r,n){var i=Gn(t,n);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(Gn(r.reverse(),n).slice(1))},uD=function(t){var r=t.points,n=t.className,i=t.baseLinePoints,a=t.connectNulls,o=JN(t,QN);if(!r||!r.length)return null;var u=J("recharts-polygon",n);if(i&&i.length){var s=o.stroke&&o.stroke!=="none",c=oD(r,i,a);return P.createElement("g",{className:u},P.createElement("path",Ir({},G(o,!0),{fill:c.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:c})),s?P.createElement("path",Ir({},G(o,!0),{fill:"none",d:Gn(r,a)})):null,s?P.createElement("path",Ir({},G(o,!0),{fill:"none",d:Gn(i,a)})):null)}var f=Gn(r,a);return P.createElement("path",Ir({},G(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:u,d:f}))};function Xf(){return Xf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Xf.apply(this,arguments)}var $o=function(t){var r=t.cx,n=t.cy,i=t.r,a=t.className,o=J("recharts-dot",a);return r===+r&&n===+n&&i===+i?D.createElement("circle",Xf({},G(t,!1),ca(t),{className:o,cx:r,cy:n,r:i})):null};function xi(e){"@babel/helpers - typeof";return xi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xi(e)}var sD=["x","y","top","left","width","height","className"];function Zf(){return Zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Zf.apply(this,arguments)}function pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function cD(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?pb(Object(r),!0).forEach(function(n){lD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function lD(e,t,r){return t=fD(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fD(e){var t=dD(e,"string");return xi(t)=="symbol"?t:t+""}function dD(e,t){if(xi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(xi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hD(e,t){if(e==null)return{};var r=pD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function pD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var vD=function(t,r,n,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(r,"h").concat(n)},yD=function(t){var r=t.x,n=r===void 0?0:r,i=t.y,a=i===void 0?0:i,o=t.top,u=o===void 0?0:o,s=t.left,c=s===void 0?0:s,f=t.width,l=f===void 0?0:f,d=t.height,h=d===void 0?0:d,y=t.className,v=hD(t,sD),p=cD({x:n,y:a,top:u,left:c,width:l,height:h},v);return!L(n)||!L(a)||!L(l)||!L(h)||!L(u)||!L(c)?null:P.createElement("path",Zf({},G(p,!0),{className:J("recharts-cross",y),d:vD(n,a,l,h,u,c)}))},Pl,vb;function mD(){if(vb)return Pl;vb=1;var e=Po(),t=Mw(),r=Ot();function n(i,a){return i&&i.length?e(i,r(a,2),t):void 0}return Pl=n,Pl}var gD=mD();const bD=se(gD);var jl,yb;function xD(){if(yb)return jl;yb=1;var e=Po(),t=Ot(),r=$w();function n(i,a){return i&&i.length?e(i,t(a,2),r):void 0}return jl=n,jl}var wD=xD();const OD=se(wD);var _D=["cx","cy","angle","ticks","axisLine"],SD=["ticks","tick","angle","tickFormatter","stroke"];function en(e){"@babel/helpers - typeof";return en=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},en(e)}function Kn(){return Kn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Kn.apply(this,arguments)}function mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function nr(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?mb(Object(r),!0).forEach(function(n){Co(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function gb(e,t){if(e==null)return{};var r=AD(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function AD(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function PD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,mO(n.key),n)}}function jD(e,t,r){return t&&bb(e.prototype,t),r&&bb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function TD(e,t,r){return t=Ba(t),ED(e,yO()?Reflect.construct(t,r||[],Ba(e).constructor):t.apply(e,r))}function ED(e,t){if(t&&(en(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return MD(e)}function MD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yO=function(){return!!e})()}function Ba(e){return Ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ba(e)}function $D(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qf(e,t)}function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Qf(e,t)}function Co(e,t,r){return t=mO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mO(e){var t=CD(e,"string");return en(t)=="symbol"?t:t+""}function CD(e,t){if(en(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(en(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ko=(function(e){function t(){return PD(this,t),TD(this,t,arguments)}return $D(t,e),jD(t,[{key:"getTickValueCoord",value:function(n){var i=n.coordinate,a=this.props,o=a.angle,u=a.cx,s=a.cy;return de(u,s,i,o)}},{key:"getTickTextAnchor",value:function(){var n=this.props.orientation,i;switch(n){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=bD(u,function(f){return f.coordinate||0}),c=OD(u,function(f){return f.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:c.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.angle,u=n.ticks,s=n.axisLine,c=gb(n,_D),f=u.reduce(function(y,v){return[Math.min(y[0],v.coordinate),Math.max(y[1],v.coordinate)]},[1/0,-1/0]),l=de(i,a,f[0],o),d=de(i,a,f[1],o),h=nr(nr(nr({},G(c,!1)),{},{fill:"none"},G(s,!1)),{},{x1:l.x,y1:l.y,x2:d.x,y2:d.y});return P.createElement("line",Kn({className:"recharts-polar-radius-axis-line"},h))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.angle,s=i.tickFormatter,c=i.stroke,f=gb(i,SD),l=this.getTickTextAnchor(),d=G(f,!1),h=G(o,!1),y=a.map(function(v,p){var g=n.getTickValueCoord(v),x=nr(nr(nr(nr({textAnchor:l,transform:"rotate(".concat(90-u,", ").concat(g.x,", ").concat(g.y,")")},d),{},{stroke:"none",fill:c},h),{},{index:p},g),{},{payload:v});return P.createElement(te,Kn({className:J("recharts-polar-radius-axis-tick",aO(o)),key:"tick-".concat(v.coordinate)},mr(n.props,v,p)),t.renderTickItem(o,x,s?s(v.value,p):v.value))});return P.createElement(te,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.axisLine,o=n.tick;return!i||!i.length?null:P.createElement(te,{className:J("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),$e.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(gr,Kn({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])})(D.PureComponent);Co(ko,"displayName","PolarRadiusAxis");Co(ko,"axisType","radiusAxis");Co(ko,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function tn(e){"@babel/helpers - typeof";return tn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function sr(){return sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sr.apply(this,arguments)}function xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ir(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xb(Object(r),!0).forEach(function(n){Io(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kD(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,bO(n.key),n)}}function ID(e,t,r){return t&&wb(e.prototype,t),r&&wb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function ND(e,t,r){return t=Fa(t),DD(e,gO()?Reflect.construct(t,r||[],Fa(e).constructor):t.apply(e,r))}function DD(e,t){if(t&&(tn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RD(e)}function RD(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gO=function(){return!!e})()}function Fa(e){return Fa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Fa(e)}function qD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Jf(e,t)}function Jf(e,t){return Jf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},Jf(e,t)}function Io(e,t,r){return t=bO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bO(e){var t=LD(e,"string");return tn(t)=="symbol"?t:t+""}function LD(e,t){if(tn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(tn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var BD=Math.PI/180,Ob=1e-5,No=(function(e){function t(){return kD(this,t),ND(this,t,arguments)}return qD(t,e),ID(t,[{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.cx,o=i.cy,u=i.radius,s=i.orientation,c=i.tickSize,f=c||8,l=de(a,o,u,n.coordinate),d=de(a,o,u+(s==="inner"?-1:1)*f,n.coordinate);return{x1:l.x,y1:l.y,x2:d.x,y2:d.y}}},{key:"getTickTextAnchor",value:function(n){var i=this.props.orientation,a=Math.cos(-n.coordinate*BD),o;return a>Ob?o=i==="outer"?"start":"end":a<-Ob?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.cx,a=n.cy,o=n.radius,u=n.axisLine,s=n.axisLineType,c=ir(ir({},G(this.props,!1)),{},{fill:"none"},G(u,!1));if(s==="circle")return P.createElement($o,sr({className:"recharts-polar-angle-axis-line"},c,{cx:i,cy:a,r:o}));var f=this.props.ticks,l=f.map(function(d){return de(i,a,o,d.coordinate)});return P.createElement(uD,sr({className:"recharts-polar-angle-axis-line"},c,{points:l}))}},{key:"renderTicks",value:function(){var n=this,i=this.props,a=i.ticks,o=i.tick,u=i.tickLine,s=i.tickFormatter,c=i.stroke,f=G(this.props,!1),l=G(o,!1),d=ir(ir({},f),{},{fill:"none"},G(u,!1)),h=a.map(function(y,v){var p=n.getTickLineCoord(y),g=n.getTickTextAnchor(y),x=ir(ir(ir({textAnchor:g},f),{},{stroke:"none",fill:c},l),{},{index:v,payload:y,x:p.x2,y:p.y2});return P.createElement(te,sr({className:J("recharts-polar-angle-axis-tick",aO(o)),key:"tick-".concat(y.coordinate)},mr(n.props,y,v)),u&&P.createElement("line",sr({className:"recharts-polar-angle-axis-tick-line"},d,p)),o&&t.renderTickItem(o,x,s?s(y.value,v):y.value))});return P.createElement(te,{className:"recharts-polar-angle-axis-ticks"},h)}},{key:"render",value:function(){var n=this.props,i=n.ticks,a=n.radius,o=n.axisLine;return a<=0||!i||!i.length?null:P.createElement(te,{className:J("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(n,i,a){var o;return P.isValidElement(n)?o=P.cloneElement(n,i):V(n)?o=n(i):o=P.createElement(gr,sr({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])})(D.PureComponent);Io(No,"displayName","PolarAngleAxis");Io(No,"axisType","angleAxis");Io(No,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Tl,_b;function FD(){if(_b)return Tl;_b=1;var e=Tx(),t=e(Object.getPrototypeOf,Object);return Tl=t,Tl}var El,Sb;function WD(){if(Sb)return El;Sb=1;var e=Nt(),t=FD(),r=Dt(),n="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,s=o.call(Object);function c(f){if(!r(f)||e(f)!=n)return!1;var l=t(f);if(l===null)return!0;var d=u.call(l,"constructor")&&l.constructor;return typeof d=="function"&&d instanceof d&&o.call(d)==s}return El=c,El}var zD=WD();const UD=se(zD);var Ml,Ab;function HD(){if(Ab)return Ml;Ab=1;var e=Nt(),t=Dt(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return Ml=n,Ml}var GD=HD();const KD=se(GD);function wi(e){"@babel/helpers - typeof";return wi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wi(e)}function Wa(){return Wa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Wa.apply(this,arguments)}function YD(e,t){return QD(e)||ZD(e,t)||XD(e,t)||VD()}function VD(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
58
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XD(e,t){if(e){if(typeof e=="string")return Pb(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Pb(e,t)}}function Pb(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ZD(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function QD(e){if(Array.isArray(e))return e}function jb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Tb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?jb(Object(r),!0).forEach(function(n){JD(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function JD(e,t,r){return t=eR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eR(e){var t=tR(e,"string");return wi(t)=="symbol"?t:t+""}function tR(e,t){if(wi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eb=function(t,r,n,i,a){var o=n-i,u;return u="M ".concat(t,",").concat(r),u+="L ".concat(t+n,",").concat(r),u+="L ".concat(t+n-o/2,",").concat(r+a),u+="L ".concat(t+n-o/2-i,",").concat(r+a),u+="L ".concat(t,",").concat(r," Z"),u},rR={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},nR=function(t){var r=Tb(Tb({},rR),t),n=D.useRef(),i=D.useState(-1),a=YD(i,2),o=a[0],u=a[1];D.useEffect(function(){if(n.current&&n.current.getTotalLength)try{var w=n.current.getTotalLength();w&&u(w)}catch{}},[]);var s=r.x,c=r.y,f=r.upperWidth,l=r.lowerWidth,d=r.height,h=r.className,y=r.animationEasing,v=r.animationDuration,p=r.animationBegin,g=r.isUpdateAnimationActive;if(s!==+s||c!==+c||f!==+f||l!==+l||d!==+d||f===0&&l===0||d===0)return null;var x=J("recharts-trapezoid",h);return g?P.createElement(xt,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:d,x:s,y:c},to:{upperWidth:f,lowerWidth:l,height:d,x:s,y:c},duration:v,animationEasing:y,isActive:g},function(w){var O=w.upperWidth,m=w.lowerWidth,b=w.height,_=w.x,A=w.y;return P.createElement(xt,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:p,duration:v,easing:y},P.createElement("path",Wa({},G(r,!0),{className:x,d:Eb(_,A,O,m,b),ref:n})))}):P.createElement("g",null,P.createElement("path",Wa({},G(r,!0),{className:x,d:Eb(s,c,f,l,d)})))},iR=["option","shapeType","propTransformer","activeClassName","isActive"];function Oi(e){"@babel/helpers - typeof";return Oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oi(e)}function aR(e,t){if(e==null)return{};var r=oR(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function oR(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Mb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function za(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Mb(Object(r),!0).forEach(function(n){uR(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function uR(e,t,r){return t=sR(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function sR(e){var t=cR(e,"string");return Oi(t)=="symbol"?t:t+""}function cR(e,t){if(Oi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Oi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lR(e,t){return za(za({},t),e)}function fR(e,t){return e==="symbols"}function $b(e){var t=e.shapeType,r=e.elementProps;switch(t){case"rectangle":return P.createElement(ph,r);case"trapezoid":return P.createElement(nR,r);case"sector":return P.createElement(sO,r);case"symbols":if(fR(t))return P.createElement(kd,r);break;default:return null}}function dR(e){return D.isValidElement(e)?e.props:e}function xO(e){var t=e.option,r=e.shapeType,n=e.propTransformer,i=n===void 0?lR:n,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,u=e.isActive,s=aR(e,iR),c;if(D.isValidElement(t))c=D.cloneElement(t,za(za({},s),dR(t)));else if(V(t))c=t(s);else if(UD(t)&&!KD(t)){var f=i(t,s);c=P.createElement($b,{shapeType:r,elementProps:f})}else{var l=s;c=P.createElement($b,{shapeType:r,elementProps:l})}return u?P.createElement(te,{className:o},c):c}function Do(e,t){return t!=null&&"trapezoids"in e.props}function Ro(e,t){return t!=null&&"sectors"in e.props}function _i(e,t){return t!=null&&"points"in e.props}function hR(e,t){var r,n,i=e.x===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.x)||e.x===t.x,a=e.y===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.y)||e.y===t.y;return i&&a}function pR(e,t){var r=e.endAngle===t.endAngle,n=e.startAngle===t.startAngle;return r&&n}function vR(e,t){var r=e.x===t.x,n=e.y===t.y,i=e.z===t.z;return r&&n&&i}function yR(e,t){var r;return Do(e,t)?r=hR:Ro(e,t)?r=pR:_i(e,t)&&(r=vR),r}function mR(e,t){var r;return Do(e,t)?r="trapezoids":Ro(e,t)?r="sectors":_i(e,t)&&(r="points"),r}function gR(e,t){if(Do(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}if(Ro(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}return _i(e,t)?t.payload:{}}function bR(e){var t=e.activeTooltipItem,r=e.graphicalItem,n=e.itemData,i=mR(r,t),a=gR(r,t),o=n.filter(function(s,c){var f=Zr(a,s),l=r.props[i].filter(function(y){var v=yR(r,t);return v(y,t)}),d=r.props[i].indexOf(l[l.length-1]),h=c===d;return f&&h}),u=n.indexOf(o[o.length-1]);return u}var na;function rn(e){"@babel/helpers - typeof";return rn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rn(e)}function Nr(){return Nr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Nr.apply(this,arguments)}function Cb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function le(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Cb(Object(r),!0).forEach(function(n){et(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Cb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,OO(n.key),n)}}function wR(e,t,r){return t&&kb(e.prototype,t),r&&kb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function OR(e,t,r){return t=Ua(t),_R(e,wO()?Reflect.construct(t,r||[],Ua(e).constructor):t.apply(e,r))}function _R(e,t){if(t&&(rn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SR(e)}function SR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wO=function(){return!!e})()}function Ua(e){return Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ua(e)}function AR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ed(e,t)}function et(e,t,r){return t=OO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OO(e){var t=PR(e,"string");return rn(t)=="symbol"?t:t+""}function PR(e,t){if(rn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(rn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qt=(function(e){function t(r){var n;return xR(this,t),n=OR(this,t,[r]),et(n,"pieRef",null),et(n,"sectorRefs",[]),et(n,"id",bn("recharts-pie-")),et(n,"handleAnimationEnd",function(){var i=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),V(i)&&i()}),et(n,"handleAnimationStart",function(){var i=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),V(i)&&i()}),n.state={isAnimationFinished:!r.isAnimationActive,prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,sectorToFocus:0},n}return AR(t,e),wR(t,[{key:"isActiveIndex",value:function(n){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(n)!==-1:n===i}},{key:"hasActiveIndex",value:function(){var n=this.props.activeIndex;return Array.isArray(n)?n.length!==0:n||n===0}},{key:"renderLabels",value:function(n){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,u=a.labelLine,s=a.dataKey,c=a.valueKey,f=G(this.props,!1),l=G(o,!1),d=G(u,!1),h=o&&o.offsetRadius||20,y=n.map(function(v,p){var g=(v.startAngle+v.endAngle)/2,x=de(v.cx,v.cy,v.outerRadius+h,g),w=le(le(le(le({},f),v),{},{stroke:"none"},l),{},{index:p,textAnchor:t.getTextAnchor(x.x,v.cx)},x),O=le(le(le(le({},f),v),{},{fill:"none",stroke:v.fill},d),{},{index:p,points:[de(v.cx,v.cy,v.outerRadius,g),x]}),m=s;return Z(s)&&Z(c)?m="value":Z(s)&&(m=c),P.createElement(te,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(p)},u&&t.renderLabelLineItem(u,O,"line"),t.renderLabelItem(o,w,je(v,m)))});return P.createElement(te,{className:"recharts-pie-labels"},y)}},{key:"renderSectorsStatically",value:function(n){var i=this,a=this.props,o=a.activeShape,u=a.blendStroke,s=a.inactiveShape;return n.map(function(c,f){if(c?.startAngle===0&&c?.endAngle===0&&n.length!==1)return null;var l=i.isActiveIndex(f),d=s&&i.hasActiveIndex()?s:null,h=l?o:d,y=le(le({},c),{},{stroke:u?c.fill:c.stroke,tabIndex:-1});return P.createElement(te,Nr({ref:function(p){p&&!i.sectorRefs.includes(p)&&i.sectorRefs.push(p)},tabIndex:-1,className:"recharts-pie-sector"},mr(i.props,c,f),{key:"sector-".concat(c?.startAngle,"-").concat(c?.endAngle,"-").concat(c.midAngle,"-").concat(f)}),P.createElement(xO,Nr({option:h,isActive:l,shapeType:"sector"},y)))})}},{key:"renderSectorsWithAnimation",value:function(){var n=this,i=this.props,a=i.sectors,o=i.isAnimationActive,u=i.animationBegin,s=i.animationDuration,c=i.animationEasing,f=i.animationId,l=this.state,d=l.prevSectors,h=l.prevIsAnimationActive;return P.createElement(xt,{begin:u,duration:s,isActive:o,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(h),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var v=y.t,p=[],g=a&&a[0],x=g.startAngle;return a.forEach(function(w,O){var m=d&&d[O],b=O>0?Xe(w,"paddingAngle",0):0;if(m){var _=ze(m.endAngle-m.startAngle,w.endAngle-w.startAngle),A=le(le({},w),{},{startAngle:x+b,endAngle:x+_(v)+b});p.push(A),x=A.endAngle}else{var T=w.endAngle,$=w.startAngle,j=ze(0,T-$),E=j(v),M=le(le({},w),{},{startAngle:x+b,endAngle:x+E+b});p.push(M),x=M.endAngle}}),P.createElement(te,null,n.renderSectorsStatically(p))})}},{key:"attachKeyboardHandlers",value:function(n){var i=this;n.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var u=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[u].focus(),i.setState({sectorToFocus:u});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var n=this.props,i=n.sectors,a=n.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Zr(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var n=this,i=this.props,a=i.hide,o=i.sectors,u=i.className,s=i.label,c=i.cx,f=i.cy,l=i.innerRadius,d=i.outerRadius,h=i.isAnimationActive,y=this.state.isAnimationFinished;if(a||!o||!o.length||!L(c)||!L(f)||!L(l)||!L(d))return null;var v=J("recharts-pie",u);return P.createElement(te,{tabIndex:this.props.rootTabIndex,className:v,ref:function(g){n.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),$e.renderCallByParent(this.props,null,!1),(!h||y)&&Mt.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return i.prevIsAnimationActive!==n.isAnimationActive?{prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:[],isAnimationFinished:!0}:n.isAnimationActive&&n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curSectors:n.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:n.sectors!==i.curSectors?{curSectors:n.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(n,i){return n>i?"start":n<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);if(V(n))return n(i);var o=J("recharts-pie-label-line",typeof n!="boolean"?n.className:"");return P.createElement(Wr,Nr({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(n,i,a){if(P.isValidElement(n))return P.cloneElement(n,i);var o=a;if(V(n)&&(o=n(i),P.isValidElement(o)))return o;var u=J("recharts-pie-label-text",typeof n!="boolean"&&!V(n)?n.className:"");return P.createElement(gr,Nr({},i,{alignmentBaseline:"middle",className:u}),o)}}])})(D.PureComponent);na=qt;et(qt,"displayName","Pie");et(qt,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!_r.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});et(qt,"parseDeltaAngle",function(e,t){var r=qe(t-e),n=Math.min(Math.abs(t-e),360);return r*n});et(qt,"getRealPieData",function(e){var t=e.data,r=e.children,n=G(e,!1),i=rt(r,bo);return t&&t.length?t.map(function(a,o){return le(le(le({payload:a},n),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return le(le({},n),a.props)}):[]});et(qt,"parseCoordinateOfPie",function(e,t){var r=t.top,n=t.left,i=t.width,a=t.height,o=iO(i,a),u=n+Le(e.cx,i,i/2),s=r+Le(e.cy,a,a/2),c=Le(e.innerRadius,o,0),f=Le(e.outerRadius,o,o*.8),l=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:u,cy:s,innerRadius:c,outerRadius:f,maxRadius:l}});et(qt,"getComposedData",function(e){var t=e.item,r=e.offset,n=t.type.defaultProps!==void 0?le(le({},t.type.defaultProps),t.props):t.props,i=na.getRealPieData(n);if(!i||!i.length)return null;var a=n.cornerRadius,o=n.startAngle,u=n.endAngle,s=n.paddingAngle,c=n.dataKey,f=n.nameKey,l=n.valueKey,d=n.tooltipType,h=Math.abs(n.minAngle),y=na.parseCoordinateOfPie(n,r),v=na.parseDeltaAngle(o,u),p=Math.abs(v),g=c;Z(c)&&Z(l)?(ct(!1,`Use "dataKey" to specify the value of pie,
|
|
59
59
|
the props "valueKey" will be deprecated in 1.1.0`),g="value"):Z(c)&&(ct(!1,`Use "dataKey" to specify the value of pie,
|
|
60
|
-
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return je(A,g,0)!==0}).length,w=(p>=360?x:x-1)*s,O=p-x*h-w,m=i.reduce(function(A,T){var C=je(T,g,0);return A+(L(C)?C:0)},0),b;if(m>0){var _;b=i.map(function(A,T){var C=je(A,g,0),j=je(A,f,T),E=(L(C)?C:0)/m,M;T?M=_.endAngle+qe(v)*s*(C!==0?1:0):M=o;var k=M+qe(v)*((C!==0?h:0)+E*O),$=(M+k)/2,N=(y.innerRadius+y.outerRadius)/2,R=[{name:j,value:C,payload:A,dataKey:g,type:d}],B=de(y.cx,y.cy,N,$);return _=le(le(le({percent:E,cornerRadius:a,name:j,tooltipPayload:R,midAngle:$,middleRadius:N,tooltipPosition:B},A),y),{},{value:je(A,g),startAngle:M,endAngle:k,payload:A,paddingAngle:qe(v)*s}),_})}return le(le({},y),{},{sectors:b,data:i})});var Cl,kb;function TR(){if(kb)return Cl;kb=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return Cl=r,Cl}var $l,Ib;function SO(){if(Ib)return $l;Ib=1;var e=Hx(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return $l=n,$l}var kl,Nb;function ER(){if(Nb)return kl;Nb=1;var e=TR(),t=go(),r=SO();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return kl=n,kl}var Il,Db;function MR(){if(Db)return Il;Db=1;var e=ER(),t=e();return Il=t,Il}var CR=MR();const Ha=se(CR);function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function Rb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function qb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rb(Object(r),!0).forEach(function(n){AO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function AO(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=kR(e,"string");return Si(t)=="symbol"?t:t+""}function kR(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IR=["Webkit","Moz","O","ms"],NR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=IR.reduce(function(a,o){return qb(qb({},a),{},AO({},o+n,r))},{});return i[t]=r,i};function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ga.apply(this,arguments)}function Lb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Lb(Object(r),!0).forEach(function(n){Ke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Lb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function DR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Bb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jO(n.key),n)}}function RR(e,t,r){return t&&Bb(e.prototype,t),r&&Bb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function qR(e,t,r){return t=Ka(t),LR(e,PO()?Reflect.construct(t,r||[],Ka(e).constructor):t.apply(e,r))}function LR(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BR(e)}function BR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PO=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(e)}function FR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ed(e,t)}function ed(e,t){return ed=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ed(e,t)}function Ke(e,t,r){return t=jO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jO(e){var t=WR(e,"string");return nn(t)=="symbol"?t:t+""}function WR(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zR=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=zn().domain(Ha(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Fb=function(t){return t.changedTouches&&!!t.changedTouches.length},an=(function(e){function t(r){var n;return DR(this,t),n=qR(this,t,[r]),Ke(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ke(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ke(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ke(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ke(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ke(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ke(n,"handleSlideDragStart",function(i){var a=Fb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return FR(t,e),RR(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:h-h%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=je(a[n],u,n);return V(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,h=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==d||p.endIndex!==h)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Fb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-h-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=p.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===A};this.setState(Ke(Ke({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var h=u[d];i==="startX"&&h>=c||i==="endX"&&h<=s||this.setState(Ke({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=D.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,h=s.ariaLabel,y=s.data,v=s.startIndex,p=s.endIndex,g=Math.max(n,this.props.x),x=Nl(Nl({},G(this.props,!1)),{},{x:g,y:c,width:f,height:l}),w=h||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return P.createElement(te,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,h=5,y={pointerEvents:"none",fill:c};return P.createElement(te,{className:"recharts-brush-texts"},P.createElement(gr,Ga({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-h,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(gr,Ga({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+h,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,h=d.startX,y=d.endX,v=d.isTextActive,p=d.isSlideMoving,g=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=J("recharts-brush",a),O=P.Children.count(o)===1,m=NR("userSelect","none");return P.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):V(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Nl({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?zR({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(D.PureComponent);Ke(an,"displayName","Brush");Ke(an,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Dl,Wb;function UR(){if(Wb)return Dl;Wb=1;var e=Ld();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Dl=t,Dl}var Rl,zb;function HR(){if(zb)return Rl;zb=1;var e=Ox(),t=Ot(),r=UR(),n=He(),i=go();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Rl=a,Rl}var GR=HR();const KR=se(GR);var mt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},ql,Ub;function YR(){if(Ub)return ql;Ub=1;var e=Bx();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return ql=t,ql}var Ll,Hb;function VR(){if(Hb)return Ll;Hb=1;var e=YR(),t=qx(),r=Ot();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Ll=n,Ll}var XR=VR();const ZR=se(XR);var Bl,Gb;function QR(){if(Gb)return Bl;Gb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Bl=e,Bl}var Fl,Kb;function JR(){if(Kb)return Fl;Kb=1;var e=Ld();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Fl=t,Fl}var Wl,Yb;function e2(){if(Yb)return Wl;Yb=1;var e=QR(),t=JR(),r=Ot(),n=He(),i=go();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Wl=a,Wl}var t2=e2();const TO=se(t2);var r2=["x","y"];function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function td(){return td=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},td.apply(this,arguments)}function Vb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Vb(Object(r),!0).forEach(function(n){n2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Vb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function n2(e,t,r){return t=i2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i2(e){var t=a2(e,"string");return Ai(t)=="symbol"?t:t+""}function a2(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function o2(e,t){if(e==null)return{};var r=u2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function u2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function s2(e,t){var r=e.x,n=e.y,i=o2(e,r2),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return Rn(Rn(Rn(Rn(Rn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Xb(e){return P.createElement(wO,td({shapeType:"rectangle",propTransformer:s2,activeClassName:"recharts-active-bar"},e))}var c2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=L(n)||$S(n);return a?t(n,i):(a||xr(),r)}},l2=["value","background"],EO;function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function f2(e,t){if(e==null)return{};var r=d2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function d2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ya.apply(this,arguments)}function Zb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Zb(Object(r),!0).forEach(function(n){Kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function h2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,CO(n.key),n)}}function p2(e,t,r){return t&&Qb(e.prototype,t),r&&Qb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v2(e,t,r){return t=Va(t),y2(e,MO()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function y2(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return m2(e)}function m2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MO=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function g2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rd(e,t)}function rd(e,t){return rd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},rd(e,t)}function Kt(e,t,r){return t=CO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function CO(e){var t=b2(e,"string");return on(t)=="symbol"?t:t+""}function b2(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Li=(function(e){function t(){var r;h2(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=v2(this,t,[].concat(i)),Kt(r,"state",{isAnimationFinished:!1}),Kt(r,"id",bn("recharts-bar-")),Kt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Kt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return g2(t,e),p2(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=G(this.props,!1);return n&&n.map(function(l,d){var h=d===s,y=h?c:o,v=xe(xe(xe({},f),l),{},{isActive:h,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(te,Ya({className:"recharts-bar-rectangle"},mr(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),P.createElement(Xb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return P.createElement(xt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,v=a.map(function(p,g){var x=d&&d[g];if(x){var w=ze(x.x,p.x),O=ze(x.y,p.y),m=ze(x.width,p.width),b=ze(x.height,p.height);return xe(xe({},p),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=ze(0,p.height),A=_(y);return xe(xe({},p),{},{y:p.y+p.height-A,height:A})}var T=ze(0,p.width),C=T(y);return xe(xe({},p),{},{width:C})});return P.createElement(te,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Zr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=G(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=f2(c,l2);if(!l)return null;var h=xe(xe(xe(xe(xe({},d),{},{fill:"#eee"},l),s),mr(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Xb,Ya({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=rt(f,Mo);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(p,g){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:je(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(te,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,h=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=J("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return P.createElement(te,{className:g},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,P.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!h||p)&&Mt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(D.PureComponent);EO=Li;Kt(Li,"displayName","Bar");Kt(Li,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!_r.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Kt(Li,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=K$(n,r);if(!h)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?xe(xe({},v),r.props):r.props,g=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=ek({numericAxis:O}),_=rt(x,bo),A=l.map(function(T,C){var j,E,M,k,$,N;c?j=Y$(c[f+C],m):(j=je(T,g),Array.isArray(j)||(j=[b,j]));var R=c2(w,EO.defaultProps.minPointSize)(j[1],C);if(y==="horizontal"){var B,F=[o.scale(j[0]),o.scale(j[1])],H=F[0],Y=F[1];E=_g({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:T,index:C}),M=(B=Y??H)!==null&&B!==void 0?B:void 0,k=h.size;var z=H-Y;if($=Number.isNaN(z)?0:z,N={x:E,y:o.y,width:k,height:o.height},Math.abs(R)>0&&Math.abs($)<Math.abs(R)){var X=qe($||R)*(Math.abs(R)-Math.abs($));M-=X,$+=X}}else{var he=[a.scale(j[0]),a.scale(j[1])],be=he[0],Ge=he[1];if(E=be,M=_g({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:T,index:C}),k=Ge-be,$=h.size,N={x:a.x,y:M,width:a.width,height:$},Math.abs(R)>0&&Math.abs(k)<Math.abs(R)){var Jt=qe(k||R)*(Math.abs(R)-Math.abs(k));k+=Jt}}return xe(xe(xe({},T),{},{x:E,y:M,width:k,height:$,value:c?j:j[1],payload:T,background:N},_&&_[C]&&_[C].props),{},{tooltipPayload:[nO(r,T)],tooltipPosition:{x:E+k/2,y:M+$/2}})});return xe({data:A,layout:y},d)});function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function x2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$O(n.key),n)}}function w2(e,t,r){return t&&Jb(e.prototype,t),r&&Jb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function e0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?e0(Object(r),!0).forEach(function(n){qo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):e0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qo(e,t,r){return t=$O(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $O(e){var t=O2(e,"string");return Pi(t)=="symbol"?t:t+""}function O2(e,t){if(Pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _2=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!Ye(c,Li);return f.reduce(function(h,y){var v=r[y],p=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(p).concat(O?"Mirror":""),_,A,T,C,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=g[1]-g[0],M=1/0,k=v.categoricalDomain.sort(NS);if(k.forEach(function(he,be){be>0&&(M=Math.min((he||0)-(k[be-1]||0),M))}),Number.isFinite(M)){var $=M/E,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=$*N/2),v.padding==="no-gap"){var R=Le(t.barCategoryGap,$*N),B=$*N/2;_=B-R-(B-R)/N*R}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var F=Jw(v,a,d),H=F.scale,Y=F.realScaleType;H.domain(g).range(A),eO(H);var z=tO(H,ut(ut({},v),{},{realScaleType:Y}));i==="xAxis"?(j=p==="top"&&!O||p==="bottom"&&O,T=n.left,C=l[b]-j*v.height):i==="yAxis"&&(j=p==="left"&&!O||p==="right"&&O,T=l[b]-j*v.width,C=n.top);var X=ut(ut(ut({},v),z),{},{realScaleType:Y,x:T,y:C,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=ka(X,z),!v.hide&&i==="xAxis"?l[b]+=(j?-1:1)*X.height:v.hide||(l[b]+=(j?-1:1)*X.width),ut(ut({},h),{},qo({},y,X))},{})},kO=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},S2=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return kO({x:r,y:n},{x:i,y:a})},IO=(function(){function e(t){x2(this,e),this.scale=t}return w2(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();qo(IO,"EPS",1e-4);var ph=function(t){var r=Object.keys(t).reduce(function(n,i){return ut(ut({},n),{},qo({},i,IO.create(t[i])))},{});return ut(ut({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return ZR(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return TO(i,function(a,o){return r[o].isInRange(a)})}})};function A2(e){return(e%180+180)%180}var P2=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=A2(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},zl,t0;function j2(){if(t0)return zl;t0=1;var e=Ot(),t=Ii(),r=yo();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return zl=n,zl}var Ul,r0;function T2(){if(r0)return Ul;r0=1;var e=SO();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ul=t,Ul}var Hl,n0;function E2(){if(n0)return Hl;n0=1;var e=kx(),t=Ot(),r=T2(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Hl=i,Hl}var Gl,i0;function M2(){if(i0)return Gl;i0=1;var e=j2(),t=E2(),r=e(t);return Gl=r,Gl}var C2=M2();const $2=se(C2);var k2=V0();const I2=se(k2);var N2=I2(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),vh=D.createContext(void 0),yh=D.createContext(void 0),NO=D.createContext(void 0),DO=D.createContext({}),RO=D.createContext(void 0),qO=D.createContext(0),LO=D.createContext(0),a0=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=N2(a);return P.createElement(vh.Provider,{value:n},P.createElement(yh.Provider,{value:i},P.createElement(DO.Provider,{value:a},P.createElement(NO.Provider,{value:f},P.createElement(RO.Provider,{value:o},P.createElement(qO.Provider,{value:c},P.createElement(LO.Provider,{value:s},u)))))))},D2=function(){return D.useContext(RO)},BO=function(t){var r=D.useContext(vh);r==null&&xr();var n=r[t];return n==null&&xr(),n},R2=function(){var t=D.useContext(vh);return Ht(t)},q2=function(){var t=D.useContext(yh),r=$2(t,function(n){return TO(n.domain,Number.isFinite)});return r||Ht(t)},FO=function(t){var r=D.useContext(yh);r==null&&xr();var n=r[t];return n==null&&xr(),n},L2=function(){var t=D.useContext(NO);return t},B2=function(){return D.useContext(DO)},mh=function(){return D.useContext(LO)},gh=function(){return D.useContext(qO)};function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function F2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zO(n.key),n)}}function z2(e,t,r){return t&&W2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function U2(e,t,r){return t=Xa(t),H2(e,WO()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function H2(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return G2(e)}function G2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WO=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function K2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nd(e,t)}function o0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function u0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?o0(Object(r),!0).forEach(function(n){bh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function bh(e,t,r){return t=zO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zO(e){var t=Y2(e,"string");return un(t)=="symbol"?t:t+""}function Y2(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function V2(e,t){return J2(e)||Q2(e,t)||Z2(e,t)||X2()}function X2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Z2(e,t){if(e){if(typeof e=="string")return s0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return s0(e,t)}}function s0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Q2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function J2(e){if(Array.isArray(e))return e}function id(){return id=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},id.apply(this,arguments)}var eq=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):V(t)?n=t(r):n=P.createElement("line",id({},r,{className:"recharts-reference-line-line"})),n},tq=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,h=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(mt(c,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?p.reverse():p}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(mt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+h},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(b){return t.apply(b,{position:o})});return mt(c,"discard")&&KR(m,function(b){return!t.isInRange(b)})?null:m}return null};function rq(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=D2(),f=BO(i),l=FO(a),d=L2();if(!c||!d)return null;ct(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=ph({x:f.scale,y:l.scale}),y=Te(t),v=Te(r),p=n&&n.length===2,g=tq(h,y,v,p,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=V2(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,T=mt(e,"hidden")?"url(#".concat(c,")"):void 0,C=u0(u0({clipPath:T},G(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return P.createElement(te,{className:J("recharts-reference-line",u)},eq(o,C),Ce.renderCallByParent(e,S2({x1:O,y1:m,x2:_,y2:A})))}var xh=(function(e){function t(){return F2(this,t),U2(this,t,arguments)}return K2(t,e),z2(t,[{key:"render",value:function(){return P.createElement(rq,this.props)}}])})(P.Component);bh(xh,"displayName","ReferenceLine");bh(xh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(this,arguments)}function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function c0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function l0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?c0(Object(r),!0).forEach(function(n){Lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,HO(n.key),n)}}function aq(e,t,r){return t&&iq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function oq(e,t,r){return t=Za(t),uq(e,UO()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function uq(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return sq(e)}function sq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UO=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function cq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&od(e,t)}function od(e,t){return od=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},od(e,t)}function Lo(e,t,r){return t=HO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function HO(e){var t=lq(e,"string");return sn(t)=="symbol"?t:t+""}function lq(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fq=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=ph({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return mt(t,"discard")&&!o.isInRange(u)?null:u},Bo=(function(e){function t(){return nq(this,t),oq(this,t,arguments)}return cq(t,e),aq(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Te(i),f=Te(a);if(ct(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=fq(this.props);if(!l)return null;var d=l.x,h=l.y,y=this.props,v=y.shape,p=y.className,g=mt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=l0(l0({clipPath:g},G(this.props,!0)),{},{cx:d,cy:h});return P.createElement(te,{className:J("recharts-reference-dot",p)},t.renderDot(v,x),Ce.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(P.Component);Lo(Bo,"displayName","ReferenceDot");Lo(Bo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Lo(Bo,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(Co,ad({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function ud(){return ud=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ud.apply(this,arguments)}function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function f0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function d0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?f0(Object(r),!0).forEach(function(n){Fo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function dq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,KO(n.key),n)}}function pq(e,t,r){return t&&hq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vq(e,t,r){return t=Qa(t),yq(e,GO()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function yq(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mq(e)}function mq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GO=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(e)}function gq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sd(e,t)}function sd(e,t){return sd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},sd(e,t)}function Fo(e,t,r){return t=KO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KO(e){var t=bq(e,"string");return cn(t)=="symbol"?t:t+""}function bq(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xq=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=ph({x:f.scale,y:l.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return mt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(y))?null:kO(h,y)},Wo=(function(e){function t(){return dq(this,t),vq(this,t,arguments)}return gq(t,e),pq(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;ct(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Te(i),d=Te(a),h=Te(o),y=Te(u),v=this.props.shape;if(!l&&!d&&!h&&!y&&!v)return null;var p=xq(l,d,h,y,this.props);if(!p&&!v)return null;var g=mt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(te,{className:J("recharts-reference-area",s)},t.renderRect(v,d0(d0({clipPath:g},G(this.props,!0)),p)),Ce.renderCallByParent(this.props,p))}}])})(P.Component);Fo(Wo,"displayName","ReferenceArea");Fo(Wo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Fo(Wo,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(hh,ud({},t,{className:"recharts-reference-area-rect"})),r});function YO(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function wq(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return P2(n,r)}function Oq(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ja(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function _q(e,t){return YO(e,t+1)}function Sq(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:YO(n,c)};var v=s,p,g=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=s===0||Ja(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function h0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(r),!0).forEach(function(n){Aq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):h0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Aq(e,t,r){return t=Pq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Pq(e){var t=jq(e,"string");return ji(t)=="symbol"?t:t+""}function jq(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tq(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var h=a[d],y,v=function(){return y===void 0&&(y=r(h,d)),y};if(d===o-1){var p=e*(h.coordinate+e*v()/2-s);a[d]=h=Ie(Ie({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else a[d]=h=Ie(Ie({},h),{},{tickCoord:h.coordinate});var g=Ja(e,h.tickCoord,v,u,s);g&&(s=h.tickCoord-e*(v()/2+i),a[d]=Ie(Ie({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function Eq(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=Ie(Ie({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=Ja(e,f.tickCoord,function(){return l},s,c);h&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Ie(Ie({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=Ie(Ie({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Ie(Ie({},w),{},{tickCoord:w.coordinate});var _=Ja(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Ie(Ie({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function wh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(L(s)||_r.isSsr)return _q(i,typeof s=="number"&&L(s)?s:0);var d=[],h=u==="top"||u==="bottom"?"width":"height",y=f&&h==="width"?Wn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=V(c)?c(w.value,O):w.value;return h==="width"?wq(Wn(m,{fontSize:t,letterSpacing:r}),y,l):Wn(m,{fontSize:t,letterSpacing:r})[h]},p=i.length>=2?qe(i[1].coordinate-i[0].coordinate):1,g=Oq(a,p,h);return s==="equidistantPreserveStart"?Sq(p,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=Eq(p,g,v,i,o,s==="preserveStartEnd"):d=Tq(p,g,v,i,o),d.filter(function(x){return x.isShow}))}var Mq=["viewBox"],Cq=["viewBox"],$q=["ticks"];function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(this,arguments)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){Oh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kl(e,t){if(e==null)return{};var r=kq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function kq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Iq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,XO(n.key),n)}}function Nq(e,t,r){return t&&v0(e.prototype,t),r&&v0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dq(e,t,r){return t=eo(t),Rq(e,VO()?Reflect.construct(t,r||[],eo(e).constructor):t.apply(e,r))}function Rq(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qq(e)}function qq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VO=function(){return!!e})()}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(e)}function Lq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cd(e,t)}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cd(e,t)}function Oh(e,t,r){return t=XO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XO(e){var t=Bq(e,"string");return ln(t)=="symbol"?t:t+""}function Bq(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sn=(function(e){function t(r){var n;return Iq(this,t),n=Dq(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return Lq(t,e),Nq(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Kl(n,Mq),u=this.props,s=u.viewBox,c=Kl(u,Cq);return!qr(a,s)||!qr(o,c)||!qr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,h,y,v,p,g,x,w=l?-1:1,O=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=y=n.coordinate,p=o+ +!l*s,v=p-w*O,x=v-w*d,g=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,h=y-w*O,g=h-w*d,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,h=y+w*O,g=h+w*d,x=m;break;default:h=y=n.coordinate,p=o+ +l*s,v=p+w*O,x=v+w*d,g=m;break}return{line:{x1:h,y1:v,x2:y,y2:p},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Ae(Ae(Ae({},G(this.props,!1)),G(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Ae(Ae({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var h=+(s==="left"&&!c||s==="right"&&c);l=Ae(Ae({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+u})}return P.createElement("line",Dr({},l,{className:J("recharts-cartesian-axis-line",Xe(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,h=wh(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=G(this.props,!1),g=G(f,!1),x=Ae(Ae({},p),{},{fill:"none"},G(s,!1)),w=h.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,T=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:c},g),A),{},{index:m,payload:O,visibleTicksCount:h.length,tickFormatter:l});return P.createElement(te,Dr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},mr(o.props,O,m)),s&&P.createElement("line",Dr({},x,_,{className:J("recharts-cartesian-axis-tick-line",Xe(s,"className"))})),f&&t.renderTickItem(f,T,"".concat(V(l)?l(O.value,m):O.value).concat(d||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,h=Kl(l,$q),y=d;return V(s)&&(y=d&&d.length>0?s(this.props):s(h)),o<=0||u<=0||!y||!y.length?null:P.createElement(te,{className:J("recharts-cartesian-axis",c),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Ce.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Ae(Ae({},i),{},{className:u})):V(n)?o=n(Ae(Ae({},i),{},{className:u})):o=P.createElement(gr,Dr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(D.Component);Oh(Sn,"displayName","CartesianAxis");Oh(Sn,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Fq=["x1","y1","x2","y2","key"],Wq=["offset"];function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function y0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(r),!0).forEach(function(n){zq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zq(e,t,r){return t=Uq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uq(e){var t=Hq(e,"string");return wr(t)=="symbol"?t:t+""}function Hq(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function m0(e,t){if(e==null)return{};var r=Gq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Gq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Kq=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return P.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function ZO(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=m0(t,Fq),c=G(s,!1);c.offset;var f=m0(c,Wq);r=P.createElement("line",dr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Yq(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Re(Re({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return ZO(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Vq(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Re(Re({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return ZO(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Xq(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?i+o-d:f[h+1]-d;if(v<=0)return null;var p=h%t.length;return P.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function Zq(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?a+u-d:f[h+1]-d;if(v<=0)return null;var p=h%n.length;return P.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:s,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Qq=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Qw(wh(Re(Re(Re({},Sn.defaultProps),n),{},{ticks:jt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Jq=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Qw(wh(Re(Re(Re({},Sn.defaultProps),n),{},{ticks:jt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},Cr={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function QO(e){var t,r,n,i,a,o,u=mh(),s=gh(),c=B2(),f=Re(Re({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Cr.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:Cr.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:Cr.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Cr.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Cr.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Cr.verticalFill,x:L(e.x)?e.x:c.left,y:L(e.y)?e.y:c.top,width:L(e.width)?e.width:c.width,height:L(e.height)?e.height:c.height}),l=f.x,d=f.y,h=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,g=f.verticalValues,x=R2(),w=q2();if(!L(h)||h<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||Qq,m=f.horizontalCoordinatesGenerator||Jq,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&V(m)){var A=p&&p.length,T=m({yAxis:w?Re(Re({},w),{},{ticks:A?p:w.ticks}):void 0,width:u,height:s,offset:c},A?!0:v);ct(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(wr(T),"]")),Array.isArray(T)&&(b=T)}if((!_||!_.length)&&V(O)){var C=g&&g.length,j=O({xAxis:x?Re(Re({},x),{},{ticks:C?g:x.ticks}):void 0,width:u,height:s,offset:c},C?!0:v);ct(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(wr(j),"]")),Array.isArray(j)&&(_=j)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(Kq,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(Yq,dr({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),P.createElement(Vq,dr({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),P.createElement(Xq,dr({},f,{horizontalPoints:b})),P.createElement(Zq,dr({},f,{verticalPoints:_})))}QO.displayName="CartesianGrid";var eL=["layout","type","stroke","connectNulls","isRange","ref"],tL=["key"],JO;function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function e1(e,t){if(e==null)return{};var r=rL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function rL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(this,arguments)}function g0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?g0(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function nL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,r1(n.key),n)}}function iL(e,t,r){return t&&b0(e.prototype,t),r&&b0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function aL(e,t,r){return t=to(t),oL(e,t1()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function oL(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uL(e)}function uL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function t1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(t1=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function sL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ld(e,t)}function pt(e,t,r){return t=r1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function r1(e){var t=cL(e,"string");return fn(t)=="symbol"?t:t+""}function cL(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=(function(e){function t(){var r;nL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=aL(this,t,[].concat(i)),pt(r,"state",{isAnimationFinished:!0}),pt(r,"id",bn("recharts-area-")),pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return sL(t,e),iL(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,d=G(this.props,!1),h=G(c,!0),y=f.map(function(p,g){var x=Wt(Wt(Wt({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(te,hr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=Gt(o.map(function(d){return d.y||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Gt(a.map(function(d){return d.y||0})),l)),L(l)?P.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=Gt(o.map(function(d){return d.x||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Gt(a.map(function(d){return d.x||0})),l)),L(l)?P.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,d=u.isRange;u.ref;var h=e1(u,eL);return P.createElement(te,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(Wr,hr({},G(h,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(Wr,hr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&P.createElement(Wr,hr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,h=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return P.createElement(xt,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(A,T){var C=Math.floor(T*w);if(v[C]){var j=v[C],E=ze(j.x,A.x),M=ze(j.y,A.y);return Wt(Wt({},A),{},{x:E(x),y:M(x)})}return A}),m;if(L(s)&&typeof s=="number"){var b=ze(p,s);m=b(x)}else if(Z(s)||gn(s)){var _=ze(p,0);m=_(x)}else m=s.map(function(A,T){var C=Math.floor(T*w);if(p[C]){var j=p[C],E=ze(j.x,A.x),M=ze(j.y,A.y);return Wt(Wt({},A),{},{x:E(x),y:M(x)})}return A});return a.renderAreaStatically(O,m,n,i)}return P.createElement(te,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(te,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!f&&d>0||!Zr(f,o)||!Zr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,h=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-area",s),O=l&&l.allowDataOverflow,m=d&&d.allowDataOverflow,b=O||m,_=Z(p)?this.id:p,A=(n=G(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,C=T===void 0?3:T,j=A.strokeWidth,E=j===void 0?2:j,M=US(o)?o:{},k=M.clipDot,$=k===void 0?!0:k,N=C*2+E;return P.createElement(te,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?f:f-h/2,y:m?c:c-y/2,width:O?h:h*2,height:m?y:y*2})),!$&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:f-N/2,y:c-N/2,width:h+N,height:y+N}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,$,_),(!v||g)&&Mt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(D.PureComponent);JO=It;pt(It,"displayName","Area");pt(It,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_r.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});pt(It,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(L(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});pt(It,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=t.layout,y=c&&c.length,v=JO.getBaseValue(t,r,n,i),p=h==="horizontal",g=!1,x=l.map(function(O,m){var b;y?b=c[f+m]:(b=je(O,s),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||y&&je(O,s)==null;return p?{x:Og({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:Og({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return y||g?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=p?i.scale(v):n.scale(v),Wt({points:x,baseLine:w,layout:h,isRange:g},d)});pt(It,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=J("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=e1(t,tL);r=P.createElement(Co,hr({},a,{key:i,className:n}))}return r});function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function lL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,a1(n.key),n)}}function dL(e,t,r){return t&&fL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hL(e,t,r){return t=ro(t),pL(e,n1()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function pL(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return vL(e)}function vL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function n1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(n1=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function yL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fd(e,t)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fd(e,t)}function i1(e,t,r){return t=a1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a1(e){var t=mL(e,"string");return dn(t)=="symbol"?t:t+""}function mL(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dd(){return dd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dd.apply(this,arguments)}function gL(e){var t=e.xAxisId,r=mh(),n=gh(),i=BO(t);return i==null?null:D.createElement(Sn,dd({},i,{className:J("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return jt(o,!0)}}))}var zo=(function(e){function t(){return lL(this,t),hL(this,t,arguments)}return yL(t,e),dL(t,[{key:"render",value:function(){return D.createElement(gL,this.props)}}])})(D.Component);i1(zo,"displayName","XAxis");i1(zo,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function bL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s1(n.key),n)}}function wL(e,t,r){return t&&xL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function OL(e,t,r){return t=no(t),_L(e,o1()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function _L(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return SL(e)}function SL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(o1=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function AL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hd(e,t)}function hd(e,t){return hd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},hd(e,t)}function u1(e,t,r){return t=s1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s1(e){var t=PL(e,"string");return hn(t)=="symbol"?t:t+""}function PL(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pd.apply(this,arguments)}var jL=function(t){var r=t.yAxisId,n=mh(),i=gh(),a=FO(r);return a==null?null:D.createElement(Sn,pd({},a,{className:J("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return jt(u,!0)}}))},Ti=(function(e){function t(){return bL(this,t),OL(this,t,arguments)}return AL(t,e),wL(t,[{key:"render",value:function(){return D.createElement(jL,this.props)}}])})(D.Component);u1(Ti,"displayName","YAxis");u1(Ti,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function x0(e){return CL(e)||ML(e)||EL(e)||TL()}function TL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function EL(e,t){if(e){if(typeof e=="string")return vd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vd(e,t)}}function ML(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CL(e){if(Array.isArray(e))return vd(e)}function vd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var yd=function(t,r,n,i,a){var o=rt(t,xh),u=rt(t,Bo),s=[].concat(x0(o),x0(u)),c=rt(t,Wo),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,p){if(p.props[f]===n&&mt(p.props,"extendDomain")&&L(p.props[l])){var g=p.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var h="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,p){if(p.props[f]===n&&mt(p.props,"extendDomain")&&L(p.props[h])&&L(p.props[y])){var g=p.props[h],x=p.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,p){return L(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},Yl={exports:{}},w0;function $L(){return w0||(w0=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||s,d),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],h]:s._events[y].push(h):(s._events[y]=h,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,h=l.length,y=new Array(h);d<h;d++)y[d]=l[d].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,h,y){var v=r?r+c:c;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,d),!0;case 5:return p.fn.call(p.context,f,l,d,h),!0;case 6:return p.fn.call(p.context,f,l,d,h,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,m;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(c,p[w].fn,void 0,!0),g){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,d);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var h=r?r+c:c;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var v=0,p=[],g=y.length;v<g;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Yl)),Yl.exports}var kL=$L();const IL=se(kL);var Vl=new IL,Xl="recharts.syncMouseEvents";function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function NL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,c1(n.key),n)}}function RL(e,t,r){return t&&DL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zl(e,t,r){return t=c1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c1(e){var t=qL(e,"string");return Ei(t)=="symbol"?t:t+""}function qL(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var LL=(function(){function e(){NL(this,e),Zl(this,"activeIndex",0),Zl(this,"coordinateList",[]),Zl(this,"layout","horizontal")}return RL(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function BL(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function FL(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function l1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=de(t,r,n,i),u=de(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function WL(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=de(u,s,c,l),h=de(u,s,f,l);n=d.x,i=d.y,a=h.x,o=h.y}else return l1(t);return[{x:n,y:i},{x:a,y:o}]}function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function O0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?O0(Object(r),!0).forEach(function(n){zL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function zL(e,t,r){return t=UL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UL(e){var t=HL(e,"string");return Mi(t)=="symbol"?t:t+""}function HL(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function GL(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=Wr;if(d==="ScatterChart")y=o,v=mD;else if(d==="BarChart")y=FL(l,o,s,f),v=hh;else if(l==="radial"){var p=l1(o),g=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=cO}else y={points:WL(l,o,s)},v=Wr;var b=ea(ea(ea(ea({stroke:"#ccc",pointerEvents:"none"},s),y),G(h,!1)),{},{payload:u,payloadIndex:c,className:J("recharts-tooltip-cursor",h.className)});return D.isValidElement(h)?D.cloneElement(h,b):D.createElement(v,b)}var KL=["item"],YL=["children","className","width","height","style","compact","title","desc"];function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}function _0(e,t){return ZL(e)||XL(e,t)||d1(e,t)||VL()}function VL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
64
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d1(e,t){if(e){if(typeof e=="string")return gd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return gd(e,t)}}function uB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sB(e){if(Array.isArray(e))return gd(e)}function gd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function A0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?A0(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):A0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=h1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h1(e){var t=cB(e,"string");return pn(t)=="symbol"?t:t+""}function cB(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lB={xAxis:["bottom","top"],yAxis:["left","right"]},fB={width:"100%",height:"100%"},p1={x:0,y:0};function ta(e){return e}var dB=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},hB=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),de(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),de(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return p1},Uo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(vn(u),vn(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function v1(e){return e==="number"?[0,"auto"]:void 0}var bd=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Uo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?u:l;d=sa(h,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(vn(s),[nO(c,d)]):s},[])},P0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=dB(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=F$(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=bd(t,r,f,l),h=hB(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:h}}return null},pB=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,h=Zw(f,a);return n.reduce(function(y,v){var p,g=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var C=Uo(t.data,{graphicalItems:i.filter(function(z){var X,he=o in z.props?z.props[o]:(X=z.type.defaultProps)===null||X===void 0?void 0:X[o];return he===T}),dataStartIndex:s,dataEndIndex:c}),j=C.length,E,M,k;BL(g.domain,O,x)&&(E=If(g.domain,null,O),h&&(x==="number"||b!=="auto")&&(k=Un(C,w,"category")));var $=v1(x);if(!E||E.length===0){var N,R=(N=g.domain)!==null&&N!==void 0?N:$;if(w){if(E=Un(C,w,x),x==="category"&&h){var B=IS(E);m&&B?(M=E,E=Ha(0,j)):m||(E=Pg(R,E,v).reduce(function(z,X){return z.indexOf(X)>=0?z:[].concat(vn(z),[X])},[]))}else if(x==="category")m?E=E.filter(function(z){return z!==""&&!Z(z)}):E=Pg(R,E,v).reduce(function(z,X){return z.indexOf(X)>=0||X===""||Z(X)?z:[].concat(vn(z),[X])},[]);else if(x==="number"){var F=G$(C,i.filter(function(z){var X,he,be=o in z.props?z.props[o]:(X=z.type.defaultProps)===null||X===void 0?void 0:X[o],Ge="hide"in z.props?z.props.hide:(he=z.type.defaultProps)===null||he===void 0?void 0:he.hide;return be===T&&(A||!Ge)}),w,a,f);F&&(E=F)}h&&(x==="number"||b!=="auto")&&(k=Un(C,w,"category"))}else h?E=Ha(0,j):u&&u[T]&&u[T].hasStack&&x==="number"?E=d==="expand"?[0,1]:rO(u[T].stackGroups,s,c):E=Xw(C,i.filter(function(z){var X=o in z.props?z.props[o]:z.type.defaultProps[o],he="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return X===T&&(A||!he)}),x,f,!0);if(x==="number")E=yd(l,E,T,a,_),R&&(E=If(R,E,O));else if(x==="category"&&R){var H=R,Y=E.every(function(z){return H.indexOf(z)>=0});Y&&(E=H)}}return I(I({},y),{},K({},T,I(I({},g),{},{axisType:a,domain:E,categoricalDomain:k,duplicateDomain:M,originalDomain:(p=g.domain)!==null&&p!==void 0?p:$,isCategorical:h,layout:f})))},{})},vB=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Uo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),h=d.length,y=Zw(f,a),v=-1;return n.reduce(function(p,g){var x=g.type.defaultProps!==void 0?I(I({},g.type.defaultProps),g.props):g.props,w=x[o],O=v1("number");if(!p[w]){v++;var m;return y?m=Ha(0,h):u&&u[w]&&u[w].hasStack?(m=rO(u[w].stackGroups,s,c),m=yd(l,m,w,a)):(m=If(O,Xw(d,n.filter(function(b){var _,A,T=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],C="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===w&&!C}),"number",f),i.defaultProps.allowDataOverflow),m=yd(l,m,w,a)),I(I({},p),{},K({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Xe(lB,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},yB=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=rt(f,a),h={};return d&&d.length?h=pB(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(h=vB(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),h},mB=function(t){var r=Ht(t),n=jt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Bd(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ka(r,n)}},j0=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ye(r,an),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},gB=function(t){return!t||!t.length?!1:t.some(function(r){var n=Tt(r&&r.type);return n&&n.indexOf("Bar")>=0})},T0=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},bB=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},h=Ye(l,an),y=Ye(l,Lr),v=Object.keys(s).reduce(function(m,b){var _=s[b],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},K({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},K({},A,Xe(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=I(I({},p),v),x=g.bottom;h&&(g.bottom+=h.props.height||an.defaultProps.height),y&&r&&(g=U$(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return I(I({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},xB=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},y1=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,T=g.barSize,C=g.layout,j=g.barGap,E=g.barCategoryGap,M=g.maxBarSize,k=T0(C),$=k.numericAxisName,N=k.cateAxisName,R=gB(w),B=[];return w.forEach(function(F,H){var Y=Uo(g.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:A}),z=F.type.defaultProps!==void 0?I(I({},F.type.defaultProps),F.props):F.props,X=z.dataKey,he=z.maxBarSize,be=z["".concat($,"Id")],Ge=z["".concat(N,"Id")],Jt={},Fe=s.reduce(function(er,tr){var Ho=x["".concat(tr.axisType,"Map")],_h=z["".concat(tr.axisType,"Id")];Ho&&Ho[_h]||tr.axisType==="zAxis"||xr();var Sh=Ho[_h];return I(I({},er),{},K(K({},tr.axisType,Sh),"".concat(tr.axisType,"Ticks"),jt(Sh)))},Jt),W=Fe[N],Q=Fe["".concat(N,"Ticks")],ee=O&&O[be]&&O[be].hasStack&&tk(F,O[be].stackGroups),q=Tt(F.type).indexOf("Bar")>=0,me=ka(W,Q),re=[],_e=R&&W$({barSize:T,stackGroups:O,totalSize:xB(Fe,N)});if(q){var Se,We,Lt=Z(he)?M:he,jr=(Se=(We=ka(W,Q,!0))!==null&&We!==void 0?We:Lt)!==null&&Se!==void 0?Se:0;re=z$({barGap:j,barCategoryGap:E,bandSize:jr!==me?jr:me,sizeList:_e[Ge],maxBarSize:Lt}),jr!==me&&(re=re.map(function(er){return I(I({},er),{},{position:I(I({},er.position),{},{offset:er.position.offset-jr/2})})}))}var Bi=F&&F.type&&F.type.getComposedData;Bi&&B.push({props:I(I({},Bi(I(I({},Fe),{},{displayedData:Y,props:g,dataKey:X,item:F,bandSize:me,barPosition:re,offset:m,stackedData:ee,layout:C,dataStartIndex:_,dataEndIndex:A}))),{},K(K(K({key:F.key||"item-".concat(H)},$,Fe[$]),N,Fe[N]),"animationId",b)),childIndex:KS(F,g.children),item:F})}),B},h=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Bp({props:w}))return null;var _=w.children,A=w.layout,T=w.stackOffset,C=w.data,j=w.reverseStackOrder,E=T0(A),M=E.numericAxisName,k=E.cateAxisName,$=rt(_,n),N=J$(C,$,"".concat(M,"Id"),"".concat(k,"Id"),T,j),R=s.reduce(function(z,X){var he="".concat(X.axisType,"Map");return I(I({},z),{},K({},he,yB(w,I(I({},X),{},{graphicalItems:$,stackGroups:X.axisType===M&&N,dataStartIndex:O,dataEndIndex:m}))))},{}),B=bB(I(I({},R),{},{props:w,graphicalItems:$}),x?.legendBBox);Object.keys(R).forEach(function(z){R[z]=f(w,R[z],B,z.replace("Map",""),r)});var F=R["".concat(k,"Map")],H=mB(F),Y=d(w,I(I({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:$,stackGroups:N,offset:B}));return I(I({formattedGraphicalItems:Y,graphicalItems:$,offset:B,stackGroups:N},H),R)},y=(function(p){function g(x){var w,O,m;return JL(this,g),m=rB(this,g,[x]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new LL),K(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,T=_.dataEndIndex,C=_.updateId;m.setState(I({legendBBox:b},h({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:C},I(I({},m.state),{},{legendBBox:b}))))}}),K(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),K(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:A},h({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),K(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;V(T)&&T(A,b)}}),K(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;V(T)&&T(A,b)}),K(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),K(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;V(A)&&A(_,b)}),K(m,"handleOuterEvent",function(b){var _=GS(b),A=Xe(m.props,"".concat(_));if(_&&V(A)){var T,C;/.*touch.*/i.test(_)?C=m.getMouseInfo(b.changedTouches[0]):C=m.getMouseInfo(b),A((T=C)!==null&&T!==void 0?T:{},b)}}),K(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;V(T)&&T(A,b)}}),K(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),K(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),K(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),K(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&Vl.emit(Xl,m.props.syncId,b,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,T=_.syncMethod,C=m.state.updateId,j=b.dataStartIndex,E=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(I({dataStartIndex:j,dataEndIndex:E},h({props:m.props,dataStartIndex:j,dataEndIndex:E,updateId:C},m.state)));else if(b.activeTooltipIndex!==void 0){var M=b.chartX,k=b.chartY,$=b.activeTooltipIndex,N=m.state,R=N.offset,B=N.tooltipTicks;if(!R)return;if(typeof T=="function")$=T(B,b);else if(T==="value"){$=-1;for(var F=0;F<B.length;F++)if(B[F].value===b.activeLabel){$=F;break}}var H=I(I({},R),{},{x:R.left,y:R.top}),Y=Math.min(M,H.x+H.width),z=Math.min(k,H.y+H.height),X=B[$]&&B[$].value,he=bd(m.state,m.props.data,$),be=B[$]?{x:A==="horizontal"?B[$].coordinate:Y,y:A==="horizontal"?z:B[$].coordinate}:p1;m.setState(I(I({},b),{},{activeLabel:X,activeCoordinate:be,activePayload:he,activeTooltipIndex:$}))}else m.setState(b)}),K(m,"renderCursor",function(b){var _,A=m.state,T=A.isTooltipActive,C=A.activeCoordinate,j=A.activePayload,E=A.offset,M=A.activeTooltipIndex,k=A.tooltipAxisBandSize,$=m.getTooltipEventType(),N=(_=b.props.active)!==null&&_!==void 0?_:T,R=m.props.layout,B=b.key||"_recharts-cursor";return P.createElement(GL,{key:B,activeCoordinate:C,activePayload:j,activeTooltipIndex:M,chartName:r,element:b,isActive:N,layout:R,offset:E,tooltipAxisBandSize:k,tooltipEventType:$})}),K(m,"renderPolarAxis",function(b,_,A){var T=Xe(b,"type.axisType"),C=Xe(m.state,"".concat(T,"Map")),j=b.type.defaultProps,E=j!==void 0?I(I({},j),b.props):b.props,M=C&&C[E["".concat(T,"Id")]];return D.cloneElement(b,I(I({},M),{},{className:J(T,M.className),key:b.key||"".concat(_,"-").concat(A),ticks:jt(M,!0)}))}),K(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,T=_.polarAngles,C=_.polarRadius,j=m.state,E=j.radiusAxisMap,M=j.angleAxisMap,k=Ht(E),$=Ht(M),N=$.cx,R=$.cy,B=$.innerRadius,F=$.outerRadius;return D.cloneElement(b,{polarAngles:Array.isArray(T)?T:jt($,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(C)?C:jt(k,!0).map(function(H){return H.coordinate}),cx:N,cy:R,innerRadius:B,outerRadius:F,key:b.key||"polar-grid",radialLines:A})}),K(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,T=_.width,C=_.height,j=m.props.margin||{},E=T-(j.left||0)-(j.right||0),M=Yw({children:A,formattedGraphicalItems:b,legendWidth:E,legendContent:c});if(!M)return null;var k=M.item,$=S0(M,KL);return D.cloneElement(k,I(I({},$),{},{chartWidth:T,chartHeight:C,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var b,_=m.props,A=_.children,T=_.accessibilityLayer,C=Ye(A,ot);if(!C)return null;var j=m.state,E=j.isTooltipActive,M=j.activeCoordinate,k=j.activePayload,$=j.activeLabel,N=j.offset,R=(b=C.props.active)!==null&&b!==void 0?b:E;return D.cloneElement(C,{viewBox:I(I({},N),{},{x:N.left,y:N.top}),active:R,label:$,payload:R?k:[],coordinate:M,accessibilityLayer:T})}),K(m,"renderBrush",function(b){var _=m.props,A=_.margin,T=_.data,C=m.state,j=C.offset,E=C.dataStartIndex,M=C.dataEndIndex,k=C.updateId;return D.cloneElement(b,{key:b.key||"_recharts-brush",onChange:Xi(m.handleBrushChange,b.props.onChange),data:T,x:L(b.props.x)?b.props.x:j.left,y:L(b.props.y)?b.props.y:j.top+j.height+j.brushBottom-(A.bottom||0),width:L(b.props.width)?b.props.width:j.width,startIndex:E,endIndex:M,updateId:"brush-".concat(k)})}),K(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var T=m,C=T.clipPathId,j=m.state,E=j.xAxisMap,M=j.yAxisMap,k=j.offset,$=b.type.defaultProps||{},N=b.props,R=N.xAxisId,B=R===void 0?$.xAxisId:R,F=N.yAxisId,H=F===void 0?$.yAxisId:F;return D.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:E[B],yAxis:M[H],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:C})}),K(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,T=b.basePoint,C=b.childIndex,j=b.isRange,E=[],M=_.props.key,k=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,$=k.activeDot,N=k.dataKey,R=I(I({index:C,dataKey:N,cx:A.x,cy:A.y,r:4,fill:dh(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},G($,!1)),ca($));return E.push(g.renderActiveDot($,R,"".concat(M,"-activePoint-").concat(C))),T?E.push(g.renderActiveDot($,I(I({},R),{},{cx:T.x,cy:T.y}),"".concat(M,"-basePoint-").concat(C))):j&&E.push(null),E}),K(m,"renderGraphicChild",function(b,_,A){var T=m.filterFormatItem(b,_,A);if(!T)return null;var C=m.getTooltipEventType(),j=m.state,E=j.isTooltipActive,M=j.tooltipAxis,k=j.activeTooltipIndex,$=j.activeLabel,N=m.props.children,R=Ye(N,ot),B=T.props,F=B.points,H=B.isRange,Y=B.baseLine,z=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,X=z.activeDot,he=z.hide,be=z.activeBar,Ge=z.activeShape,Jt=!!(!he&&E&&R&&(X||be||Ge)),Fe={};C!=="axis"&&R&&R.props.trigger==="click"?Fe={onClick:Xi(m.handleItemMouseEnter,b.props.onClick)}:C!=="axis"&&(Fe={onMouseLeave:Xi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:Xi(m.handleItemMouseEnter,b.props.onMouseEnter)});var W=D.cloneElement(b,I(I({},T.props),Fe));function Q(tr){return typeof M.dataKey=="function"?M.dataKey(tr.payload):null}if(Jt)if(k>=0){var ee,q;if(M.dataKey&&!M.allowDuplicatedCategory){var me=typeof M.dataKey=="function"?Q:"payload.".concat(M.dataKey.toString());ee=sa(F,me,$),q=H&&Y&&sa(Y,me,$)}else ee=F?.[k],q=H&&Y&&Y[k];if(Ge||be){var re=b.props.activeIndex!==void 0?b.props.activeIndex:k;return[D.cloneElement(b,I(I(I({},T.props),Fe),{},{activeIndex:re})),null,null]}if(!Z(ee))return[W].concat(vn(m.renderActivePoints({item:T,activePoint:ee,basePoint:q,childIndex:k,isRange:H})))}else{var _e,Se=(_e=m.getItemByXY(m.state.activeCoordinate))!==null&&_e!==void 0?_e:{graphicalItem:W},We=Se.graphicalItem,Lt=We.item,jr=Lt===void 0?b:Lt,Bi=We.childIndex,er=I(I(I({},T.props),Fe),{},{activeIndex:Bi});return[D.cloneElement(jr,er),null,null]}return H?[W,null,null]:[W,null]}),K(m,"renderCustomized",function(b,_,A){return D.cloneElement(b,I(I({key:"recharts-customized-".concat(A)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:ta,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ta},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ta},YAxis:{handler:ta},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:bn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Gx(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return aB(g,p),tB(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,A=Ye(O,ot);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var C=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,j=bd(this.state,m,T,C),E=this.state.tooltipTicks[T].coordinate,M=(this.state.offset.top+b)/2,k=_==="horizontal",$=k?{x:E,y:M}:{y:E,x:M},N=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});N&&($=I(I({},$),N.props.points[T].tooltipPosition),j=N.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:C,activePayload:j,activeCoordinate:$};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){tf([Ye(w.children,ot)],[Ye(this.props.children,ot)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ye(this.props.children,ot);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),b=kT(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,T=this.inRange(_.chartX,_.chartY,A);if(!T)return null;var C=this.state,j=C.xAxisMap,E=C.yAxisMap,M=this.getTooltipEventType(),k=P0(this.state,this.props.data,this.props.layout,T);if(M!=="axis"&&j&&E){var $=Ht(j).scale,N=Ht(E).scale,R=$&&$.invert?$.invert(_.chartX):null,B=N&&N.invert?N.invert(_.chartY):null;return I(I({},_),{},{xValue:R,yValue:B},k)}return k?I(I({},_),k):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,A=O/m;if(b==="horizontal"||b==="vertical"){var T=this.state.offset,C=_>=T.left&&_<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return C?{x:_,y:A}:null}var j=this.state,E=j.angleAxisMap,M=j.radiusAxisMap;if(E&&M){var k=Ht(E);return Eg({x:_,y:A},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ye(w,ot),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=ca(this.props,this.handleOuterEvent);return I(I({},_),b)}},{key:"addListener",value:function(){Vl.on(Xl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Vl.removeListener(Xl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var T=b[_];if(T.item===w||T.props.key===w.key||O===Tt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=_0(m,2),_=b[0],A=b[1];return I(I({},O),{},K({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=_0(m,2),_=b[0],A=b[1];return I(I({},O),{},K({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var T=m[_],C=T.props,j=T.item,E=j.type.defaultProps!==void 0?I(I({},j.type.defaultProps),j.props):j.props,M=Tt(j.type);if(M==="Bar"){var k=(C.data||[]).find(function(B){return ZN(w,B)});if(k)return{graphicalItem:T,payload:k}}else if(M==="RadialBar"){var $=(C.data||[]).find(function(B){return Eg(w,B)});if($)return{graphicalItem:T,payload:$}}else if(Do(T,b)||Ro(T,b)||_i(T,b)){var N=xR({graphicalItem:T,activeTooltipItem:b,itemData:E.data}),R=E.activeIndex===void 0?N:E.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:R}),payload:_i(T,b)?E.data[N]:T.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!Bp(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,T=O.style,C=O.compact,j=O.title,E=O.desc,M=S0(O,YL),k=G(M,!1);if(C)return P.createElement(a0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(nf,Rr({},k,{width:_,height:A,title:j,desc:E}),this.renderClipPath(),Wp(m,this.renderMap)));if(this.props.accessibilityLayer){var $,N;k.tabIndex=($=this.props.tabIndex)!==null&&$!==void 0?$:0,k.role=(N=this.props.role)!==null&&N!==void 0?N:"application",k.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},k.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return P.createElement(a0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Rr({className:J("recharts-wrapper",b),style:I({position:"relative",cursor:"default",width:_,height:A},T)},R,{ref:function(F){w.container=F}}),P.createElement(nf,Rr({},k,{width:_,height:A,title:j,desc:E,style:fB}),this.renderClipPath(),Wp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(D.Component);K(y,"displayName",r),K(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(p,g){var x=p.dataKey,w=p.data,O=p.children,m=p.width,b=p.height,_=p.layout,A=p.stackOffset,T=p.margin,C=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var E=j0(p);return I(I(I({},E),{},{updateId:0},h(I(I({props:p},E),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!qr(T,g.prevMargin)){var M=j0(p),k={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},$=I(I({},P0(g,w,_)),{},{updateId:g.updateId+1}),N=I(I(I({},M),k),$);return I(I(I({},N),h(I({props:p},N),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(!tf(O,g.prevChildren)){var R,B,F,H,Y=Ye(O,an),z=Y&&(R=(B=Y.props)===null||B===void 0?void 0:B.startIndex)!==null&&R!==void 0?R:C,X=Y&&(F=(H=Y.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:j,he=z!==C||X!==j,be=!Z(w),Ge=be&&!he?g.updateId:g.updateId+1;return I(I({updateId:Ge},h(I(I({props:p},g),{},{updateId:Ge,dataStartIndex:z,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:X})}return null}),K(y,"renderActiveDot",function(p,g,x){var w;return D.isValidElement(p)?w=D.cloneElement(p,g):V(p)?w=p(g):w=P.createElement(Co,g),P.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=D.forwardRef(function(g,x){return P.createElement(y,Rr({},g,{ref:x}))});return v.displayName=y.displayName,v},wB=y1({chartName:"PieChart",GraphicalChild:qt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:No},{axisType:"radiusAxis",AxisComp:ko}],formatAxisMap:fk,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),OB=y1({chartName:"AreaChart",GraphicalChild:It,axisComponents:[{axisType:"xAxis",AxisComp:zo},{axisType:"yAxis",AxisComp:Ti}],formatAxisMap:_2});function E0({data:e,isLoading:t,granularity:r="daily",className:n}){const i=D.useMemo(()=>!e||e.length===0?[]:[...e].reverse().map(a=>({...a,dateFormatted:_B(a.date,r),costRounded:Number(a.cost.toFixed(4))})),[e,r]);return t?S.jsx(pe,{className:vt("h-[300px] w-full",n)}):!e||e.length===0?S.jsx("div",{className:vt("h-[300px] flex items-center justify-center",n),children:S.jsx("p",{className:"text-muted-foreground",children:"No usage data available"})}):S.jsx("div",{className:vt("w-full",n),children:S.jsx(Kx,{width:"100%",height:300,children:S.jsxs(OB,{data:i,margin:{top:5,right:30,left:20,bottom:5},children:[S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"tokenGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#0080FF",stopOpacity:.8}),S.jsx("stop",{offset:"95%",stopColor:"#0080FF",stopOpacity:.1})]}),S.jsxs("linearGradient",{id:"costGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#00C49F",stopOpacity:.8}),S.jsx("stop",{offset:"95%",stopColor:"#00C49F",stopOpacity:.1})]})]}),S.jsx(QO,{strokeDasharray:"3 3",className:"stroke-muted"}),S.jsx(zo,{dataKey:"dateFormatted",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"}}),S.jsx(Ti,{yAxisId:"left",orientation:"left",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"},tickFormatter:a=>M0(a)}),S.jsx(Ti,{yAxisId:"right",orientation:"right",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"},tickFormatter:a=>`$${a}`}),S.jsx(ot,{content:({active:a,payload:o,label:u})=>{if(!a||!o||!o.length)return null;const s=o[0].payload;return S.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-lg",children:[S.jsx("p",{className:"font-medium mb-2",children:u}),o.map((c,f)=>S.jsxs("p",{className:"text-sm",style:{color:c.color},children:[c.name,":"," ",c.name==="Tokens"?M0(Number(c.value)||0):`$${c.value}`]},f)),S.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Requests: ",s.requests]})]})}}),S.jsx(It,{yAxisId:"left",type:"monotone",dataKey:"tokens",stroke:"#0080FF",strokeWidth:2,fillOpacity:1,fill:"url(#tokenGradient)",name:"Tokens"}),S.jsx(It,{yAxisId:"right",type:"monotone",dataKey:"costRounded",stroke:"#00C49F",strokeWidth:2,fillOpacity:1,fill:"url(#costGradient)",name:"Cost"})]})})})}function _B(e,t){const r=new Date(e);return t==="monthly"?ua(r,"MMM yyyy"):ua(r,"MMM dd")}function M0(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}const C0=["#0080FF","#00C49F","#FFBB28","#FF8042","#8884D8","#82CA9D","#FFC658","#8DD1E1","#D084D0","#87D068"];function SB({data:e,isLoading:t,className:r}){const n=D.useMemo(()=>!e||e.length===0?[]:e.map((o,u)=>({name:o.model,value:o.tokens,cost:o.cost,requests:o.requests,percentage:o.percentage,fill:C0[u%C0.length]})),[e]);if(t)return S.jsx(pe,{className:vt("h-[300px] w-full",r)});if(!e||e.length===0)return S.jsx("div",{className:vt("h-[300px] flex items-center justify-center",r),children:S.jsx("p",{className:"text-muted-foreground",children:"No model data available"})});const i=({active:o,payload:u})=>{if(!o||!u)return null;const s=u;if(!s.length)return null;const c=s[0].payload;return S.jsxs("div",{className:"rounded-lg border bg-background p-2 shadow-lg text-xs",children:[S.jsx("p",{className:"font-medium mb-1",children:c.name}),S.jsxs("p",{className:"text-muted-foreground",children:[AB(c.value)," (",c.percentage.toFixed(1),"%)"]}),S.jsxs("p",{className:"text-muted-foreground",children:["$",c.cost.toFixed(4)]})]})},a=o=>o.percentage>5?`${o.percentage.toFixed(1)}%`:"";return S.jsx("div",{className:vt("w-full",r),children:S.jsx(Kx,{width:"100%",height:250,children:S.jsxs(wB,{children:[S.jsx(qt,{data:n,cx:"50%",cy:"50%",labelLine:!1,label:a,innerRadius:60,outerRadius:80,paddingAngle:2,dataKey:"value",children:n.map((o,u)=>S.jsx(bo,{fill:o.fill,strokeWidth:1},`cell-${u}`))}),S.jsx(ot,{content:i})]})})})}function AB(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function PB({data:e,isLoading:t}){const[r,n]=D.useState(""),[i,a]=D.useState(0),o=D.useMemo(()=>e?.sessions??[],[e?.sessions]),u=D.useMemo(()=>{if(!r)return o;const l=r.toLowerCase();return o.filter(d=>d.profile.toLowerCase().includes(l)||d.model.toLowerCase().includes(l)||d.id.toLowerCase().includes(l))},[o,r]),s=10,c=D.useMemo(()=>{if(!u)return[];const l=i*s;return u.slice(l,l+s)},[u,i]),f=Math.ceil((u?.length||0)/s);return t?S.jsx(EB,{}):!e||e.sessions.length===0?S.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[S.jsx(R0,{className:"h-12 w-12 text-muted-foreground mb-4"}),S.jsx("h3",{className:"text-lg font-medium mb-1",children:"No sessions found"}),S.jsx("p",{className:"text-muted-foreground",children:"Start using Claude Code to see session history"})]}):S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"flex items-center gap-2",children:S.jsxs("div",{className:"relative flex-1",children:[S.jsx(w1,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),S.jsx(Ql,{placeholder:"Search by profile, model, or session ID...",value:r,onChange:l=>{n(l.target.value),a(0)},className:"pl-8"})]})}),S.jsx("div",{className:"rounded-md border",children:S.jsxs(q0,{children:[S.jsx(L0,{children:S.jsxs(ia,{children:[S.jsx(Ne,{children:"Session ID"}),S.jsx(Ne,{children:"Profile"}),S.jsx(Ne,{children:"Model"}),S.jsx(Ne,{children:"Duration"}),S.jsx(Ne,{className:"text-right",children:"Tokens"}),S.jsx(Ne,{className:"text-right",children:"Cost"}),S.jsx(Ne,{className:"text-right",children:"Requests"}),S.jsx(Ne,{children:"Last Used"})]})}),S.jsx(B0,{children:c.map(l=>S.jsxs(ia,{className:"hover:bg-muted/50",children:[S.jsxs(De,{className:"font-mono text-xs",children:[l.id.slice(0,8),"..."]}),S.jsx(De,{children:S.jsx(m1,{variant:"secondary",children:l.profile})}),S.jsx(De,{className:"font-medium",children:l.model}),S.jsx(De,{children:l.duration?jB(l.duration):"-"}),S.jsx(De,{className:"text-right",children:S.jsxs("div",{className:"flex items-center justify-end gap-1",children:[S.jsx(N0,{className:"h-3 w-3 text-muted-foreground"}),TB(l.tokens)]})}),S.jsx(De,{className:"text-right",children:S.jsxs("div",{className:"flex items-center justify-end gap-1",children:[S.jsx(I0,{className:"h-3 w-3 text-muted-foreground"}),"$",l.cost.toFixed(4)]})}),S.jsx(De,{className:"text-right",children:l.requests}),S.jsx(De,{className:"text-muted-foreground",children:G0(new Date(l.startTime),{addSuffix:!0})})]},l.id))})]})}),f>1&&S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",i*s+1," to"," ",Math.min((i+1)*s,u?.length||0)," of"," ",u?.length," sessions"]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs(Fn,{variant:"outline",size:"sm",onClick:()=>a(l=>Math.max(0,l-1)),disabled:i===0,children:[S.jsx(O1,{className:"h-4 w-4"}),"Previous"]}),S.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,f)},(l,d)=>{const h=d;return S.jsx(Fn,{variant:i===h?"default":"outline",size:"sm",className:vt("w-8 h-8 p-0"),onClick:()=>a(h),children:h+1},h)})}),S.jsxs(Fn,{variant:"outline",size:"sm",onClick:()=>a(l=>Math.min(f-1,l+1)),disabled:i===f-1,children:["Next",S.jsx(_1,{className:"h-4 w-4"})]})]})]})]})}function jB(e){const t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(r/60);return n>0?`${n}h ${r%60}m`:r>0?`${r}m ${t%60}s`:`${t}s`}function TB(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function EB(){return S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"flex items-center gap-2",children:S.jsx(pe,{className:"h-10 flex-1"})}),S.jsx("div",{className:"rounded-md border",children:S.jsxs(q0,{children:[S.jsx(L0,{children:S.jsxs(ia,{children:[S.jsx(Ne,{children:"Session ID"}),S.jsx(Ne,{children:"Profile"}),S.jsx(Ne,{children:"Model"}),S.jsx(Ne,{children:"Duration"}),S.jsx(Ne,{className:"text-right",children:"Tokens"}),S.jsx(Ne,{className:"text-right",children:"Cost"}),S.jsx(Ne,{className:"text-right",children:"Requests"}),S.jsx(Ne,{children:"Last Used"})]})}),S.jsx(B0,{children:[1,2,3,4,5].map(e=>S.jsxs(ia,{children:[S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[60px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-6 w-[80px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[100px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[60px]"})}),S.jsx(De,{className:"text-right",children:S.jsx(pe,{className:"h-4 w-[80px]"})}),S.jsx(De,{className:"text-right",children:S.jsx(pe,{className:"h-4 w-[70px]"})}),S.jsx(De,{className:"text-right",children:S.jsx(pe,{className:"h-4 w-[60px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[80px]"})})]},e))})]})})]})}const MB="/api";function Ft(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}${r}${n}`}const An={summary:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),$r(`/usage/summary?${t}`)},trends:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),$r(`/usage/daily?${t}`)},models:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),$r(`/usage/models?${t}`)},sessions:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),e?.limit&&t.append("limit",e.limit.toString()),e?.offset&&t.append("offset",e.offset.toString()),$r(`/usage/sessions?${t}`)},monthly:(e,t)=>{const r=new URLSearchParams;return e&&r.append("months",e.toString()),t&&r.append("profile",t),$r(`/usage/monthly?${r}`)},refresh:async()=>{if(!(await fetch(`${MB}/usage/refresh`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to refresh usage cache")},status:()=>$r("/usage/status")};async function $r(e){const r=await fetch(`/api${e}`,{headers:{"Content-Type":"application/json"}});if(!r.ok){const i=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(i.error||r.statusText)}const n=await r.json();return n.data||n}function CB(e){return Ci({queryKey:["usage","summary",e],queryFn:()=>An.summary(e),staleTime:60*1e3})}function $B(e){return Ci({queryKey:["usage","trends",e],queryFn:()=>An.trends(e),staleTime:60*1e3})}function kB(e){return Ci({queryKey:["usage","models",e],queryFn:()=>An.models(e),staleTime:60*1e3})}function IB(e){return Ci({queryKey:["usage","sessions",e],queryFn:()=>An.sessions(e),staleTime:60*1e3})}function NB(){const e=P1();return D.useCallback(async()=>{await An.refresh(),await e.invalidateQueries({queryKey:["usage"]})},[e])}function DB(){return Ci({queryKey:["usage","status"],queryFn:()=>An.status(),staleTime:10*1e3,refetchInterval:30*1e3})}function UB(){const[e,t]=D.useState({from:Vo(new Date,30),to:new Date}),[r,n]=D.useState("daily"),[i,a]=D.useState(!1),o=NB(),u=async()=>{a(!0);try{await o()}finally{a(!1)}},s={startDate:e?.from,endDate:e?.to},{data:c,isLoading:f}=CB(s),{data:l,isLoading:d}=$B(s),{data:h,isLoading:y}=kB(s),{data:v,isLoading:p}=IB({...s,limit:50}),{data:g}=DB(),x=D.useMemo(()=>g?.lastFetch?G0(new Date(g.lastFetch),{addSuffix:!0}):null,[g?.lastFetch]);return S.jsx("div",{className:"flex flex-col h-[calc(100vh-3rem)] overflow-hidden",children:S.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden p-4 pb-14 space-y-4",children:[S.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-semibold",children:"Analytics"}),S.jsx("p",{className:"text-sm text-muted-foreground",children:"Track usage & insights"})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(z_,{value:e,onChange:t,presets:[{label:"7D",range:{from:Vo(new Date,7),to:new Date}},{label:"30D",range:{from:Vo(new Date,30),to:new Date}},{label:"Month",range:{from:z1(new Date),to:new Date}}]}),x&&S.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:["Updated ",x]}),S.jsx(Fn,{variant:"outline",size:"sm",className:"gap-2 h-8",onClick:u,disabled:i,children:S.jsx(S1,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`})})]})]}),S.jsx(H_,{data:c,isLoading:f}),S.jsxs(g1,{value:r,onValueChange:w=>n(w),className:"flex-1 flex flex-col min-h-0",children:[S.jsxs(b1,{className:"grid w-full grid-cols-3 h-9 mb-4",children:[S.jsx(Go,{value:"daily",className:"text-xs",children:"Daily"}),S.jsx(Go,{value:"monthly",className:"text-xs",children:"Monthly"}),S.jsx(Go,{value:"sessions",className:"text-xs",children:"Sessions"})]}),S.jsxs("div",{className:"flex-1 min-h-0",children:[S.jsxs(Ko,{value:"daily",className:"flex flex-col gap-4 m-0 h-full overflow-hidden",children:[S.jsxs(ft,{className:"flex flex-col flex-1 min-h-0 shadow-sm",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(D0,{className:"w-4 h-4"}),"Usage Trends"]})}),S.jsx(dt,{className:"p-4 pt-0 flex-1 min-h-0 flex items-center justify-center",children:S.jsx(E0,{data:l||[],isLoading:d,className:"h-full"})})]}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 flex-1 min-h-0",children:[S.jsxs(ft,{className:"flex flex-col h-full min-h-0 shadow-sm",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(A1,{className:"w-4 h-4"}),"Model Usage"]})}),S.jsx(dt,{className:"p-4 pt-0 flex-1 min-h-0 flex items-center justify-center",children:S.jsxs("div",{className:"flex w-full h-full items-center",children:[S.jsx("div",{className:"flex-1 h-full min-w-0",children:S.jsx(SB,{data:h||[],isLoading:y,className:"h-full"})}),S.jsx("div",{className:"w-[220px] shrink-0 pl-4 space-y-2 overflow-y-auto max-h-full",children:h?.slice(0,8).map(w=>S.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[S.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:$0(w.model)}}),S.jsx("div",{className:"flex flex-col min-w-0 flex-1",children:S.jsxs("div",{className:"flex justify-between items-baseline gap-2",children:[S.jsx("span",{className:"font-medium truncate",title:w.model,children:w.model}),S.jsxs("span",{className:"text-[10px] text-muted-foreground shrink-0",children:[w.percentage.toFixed(1),"%"]})]})})]},w.model))})]})})]}),S.jsxs(ft,{className:"flex flex-col h-full min-h-0 shadow-sm",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(Pn,{className:"text-sm font-medium",children:"Cost by Model"})}),S.jsx(dt,{className:"p-4 pt-2 flex-1 min-h-0 overflow-y-auto",children:y?S.jsx(pe,{className:"h-full w-full"}):S.jsx("div",{className:"space-y-2",children:[...h||[]].sort((w,O)=>O.cost-w.cost).map(w=>S.jsxs("div",{className:"flex items-center justify-between text-xs border-b border-border/50 pb-2 last:border-0 last:pb-0",children:[S.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[S.jsx("div",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:$0(w.model)}}),S.jsx("span",{className:"font-medium truncate max-w-[150px]",title:w.model,children:w.model})]}),S.jsxs("span",{className:"text-muted-foreground whitespace-nowrap font-mono",children:["$",w.cost.toFixed(4)]})]},w.model))})})]})]})]}),S.jsx(Ko,{value:"monthly",className:"m-0 h-full",children:S.jsxs(ft,{className:"h-full flex flex-col",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(k0,{className:"w-4 h-4"}),"Monthly Overview"]})}),S.jsx(dt,{className:"p-4 pt-0 flex-1",children:S.jsx(E0,{data:l||[],isLoading:d,granularity:"monthly",className:"h-full"})})]})}),S.jsx(Ko,{value:"sessions",className:"m-0 h-full",children:S.jsxs(ft,{className:"h-full flex flex-col",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(R0,{className:"w-4 h-4"}),"Session History"]})}),S.jsx(dt,{className:"p-0 flex-1 overflow-hidden",children:S.jsx("div",{className:"h-full overflow-y-auto",children:S.jsx(PB,{data:v,isLoading:p})})})]})})]})]})]})})}function $0(e){const t=["#0080FF","#00C49F","#FFBB28","#FF8042","#8884D8","#82CA9D","#FFC658","#8DD1E1","#D084D0","#87D068"];let r=0;for(let n=0;n<e.length;n++)r=e.charCodeAt(n)+((r<<5)-r);return t[Math.abs(r)%t.length]}function HB(){return S.jsxs("div",{className:"space-y-4 h-full overflow-hidden",children:[S.jsxs(ft,{className:"flex flex-col min-h-[300px]",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(pe,{className:"h-4 w-32"})}),S.jsx(dt,{className:"p-4 pt-0 flex-1",children:S.jsx(pe,{className:"h-full w-full"})})]}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[S.jsxs(ft,{className:"flex flex-col min-h-[250px]",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(pe,{className:"h-4 w-28"})}),S.jsx(dt,{className:"p-4 pt-0 flex-1",children:S.jsxs("div",{className:"flex w-full h-full items-center",children:[S.jsx("div",{className:"flex-1 flex justify-center",children:S.jsx(pe,{className:"h-[180px] w-[180px] rounded-full"})}),S.jsx("div",{className:"w-[140px] shrink-0 pl-2 space-y-2",children:[1,2,3,4].map(e=>S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(pe,{className:"w-2 h-2 rounded-full"}),S.jsx(pe,{className:"h-3 w-20"})]},e))})]})})]}),S.jsxs(ft,{className:"flex flex-col min-h-[250px]",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(pe,{className:"h-4 w-28"})}),S.jsx(dt,{className:"p-4 pt-2",children:S.jsx("div",{className:"space-y-3",children:[1,2,3,4,5].map(e=>S.jsxs("div",{className:"flex justify-between items-center",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(pe,{className:"w-2.5 h-2.5 rounded-full"}),S.jsx(pe,{className:"h-3 w-24"})]}),S.jsx(pe,{className:"h-3 w-16"})]},e))})})]})]})]})}export{UB as AnalyticsPage,HB as AnalyticsSkeleton};
|
|
60
|
+
the props "valueKey" will be deprecated in 1.1.0`),g=l);var x=i.filter(function(A){return je(A,g,0)!==0}).length,w=(p>=360?x:x-1)*s,O=p-x*h-w,m=i.reduce(function(A,T){var $=je(T,g,0);return A+(L($)?$:0)},0),b;if(m>0){var _;b=i.map(function(A,T){var $=je(A,g,0),j=je(A,f,T),E=(L($)?$:0)/m,M;T?M=_.endAngle+qe(v)*s*($!==0?1:0):M=o;var k=M+qe(v)*(($!==0?h:0)+E*O),C=(M+k)/2,N=(y.innerRadius+y.outerRadius)/2,R=[{name:j,value:$,payload:A,dataKey:g,type:d}],B=de(y.cx,y.cy,N,C);return _=le(le(le({percent:E,cornerRadius:a,name:j,tooltipPayload:R,midAngle:C,middleRadius:N,tooltipPosition:B},A),y),{},{value:je(A,g),startAngle:M,endAngle:k,payload:A,paddingAngle:qe(v)*s}),_})}return le(le({},y),{},{sectors:b,data:i})});var $l,Ib;function jR(){if(Ib)return $l;Ib=1;var e=Math.ceil,t=Math.max;function r(n,i,a,o){for(var u=-1,s=t(e((i-n)/(a||1)),0),c=Array(s);s--;)c[o?s:++u]=n,n+=a;return c}return $l=r,$l}var Cl,Nb;function _O(){if(Nb)return Cl;Nb=1;var e=Ux(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var a=i<0?-1:1;return a*r}return i===i?i:0}return Cl=n,Cl}var kl,Db;function TR(){if(Db)return kl;Db=1;var e=jR(),t=go(),r=_O();function n(i){return function(a,o,u){return u&&typeof u!="number"&&t(a,o,u)&&(o=u=void 0),a=r(a),o===void 0?(o=a,a=0):o=r(o),u=u===void 0?a<o?1:-1:r(u),e(a,o,u,i)}}return kl=n,kl}var Il,Rb;function ER(){if(Rb)return Il;Rb=1;var e=TR(),t=e();return Il=t,Il}var MR=ER();const Ha=se(MR);function Si(e){"@babel/helpers - typeof";return Si=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Si(e)}function qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Lb(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?qb(Object(r),!0).forEach(function(n){SO(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function SO(e,t,r){return t=$R(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $R(e){var t=CR(e,"string");return Si(t)=="symbol"?t:t+""}function CR(e,t){if(Si(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Si(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kR=["Webkit","Moz","O","ms"],IR=function(t,r){var n=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=kR.reduce(function(a,o){return Lb(Lb({},a),{},SO({},o+n,r))},{});return i[t]=r,i};function nn(e){"@babel/helpers - typeof";return nn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nn(e)}function Ga(){return Ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ga.apply(this,arguments)}function Bb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Nl(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Bb(Object(r),!0).forEach(function(n){Ke(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function NR(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,PO(n.key),n)}}function DR(e,t,r){return t&&Fb(e.prototype,t),r&&Fb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function RR(e,t,r){return t=Ka(t),qR(e,AO()?Reflect.construct(t,r||[],Ka(e).constructor):t.apply(e,r))}function qR(e,t){if(t&&(nn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LR(e)}function LR(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AO=function(){return!!e})()}function Ka(e){return Ka=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Ka(e)}function BR(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&td(e,t)}function td(e,t){return td=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},td(e,t)}function Ke(e,t,r){return t=PO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PO(e){var t=FR(e,"string");return nn(t)=="symbol"?t:t+""}function FR(e,t){if(nn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(nn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WR=function(t){var r=t.data,n=t.startIndex,i=t.endIndex,a=t.x,o=t.width,u=t.travellerWidth;if(!r||!r.length)return{};var s=r.length,c=zn().domain(Ha(0,s)).range([a,a+o-u]),f=c.domain().map(function(l){return c(l)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(n),endX:c(i),scale:c,scaleValues:f}},Wb=function(t){return t.changedTouches&&!!t.changedTouches.length},an=(function(e){function t(r){var n;return NR(this,t),n=RR(this,t,[r]),Ke(n,"handleDrag",function(i){n.leaveTimer&&(clearTimeout(n.leaveTimer),n.leaveTimer=null),n.state.isTravellerMoving?n.handleTravellerMove(i):n.state.isSlideMoving&&n.handleSlideDrag(i)}),Ke(n,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&n.handleDrag(i.changedTouches[0])}),Ke(n,"handleDragEnd",function(){n.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=n.props,a=i.endIndex,o=i.onDragEnd,u=i.startIndex;o?.({endIndex:a,startIndex:u})}),n.detachDragEndListener()}),Ke(n,"handleLeaveWrapper",function(){(n.state.isTravellerMoving||n.state.isSlideMoving)&&(n.leaveTimer=window.setTimeout(n.handleDragEnd,n.props.leaveTimeOut))}),Ke(n,"handleEnterSlideOrTraveller",function(){n.setState({isTextActive:!0})}),Ke(n,"handleLeaveSlideOrTraveller",function(){n.setState({isTextActive:!1})}),Ke(n,"handleSlideDragStart",function(i){var a=Wb(i)?i.changedTouches[0]:i;n.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),n.attachDragEndListener()}),n.travellerDragStartHandlers={startX:n.handleTravellerDragStart.bind(n,"startX"),endX:n.handleTravellerDragStart.bind(n,"endX")},n.state={},n}return BR(t,e),DR(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(n){var i=n.startX,a=n.endX,o=this.state.scaleValues,u=this.props,s=u.gap,c=u.data,f=c.length-1,l=Math.min(i,a),d=Math.max(i,a),h=t.getIndexInRange(o,l),y=t.getIndexInRange(o,d);return{startIndex:h-h%s,endIndex:y===f?f:y-y%s}}},{key:"getTextOfTick",value:function(n){var i=this.props,a=i.data,o=i.tickFormatter,u=i.dataKey,s=je(a[n],u,n);return V(o)?o(s,n):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(n){var i=this.state,a=i.slideMoveStartX,o=i.startX,u=i.endX,s=this.props,c=s.x,f=s.width,l=s.travellerWidth,d=s.startIndex,h=s.endIndex,y=s.onChange,v=n.pageX-a;v>0?v=Math.min(v,c+f-l-u,c+f-l-o):v<0&&(v=Math.max(v,c-o,c-u));var p=this.getIndex({startX:o+v,endX:u+v});(p.startIndex!==d||p.endIndex!==h)&&y&&y(p),this.setState({startX:o+v,endX:u+v,slideMoveStartX:n.pageX})}},{key:"handleTravellerDragStart",value:function(n,i){var a=Wb(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:n,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(n){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,u=i.endX,s=i.startX,c=this.state[o],f=this.props,l=f.x,d=f.width,h=f.travellerWidth,y=f.onChange,v=f.gap,p=f.data,g={startX:this.state.startX,endX:this.state.endX},x=n.pageX-a;x>0?x=Math.min(x,l+d-h-c):x<0&&(x=Math.max(x,l-c)),g[o]=c+x;var w=this.getIndex(g),O=w.startIndex,m=w.endIndex,b=function(){var A=p.length-1;return o==="startX"&&(u>s?O%v===0:m%v===0)||u<s&&m===A||o==="endX"&&(u>s?m%v===0:O%v===0)||u>s&&m===A};this.setState(Ke(Ke({},o,c+x),"brushMoveStartX",n.pageX),function(){y&&b()&&y(w)})}},{key:"handleTravellerMoveKeyboard",value:function(n,i){var a=this,o=this.state,u=o.scaleValues,s=o.startX,c=o.endX,f=this.state[i],l=u.indexOf(f);if(l!==-1){var d=l+n;if(!(d===-1||d>=u.length)){var h=u[d];i==="startX"&&h>=c||i==="endX"&&h<=s||this.setState(Ke({},i,h),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.fill,c=n.stroke;return P.createElement("rect",{stroke:c,fill:s,x:i,y:a,width:o,height:u})}},{key:"renderPanorama",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.data,c=n.children,f=n.padding,l=D.Children.only(c);return l?P.cloneElement(l,{x:i,y:a,width:o,height:u,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(n,i){var a,o,u=this,s=this.props,c=s.y,f=s.travellerWidth,l=s.height,d=s.traveller,h=s.ariaLabel,y=s.data,v=s.startIndex,p=s.endIndex,g=Math.max(n,this.props.x),x=Nl(Nl({},G(this.props,!1)),{},{x:g,y:c,width:f,height:l}),w=h||"Min value: ".concat((a=y[v])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=y[p])===null||o===void 0?void 0:o.name);return P.createElement(te,{tabIndex:0,role:"slider","aria-label":w,"aria-valuenow":n,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(m){["ArrowLeft","ArrowRight"].includes(m.key)&&(m.preventDefault(),m.stopPropagation(),u.handleTravellerMoveKeyboard(m.key==="ArrowRight"?1:-1,i))},onFocus:function(){u.setState({isTravellerFocused:!0})},onBlur:function(){u.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(d,x))}},{key:"renderSlide",value:function(n,i){var a=this.props,o=a.y,u=a.height,s=a.stroke,c=a.travellerWidth,f=Math.min(n,i)+c,l=Math.max(Math.abs(i-n)-c,0);return P.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:l,height:u})}},{key:"renderText",value:function(){var n=this.props,i=n.startIndex,a=n.endIndex,o=n.y,u=n.height,s=n.travellerWidth,c=n.stroke,f=this.state,l=f.startX,d=f.endX,h=5,y={pointerEvents:"none",fill:c};return P.createElement(te,{className:"recharts-brush-texts"},P.createElement(gr,Ga({textAnchor:"end",verticalAnchor:"middle",x:Math.min(l,d)-h,y:o+u/2},y),this.getTextOfTick(i)),P.createElement(gr,Ga({textAnchor:"start",verticalAnchor:"middle",x:Math.max(l,d)+s+h,y:o+u/2},y),this.getTextOfTick(a)))}},{key:"render",value:function(){var n=this.props,i=n.data,a=n.className,o=n.children,u=n.x,s=n.y,c=n.width,f=n.height,l=n.alwaysShowText,d=this.state,h=d.startX,y=d.endX,v=d.isTextActive,p=d.isSlideMoving,g=d.isTravellerMoving,x=d.isTravellerFocused;if(!i||!i.length||!L(u)||!L(s)||!L(c)||!L(f)||c<=0||f<=0)return null;var w=J("recharts-brush",a),O=P.Children.count(o)===1,m=IR("userSelect","none");return P.createElement(te,{className:w,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:m},this.renderBackground(),O&&this.renderPanorama(),this.renderSlide(h,y),this.renderTravellerLayer(h,"startX"),this.renderTravellerLayer(y,"endX"),(v||p||g||x||l)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(n){var i=n.x,a=n.y,o=n.width,u=n.height,s=n.stroke,c=Math.floor(a+u/2)-1;return P.createElement(P.Fragment,null,P.createElement("rect",{x:i,y:a,width:o,height:u,fill:s,stroke:"none"}),P.createElement("line",{x1:i+1,y1:c,x2:i+o-1,y2:c,fill:"none",stroke:"#fff"}),P.createElement("line",{x1:i+1,y1:c+2,x2:i+o-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(n,i){var a;return P.isValidElement(n)?a=P.cloneElement(n,i):V(n)?a=n(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(n,i){var a=n.data,o=n.width,u=n.x,s=n.travellerWidth,c=n.updateId,f=n.startIndex,l=n.endIndex;if(a!==i.prevData||c!==i.prevUpdateId)return Nl({prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o},a&&a.length?WR({data:a,width:o,x:u,travellerWidth:s,startIndex:f,endIndex:l}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||u!==i.prevX||s!==i.prevTravellerWidth)){i.scale.range([u,u+o-s]);var d=i.scale.domain().map(function(h){return i.scale(h)});return{prevData:a,prevTravellerWidth:s,prevUpdateId:c,prevX:u,prevWidth:o,startX:i.scale(n.startIndex),endX:i.scale(n.endIndex),scaleValues:d}}return null}},{key:"getIndexInRange",value:function(n,i){for(var a=n.length,o=0,u=a-1;u-o>1;){var s=Math.floor((o+u)/2);n[s]>i?u=s:o=s}return i>=n[u]?u:o}}])})(D.PureComponent);Ke(an,"displayName","Brush");Ke(an,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Dl,zb;function zR(){if(zb)return Dl;zb=1;var e=Bd();function t(r,n){var i;return e(r,function(a,o,u){return i=n(a,o,u),!i}),!!i}return Dl=t,Dl}var Rl,Ub;function UR(){if(Ub)return Rl;Ub=1;var e=wx(),t=Ot(),r=zR(),n=He(),i=go();function a(o,u,s){var c=n(o)?e:r;return s&&i(o,u,s)&&(u=void 0),c(o,t(u,3))}return Rl=a,Rl}var HR=UR();const GR=se(HR);var mt=function(t,r){var n=t.alwaysShow,i=t.ifOverflow;return n&&(i="extendDomain"),i===r},ql,Hb;function KR(){if(Hb)return ql;Hb=1;var e=Lx();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return ql=t,ql}var Ll,Gb;function YR(){if(Gb)return Ll;Gb=1;var e=KR(),t=Rx(),r=Ot();function n(i,a){var o={};return a=r(a,3),t(i,function(u,s,c){e(o,s,a(u,s,c))}),o}return Ll=n,Ll}var VR=YR();const XR=se(VR);var Bl,Kb;function ZR(){if(Kb)return Bl;Kb=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(!r(t[n],n,t))return!1;return!0}return Bl=e,Bl}var Fl,Yb;function QR(){if(Yb)return Fl;Yb=1;var e=Bd();function t(r,n){var i=!0;return e(r,function(a,o,u){return i=!!n(a,o,u),i}),i}return Fl=t,Fl}var Wl,Vb;function JR(){if(Vb)return Wl;Vb=1;var e=ZR(),t=QR(),r=Ot(),n=He(),i=go();function a(o,u,s){var c=n(o)?e:t;return s&&i(o,u,s)&&(u=void 0),c(o,r(u,3))}return Wl=a,Wl}var e2=JR();const jO=se(e2);var t2=["x","y"];function Ai(e){"@babel/helpers - typeof";return Ai=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ai(e)}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},rd.apply(this,arguments)}function Xb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Rn(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Xb(Object(r),!0).forEach(function(n){r2(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Xb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function r2(e,t,r){return t=n2(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n2(e){var t=i2(e,"string");return Ai(t)=="symbol"?t:t+""}function i2(e,t){if(Ai(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ai(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a2(e,t){if(e==null)return{};var r=o2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function o2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function u2(e,t){var r=e.x,n=e.y,i=a2(e,t2),a="".concat(r),o=parseInt(a,10),u="".concat(n),s=parseInt(u,10),c="".concat(t.height||i.height),f=parseInt(c,10),l="".concat(t.width||i.width),d=parseInt(l,10);return Rn(Rn(Rn(Rn(Rn({},t),i),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:d,name:t.name,radius:t.radius})}function Zb(e){return P.createElement(xO,rd({shapeType:"rectangle",propTransformer:u2,activeClassName:"recharts-active-bar"},e))}var s2=function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(n,i){if(typeof t=="number")return t;var a=L(n)||$S(n);return a?t(n,i):(a||xr(),r)}},c2=["value","background"],TO;function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function l2(e,t){if(e==null)return{};var r=f2(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function f2(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function Ya(){return Ya=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ya.apply(this,arguments)}function Qb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function xe(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Qb(Object(r),!0).forEach(function(n){Kt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Qb(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function d2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jb(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,MO(n.key),n)}}function h2(e,t,r){return t&&Jb(e.prototype,t),r&&Jb(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function p2(e,t,r){return t=Va(t),v2(e,EO()?Reflect.construct(t,r||[],Va(e).constructor):t.apply(e,r))}function v2(e,t){if(t&&(on(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y2(e)}function y2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function EO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(EO=function(){return!!e})()}function Va(e){return Va=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Va(e)}function m2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nd(e,t)}function nd(e,t){return nd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},nd(e,t)}function Kt(e,t,r){return t=MO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MO(e){var t=g2(e,"string");return on(t)=="symbol"?t:t+""}function g2(e,t){if(on(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(on(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Li=(function(e){function t(){var r;d2(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=p2(this,t,[].concat(i)),Kt(r,"state",{isAnimationFinished:!1}),Kt(r,"id",bn("recharts-bar-")),Kt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),o&&o()}),Kt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),o&&o()}),r}return m2(t,e),h2(t,[{key:"renderRectanglesStatically",value:function(n){var i=this,a=this.props,o=a.shape,u=a.dataKey,s=a.activeIndex,c=a.activeBar,f=G(this.props,!1);return n&&n.map(function(l,d){var h=d===s,y=h?c:o,v=xe(xe(xe({},f),l),{},{isActive:h,option:y,index:d,dataKey:u,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return P.createElement(te,Ya({className:"recharts-bar-rectangle"},mr(i.props,l,d),{key:"rectangle-".concat(l?.x,"-").concat(l?.y,"-").concat(l?.value,"-").concat(d)}),P.createElement(Zb,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var n=this,i=this.props,a=i.data,o=i.layout,u=i.isAnimationActive,s=i.animationBegin,c=i.animationDuration,f=i.animationEasing,l=i.animationId,d=this.state.prevData;return P.createElement(xt,{begin:s,duration:c,isActive:u,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(l),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(h){var y=h.t,v=a.map(function(p,g){var x=d&&d[g];if(x){var w=ze(x.x,p.x),O=ze(x.y,p.y),m=ze(x.width,p.width),b=ze(x.height,p.height);return xe(xe({},p),{},{x:w(y),y:O(y),width:m(y),height:b(y)})}if(o==="horizontal"){var _=ze(0,p.height),A=_(y);return xe(xe({},p),{},{y:p.y+p.height-A,height:A})}var T=ze(0,p.width),$=T(y);return xe(xe({},p),{},{width:$})});return P.createElement(te,null,n.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var n=this.props,i=n.data,a=n.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Zr(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var n=this,i=this.props,a=i.data,o=i.dataKey,u=i.activeIndex,s=G(this.props.background,!1);return a.map(function(c,f){c.value;var l=c.background,d=l2(c,c2);if(!l)return null;var h=xe(xe(xe(xe(xe({},d),{},{fill:"#eee"},l),s),mr(n.props,c,f)),{},{onAnimationStart:n.handleAnimationStart,onAnimationEnd:n.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return P.createElement(Zb,Ya({key:"background-bar-".concat(f),option:n.props.background,isActive:f===u},h))})}},{key:"renderErrorBar",value:function(n,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,u=a.xAxis,s=a.yAxis,c=a.layout,f=a.children,l=rt(f,Mo);if(!l)return null;var d=c==="vertical"?o[0].height/2:o[0].width/2,h=function(p,g){var x=Array.isArray(p.value)?p.value[1]:p.value;return{x:p.x,y:p.y,value:x,errorVal:je(p,g)}},y={clipPath:n?"url(#clipPath-".concat(i,")"):null};return P.createElement(te,y,l.map(function(v){return P.cloneElement(v,{key:"error-bar-".concat(i,"-").concat(v.props.dataKey),data:o,xAxis:u,yAxis:s,layout:c,offset:d,dataPointFormatter:h})}))}},{key:"render",value:function(){var n=this.props,i=n.hide,a=n.data,o=n.className,u=n.xAxis,s=n.yAxis,c=n.left,f=n.top,l=n.width,d=n.height,h=n.isAnimationActive,y=n.background,v=n.id;if(i||!a||!a.length)return null;var p=this.state.isAnimationFinished,g=J("recharts-bar",o),x=u&&u.allowDataOverflow,w=s&&s.allowDataOverflow,O=x||w,m=Z(v)?this.id:v;return P.createElement(te,{className:g},x||w?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(m)},P.createElement("rect",{x:x?c:c-l/2,y:w?f:f-d/2,width:x?l:l*2,height:w?d:d*2}))):null,P.createElement(te,{className:"recharts-bar-rectangles",clipPath:O?"url(#clipPath-".concat(m,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(O,m),(!h||p)&&Mt.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curData:n.data,prevData:i.curData}:n.data!==i.curData?{curData:n.data}:null}}])})(D.PureComponent);TO=Li;Kt(Li,"displayName","Bar");Kt(Li,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!_r.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Kt(Li,"getComposedData",function(e){var t=e.props,r=e.item,n=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,u=e.xAxisTicks,s=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=GC(n,r);if(!h)return null;var y=t.layout,v=r.type.defaultProps,p=v!==void 0?xe(xe({},v),r.props):r.props,g=p.dataKey,x=p.children,w=p.minPointSize,O=y==="horizontal"?o:a,m=c?O.scale.domain():null,b=JC({numericAxis:O}),_=rt(x,bo),A=l.map(function(T,$){var j,E,M,k,C,N;c?j=KC(c[f+$],m):(j=je(T,g),Array.isArray(j)||(j=[b,j]));var R=s2(w,TO.defaultProps.minPointSize)(j[1],$);if(y==="horizontal"){var B,F=[o.scale(j[0]),o.scale(j[1])],H=F[0],Y=F[1];E=Sg({axis:a,ticks:u,bandSize:i,offset:h.offset,entry:T,index:$}),M=(B=Y??H)!==null&&B!==void 0?B:void 0,k=h.size;var z=H-Y;if(C=Number.isNaN(z)?0:z,N={x:E,y:o.y,width:k,height:o.height},Math.abs(R)>0&&Math.abs(C)<Math.abs(R)){var X=qe(C||R)*(Math.abs(R)-Math.abs(C));M-=X,C+=X}}else{var he=[a.scale(j[0]),a.scale(j[1])],be=he[0],Ge=he[1];if(E=be,M=Sg({axis:o,ticks:s,bandSize:i,offset:h.offset,entry:T,index:$}),k=Ge-be,C=h.size,N={x:a.x,y:M,width:a.width,height:C},Math.abs(R)>0&&Math.abs(k)<Math.abs(R)){var Jt=qe(k||R)*(Math.abs(R)-Math.abs(k));k+=Jt}}return xe(xe(xe({},T),{},{x:E,y:M,width:k,height:C,value:c?j:j[1],payload:T,background:N},_&&_[$]&&_[$].props),{},{tooltipPayload:[rO(r,T)],tooltipPosition:{x:E+k/2,y:M+C/2}})});return xe({data:A,layout:y},d)});function Pi(e){"@babel/helpers - typeof";return Pi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pi(e)}function b2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function e0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,$O(n.key),n)}}function x2(e,t,r){return t&&e0(e.prototype,t),r&&e0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function t0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ut(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?t0(Object(r),!0).forEach(function(n){qo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function qo(e,t,r){return t=$O(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $O(e){var t=w2(e,"string");return Pi(t)=="symbol"?t:t+""}function w2(e,t){if(Pi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Pi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var O2=function(t,r,n,i,a){var o=t.width,u=t.height,s=t.layout,c=t.children,f=Object.keys(r),l={left:n.left,leftMirror:n.left,right:o-n.right,rightMirror:o-n.right,top:n.top,topMirror:n.top,bottom:u-n.bottom,bottomMirror:u-n.bottom},d=!!Ye(c,Li);return f.reduce(function(h,y){var v=r[y],p=v.orientation,g=v.domain,x=v.padding,w=x===void 0?{}:x,O=v.mirror,m=v.reversed,b="".concat(p).concat(O?"Mirror":""),_,A,T,$,j;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=g[1]-g[0],M=1/0,k=v.categoricalDomain.sort(IS);if(k.forEach(function(he,be){be>0&&(M=Math.min((he||0)-(k[be-1]||0),M))}),Number.isFinite(M)){var C=M/E,N=v.layout==="vertical"?n.height:n.width;if(v.padding==="gap"&&(_=C*N/2),v.padding==="no-gap"){var R=Le(t.barCategoryGap,C*N),B=C*N/2;_=B-R-(B-R)/N*R}}}i==="xAxis"?A=[n.left+(w.left||0)+(_||0),n.left+n.width-(w.right||0)-(_||0)]:i==="yAxis"?A=s==="horizontal"?[n.top+n.height-(w.bottom||0),n.top+(w.top||0)]:[n.top+(w.top||0)+(_||0),n.top+n.height-(w.bottom||0)-(_||0)]:A=v.range,m&&(A=[A[1],A[0]]);var F=Qw(v,a,d),H=F.scale,Y=F.realScaleType;H.domain(g).range(A),Jw(H);var z=eO(H,ut(ut({},v),{},{realScaleType:Y}));i==="xAxis"?(j=p==="top"&&!O||p==="bottom"&&O,T=n.left,$=l[b]-j*v.height):i==="yAxis"&&(j=p==="left"&&!O||p==="right"&&O,T=l[b]-j*v.width,$=n.top);var X=ut(ut(ut({},v),z),{},{realScaleType:Y,x:T,y:$,scale:H,width:i==="xAxis"?n.width:v.width,height:i==="yAxis"?n.height:v.height});return X.bandSize=ka(X,z),!v.hide&&i==="xAxis"?l[b]+=(j?-1:1)*X.height:v.hide||(l[b]+=(j?-1:1)*X.width),ut(ut({},h),{},qo({},y,X))},{})},CO=function(t,r){var n=t.x,i=t.y,a=r.x,o=r.y;return{x:Math.min(n,a),y:Math.min(i,o),width:Math.abs(a-n),height:Math.abs(o-i)}},_2=function(t){var r=t.x1,n=t.y1,i=t.x2,a=t.y2;return CO({x:r,y:n},{x:i,y:a})},kO=(function(){function e(t){b2(this,e),this.scale=t}return x2(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=n.bandAware,a=n.position;if(r!==void 0){if(a)switch(a){case"start":return this.scale(r);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+o}case"end":{var u=this.bandwidth?this.bandwidth():0;return this.scale(r)+u}default:return this.scale(r)}if(i){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(r)+s}return this.scale(r)}}},{key:"isInRange",value:function(r){var n=this.range(),i=n[0],a=n[n.length-1];return i<=a?r>=i&&r<=a:r>=a&&r<=i}}],[{key:"create",value:function(r){return new e(r)}}])})();qo(kO,"EPS",1e-4);var vh=function(t){var r=Object.keys(t).reduce(function(n,i){return ut(ut({},n),{},qo({},i,kO.create(t[i])))},{});return ut(ut({},r),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,u=a.position;return XR(i,function(s,c){return r[c].apply(s,{bandAware:o,position:u})})},isInRange:function(i){return jO(i,function(a,o){return r[o].isInRange(a)})}})};function S2(e){return(e%180+180)%180}var A2=function(t){var r=t.width,n=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=S2(i),o=a*Math.PI/180,u=Math.atan(n/r),s=o>u&&o<Math.PI-u?n/Math.sin(o):r/Math.cos(o);return Math.abs(s)},zl,r0;function P2(){if(r0)return zl;r0=1;var e=Ot(),t=Ii(),r=yo();function n(i){return function(a,o,u){var s=Object(a);if(!t(a)){var c=e(o,3);a=r(a),o=function(l){return c(s[l],l,s)}}var f=i(a,o,u);return f>-1?s[c?a[f]:f]:void 0}}return zl=n,zl}var Ul,n0;function j2(){if(n0)return Ul;n0=1;var e=_O();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return Ul=t,Ul}var Hl,i0;function T2(){if(i0)return Hl;i0=1;var e=Cx(),t=Ot(),r=j2(),n=Math.max;function i(a,o,u){var s=a==null?0:a.length;if(!s)return-1;var c=u==null?0:r(u);return c<0&&(c=n(s+c,0)),e(a,t(o,3),c)}return Hl=i,Hl}var Gl,a0;function E2(){if(a0)return Gl;a0=1;var e=P2(),t=T2(),r=e(t);return Gl=r,Gl}var M2=E2();const $2=se(M2);var C2=Y0();const k2=se(C2);var I2=k2(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),yh=D.createContext(void 0),mh=D.createContext(void 0),IO=D.createContext(void 0),NO=D.createContext({}),DO=D.createContext(void 0),RO=D.createContext(0),qO=D.createContext(0),o0=function(t){var r=t.state,n=r.xAxisMap,i=r.yAxisMap,a=r.offset,o=t.clipPathId,u=t.children,s=t.width,c=t.height,f=I2(a);return P.createElement(yh.Provider,{value:n},P.createElement(mh.Provider,{value:i},P.createElement(NO.Provider,{value:a},P.createElement(IO.Provider,{value:f},P.createElement(DO.Provider,{value:o},P.createElement(RO.Provider,{value:c},P.createElement(qO.Provider,{value:s},u)))))))},N2=function(){return D.useContext(DO)},LO=function(t){var r=D.useContext(yh);r==null&&xr();var n=r[t];return n==null&&xr(),n},D2=function(){var t=D.useContext(yh);return Ht(t)},R2=function(){var t=D.useContext(mh),r=$2(t,function(n){return jO(n.domain,Number.isFinite)});return r||Ht(t)},BO=function(t){var r=D.useContext(mh);r==null&&xr();var n=r[t];return n==null&&xr(),n},q2=function(){var t=D.useContext(IO);return t},L2=function(){return D.useContext(NO)},gh=function(){return D.useContext(qO)},bh=function(){return D.useContext(RO)};function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(e)}function B2(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F2(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,WO(n.key),n)}}function W2(e,t,r){return t&&F2(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function z2(e,t,r){return t=Xa(t),U2(e,FO()?Reflect.construct(t,r||[],Xa(e).constructor):t.apply(e,r))}function U2(e,t){if(t&&(un(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return H2(e)}function H2(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FO=function(){return!!e})()}function Xa(e){return Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Xa(e)}function G2(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&id(e,t)}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},id(e,t)}function u0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function s0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?u0(Object(r),!0).forEach(function(n){xh(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xh(e,t,r){return t=WO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function WO(e){var t=K2(e,"string");return un(t)=="symbol"?t:t+""}function K2(e,t){if(un(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Y2(e,t){return Q2(e)||Z2(e,t)||X2(e,t)||V2()}function V2(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
61
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function X2(e,t){if(e){if(typeof e=="string")return c0(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c0(e,t)}}function c0(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Z2(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function Q2(e){if(Array.isArray(e))return e}function ad(){return ad=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},ad.apply(this,arguments)}var J2=function(t,r){var n;return P.isValidElement(t)?n=P.cloneElement(t,r):V(t)?n=t(r):n=P.createElement("line",ad({},r,{className:"recharts-reference-line-line"})),n},eq=function(t,r,n,i,a,o,u,s,c){var f=a.x,l=a.y,d=a.width,h=a.height;if(n){var y=c.y,v=t.y.apply(y,{position:o});if(mt(c,"discard")&&!t.y.isInRange(v))return null;var p=[{x:f+d,y:v},{x:f,y:v}];return s==="left"?p.reverse():p}if(r){var g=c.x,x=t.x.apply(g,{position:o});if(mt(c,"discard")&&!t.x.isInRange(x))return null;var w=[{x,y:l+h},{x,y:l}];return u==="top"?w.reverse():w}if(i){var O=c.segment,m=O.map(function(b){return t.apply(b,{position:o})});return mt(c,"discard")&&GR(m,function(b){return!t.isInRange(b)})?null:m}return null};function tq(e){var t=e.x,r=e.y,n=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,u=e.className,s=e.alwaysShow,c=N2(),f=LO(i),l=BO(a),d=q2();if(!c||!d)return null;ct(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var h=vh({x:f.scale,y:l.scale}),y=Te(t),v=Te(r),p=n&&n.length===2,g=eq(h,y,v,p,d,e.position,f.orientation,l.orientation,e);if(!g)return null;var x=Y2(g,2),w=x[0],O=w.x,m=w.y,b=x[1],_=b.x,A=b.y,T=mt(e,"hidden")?"url(#".concat(c,")"):void 0,$=s0(s0({clipPath:T},G(e,!0)),{},{x1:O,y1:m,x2:_,y2:A});return P.createElement(te,{className:J("recharts-reference-line",u)},J2(o,$),$e.renderCallByParent(e,_2({x1:O,y1:m,x2:_,y2:A})))}var wh=(function(e){function t(){return B2(this,t),z2(this,t,arguments)}return G2(t,e),W2(t,[{key:"render",value:function(){return P.createElement(tq,this.props)}}])})(P.Component);xh(wh,"displayName","ReferenceLine");xh(wh,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function od(){return od=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},od.apply(this,arguments)}function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sn(e)}function l0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function f0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?l0(Object(r),!0).forEach(function(n){Lo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,UO(n.key),n)}}function iq(e,t,r){return t&&nq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function aq(e,t,r){return t=Za(t),oq(e,zO()?Reflect.construct(t,r||[],Za(e).constructor):t.apply(e,r))}function oq(e,t){if(t&&(sn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uq(e)}function uq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(zO=function(){return!!e})()}function Za(e){return Za=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Za(e)}function sq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ud(e,t)}function ud(e,t){return ud=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ud(e,t)}function Lo(e,t,r){return t=UO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UO(e){var t=cq(e,"string");return sn(t)=="symbol"?t:t+""}function cq(e,t){if(sn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lq=function(t){var r=t.x,n=t.y,i=t.xAxis,a=t.yAxis,o=vh({x:i.scale,y:a.scale}),u=o.apply({x:r,y:n},{bandAware:!0});return mt(t,"discard")&&!o.isInRange(u)?null:u},Bo=(function(e){function t(){return rq(this,t),aq(this,t,arguments)}return sq(t,e),iq(t,[{key:"render",value:function(){var n=this.props,i=n.x,a=n.y,o=n.r,u=n.alwaysShow,s=n.clipPathId,c=Te(i),f=Te(a);if(ct(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var l=lq(this.props);if(!l)return null;var d=l.x,h=l.y,y=this.props,v=y.shape,p=y.className,g=mt(this.props,"hidden")?"url(#".concat(s,")"):void 0,x=f0(f0({clipPath:g},G(this.props,!0)),{},{cx:d,cy:h});return P.createElement(te,{className:J("recharts-reference-dot",p)},t.renderDot(v,x),$e.renderCallByParent(this.props,{x:d-o,y:h-o,width:2*o,height:2*o}))}}])})(P.Component);Lo(Bo,"displayName","ReferenceDot");Lo(Bo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Lo(Bo,"renderDot",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement($o,od({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),r});function sd(){return sd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},sd.apply(this,arguments)}function cn(e){"@babel/helpers - typeof";return cn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(e)}function d0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function h0(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?d0(Object(r),!0).forEach(function(n){Fo(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function fq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dq(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,GO(n.key),n)}}function hq(e,t,r){return t&&dq(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pq(e,t,r){return t=Qa(t),vq(e,HO()?Reflect.construct(t,r||[],Qa(e).constructor):t.apply(e,r))}function vq(e,t){if(t&&(cn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yq(e)}function yq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function HO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(HO=function(){return!!e})()}function Qa(e){return Qa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},Qa(e)}function mq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cd(e,t)}function cd(e,t){return cd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},cd(e,t)}function Fo(e,t,r){return t=GO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GO(e){var t=gq(e,"string");return cn(t)=="symbol"?t:t+""}function gq(e,t){if(cn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(cn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var bq=function(t,r,n,i,a){var o=a.x1,u=a.x2,s=a.y1,c=a.y2,f=a.xAxis,l=a.yAxis;if(!f||!l)return null;var d=vh({x:f.scale,y:l.scale}),h={x:t?d.x.apply(o,{position:"start"}):d.x.rangeMin,y:n?d.y.apply(s,{position:"start"}):d.y.rangeMin},y={x:r?d.x.apply(u,{position:"end"}):d.x.rangeMax,y:i?d.y.apply(c,{position:"end"}):d.y.rangeMax};return mt(a,"discard")&&(!d.isInRange(h)||!d.isInRange(y))?null:CO(h,y)},Wo=(function(e){function t(){return fq(this,t),pq(this,t,arguments)}return mq(t,e),hq(t,[{key:"render",value:function(){var n=this.props,i=n.x1,a=n.x2,o=n.y1,u=n.y2,s=n.className,c=n.alwaysShow,f=n.clipPathId;ct(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var l=Te(i),d=Te(a),h=Te(o),y=Te(u),v=this.props.shape;if(!l&&!d&&!h&&!y&&!v)return null;var p=bq(l,d,h,y,this.props);if(!p&&!v)return null;var g=mt(this.props,"hidden")?"url(#".concat(f,")"):void 0;return P.createElement(te,{className:J("recharts-reference-area",s)},t.renderRect(v,h0(h0({clipPath:g},G(this.props,!0)),p)),$e.renderCallByParent(this.props,p))}}])})(P.Component);Fo(Wo,"displayName","ReferenceArea");Fo(Wo,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Fo(Wo,"renderRect",function(e,t){var r;return P.isValidElement(e)?r=P.cloneElement(e,t):V(e)?r=e(t):r=P.createElement(ph,sd({},t,{className:"recharts-reference-area-rect"})),r});function KO(e,t,r){if(t<1)return[];if(t===1&&r===void 0)return e;for(var n=[],i=0;i<e.length;i+=t)n.push(e[i]);return n}function xq(e,t,r){var n={width:e.width+t.width,height:e.height+t.height};return A2(n,r)}function wq(e,t,r){var n=r==="width",i=e.x,a=e.y,o=e.width,u=e.height;return t===1?{start:n?i:a,end:n?i+o:a+u}:{start:n?i+o:a+u,end:n?i:a}}function Ja(e,t,r,n,i){if(e*t<e*n||e*t>e*i)return!1;var a=r();return e*(t-e*a/2-n)>=0&&e*(t+e*a/2-i)<=0}function Oq(e,t){return KO(e,t+1)}function _q(e,t,r,n,i){for(var a=(n||[]).slice(),o=t.start,u=t.end,s=0,c=1,f=o,l=function(){var y=n?.[s];if(y===void 0)return{v:KO(n,c)};var v=s,p,g=function(){return p===void 0&&(p=r(y,v)),p},x=y.coordinate,w=s===0||Ja(e,x,g,f,u);w||(s=0,f=o,c+=1),w&&(f=x+e*(g()/2+i),s+=c)},d;c<=a.length;)if(d=l(),d)return d.v;return[]}function ji(e){"@babel/helpers - typeof";return ji=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ji(e)}function p0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ie(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?p0(Object(r),!0).forEach(function(n){Sq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Sq(e,t,r){return t=Aq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Aq(e){var t=Pq(e,"string");return ji(t)=="symbol"?t:t+""}function Pq(e,t){if(ji(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ji(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jq(e,t,r,n,i){for(var a=(n||[]).slice(),o=a.length,u=t.start,s=t.end,c=function(d){var h=a[d],y,v=function(){return y===void 0&&(y=r(h,d)),y};if(d===o-1){var p=e*(h.coordinate+e*v()/2-s);a[d]=h=Ie(Ie({},h),{},{tickCoord:p>0?h.coordinate-p*e:h.coordinate})}else a[d]=h=Ie(Ie({},h),{},{tickCoord:h.coordinate});var g=Ja(e,h.tickCoord,v,u,s);g&&(s=h.tickCoord-e*(v()/2+i),a[d]=Ie(Ie({},h),{},{isShow:!0}))},f=o-1;f>=0;f--)c(f);return a}function Tq(e,t,r,n,i,a){var o=(n||[]).slice(),u=o.length,s=t.start,c=t.end;if(a){var f=n[u-1],l=r(f,u-1),d=e*(f.coordinate+e*l/2-c);o[u-1]=f=Ie(Ie({},f),{},{tickCoord:d>0?f.coordinate-d*e:f.coordinate});var h=Ja(e,f.tickCoord,function(){return l},s,c);h&&(c=f.tickCoord-e*(l/2+i),o[u-1]=Ie(Ie({},f),{},{isShow:!0}))}for(var y=a?u-1:u,v=function(x){var w=o[x],O,m=function(){return O===void 0&&(O=r(w,x)),O};if(x===0){var b=e*(w.coordinate-e*m()/2-s);o[x]=w=Ie(Ie({},w),{},{tickCoord:b<0?w.coordinate-b*e:w.coordinate})}else o[x]=w=Ie(Ie({},w),{},{tickCoord:w.coordinate});var _=Ja(e,w.tickCoord,m,s,c);_&&(s=w.tickCoord+e*(m()/2+i),o[x]=Ie(Ie({},w),{},{isShow:!0}))},p=0;p<y;p++)v(p);return o}function Oh(e,t,r){var n=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,u=e.orientation,s=e.interval,c=e.tickFormatter,f=e.unit,l=e.angle;if(!i||!i.length||!n)return[];if(L(s)||_r.isSsr)return Oq(i,typeof s=="number"&&L(s)?s:0);var d=[],h=u==="top"||u==="bottom"?"width":"height",y=f&&h==="width"?Wn(f,{fontSize:t,letterSpacing:r}):{width:0,height:0},v=function(w,O){var m=V(c)?c(w.value,O):w.value;return h==="width"?xq(Wn(m,{fontSize:t,letterSpacing:r}),y,l):Wn(m,{fontSize:t,letterSpacing:r})[h]},p=i.length>=2?qe(i[1].coordinate-i[0].coordinate):1,g=wq(a,p,h);return s==="equidistantPreserveStart"?_q(p,g,v,i,o):(s==="preserveStart"||s==="preserveStartEnd"?d=Tq(p,g,v,i,o,s==="preserveStartEnd"):d=jq(p,g,v,i,o),d.filter(function(x){return x.isShow}))}var Eq=["viewBox"],Mq=["viewBox"],$q=["ticks"];function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ln(e)}function Dr(){return Dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dr.apply(this,arguments)}function v0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Ae(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?v0(Object(r),!0).forEach(function(n){_h(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Kl(e,t){if(e==null)return{};var r=Cq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Cq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function kq(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,VO(n.key),n)}}function Iq(e,t,r){return t&&y0(e.prototype,t),r&&y0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nq(e,t,r){return t=eo(t),Dq(e,YO()?Reflect.construct(t,r||[],eo(e).constructor):t.apply(e,r))}function Dq(e,t){if(t&&(ln(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Rq(e)}function Rq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function YO(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(YO=function(){return!!e})()}function eo(e){return eo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},eo(e)}function qq(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ld(e,t)}function ld(e,t){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ld(e,t)}function _h(e,t,r){return t=VO(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VO(e){var t=Lq(e,"string");return ln(t)=="symbol"?t:t+""}function Lq(e,t){if(ln(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sn=(function(e){function t(r){var n;return kq(this,t),n=Nq(this,t,[r]),n.state={fontSize:"",letterSpacing:""},n}return qq(t,e),Iq(t,[{key:"shouldComponentUpdate",value:function(n,i){var a=n.viewBox,o=Kl(n,Eq),u=this.props,s=u.viewBox,c=Kl(u,Mq);return!qr(a,s)||!qr(o,c)||!qr(i,this.state)}},{key:"componentDidMount",value:function(){var n=this.layerReference;if(n){var i=n.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(n){var i=this.props,a=i.x,o=i.y,u=i.width,s=i.height,c=i.orientation,f=i.tickSize,l=i.mirror,d=i.tickMargin,h,y,v,p,g,x,w=l?-1:1,O=n.tickSize||f,m=L(n.tickCoord)?n.tickCoord:n.coordinate;switch(c){case"top":h=y=n.coordinate,p=o+ +!l*s,v=p-w*O,x=v-w*d,g=m;break;case"left":v=p=n.coordinate,y=a+ +!l*u,h=y-w*O,g=h-w*d,x=m;break;case"right":v=p=n.coordinate,y=a+ +l*u,h=y+w*O,g=h+w*d,x=m;break;default:h=y=n.coordinate,p=o+ +l*s,v=p+w*O,x=v+w*d,g=m;break}return{line:{x1:h,y1:v,x2:y,y2:p},tick:{x:g,y:x}}}},{key:"getTickTextAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var n=this.props,i=n.orientation,a=n.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var n=this.props,i=n.x,a=n.y,o=n.width,u=n.height,s=n.orientation,c=n.mirror,f=n.axisLine,l=Ae(Ae(Ae({},G(this.props,!1)),G(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var d=+(s==="top"&&!c||s==="bottom"&&c);l=Ae(Ae({},l),{},{x1:i,y1:a+d*u,x2:i+o,y2:a+d*u})}else{var h=+(s==="left"&&!c||s==="right"&&c);l=Ae(Ae({},l),{},{x1:i+h*o,y1:a,x2:i+h*o,y2:a+u})}return P.createElement("line",Dr({},l,{className:J("recharts-cartesian-axis-line",Xe(f,"className"))}))}},{key:"renderTicks",value:function(n,i,a){var o=this,u=this.props,s=u.tickLine,c=u.stroke,f=u.tick,l=u.tickFormatter,d=u.unit,h=Oh(Ae(Ae({},this.props),{},{ticks:n}),i,a),y=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),p=G(this.props,!1),g=G(f,!1),x=Ae(Ae({},p),{},{fill:"none"},G(s,!1)),w=h.map(function(O,m){var b=o.getTickLineCoord(O),_=b.line,A=b.tick,T=Ae(Ae(Ae(Ae({textAnchor:y,verticalAnchor:v},p),{},{stroke:"none",fill:c},g),A),{},{index:m,payload:O,visibleTicksCount:h.length,tickFormatter:l});return P.createElement(te,Dr({className:"recharts-cartesian-axis-tick",key:"tick-".concat(O.value,"-").concat(O.coordinate,"-").concat(O.tickCoord)},mr(o.props,O,m)),s&&P.createElement("line",Dr({},x,_,{className:J("recharts-cartesian-axis-tick-line",Xe(s,"className"))})),f&&t.renderTickItem(f,T,"".concat(V(l)?l(O.value,m):O.value).concat(d||"")))});return P.createElement("g",{className:"recharts-cartesian-axis-ticks"},w)}},{key:"render",value:function(){var n=this,i=this.props,a=i.axisLine,o=i.width,u=i.height,s=i.ticksGenerator,c=i.className,f=i.hide;if(f)return null;var l=this.props,d=l.ticks,h=Kl(l,$q),y=d;return V(s)&&(y=d&&d.length>0?s(this.props):s(h)),o<=0||u<=0||!y||!y.length?null:P.createElement(te,{className:J("recharts-cartesian-axis",c),ref:function(p){n.layerReference=p}},a&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),$e.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(n,i,a){var o,u=J(i.className,"recharts-cartesian-axis-tick-value");return P.isValidElement(n)?o=P.cloneElement(n,Ae(Ae({},i),{},{className:u})):V(n)?o=n(Ae(Ae({},i),{},{className:u})):o=P.createElement(gr,Dr({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])})(D.Component);_h(Sn,"displayName","CartesianAxis");_h(Sn,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Bq=["x1","y1","x2","y2","key"],Fq=["offset"];function wr(e){"@babel/helpers - typeof";return wr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wr(e)}function m0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Re(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?m0(Object(r),!0).forEach(function(n){Wq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Wq(e,t,r){return t=zq(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zq(e){var t=Uq(e,"string");return wr(t)=="symbol"?t:t+""}function Uq(e,t){if(wr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(wr(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dr(){return dr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},dr.apply(this,arguments)}function g0(e,t){if(e==null)return{};var r=Hq(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Hq(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Gq=function(t){var r=t.fill;if(!r||r==="none")return null;var n=t.fillOpacity,i=t.x,a=t.y,o=t.width,u=t.height,s=t.ry;return P.createElement("rect",{x:i,y:a,ry:s,width:o,height:u,stroke:"none",fill:r,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function XO(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=t.x1,i=t.y1,a=t.x2,o=t.y2,u=t.key,s=g0(t,Bq),c=G(s,!1);c.offset;var f=g0(c,Fq);r=P.createElement("line",dr({},f,{x1:n,y1:i,x2:a,y2:o,fill:"none",key:u}))}return r}function Kq(e){var t=e.x,r=e.width,n=e.horizontal,i=n===void 0?!0:n,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Re(Re({},e),{},{x1:t,y1:u,x2:t+r,y2:u,key:"line-".concat(s),index:s});return XO(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function Yq(e){var t=e.y,r=e.height,n=e.vertical,i=n===void 0?!0:n,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(u,s){var c=Re(Re({},e),{},{x1:u,y1:t,x2:u,y2:t+r,key:"line-".concat(s),index:s});return XO(i,c)});return P.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function Vq(e){var t=e.horizontalFill,r=e.fillOpacity,n=e.x,i=e.y,a=e.width,o=e.height,u=e.horizontalPoints,s=e.horizontal,c=s===void 0?!0:s;if(!c||!t||!t.length)return null;var f=u.map(function(d){return Math.round(d+i-i)}).sort(function(d,h){return d-h});i!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?i+o-d:f[h+1]-d;if(v<=0)return null;var p=h%t.length;return P.createElement("rect",{key:"react-".concat(h),y:d,x:n,height:v,width:a,stroke:"none",fill:t[p],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},l)}function Xq(e){var t=e.vertical,r=t===void 0?!0:t,n=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,u=e.width,s=e.height,c=e.verticalPoints;if(!r||!n||!n.length)return null;var f=c.map(function(d){return Math.round(d+a-a)}).sort(function(d,h){return d-h});a!==f[0]&&f.unshift(0);var l=f.map(function(d,h){var y=!f[h+1],v=y?a+u-d:f[h+1]-d;if(v<=0)return null;var p=h%n.length;return P.createElement("rect",{key:"react-".concat(h),x:d,y:o,width:v,height:s,stroke:"none",fill:n[p],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return P.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},l)}var Zq=function(t,r){var n=t.xAxis,i=t.width,a=t.height,o=t.offset;return Zw(Oh(Re(Re(Re({},Sn.defaultProps),n),{},{ticks:jt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,r)},Qq=function(t,r){var n=t.yAxis,i=t.width,a=t.height,o=t.offset;return Zw(Oh(Re(Re(Re({},Sn.defaultProps),n),{},{ticks:jt(n,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,r)},$r={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ZO(e){var t,r,n,i,a,o,u=gh(),s=bh(),c=L2(),f=Re(Re({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:$r.stroke,fill:(r=e.fill)!==null&&r!==void 0?r:$r.fill,horizontal:(n=e.horizontal)!==null&&n!==void 0?n:$r.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:$r.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:$r.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:$r.verticalFill,x:L(e.x)?e.x:c.left,y:L(e.y)?e.y:c.top,width:L(e.width)?e.width:c.width,height:L(e.height)?e.height:c.height}),l=f.x,d=f.y,h=f.width,y=f.height,v=f.syncWithTicks,p=f.horizontalValues,g=f.verticalValues,x=D2(),w=R2();if(!L(h)||h<=0||!L(y)||y<=0||!L(l)||l!==+l||!L(d)||d!==+d)return null;var O=f.verticalCoordinatesGenerator||Zq,m=f.horizontalCoordinatesGenerator||Qq,b=f.horizontalPoints,_=f.verticalPoints;if((!b||!b.length)&&V(m)){var A=p&&p.length,T=m({yAxis:w?Re(Re({},w),{},{ticks:A?p:w.ticks}):void 0,width:u,height:s,offset:c},A?!0:v);ct(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(wr(T),"]")),Array.isArray(T)&&(b=T)}if((!_||!_.length)&&V(O)){var $=g&&g.length,j=O({xAxis:x?Re(Re({},x),{},{ticks:$?g:x.ticks}):void 0,width:u,height:s,offset:c},$?!0:v);ct(Array.isArray(j),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(wr(j),"]")),Array.isArray(j)&&(_=j)}return P.createElement("g",{className:"recharts-cartesian-grid"},P.createElement(Gq,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),P.createElement(Kq,dr({},f,{offset:c,horizontalPoints:b,xAxis:x,yAxis:w})),P.createElement(Yq,dr({},f,{offset:c,verticalPoints:_,xAxis:x,yAxis:w})),P.createElement(Vq,dr({},f,{horizontalPoints:b})),P.createElement(Xq,dr({},f,{verticalPoints:_})))}ZO.displayName="CartesianGrid";var Jq=["layout","type","stroke","connectNulls","isRange","ref"],eL=["key"],QO;function fn(e){"@babel/helpers - typeof";return fn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fn(e)}function JO(e,t){if(e==null)return{};var r=tL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function tL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function hr(){return hr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hr.apply(this,arguments)}function b0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Wt(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?b0(Object(r),!0).forEach(function(n){pt(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function rL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x0(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,t1(n.key),n)}}function nL(e,t,r){return t&&x0(e.prototype,t),r&&x0(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function iL(e,t,r){return t=to(t),aL(e,e1()?Reflect.construct(t,r||[],to(e).constructor):t.apply(e,r))}function aL(e,t){if(t&&(fn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oL(e)}function oL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e1=function(){return!!e})()}function to(e){return to=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},to(e)}function uL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fd(e,t)}function fd(e,t){return fd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},fd(e,t)}function pt(e,t,r){return t=t1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t1(e){var t=sL(e,"string");return fn(t)=="symbol"?t:t+""}function sL(e,t){if(fn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(fn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var It=(function(e){function t(){var r;rL(this,t);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return r=iL(this,t,[].concat(i)),pt(r,"state",{isAnimationFinished:!0}),pt(r,"id",bn("recharts-area-")),pt(r,"handleAnimationEnd",function(){var o=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),V(o)&&o()}),pt(r,"handleAnimationStart",function(){var o=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),V(o)&&o()}),r}return uL(t,e),nL(t,[{key:"renderDots",value:function(n,i,a){var o=this.props.isAnimationActive,u=this.state.isAnimationFinished;if(o&&!u)return null;var s=this.props,c=s.dot,f=s.points,l=s.dataKey,d=G(this.props,!1),h=G(c,!0),y=f.map(function(p,g){var x=Wt(Wt(Wt({key:"dot-".concat(g),r:3},d),h),{},{index:g,cx:p.x,cy:p.y,dataKey:l,value:p.value,payload:p.payload,points:f});return t.renderDotItem(c,x)}),v={clipPath:n?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return P.createElement(te,hr({className:"recharts-area-dots"},v),y)}},{key:"renderHorizontalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].x,c=o[o.length-1].x,f=n*Math.abs(s-c),l=Gt(o.map(function(d){return d.y||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Gt(a.map(function(d){return d.y||0})),l)),L(l)?P.createElement("rect",{x:s<c?s:s-f,y:0,width:f,height:Math.floor(l+(u?parseInt("".concat(u),10):1))}):null}},{key:"renderVerticalRect",value:function(n){var i=this.props,a=i.baseLine,o=i.points,u=i.strokeWidth,s=o[0].y,c=o[o.length-1].y,f=n*Math.abs(s-c),l=Gt(o.map(function(d){return d.x||0}));return L(a)&&typeof a=="number"?l=Math.max(a,l):a&&Array.isArray(a)&&a.length&&(l=Math.max(Gt(a.map(function(d){return d.x||0})),l)),L(l)?P.createElement("rect",{x:0,y:s<c?s:s-f,width:l+(u?parseInt("".concat(u),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(n){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(n):this.renderHorizontalRect(n)}},{key:"renderAreaStatically",value:function(n,i,a,o){var u=this.props,s=u.layout,c=u.type,f=u.stroke,l=u.connectNulls,d=u.isRange;u.ref;var h=JO(u,Jq);return P.createElement(te,{clipPath:a?"url(#clipPath-".concat(o,")"):null},P.createElement(Wr,hr({},G(h,!0),{points:n,connectNulls:l,type:c,baseLine:i,layout:s,stroke:"none",className:"recharts-area-area"})),f!=="none"&&P.createElement(Wr,hr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:n})),f!=="none"&&d&&P.createElement(Wr,hr({},G(this.props,!1),{className:"recharts-area-curve",layout:s,type:c,connectNulls:l,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(n,i){var a=this,o=this.props,u=o.points,s=o.baseLine,c=o.isAnimationActive,f=o.animationBegin,l=o.animationDuration,d=o.animationEasing,h=o.animationId,y=this.state,v=y.prevPoints,p=y.prevBaseLine;return P.createElement(xt,{begin:f,duration:l,isActive:c,easing:d,from:{t:0},to:{t:1},key:"area-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var x=g.t;if(v){var w=v.length/u.length,O=u.map(function(A,T){var $=Math.floor(T*w);if(v[$]){var j=v[$],E=ze(j.x,A.x),M=ze(j.y,A.y);return Wt(Wt({},A),{},{x:E(x),y:M(x)})}return A}),m;if(L(s)&&typeof s=="number"){var b=ze(p,s);m=b(x)}else if(Z(s)||gn(s)){var _=ze(p,0);m=_(x)}else m=s.map(function(A,T){var $=Math.floor(T*w);if(p[$]){var j=p[$],E=ze(j.x,A.x),M=ze(j.y,A.y);return Wt(Wt({},A),{},{x:E(x),y:M(x)})}return A});return a.renderAreaStatically(O,m,n,i)}return P.createElement(te,null,P.createElement("defs",null,P.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(x))),P.createElement(te,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(u,s,n,i)))})}},{key:"renderArea",value:function(n,i){var a=this.props,o=a.points,u=a.baseLine,s=a.isAnimationActive,c=this.state,f=c.prevPoints,l=c.prevBaseLine,d=c.totalLength;return s&&o&&o.length&&(!f&&d>0||!Zr(f,o)||!Zr(l,u))?this.renderAreaWithAnimation(n,i):this.renderAreaStatically(o,u,n,i)}},{key:"render",value:function(){var n,i=this.props,a=i.hide,o=i.dot,u=i.points,s=i.className,c=i.top,f=i.left,l=i.xAxis,d=i.yAxis,h=i.width,y=i.height,v=i.isAnimationActive,p=i.id;if(a||!u||!u.length)return null;var g=this.state.isAnimationFinished,x=u.length===1,w=J("recharts-area",s),O=l&&l.allowDataOverflow,m=d&&d.allowDataOverflow,b=O||m,_=Z(p)?this.id:p,A=(n=G(o,!1))!==null&&n!==void 0?n:{r:3,strokeWidth:2},T=A.r,$=T===void 0?3:T,j=A.strokeWidth,E=j===void 0?2:j,M=zS(o)?o:{},k=M.clipDot,C=k===void 0?!0:k,N=$*2+E;return P.createElement(te,{className:w},O||m?P.createElement("defs",null,P.createElement("clipPath",{id:"clipPath-".concat(_)},P.createElement("rect",{x:O?f:f-h/2,y:m?c:c-y/2,width:O?h:h*2,height:m?y:y*2})),!C&&P.createElement("clipPath",{id:"clipPath-dots-".concat(_)},P.createElement("rect",{x:f-N/2,y:c-N/2,width:h+N,height:y+N}))):null,x?null:this.renderArea(b,_),(o||x)&&this.renderDots(b,C,_),(!v||g)&&Mt.renderCallByParent(this.props,u))}}],[{key:"getDerivedStateFromProps",value:function(n,i){return n.animationId!==i.prevAnimationId?{prevAnimationId:n.animationId,curPoints:n.points,curBaseLine:n.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:n.points!==i.curPoints||n.baseLine!==i.curBaseLine?{curPoints:n.points,curBaseLine:n.baseLine}:null}}])})(D.PureComponent);QO=It;pt(It,"displayName","Area");pt(It,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!_r.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});pt(It,"getBaseValue",function(e,t,r,n){var i=e.layout,a=e.baseValue,o=t.props.baseValue,u=o??a;if(L(u)&&typeof u=="number")return u;var s=i==="horizontal"?n:r,c=s.scale.domain();if(s.type==="number"){var f=Math.max(c[0],c[1]),l=Math.min(c[0],c[1]);return u==="dataMin"?l:u==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return u==="dataMin"?c[0]:u==="dataMax"?c[1]:c[0]});pt(It,"getComposedData",function(e){var t=e.props,r=e.item,n=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,u=e.bandSize,s=e.dataKey,c=e.stackedData,f=e.dataStartIndex,l=e.displayedData,d=e.offset,h=t.layout,y=c&&c.length,v=QO.getBaseValue(t,r,n,i),p=h==="horizontal",g=!1,x=l.map(function(O,m){var b;y?b=c[f+m]:(b=je(O,s),Array.isArray(b)?g=!0:b=[v,b]);var _=b[1]==null||y&&je(O,s)==null;return p?{x:_g({axis:n,ticks:a,bandSize:u,entry:O,index:m}),y:_?null:i.scale(b[1]),value:b,payload:O}:{x:_?null:n.scale(b[1]),y:_g({axis:i,ticks:o,bandSize:u,entry:O,index:m}),value:b,payload:O}}),w;return y||g?w=x.map(function(O){var m=Array.isArray(O.value)?O.value[0]:null;return p?{x:O.x,y:m!=null&&O.y!=null?i.scale(m):null}:{x:m!=null?n.scale(m):null,y:O.y}}):w=p?i.scale(v):n.scale(v),Wt({points:x,baseLine:w,layout:h,isRange:g},d)});pt(It,"renderDotItem",function(e,t){var r;if(P.isValidElement(e))r=P.cloneElement(e,t);else if(V(e))r=e(t);else{var n=J("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=JO(t,eL);r=P.createElement($o,hr({},a,{key:i,className:n}))}return r});function dn(e){"@babel/helpers - typeof";return dn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dn(e)}function cL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,i1(n.key),n)}}function fL(e,t,r){return t&&lL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dL(e,t,r){return t=ro(t),hL(e,r1()?Reflect.construct(t,r||[],ro(e).constructor):t.apply(e,r))}function hL(e,t){if(t&&(dn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pL(e)}function pL(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(r1=function(){return!!e})()}function ro(e){return ro=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},ro(e)}function vL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dd(e,t)}function dd(e,t){return dd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},dd(e,t)}function n1(e,t,r){return t=i1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function i1(e){var t=yL(e,"string");return dn(t)=="symbol"?t:t+""}function yL(e,t){if(dn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(dn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function hd(){return hd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},hd.apply(this,arguments)}function mL(e){var t=e.xAxisId,r=gh(),n=bh(),i=LO(t);return i==null?null:D.createElement(Sn,hd({},i,{className:J("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:n},ticksGenerator:function(o){return jt(o,!0)}}))}var zo=(function(e){function t(){return cL(this,t),dL(this,t,arguments)}return vL(t,e),fL(t,[{key:"render",value:function(){return D.createElement(mL,this.props)}}])})(D.Component);n1(zo,"displayName","XAxis");n1(zo,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function hn(e){"@babel/helpers - typeof";return hn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hn(e)}function gL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,u1(n.key),n)}}function xL(e,t,r){return t&&bL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wL(e,t,r){return t=no(t),OL(e,a1()?Reflect.construct(t,r||[],no(e).constructor):t.apply(e,r))}function OL(e,t){if(t&&(hn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _L(e)}function _L(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a1=function(){return!!e})()}function no(e){return no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},no(e)}function SL(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pd(e,t)}function pd(e,t){return pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},pd(e,t)}function o1(e,t,r){return t=u1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u1(e){var t=AL(e,"string");return hn(t)=="symbol"?t:t+""}function AL(e,t){if(hn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(hn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},vd.apply(this,arguments)}var PL=function(t){var r=t.yAxisId,n=gh(),i=bh(),a=BO(r);return a==null?null:D.createElement(Sn,vd({},a,{className:J("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:i},ticksGenerator:function(u){return jt(u,!0)}}))},Ti=(function(e){function t(){return gL(this,t),wL(this,t,arguments)}return SL(t,e),xL(t,[{key:"render",value:function(){return D.createElement(PL,this.props)}}])})(D.Component);o1(Ti,"displayName","YAxis");o1(Ti,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function w0(e){return ML(e)||EL(e)||TL(e)||jL()}function jL(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
62
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function TL(e,t){if(e){if(typeof e=="string")return yd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return yd(e,t)}}function EL(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ML(e){if(Array.isArray(e))return yd(e)}function yd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var md=function(t,r,n,i,a){var o=rt(t,wh),u=rt(t,Bo),s=[].concat(w0(o),w0(u)),c=rt(t,Wo),f="".concat(i,"Id"),l=i[0],d=r;if(s.length&&(d=s.reduce(function(v,p){if(p.props[f]===n&&mt(p.props,"extendDomain")&&L(p.props[l])){var g=p.props[l];return[Math.min(v[0],g),Math.max(v[1],g)]}return v},d)),c.length){var h="".concat(l,"1"),y="".concat(l,"2");d=c.reduce(function(v,p){if(p.props[f]===n&&mt(p.props,"extendDomain")&&L(p.props[h])&&L(p.props[y])){var g=p.props[h],x=p.props[y];return[Math.min(v[0],g,x),Math.max(v[1],g,x)]}return v},d)}return a&&a.length&&(d=a.reduce(function(v,p){return L(p)?[Math.min(v[0],p),Math.max(v[1],p)]:v},d)),d},Yl={exports:{}},O0;function $L(){return O0||(O0=1,(function(e){var t=Object.prototype.hasOwnProperty,r="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(r=!1));function i(s,c,f){this.fn=s,this.context=c,this.once=f||!1}function a(s,c,f,l,d){if(typeof f!="function")throw new TypeError("The listener must be a function");var h=new i(f,l||s,d),y=r?r+c:c;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],h]:s._events[y].push(h):(s._events[y]=h,s._eventsCount++),s}function o(s,c){--s._eventsCount===0?s._events=new n:delete s._events[c]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var c=[],f,l;if(this._eventsCount===0)return c;for(l in f=this._events)t.call(f,l)&&c.push(r?l.slice(1):l);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},u.prototype.listeners=function(c){var f=r?r+c:c,l=this._events[f];if(!l)return[];if(l.fn)return[l.fn];for(var d=0,h=l.length,y=new Array(h);d<h;d++)y[d]=l[d].fn;return y},u.prototype.listenerCount=function(c){var f=r?r+c:c,l=this._events[f];return l?l.fn?1:l.length:0},u.prototype.emit=function(c,f,l,d,h,y){var v=r?r+c:c;if(!this._events[v])return!1;var p=this._events[v],g=arguments.length,x,w;if(p.fn){switch(p.once&&this.removeListener(c,p.fn,void 0,!0),g){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,l),!0;case 4:return p.fn.call(p.context,f,l,d),!0;case 5:return p.fn.call(p.context,f,l,d,h),!0;case 6:return p.fn.call(p.context,f,l,d,h,y),!0}for(w=1,x=new Array(g-1);w<g;w++)x[w-1]=arguments[w];p.fn.apply(p.context,x)}else{var O=p.length,m;for(w=0;w<O;w++)switch(p[w].once&&this.removeListener(c,p[w].fn,void 0,!0),g){case 1:p[w].fn.call(p[w].context);break;case 2:p[w].fn.call(p[w].context,f);break;case 3:p[w].fn.call(p[w].context,f,l);break;case 4:p[w].fn.call(p[w].context,f,l,d);break;default:if(!x)for(m=1,x=new Array(g-1);m<g;m++)x[m-1]=arguments[m];p[w].fn.apply(p[w].context,x)}}return!0},u.prototype.on=function(c,f,l){return a(this,c,f,l,!1)},u.prototype.once=function(c,f,l){return a(this,c,f,l,!0)},u.prototype.removeListener=function(c,f,l,d){var h=r?r+c:c;if(!this._events[h])return this;if(!f)return o(this,h),this;var y=this._events[h];if(y.fn)y.fn===f&&(!d||y.once)&&(!l||y.context===l)&&o(this,h);else{for(var v=0,p=[],g=y.length;v<g;v++)(y[v].fn!==f||d&&!y[v].once||l&&y[v].context!==l)&&p.push(y[v]);p.length?this._events[h]=p.length===1?p[0]:p:o(this,h)}return this},u.prototype.removeAllListeners=function(c){var f;return c?(f=r?r+c:c,this._events[f]&&o(this,f)):(this._events=new n,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=r,u.EventEmitter=u,e.exports=u})(Yl)),Yl.exports}var CL=$L();const kL=se(CL);var Vl=new kL,Xl="recharts.syncMouseEvents";function Ei(e){"@babel/helpers - typeof";return Ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ei(e)}function IL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function NL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,s1(n.key),n)}}function DL(e,t,r){return t&&NL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zl(e,t,r){return t=s1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s1(e){var t=RL(e,"string");return Ei(t)=="symbol"?t:t+""}function RL(e,t){if(Ei(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Ei(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qL=(function(){function e(){IL(this,e),Zl(this,"activeIndex",0),Zl(this,"coordinateList",[]),Zl(this,"layout","horizontal")}return DL(e,[{key:"setDetails",value:function(r){var n,i=r.coordinateList,a=i===void 0?null:i,o=r.container,u=o===void 0?null:o,s=r.layout,c=s===void 0?null:s,f=r.offset,l=f===void 0?null:f,d=r.mouseHandlerCallback,h=d===void 0?null:d;this.coordinateList=(n=a??this.coordinateList)!==null&&n!==void 0?n:[],this.container=u??this.container,this.layout=c??this.layout,this.offset=l??this.offset,this.mouseHandlerCallback=h??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(r){if(this.coordinateList.length!==0)switch(r.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(r){this.activeIndex=r}},{key:"spoofMouse",value:function(){var r,n;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,u=i.height,s=this.coordinateList[this.activeIndex].coordinate,c=((r=window)===null||r===void 0?void 0:r.scrollX)||0,f=((n=window)===null||n===void 0?void 0:n.scrollY)||0,l=a+s+c,d=o+this.offset.top+u/2+f;this.mouseHandlerCallback({pageX:l,pageY:d})}}}])})();function LL(e,t,r){if(r==="number"&&t===!0&&Array.isArray(e)){var n=e?.[0],i=e?.[1];if(n&&i&&L(n)&&L(i))return!0}return!1}function BL(e,t,r,n){var i=n/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:r.left+.5,y:e==="horizontal"?r.top+.5:t.y-i,width:e==="horizontal"?n:r.width-1,height:e==="horizontal"?r.height-1:n}}function c1(e){var t=e.cx,r=e.cy,n=e.radius,i=e.startAngle,a=e.endAngle,o=de(t,r,n,i),u=de(t,r,n,a);return{points:[o,u],cx:t,cy:r,radius:n,startAngle:i,endAngle:a}}function FL(e,t,r){var n,i,a,o;if(e==="horizontal")n=t.x,a=n,i=r.top,o=r.top+r.height;else if(e==="vertical")i=t.y,o=i,n=r.left,a=r.left+r.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var u=t.cx,s=t.cy,c=t.innerRadius,f=t.outerRadius,l=t.angle,d=de(u,s,c,l),h=de(u,s,f,l);n=d.x,i=d.y,a=h.x,o=h.y}else return c1(t);return[{x:n,y:i},{x:a,y:o}]}function Mi(e){"@babel/helpers - typeof";return Mi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mi(e)}function _0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function ea(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?_0(Object(r),!0).forEach(function(n){WL(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function WL(e,t,r){return t=zL(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function zL(e){var t=UL(e,"string");return Mi(t)=="symbol"?t:t+""}function UL(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function HL(e){var t,r,n=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,u=e.activePayload,s=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,l=e.layout,d=e.chartName,h=(t=n.props.cursor)!==null&&t!==void 0?t:(r=n.type.defaultProps)===null||r===void 0?void 0:r.cursor;if(!n||!h||!a||!o||d!=="ScatterChart"&&i!=="axis")return null;var y,v=Wr;if(d==="ScatterChart")y=o,v=yD;else if(d==="BarChart")y=BL(l,o,s,f),v=ph;else if(l==="radial"){var p=c1(o),g=p.cx,x=p.cy,w=p.radius,O=p.startAngle,m=p.endAngle;y={cx:g,cy:x,startAngle:O,endAngle:m,innerRadius:w,outerRadius:w},v=sO}else y={points:FL(l,o,s)},v=Wr;var b=ea(ea(ea(ea({stroke:"#ccc",pointerEvents:"none"},s),y),G(h,!1)),{},{payload:u,payloadIndex:c,className:J("recharts-tooltip-cursor",h.className)});return D.isValidElement(h)?D.cloneElement(h,b):D.createElement(v,b)}var GL=["item"],KL=["children","className","width","height","style","compact","title","desc"];function pn(e){"@babel/helpers - typeof";return pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pn(e)}function Rr(){return Rr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Rr.apply(this,arguments)}function S0(e,t){return XL(e)||VL(e,t)||f1(e,t)||YL()}function YL(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
63
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function VL(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n,i,a,o,u=[],s=!0,c=!1;try{if(a=(r=r.call(e)).next,t!==0)for(;!(s=(n=a.call(r)).done)&&(u.push(n.value),u.length!==t);s=!0);}catch(f){c=!0,i=f}finally{try{if(!s&&r.return!=null&&(o=r.return(),Object(o)!==o))return}finally{if(c)throw i}}return u}}function XL(e){if(Array.isArray(e))return e}function A0(e,t){if(e==null)return{};var r=ZL(e,t),n,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)n=a[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function ZL(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}function QL(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function JL(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d1(n.key),n)}}function eB(e,t,r){return t&&JL(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tB(e,t,r){return t=io(t),rB(e,l1()?Reflect.construct(t,r||[],io(e).constructor):t.apply(e,r))}function rB(e,t){if(t&&(pn(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nB(e)}function nB(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l1(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l1=function(){return!!e})()}function io(e){return io=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(r){return r.__proto__||Object.getPrototypeOf(r)},io(e)}function iB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&gd(e,t)}function gd(e,t){return gd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},gd(e,t)}function vn(e){return uB(e)||oB(e)||f1(e)||aB()}function aB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
64
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f1(e,t){if(e){if(typeof e=="string")return bd(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return bd(e,t)}}function oB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uB(e){if(Array.isArray(e))return bd(e)}function bd(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function P0(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?P0(Object(r),!0).forEach(function(n){K(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P0(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function K(e,t,r){return t=d1(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d1(e){var t=sB(e,"string");return pn(t)=="symbol"?t:t+""}function sB(e,t){if(pn(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(pn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cB={xAxis:["bottom","top"],yAxis:["left","right"]},lB={width:"100%",height:"100%"},h1={x:0,y:0};function ta(e){return e}var fB=function(t,r){return r==="horizontal"?t.x:r==="vertical"?t.y:r==="centric"?t.angle:t.radius},dB=function(t,r,n,i){var a=r.find(function(f){return f&&f.index===n});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,u=i.radius;return I(I(I({},i),de(i.cx,i.cy,u,o)),{},{angle:o,radius:u})}var s=a.coordinate,c=i.angle;return I(I(I({},i),de(i.cx,i.cy,s,c)),{},{angle:c,radius:s})}return h1},Uo=function(t,r){var n=r.graphicalItems,i=r.dataStartIndex,a=r.dataEndIndex,o=(n??[]).reduce(function(u,s){var c=s.props.data;return c&&c.length?[].concat(vn(u),vn(c)):u},[]);return o.length>0?o:t&&t.length&&L(i)&&L(a)?t.slice(i,a+1):[]};function p1(e){return e==="number"?[0,"auto"]:void 0}var xd=function(t,r,n,i){var a=t.graphicalItems,o=t.tooltipAxis,u=Uo(r,t);return n<0||!a||!a.length||n>=u.length?null:a.reduce(function(s,c){var f,l=(f=c.props.data)!==null&&f!==void 0?f:r;l&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=n&&(l=l.slice(t.dataStartIndex,t.dataEndIndex+1));var d;if(o.dataKey&&!o.allowDuplicatedCategory){var h=l===void 0?u:l;d=sa(h,o.dataKey,i)}else d=l&&l[n]||u[n];return d?[].concat(vn(s),[rO(c,d)]):s},[])},j0=function(t,r,n,i){var a=i||{x:t.chartX,y:t.chartY},o=fB(a,n),u=t.orderedTooltipTicks,s=t.tooltipAxis,c=t.tooltipTicks,f=BC(o,u,c,s);if(f>=0&&c){var l=c[f]&&c[f].value,d=xd(t,r,f,l),h=dB(n,u,f,a);return{activeTooltipIndex:f,activeLabel:l,activePayload:d,activeCoordinate:h}}return null},hB=function(t,r){var n=r.axes,i=r.graphicalItems,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=t.stackOffset,h=Xw(f,a);return n.reduce(function(y,v){var p,g=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,x=g.type,w=g.dataKey,O=g.allowDataOverflow,m=g.allowDuplicatedCategory,b=g.scale,_=g.ticks,A=g.includeHidden,T=g[o];if(y[T])return y;var $=Uo(t.data,{graphicalItems:i.filter(function(z){var X,he=o in z.props?z.props[o]:(X=z.type.defaultProps)===null||X===void 0?void 0:X[o];return he===T}),dataStartIndex:s,dataEndIndex:c}),j=$.length,E,M,k;LL(g.domain,O,x)&&(E=Nf(g.domain,null,O),h&&(x==="number"||b!=="auto")&&(k=Un($,w,"category")));var C=p1(x);if(!E||E.length===0){var N,R=(N=g.domain)!==null&&N!==void 0?N:C;if(w){if(E=Un($,w,x),x==="category"&&h){var B=kS(E);m&&B?(M=E,E=Ha(0,j)):m||(E=jg(R,E,v).reduce(function(z,X){return z.indexOf(X)>=0?z:[].concat(vn(z),[X])},[]))}else if(x==="category")m?E=E.filter(function(z){return z!==""&&!Z(z)}):E=jg(R,E,v).reduce(function(z,X){return z.indexOf(X)>=0||X===""||Z(X)?z:[].concat(vn(z),[X])},[]);else if(x==="number"){var F=HC($,i.filter(function(z){var X,he,be=o in z.props?z.props[o]:(X=z.type.defaultProps)===null||X===void 0?void 0:X[o],Ge="hide"in z.props?z.props.hide:(he=z.type.defaultProps)===null||he===void 0?void 0:he.hide;return be===T&&(A||!Ge)}),w,a,f);F&&(E=F)}h&&(x==="number"||b!=="auto")&&(k=Un($,w,"category"))}else h?E=Ha(0,j):u&&u[T]&&u[T].hasStack&&x==="number"?E=d==="expand"?[0,1]:tO(u[T].stackGroups,s,c):E=Vw($,i.filter(function(z){var X=o in z.props?z.props[o]:z.type.defaultProps[o],he="hide"in z.props?z.props.hide:z.type.defaultProps.hide;return X===T&&(A||!he)}),x,f,!0);if(x==="number")E=md(l,E,T,a,_),R&&(E=Nf(R,E,O));else if(x==="category"&&R){var H=R,Y=E.every(function(z){return H.indexOf(z)>=0});Y&&(E=H)}}return I(I({},y),{},K({},T,I(I({},g),{},{axisType:a,domain:E,categoricalDomain:k,duplicateDomain:M,originalDomain:(p=g.domain)!==null&&p!==void 0?p:C,isCategorical:h,layout:f})))},{})},pB=function(t,r){var n=r.graphicalItems,i=r.Axis,a=r.axisType,o=r.axisIdKey,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.layout,l=t.children,d=Uo(t.data,{graphicalItems:n,dataStartIndex:s,dataEndIndex:c}),h=d.length,y=Xw(f,a),v=-1;return n.reduce(function(p,g){var x=g.type.defaultProps!==void 0?I(I({},g.type.defaultProps),g.props):g.props,w=x[o],O=p1("number");if(!p[w]){v++;var m;return y?m=Ha(0,h):u&&u[w]&&u[w].hasStack?(m=tO(u[w].stackGroups,s,c),m=md(l,m,w,a)):(m=Nf(O,Vw(d,n.filter(function(b){var _,A,T=o in b.props?b.props[o]:(_=b.type.defaultProps)===null||_===void 0?void 0:_[o],$="hide"in b.props?b.props.hide:(A=b.type.defaultProps)===null||A===void 0?void 0:A.hide;return T===w&&!$}),"number",f),i.defaultProps.allowDataOverflow),m=md(l,m,w,a)),I(I({},p),{},K({},w,I(I({axisType:a},i.defaultProps),{},{hide:!0,orientation:Xe(cB,"".concat(a,".").concat(v%2),null),domain:m,originalDomain:O,isCategorical:y,layout:f})))}return p},{})},vB=function(t,r){var n=r.axisType,i=n===void 0?"xAxis":n,a=r.AxisComp,o=r.graphicalItems,u=r.stackGroups,s=r.dataStartIndex,c=r.dataEndIndex,f=t.children,l="".concat(i,"Id"),d=rt(f,a),h={};return d&&d.length?h=hB(t,{axes:d,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c}):o&&o.length&&(h=pB(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:l,stackGroups:u,dataStartIndex:s,dataEndIndex:c})),h},yB=function(t){var r=Ht(t),n=jt(r,!1,!0);return{tooltipTicks:n,orderedTooltipTicks:Fd(n,function(i){return i.coordinate}),tooltipAxis:r,tooltipAxisBandSize:ka(r,n)}},T0=function(t){var r=t.children,n=t.defaultShowTooltip,i=Ye(r,an),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!n}},mB=function(t){return!t||!t.length?!1:t.some(function(r){var n=Tt(r&&r.type);return n&&n.indexOf("Bar")>=0})},E0=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},gB=function(t,r){var n=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,u=t.yAxisMap,s=u===void 0?{}:u,c=n.width,f=n.height,l=n.children,d=n.margin||{},h=Ye(l,an),y=Ye(l,Lr),v=Object.keys(s).reduce(function(m,b){var _=s[b],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},K({},A,m[A]+_.width)):m},{left:d.left||0,right:d.right||0}),p=Object.keys(o).reduce(function(m,b){var _=o[b],A=_.orientation;return!_.mirror&&!_.hide?I(I({},m),{},K({},A,Xe(m,"".concat(A))+_.height)):m},{top:d.top||0,bottom:d.bottom||0}),g=I(I({},p),v),x=g.bottom;h&&(g.bottom+=h.props.height||an.defaultProps.height),y&&r&&(g=zC(g,i,n,r));var w=c-g.left-g.right,O=f-g.top-g.bottom;return I(I({brushBottom:x},g),{},{width:Math.max(w,0),height:Math.max(O,0)})},bB=function(t,r){if(r==="xAxis")return t[r].width;if(r==="yAxis")return t[r].height},v1=function(t){var r=t.chartName,n=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,u=o===void 0?["axis"]:o,s=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,l=t.defaultProps,d=function(g,x){var w=x.graphicalItems,O=x.stackGroups,m=x.offset,b=x.updateId,_=x.dataStartIndex,A=x.dataEndIndex,T=g.barSize,$=g.layout,j=g.barGap,E=g.barCategoryGap,M=g.maxBarSize,k=E0($),C=k.numericAxisName,N=k.cateAxisName,R=mB(w),B=[];return w.forEach(function(F,H){var Y=Uo(g.data,{graphicalItems:[F],dataStartIndex:_,dataEndIndex:A}),z=F.type.defaultProps!==void 0?I(I({},F.type.defaultProps),F.props):F.props,X=z.dataKey,he=z.maxBarSize,be=z["".concat(C,"Id")],Ge=z["".concat(N,"Id")],Jt={},Fe=s.reduce(function(er,tr){var Ho=x["".concat(tr.axisType,"Map")],Sh=z["".concat(tr.axisType,"Id")];Ho&&Ho[Sh]||tr.axisType==="zAxis"||xr();var Ah=Ho[Sh];return I(I({},er),{},K(K({},tr.axisType,Ah),"".concat(tr.axisType,"Ticks"),jt(Ah)))},Jt),W=Fe[N],Q=Fe["".concat(N,"Ticks")],ee=O&&O[be]&&O[be].hasStack&&ek(F,O[be].stackGroups),q=Tt(F.type).indexOf("Bar")>=0,me=ka(W,Q),re=[],_e=R&&FC({barSize:T,stackGroups:O,totalSize:bB(Fe,N)});if(q){var Se,We,Lt=Z(he)?M:he,jr=(Se=(We=ka(W,Q,!0))!==null&&We!==void 0?We:Lt)!==null&&Se!==void 0?Se:0;re=WC({barGap:j,barCategoryGap:E,bandSize:jr!==me?jr:me,sizeList:_e[Ge],maxBarSize:Lt}),jr!==me&&(re=re.map(function(er){return I(I({},er),{},{position:I(I({},er.position),{},{offset:er.position.offset-jr/2})})}))}var Bi=F&&F.type&&F.type.getComposedData;Bi&&B.push({props:I(I({},Bi(I(I({},Fe),{},{displayedData:Y,props:g,dataKey:X,item:F,bandSize:me,barPosition:re,offset:m,stackedData:ee,layout:$,dataStartIndex:_,dataEndIndex:A}))),{},K(K(K({key:F.key||"item-".concat(H)},C,Fe[C]),N,Fe[N]),"animationId",b)),childIndex:GS(F,g.children),item:F})}),B},h=function(g,x){var w=g.props,O=g.dataStartIndex,m=g.dataEndIndex,b=g.updateId;if(!Fp({props:w}))return null;var _=w.children,A=w.layout,T=w.stackOffset,$=w.data,j=w.reverseStackOrder,E=E0(A),M=E.numericAxisName,k=E.cateAxisName,C=rt(_,n),N=QC($,C,"".concat(M,"Id"),"".concat(k,"Id"),T,j),R=s.reduce(function(z,X){var he="".concat(X.axisType,"Map");return I(I({},z),{},K({},he,vB(w,I(I({},X),{},{graphicalItems:C,stackGroups:X.axisType===M&&N,dataStartIndex:O,dataEndIndex:m}))))},{}),B=gB(I(I({},R),{},{props:w,graphicalItems:C}),x?.legendBBox);Object.keys(R).forEach(function(z){R[z]=f(w,R[z],B,z.replace("Map",""),r)});var F=R["".concat(k,"Map")],H=yB(F),Y=d(w,I(I({},R),{},{dataStartIndex:O,dataEndIndex:m,updateId:b,graphicalItems:C,stackGroups:N,offset:B}));return I(I({formattedGraphicalItems:Y,graphicalItems:C,offset:B,stackGroups:N},H),R)},y=(function(p){function g(x){var w,O,m;return QL(this,g),m=tB(this,g,[x]),K(m,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),K(m,"accessibilityManager",new qL),K(m,"handleLegendBBoxUpdate",function(b){if(b){var _=m.state,A=_.dataStartIndex,T=_.dataEndIndex,$=_.updateId;m.setState(I({legendBBox:b},h({props:m.props,dataStartIndex:A,dataEndIndex:T,updateId:$},I(I({},m.state),{},{legendBBox:b}))))}}),K(m,"handleReceiveSyncEvent",function(b,_,A){if(m.props.syncId===b){if(A===m.eventEmitterSymbol&&typeof m.props.syncMethod!="function")return;m.applySyncEvent(_)}}),K(m,"handleBrushChange",function(b){var _=b.startIndex,A=b.endIndex;if(_!==m.state.dataStartIndex||A!==m.state.dataEndIndex){var T=m.state.updateId;m.setState(function(){return I({dataStartIndex:_,dataEndIndex:A},h({props:m.props,dataStartIndex:_,dataEndIndex:A,updateId:T},m.state))}),m.triggerSyncEvent({dataStartIndex:_,dataEndIndex:A})}}),K(m,"handleMouseEnter",function(b){var _=m.getMouseInfo(b);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseEnter;V(T)&&T(A,b)}}),K(m,"triggeredAfterMouseMove",function(b){var _=m.getMouseInfo(b),A=_?I(I({},_),{},{isTooltipActive:!0}):{isTooltipActive:!1};m.setState(A),m.triggerSyncEvent(A);var T=m.props.onMouseMove;V(T)&&T(A,b)}),K(m,"handleItemMouseEnter",function(b){m.setState(function(){return{isTooltipActive:!0,activeItem:b,activePayload:b.tooltipPayload,activeCoordinate:b.tooltipPosition||{x:b.cx,y:b.cy}}})}),K(m,"handleItemMouseLeave",function(){m.setState(function(){return{isTooltipActive:!1}})}),K(m,"handleMouseMove",function(b){b.persist(),m.throttleTriggeredAfterMouseMove(b)}),K(m,"handleMouseLeave",function(b){m.throttleTriggeredAfterMouseMove.cancel();var _={isTooltipActive:!1};m.setState(_),m.triggerSyncEvent(_);var A=m.props.onMouseLeave;V(A)&&A(_,b)}),K(m,"handleOuterEvent",function(b){var _=HS(b),A=Xe(m.props,"".concat(_));if(_&&V(A)){var T,$;/.*touch.*/i.test(_)?$=m.getMouseInfo(b.changedTouches[0]):$=m.getMouseInfo(b),A((T=$)!==null&&T!==void 0?T:{},b)}}),K(m,"handleClick",function(b){var _=m.getMouseInfo(b);if(_){var A=I(I({},_),{},{isTooltipActive:!0});m.setState(A),m.triggerSyncEvent(A);var T=m.props.onClick;V(T)&&T(A,b)}}),K(m,"handleMouseDown",function(b){var _=m.props.onMouseDown;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleMouseUp",function(b){var _=m.props.onMouseUp;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleTouchMove",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.throttleTriggeredAfterMouseMove(b.changedTouches[0])}),K(m,"handleTouchStart",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseDown(b.changedTouches[0])}),K(m,"handleTouchEnd",function(b){b.changedTouches!=null&&b.changedTouches.length>0&&m.handleMouseUp(b.changedTouches[0])}),K(m,"handleDoubleClick",function(b){var _=m.props.onDoubleClick;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"handleContextMenu",function(b){var _=m.props.onContextMenu;if(V(_)){var A=m.getMouseInfo(b);_(A,b)}}),K(m,"triggerSyncEvent",function(b){m.props.syncId!==void 0&&Vl.emit(Xl,m.props.syncId,b,m.eventEmitterSymbol)}),K(m,"applySyncEvent",function(b){var _=m.props,A=_.layout,T=_.syncMethod,$=m.state.updateId,j=b.dataStartIndex,E=b.dataEndIndex;if(b.dataStartIndex!==void 0||b.dataEndIndex!==void 0)m.setState(I({dataStartIndex:j,dataEndIndex:E},h({props:m.props,dataStartIndex:j,dataEndIndex:E,updateId:$},m.state)));else if(b.activeTooltipIndex!==void 0){var M=b.chartX,k=b.chartY,C=b.activeTooltipIndex,N=m.state,R=N.offset,B=N.tooltipTicks;if(!R)return;if(typeof T=="function")C=T(B,b);else if(T==="value"){C=-1;for(var F=0;F<B.length;F++)if(B[F].value===b.activeLabel){C=F;break}}var H=I(I({},R),{},{x:R.left,y:R.top}),Y=Math.min(M,H.x+H.width),z=Math.min(k,H.y+H.height),X=B[C]&&B[C].value,he=xd(m.state,m.props.data,C),be=B[C]?{x:A==="horizontal"?B[C].coordinate:Y,y:A==="horizontal"?z:B[C].coordinate}:h1;m.setState(I(I({},b),{},{activeLabel:X,activeCoordinate:be,activePayload:he,activeTooltipIndex:C}))}else m.setState(b)}),K(m,"renderCursor",function(b){var _,A=m.state,T=A.isTooltipActive,$=A.activeCoordinate,j=A.activePayload,E=A.offset,M=A.activeTooltipIndex,k=A.tooltipAxisBandSize,C=m.getTooltipEventType(),N=(_=b.props.active)!==null&&_!==void 0?_:T,R=m.props.layout,B=b.key||"_recharts-cursor";return P.createElement(HL,{key:B,activeCoordinate:$,activePayload:j,activeTooltipIndex:M,chartName:r,element:b,isActive:N,layout:R,offset:E,tooltipAxisBandSize:k,tooltipEventType:C})}),K(m,"renderPolarAxis",function(b,_,A){var T=Xe(b,"type.axisType"),$=Xe(m.state,"".concat(T,"Map")),j=b.type.defaultProps,E=j!==void 0?I(I({},j),b.props):b.props,M=$&&$[E["".concat(T,"Id")]];return D.cloneElement(b,I(I({},M),{},{className:J(T,M.className),key:b.key||"".concat(_,"-").concat(A),ticks:jt(M,!0)}))}),K(m,"renderPolarGrid",function(b){var _=b.props,A=_.radialLines,T=_.polarAngles,$=_.polarRadius,j=m.state,E=j.radiusAxisMap,M=j.angleAxisMap,k=Ht(E),C=Ht(M),N=C.cx,R=C.cy,B=C.innerRadius,F=C.outerRadius;return D.cloneElement(b,{polarAngles:Array.isArray(T)?T:jt(C,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray($)?$:jt(k,!0).map(function(H){return H.coordinate}),cx:N,cy:R,innerRadius:B,outerRadius:F,key:b.key||"polar-grid",radialLines:A})}),K(m,"renderLegend",function(){var b=m.state.formattedGraphicalItems,_=m.props,A=_.children,T=_.width,$=_.height,j=m.props.margin||{},E=T-(j.left||0)-(j.right||0),M=Kw({children:A,formattedGraphicalItems:b,legendWidth:E,legendContent:c});if(!M)return null;var k=M.item,C=A0(M,GL);return D.cloneElement(k,I(I({},C),{},{chartWidth:T,chartHeight:$,margin:j,onBBoxUpdate:m.handleLegendBBoxUpdate}))}),K(m,"renderTooltip",function(){var b,_=m.props,A=_.children,T=_.accessibilityLayer,$=Ye(A,ot);if(!$)return null;var j=m.state,E=j.isTooltipActive,M=j.activeCoordinate,k=j.activePayload,C=j.activeLabel,N=j.offset,R=(b=$.props.active)!==null&&b!==void 0?b:E;return D.cloneElement($,{viewBox:I(I({},N),{},{x:N.left,y:N.top}),active:R,label:C,payload:R?k:[],coordinate:M,accessibilityLayer:T})}),K(m,"renderBrush",function(b){var _=m.props,A=_.margin,T=_.data,$=m.state,j=$.offset,E=$.dataStartIndex,M=$.dataEndIndex,k=$.updateId;return D.cloneElement(b,{key:b.key||"_recharts-brush",onChange:Xi(m.handleBrushChange,b.props.onChange),data:T,x:L(b.props.x)?b.props.x:j.left,y:L(b.props.y)?b.props.y:j.top+j.height+j.brushBottom-(A.bottom||0),width:L(b.props.width)?b.props.width:j.width,startIndex:E,endIndex:M,updateId:"brush-".concat(k)})}),K(m,"renderReferenceElement",function(b,_,A){if(!b)return null;var T=m,$=T.clipPathId,j=m.state,E=j.xAxisMap,M=j.yAxisMap,k=j.offset,C=b.type.defaultProps||{},N=b.props,R=N.xAxisId,B=R===void 0?C.xAxisId:R,F=N.yAxisId,H=F===void 0?C.yAxisId:F;return D.cloneElement(b,{key:b.key||"".concat(_,"-").concat(A),xAxis:E[B],yAxis:M[H],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:$})}),K(m,"renderActivePoints",function(b){var _=b.item,A=b.activePoint,T=b.basePoint,$=b.childIndex,j=b.isRange,E=[],M=_.props.key,k=_.item.type.defaultProps!==void 0?I(I({},_.item.type.defaultProps),_.item.props):_.item.props,C=k.activeDot,N=k.dataKey,R=I(I({index:$,dataKey:N,cx:A.x,cy:A.y,r:4,fill:hh(_.item),strokeWidth:2,stroke:"#fff",payload:A.payload,value:A.value},G(C,!1)),ca(C));return E.push(g.renderActiveDot(C,R,"".concat(M,"-activePoint-").concat($))),T?E.push(g.renderActiveDot(C,I(I({},R),{},{cx:T.x,cy:T.y}),"".concat(M,"-basePoint-").concat($))):j&&E.push(null),E}),K(m,"renderGraphicChild",function(b,_,A){var T=m.filterFormatItem(b,_,A);if(!T)return null;var $=m.getTooltipEventType(),j=m.state,E=j.isTooltipActive,M=j.tooltipAxis,k=j.activeTooltipIndex,C=j.activeLabel,N=m.props.children,R=Ye(N,ot),B=T.props,F=B.points,H=B.isRange,Y=B.baseLine,z=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,X=z.activeDot,he=z.hide,be=z.activeBar,Ge=z.activeShape,Jt=!!(!he&&E&&R&&(X||be||Ge)),Fe={};$!=="axis"&&R&&R.props.trigger==="click"?Fe={onClick:Xi(m.handleItemMouseEnter,b.props.onClick)}:$!=="axis"&&(Fe={onMouseLeave:Xi(m.handleItemMouseLeave,b.props.onMouseLeave),onMouseEnter:Xi(m.handleItemMouseEnter,b.props.onMouseEnter)});var W=D.cloneElement(b,I(I({},T.props),Fe));function Q(tr){return typeof M.dataKey=="function"?M.dataKey(tr.payload):null}if(Jt)if(k>=0){var ee,q;if(M.dataKey&&!M.allowDuplicatedCategory){var me=typeof M.dataKey=="function"?Q:"payload.".concat(M.dataKey.toString());ee=sa(F,me,C),q=H&&Y&&sa(Y,me,C)}else ee=F?.[k],q=H&&Y&&Y[k];if(Ge||be){var re=b.props.activeIndex!==void 0?b.props.activeIndex:k;return[D.cloneElement(b,I(I(I({},T.props),Fe),{},{activeIndex:re})),null,null]}if(!Z(ee))return[W].concat(vn(m.renderActivePoints({item:T,activePoint:ee,basePoint:q,childIndex:k,isRange:H})))}else{var _e,Se=(_e=m.getItemByXY(m.state.activeCoordinate))!==null&&_e!==void 0?_e:{graphicalItem:W},We=Se.graphicalItem,Lt=We.item,jr=Lt===void 0?b:Lt,Bi=We.childIndex,er=I(I(I({},T.props),Fe),{},{activeIndex:Bi});return[D.cloneElement(jr,er),null,null]}return H?[W,null,null]:[W,null]}),K(m,"renderCustomized",function(b,_,A){return D.cloneElement(b,I(I({key:"recharts-customized-".concat(A)},m.props),m.state))}),K(m,"renderMap",{CartesianGrid:{handler:ta,once:!0},ReferenceArea:{handler:m.renderReferenceElement},ReferenceLine:{handler:ta},ReferenceDot:{handler:m.renderReferenceElement},XAxis:{handler:ta},YAxis:{handler:ta},Brush:{handler:m.renderBrush,once:!0},Bar:{handler:m.renderGraphicChild},Line:{handler:m.renderGraphicChild},Area:{handler:m.renderGraphicChild},Radar:{handler:m.renderGraphicChild},RadialBar:{handler:m.renderGraphicChild},Scatter:{handler:m.renderGraphicChild},Pie:{handler:m.renderGraphicChild},Funnel:{handler:m.renderGraphicChild},Tooltip:{handler:m.renderCursor,once:!0},PolarGrid:{handler:m.renderPolarGrid,once:!0},PolarAngleAxis:{handler:m.renderPolarAxis},PolarRadiusAxis:{handler:m.renderPolarAxis},Customized:{handler:m.renderCustomized}}),m.clipPathId="".concat((w=x.id)!==null&&w!==void 0?w:bn("recharts"),"-clip"),m.throttleTriggeredAfterMouseMove=Hx(m.triggeredAfterMouseMove,(O=x.throttleDelay)!==null&&O!==void 0?O:1e3/60),m.state={},m}return iB(g,p),eB(g,[{key:"componentDidMount",value:function(){var w,O;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var w=this.props,O=w.children,m=w.data,b=w.height,_=w.layout,A=Ye(O,ot);if(A){var T=A.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var $=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,j=xd(this.state,m,T,$),E=this.state.tooltipTicks[T].coordinate,M=(this.state.offset.top+b)/2,k=_==="horizontal",C=k?{x:E,y:M}:{y:E,x:M},N=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});N&&(C=I(I({},C),N.props.points[T].tooltipPosition),j=N.props.points[T].tooltipPayload);var R={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:$,activePayload:j,activeCoordinate:C};this.setState(R),this.renderCursor(A),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(w,O){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==O.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==w.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==w.margin){var m,b;this.accessibilityManager.setDetails({offset:{left:(m=this.props.margin.left)!==null&&m!==void 0?m:0,top:(b=this.props.margin.top)!==null&&b!==void 0?b:0}})}return null}},{key:"componentDidUpdate",value:function(w){rf([Ye(w.children,ot)],[Ye(this.props.children,ot)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var w=Ye(this.props.children,ot);if(w&&typeof w.props.shared=="boolean"){var O=w.props.shared?"axis":"item";return u.indexOf(O)>=0?O:a}return a}},{key:"getMouseInfo",value:function(w){if(!this.container)return null;var O=this.container,m=O.getBoundingClientRect(),b=CT(m),_={chartX:Math.round(w.pageX-b.left),chartY:Math.round(w.pageY-b.top)},A=m.width/O.offsetWidth||1,T=this.inRange(_.chartX,_.chartY,A);if(!T)return null;var $=this.state,j=$.xAxisMap,E=$.yAxisMap,M=this.getTooltipEventType(),k=j0(this.state,this.props.data,this.props.layout,T);if(M!=="axis"&&j&&E){var C=Ht(j).scale,N=Ht(E).scale,R=C&&C.invert?C.invert(_.chartX):null,B=N&&N.invert?N.invert(_.chartY):null;return I(I({},_),{},{xValue:R,yValue:B},k)}return k?I(I({},_),k):null}},{key:"inRange",value:function(w,O){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,b=this.props.layout,_=w/m,A=O/m;if(b==="horizontal"||b==="vertical"){var T=this.state.offset,$=_>=T.left&&_<=T.left+T.width&&A>=T.top&&A<=T.top+T.height;return $?{x:_,y:A}:null}var j=this.state,E=j.angleAxisMap,M=j.radiusAxisMap;if(E&&M){var k=Ht(E);return Mg({x:_,y:A},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var w=this.props.children,O=this.getTooltipEventType(),m=Ye(w,ot),b={};m&&O==="axis"&&(m.props.trigger==="click"?b={onClick:this.handleClick}:b={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var _=ca(this.props,this.handleOuterEvent);return I(I({},_),b)}},{key:"addListener",value:function(){Vl.on(Xl,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Vl.removeListener(Xl,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(w,O,m){for(var b=this.state.formattedGraphicalItems,_=0,A=b.length;_<A;_++){var T=b[_];if(T.item===w||T.props.key===w.key||O===Tt(T.item.type)&&m===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var w=this.clipPathId,O=this.state.offset,m=O.left,b=O.top,_=O.height,A=O.width;return P.createElement("defs",null,P.createElement("clipPath",{id:w},P.createElement("rect",{x:m,y:b,height:_,width:A})))}},{key:"getXScales",value:function(){var w=this.state.xAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=S0(m,2),_=b[0],A=b[1];return I(I({},O),{},K({},_,A.scale))},{}):null}},{key:"getYScales",value:function(){var w=this.state.yAxisMap;return w?Object.entries(w).reduce(function(O,m){var b=S0(m,2),_=b[0],A=b[1];return I(I({},O),{},K({},_,A.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(w){var O;return(O=this.state.xAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getYScaleByAxisId",value:function(w){var O;return(O=this.state.yAxisMap)===null||O===void 0||(O=O[w])===null||O===void 0?void 0:O.scale}},{key:"getItemByXY",value:function(w){var O=this.state,m=O.formattedGraphicalItems,b=O.activeItem;if(m&&m.length)for(var _=0,A=m.length;_<A;_++){var T=m[_],$=T.props,j=T.item,E=j.type.defaultProps!==void 0?I(I({},j.type.defaultProps),j.props):j.props,M=Tt(j.type);if(M==="Bar"){var k=($.data||[]).find(function(B){return XN(w,B)});if(k)return{graphicalItem:T,payload:k}}else if(M==="RadialBar"){var C=($.data||[]).find(function(B){return Mg(w,B)});if(C)return{graphicalItem:T,payload:C}}else if(Do(T,b)||Ro(T,b)||_i(T,b)){var N=bR({graphicalItem:T,activeTooltipItem:b,itemData:E.data}),R=E.activeIndex===void 0?N:E.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:R}),payload:_i(T,b)?E.data[N]:T.props.data[N]}}}return null}},{key:"render",value:function(){var w=this;if(!Fp(this))return null;var O=this.props,m=O.children,b=O.className,_=O.width,A=O.height,T=O.style,$=O.compact,j=O.title,E=O.desc,M=A0(O,KL),k=G(M,!1);if($)return P.createElement(o0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement(af,Rr({},k,{width:_,height:A,title:j,desc:E}),this.renderClipPath(),zp(m,this.renderMap)));if(this.props.accessibilityLayer){var C,N;k.tabIndex=(C=this.props.tabIndex)!==null&&C!==void 0?C:0,k.role=(N=this.props.role)!==null&&N!==void 0?N:"application",k.onKeyDown=function(B){w.accessibilityManager.keyboardEvent(B)},k.onFocus=function(){w.accessibilityManager.focus()}}var R=this.parseEventsOfWrapper();return P.createElement(o0,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},P.createElement("div",Rr({className:J("recharts-wrapper",b),style:I({position:"relative",cursor:"default",width:_,height:A},T)},R,{ref:function(F){w.container=F}}),P.createElement(af,Rr({},k,{width:_,height:A,title:j,desc:E,style:lB}),this.renderClipPath(),zp(m,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(D.Component);K(y,"displayName",r),K(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},l)),K(y,"getDerivedStateFromProps",function(p,g){var x=p.dataKey,w=p.data,O=p.children,m=p.width,b=p.height,_=p.layout,A=p.stackOffset,T=p.margin,$=g.dataStartIndex,j=g.dataEndIndex;if(g.updateId===void 0){var E=T0(p);return I(I(I({},E),{},{updateId:0},h(I(I({props:p},E),{},{updateId:0}),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(x!==g.prevDataKey||w!==g.prevData||m!==g.prevWidth||b!==g.prevHeight||_!==g.prevLayout||A!==g.prevStackOffset||!qr(T,g.prevMargin)){var M=T0(p),k={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},C=I(I({},j0(g,w,_)),{},{updateId:g.updateId+1}),N=I(I(I({},M),k),C);return I(I(I({},N),h(I({props:p},N),g)),{},{prevDataKey:x,prevData:w,prevWidth:m,prevHeight:b,prevLayout:_,prevStackOffset:A,prevMargin:T,prevChildren:O})}if(!rf(O,g.prevChildren)){var R,B,F,H,Y=Ye(O,an),z=Y&&(R=(B=Y.props)===null||B===void 0?void 0:B.startIndex)!==null&&R!==void 0?R:$,X=Y&&(F=(H=Y.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:j,he=z!==$||X!==j,be=!Z(w),Ge=be&&!he?g.updateId:g.updateId+1;return I(I({updateId:Ge},h(I(I({props:p},g),{},{updateId:Ge,dataStartIndex:z,dataEndIndex:X}),g)),{},{prevChildren:O,dataStartIndex:z,dataEndIndex:X})}return null}),K(y,"renderActiveDot",function(p,g,x){var w;return D.isValidElement(p)?w=D.cloneElement(p,g):V(p)?w=p(g):w=P.createElement($o,g),P.createElement(te,{className:"recharts-active-dot",key:x},w)});var v=D.forwardRef(function(g,x){return P.createElement(y,Rr({},g,{ref:x}))});return v.displayName=y.displayName,v},xB=v1({chartName:"PieChart",GraphicalChild:qt,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:No},{axisType:"radiusAxis",AxisComp:ko}],formatAxisMap:lk,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),wB=v1({chartName:"AreaChart",GraphicalChild:It,axisComponents:[{axisType:"xAxis",AxisComp:zo},{axisType:"yAxis",AxisComp:Ti}],formatAxisMap:O2});function M0({data:e,isLoading:t,granularity:r="daily",className:n}){const i=D.useMemo(()=>!e||e.length===0?[]:[...e].reverse().map(a=>({...a,dateFormatted:OB(a.date,r),costRounded:Number(a.cost.toFixed(4))})),[e,r]);return t?S.jsx(pe,{className:vt("h-[300px] w-full",n)}):!e||e.length===0?S.jsx("div",{className:vt("h-[300px] flex items-center justify-center",n),children:S.jsx("p",{className:"text-muted-foreground",children:"No usage data available"})}):S.jsx("div",{className:vt("w-full",n),children:S.jsx(Gx,{width:"100%",height:300,children:S.jsxs(wB,{data:i,margin:{top:5,right:30,left:20,bottom:5},children:[S.jsxs("defs",{children:[S.jsxs("linearGradient",{id:"tokenGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#0080FF",stopOpacity:.8}),S.jsx("stop",{offset:"95%",stopColor:"#0080FF",stopOpacity:.1})]}),S.jsxs("linearGradient",{id:"costGradient",x1:"0",y1:"0",x2:"0",y2:"1",children:[S.jsx("stop",{offset:"5%",stopColor:"#00C49F",stopOpacity:.8}),S.jsx("stop",{offset:"95%",stopColor:"#00C49F",stopOpacity:.1})]})]}),S.jsx(ZO,{strokeDasharray:"3 3",className:"stroke-muted"}),S.jsx(zo,{dataKey:"dateFormatted",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"}}),S.jsx(Ti,{yAxisId:"left",orientation:"left",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"},tickFormatter:a=>$0(a)}),S.jsx(Ti,{yAxisId:"right",orientation:"right",tick:{fontSize:12},tickLine:!1,axisLine:{className:"stroke-muted"},tickFormatter:a=>`$${a}`}),S.jsx(ot,{content:({active:a,payload:o,label:u})=>{if(!a||!o||!o.length)return null;const s=o[0].payload;return S.jsxs("div",{className:"rounded-lg border bg-background p-3 shadow-lg",children:[S.jsx("p",{className:"font-medium mb-2",children:u}),o.map((c,f)=>S.jsxs("p",{className:"text-sm",style:{color:c.color},children:[c.name,":"," ",c.name==="Tokens"?$0(Number(c.value)||0):`$${c.value}`]},f)),S.jsxs("p",{className:"text-sm text-muted-foreground mt-1",children:["Requests: ",s.requests]})]})}}),S.jsx(It,{yAxisId:"left",type:"monotone",dataKey:"tokens",stroke:"#0080FF",strokeWidth:2,fillOpacity:1,fill:"url(#tokenGradient)",name:"Tokens"}),S.jsx(It,{yAxisId:"right",type:"monotone",dataKey:"costRounded",stroke:"#00C49F",strokeWidth:2,fillOpacity:1,fill:"url(#costGradient)",name:"Cost"})]})})})}function OB(e,t){const r=new Date(e);return t==="monthly"?ua(r,"MMM yyyy"):ua(r,"MMM dd")}function $0(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function _B({data:e,isLoading:t,className:r}){const n=D.useMemo(()=>!e||e.length===0?[]:e.map(o=>({name:o.model,value:o.tokens,cost:o.cost,requests:o.requests,percentage:o.percentage,fill:Jl(o.model)})),[e]);if(t)return S.jsx(pe,{className:vt("h-[300px] w-full",r)});if(!e||e.length===0)return S.jsx("div",{className:vt("h-[300px] flex items-center justify-center",r),children:S.jsx("p",{className:"text-muted-foreground",children:"No model data available"})});const i=({active:o,payload:u})=>{if(!o||!u)return null;const s=u;if(!s.length)return null;const c=s[0].payload;return S.jsxs("div",{className:"rounded-lg border bg-background p-2 shadow-lg text-xs",children:[S.jsx("p",{className:"font-medium mb-1",children:c.name}),S.jsxs("p",{className:"text-muted-foreground",children:[SB(c.value)," (",c.percentage.toFixed(1),"%)"]}),S.jsxs("p",{className:"text-muted-foreground",children:["$",c.cost.toFixed(4)]})]})},a=o=>o.percentage>5?`${o.percentage.toFixed(1)}%`:"";return S.jsx("div",{className:vt("w-full",r),children:S.jsx(Gx,{width:"100%",height:250,children:S.jsxs(xB,{children:[S.jsx(qt,{data:n,cx:"50%",cy:"50%",labelLine:!1,label:a,innerRadius:60,outerRadius:80,paddingAngle:2,dataKey:"value",children:n.map((o,u)=>S.jsx(bo,{fill:o.fill,strokeWidth:1},`cell-${u}`))}),S.jsx(ot,{content:i})]})})})}function SB(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function AB({data:e,isLoading:t}){const[r,n]=D.useState(""),[i,a]=D.useState(0),o=D.useMemo(()=>e?.sessions??[],[e?.sessions]),u=D.useMemo(()=>{if(!r)return o;const l=r.toLowerCase();return o.filter(d=>d.profile.toLowerCase().includes(l)||d.model.toLowerCase().includes(l)||d.id.toLowerCase().includes(l))},[o,r]),s=10,c=D.useMemo(()=>{if(!u)return[];const l=i*s;return u.slice(l,l+s)},[u,i]),f=Math.ceil((u?.length||0)/s);return t?S.jsx(TB,{}):!e||e.sessions.length===0?S.jsxs("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[S.jsx(D0,{className:"h-12 w-12 text-muted-foreground mb-4"}),S.jsx("h3",{className:"text-lg font-medium mb-1",children:"No sessions found"}),S.jsx("p",{className:"text-muted-foreground",children:"Start using Claude Code to see session history"})]}):S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"flex items-center gap-2",children:S.jsxs("div",{className:"relative flex-1",children:[S.jsx(x1,{className:"absolute left-2 top-1/2 h-4 w-4 -translate-y-1/2 text-muted-foreground"}),S.jsx(Ql,{placeholder:"Search by profile, model, or session ID...",value:r,onChange:l=>{n(l.target.value),a(0)},className:"pl-8"})]})}),S.jsx("div",{className:"rounded-md border",children:S.jsxs(R0,{children:[S.jsx(q0,{children:S.jsxs(ia,{children:[S.jsx(Ne,{children:"Session ID"}),S.jsx(Ne,{children:"Profile"}),S.jsx(Ne,{children:"Model"}),S.jsx(Ne,{children:"Duration"}),S.jsx(Ne,{className:"text-right",children:"Tokens"}),S.jsx(Ne,{className:"text-right",children:"Cost"}),S.jsx(Ne,{className:"text-right",children:"Requests"}),S.jsx(Ne,{children:"Last Used"})]})}),S.jsx(L0,{children:c.map(l=>S.jsxs(ia,{className:"hover:bg-muted/50",children:[S.jsxs(De,{className:"font-mono text-xs",children:[l.id.slice(0,8),"..."]}),S.jsx(De,{children:S.jsx(y1,{variant:"secondary",children:l.profile})}),S.jsx(De,{className:"font-medium",children:l.model}),S.jsx(De,{children:l.duration?PB(l.duration):"-"}),S.jsx(De,{className:"text-right",children:S.jsxs("div",{className:"flex items-center justify-end gap-1",children:[S.jsx(I0,{className:"h-3 w-3 text-muted-foreground"}),jB(l.tokens)]})}),S.jsx(De,{className:"text-right",children:S.jsxs("div",{className:"flex items-center justify-end gap-1",children:[S.jsx(k0,{className:"h-3 w-3 text-muted-foreground"}),"$",l.cost.toFixed(4)]})}),S.jsx(De,{className:"text-right",children:l.requests}),S.jsx(De,{className:"text-muted-foreground",children:H0(new Date(l.startTime),{addSuffix:!0})})]},l.id))})]})}),f>1&&S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsxs("p",{className:"text-sm text-muted-foreground",children:["Showing ",i*s+1," to"," ",Math.min((i+1)*s,u?.length||0)," of"," ",u?.length," sessions"]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsxs(Fn,{variant:"outline",size:"sm",onClick:()=>a(l=>Math.max(0,l-1)),disabled:i===0,children:[S.jsx(w1,{className:"h-4 w-4"}),"Previous"]}),S.jsx("div",{className:"flex items-center gap-1",children:Array.from({length:Math.min(5,f)},(l,d)=>{const h=d;return S.jsx(Fn,{variant:i===h?"default":"outline",size:"sm",className:vt("w-8 h-8 p-0"),onClick:()=>a(h),children:h+1},h)})}),S.jsxs(Fn,{variant:"outline",size:"sm",onClick:()=>a(l=>Math.min(f-1,l+1)),disabled:i===f-1,children:["Next",S.jsx(O1,{className:"h-4 w-4"})]})]})]})]})}function PB(e){const t=Math.floor(e/1e3),r=Math.floor(t/60),n=Math.floor(r/60);return n>0?`${n}h ${r%60}m`:r>0?`${r}m ${t%60}s`:`${t}s`}function jB(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString()}function TB(){return S.jsxs("div",{className:"space-y-4",children:[S.jsx("div",{className:"flex items-center gap-2",children:S.jsx(pe,{className:"h-10 flex-1"})}),S.jsx("div",{className:"rounded-md border",children:S.jsxs(R0,{children:[S.jsx(q0,{children:S.jsxs(ia,{children:[S.jsx(Ne,{children:"Session ID"}),S.jsx(Ne,{children:"Profile"}),S.jsx(Ne,{children:"Model"}),S.jsx(Ne,{children:"Duration"}),S.jsx(Ne,{className:"text-right",children:"Tokens"}),S.jsx(Ne,{className:"text-right",children:"Cost"}),S.jsx(Ne,{className:"text-right",children:"Requests"}),S.jsx(Ne,{children:"Last Used"})]})}),S.jsx(L0,{children:[1,2,3,4,5].map(e=>S.jsxs(ia,{children:[S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[60px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-6 w-[80px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[100px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[60px]"})}),S.jsx(De,{className:"text-right",children:S.jsx(pe,{className:"h-4 w-[80px]"})}),S.jsx(De,{className:"text-right",children:S.jsx(pe,{className:"h-4 w-[70px]"})}),S.jsx(De,{className:"text-right",children:S.jsx(pe,{className:"h-4 w-[60px]"})}),S.jsx(De,{children:S.jsx(pe,{className:"h-4 w-[80px]"})})]},e))})]})})]})}const EB="/api";function Ft(e){const t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0");return`${t}${r}${n}`}const An={summary:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),Cr(`/usage/summary?${t}`)},trends:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),Cr(`/usage/daily?${t}`)},models:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),Cr(`/usage/models?${t}`)},sessions:e=>{const t=new URLSearchParams;return e?.startDate&&t.append("since",Ft(e.startDate)),e?.endDate&&t.append("until",Ft(e.endDate)),e?.profile&&t.append("profile",e.profile),e?.limit&&t.append("limit",e.limit.toString()),e?.offset&&t.append("offset",e.offset.toString()),Cr(`/usage/sessions?${t}`)},monthly:(e,t)=>{const r=new URLSearchParams;return e&&r.append("months",e.toString()),t&&r.append("profile",t),Cr(`/usage/monthly?${r}`)},refresh:async()=>{if(!(await fetch(`${EB}/usage/refresh`,{method:"POST",headers:{"Content-Type":"application/json"}})).ok)throw new Error("Failed to refresh usage cache")},status:()=>Cr("/usage/status")};async function Cr(e){const r=await fetch(`/api${e}`,{headers:{"Content-Type":"application/json"}});if(!r.ok){const i=await r.json().catch(()=>({error:"Unknown error"}));throw new Error(i.error||r.statusText)}const n=await r.json();return n.data||n}function MB(e){return $i({queryKey:["usage","summary",e],queryFn:()=>An.summary(e),staleTime:60*1e3})}function $B(e){return $i({queryKey:["usage","trends",e],queryFn:()=>An.trends(e),staleTime:60*1e3})}function CB(e){return $i({queryKey:["usage","models",e],queryFn:()=>An.models(e),staleTime:60*1e3})}function kB(e){return $i({queryKey:["usage","sessions",e],queryFn:()=>An.sessions(e),staleTime:60*1e3})}function IB(){const e=A1();return D.useCallback(async()=>{await An.refresh(),await e.invalidateQueries({queryKey:["usage"]})},[e])}function NB(){return $i({queryKey:["usage","status"],queryFn:()=>An.status(),staleTime:10*1e3,refetchInterval:30*1e3})}function zB(){const[e,t]=D.useState({from:Vo(new Date,30),to:new Date}),[r,n]=D.useState("daily"),[i,a]=D.useState(!1),o=IB(),u=async()=>{a(!0);try{await o()}finally{a(!1)}},s={startDate:e?.from,endDate:e?.to},{data:c,isLoading:f}=MB(s),{data:l,isLoading:d}=$B(s),{data:h,isLoading:y}=CB(s),{data:v,isLoading:p}=kB({...s,limit:50}),{data:g}=NB(),x=D.useMemo(()=>g?.lastFetch?H0(new Date(g.lastFetch),{addSuffix:!0}):null,[g?.lastFetch]);return S.jsx("div",{className:"flex flex-col h-[calc(100vh-3rem)] overflow-hidden",children:S.jsxs("div",{className:"flex-1 flex flex-col min-h-0 overflow-hidden p-4 pb-14 space-y-4",children:[S.jsxs("div",{className:"flex items-center justify-between shrink-0",children:[S.jsxs("div",{children:[S.jsx("h1",{className:"text-xl font-semibold",children:"Analytics"}),S.jsx("p",{className:"text-sm text-muted-foreground",children:"Track usage & insights"})]}),S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(W_,{value:e,onChange:t,presets:[{label:"7D",range:{from:Vo(new Date,7),to:new Date}},{label:"30D",range:{from:Vo(new Date,30),to:new Date}},{label:"Month",range:{from:W1(new Date),to:new Date}}]}),x&&S.jsxs("span",{className:"text-xs text-muted-foreground whitespace-nowrap",children:["Updated ",x]}),S.jsx(Fn,{variant:"outline",size:"sm",className:"gap-2 h-8",onClick:u,disabled:i,children:S.jsx(_1,{className:`w-3.5 h-3.5 ${i?"animate-spin":""}`})})]})]}),S.jsx(U_,{data:c,isLoading:f}),S.jsxs(m1,{value:r,onValueChange:w=>n(w),className:"flex-1 flex flex-col min-h-0",children:[S.jsxs(g1,{className:"grid w-full grid-cols-3 h-9 mb-4",children:[S.jsx(Go,{value:"daily",className:"text-xs",children:"Daily"}),S.jsx(Go,{value:"monthly",className:"text-xs",children:"Monthly"}),S.jsx(Go,{value:"sessions",className:"text-xs",children:"Sessions"})]}),S.jsxs("div",{className:"flex-1 min-h-0",children:[S.jsxs(Ko,{value:"daily",className:"flex flex-col gap-4 m-0 h-full overflow-hidden",children:[S.jsxs(ft,{className:"flex flex-col flex-1 min-h-0 shadow-sm",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(N0,{className:"w-4 h-4"}),"Usage Trends"]})}),S.jsx(dt,{className:"p-4 pt-0 flex-1 min-h-0 flex items-center justify-center",children:S.jsx(M0,{data:l||[],isLoading:d,className:"h-full"})})]}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4 flex-1 min-h-0",children:[S.jsxs(ft,{className:"flex flex-col h-full min-h-0 shadow-sm",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(S1,{className:"w-4 h-4"}),"Model Usage"]})}),S.jsx(dt,{className:"p-4 pt-0 flex-1 min-h-0 flex items-center justify-center",children:S.jsxs("div",{className:"flex w-full h-full items-center",children:[S.jsx("div",{className:"flex-1 h-full min-w-0",children:S.jsx(_B,{data:h||[],isLoading:y,className:"h-full"})}),S.jsx("div",{className:"w-[220px] shrink-0 pl-4 space-y-2 overflow-y-auto max-h-full",children:h?.slice(0,8).map(w=>S.jsxs("div",{className:"flex items-center gap-2 text-xs",children:[S.jsx("div",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:Jl(w.model)}}),S.jsx("div",{className:"flex flex-col min-w-0 flex-1",children:S.jsxs("div",{className:"flex justify-between items-baseline gap-2",children:[S.jsx("span",{className:"font-medium truncate",title:w.model,children:w.model}),S.jsxs("span",{className:"text-[10px] text-muted-foreground shrink-0",children:[w.percentage.toFixed(1),"%"]})]})})]},w.model))})]})})]}),S.jsxs(ft,{className:"flex flex-col h-full min-h-0 shadow-sm",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(Pn,{className:"text-sm font-medium",children:"Cost by Model"})}),S.jsx(dt,{className:"p-4 pt-2 flex-1 min-h-0 overflow-y-auto",children:y?S.jsx(pe,{className:"h-full w-full"}):S.jsx("div",{className:"space-y-2",children:[...h||[]].sort((w,O)=>O.cost-w.cost).map(w=>S.jsxs("div",{className:"flex items-center justify-between text-xs border-b border-border/50 pb-2 last:border-0 last:pb-0",children:[S.jsxs("div",{className:"flex items-center gap-2 min-w-0",children:[S.jsx("div",{className:"w-2.5 h-2.5 rounded-full shrink-0",style:{backgroundColor:Jl(w.model)}}),S.jsx("span",{className:"font-medium",title:w.model,children:w.model})]}),S.jsxs("span",{className:"text-muted-foreground whitespace-nowrap font-mono",children:["$",w.cost.toFixed(4)]})]},w.model))})})]})]})]}),S.jsx(Ko,{value:"monthly",className:"m-0 h-full",children:S.jsxs(ft,{className:"h-full flex flex-col",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(C0,{className:"w-4 h-4"}),"Monthly Overview"]})}),S.jsx(dt,{className:"p-4 pt-0 flex-1",children:S.jsx(M0,{data:l||[],isLoading:d,granularity:"monthly",className:"h-full"})})]})}),S.jsx(Ko,{value:"sessions",className:"m-0 h-full",children:S.jsxs(ft,{className:"h-full flex flex-col",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsxs(Pn,{className:"text-sm font-medium flex items-center gap-2",children:[S.jsx(D0,{className:"w-4 h-4"}),"Session History"]})}),S.jsx(dt,{className:"p-0 flex-1 overflow-hidden",children:S.jsx("div",{className:"h-full overflow-y-auto",children:S.jsx(AB,{data:v,isLoading:p})})})]})})]})]})]})})}function UB(){return S.jsxs("div",{className:"space-y-4 h-full overflow-hidden",children:[S.jsxs(ft,{className:"flex flex-col min-h-[300px]",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(pe,{className:"h-4 w-32"})}),S.jsx(dt,{className:"p-4 pt-0 flex-1",children:S.jsx(pe,{className:"h-full w-full"})})]}),S.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[S.jsxs(ft,{className:"flex flex-col min-h-[250px]",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(pe,{className:"h-4 w-28"})}),S.jsx(dt,{className:"p-4 pt-0 flex-1",children:S.jsxs("div",{className:"flex w-full h-full items-center",children:[S.jsx("div",{className:"flex-1 flex justify-center",children:S.jsx(pe,{className:"h-[180px] w-[180px] rounded-full"})}),S.jsx("div",{className:"w-[140px] shrink-0 pl-2 space-y-2",children:[1,2,3,4].map(e=>S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(pe,{className:"w-2 h-2 rounded-full"}),S.jsx(pe,{className:"h-3 w-20"})]},e))})]})})]}),S.jsxs(ft,{className:"flex flex-col min-h-[250px]",children:[S.jsx(Ut,{className:"p-4 pb-2",children:S.jsx(pe,{className:"h-4 w-28"})}),S.jsx(dt,{className:"p-4 pt-2",children:S.jsx("div",{className:"space-y-3",children:[1,2,3,4,5].map(e=>S.jsxs("div",{className:"flex justify-between items-center",children:[S.jsxs("div",{className:"flex items-center gap-2",children:[S.jsx(pe,{className:"w-2.5 h-2.5 rounded-full"}),S.jsx(pe,{className:"h-3 w-24"})]}),S.jsx(pe,{className:"h-3 w-16"})]},e))})})]})]})]})}export{zB as AnalyticsPage,UB as AnalyticsSkeleton};
|