@debugkit/dashboard 0.6.0 → 0.7.0

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.
Files changed (21) hide show
  1. package/dist/client/assets/{_authed-Rg-Gabby.js → _authed-BN39b-7H.js} +1 -1
  2. package/dist/client/assets/{_authed-BMdIkvB6.js → _authed-CspAf0jN.js} +1 -1
  3. package/dist/client/assets/{charts-QIIL2Fv7.js → charts-XyOWJI9T.js} +1 -1
  4. package/dist/client/assets/index-Bfb2UOzB.js +10 -0
  5. package/dist/client/assets/{invite._token-CDogkC9p.js → invite._token-B4HN51-h.js} +1 -1
  6. package/dist/client/assets/{issues._fingerprint-DLe_lV5d.js → issues._fingerprint-BV1QrETY.js} +1 -1
  7. package/dist/client/assets/{login-BG9v4zhc.js → login-COlvJ5Je.js} +1 -1
  8. package/dist/client/assets/{settings-Ce1uqKl0.js → settings-Dl4EWeWC.js} +1 -1
  9. package/dist/client/assets/{team-TUMAZ4jv.js → team-7Zekz_Er.js} +1 -1
  10. package/dist/server/assets/{_authed-Dray_9Ct.js → _authed-C-sIPXSO.js} +1 -1
  11. package/dist/server/assets/{_authed-DDQ5yYfy.js → _authed-CrjuC0O3.js} +1 -1
  12. package/dist/server/assets/{_tanstack-start-manifest_v-BItoYCqL.js → _tanstack-start-manifest_v-CqaE4wze.js} +9 -9
  13. package/dist/server/assets/{invite._token-BWiwnST7.js → invite._token-xnpnkdRv.js} +1 -1
  14. package/dist/server/assets/{issues._fingerprint-D9vjIk3M.js → issues._fingerprint-e7ubdJf0.js} +1 -1
  15. package/dist/server/assets/{login-BXi46U4B.js → login-EopnOJXA.js} +1 -1
  16. package/dist/server/assets/{router-m6Hpq6Ep.js → router-G99085_Q.js} +47 -17
  17. package/dist/server/assets/{settings-ByFLIJce.js → settings-CaJN69N6.js} +1 -1
  18. package/dist/server/assets/{team-CifrrNkf.js → team-B1UcM1jA.js} +1 -1
  19. package/dist/server/server.js +2 -2
  20. package/package.json +4 -4
  21. package/dist/client/assets/index-CMjwqklY.js +0 -10
@@ -1 +1 @@
1
- import{j as e,k as t,p as n,w as r}from"./preload-helper-Dscj_TcA.js";import{l as i,u as a}from"./index-CMjwqklY.js";import{i as o}from"./ui-C0HGOza2.js";var s=e();function c(){let{user:e}=i.useRouteContext(),c=t();return(0,s.jsxs)(`div`,{className:`min-h-screen`,children:[(0,s.jsx)(`header`,{className:`sticky top-0 z-10 border-b border-line bg-bg/90 backdrop-blur`,children:(0,s.jsxs)(`div`,{className:`mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-3 sm:px-6`,children:[(0,s.jsxs)(`div`,{className:`flex items-center gap-5`,children:[(0,s.jsx)(r,{to:`/`,search:{},className:`shrink-0`,children:(0,s.jsx)(o,{})}),(0,s.jsxs)(`nav`,{className:`flex items-center gap-3 text-sm`,"aria-label":`Main`,children:[(0,s.jsx)(r,{to:`/`,search:{},className:`text-muted hover:text-ink`,activeProps:{className:`font-medium text-ink`},activeOptions:{exact:!0},children:`Overview`}),(0,s.jsx)(r,{to:`/settings`,search:{},className:`text-muted hover:text-ink`,activeProps:{className:`font-medium text-ink`},children:`Settings`}),(0,s.jsx)(r,{to:`/team`,className:`text-muted hover:text-ink`,activeProps:{className:`font-medium text-ink`},children:`Team`})]})]}),(0,s.jsxs)(`div`,{className:`flex items-center gap-3 text-sm`,children:[(0,s.jsxs)(`span`,{className:`hidden text-muted sm:inline`,children:[e.email,` · `,e.role]}),(0,s.jsx)(`button`,{className:`rounded-md border border-line px-2.5 py-1 hover:bg-panel-2`,onClick:async()=>{await n(),await c.invalidate(),await c.navigate({to:`/login`})},children:`Sign out`})]})]})}),(0,s.jsx)(a,{})]})}export{c as component};
1
+ import{j as e,k as t,p as n,w as r}from"./preload-helper-Dscj_TcA.js";import{l as i,u as a}from"./index-Bfb2UOzB.js";import{i as o}from"./ui-C0HGOza2.js";var s=e();function c(){let{user:e}=i.useRouteContext(),c=t();return(0,s.jsxs)(`div`,{className:`min-h-screen`,children:[(0,s.jsx)(`header`,{className:`sticky top-0 z-10 border-b border-line bg-bg/90 backdrop-blur`,children:(0,s.jsxs)(`div`,{className:`mx-auto flex max-w-7xl items-center justify-between gap-4 px-4 py-3 sm:px-6`,children:[(0,s.jsxs)(`div`,{className:`flex items-center gap-5`,children:[(0,s.jsx)(r,{to:`/`,search:{},className:`shrink-0`,children:(0,s.jsx)(o,{})}),(0,s.jsxs)(`nav`,{className:`flex items-center gap-3 text-sm`,"aria-label":`Main`,children:[(0,s.jsx)(r,{to:`/`,search:{},className:`text-muted hover:text-ink`,activeProps:{className:`font-medium text-ink`},activeOptions:{exact:!0},children:`Overview`}),(0,s.jsx)(r,{to:`/settings`,search:{},className:`text-muted hover:text-ink`,activeProps:{className:`font-medium text-ink`},children:`Settings`}),(0,s.jsx)(r,{to:`/team`,className:`text-muted hover:text-ink`,activeProps:{className:`font-medium text-ink`},children:`Team`})]})]}),(0,s.jsxs)(`div`,{className:`flex items-center gap-3 text-sm`,children:[(0,s.jsxs)(`span`,{className:`hidden text-muted sm:inline`,children:[e.email,` · `,e.role]}),(0,s.jsx)(`button`,{className:`rounded-md border border-line px-2.5 py-1 hover:bg-panel-2`,onClick:async()=>{await n(),await c.invalidate(),await c.navigate({to:`/login`})},children:`Sign out`})]})]})}),(0,s.jsx)(a,{})]})}export{c as component};
@@ -1,4 +1,4 @@
1
- import{T as e,Z as t,et as n,j as r,k as i,w as a}from"./preload-helper-Dscj_TcA.js";import{r as o,t as s}from"./charts-QIIL2Fv7.js";import{a as c,c as l,n as u,o as d,r as f,s as p,t as m}from"./ui-C0HGOza2.js";import{a as h,o as g,s as _}from"./index-CMjwqklY.js";var v=n(t()),y=r();function b(){let t=h.useLoaderData(),n=h.useSearch(),{flow:r}=n,i=e({from:h.fullPath});if(!t)return(0,y.jsx)(w,{});let{totals:v,range:b}=t,C=b.preset===`custom`?`range`:b.preset,E=n.status??`open`,D=t.issues.filter(e=>E===`all`?!0:E===`open`?e.status===`open`||e.status===`regressed`:e.status===E),O=r?D.filter(e=>(e.flow??`untagged`)===r):D,k=e=>t.issues.filter(t=>e===`open`?t.status===`open`||t.status===`regressed`:t.status===e).length,A=v.changePct;return(0,y.jsxs)(`main`,{className:`mx-auto max-w-7xl space-y-5 px-4 py-6 sm:px-6`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[(0,y.jsxs)(`div`,{children:[(0,y.jsxs)(`p`,{className:`text-xs uppercase tracking-wide text-muted`,children:[`Overview · `,b.label]}),(0,y.jsxs)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:[`What's going wrong in `,t.app]})]}),(0,y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,y.jsx)(g,{value:b,today:t.generatedAt.slice(0,10),onChange:e=>i({search:t=>({...t,...e})})},`${b.preset}${b.from}${b.to}`),t.apps.length>1&&(0,y.jsx)(`select`,{"aria-label":`App`,value:t.app,onChange:e=>i({search:t=>({...t,app:e.target.value,flow:void 0})}),className:`rounded-md border border-line bg-panel px-2 py-1.5 text-sm`,children:t.apps.map(e=>(0,y.jsx)(`option`,{children:e},e))})]})]}),(0,y.jsx)(_,{rangeFrom:b.from,retention:t.retention}),(0,y.jsx)(`section`,{"aria-label":`Summary`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:(0,y.jsx)(`ul`,{className:`space-y-1.5 text-[15px] leading-relaxed`,children:t.narrative.map((e,t)=>(0,y.jsx)(`li`,{className:t===0?`font-medium`:`text-ink/90`,children:e},t))})}),(0,y.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-4`,children:[(0,y.jsx)(p,{label:`Errors (${C})`,value:v.errorsRange.toLocaleString(),tone:v.criticalIssues?`critical`:void 0,hint:A===null?`not enough earlier data to compare`:A>500?`▲ from ${v.errorsPrev.toLocaleString()} in the previous ${b.span}`:`${A>0?`▲`:A<0?`▼`:`•`} ${Math.abs(A)}% vs previous ${b.span}`}),(0,y.jsx)(p,{label:`Critical issues`,value:v.criticalIssues,tone:v.criticalIssues?`critical`:void 0,hint:`≥ threshold occurrences in 24h`}),(0,y.jsx)(p,{label:`Crash-free users (${C})`,value:x(t.health.crashFreeUsersRate),tone:t.health.crashFreeUsersRate!==null&&t.health.crashFreeUsersRate<.99?`high`:void 0,hint:`${t.health.users.toLocaleString()} users · ${t.health.crashedUsers.toLocaleString()} crashed`}),(0,y.jsx)(p,{label:`Crash-free sessions (${C})`,value:x(t.health.crashFreeRate),tone:t.health.crashFreeRate!==null&&t.health.crashFreeRate<.99?`high`:void 0,hint:`${t.health.sessionsRange.toLocaleString()} sessions · ${v.activeIssues} active issues`})]}),(0,y.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-5`,children:[(0,y.jsx)(`div`,{className:`min-w-0 lg:col-span-3`,children:(0,y.jsxs)(m,{title:`Where the app is failing`,subtitle:`Errors in ${b.label} by flow, coloured by worst severity. Click a bar to filter issues.`,children:[(0,y.jsx)(s,{data:t.flows,onSelect:e=>i({search:t=>({...t,flow:t.flow===e?void 0:e})})}),(0,y.jsx)(u,{columns:[`Flow`,`Severity`,`Errors 24h`,`Errors (${C})`,`Issues`,`Failure rate (${C})`],rows:t.flows.map(e=>[e.critical?`${e.flow} (critical)`:e.flow,e.severity,e.errors24h,e.errorsRange,e.issues,e.failureRate===null?`—`:`${Math.round(e.failureRate*100)}%`])})]})}),(0,y.jsx)(`div`,{className:`min-w-0 lg:col-span-2`,children:(0,y.jsxs)(m,{title:`Error trend`,subtitle:`Errors per ${b.granularity}, ${b.label} (UTC)`,children:[(0,y.jsx)(o,{data:t.trend,markers:t.releases.map(e=>({day:e.firstDay,label:e.release}))}),t.releases.length>0&&(0,y.jsxs)(`p`,{className:`mt-2 text-xs text-muted`,children:[`Dashed lines: a release's first sessions (`,t.releases.map(e=>e.release).join(`, `),`).`]}),(0,y.jsx)(u,{columns:[`Day`,`Errors`,`Events`],rows:t.trend.map(e=>[e.day,e.errors,e.events])})]})})]}),(0,y.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-2`,children:[(0,y.jsx)(m,{title:`Release health`,subtitle:`Share of sessions without a crash or unhandled error, per app version, in ${b.label}. Recorded automatically by the SDK.`,children:t.health.releases.length?(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[420px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Version`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Sessions`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Crash-free`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Error-free`})]})}),(0,y.jsx)(`tbody`,{children:t.health.releases.map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,y.jsx)(`td`,{className:`px-4 py-2 font-medium sm:px-2`,children:e.version}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right text-muted`,children:e.sessions.toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right font-semibold ${S(e.crashFreeRate)}`,children:x(e.crashFreeRate)}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right`,children:x(e.errorFreeRate)})]},e.version))})]})}):(0,y.jsx)(`p`,{className:`text-sm text-muted`,children:`No sessions yet. They're recorded automatically from SDK 0.2.`})}),(0,y.jsx)(m,{title:`Failing endpoints`,subtitle:`Requests that returned 5xx, timed out or failed in ${b.label}. Captured automatically from fetch and XHR.`,children:t.health.endpoints.length?(0,y.jsx)(d,{rows:t.health.endpoints.map(e=>({key:e.endpoint,value:e.failuresRange}))}):(0,y.jsx)(`p`,{className:`text-sm text-muted`,children:`No failed requests.`})})]}),(t.steps.length>0||t.timings.length>0)&&(0,y.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-2`,children:[t.steps.length>0&&(0,y.jsx)(m,{title:`Steps that fail`,subtitle:`track() outcomes per step in ${b.label}, most failures first.${r?` Filtered to ${r}.`:``}`,children:(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[420px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Flow · step`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Tries`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Failed`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Failure rate`})]})}),(0,y.jsx)(`tbody`,{children:t.steps.filter(e=>!r||e.flow===r).slice(0,8).map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,y.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs sm:px-2`,children:[e.flow,` · `,e.step]}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right text-muted`,children:(e.successes+e.failures).toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right`,children:e.failures.toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right font-semibold ${e.failureRate!==null&&e.failureRate>=.1?`text-sev-critical`:``}`,children:e.failureRate===null?`—`:`${Math.round(e.failureRate*100)}%`})]},`${e.flow}|${e.step}`))})]})})}),t.timings.length>0&&(0,y.jsxs)(m,{title:`Response times`,subtitle:`Busiest endpoints in ${b.label}. Measured by the SDK on real devices.`,children:[(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[420px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Endpoint`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Requests`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`p50`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`p95`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Failed`})]})}),(0,y.jsx)(`tbody`,{children:t.timings.map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,y.jsx)(`td`,{className:`max-w-[220px] truncate px-4 py-2 font-mono text-xs sm:px-2`,title:e.endpoint,children:e.endpoint}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right text-muted`,children:e.requests.toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right`,children:T(e.p50)}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right font-semibold ${e.p95!==null&&e.p95>=3e3?`text-sev-high`:``}`,children:T(e.p95)}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right ${e.errorRate>=.05?`font-semibold text-sev-critical`:`text-muted`}`,children:`${(e.errorRate*100).toFixed(+(e.errorRate<.1))}%`})]},e.endpoint))})]})}),(0,y.jsx)(`p`,{className:`mt-2 text-xs text-muted`,children:`p50/p95: half / 95% of requests finished within this time.`})]})]}),(0,y.jsx)(m,{title:r?`Issues in ${r}`:`Issues by severity`,subtitle:`Grouped errors seen in ${b.label}. Severity is set by occurrences in the last 24 hours.`,right:(0,y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1 text-xs`,children:[r&&(0,y.jsx)(`button`,{className:`mr-2 text-accent`,onClick:()=>i({search:e=>({...e,flow:void 0})}),children:`Clear flow ×`}),[`open`,`resolved`,`ignored`,`all`].map(e=>(0,y.jsxs)(`button`,{onClick:()=>i({search:t=>({...t,status:e===`open`?void 0:e})}),className:`rounded-md border px-2 py-1 capitalize ${E===e?`border-accent bg-accent-soft text-accent`:`border-line text-muted hover:bg-panel-2`}`,children:[e,e!==`all`&&(0,y.jsx)(`span`,{className:`ml-1 opacity-70`,children:k(e)})]},e))]}),children:(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[640px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Severity`}),(0,y.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`Issue`}),(0,y.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`Flow`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Users`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`24h`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:C===`24h`?`Total`:C===`range`?`Range`:C}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Last seen`})]})}),(0,y.jsxs)(`tbody`,{children:[O.map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0 hover:bg-panel-2`,children:[(0,y.jsx)(`td`,{className:`px-4 py-2.5 sm:px-2`,children:(0,y.jsx)(c,{severity:e.severity})}),(0,y.jsxs)(`td`,{className:`max-w-[420px] px-2 py-2.5`,children:[(0,y.jsx)(a,{to:`/issues/$fingerprint`,params:{fingerprint:e.fingerprint},search:{app:t.app,range:b.preset===`14d`?void 0:b.preset,...b.preset===`custom`?{from:b.from,to:b.to}:{}},className:`block truncate font-medium hover:text-accent`,children:e.title}),e.culprit&&(0,y.jsx)(`div`,{className:`truncate font-mono text-xs text-muted`,children:e.culprit}),(0,y.jsx)(f,{issue:e})]}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-xs`,children:e.flow??(0,y.jsx)(`span`,{className:`text-muted`,children:`untagged`})}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right text-muted`,children:e.users??`—`}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right font-semibold`,children:e.count24h}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right text-muted`,children:C===`24h`?e.countTotal:e.countRange}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right text-xs text-muted`,children:l(e.lastSeen)})]},e.fingerprint)),!O.length&&(0,y.jsx)(`tr`,{children:(0,y.jsx)(`td`,{colSpan:7,className:`px-2 py-6 text-center text-muted`,children:`No issues.`})})]})]})})}),(0,y.jsxs)(`div`,{className:`grid gap-5 md:grid-cols-3`,children:[(0,y.jsx)(m,{title:`By network`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.network.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By country`,subtitle:`Errors, ${b.label}. From the device's timezone, not its IP.`,children:(0,y.jsx)(d,{rows:t.breakdowns.country.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By OS`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.os.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By app version`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.appVersion.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By device`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.deviceModel.map(e=>({key:e.key,value:e.errors}))})})]}),(0,y.jsxs)(`p`,{className:`pb-6 text-xs text-muted`,children:[`Machine-readable: `,(0,y.jsxs)(`code`,{children:[`GET /api/summary?app=`,t.app]}),` returns this page as JSON with field descriptions.`]})]})}function x(e){return e===null?`—`:`${(Math.floor(e*1e3)/10).toFixed(1)}%`}function S(e){return e===null?``:e<.98?`text-sev-critical`:e<.995?`text-sev-high`:``}var C=[{title:`A written summary`,when:`after the first error`,detail:`How many errors in the last 24 hours, the worst part of the app, the top issue and the release that's struggling, in plain sentences.`},{title:`Issues by severity`,when:`after the first error`,detail:`Errors grouped by cause. Severity comes from how often each happened in the last 24 hours. Open one for the stack trace and the steps that led to it.`},{title:`Release health`,when:`as soon as the app starts`,detail:`Every app launch is a session. You'll see the share of sessions per version that ran without a crash or an unhandled error.`},{title:`Failing endpoints`,when:`after the first failed request`,detail:`Requests that timed out, failed or returned 5xx, captured from fetch and XHR without any code from you.`},{title:`Where the app is failing`,when:`once you tag flows`,detail:`Errors by flow, like auth.login or checkout.payment. Wrap a step in deBug.track() and each flow also gets a failure rate.`},{title:`Breakdowns`,when:`after the first error`,detail:`Errors split by OS, app version and device model, so you can see who is affected.`}];function w(){let e=i();return(0,v.useEffect)(()=>{let t=setInterval(()=>void e.invalidate(),5e3);return()=>clearInterval(t)},[e]),(0,y.jsxs)(`main`,{className:`mx-auto max-w-4xl space-y-6 px-4 py-10 sm:px-6`,children:[(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`p`,{className:`text-xs uppercase tracking-wide text-muted`,children:`Connected · waiting for the first event`}),(0,y.jsx)(`h1`,{className:`mt-1 text-2xl font-semibold tracking-tight`,children:`Your dashboard is ready, and empty for now.`}),(0,y.jsxs)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted`,children:[`Nothing has arrived yet. Run your app with the SDK initialised, or send a test event with `,(0,y.jsx)(`code`,{children:`npx debugkit test`}),` (or `,(0,y.jsx)(`code`,{children:`npx @debugkit/cli test`}),`). This page fills in on its own.`]})]}),(0,y.jsxs)(`section`,{"aria-labelledby":`see-h`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,y.jsx)(`h2`,{id:`see-h`,className:`text-sm font-semibold`,children:`What you'll see here`}),(0,y.jsx)(`ul`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:C.map(e=>(0,y.jsxs)(`li`,{className:`rounded-lg border border-line p-3`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,y.jsx)(`span`,{className:`font-medium`,children:e.title}),(0,y.jsx)(`span`,{className:`text-[11px] uppercase tracking-wide text-muted`,children:e.when})]}),(0,y.jsx)(`p`,{className:`mt-1 text-sm text-ink/80`,children:e.detail})]},e.title))})]}),(0,y.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,y.jsxs)(`section`,{"aria-labelledby":`auto-h`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,y.jsx)(`h2`,{id:`auto-h`,className:`text-sm font-semibold`,children:`Recorded automatically`}),(0,y.jsxs)(`p`,{className:`mt-1 text-xs text-muted`,children:[`Once `,(0,y.jsx)(`code`,{children:`init()`}),` runs, with no other code.`]}),(0,y.jsxs)(`ul`,{className:`mt-3 list-disc space-y-1 pl-5 text-sm`,children:[(0,y.jsx)(`li`,{children:`Crashes and unhandled promise rejections`}),(0,y.jsx)(`li`,{children:`Failed, timed-out and 5xx requests, with the code that made them`}),(0,y.jsx)(`li`,{children:`Sessions, for crash-free rates per release`}),(0,y.jsx)(`li`,{children:`Screens visited, buttons clicked, console warnings, app backgrounded or offline`}),(0,y.jsx)(`li`,{children:`Device, OS, app version and network on every event`})]})]}),(0,y.jsxs)(`section`,{"aria-labelledby":`manual-h`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,y.jsx)(`h2`,{id:`manual-h`,className:`text-sm font-semibold`,children:`What you add`}),(0,y.jsx)(`p`,{className:`mt-1 text-xs text-muted`,children:`Only what the app can't know on its own.`}),(0,y.jsx)(`pre`,{className:`mt-3 overflow-x-auto rounded-md bg-panel-2 p-3 text-xs leading-relaxed`,children:`// in a try/catch you already have
1
+ import{T as e,Z as t,et as n,j as r,k as i,w as a}from"./preload-helper-Dscj_TcA.js";import{r as o,t as s}from"./charts-XyOWJI9T.js";import{a as c,c as l,n as u,o as d,r as f,s as p,t as m}from"./ui-C0HGOza2.js";import{a as h,o as g,s as _}from"./index-Bfb2UOzB.js";var v=n(t()),y=r();function b(){let t=h.useLoaderData(),n=h.useSearch(),{flow:r}=n,i=e({from:h.fullPath});if(!t)return(0,y.jsx)(w,{});let{totals:v,range:b}=t,C=b.preset===`custom`?`range`:b.preset,E=n.status??`open`,D=t.issues.filter(e=>E===`all`?!0:E===`open`?e.status===`open`||e.status===`regressed`:e.status===E),O=r?D.filter(e=>(e.flow??`untagged`)===r):D,k=e=>t.issues.filter(t=>e===`open`?t.status===`open`||t.status===`regressed`:t.status===e).length,A=v.changePct;return(0,y.jsxs)(`main`,{className:`mx-auto max-w-7xl space-y-5 px-4 py-6 sm:px-6`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap items-end justify-between gap-3`,children:[(0,y.jsxs)(`div`,{children:[(0,y.jsxs)(`p`,{className:`text-xs uppercase tracking-wide text-muted`,children:[`Overview · `,b.label]}),(0,y.jsxs)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:[`What's going wrong in `,t.app]})]}),(0,y.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,y.jsx)(g,{value:b,today:t.generatedAt.slice(0,10),onChange:e=>i({search:t=>({...t,...e})})},`${b.preset}${b.from}${b.to}`),t.apps.length>1&&(0,y.jsx)(`select`,{"aria-label":`App`,value:t.app,onChange:e=>i({search:t=>({...t,app:e.target.value,flow:void 0})}),className:`rounded-md border border-line bg-panel px-2 py-1.5 text-sm`,children:t.apps.map(e=>(0,y.jsx)(`option`,{children:e},e))})]})]}),(0,y.jsx)(_,{rangeFrom:b.from,retention:t.retention}),(0,y.jsx)(`section`,{"aria-label":`Summary`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:(0,y.jsx)(`ul`,{className:`space-y-1.5 text-[15px] leading-relaxed`,children:t.narrative.map((e,t)=>(0,y.jsx)(`li`,{className:t===0?`font-medium`:`text-ink/90`,children:e},t))})}),(0,y.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-4`,children:[(0,y.jsx)(p,{label:`Errors (${C})`,value:v.errorsRange.toLocaleString(),tone:v.criticalIssues?`critical`:void 0,hint:A===null?`not enough earlier data to compare`:A>500?`▲ from ${v.errorsPrev.toLocaleString()} in the previous ${b.span}`:`${A>0?`▲`:A<0?`▼`:`•`} ${Math.abs(A)}% vs previous ${b.span}`}),(0,y.jsx)(p,{label:`Critical issues`,value:v.criticalIssues,tone:v.criticalIssues?`critical`:void 0,hint:`≥ threshold occurrences in 24h`}),(0,y.jsx)(p,{label:`Crash-free users (${C})`,value:x(t.health.crashFreeUsersRate),tone:t.health.crashFreeUsersRate!==null&&t.health.crashFreeUsersRate<.99?`high`:void 0,hint:`${t.health.users.toLocaleString()} users · ${t.health.crashedUsers.toLocaleString()} crashed`}),(0,y.jsx)(p,{label:`Crash-free sessions (${C})`,value:x(t.health.crashFreeRate),tone:t.health.crashFreeRate!==null&&t.health.crashFreeRate<.99?`high`:void 0,hint:`${t.health.sessionsRange.toLocaleString()} sessions · ${v.activeIssues} active issues`})]}),(0,y.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-5`,children:[(0,y.jsx)(`div`,{className:`min-w-0 lg:col-span-3`,children:(0,y.jsxs)(m,{title:`Where the app is failing`,subtitle:`Errors in ${b.label} by flow, coloured by worst severity. Click a bar to filter issues.`,children:[(0,y.jsx)(s,{data:t.flows,onSelect:e=>i({search:t=>({...t,flow:t.flow===e?void 0:e})})}),(0,y.jsx)(u,{columns:[`Flow`,`Severity`,`Errors 24h`,`Errors (${C})`,`Issues`,`Failure rate (${C})`],rows:t.flows.map(e=>[e.critical?`${e.flow} (critical)`:e.flow,e.severity,e.errors24h,e.errorsRange,e.issues,e.failureRate===null?`—`:`${Math.round(e.failureRate*100)}%`])})]})}),(0,y.jsx)(`div`,{className:`min-w-0 lg:col-span-2`,children:(0,y.jsxs)(m,{title:`Error trend`,subtitle:`Errors per ${b.granularity}, ${b.label} (UTC)`,children:[(0,y.jsx)(o,{data:t.trend,markers:t.releases.map(e=>({day:e.firstDay,label:e.release}))}),t.releases.length>0&&(0,y.jsxs)(`p`,{className:`mt-2 text-xs text-muted`,children:[`Dashed lines: a release's first sessions (`,t.releases.map(e=>e.release).join(`, `),`).`]}),(0,y.jsx)(u,{columns:[`Day`,`Errors`,`Events`],rows:t.trend.map(e=>[e.day,e.errors,e.events])})]})})]}),(0,y.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-2`,children:[(0,y.jsx)(m,{title:`Release health`,subtitle:`Share of sessions without a crash or unhandled error, per app version, in ${b.label}. Recorded automatically by the SDK.`,children:t.health.releases.length?(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[420px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Version`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Sessions`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Crash-free`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Error-free`})]})}),(0,y.jsx)(`tbody`,{children:t.health.releases.map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,y.jsx)(`td`,{className:`px-4 py-2 font-medium sm:px-2`,children:e.version}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right text-muted`,children:e.sessions.toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right font-semibold ${S(e.crashFreeRate)}`,children:x(e.crashFreeRate)}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right`,children:x(e.errorFreeRate)})]},e.version))})]})}):(0,y.jsx)(`p`,{className:`text-sm text-muted`,children:`No sessions yet. They're recorded automatically from SDK 0.2.`})}),(0,y.jsx)(m,{title:`Failing endpoints`,subtitle:`Requests that returned 5xx, timed out or failed in ${b.label}. Captured automatically from fetch and XHR.`,children:t.health.endpoints.length?(0,y.jsx)(d,{rows:t.health.endpoints.map(e=>({key:e.endpoint,value:e.failuresRange}))}):(0,y.jsx)(`p`,{className:`text-sm text-muted`,children:`No failed requests.`})})]}),(t.steps.length>0||t.timings.length>0)&&(0,y.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-2`,children:[t.steps.length>0&&(0,y.jsx)(m,{title:`Steps that fail`,subtitle:`track() outcomes per step in ${b.label}, most failures first.${r?` Filtered to ${r}.`:``}`,children:(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[420px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Flow · step`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Tries`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Failed`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Failure rate`})]})}),(0,y.jsx)(`tbody`,{children:t.steps.filter(e=>!r||e.flow===r).slice(0,8).map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,y.jsxs)(`td`,{className:`px-4 py-2 font-mono text-xs sm:px-2`,children:[e.flow,` · `,e.step]}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right text-muted`,children:(e.successes+e.failures).toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right`,children:e.failures.toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right font-semibold ${e.failureRate!==null&&e.failureRate>=.1?`text-sev-critical`:``}`,children:e.failureRate===null?`—`:`${Math.round(e.failureRate*100)}%`})]},`${e.flow}|${e.step}`))})]})})}),t.timings.length>0&&(0,y.jsxs)(m,{title:`Response times`,subtitle:`Busiest endpoints in ${b.label}. Measured by the SDK on real devices.`,children:[(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[420px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Endpoint`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Requests`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`p50`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`p95`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Failed`})]})}),(0,y.jsx)(`tbody`,{children:t.timings.map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0`,children:[(0,y.jsx)(`td`,{className:`max-w-[220px] truncate px-4 py-2 font-mono text-xs sm:px-2`,title:e.endpoint,children:e.endpoint}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right text-muted`,children:e.requests.toLocaleString()}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right`,children:T(e.p50)}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right font-semibold ${e.p95!==null&&e.p95>=3e3?`text-sev-high`:``}`,children:T(e.p95)}),(0,y.jsx)(`td`,{className:`px-2 py-2 text-right ${e.errorRate>=.05?`font-semibold text-sev-critical`:`text-muted`}`,children:`${(e.errorRate*100).toFixed(+(e.errorRate<.1))}%`})]},e.endpoint))})]})}),(0,y.jsx)(`p`,{className:`mt-2 text-xs text-muted`,children:`p50/p95: half / 95% of requests finished within this time.`})]})]}),(0,y.jsx)(m,{title:r?`Issues in ${r}`:`Issues by severity`,subtitle:`Grouped errors seen in ${b.label}. Severity is set by occurrences in the last 24 hours.`,right:(0,y.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-1 text-xs`,children:[r&&(0,y.jsx)(`button`,{className:`mr-2 text-accent`,onClick:()=>i({search:e=>({...e,flow:void 0})}),children:`Clear flow ×`}),[`open`,`resolved`,`ignored`,`all`].map(e=>(0,y.jsxs)(`button`,{onClick:()=>i({search:t=>({...t,status:e===`open`?void 0:e})}),className:`rounded-md border px-2 py-1 capitalize ${E===e?`border-accent bg-accent-soft text-accent`:`border-line text-muted hover:bg-panel-2`}`,children:[e,e!==`all`&&(0,y.jsx)(`span`,{className:`ml-1 opacity-70`,children:k(e)})]},e))]}),children:(0,y.jsx)(`div`,{className:`-mx-4 overflow-x-auto sm:mx-0`,children:(0,y.jsxs)(`table`,{className:`tabular w-full min-w-[640px] text-left text-sm`,children:[(0,y.jsx)(`thead`,{className:`text-xs text-muted`,children:(0,y.jsxs)(`tr`,{className:`border-b border-line`,children:[(0,y.jsx)(`th`,{className:`px-4 py-2 font-medium sm:px-2`,children:`Severity`}),(0,y.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`Issue`}),(0,y.jsx)(`th`,{className:`px-2 py-2 font-medium`,children:`Flow`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Users`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`24h`}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:C===`24h`?`Total`:C===`range`?`Range`:C}),(0,y.jsx)(`th`,{className:`px-2 py-2 text-right font-medium`,children:`Last seen`})]})}),(0,y.jsxs)(`tbody`,{children:[O.map(e=>(0,y.jsxs)(`tr`,{className:`border-b border-line last:border-0 hover:bg-panel-2`,children:[(0,y.jsx)(`td`,{className:`px-4 py-2.5 sm:px-2`,children:(0,y.jsx)(c,{severity:e.severity})}),(0,y.jsxs)(`td`,{className:`max-w-[420px] px-2 py-2.5`,children:[(0,y.jsx)(a,{to:`/issues/$fingerprint`,params:{fingerprint:e.fingerprint},search:{app:t.app,range:b.preset===`14d`?void 0:b.preset,...b.preset===`custom`?{from:b.from,to:b.to}:{}},className:`block truncate font-medium hover:text-accent`,children:e.title}),e.culprit&&(0,y.jsx)(`div`,{className:`truncate font-mono text-xs text-muted`,children:e.culprit}),(0,y.jsx)(f,{issue:e})]}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-xs`,children:e.flow??(0,y.jsx)(`span`,{className:`text-muted`,children:`untagged`})}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right text-muted`,children:e.users??`—`}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right font-semibold`,children:e.count24h}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right text-muted`,children:C===`24h`?e.countTotal:e.countRange}),(0,y.jsx)(`td`,{className:`px-2 py-2.5 text-right text-xs text-muted`,children:l(e.lastSeen)})]},e.fingerprint)),!O.length&&(0,y.jsx)(`tr`,{children:(0,y.jsx)(`td`,{colSpan:7,className:`px-2 py-6 text-center text-muted`,children:`No issues.`})})]})]})})}),(0,y.jsxs)(`div`,{className:`grid gap-5 md:grid-cols-3`,children:[(0,y.jsx)(m,{title:`By network`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.network.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By country`,subtitle:`Errors, ${b.label}. From the device's timezone, not its IP.`,children:(0,y.jsx)(d,{rows:t.breakdowns.country.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By OS`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.os.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By app version`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.appVersion.map(e=>({key:e.key,value:e.errors}))})}),(0,y.jsx)(m,{title:`By device`,subtitle:`Errors, ${b.label}`,children:(0,y.jsx)(d,{rows:t.breakdowns.deviceModel.map(e=>({key:e.key,value:e.errors}))})})]}),(0,y.jsxs)(`p`,{className:`pb-6 text-xs text-muted`,children:[`Machine-readable: `,(0,y.jsxs)(`code`,{children:[`GET /api/summary?app=`,t.app]}),` returns this page as JSON with field descriptions.`]})]})}function x(e){return e===null?`—`:`${(Math.floor(e*1e3)/10).toFixed(1)}%`}function S(e){return e===null?``:e<.98?`text-sev-critical`:e<.995?`text-sev-high`:``}var C=[{title:`A written summary`,when:`after the first error`,detail:`How many errors in the last 24 hours, the worst part of the app, the top issue and the release that's struggling, in plain sentences.`},{title:`Issues by severity`,when:`after the first error`,detail:`Errors grouped by cause. Severity comes from how often each happened in the last 24 hours. Open one for the stack trace and the steps that led to it.`},{title:`Release health`,when:`as soon as the app starts`,detail:`Every app launch is a session. You'll see the share of sessions per version that ran without a crash or an unhandled error.`},{title:`Failing endpoints`,when:`after the first failed request`,detail:`Requests that timed out, failed or returned 5xx, captured from fetch and XHR without any code from you.`},{title:`Where the app is failing`,when:`once you tag flows`,detail:`Errors by flow, like auth.login or checkout.payment. Wrap a step in deBug.track() and each flow also gets a failure rate.`},{title:`Breakdowns`,when:`after the first error`,detail:`Errors split by OS, app version and device model, so you can see who is affected.`}];function w(){let e=i();return(0,v.useEffect)(()=>{let t=setInterval(()=>void e.invalidate(),5e3);return()=>clearInterval(t)},[e]),(0,y.jsxs)(`main`,{className:`mx-auto max-w-4xl space-y-6 px-4 py-10 sm:px-6`,children:[(0,y.jsxs)(`div`,{children:[(0,y.jsx)(`p`,{className:`text-xs uppercase tracking-wide text-muted`,children:`Connected · waiting for the first event`}),(0,y.jsx)(`h1`,{className:`mt-1 text-2xl font-semibold tracking-tight`,children:`Your dashboard is ready, and empty for now.`}),(0,y.jsxs)(`p`,{className:`mt-2 max-w-2xl text-sm text-muted`,children:[`Nothing has arrived yet. Run your app with the SDK initialised, or send a test event with `,(0,y.jsx)(`code`,{children:`npx debugkit test`}),` (or `,(0,y.jsx)(`code`,{children:`npx @debugkit/cli test`}),`). This page fills in on its own.`]})]}),(0,y.jsxs)(`section`,{"aria-labelledby":`see-h`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,y.jsx)(`h2`,{id:`see-h`,className:`text-sm font-semibold`,children:`What you'll see here`}),(0,y.jsx)(`ul`,{className:`mt-3 grid gap-3 sm:grid-cols-2`,children:C.map(e=>(0,y.jsxs)(`li`,{className:`rounded-lg border border-line p-3`,children:[(0,y.jsxs)(`div`,{className:`flex flex-wrap items-baseline justify-between gap-2`,children:[(0,y.jsx)(`span`,{className:`font-medium`,children:e.title}),(0,y.jsx)(`span`,{className:`text-[11px] uppercase tracking-wide text-muted`,children:e.when})]}),(0,y.jsx)(`p`,{className:`mt-1 text-sm text-ink/80`,children:e.detail})]},e.title))})]}),(0,y.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,y.jsxs)(`section`,{"aria-labelledby":`auto-h`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,y.jsx)(`h2`,{id:`auto-h`,className:`text-sm font-semibold`,children:`Recorded automatically`}),(0,y.jsxs)(`p`,{className:`mt-1 text-xs text-muted`,children:[`Once `,(0,y.jsx)(`code`,{children:`init()`}),` runs, with no other code.`]}),(0,y.jsxs)(`ul`,{className:`mt-3 list-disc space-y-1 pl-5 text-sm`,children:[(0,y.jsx)(`li`,{children:`Crashes and unhandled promise rejections`}),(0,y.jsx)(`li`,{children:`Failed, timed-out and 5xx requests, with the code that made them`}),(0,y.jsx)(`li`,{children:`Sessions, for crash-free rates per release`}),(0,y.jsx)(`li`,{children:`Screens visited, buttons clicked, console warnings, app backgrounded or offline`}),(0,y.jsx)(`li`,{children:`Device, OS, app version and network on every event`})]})]}),(0,y.jsxs)(`section`,{"aria-labelledby":`manual-h`,className:`rounded-xl border border-line bg-panel p-4 sm:p-5`,children:[(0,y.jsx)(`h2`,{id:`manual-h`,className:`text-sm font-semibold`,children:`What you add`}),(0,y.jsx)(`p`,{className:`mt-1 text-xs text-muted`,children:`Only what the app can't know on its own.`}),(0,y.jsx)(`pre`,{className:`mt-3 overflow-x-auto rounded-md bg-panel-2 p-3 text-xs leading-relaxed`,children:`// in a try/catch you already have
2
2
  catch (err) {
3
3
  deBug.error(err, { flow: "checkout.payment", step: "charge" });
4
4
  }
@@ -1,4 +1,4 @@
1
- import{$ as e,D as t,Q as n,Z as r,et as i,j as a}from"./preload-helper-Dscj_TcA.js";import{d as o}from"./index-CMjwqklY.js";var s=i(r()),c=o();function l(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function u(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=` `),r+=t);return r}var d=t(),f=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function p(e){return typeof e==`string`&&f.includes(e)}var m=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function h(e){return typeof e==`string`&&m.has(e)}function g(e){return typeof e==`string`&&e.startsWith(`data-`)}function _(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(h(n)||g(n))&&(t[n]=e[n]);return t}function v(e){if(e==null)return null;if((0,s.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return _(t)}return typeof e==`object`&&!Array.isArray(e)?_(e):null}function y(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(h(n)||g(n)||p(n))&&(t[n]=e[n]);return t}function b(e){return e==null?null:(0,s.isValidElement)(e)?y(e.props):typeof e==`object`&&!Array.isArray(e)?y(e):null}var x=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(null,arguments)}function C(e,t){if(e==null)return{};var n,r,i=w(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function w(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var T=(0,s.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,c=e.style,l=e.title,d=e.desc,f=C(e,x),p=a||{width:r,height:i,x:0,y:0},m=u(`recharts-surface`,o);return s.createElement(`svg`,S({},y(f),{className:m,width:r,height:i,style:c,viewBox:`${p.x} ${p.y} ${p.width} ${p.height}`,ref:t}),s.createElement(`title`,null,l),s.createElement(`desc`,null,d),n)}),E=[`children`,`className`];function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(null,arguments)}function O(e,t){if(e==null)return{};var n,r,i=k(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var A=s.forwardRef((e,t)=>{var n=e.children,r=e.className,i=O(e,E),a=u(`recharts-layer`,r);return s.createElement(`g`,D({className:a},y(i),{ref:t}),n)});function j(e){return e===`__proto__`}var M=Object.prototype.hasOwnProperty;function N(e,t){return M.call(e,t)}var ee=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function te(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:ee.test(e);default:return!1}}function ne(e){var t;return typeof e==`string`||typeof e==`symbol`?e:Object.is(e==null||(t=e.valueOf)==null?void 0:t.call(e),-0)?`-0`:String(e)}function re(e){return typeof e==`symbol`||e instanceof Symbol}function ie(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=``;for(let n=0;n<e.length;n++)n>0&&(t+=`,`),t+=ie(e[n]);return t}if(re(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ae(e){return e==null?``:ie(e)}function oe(e){if(Array.isArray(e))return e.map(ne);if(typeof e==`symbol`)return[e];e=ae(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function se(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(j(t))return n;let r=e[t];return r===void 0?te(t)&&!N(e,t)?se(e,oe(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ne(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ce(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),j(t))return n;let r=e[t];return r===void 0?n:r}}}function ce(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||j(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var le=4;function ue(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:le),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function P(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+ue(i)+n},``)}var de=e=>e===0?0:e>0?1:-1,fe=e=>typeof e==`number`&&e!=+e,pe=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,F=e=>(typeof e==`number`||e instanceof Number)&&!fe(e),me=e=>F(e)||typeof e==`string`,he=0,ge=e=>{var t=++he;return`${e||``}${t}`},_e=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!F(e)&&typeof e!=`string`)return n;var i;if(pe(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return fe(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},ve=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function I(e,t,n){return F(e)&&F(t)?ue(e+n*(t-e)):t}function ye(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):se(e,t))===n)}var L=e=>e==null,be=e=>L(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function xe(e){return e!=null}function Se(){}function Ce(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?we(Object(n),!0).forEach(function(t){Ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){var t=Oe(e,`string`);return typeof t==`symbol`?t:t+``}function Oe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ke=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Ce(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Te({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Te({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Te({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Te({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Te({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Te({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Te({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Te({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(F(n.x)||pe(n.x))&&(F(n.y)||pe(n.y))?Te({x:c+_e(n.x,g),y:l+_e(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Te({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Ae=[`top`,`left`,`right`,`bottom`];function je(e){return e==null?!1:typeof e==`object`||Ae.includes(e)}var Me=(0,s.createContext)(null),Ne=Math.PI,Pe=2*Ne,Fe=1e-6,Ie=Pe-Fe;function Le(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Re(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Le;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function ze(e,t,n,r){return e===n&&t===r}function Be(e){let t=Math.floor(e);if(!(t<=15))return ze;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var Ve=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Le:Re(e),this._equal=e==null?ze:Be(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Fe){if(!(Math.abs(u*s-c*l)>Fe)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Ne-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Fe&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Fe||Math.abs(this._y1-l)>Fe)&&this._append`L${c},${l}`,n){if(d<0&&(d=d%Pe+Pe),d>Ie)this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`;else if(d>Fe){let a=e+n*Math.cos(i),o=t+n*Math.sin(i);if(d>=Ne&&this._equal(c,l,a,o)){d/=2;let i=r+d;this._append`A${n},${n},0,${+(d>=Ne)},${u},${e+n*Math.cos(i)},${t+n*Math.sin(i)}`}this._append`A${n},${n},0,${+(d>=Ne)},${u},${this._x1=a},${this._y1=o}`}}}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Ve.prototype;function R(e){return function(){return e}}var He=Math.cos,Ue=Math.sin,We=Math.sqrt,Ge=1e-12,Ke=Math.PI;Ke/2;var qe=2*Ke;function Je(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ve(t)}Array.prototype.slice;function Ye(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Xe(e){this._context=e}Xe.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)}}};function Ze(e){return new Xe(e)}function Qe(e){return e[0]}function $e(e){return e[1]}function et(e,t){var n=R(!0),r=null,i=Ze,a=null,o=Je(s);e=typeof e==`function`?e:e===void 0?Qe:R(e),t=typeof t==`function`?t:t===void 0?$e:R(t);function s(s){var c,l=(s=Ye(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function tt(e,t,n){var r=null,i=R(!0),a=null,o=Ze,s=null,c=Je(l);e=typeof e==`function`?e:e===void 0?Qe:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?$e:R(+n);function l(l){var u,d,f,p=(l=Ye(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return et().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:R(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}rt(Ze);function nt(e){this._curve=e}nt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function rt(e){function t(t){return new nt(e(t))}return t._curve=e,t}var it=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function at(e){return new it(e,!0)}function ot(e){return new it(e,!1)}We(3),We(1/3)*2;var st=Ue(Ke/10)/Ue(7*Ke/10);Ue(qe/10)*st,-He(qe/10)*st,We(3),We(3),We(3)/2,(1/We(12)/2+1)*3;function ct(){}function lt(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ut(e){this._context=e}ut.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:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:lt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dt(e){return new ut(e)}function ft(e){this._context=e}ft.prototype={areaStart:ct,areaEnd:ct,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)}},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:lt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pt(e){return new ft(e)}function mt(e){this._context=e}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:lt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ht(e){return new mt(e)}function gt(e,t){this._basis=new ut(e),this._beta=t}gt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},(function e(t){function n(e){return t===1?new ut(e):new gt(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function _t(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function vt(e,t){this._context=e,this._k=(1-t)/6}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_t(this,this._x1,this._y1)}(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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_t(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new vt(e,t)}return n.tension=function(t){return e(+t)},n})(0);function yt(e,t){this._context=e,this._k=(1-t)/6}yt.prototype={areaStart:ct,areaEnd:ct,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_t(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new yt(e,t)}return n.tension=function(t){return e(+t)},n})(0);function bt(e,t){this._context=e,this._k=(1-t)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_t(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new bt(e,t)}return n.tension=function(t){return e(+t)},n})(0);function xt(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ge){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Ge){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function St(e,t){this._context=e,this._alpha=t}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}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;default:xt(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new St(e,t):new vt(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Ct(e,t){this._context=e,this._alpha=t}Ct.prototype={areaStart:ct,areaEnd:ct,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xt(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new Ct(e,t):new yt(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function wt(e,t){this._context=e,this._alpha=t}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xt(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new wt(e,t):new bt(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Tt(e){this._context=e}Tt.prototype={areaStart:ct,areaEnd:ct,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 Et(e){return new Tt(e)}function Dt(e){return e<0?-1:1}function Ot(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Dt(a)+Dt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function At(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function jt(e){this._context=e}jt.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:At(this,this._t0,kt(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,At(this,kt(this,n=Ot(this,e,t)),n);break;default:At(this,this._t0,n=Ot(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Mt(e){this._context=new Nt(e)}(Mt.prototype=Object.create(jt.prototype)).point=function(e,t){jt.prototype.point.call(this,t,e)};function Nt(e){this._context=e}Nt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Pt(e){return new jt(e)}function Ft(e){return new Mt(e)}function It(e){this._context=e}It.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Lt(e),i=Lt(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Lt(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Rt(e){return new It(e)}function zt(e,t){this._context=e,this._t=t}zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Bt(e){return new zt(e,.5)}function Vt(e){return new zt(e,0)}function Ht(e){return new zt(e,1)}function Ut(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Wt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Gt(e,t){return e[t]}function Kt(e){let t=[];return t.key=e,t}function qt(){var e=R([]),t=Wt,n=Ut,r=Gt;function i(i){var a=Array.from(e.apply(this,arguments),Kt),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Ye(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Wt:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Ut,i):n},i}function Jt(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Ut(e,t)}}function Yt(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ut(e,t)}}function Xt(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Ut(e,t)}}var Zt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Qt=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,s.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{p(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},$t=(e,t,n)=>r=>(e(t,n,r),null),en=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];p(i)&&typeof a==`function`&&(r||={},r[i]=$t(a,t,n))}),r};function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tn(Object(n),!0).forEach(function(t){rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){var t=on(e,`string`);return typeof t==`symbol`?t:t+``}function on(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sn(e,t){var n=nn({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function cn(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function ln(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function un(e){return e}function dn(e){return Number.isSafeInteger(e)&&e>=0}function fn(e){return e!=null&&typeof e!=`function`&&dn(e.length)}function pn(e){return function(t){return se(t,e)}}function mn(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function hn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var gn=`[object RegExp]`,_n=`[object String]`,vn=`[object Number]`,yn=`[object Boolean]`,bn=`[object Arguments]`,xn=`[object Symbol]`,Sn=`[object Date]`,Cn=`[object Map]`,wn=`[object Set]`,Tn=`[object Array]`,En=`[object Function]`,Dn=`[object ArrayBuffer]`,On=`[object Object]`,kn=`[object Error]`,An=`[object DataView]`,jn=`[object Uint8Array]`,Mn=`[object Uint8ClampedArray]`,Nn=`[object Uint16Array]`,Pn=`[object Uint32Array]`,Fn=`[object BigUint64Array]`,In=`[object Int8Array]`,Ln=`[object Int16Array]`,Rn=`[object Int32Array]`,zn=`[object BigInt64Array]`,Bn=`[object Float32Array]`,Vn=`[object Float64Array]`;function Hn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Un(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Wn(e,t,n){return typeof n==`function`?Gn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Gn(t,r,e,s,!1):!!c},new Map,!0):Wn(e,t,()=>void 0)}function Gn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Kn(e,t,n,r,i);case`function`:return Object.keys(t).length>0?Gn(e,Object.assign({},t),n,r,i):Hn(e,t);default:return Un(e)&&i?typeof t!=`string`||t===``:Hn(e,t)}}function Kn(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Jn(e,t,n,r);if(t instanceof Map)return qn(e,t,n,r);if(t instanceof Set)return Yn(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)mn(e)&&(e=Object(e));else{if(hn(t)===`[object Error]`)return hn(e)===`[object Error]`&&e.name===t.name&&e.message===t.message;let n=hn(e);if(n!==`[object Object]`&&n!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function qn(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Jn(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Yn(e,t,n,r){return t.size===0||e instanceof Set&&Jn([...e],[...t],n,r)}function Xn(e,t){return Wn(e,t,()=>void 0)}function Zn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var Qn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function $n(e){return Qn.Buffer!==void 0&&Qn.Buffer.isBuffer(e)}function er(e){return $n(e)}function tr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nr(e){return tr(e)}function rr(e,t){return ir(e,void 0,e,new Map,t)}function ir(e,t,n,r,i){if(i!=null){let a=i(e,t,n,r);if(a!==void 0)return a}if(mn(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ir(e[a],a,n,r,i);return N(e,`index`)&&(t.index=e.index),N(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;return r.set(e,t),e.forEach((e,a)=>{t.set(a,ir(e,a,n,r,i))}),t}if(e instanceof Set){let t=new Set;return r.set(e,t),e.forEach(e=>{t.add(ir(e,void 0,n,r,i))}),t}if(er(e))return e.subarray();if(nr(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ir(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),ar(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),ar(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),ar(t,e,n,r,i),t}let a=hn(e);if(a===`[object Error]`)return e===n?{}:e;switch(a){case vn:case _n:case yn:{let t=new e.constructor(e.valueOf());return r.set(e,t),ar(t,e,n,r,i),t}case bn:{let t={};return r.set(e,t),ar(t,e,n,r,i),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}}if(typeof e==`object`&&or(a)){let t=a===`[object Object]`&&typeof e.constructor!=`function`?{}:Object.create(Object.getPrototypeOf(e));return r.set(e,t),ar(t,e,n,r,i),t}return e}function ar(e,t,n,r,i){let a=[...Object.keys(t),...Zn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=ir(t[s],s,n,r,i))}}function or(e){switch(e){case bn:case Tn:case Dn:case An:case yn:case Sn:case Bn:case Vn:case In:case Ln:case Rn:case Cn:case vn:case On:case gn:case wn:case _n:case xn:case jn:case Mn:case Nn:case Pn:return!0;default:return!1}}function sr(e){return rr(e)}function cr(e){return e=sr(e),t=>Xn(t,e)}var lr=/^(?:0|[1-9]\d*)$/;function ur(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return lr.test(e)}}function dr(e){return typeof e==`object`&&!!e&&hn(e)===`[object Arguments]`}function fr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&te(t)&&!(t in Object(e))?oe(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=ne(n[e]);if((r==null||!N(r,t))&&!((Array.isArray(r)||dr(r))&&ur(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function pr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ne(e)}return t=sr(t),function(n){let r=se(n,e);return r===void 0?fr(n,e):t===void 0?r===void 0:Xn(r,t)}}function mr(e){if(e==null)return un;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?pr(e[0],e[1]):cr(e);default:return pn(e)}}function hr(e){return e===0?0:e}function gr(e,t=un){return fn(e)?cn(Array.from(e),ln(mr(t),1)).map(hr):[]}function _r(e,t,n){return t===!0?gr(e,n):typeof t==`function`?gr(e,t):e}var vr=(0,s.createContext)(null),yr=e=>e,z=()=>{var e=(0,s.useContext)(vr);return e?e.store.dispatch:yr},br=()=>{},xr=()=>br,Sr=(e,t)=>e===t;function B(e){var t=(0,s.useContext)(vr),n=(0,s.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:br,[t,e]);return(0,d.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:xr,t?t.store.getState:br,t?t.store.getState:br,n,Sr)}function Cr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function wr(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Tr=e=>Array.isArray(e)?e:[e];function Er(e){let t=Array.isArray(e[0])?e[0]:e;return wr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Dr(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Or=class{constructor(e){this.value=e}deref(){return this.value}},kr=typeof WeakRef>`u`?Or:WeakRef,Ar=0,jr=1;function Mr(){return{s:Ar,v:void 0,o:null,p:null}}function Nr(e){return e instanceof kr?e.deref():e}function Pr(e,t={}){let n=Mr(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Mr(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Mr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===jr)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Nr(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new kr(c):c}return s.s=jr,s.v=c,c}return o.clearCache=()=>{n=Mr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Fr(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Cr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Pr,argsMemoizeOptions:u=[]}={...n,...a},d=Tr(c),f=Tr(u),p=Er(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Dr(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var V=Fr(Pr);function Ir(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Lr(e,t,n){return Un(n)&&(typeof t==`number`&&fn(n)&&ur(t)&&t<n.length||typeof t==`string`&&t in n)?Hn(n[t],e):!1}function Rr(e){let t=Object.keys(e),n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return n}function zr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Br=(e,t,n)=>{if(e!==t){let r=zr(e),i=zr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},Vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hr=/^\w*$/;function Ur(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||re(e)?!0:typeof e==`string`&&(Hr.test(e)||!Vr.test(e))||t!=null&&N(t,e)}function Wr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=fn(e)?Array.from(e):Rr(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?N(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Ur(e)?e:{key:e,path:oe(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=Br(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Gr(e,...t){let n=t.length;return n>1&&Lr(e,t[0],t[1])?t=[]:n>2&&Lr(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,Ir(t),[`asc`])}var Kr=e=>e.legend.settings,qr=e=>e.legend.size;V([e=>e.legend.payload,Kr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Gr(r,n):r});function Jr(e,t){return $r(e)||Qr(e,t)||Xr(e,t)||Yr()}function Yr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{$ as e,D as t,Q as n,Z as r,et as i,j as a}from"./preload-helper-Dscj_TcA.js";import{d as o}from"./index-Bfb2UOzB.js";var s=i(r()),c=o();function l(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=l(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function u(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=l(e))&&(r&&(r+=` `),r+=t);return r}var d=t(),f=`dangerouslySetInnerHTML.onCopy.onCopyCapture.onCut.onCutCapture.onPaste.onPasteCapture.onCompositionEnd.onCompositionEndCapture.onCompositionStart.onCompositionStartCapture.onCompositionUpdate.onCompositionUpdateCapture.onFocus.onFocusCapture.onBlur.onBlurCapture.onChange.onChangeCapture.onBeforeInput.onBeforeInputCapture.onInput.onInputCapture.onReset.onResetCapture.onSubmit.onSubmitCapture.onInvalid.onInvalidCapture.onLoad.onLoadCapture.onError.onErrorCapture.onKeyDown.onKeyDownCapture.onKeyPress.onKeyPressCapture.onKeyUp.onKeyUpCapture.onAbort.onAbortCapture.onCanPlay.onCanPlayCapture.onCanPlayThrough.onCanPlayThroughCapture.onDurationChange.onDurationChangeCapture.onEmptied.onEmptiedCapture.onEncrypted.onEncryptedCapture.onEnded.onEndedCapture.onLoadedData.onLoadedDataCapture.onLoadedMetadata.onLoadedMetadataCapture.onLoadStart.onLoadStartCapture.onPause.onPauseCapture.onPlay.onPlayCapture.onPlaying.onPlayingCapture.onProgress.onProgressCapture.onRateChange.onRateChangeCapture.onSeeked.onSeekedCapture.onSeeking.onSeekingCapture.onStalled.onStalledCapture.onSuspend.onSuspendCapture.onTimeUpdate.onTimeUpdateCapture.onVolumeChange.onVolumeChangeCapture.onWaiting.onWaitingCapture.onAuxClick.onAuxClickCapture.onClick.onClickCapture.onContextMenu.onContextMenuCapture.onDoubleClick.onDoubleClickCapture.onDrag.onDragCapture.onDragEnd.onDragEndCapture.onDragEnter.onDragEnterCapture.onDragExit.onDragExitCapture.onDragLeave.onDragLeaveCapture.onDragOver.onDragOverCapture.onDragStart.onDragStartCapture.onDrop.onDropCapture.onMouseDown.onMouseDownCapture.onMouseEnter.onMouseLeave.onMouseMove.onMouseMoveCapture.onMouseOut.onMouseOutCapture.onMouseOver.onMouseOverCapture.onMouseUp.onMouseUpCapture.onSelect.onSelectCapture.onTouchCancel.onTouchCancelCapture.onTouchEnd.onTouchEndCapture.onTouchMove.onTouchMoveCapture.onTouchStart.onTouchStartCapture.onPointerDown.onPointerDownCapture.onPointerMove.onPointerMoveCapture.onPointerUp.onPointerUpCapture.onPointerCancel.onPointerCancelCapture.onPointerEnter.onPointerEnterCapture.onPointerLeave.onPointerLeaveCapture.onPointerOver.onPointerOverCapture.onPointerOut.onPointerOutCapture.onGotPointerCapture.onGotPointerCaptureCapture.onLostPointerCapture.onLostPointerCaptureCapture.onScroll.onScrollCapture.onWheel.onWheelCapture.onAnimationStart.onAnimationStartCapture.onAnimationEnd.onAnimationEndCapture.onAnimationIteration.onAnimationIterationCapture.onTransitionEnd.onTransitionEndCapture`.split(`.`);function p(e){return typeof e==`string`&&f.includes(e)}var m=new Set(`aria-activedescendant.aria-atomic.aria-autocomplete.aria-busy.aria-checked.aria-colcount.aria-colindex.aria-colspan.aria-controls.aria-current.aria-describedby.aria-details.aria-disabled.aria-errormessage.aria-expanded.aria-flowto.aria-haspopup.aria-hidden.aria-invalid.aria-keyshortcuts.aria-label.aria-labelledby.aria-level.aria-live.aria-modal.aria-multiline.aria-multiselectable.aria-orientation.aria-owns.aria-placeholder.aria-posinset.aria-pressed.aria-readonly.aria-relevant.aria-required.aria-roledescription.aria-rowcount.aria-rowindex.aria-rowspan.aria-selected.aria-setsize.aria-sort.aria-valuemax.aria-valuemin.aria-valuenow.aria-valuetext.className.color.height.id.lang.max.media.method.min.name.style.target.width.role.tabIndex.accentHeight.accumulate.additive.alignmentBaseline.allowReorder.alphabetic.amplitude.arabicForm.ascent.attributeName.attributeType.autoReverse.azimuth.baseFrequency.baselineShift.baseProfile.bbox.begin.bias.by.calcMode.capHeight.clip.clipPath.clipPathUnits.clipRule.colorInterpolation.colorInterpolationFilters.colorProfile.colorRendering.contentScriptType.contentStyleType.cursor.cx.cy.d.decelerate.descent.diffuseConstant.direction.display.divisor.dominantBaseline.dur.dx.dy.edgeMode.elevation.enableBackground.end.exponent.externalResourcesRequired.fill.fillOpacity.fillRule.filter.filterRes.filterUnits.floodColor.floodOpacity.focusable.fontFamily.fontSize.fontSizeAdjust.fontStretch.fontStyle.fontVariant.fontWeight.format.from.fx.fy.g1.g2.glyphName.glyphOrientationHorizontal.glyphOrientationVertical.glyphRef.gradientTransform.gradientUnits.hanging.horizAdvX.horizOriginX.href.ideographic.imageRendering.in2.in.intercept.k1.k2.k3.k4.k.kernelMatrix.kernelUnitLength.kerning.keyPoints.keySplines.keyTimes.lengthAdjust.letterSpacing.lightingColor.limitingConeAngle.local.markerEnd.markerHeight.markerMid.markerStart.markerUnits.markerWidth.mask.maskContentUnits.maskUnits.mathematical.mode.numOctaves.offset.opacity.operator.order.orient.orientation.origin.overflow.overlinePosition.overlineThickness.paintOrder.panose1.pathLength.patternContentUnits.patternTransform.patternUnits.pointerEvents.pointsAtX.pointsAtY.pointsAtZ.preserveAlpha.preserveAspectRatio.primitiveUnits.r.radius.refX.refY.renderingIntent.repeatCount.repeatDur.requiredExtensions.requiredFeatures.restart.result.rotate.rx.ry.seed.shapeRendering.slope.spacing.specularConstant.specularExponent.speed.spreadMethod.startOffset.stdDeviation.stemh.stemv.stitchTiles.stopColor.stopOpacity.strikethroughPosition.strikethroughThickness.string.stroke.strokeDasharray.strokeDashoffset.strokeLinecap.strokeLinejoin.strokeMiterlimit.strokeOpacity.strokeWidth.surfaceScale.systemLanguage.tableValues.targetX.targetY.textAnchor.textDecoration.textLength.textRendering.to.transform.u1.u2.underlinePosition.underlineThickness.unicode.unicodeBidi.unicodeRange.unitsPerEm.vAlphabetic.values.vectorEffect.version.vertAdvY.vertOriginX.vertOriginY.vHanging.vIdeographic.viewTarget.visibility.vMathematical.widths.wordSpacing.writingMode.x1.x2.x.xChannelSelector.xHeight.xlinkActuate.xlinkArcrole.xlinkHref.xlinkRole.xlinkShow.xlinkTitle.xlinkType.xmlBase.xmlLang.xmlns.xmlnsXlink.xmlSpace.y1.y2.y.yChannelSelector.z.zoomAndPan.ref.key.angle`.split(`.`));function h(e){return typeof e==`string`&&m.has(e)}function g(e){return typeof e==`string`&&e.startsWith(`data-`)}function _(e){if(typeof e!=`object`||!e)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(h(n)||g(n))&&(t[n]=e[n]);return t}function v(e){if(e==null)return null;if((0,s.isValidElement)(e)&&typeof e.props==`object`&&e.props!==null){var t=e.props;return _(t)}return typeof e==`object`&&!Array.isArray(e)?_(e):null}function y(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(h(n)||g(n)||p(n))&&(t[n]=e[n]);return t}function b(e){return e==null?null:(0,s.isValidElement)(e)?y(e.props):typeof e==`object`&&!Array.isArray(e)?y(e):null}var x=[`children`,`width`,`height`,`viewBox`,`className`,`style`,`title`,`desc`];function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(null,arguments)}function C(e,t){if(e==null)return{};var n,r,i=w(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function w(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var T=(0,s.forwardRef)((e,t)=>{var n=e.children,r=e.width,i=e.height,a=e.viewBox,o=e.className,c=e.style,l=e.title,d=e.desc,f=C(e,x),p=a||{width:r,height:i,x:0,y:0},m=u(`recharts-surface`,o);return s.createElement(`svg`,S({},y(f),{className:m,width:r,height:i,style:c,viewBox:`${p.x} ${p.y} ${p.width} ${p.height}`,ref:t}),s.createElement(`title`,null,l),s.createElement(`desc`,null,d),n)}),E=[`children`,`className`];function D(){return D=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D.apply(null,arguments)}function O(e,t){if(e==null)return{};var n,r,i=k(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function k(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var A=s.forwardRef((e,t)=>{var n=e.children,r=e.className,i=O(e,E),a=u(`recharts-layer`,r);return s.createElement(`g`,D({className:a},y(i),{ref:t}),n)});function j(e){return e===`__proto__`}var M=Object.prototype.hasOwnProperty;function N(e,t){return M.call(e,t)}var ee=/\.|(\[(?:[^[\]]*|(["'])(?:(?!\2)[^\\]|\\.)*?\2)\])/;function te(e){switch(typeof e){case`number`:case`symbol`:return!1;case`string`:return e===``||e.startsWith(`.`)||e.endsWith(`.`)?!1:ee.test(e);default:return!1}}function ne(e){var t;return typeof e==`string`||typeof e==`symbol`?e:Object.is(e==null||(t=e.valueOf)==null?void 0:t.call(e),-0)?`-0`:String(e)}function re(e){return typeof e==`symbol`||e instanceof Symbol}function ie(e){if(typeof e==`string`)return e;if(Array.isArray(e)){let t=``;for(let n=0;n<e.length;n++)n>0&&(t+=`,`),t+=ie(e[n]);return t}if(re(e))return e.toString();let t=e+``;return t===`0`&&Object.is(Number(e),-0)?`-0`:t}function ae(e){return e==null?``:ie(e)}function oe(e){if(Array.isArray(e))return e.map(ne);if(typeof e==`symbol`)return[e];e=ae(e);let t=[],n=e.length;if(n===0)return t;let r=0,i=``,a=``,o=!1,s=!1,c=/^-?\d+(?:\.\d+)?$/;for(e.charCodeAt(0)===46&&t.push(``);r<n;){let l=e[r];if(a)l===`\\`&&r+1<n?(r++,i+=e[r]):l===a?a=``:i+=l;else if(o){if(l===`"`||l===`'`)a=l,s=!0;else if(l===`]`){if(o=!1,!s&&i.includes(`.`)&&!c.test(i)){let e=i.split(`.`);for(let n=0;n<e.length;n++)e[n]!==``&&t.push(e[n])}else t.push(i);i=``}else i+=l}else if(l===`[`)o=!0,s=!1,i&&=(t.push(i),``);else if(l===`.`){i&&=(t.push(i),``);let n=e[r+1];(n===void 0||n===`.`)&&t.push(``)}else i+=l;r++}return i&&t.push(i),t}function se(e,t,n){if(e==null)return n;switch(typeof t){case`string`:{if(j(t))return n;let r=e[t];return r===void 0?te(t)&&!N(e,t)?se(e,oe(t),n):n:r}case`number`:case`symbol`:{typeof t==`number`&&(t=ne(t));let r=e[t];return r===void 0?n:r}default:{if(Array.isArray(t))return ce(e,t,n);if(t=Object.is(t?.valueOf(),-0)?`-0`:String(t),j(t))return n;let r=e[t];return r===void 0?n:r}}}function ce(e,t,n){if(t.length===0)return n;let r=e;for(let e=0;e<t.length;e++){if(r==null||j(t[e]))return n;r=r[t[e]]}return r===void 0?n:r}var le=4;function ue(e){var t=10**(arguments.length>1&&arguments[1]!==void 0?arguments[1]:le),n=Math.round(e*t)/t;return Object.is(n,-0)?0:n}function P(e){var t=[...arguments].slice(1);return e.reduce((e,n,r)=>{var i=t[r-1];return typeof i==`string`?e+i+n:i===void 0?e+n:e+ue(i)+n},``)}var de=e=>e===0?0:e>0?1:-1,fe=e=>typeof e==`number`&&e!=+e,pe=e=>typeof e==`string`&&e.length>1&&e.indexOf(`%`)===e.length-1,F=e=>(typeof e==`number`||e instanceof Number)&&!fe(e),me=e=>F(e)||typeof e==`string`,he=0,ge=e=>{var t=++he;return`${e||``}${t}`},_e=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0&&arguments[3];if(!F(e)&&typeof e!=`string`)return n;var i;if(pe(e)){if(t==null)return n;var a=e.indexOf(`%`);i=t*parseFloat(e.slice(0,a))/100}else i=+e;return fe(i)&&(i=n),r&&t!=null&&i>t&&(i=t),i},ve=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function I(e,t,n){return F(e)&&F(t)?ue(e+n*(t-e)):t}function ye(e,t,n){if(e&&e.length)return e.find(e=>e&&(typeof t==`function`?t(e):se(e,t))===n)}var L=e=>e==null,be=e=>L(e)?e:`${e.charAt(0).toUpperCase()}${e.slice(1)}`;function xe(e){return e!=null}function Se(){}function Ce(e){if(e)return{x:e.x,y:e.y,upperWidth:`upperWidth`in e?e.upperWidth:e.width,lowerWidth:`lowerWidth`in e?e.lowerWidth:e.width,width:e.width,height:e.height}}function we(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Te(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?we(Object(n),!0).forEach(function(t){Ee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):we(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ee(e,t,n){return(t=De(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function De(e){var t=Oe(e,`string`);return typeof t==`symbol`?t:t+``}function Oe(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var ke=e=>{var t=e.viewBox,n=e.position,r=e.offset,i=r===void 0?0:r,a=e.parentViewBox,o=e.clamp,s=Ce(t),c=s.x,l=s.y,u=s.height,d=s.upperWidth,f=s.lowerWidth,p=c,m=c+(d-f)/2,h=(p+m)/2,g=(d+f)/2,_=p+d/2,v=u>=0?1:-1,y=v*i,b=v>0?`end`:`start`,x=v>0?`start`:`end`,S=d>=0?1:-1,C=S*i,w=S>0?`end`:`start`,T=S>0?`start`:`end`,E=a;if(n===`top`){var D={x:p+d/2,y:l-y,horizontalAnchor:`middle`,verticalAnchor:b};return o&&E&&(D.height=Math.max(l-E.y,0),D.width=d),D}if(n===`bottom`){var O={x:m+f/2,y:l+u+y,horizontalAnchor:`middle`,verticalAnchor:x};return o&&E&&(O.height=Math.max(E.y+E.height-(l+u),0),O.width=f),O}if(n===`left`){var k={x:h-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`};return o&&E&&(k.width=Math.max(k.x-E.x,0),k.height=u),k}if(n===`right`){var A={x:h+g+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`};return o&&E&&(A.width=Math.max(E.x+E.width-A.x,0),A.height=u),A}var j=o&&E?{width:g,height:u}:{};return n===`insideLeft`?Te({x:h+C,y:l+u/2,horizontalAnchor:T,verticalAnchor:`middle`},j):n===`insideRight`?Te({x:h+g-C,y:l+u/2,horizontalAnchor:w,verticalAnchor:`middle`},j):n===`insideTop`?Te({x:p+d/2,y:l+y,horizontalAnchor:`middle`,verticalAnchor:x},j):n===`insideBottom`?Te({x:m+f/2,y:l+u-y,horizontalAnchor:`middle`,verticalAnchor:b},j):n===`insideTopLeft`?Te({x:p+C,y:l+y,horizontalAnchor:T,verticalAnchor:x},j):n===`insideTopRight`?Te({x:p+d-C,y:l+y,horizontalAnchor:w,verticalAnchor:x},j):n===`insideBottomLeft`?Te({x:m+C,y:l+u-y,horizontalAnchor:T,verticalAnchor:b},j):n===`insideBottomRight`?Te({x:m+f-C,y:l+u-y,horizontalAnchor:w,verticalAnchor:b},j):n&&typeof n==`object`&&(F(n.x)||pe(n.x))&&(F(n.y)||pe(n.y))?Te({x:c+_e(n.x,g),y:l+_e(n.y,u),horizontalAnchor:`end`,verticalAnchor:`end`},j):Te({x:_,y:l+u/2,horizontalAnchor:`middle`,verticalAnchor:`middle`},j)},Ae=[`top`,`left`,`right`,`bottom`];function je(e){return e==null?!1:typeof e==`object`||Ae.includes(e)}var Me=(0,s.createContext)(null),Ne=Math.PI,Pe=2*Ne,Fe=1e-6,Ie=Pe-Fe;function Le(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Re(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Le;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function ze(e,t,n,r){return e===n&&t===r}function Be(e){let t=Math.floor(e);if(!(t<=15))return ze;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var Ve=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Le:Re(e),this._equal=e==null?ze:Be(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Fe){if(!(Math.abs(u*s-c*l)>Fe)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((Ne-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Fe&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Fe||Math.abs(this._y1-l)>Fe)&&this._append`L${c},${l}`,n){if(d<0&&(d=d%Pe+Pe),d>Ie)this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`;else if(d>Fe){let a=e+n*Math.cos(i),o=t+n*Math.sin(i);if(d>=Ne&&this._equal(c,l,a,o)){d/=2;let i=r+d;this._append`A${n},${n},0,${+(d>=Ne)},${u},${e+n*Math.cos(i)},${t+n*Math.sin(i)}`}this._append`A${n},${n},0,${+(d>=Ne)},${u},${this._x1=a},${this._y1=o}`}}}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};Ve.prototype;function R(e){return function(){return e}}var He=Math.cos,Ue=Math.sin,We=Math.sqrt,Ge=1e-12,Ke=Math.PI;Ke/2;var qe=2*Ke;function Je(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ve(t)}Array.prototype.slice;function Ye(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function Xe(e){this._context=e}Xe.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)}}};function Ze(e){return new Xe(e)}function Qe(e){return e[0]}function $e(e){return e[1]}function et(e,t){var n=R(!0),r=null,i=Ze,a=null,o=Je(s);e=typeof e==`function`?e:e===void 0?Qe:R(e),t=typeof t==`function`?t:t===void 0?$e:R(t);function s(s){var c,l=(s=Ye(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:R(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}function tt(e,t,n){var r=null,i=R(!0),a=null,o=Ze,s=null,c=Je(l);e=typeof e==`function`?e:e===void 0?Qe:R(+e),t=typeof t==`function`?t:R(t===void 0?0:+t),n=typeof n==`function`?n:n===void 0?$e:R(+n);function l(l){var u,d,f,p=(l=Ye(l)).length,m,h=!1,g,_=Array(p),v=Array(p);for(a??(s=o(g=c())),u=0;u<=p;++u){if(!(u<p&&i(m=l[u],u,l))===h){if(h=!h)d=u,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=u-1;f>=d;--f)s.point(_[f],v[f]);s.lineEnd(),s.areaEnd()}}h&&(_[u]=+e(m,u,l),v[u]=+t(m,u,l),s.point(r?+r(m,u,l):_[u],n?+n(m,u,l):v[u]))}if(g)return s=null,g+``||null}function u(){return et().defined(i).curve(o).context(a)}return l.x=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),r=null,l):e},l.x0=function(t){return arguments.length?(e=typeof t==`function`?t:R(+t),l):e},l.x1=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:R(+e),l):r},l.y=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),n=null,l):t},l.y0=function(e){return arguments.length?(t=typeof e==`function`?e:R(+e),l):t},l.y1=function(e){return arguments.length?(n=e==null?null:typeof e==`function`?e:R(+e),l):n},l.lineX0=l.lineY0=function(){return u().x(e).y(t)},l.lineY1=function(){return u().x(e).y(n)},l.lineX1=function(){return u().x(r).y(t)},l.defined=function(e){return arguments.length?(i=typeof e==`function`?e:R(!!e),l):i},l.curve=function(e){return arguments.length?(o=e,a!=null&&(s=o(a)),l):o},l.context=function(e){return arguments.length?(e==null?a=s=null:s=o(a=e),l):a},l}rt(Ze);function nt(e){this._curve=e}nt.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function rt(e){function t(t){return new nt(e(t))}return t._curve=e,t}var it=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}};function at(e){return new it(e,!0)}function ot(e){return new it(e,!1)}We(3),We(1/3)*2;var st=Ue(Ke/10)/Ue(7*Ke/10);Ue(qe/10)*st,-He(qe/10)*st,We(3),We(3),We(3)/2,(1/We(12)/2+1)*3;function ct(){}function lt(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function ut(e){this._context=e}ut.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:lt(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(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:lt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dt(e){return new ut(e)}function ft(e){this._context=e}ft.prototype={areaStart:ct,areaEnd:ct,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)}},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:lt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pt(e){return new ft(e)}function mt(e){this._context=e}mt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:lt(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ht(e){return new mt(e)}function gt(e,t){this._basis=new ut(e),this._beta=t}gt.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},(function e(t){function n(e){return t===1?new ut(e):new gt(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function _t(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function vt(e,t){this._context=e,this._k=(1-t)/6}vt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:_t(this,this._x1,this._y1)}(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,this._x1=e,this._y1=t;break;case 2:this._point=3;default:_t(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new vt(e,t)}return n.tension=function(t){return e(+t)},n})(0);function yt(e,t){this._context=e,this._k=(1-t)/6}yt.prototype={areaStart:ct,areaEnd:ct,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:_t(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new yt(e,t)}return n.tension=function(t){return e(+t)},n})(0);function bt(e,t){this._context=e,this._k=(1-t)/6}bt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=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,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:_t(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new bt(e,t)}return n.tension=function(t){return e(+t)},n})(0);function xt(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Ge){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>Ge){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function St(e,t){this._context=e,this._alpha=t}St.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}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;default:xt(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new St(e,t):new vt(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Ct(e,t){this._context=e,this._alpha=t}Ct.prototype={areaStart:ct,areaEnd:ct,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:xt(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new Ct(e,t):new yt(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function wt(e,t){this._context=e,this._alpha=t}wt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=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){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:xt(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new wt(e,t):new bt(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function Tt(e){this._context=e}Tt.prototype={areaStart:ct,areaEnd:ct,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 Et(e){return new Tt(e)}function Dt(e){return e<0?-1:1}function Ot(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(Dt(a)+Dt(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function kt(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function At(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function jt(e){this._context=e}jt.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:At(this,this._t0,kt(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,At(this,kt(this,n=Ot(this,e,t)),n);break;default:At(this,this._t0,n=Ot(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function Mt(e){this._context=new Nt(e)}(Mt.prototype=Object.create(jt.prototype)).point=function(e,t){jt.prototype.point.call(this,t,e)};function Nt(e){this._context=e}Nt.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Pt(e){return new jt(e)}function Ft(e){return new Mt(e)}function It(e){this._context=e}It.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Lt(e),i=Lt(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Lt(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Rt(e){return new It(e)}function zt(e,t){this._context=e,this._t=t}zt.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};function Bt(e){return new zt(e,.5)}function Vt(e){return new zt(e,0)}function Ht(e){return new zt(e,1)}function Ut(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Wt(e){for(var t=e.length,n=Array(t);--t>=0;)n[t]=t;return n}function Gt(e,t){return e[t]}function Kt(e){let t=[];return t.key=e,t}function qt(){var e=R([]),t=Wt,n=Ut,r=Gt;function i(i){var a=Array.from(e.apply(this,arguments),Kt),o,s=a.length,c=-1,l;for(let e of i)for(o=0,++c;o<s;++o)(a[o][c]=[0,+r(e,a[o].key,c,i)]).data=e;for(o=0,l=Ye(t(a));o<s;++o)a[l[o]].index=o;return n(a,l),a}return i.keys=function(t){return arguments.length?(e=typeof t==`function`?t:R(Array.from(t)),i):e},i.value=function(e){return arguments.length?(r=typeof e==`function`?e:R(+e),i):r},i.order=function(e){return arguments.length?(t=e==null?Wt:typeof e==`function`?e:R(Array.from(e)),i):t},i.offset=function(e){return arguments.length?(n=e??Ut,i):n},i}function Jt(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}Ut(e,t)}}function Yt(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o)s+=e[o][n][1]||0;r[n][1]+=r[n][0]=-s/2}Ut(e,t)}}function Xt(e,t){if((o=e.length)>0&&(a=(i=e[t[0]]).length)>0){for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,c=0,l=0;s<o;++s){for(var u=e[t[s]],d=u[r][1]||0,f=(d-(u[r-1][1]||0))/2,p=0;p<s;++p){var m=e[t[p]],h=m[r][1]||0,g=m[r-1][1]||0;f+=h-g}c+=d,l+=f*d}i[r-1][1]+=i[r-1][0]=n,c&&(n-=l/c)}i[r-1][1]+=i[r-1][0]=n,Ut(e,t)}}var Zt=e=>`radius`in e&&`startAngle`in e&&`endAngle`in e,Qt=(e,t)=>{if(!e||typeof e==`function`||typeof e==`boolean`)return null;var n=e;if((0,s.isValidElement)(e)&&(n=e.props),typeof n!=`object`&&typeof n!=`function`)return null;var r={};return Object.keys(n).forEach(e=>{p(e)&&typeof n[e]==`function`&&(r[e]=t||(t=>n[e](n,t)))}),r},$t=(e,t,n)=>r=>(e(t,n,r),null),en=(e,t,n)=>{if(e===null||typeof e!=`object`&&typeof e!=`function`)return null;var r=null;return Object.keys(e).forEach(i=>{var a=e[i];p(i)&&typeof a==`function`&&(r||={},r[i]=$t(a,t,n))}),r};function tn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tn(Object(n),!0).forEach(function(t){rn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rn(e,t,n){return(t=an(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function an(e){var t=on(e,`string`);return typeof t==`symbol`?t:t+``}function on(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sn(e,t){var n=nn({},e),r=t;return Object.keys(t).reduce((e,t)=>(e[t]===void 0&&r[t]!==void 0&&(e[t]=r[t]),e),n)}function cn(e,t){let n=new Map;for(let r=0;r<e.length;r++){let i=e[r],a=t(i,r,e);n.has(a)||n.set(a,i)}return Array.from(n.values())}function ln(e,t){return function(...n){return e.apply(this,n.slice(0,t))}}function un(e){return e}function dn(e){return Number.isSafeInteger(e)&&e>=0}function fn(e){return e!=null&&typeof e!=`function`&&dn(e.length)}function pn(e){return function(t){return se(t,e)}}function mn(e){return e==null||typeof e!=`object`&&typeof e!=`function`}function hn(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var gn=`[object RegExp]`,_n=`[object String]`,vn=`[object Number]`,yn=`[object Boolean]`,bn=`[object Arguments]`,xn=`[object Symbol]`,Sn=`[object Date]`,Cn=`[object Map]`,wn=`[object Set]`,Tn=`[object Array]`,En=`[object Function]`,Dn=`[object ArrayBuffer]`,On=`[object Object]`,kn=`[object Error]`,An=`[object DataView]`,jn=`[object Uint8Array]`,Mn=`[object Uint8ClampedArray]`,Nn=`[object Uint16Array]`,Pn=`[object Uint32Array]`,Fn=`[object BigUint64Array]`,In=`[object Int8Array]`,Ln=`[object Int16Array]`,Rn=`[object Int32Array]`,zn=`[object BigInt64Array]`,Bn=`[object Float32Array]`,Vn=`[object Float64Array]`;function Hn(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function Un(e){return e!==null&&(typeof e==`object`||typeof e==`function`)}function Wn(e,t,n){return typeof n==`function`?Gn(e,t,function e(t,r,i,a,o,s){let c=n(t,r,i,a,o,s);return c===void 0?Gn(t,r,e,s,!1):!!c},new Map,!0):Wn(e,t,()=>void 0)}function Gn(e,t,n,r,i=!1){if(t===e)return!0;switch(typeof t){case`object`:return Kn(e,t,n,r,i);case`function`:return Object.keys(t).length>0?Gn(e,Object.assign({},t),n,r,i):Hn(e,t);default:return Un(e)&&i?typeof t!=`string`||t===``:Hn(e,t)}}function Kn(e,t,n,r,i=!1){if(t==null)return!0;if(Array.isArray(t))return Jn(e,t,n,r);if(t instanceof Map)return qn(e,t,n,r);if(t instanceof Set)return Yn(e,t,n,r);let a=Object.keys(t);if(e==null)return i&&a.length===0;if(i)mn(e)&&(e=Object(e));else{if(hn(t)===`[object Error]`)return hn(e)===`[object Error]`&&e.name===t.name&&e.message===t.message;let n=hn(e);if(n!==`[object Object]`&&n!==`[object Arguments]`)return!1}if(a.length===0)return!0;if(r?.has(t))return r.get(t)===e;r?.set(t,e);try{for(let i=0;i<a.length;i++){let o=a[i];if(!(o in e)||t[o]===void 0&&e[o]!==void 0||t[o]===null&&e[o]!==null||!n(e[o],t[o],o,e,t,r))return!1}return!0}finally{r?.delete(t)}}function qn(e,t,n,r){if(t.size===0)return!0;if(!(e instanceof Map))return!1;for(let[i,a]of t.entries())if(n(e.get(i),a,i,e,t,r)===!1)return!1;return!0}function Jn(e,t,n,r){if(t.length===0)return!0;if(!Array.isArray(e))return!1;let i=new Set;for(let a=0;a<t.length;a++){let o=t[a],s=!1;for(let c=0;c<e.length;c++){if(i.has(c))continue;let l=e[c],u=!1;if(n(l,o,a,e,t,r)&&(u=!0),u){i.add(c),s=!0;break}}if(!s)return!1}return!0}function Yn(e,t,n,r){return t.size===0||e instanceof Set&&Jn([...e],[...t],n,r)}function Xn(e,t){return Wn(e,t,()=>void 0)}function Zn(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var Qn=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})();function $n(e){return Qn.Buffer!==void 0&&Qn.Buffer.isBuffer(e)}function er(e){return $n(e)}function tr(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function nr(e){return tr(e)}function rr(e,t){return ir(e,void 0,e,new Map,t)}function ir(e,t,n,r,i){if(i!=null){let a=i(e,t,n,r);if(a!==void 0)return a}if(mn(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ir(e[a],a,n,r,i);return N(e,`index`)&&(t.index=e.index),N(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;return r.set(e,t),e.forEach((e,a)=>{t.set(a,ir(e,a,n,r,i))}),t}if(e instanceof Set){let t=new Set;return r.set(e,t),e.forEach(e=>{t.add(ir(e,void 0,n,r,i))}),t}if(er(e))return e.subarray();if(nr(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=ir(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),ar(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),ar(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),ar(t,e,n,r,i),t}let a=hn(e);if(a===`[object Error]`)return e===n?{}:e;switch(a){case vn:case _n:case yn:{let t=new e.constructor(e.valueOf());return r.set(e,t),ar(t,e,n,r,i),t}case bn:{let t={};return r.set(e,t),ar(t,e,n,r,i),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}}if(typeof e==`object`&&or(a)){let t=a===`[object Object]`&&typeof e.constructor!=`function`?{}:Object.create(Object.getPrototypeOf(e));return r.set(e,t),ar(t,e,n,r,i),t}return e}function ar(e,t,n,r,i){let a=[...Object.keys(t),...Zn(t)];for(let o=0;o<a.length;o++){let s=a[o],c=Object.getOwnPropertyDescriptor(e,s);(c==null||c.writable)&&(e[s]=ir(t[s],s,n,r,i))}}function or(e){switch(e){case bn:case Tn:case Dn:case An:case yn:case Sn:case Bn:case Vn:case In:case Ln:case Rn:case Cn:case vn:case On:case gn:case wn:case _n:case xn:case jn:case Mn:case Nn:case Pn:return!0;default:return!1}}function sr(e){return rr(e)}function cr(e){return e=sr(e),t=>Xn(t,e)}var lr=/^(?:0|[1-9]\d*)$/;function ur(e,t=2**53-1){switch(typeof e){case`number`:return Number.isInteger(e)&&e>=0&&e<t;case`symbol`:return!1;case`string`:return lr.test(e)}}function dr(e){return typeof e==`object`&&!!e&&hn(e)===`[object Arguments]`}function fr(e,t){let n;if(n=Array.isArray(t)?t:typeof t==`string`&&te(t)&&!(t in Object(e))?oe(t):[t],n.length===0)return!1;let r=e;for(let e=0;e<n.length;e++){let t=ne(n[e]);if((r==null||!N(r,t))&&!((Array.isArray(r)||dr(r))&&ur(t)&&Number(t)<r.length))return!1;r=r[t]}return!0}function pr(e,t){switch(typeof e){case`object`:Object.is(e?.valueOf(),-0)&&(e=`-0`);break;case`number`:e=ne(e)}return t=sr(t),function(n){let r=se(n,e);return r===void 0?fr(n,e):t===void 0?r===void 0:Xn(r,t)}}function mr(e){if(e==null)return un;switch(typeof e){case`function`:return e;case`object`:return Array.isArray(e)&&e.length===2?pr(e[0],e[1]):cr(e);default:return pn(e)}}function hr(e){return e===0?0:e}function gr(e,t=un){return fn(e)?cn(Array.from(e),ln(mr(t),1)).map(hr):[]}function _r(e,t,n){return t===!0?gr(e,n):typeof t==`function`?gr(e,t):e}var vr=(0,s.createContext)(null),yr=e=>e,z=()=>{var e=(0,s.useContext)(vr);return e?e.store.dispatch:yr},br=()=>{},xr=()=>br,Sr=(e,t)=>e===t;function B(e){var t=(0,s.useContext)(vr),n=(0,s.useMemo)(()=>t?t=>{if(t!=null)return e(t)}:br,[t,e]);return(0,d.useSyncExternalStoreWithSelector)(t?t.subscription.addNestedSub:xr,t?t.store.getState:br,t?t.store.getState:br,n,Sr)}function Cr(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function wr(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var Tr=e=>Array.isArray(e)?e:[e];function Er(e){let t=Array.isArray(e[0])?e[0]:e;return wr(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function Dr(e,t){let n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var Or=class{constructor(e){this.value=e}deref(){return this.value}},kr=typeof WeakRef>`u`?Or:WeakRef,Ar=0,jr=1;function Mr(){return{s:Ar,v:void 0,o:null,p:null}}function Nr(e){return e instanceof kr?e.deref():e}function Pr(e,t={}){let n=Mr(),{resultEqualityCheck:r}=t,i,a=0;function o(){let t=n,{length:o}=arguments;for(let e=0,n=o;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Mr(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Mr(),e.set(n,t)):t=r}}let s=t,c;if(t.s===jr)c=t.v;else if(c=e.apply(null,arguments),a++,r){let e=Nr(i);e!=null&&r(e,c)&&(c=e,a!==0&&a--),i=typeof c==`object`&&c||typeof c==`function`?new kr(c):c}return s.s=jr,s.v=c,c}return o.clearCache=()=>{n=Mr(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Fr(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Cr(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Pr,argsMemoizeOptions:u=[]}={...n,...a},d=Tr(c),f=Tr(u),p=Er(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=Dr(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var V=Fr(Pr);function Ir(e,t=1){let n=[],r=Math.floor(t),i=(e,t)=>{for(let a=0;a<e.length;a++){let o=e[a];Array.isArray(o)&&t<r?i(o,t+1):n.push(o)}};return i(e,0),n}function Lr(e,t,n){return Un(n)&&(typeof t==`number`&&fn(n)&&ur(t)&&t<n.length||typeof t==`string`&&t in n)?Hn(n[t],e):!1}function Rr(e){let t=Object.keys(e),n=Array(t.length);for(let r=0;r<t.length;r++)n[r]=e[t[r]];return n}function zr(e){return typeof e==`symbol`?1:e===null?2:e===void 0?3:e===e?0:4}var Br=(e,t,n)=>{if(e!==t){let r=zr(e),i=zr(t);if(r===i&&r===0){if(e<t)return n===`desc`?1:-1;if(e>t)return n===`desc`?-1:1}return n===`desc`?i-r:r-i}return 0},Vr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Hr=/^\w*$/;function Ur(e,t){return Array.isArray(e)?!1:typeof e==`number`||typeof e==`boolean`||e==null||re(e)?!0:typeof e==`string`&&(Hr.test(e)||!Vr.test(e))||t!=null&&N(t,e)}function Wr(e,t,n,r){if(e==null)return[];n=r?void 0:n,Array.isArray(e)||(e=fn(e)?Array.from(e):Rr(e)),Array.isArray(t)||(t=t==null?[null]:[t]),t.length===0&&(t=[null]),Array.isArray(n)||(n=n==null?[]:[n]),n=n.map(e=>String(e));let i=(e,t)=>{let n=e,r=0;for(;r<t.length&&n!=null;++r)n=n[t[r]];return r>0&&r===t.length?n:void 0},a=(e,t)=>{if(e==null)return t;if(t!=null)return typeof e==`object`&&`key`in e?N(t,e.key)?t[e.key]:i(t,e.path):typeof e==`function`?e(t):Array.isArray(e)?i(t,e):t[e]},o=t.map(e=>(Array.isArray(e)&&e.length===1&&(e=e[0]),e==null||typeof e==`function`||Array.isArray(e)||Ur(e)?e:{key:e,path:oe(e)}));return e.map(e=>({original:e,criteria:o.map(t=>a(t,e))})).slice().sort((e,t)=>{for(let r=0;r<o.length;r++){let i=Br(e.criteria[r],t.criteria[r],n[r]);if(i!==0)return i}return 0}).map(e=>e.original)}function Gr(e,...t){let n=t.length;return n>1&&Lr(e,t[0],t[1])?t=[]:n>2&&Lr(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,Ir(t),[`asc`])}var Kr=e=>e.legend.settings,qr=e=>e.legend.size;V([e=>e.legend.payload,Kr],(e,t)=>{var n=t.itemSorter,r=e.flat(1);return n?Gr(r,n):r});function Jr(e,t){return $r(e)||Qr(e,t)||Xr(e,t)||Yr()}function Yr(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xr(e,t){if(e){if(typeof e==`string`)return Zr(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Zr(e,t):void 0}}function Zr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Qr(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function $r(e){if(Array.isArray(e))return e}var ei=1;function ti(e,t){return Math.abs(e.height-t.height)>ei||Math.abs(e.left-t.left)>ei||Math.abs(e.top-t.top)>ei||Math.abs(e.width-t.width)>ei}function ni(e){var t=e.getBoundingClientRect();return{height:t.height,left:t.left,top:t.top,width:t.width}}function ri(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=Jr((0,s.useState)({height:0,left:0,top:0,width:0}),2),n=t[0],r=t[1],i=(0,s.useRef)(null),a=(0,s.useRef)(n);a.current=n;var o=(0,s.useCallback)(e=>{if(i.current!=null&&(i.current.disconnect(),i.current=null),e!=null){var t=ni(e);if(ti(t,a.current)&&r(t),typeof ResizeObserver<`u`){var n=new ResizeObserver(()=>{var t=ni(e);ti(t,a.current)&&r(t)});n.observe(e),i.current=n}}},[...e]);return(0,s.useEffect)(()=>()=>{var e;(e=i.current)==null||e.disconnect()},[]),[n,o]}function ii(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var ai=typeof Symbol==`function`&&Symbol.observable||`@@observable`,oi=()=>Math.random().toString(36).substring(7).split(``).join(`.`),si={INIT:`@@redux/INIT${oi()}`,REPLACE:`@@redux/REPLACE${oi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${oi()}`};function ci(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function li(e,t,n){if(typeof e!=`function`)throw Error(ii(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ii(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ii(1));return n(li)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ii(3));return i}function d(e){if(typeof e!=`function`)throw Error(ii(4));if(c)throw Error(ii(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ii(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!ci(e))throw Error(ii(7));if(e.type===void 0)throw Error(ii(8));if(typeof e.type!=`string`)throw Error(ii(17));if(c)throw Error(ii(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ii(10));r=e,f({type:si.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ii(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ai](){return this}}}return f({type:si.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ai]:m}}function ui(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:si.INIT})===void 0)throw Error(ii(12));if(n(void 0,{type:si.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ii(13))})}function di(e){let t=Object.keys(e),n={};for(let r=0;r<t.length;r++){let i=t[r];typeof e[i]==`function`&&(n[i]=e[i])}let r=Object.keys(n),i;try{ui(n)}catch(e){i=e}return function(e={},t){if(i)throw i;let a=!1,o={};for(let i=0;i<r.length;i++){let s=r[i],c=n[s],l=e[s],u=c(l,t);if(u===void 0)throw t&&t.type,Error(ii(14));o[s]=u,a||=u!==l}return a||=r.length!==Object.keys(e).length,a?o:e}}function fi(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function pi(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ii(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=fi(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function mi(e){return ci(e)&&`type`in e&&typeof e.type==`string`}var hi=Symbol.for(`immer-nothing`),gi=Symbol.for(`immer-draftable`),_i=Symbol.for(`immer-state`);function vi(e,...t){throw Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var yi=Object,bi=yi.getPrototypeOf,xi=`constructor`,Si=`prototype`,Ci=`configurable`,wi=`enumerable`,Ti=`writable`,Ei=`value`,Di=e=>!!e&&!!e[_i];function Oi(e){return e?ji(e)||Ri(e)||!!e[gi]||!!e[xi]?.[gi]||zi(e)||Bi(e):!1}var ki=yi[Si][xi].toString(),Ai=new WeakMap;function ji(e){if(!e||!Vi(e))return!1;let t=bi(e);if(t===null||t===yi[Si])return!0;let n=yi.hasOwnProperty.call(t,xi)&&t[xi];if(n===Object)return!0;if(!Hi(n))return!1;let r=Ai.get(n);return r===void 0&&(r=Function.toString.call(n),Ai.set(n,r)),r===ki}function Mi(e,t,n=!0){Ni(e)===0?(n?Reflect.ownKeys(e):yi.keys(e)).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Ni(e){let t=e[_i];return t?t.type_:Ri(e)?1:zi(e)?2:Bi(e)?3:0}var Pi=(e,t,n=Ni(e))=>n===2?e.has(t):yi[Si].hasOwnProperty.call(e,t),Fi=(e,t,n=Ni(e))=>n===2?e.get(t):e[t],Ii=(e,t,n,r=Ni(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Li(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var Ri=Array.isArray,zi=e=>e instanceof Map,Bi=e=>e instanceof Set,Vi=e=>typeof e==`object`,Hi=e=>typeof e==`function`,Ui=e=>typeof e==`boolean`;function Wi(e){let t=+e;return Number.isInteger(t)&&String(t)===e}var Gi=e=>e.copy_||e.base_,Ki=e=>e.modified_?e.copy_:e.base_;function qi(e,t){if(zi(e))return new Map(e);if(Bi(e))return new Set(e);if(Ri(e))return Array[Si].slice.call(e);let n=ji(e);if(t===!0||t===`class_only`&&!n){let t=yi.getOwnPropertyDescriptors(e);delete t[_i];let n=Reflect.ownKeys(t);for(let r=0;r<n.length;r++){let i=n[r],a=t[i];a[Ti]===!1&&(a[Ti]=!0,a[Ci]=!0),(a.get||a.set)&&(t[i]={[Ci]:!0,[Ti]:!0,[wi]:a[wi],[Ei]:e[i]})}return yi.create(bi(e),t)}{let t=bi(e);if(t!==null&&n)return{...e};let r=yi.create(t);return yi.assign(r,e)}}function Ji(e,t=!1){return Zi(e)||Di(e)||!Oi(e)||(Ni(e)>1&&yi.defineProperties(e,{set:Xi,add:Xi,clear:Xi,delete:Xi}),yi.freeze(e),t&&Mi(e,(e,t)=>{Ji(t,!0)},!1)),e}function Yi(){vi(2)}var Xi={[Ei]:Yi};function Zi(e){return e===null||!Vi(e)||yi.isFrozen(e)}var Qi=`MapSet`,$i=`Patches`,ea=`ArrayMethods`,ta={};function na(e){let t=ta[e];return t||vi(0,e),t}var ra=e=>!!ta[e],ia,aa=()=>ia,oa=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ra(Qi)?na(Qi):void 0,arrayMethodsPlugin_:ra(ea)?na(ea):void 0});function sa(e,t){t&&(e.patchPlugin_=na($i),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function ca(e){la(e),e.drafts_.forEach(da),e.drafts_=null}function la(e){e===ia&&(ia=e.parent_)}var ua=e=>ia=oa(ia,e);function da(e){let t=e[_i];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function fa(e,t){t.unfinalizedDrafts_=t.drafts_.length;let n=t.drafts_[0];if(e!==void 0&&e!==n){n[_i].modified_&&(ca(t),vi(4)),Oi(e)&&(e=pa(t,e));let{patchPlugin_:r}=t;r&&r.generateReplacementPatches_(n[_i].base_,e,t)}else e=pa(t,n);return ma(t,e,!0),ca(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e===hi?void 0:e}function pa(e,t){if(Zi(t))return t;let n=t[_i];if(!n)return Sa(t,e.handledSet_,e);if(!ga(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){let{callbacks_:t}=n;if(t)for(;t.length>0;)t.pop()(e);ba(n,e)}return n.copy_}function ma(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Ji(t,n)}function ha(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var ga=(e,t)=>e.scope_===t,_a=[];function va(e,t,n,r){let i=Gi(e),a=e.type_;if(r!==void 0&&Fi(i,r,a)===t){Ii(i,r,n,a);return}if(!e.draftLocations_){let t=e.draftLocations_=new Map;Mi(i,(e,n)=>{if(Di(n)){let r=t.get(n)||[];r.push(e),t.set(n,r)}})}let o=e.draftLocations_.get(t)??_a;for(let e of o)Ii(i,e,n,a)}function ya(e,t,n){e.callbacks_.push(function(r){let i=t;if(!i||!ga(i,r))return;r.mapSetPlugin_?.fixSetContents(i);let a=Ki(i);va(e,i.draft_??i,a,n),ba(i,r)})}function ba(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(e.assigned_?.size??0)>0)){let{patchPlugin_:n}=t;if(n){let r=n.getPath(e);r&&n.generatePatches_(e,r,t)}ha(e)}}function xa(e,t,n){let{scope_:r}=e;if(Di(n)){let i=n[_i];ga(i,r)&&i.callbacks_.push(function(){ja(e),va(e,n,Ki(i),t)})}else Oi(n)&&e.callbacks_.push(function(){let i=Gi(e);e.type_===3?i.has(n)&&Sa(n,r.handledSet_,r):Fi(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Sa(Fi(e.copy_,t,e.type_),r.handledSet_,r)})}function Sa(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Di(e)||t.has(e)||!Oi(e)||Zi(e)||(t.add(e),Mi(e,(r,i)=>{if(Di(i)){let t=i[_i];ga(t,n)&&(Ii(e,r,Ki(t),e.type_),ha(t))}else Oi(i)&&Sa(i,t,n)})),e}function Ca(e,t){let n=Ri(e),r={type_:+!!n,scope_:t?t.scope_:aa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},i=r,a=wa;n&&(i=[r],a=Ta);let{revoke:o,proxy:s}=Proxy.revocable(i,a);return r.draft_=s,r.revoke_=o,[s,r]}var wa={get(e,t){if(t===_i)return e;let n=e.scope_.arrayMethodsPlugin_,r=e.type_===1&&typeof t==`string`;if(r&&n?.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);let i=Gi(e);if(!Pi(i,t,e.type_))return Oa(e,i,t);let a=i[t];if(e.finalized_||!Oi(a)||r&&e.operationMethod&&n?.isMutatingArrayMethod(e.operationMethod)&&Wi(t))return a;if(a===Ea(e.base_,t)||Da(e,t,a)){ja(e);let n=e.type_===1?+t:t,r=Na(e.scope_,a,e,n);return e.copy_[n]=r}return a},has(e,t){return t in Gi(e)},ownKeys(e){return Reflect.ownKeys(Gi(e))},set(e,t,n){let r=ka(Gi(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){let r=Ea(Gi(e),t),i=r?.[_i];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.delete(t),!0;if(Li(n,r)&&(n!==void 0||Pi(e.base_,t,e.type_)))return!0;ja(e),Aa(e)}return e.copy_[t]===n&&(n!==void 0||Pi(e.copy_,t,e.type_))||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),xa(e,t,n)),!0},deleteProperty(e,t){return ja(e),Ea(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Aa(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){let n=Gi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Ti]:!0,[Ci]:e.type_!==1||t!==`length`,[wi]:r[wi],[Ei]:n[t]}},defineProperty(){vi(11)},getPrototypeOf(e){return bi(e.base_)},setPrototypeOf(){vi(12)}},Ta={};for(let e in wa){let t=wa[e];Ta[e]=function(){let e=arguments;return e[0]=e[0][0],t.apply(this,e)}}Ta.deleteProperty=function(e,t){return Ta.set.call(this,e,t,void 0)},Ta.set=function(e,t,n){return wa.set.call(this,e[0],t,n,e[0])};function Ea(e,t){let n=e[_i];return(n?Gi(n):e)[t]}function Da(e,t,n){return e.type_!==1||!e.allIndicesReassigned_||!Oi(n)||n[_i]?!1:e.baseRefs_.has(n)}function Oa(e,t,n){let r=ka(t,n);return r?Ei in r?r[Ei]:r.get?.call(e.draft_):void 0}function ka(e,t){if(!(t in e))return;let n=bi(e);for(;n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=bi(n)}}function Aa(e){e.modified_||(e.modified_=!0,e.parent_&&Aa(e.parent_))}function ja(e){e.copy_||=(e.assigned_=new Map,qi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Ma=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,t,n)=>{if(Hi(e)&&!Hi(t)){let n=t;t=e;let r=this;return function(e=n,...i){return r.produce(e,e=>t.call(this,e,...i))}}Hi(t)||vi(6),n!==void 0&&!Hi(n)&&vi(7);let r;if(Oi(e)){let i=ua(this),a=Na(i,e,void 0),o=!0;try{r=t(a),o=!1}finally{o?ca(i):la(i)}return sa(i,n),fa(r,i)}if(!e||!Vi(e)){if(r=t(e),r===void 0&&(r=e),r===hi&&(r=void 0),this.autoFreeze_&&Ji(r,!0),n){let t=[],i=[];na($i).generateReplacementPatches_(e,r,{patches_:t,inversePatches_:i}),n(t,i)}return r}vi(1,e)},this.produceWithPatches=(e,t)=>{if(Hi(e))return(t,...n)=>this.produceWithPatches(t,t=>e(t,...n));let n,r;return[this.produce(e,t,(e,t)=>{n=e,r=t}),n,r]},Ui(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),Ui(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),Ui(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Oi(e)||vi(8),Di(e)&&(e=Pa(e));let t=ua(this),n=Na(t,e,void 0);return n[_i].isManual_=!0,la(t),n}finishDraft(e,t){let n=e&&e[_i];n&&n.isManual_||vi(9);let{scope_:r}=n;return sa(r,t),fa(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){let r=t[n];if(r.path.length===0&&r.op===`replace`){e=r.value;break}}n>-1&&(t=t.slice(n+1));let r=na($i).applyPatches_;return Di(e)?r(e,t):this.produce(e,e=>r(e,t))}};function Na(e,t,n,r){let[i,a]=zi(t)?na(Qi).proxyMap_(t,n):Bi(t)?na(Qi).proxySet_(t,n):Ca(t,n);return(n?.scope_??aa()).drafts_.push(i),a.callbacks_=n?.callbacks_??[],a.key_=r,n&&r!==void 0?ya(n,a,r):a.callbacks_.push(function(e){e.mapSetPlugin_?.fixSetContents(a);let{patchPlugin_:t}=e;a.modified_&&t&&t.generatePatches_(a,[],e)}),i}function Pa(e){return Di(e)||vi(10,e),Fa(e)}function Fa(e){if(!Oi(e)||Zi(e))return e;let t=e[_i],n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=qi(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=qi(e,!0);let i=n;return Bi(n)&&(n=new Set),Mi(i,(e,t)=>{Ii(n,e,Fa(t))},r),t&&(t.finalized_=!1),n}globalThis.Iterator?.from;var Ia=new Ma().produce,H=e=>e;function La(e){return({dispatch:t,getState:n})=>r=>i=>typeof i==`function`?i(t,n,e):r(i)}var Ra=La(),za=La,Ba=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]==`object`?fi:fi.apply(null,arguments)};typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Va(e,t){function n(...n){if(t){let r=t(...n);if(!r)throw Error(Xo(0));return{type:e,payload:r.payload,...`meta`in r&&{meta:r.meta},...`error`in r&&{error:r.error}}}return{type:e,payload:n[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=t=>t!=null&&t.type===e&&mi(t),n}var Ha=class e extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,e.prototype)}static get[Symbol.species](){return e}concat(...e){return super.concat.apply(this,e)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new e(...t[0].concat(this)):new e(...t.concat(this))}};function Ua(e){return Oi(e)?Ia(e,()=>{}):e}function Wa(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function Ga(e){return typeof e==`boolean`}var Ka=()=>function(e){let{thunk:t=!0,immutableCheck:n=!0,serializableCheck:r=!0,actionCreatorCheck:i=!0}=e??{},a=new Ha;return t&&(Ga(t)?a.push(Ra):a.push(za(t.extraArgument))),a},qa=`RTK_autoBatch`,U=()=>e=>({payload:e,meta:{[qa]:!0}}),Ja=e=>t=>{setTimeout(t,e)},Ya=(e,t,n)=>r=>{let i=!1,a,o,s=()=>{i||(i=!0,t?.(a),clearTimeout(o),r())};a=e(s),o=setTimeout(s,n)},Xa=(e={type:`raf`})=>t=>(...n)=>{let r=t(...n),i=!0,a=!1,o=!1,s=new Set,c=e.type===`tick`?queueMicrotask:e.type===`raf`?typeof window<`u`&&window.requestAnimationFrame?Ya(window.requestAnimationFrame,window.cancelAnimationFrame,100):Ja(10):e.type===`callback`?e.queueNotification:Ja(e.timeout),l=()=>{o=!1,a&&(a=!1,s.forEach(e=>e()))};return Object.assign({},r,{subscribe(e){let t=r.subscribe(()=>i&&e());return s.add(e),()=>{t(),s.delete(e)}},dispatch(e){try{return i=!e?.meta?.[qa],a=!i,a&&(o||(o=!0,c(l))),r.dispatch(e)}finally{i=!0}}})},Za=e=>function(t){let{autoBatch:n=!0}=t??{},r=new Ha(e);return n&&r.push(Xa(typeof n==`object`?n:void 0)),r};function Qa(e){let t=Ka(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:s=void 0}=e||{},c;if(typeof n==`function`)c=n;else if(ci(n))c=di(n);else throw Error(Xo(1));let l;l=typeof r==`function`?r(t):t();let u=fi;i&&(u=Ba({trace:!1,...typeof i==`object`&&i}));let d=Za(pi(...l)),f=typeof s==`function`?s(d):d(),p=u(...f);return li(c,o,p)}function $a(e){let t={},n=[],r,i={addCase(e,n){let r=typeof e==`string`?e:e.type;if(!r)throw Error(Xo(28));if(r in t)throw Error(Xo(29));return t[r]=n,i},addAsyncThunk(e,r){return r.pending&&(t[e.pending.type]=r.pending),r.rejected&&(t[e.rejected.type]=r.rejected),r.fulfilled&&(t[e.fulfilled.type]=r.fulfilled),r.settled&&n.push({matcher:e.settled,reducer:r.settled}),i},addMatcher(e,t){return n.push({matcher:e,reducer:t}),i},addDefaultCase(e){return r=e,i}};return e(i),[t,n,r]}function eo(e){return typeof e==`function`}function to(e,t){let[n,r,i]=$a(t),a;if(eo(e))a=()=>Ua(e());else{let t=Ua(e);a=()=>t}function o(e,t,n){if(Di(e)){let r=t(e,n);return r===void 0?e:r}if(Oi(e))return Ia(e,e=>t(e,n));{let r=t(e,n);if(r===void 0){if(e===null)return e;throw Error(Xo(9))}return r}}function s(e=a(),t){let s=n[t.type],c;for(let{matcher:e,reducer:n}of r)e(t)&&n&&(c??=[]).push(n);if(!s&&!c)return i?o(e,i,t):e;if(s&&(e=o(e,s,t)),c)for(let n of c)e=o(e,n,t);return e}return s.getInitialState=a,s}var no=`ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW`,ro=(e=21)=>{let t=``,n=e;for(;n--;)t+=no[Math.random()*64|0];return t},io=Symbol.for(`rtk-slice-createasyncthunk`);function ao(e,t){return`${e}/${t}`}function oo({creators:e}={}){let t=e?.asyncThunk?.[io];return function(e){let{name:n,reducerPath:r=n}=e;if(!n)throw Error(Xo(11));let i=(typeof e.reducers==`function`?e.reducers(lo()):e.reducers)||{},a=Object.keys(i),o={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},s={addCase(e,t){let n=typeof e==`string`?e:e.type;if(!n)throw Error(Xo(12));if(n in o.sliceCaseReducersByType)throw Error(Xo(13));return o.sliceCaseReducersByType[n]=t,s},addMatcher(e,t){return o.sliceMatchers.push({matcher:e,reducer:t}),s},exposeAction(e,t){return o.actionCreators[e]=t,s},exposeCaseReducer(e,t){return o.sliceCaseReducersByName[e]=t,s}};a.forEach(r=>{let a=i[r],o={reducerName:r,type:ao(n,r),createNotation:typeof e.reducers==`function`};fo(a)?mo(o,a,s,t):uo(o,a,s)});function c(){let[t={},n=[],r=void 0]=typeof e.extraReducers==`function`?$a(e.extraReducers):[e.extraReducers],i={...t,...o.sliceCaseReducersByType};return to(e.initialState,e=>{for(let t in i)e.addCase(t,i[t]);for(let t of o.sliceMatchers)e.addMatcher(t.matcher,t.reducer);for(let t of n)e.addMatcher(t.matcher,t.reducer);r&&e.addDefaultCase(r)})}let l=e=>e,u=new Map,d=new WeakMap,f;function p(e,t){return f||=c(),f(e,t)}function m(){return f||=c(),f.getInitialState()}function h(t,n=!1){function r(e){let i=e[t];return i===void 0&&n&&(i=Wa(d,r,m)),i}function i(t=l){return Wa(Wa(u,n,()=>new WeakMap),t,()=>{let r={};for(let[i,a]of Object.entries(e.selectors??{}))r[i]=so(a,t,()=>Wa(d,t,m),n);return r})}return{reducerPath:t,getSelectors:i,get selectors(){return i(r)},selectSlice:r}}let g={name:n,reducer:p,actions:o.actionCreators,caseReducers:o.sliceCaseReducersByName,getInitialState:m,...h(r),injectInto(e,{reducerPath:t,...n}={}){let i=t??r;return e.inject({reducerPath:i,reducer:p},n),{...g,...h(i,!0)}}};return g}}function so(e,t,n,r){function i(i,...a){let o=t(i);return o===void 0&&r&&(o=n()),e(o,...a)}return i.unwrapped=e,i}var co=oo();function lo(){function e(e,t){return{_reducerDefinitionType:`asyncThunk`,payloadCreator:e,...t}}return e.withTypes=()=>e,{reducer(e){return Object.assign({[e.name](...t){return e(...t)}}[e.name],{_reducerDefinitionType:`reducer`})},preparedReducer(e,t){return{_reducerDefinitionType:`reducerWithPrepare`,prepare:e,reducer:t}},asyncThunk:e}}function uo({type:e,reducerName:t,createNotation:n},r,i){let a,o;if(`reducer`in r){if(n&&!po(r))throw Error(Xo(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Va(e,o):Va(e))}function fo(e){return e._reducerDefinitionType===`asyncThunk`}function po(e){return e._reducerDefinitionType===`reducerWithPrepare`}function mo({type:e,reducerName:t},n,r,i){if(!i)throw Error(Xo(18));let{payloadCreator:a,fulfilled:o,pending:s,rejected:c,settled:l,options:u}=n,d=i(e,a,u);r.exposeAction(t,d),o&&r.addCase(d.fulfilled,o),s&&r.addCase(d.pending,s),c&&r.addCase(d.rejected,c),l&&r.addMatcher(d.settled,l),r.exposeCaseReducer(t,{fulfilled:o||ho,pending:s||ho,rejected:c||ho,settled:l||ho})}function ho(){}var go=`task`,_o=`listener`,vo=`completed`,yo=`cancelled`,bo=`task-${yo}`,xo=`task-${vo}`,So=`${_o}-${yo}`,Co=`${_o}-${vo}`,wo=class{code;name=`TaskAbortError`;message;constructor(e){this.code=e,this.message=`${go} ${yo} (reason: ${e})`}},To=(e,t)=>{if(typeof e!=`function`)throw TypeError(Xo(32))},Eo=()=>{},Do=(e,t=Eo)=>(e.catch(t),e),Oo=(e,t)=>(e.addEventListener(`abort`,t,{once:!0}),()=>e.removeEventListener(`abort`,t)),ko=e=>{if(e.aborted)throw new wo(e.reason)};function Ao(e,t){let n=Eo;return new Promise((r,i)=>{let a=()=>i(new wo(e.reason));e.aborted?a():(n=Oo(e,a),t.finally(()=>n()).then(r,i))}).finally(()=>{n=Eo})}var jo=async(e,t)=>{try{return await Promise.resolve(),{status:`ok`,value:await e()}}catch(e){return{status:e instanceof wo?`cancelled`:`rejected`,error:e}}finally{t?.()}},Mo=e=>t=>Do(Ao(e,t).then(t=>(ko(e),t))),No=e=>{let t=Mo(e);return e=>{let n;return Do(t(new Promise(t=>{n=setTimeout(t,e)})).finally(()=>clearTimeout(n)))}},{assign:Po}=Object,Fo={},Io=`listenerMiddleware`,Lo=(e,t)=>{let n=t=>Oo(e,()=>t.abort(e.reason));return(r,i)=>{To(r,`taskExecutor`);let a=new AbortController;n(a);let o=jo(async()=>{ko(e),ko(a.signal);let t=await r({pause:Mo(a.signal),delay:No(a.signal),signal:a.signal});return ko(a.signal),t},()=>a.abort(xo));return i?.autoJoin&&t.push(o.catch(Eo)),{result:Mo(e)(o),cancel(){a.abort(bo)}}}},Ro=(e,t)=>{let n=async(n,r)=>{ko(t);let i=()=>{},a=[new Promise((t,r)=>{let a=e({predicate:n,effect:(e,n)=>{n.unsubscribe(),t([e,n.getState(),n.getOriginalState()])}});i=()=>{a(),r()}})],o;r!=null&&a.push(new Promise(e=>{o=setTimeout(e,r,null)}));try{let e=await Ao(t,Promise.race(a));return ko(t),e}finally{clearTimeout(o),i()}};return((e,t)=>Do(n(e,t)))},zo=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=Va(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw Error(Xo(21));return To(a,`options.listener`),{predicate:i,type:t,effect:a}},Bo=Po(e=>{let{type:t,predicate:n,effect:r}=zo(e);return{id:ro(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw Error(Xo(22))}}},{withTypes:()=>Bo}),Vo=(e,t)=>{let{type:n,effect:r,predicate:i}=zo(t);return Array.from(e.values()).find(e=>(typeof n==`string`?e.type===n:e.predicate===i)&&e.effect===r)},Ho=e=>{e.pending.forEach(e=>{e.abort(So)})},Uo=(e,t)=>()=>{for(let e of t.keys())Ho(e);e.clear()},Wo=(e,t,n)=>{try{e(t,n)}catch(e){setTimeout(()=>{throw e},0)}},Go=Po(Va(`${Io}/add`),{withTypes:()=>Go}),Ko=Va(`${Io}/removeAll`),qo=Po(Va(`${Io}/remove`),{withTypes:()=>qo}),Jo=(...e)=>{console.error(`${Io}/error`,...e)},Yo=(e={})=>{let t=new Map,n=new Map,r=e=>{let t=n.get(e)??0;n.set(e,t+1)},i=e=>{let t=n.get(e)??1;t===1?n.delete(e):n.set(e,t-1)},{extra:a,onError:o=Jo}=e;To(o,`onError`);let s,c=()=>{if(!s){let e=Array.from(t.values()),n=new Set,r=!1;for(let t of e)typeof t.type==`string`?n.add(t.type):r=!0;s={entries:e,types:n,anyType:r}}return s},l=e=>{t.has(e.id)||(t.set(e.id,e),s=void 0)},u=e=>(e.unsubscribe=()=>{t.delete(e.id)&&(s=void 0)},l(e),t=>{e.unsubscribe(),t?.cancelActive&&Ho(e)}),d=(e=>{let n=Vo(t,e)??Bo(e);return u(n)});Po(d,{withTypes:()=>d});let f=e=>{let n=Vo(t,e);return n&&(n.unsubscribe(),e.cancelActive&&Ho(n)),!!n};Po(f,{withTypes:()=>f});let p=async(e,t,n,s)=>{let c=new AbortController,u=Ro(d,c.signal),f=[];try{e.pending.add(c),r(e),await Promise.resolve(e.effect(t,Po({},n,{getOriginalState:s,condition:(e,t)=>u(e,t).then(Boolean),take:u,delay:No(c.signal),pause:Mo(c.signal),extra:a,signal:c.signal,fork:Lo(c.signal,f),unsubscribe:e.unsubscribe,subscribe:()=>{l(e)},cancelActiveListeners:()=>{e.pending.forEach((e,t,n)=>{e!==c&&(e.abort(So),n.delete(e))})},cancel:()=>{c.abort(So),e.pending.delete(c)},throwIfCancelled:()=>{ko(c.signal)}})))}catch(e){e instanceof wo||Wo(o,e,{raisedBy:`effect`})}finally{await Promise.all(f),c.abort(Co),i(e),e.pending.delete(c)}},m=Uo(t,n),h=()=>{m(),s=void 0};return{middleware:e=>t=>n=>{if(!mi(n))return t(n);if(Go.match(n))return d(n.payload);if(Ko.match(n)){h();return}if(qo.match(n))return f(n.payload);let r=e.getState(),i=()=>{if(r===Fo)throw Error(Xo(23));return r},a;try{a=t(n);let{entries:s,types:l,anyType:u}=c();if(u||l.has(n.type)){let t=e.getState();for(let a of s){if(typeof a.type==`string`&&a.type!==n.type)continue;let s=!1;try{s=a.predicate(n,t,r)}catch(e){s=!1,Wo(o,e,{raisedBy:`predicate`})}s&&p(a,n,e,i)}}}finally{r=Fo}return a},startListening:d,stopListening:f,clearListeners:h}};function Xo(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var Zo=co({name:`chartLayout`,initialState:{layoutType:`horizontal`,width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top??0,e.margin.right=t.payload.right??0,e.margin.bottom=t.payload.bottom??0,e.margin.left=t.payload.left??0},setScale(e,t){e.scale=t.payload}}}),Qo=Zo.actions,$o=Qo.setMargin,es=Qo.setLayout,ts=Qo.setChartSize,ns=Qo.setScale,rs=Zo.reducer;function is(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function W(e){return Number.isFinite(e)}function as(e){return typeof e==`number`&&e>0&&Number.isFinite(e)}function os(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?os(Object(n),!0).forEach(function(t){cs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):os(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function cs(e,t,n){return(t=ls(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ls(e){var t=us(e,`string`);return typeof t==`symbol`?t:t+``}function us(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function G(e,t,n){return L(e)||L(t)?n:me(t)?se(e,t,n):typeof t==`function`?t(e):n}var ds=(e,t,n)=>{if(t&&n){var r=n.width,i=n.height,a=t.align,o=t.verticalAlign,s=t.layout,c=t.position,l=t.offset,u=l===void 0?0:l;if(c!=null){if(je(c)){if(c===`top`&&F(e.top))return ss(ss({},e),{},{top:e.top+(i||0)+u});if(c===`bottom`&&F(e.bottom))return ss(ss({},e),{},{bottom:e.bottom+(i||0)+u});if(c===`left`&&F(e.left))return ss(ss({},e),{},{left:e.left+(r||0)+u});if(c===`right`&&F(e.right))return ss(ss({},e),{},{right:e.right+(r||0)+u})}return e}if((s===`vertical`||s===`horizontal`&&o===`middle`)&&a!==`center`&&F(e[a]))return ss(ss({},e),{},{[a]:e[a]+(r||0)});if((s===`horizontal`||s===`vertical`&&a===`center`)&&o!==`middle`&&F(e[o]))return ss(ss({},e),{},{[o]:e[o]+(i||0)})}return e},fs=(e,t)=>e===`horizontal`&&t===`xAxis`||e===`vertical`&&t===`yAxis`||e===`centric`&&t===`angleAxis`||e===`radial`&&t===`radiusAxis`,ps=(e,t,n,r)=>{if(r)return e.map(e=>e.coordinate);var i,a,o=e.map(e=>(e.coordinate===t&&(i=!0),e.coordinate===n&&(a=!0),e.coordinate));return i||o.push(t),a||o.push(n),o},ms=(e,t,n)=>{if(!e)return null;var r=e.duplicateDomain,i=e.type,a=e.range,o=e.scale,s=e.realScaleType,c=e.isCategorical,l=e.categoricalDomain,u=e.tickCount,d=e.ticks,f=e.niceTicks,p=e.axisType;if(!o)return null;var m=s===`scaleBand`&&o.bandwidth?o.bandwidth()/2:2,h=(t||n)&&i===`category`&&o.bandwidth?o.bandwidth()/m:0;return h=p===`angleAxis`&&a&&a.length>=2?de(a[0]-a[1])*2*h:h,t&&(d||f)?(d||f||[]).map((e,t)=>{var n=r?r.indexOf(e):e,i=o.map(n);return W(i)?{coordinate:i+h,value:e,offset:h,index:t}:null}).filter(xe):c&&l?l.map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(xe):o.ticks&&!n&&u!=null?o.ticks(u).map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:e,index:t,offset:h}:null}).filter(xe):o.domain().map((e,t)=>{var n=o.map(e);return W(n)?{coordinate:n+h,value:r?r[e]:e,index:t,offset:h}:null}).filter(xe)},hs=(e,t)=>{if(!t||t.length!==2||!F(t[0])||!F(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!F(e[0])||e[0]<n)&&(i[0]=n),(!F(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},gs={sign:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0,o=0;o<t;++o){var s=e[o]?.[r];if(s!=null){var c=s[1],l=s[0],u=fe(c)?l:c;u>=0?(s[0]=i,i+=u,s[1]=i):(s[0]=a,a+=u,s[1]=a)}}}},expand:Jt,none:Ut,silhouette:Yt,wiggle:Xt,positive:e=>{var t=e.length;if(!(t<=0)){var n=e[0]?.length;if(!(n==null||n<=0))for(var r=0;r<n;++r)for(var i=0,a=0;a<t;++a){var o=e[a]?.[r];if(o!=null){var s=fe(o[1])?o[0]:o[1];s>=0?(o[0]=i,i+=s,o[1]=i):(o[0]=0,o[1]=0)}}}}},_s=(e,t,n)=>{var r=gs[n]??Ut,i=qt().keys(t).value((e,t)=>Number(G(e,t,0))).order(Wt).offset(r)(e);return i.forEach((n,r)=>{n.forEach((n,i)=>{var a=G(e[i],t[r],0);Array.isArray(a)&&a.length===2&&F(a[0])&&F(a[1])&&(n[0]=a[0],n[1]=a[1])})}),i};function vs(e){return e==null?void 0:String(e)}function ys(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type===`category`){if(!t.allowDuplicatedCategory&&t.dataKey&&!L(i[t.dataKey])){var s=ye(n,`value`,i[t.dataKey]);if(s)return s.coordinate+r/2}return n!=null&&n[a]?n[a].coordinate+r/2:null}var c=G(i,L(o)?t.dataKey:o),l=t.scale.map(c);return F(l)?l:null}var bs=e=>{var t=e.axis,n=e.ticks,r=e.offset,i=e.bandSize,a=e.entry,o=e.index;if(t.type===`category`)return n[o]?n[o].coordinate+r:null;var s=G(a,t.dataKey,t.scale.domain()[o]);if(L(s))return null;var c=t.scale.map(s);return F(c)?c-i/2+r:null},xs=e=>{var t=e.numericAxis,n=t.scale.domain();if(t.type===`number`){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Ss=e=>{var t=e.flat(2).filter(F);return[Math.min(...t),Math.max(...t)]},Cs=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],ws=(e,t,n)=>{if(e!=null&&Object.keys(e).length!==0)return Cs(Object.keys(e).reduce((r,i)=>{var a=e[i];if(!a)return r;var o=a.stackedData.reduce((e,r)=>{var i=Ss(is(r,t,n));return!W(i[0])||!W(i[1])?e:[Math.min(e[0],i[0]),Math.max(e[1],i[1])]},[1/0,-1/0]);return[Math.min(o[0],r[0]),Math.max(o[1],r[1])]},[1/0,-1/0]))},Ts=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Es=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ds=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=Gr(t,e=>e.coordinate),a=[],o=0,s=1,c=i.length;s<c;s++){var l=(i[s]?.coordinate||0)-(i[s-1]?.coordinate||0);a.push(l),o=Math.max(l,o)}var u=o*1e-4,d=1/0;for(var f of a)f>u&&(d=Math.min(f,d));return d===1/0?0:d}return n?void 0:0};function Os(e){var t=e.tooltipEntrySettings,n=e.dataKey,r=e.payload,i=e.value,a=e.name;return ss(ss({},t),{},{dataKey:n,payload:r,value:i,name:a})}function ks(e,t){if(e!=null)return String(e);if(typeof t==`string`)return t}var As=(e,t)=>{if(t===`horizontal`)return e.relativeX;if(t===`vertical`)return e.relativeY},js=(e,t)=>t===`centric`?e.angle:e.radius,Ms=e=>e.layout.width,Ns=e=>e.layout.height,Ps=e=>e.layout.scale,Fs=e=>e.layout.margin,Is=V(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Ls=V(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),Rs=`data-recharts-item-index`;function zs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Bs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zs(Object(n),!0).forEach(function(t){Vs(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zs(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vs(e,t,n){return(t=Hs(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hs(e){var t=Us(e,`string`);return typeof t==`symbol`?t:t+``}function Us(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Ws=e=>e.brush.height;function Gs(e){return Ls(e).reduce((e,t)=>t.orientation===`left`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function Ks(e){return Ls(e).reduce((e,t)=>t.orientation===`right`&&!t.mirror&&!t.hide?e+(typeof t.width==`number`?t.width:60):e,0)}function qs(e){return Is(e).reduce((e,t)=>t.orientation===`top`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}function Js(e){return Is(e).reduce((e,t)=>t.orientation===`bottom`&&!t.mirror&&!t.hide?e+(typeof t.height==`number`?t.height:30):e,0)}var Ys=V([Ms,Ns,Fs,Ws,Gs,Ks,qs,Js,Kr,qr],(e,t,n,r,i,a,o,s,c,l)=>{var u={left:(n.left||0)+i,right:(n.right||0)+a},d=Bs(Bs({},{top:(n.top||0)+o,bottom:(n.bottom||0)+s}),u),f=d.bottom;d.bottom+=r,d=ds(d,c,l);var p=e-d.left-d.right,m=t-d.top-d.bottom;return Bs(Bs({brushBottom:f},d),{},{width:Math.max(p,0),height:Math.max(m,0)})}),Xs=V(Ys,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),Zs=V(Ms,Ns,(e,t)=>({x:0,y:0,width:e,height:t})),Qs=(0,s.createContext)(null),$s=()=>(0,s.useContext)(Qs)!=null,ec=e=>e.brush,tc=V([ec,Ys,Fs],(e,t,n)=>({height:e.height,x:F(e.x)?e.x:t.left,y:F(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:F(e.width)?e.width:t.width}));function nc(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function rc(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=nc(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function ic(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return rc(e,t,{leading:r,maxWait:t,trailing:i})}var ac=function(e,t){var n=[...arguments].slice(2);if(typeof console<`u`&&console.warn&&(t===void 0&&console.warn(`LogUtils requires an error message argument`),!e)){if(t===void 0)console.warn(`Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.`);else{var r=0;console.warn(t.replace(/%s/g,()=>n[r++]))}}},oc={width:`100%`,height:`100%`,debounce:0,minWidth:0,initialDimension:{width:-1,height:-1}},sc=(e,t,n)=>{var r=n.width,i=r===void 0?oc.width:r,a=n.height,o=a===void 0?oc.height:a,s=n.aspect,c=n.maxHeight,l=pe(i)?e:Number(i),u=pe(o)?t:Number(o);return s&&s>0&&(l?u=l/s:u&&(l=u*s),c&&u!=null&&u>c&&(u=c)),{calculatedWidth:l,calculatedHeight:u}},cc={width:0,height:0,overflow:`visible`},lc={width:0,overflowX:`visible`},uc={height:0,overflowY:`visible`},dc={},fc=e=>{var t=e.width,n=e.height,r=pe(t),i=pe(n);return r&&i?cc:r?lc:i?uc:dc};function pc(e){var t=e.width,n=e.height,r=e.aspect,i=t,a=n;return i===void 0&&a===void 0?(i=oc.width,a=oc.height):i===void 0?i=r&&r>0?void 0:oc.width:a===void 0&&(a=r&&r>0?void 0:oc.height),{width:i,height:a}}var mc=[`aspect`,`initialDimension`,`width`,`height`,`minWidth`,`minHeight`,`maxHeight`,`children`,`debounce`,`id`,`className`,`onResize`,`style`];function hc(){return hc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hc.apply(null,arguments)}function gc(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gc(Object(n),!0).forEach(function(t){vc(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gc(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function vc(e,t,n){return(t=yc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yc(e){var t=bc(e,`string`);return typeof t==`symbol`?t:t+``}function bc(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function xc(e,t){return Ec(e)||Tc(e,t)||Cc(e,t)||Sc()}function Sc(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cc(e,t){if(e){if(typeof e==`string`)return wc(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?wc(e,t):void 0}}function wc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Tc(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function Ec(e){if(Array.isArray(e))return e}function Dc(e,t){if(e==null)return{};var n,r,i=Oc(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Oc(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var kc=(0,s.createContext)(oc.initialDimension);function Ac(e){return as(e.width)&&as(e.height)}function jc(e){var t=e.children,n=e.width,r=e.height,i=(0,s.useMemo)(()=>({width:n,height:r}),[n,r]);return Ac(i)?s.createElement(kc.Provider,{value:i},t):null}var Mc=()=>(0,s.useContext)(kc),Nc=(0,s.forwardRef)((e,t)=>{var n=e.aspect,r=e.initialDimension,i=r===void 0?oc.initialDimension:r,a=e.width,o=e.height,c=e.minWidth,l=c===void 0?oc.minWidth:c,d=e.minHeight,f=e.maxHeight,p=e.children,m=e.debounce,h=m===void 0?oc.debounce:m,g=e.id,_=e.className,v=e.onResize,y=e.style,b=y===void 0?{}:y,x=Dc(e,mc),S=(0,s.useRef)(null),C=(0,s.useRef)();C.current=v,(0,s.useImperativeHandle)(t,()=>S.current);var w=xc((0,s.useState)({containerWidth:i.width,containerHeight:i.height}),2),T=w[0],E=w[1],D=(0,s.useCallback)((e,t)=>{E(n=>{var r=Math.round(e),i=Math.round(t);return n.containerWidth===r&&n.containerHeight===i?n:{containerWidth:r,containerHeight:i}})},[]);(0,s.useEffect)(()=>{if(S.current==null||typeof ResizeObserver>`u`)return Se;var e=e=>{var t,n=e[0];if(n!=null){var r=n.contentRect,i=r.width,a=r.height;D(i,a),(t=C.current)==null||t.call(C,i,a)}};h>0&&(e=ic(e,h,{trailing:!0,leading:!1}));var t=new ResizeObserver(e),n=S.current.getBoundingClientRect(),r=n.width,i=n.height;return D(r,i),t.observe(S.current),()=>{t.disconnect()}},[D,h]);var O=T.containerWidth,k=T.containerHeight;ac(!n||n>0,`The aspect(%s) must be greater than zero.`,n);var A=sc(O,k,{width:a,height:o,aspect:n,maxHeight:f}),j=A.calculatedWidth,M=A.calculatedHeight;return ac(O<0||k<0||j!=null&&j>0||M!=null&&M>0,`The width(%s) and height(%s) of chart should be greater than 0,
4
4
  please check the style of container, or the props width(%s) and height(%s),