@tapflowio/relay 0.21.0 → 0.23.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 (182) hide show
  1. package/dist/RelayServer.d.ts +20 -0
  2. package/dist/RelayServer.d.ts.map +1 -1
  3. package/dist/RelayServer.js +124 -16
  4. package/dist/RelayServer.js.map +1 -1
  5. package/dist/SessionManager.d.ts +4 -1
  6. package/dist/SessionManager.d.ts.map +1 -1
  7. package/dist/SessionManager.js +7 -0
  8. package/dist/SessionManager.js.map +1 -1
  9. package/dist/api/auth.d.ts.map +1 -1
  10. package/dist/api/auth.js +2 -1
  11. package/dist/api/auth.js.map +1 -1
  12. package/dist/api/passwordReset.d.ts +6 -2
  13. package/dist/api/passwordReset.d.ts.map +1 -1
  14. package/dist/api/passwordReset.js +21 -6
  15. package/dist/api/passwordReset.js.map +1 -1
  16. package/dist/api/team.d.ts +2 -1
  17. package/dist/api/team.d.ts.map +1 -1
  18. package/dist/api/team.js +7 -5
  19. package/dist/api/team.js.map +1 -1
  20. package/dist/index.d.ts +3 -1
  21. package/dist/index.d.ts.map +1 -1
  22. package/dist/index.js +2 -1
  23. package/dist/index.js.map +1 -1
  24. package/dist/lib/clientAddress.d.ts +15 -0
  25. package/dist/lib/clientAddress.d.ts.map +1 -1
  26. package/dist/lib/clientAddress.js +21 -0
  27. package/dist/lib/clientAddress.js.map +1 -1
  28. package/dist/lib/config.d.ts +2 -0
  29. package/dist/lib/config.d.ts.map +1 -1
  30. package/dist/lib/config.js +6 -0
  31. package/dist/lib/config.js.map +1 -1
  32. package/dist/lib/lanAddress.d.ts +10 -0
  33. package/dist/lib/lanAddress.d.ts.map +1 -1
  34. package/dist/lib/lanAddress.js +13 -0
  35. package/dist/lib/lanAddress.js.map +1 -1
  36. package/dist/lib/proxyConfig.d.ts +14 -2
  37. package/dist/lib/proxyConfig.d.ts.map +1 -1
  38. package/dist/lib/proxyConfig.js +36 -13
  39. package/dist/lib/proxyConfig.js.map +1 -1
  40. package/dist/lib/publicUrl.d.ts +31 -1
  41. package/dist/lib/publicUrl.d.ts.map +1 -1
  42. package/dist/lib/publicUrl.js +51 -9
  43. package/dist/lib/publicUrl.js.map +1 -1
  44. package/dist/server.js +10 -2
  45. package/dist/server.js.map +1 -1
  46. package/package.json +5 -5
  47. package/public/assets/AppCenter-OTDuqwSf.js +21 -0
  48. package/public/assets/AppCenter-OTDuqwSf.js.br +0 -0
  49. package/public/assets/AppCenter-OTDuqwSf.js.gz +0 -0
  50. package/public/assets/{Default-D1inA8sU.js → Default-D9GLpWlN.js} +1 -1
  51. package/public/assets/Default-D9GLpWlN.js.br +0 -0
  52. package/public/assets/Default-D9GLpWlN.js.gz +0 -0
  53. package/public/assets/{Invite-ChaVEWvP.js → Invite-Bhiam8En.js} +1 -1
  54. package/public/assets/Invite-Bhiam8En.js.br +0 -0
  55. package/public/assets/Invite-Bhiam8En.js.gz +0 -0
  56. package/public/assets/MacResources-DObzVJxQ.js +3 -0
  57. package/public/assets/MacResources-DObzVJxQ.js.br +0 -0
  58. package/public/assets/MacResources-DObzVJxQ.js.gz +0 -0
  59. package/public/assets/{NotFound-BoDDivK5.js → NotFound-Dz_k_Mzf.js} +1 -1
  60. package/public/assets/NotFound-Dz_k_Mzf.js.br +0 -0
  61. package/public/assets/NotFound-Dz_k_Mzf.js.gz +0 -0
  62. package/public/assets/QASession-2crubOLY.js +150 -0
  63. package/public/assets/QASession-2crubOLY.js.br +0 -0
  64. package/public/assets/QASession-2crubOLY.js.gz +0 -0
  65. package/public/assets/{ResetPassword-Ut9BFums.js → ResetPassword-EUm12ojo.js} +1 -1
  66. package/public/assets/ResetPassword-EUm12ojo.js.br +0 -0
  67. package/public/assets/ResetPassword-EUm12ojo.js.gz +0 -0
  68. package/public/assets/{Setup-CoHwaxo7.js → Setup-Fc_0RW0a.js} +1 -1
  69. package/public/assets/Setup-Fc_0RW0a.js.br +0 -0
  70. package/public/assets/Setup-Fc_0RW0a.js.gz +0 -0
  71. package/public/assets/Team-Ac5aOGgx.js +6 -0
  72. package/public/assets/Team-Ac5aOGgx.js.br +0 -0
  73. package/public/assets/Team-Ac5aOGgx.js.gz +0 -0
  74. package/public/assets/Tokens-pEnCy-7l.js +1 -0
  75. package/public/assets/Tokens-pEnCy-7l.js.br +0 -0
  76. package/public/assets/Tokens-pEnCy-7l.js.gz +0 -0
  77. package/public/assets/alert-dialog-DhOTocMh.js +1 -0
  78. package/public/assets/alert-dialog-DhOTocMh.js.br +0 -0
  79. package/public/assets/alert-dialog-DhOTocMh.js.gz +0 -0
  80. package/public/assets/{badge-CikXk90N.js → badge-B4gbViMs.js} +1 -1
  81. package/public/assets/badge-B4gbViMs.js.br +0 -0
  82. package/public/assets/badge-B4gbViMs.js.gz +0 -0
  83. package/public/assets/build-format-DKGajT96.js +11 -0
  84. package/public/assets/build-format-DKGajT96.js.br +0 -0
  85. package/public/assets/build-format-DKGajT96.js.gz +0 -0
  86. package/public/assets/dialog-DEL1xxKJ.js +11 -0
  87. package/public/assets/dialog-DEL1xxKJ.js.br +0 -0
  88. package/public/assets/dialog-DEL1xxKJ.js.gz +0 -0
  89. package/public/assets/index-Bxs7CdEi.css +1 -0
  90. package/public/assets/index-Bxs7CdEi.css.br +0 -0
  91. package/public/assets/index-Bxs7CdEi.css.gz +0 -0
  92. package/public/assets/index-COIlCLCW.js +218 -0
  93. package/public/assets/index-COIlCLCW.js.br +0 -0
  94. package/public/assets/index-COIlCLCW.js.gz +0 -0
  95. package/public/assets/pencil-CPaoEKFm.js +6 -0
  96. package/public/assets/pencil-CPaoEKFm.js.br +0 -0
  97. package/public/assets/pencil-CPaoEKFm.js.gz +0 -0
  98. package/public/assets/publicLink-D6zKS_wu.js +1 -0
  99. package/public/assets/publicLink-D6zKS_wu.js.br +0 -0
  100. package/public/assets/publicLink-D6zKS_wu.js.gz +0 -0
  101. package/public/assets/resource-health-Ca4-5Rde.js +1 -0
  102. package/public/assets/resource-health-Ca4-5Rde.js.br +0 -0
  103. package/public/assets/resource-health-Ca4-5Rde.js.gz +0 -0
  104. package/public/assets/{table-dbLmBL_w.js → table-CSeGVnii.js} +1 -1
  105. package/public/assets/table-CSeGVnii.js.br +0 -0
  106. package/public/assets/table-CSeGVnii.js.gz +0 -0
  107. package/public/assets/trash-CD9Y9G-i.js +11 -0
  108. package/public/assets/trash-CD9Y9G-i.js.br +0 -0
  109. package/public/assets/trash-CD9Y9G-i.js.gz +0 -0
  110. package/public/assets/vendor-charts-YPhPkjLw.js +5 -0
  111. package/public/assets/vendor-charts-YPhPkjLw.js.br +0 -0
  112. package/public/assets/vendor-charts-YPhPkjLw.js.gz +0 -0
  113. package/public/assets/vendor-react-C5H_1fOn.js +49 -0
  114. package/public/assets/vendor-react-C5H_1fOn.js.br +0 -0
  115. package/public/assets/vendor-react-C5H_1fOn.js.gz +0 -0
  116. package/public/assets/{vendor-router-BFibuab1.js → vendor-router-CnmrRwJF.js} +1 -1
  117. package/public/assets/vendor-router-CnmrRwJF.js.br +0 -0
  118. package/public/assets/vendor-router-CnmrRwJF.js.gz +0 -0
  119. package/public/index.html +4 -4
  120. package/public/index.html.br +0 -0
  121. package/public/index.html.gz +0 -0
  122. package/public/assets/AppCenter-BkSQFKRv.js +0 -21
  123. package/public/assets/AppCenter-BkSQFKRv.js.br +0 -0
  124. package/public/assets/AppCenter-BkSQFKRv.js.gz +0 -0
  125. package/public/assets/Default-D1inA8sU.js.br +0 -0
  126. package/public/assets/Default-D1inA8sU.js.gz +0 -0
  127. package/public/assets/Invite-ChaVEWvP.js.br +0 -0
  128. package/public/assets/Invite-ChaVEWvP.js.gz +0 -0
  129. package/public/assets/MacResources-CLChFyJW.js +0 -1
  130. package/public/assets/MacResources-CLChFyJW.js.br +0 -0
  131. package/public/assets/MacResources-CLChFyJW.js.gz +0 -0
  132. package/public/assets/NotFound-BoDDivK5.js.br +0 -0
  133. package/public/assets/NotFound-BoDDivK5.js.gz +0 -0
  134. package/public/assets/QASession-DICynZa0.js +0 -140
  135. package/public/assets/QASession-DICynZa0.js.br +0 -0
  136. package/public/assets/QASession-DICynZa0.js.gz +0 -0
  137. package/public/assets/ResetPassword-Ut9BFums.js.br +0 -0
  138. package/public/assets/ResetPassword-Ut9BFums.js.gz +0 -0
  139. package/public/assets/Setup-CoHwaxo7.js.br +0 -0
  140. package/public/assets/Setup-CoHwaxo7.js.gz +0 -0
  141. package/public/assets/Team-DaVY1DGm.js +0 -6
  142. package/public/assets/Team-DaVY1DGm.js.br +0 -0
  143. package/public/assets/Team-DaVY1DGm.js.gz +0 -0
  144. package/public/assets/Tokens-_KZJ7AZ9.js +0 -1
  145. package/public/assets/Tokens-_KZJ7AZ9.js.br +0 -0
  146. package/public/assets/Tokens-_KZJ7AZ9.js.gz +0 -0
  147. package/public/assets/alert-dialog-Cc_pQpe6.js +0 -1
  148. package/public/assets/alert-dialog-Cc_pQpe6.js.br +0 -0
  149. package/public/assets/alert-dialog-Cc_pQpe6.js.gz +0 -0
  150. package/public/assets/badge-CikXk90N.js.br +0 -0
  151. package/public/assets/badge-CikXk90N.js.gz +0 -0
  152. package/public/assets/build-format-DsApFPHy.js +0 -11
  153. package/public/assets/build-format-DsApFPHy.js.br +0 -0
  154. package/public/assets/build-format-DsApFPHy.js.gz +0 -0
  155. package/public/assets/dialog-B4Wg7TCg.js +0 -11
  156. package/public/assets/dialog-B4Wg7TCg.js.br +0 -0
  157. package/public/assets/dialog-B4Wg7TCg.js.gz +0 -0
  158. package/public/assets/index-CBfjqtE-.js +0 -198
  159. package/public/assets/index-CBfjqtE-.js.br +0 -0
  160. package/public/assets/index-CBfjqtE-.js.gz +0 -0
  161. package/public/assets/index-ClHUQm-F.css +0 -1
  162. package/public/assets/index-ClHUQm-F.css.br +0 -0
  163. package/public/assets/index-ClHUQm-F.css.gz +0 -0
  164. package/public/assets/pencil-DMswV31e.js +0 -6
  165. package/public/assets/pencil-DMswV31e.js.br +0 -0
  166. package/public/assets/pencil-DMswV31e.js.gz +0 -0
  167. package/public/assets/table-dbLmBL_w.js.br +0 -0
  168. package/public/assets/table-dbLmBL_w.js.gz +0 -0
  169. package/public/assets/tabs-pPYCRfmT.js +0 -1
  170. package/public/assets/tabs-pPYCRfmT.js.br +0 -0
  171. package/public/assets/tabs-pPYCRfmT.js.gz +0 -0
  172. package/public/assets/trash-VgeHmI8N.js +0 -11
  173. package/public/assets/trash-VgeHmI8N.js.br +0 -0
  174. package/public/assets/trash-VgeHmI8N.js.gz +0 -0
  175. package/public/assets/vendor-charts-DyX5CBcf.js +0 -5
  176. package/public/assets/vendor-charts-DyX5CBcf.js.br +0 -0
  177. package/public/assets/vendor-charts-DyX5CBcf.js.gz +0 -0
  178. package/public/assets/vendor-react-AJpf4YZ0.js +0 -49
  179. package/public/assets/vendor-react-AJpf4YZ0.js.br +0 -0
  180. package/public/assets/vendor-react-AJpf4YZ0.js.gz +0 -0
  181. package/public/assets/vendor-router-BFibuab1.js.br +0 -0
  182. package/public/assets/vendor-router-BFibuab1.js.gz +0 -0
@@ -0,0 +1,6 @@
1
+ import{a1 as e}from"./index-COIlCLCW.js";/**
2
+ * @license lucide-react v1.45.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const a={name:"pencil",size:24,node:[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]};a.node;const n=e(a);export{n as P};
@@ -0,0 +1 @@
1
+ const c=["localhost","127.0.0.1","[::1]"];function u(t,l){const e=l.protocol==="https:"?"wss":"ws",s=t!=null&&t.lanHost&&c.includes(l.hostname)?`${t.lanHost}:${t.port}`:null;return{linkBase:(t==null?void 0:t.publicBaseUrl)??(s?`${l.protocol}//${s}`:l.origin),agentWsBase:(t==null?void 0:t.agentRelayUrl)??(s?`${e}://${s}`:`${e}://${l.host}`)}}function $(t,l){return`${t.replace(/\/+$/,"")}${l.startsWith("/")?l:`/${l}`}`}let o=null;const h=3e3;function m(){if(o)return o;const t=new AbortController,l=setTimeout(()=>t.abort(),h);return o=fetch("/api/v1/relay/host",{credentials:"include",signal:t.signal}).then(e=>e.ok?e.json():Promise.reject(new Error(`relay host lookup: ${e.status}`))).catch(()=>(o=null,null)).finally(()=>clearTimeout(l)).then(e=>{const{protocol:s,hostname:n,host:a,origin:r}=window.location;return u(e,{protocol:s,hostname:n,host:a,origin:r})}),o}export{$ as j,m as l};
@@ -0,0 +1 @@
1
+ import{i as r,j as g}from"./vendor-react-C5H_1fOn.js";import{z as j,y as m,v as P,Y as p,x as L,a3 as _,$ as k,ag as M,af as O,aj as D,W as R}from"./index-COIlCLCW.js";function $(){const e=new Uint8Array(16);return crypto.getRandomValues(e),Array.from(e,t=>t.toString(16).padStart(2,"0")).join("")}const U=location.protocol==="https:"?"wss:":"ws:",V=`${U}//${location.host}`,F=2e3,G=$();function H(){const e=new URL(V);return e.searchParams.set("client",G),e.toString()}function se(e,t){const n=r.useRef(null),[f,a]=r.useState(!1),s=r.useRef(e),u=r.useRef(t);return r.useLayoutEffect(()=>{s.current=e,u.current=t},[e,t]),r.useEffect(()=>{let l=!1;const b=()=>{if(l)return;const d=new WebSocket(H());d.binaryType="arraybuffer",n.current=d,d.onopen=()=>a(!0),d.onclose=()=>{a(!1),l||setTimeout(b,F)},d.onmessage=c=>{var o;if(c.data instanceof ArrayBuffer){(o=u.current)==null||o.call(u,c.data);return}try{s.current(JSON.parse(c.data))}catch{}}};return b(),()=>{var d;l=!0,(d=n.current)==null||d.close()}},[]),{send:r.useCallback(l=>{var b;((b=n.current)==null?void 0:b.readyState)===WebSocket.OPEN&&n.current.send(JSON.stringify(l))},[]),connected:f}}var K=Object.defineProperty,T=(e,t)=>K(e,"name",{value:t,configurable:!0}),y="Tabs",[W,ie]=k(y,[_]),w=_(),[B,C]=W(y),Y=r.forwardRef(T(function(t,n){const{__scopeTabs:f,value:a,onValueChange:s,defaultValue:u,orientation:i="horizontal",dir:l,activationMode:b="automatic",...d}=t,c=M(l),[o,v]=O({prop:a,onChange:s,defaultProp:u??"",caller:y});return g.jsx(B,{scope:f,baseId:D(),value:o,onValueChange:v,orientation:i,dir:c,activationMode:b,children:g.jsx(m.div,{dir:c,"data-orientation":i,...d,ref:n})})},"Tabs")),q="TabsList",z=r.forwardRef(T(function(t,n){const{__scopeTabs:f,loop:a=!0,...s}=t,u=C(q,f),i=w(f);return g.jsx(j,{asChild:!0,...i,orientation:u.orientation,dir:u.dir,loop:a,children:g.jsx(m.div,{role:"tablist","aria-orientation":u.orientation,...s,ref:n})})},"TabsList")),J="TabsTrigger",Q=r.forwardRef(T(function(t,n){const{__scopeTabs:f,value:a,disabled:s=!1,...u}=t,i=C(J,f),l=w(f),b=x(i.baseId,a),d=E(i.baseId,a),c=a===i.value;return g.jsx(P,{asChild:!0,...l,focusable:!s,active:c,children:g.jsx(m.button,{type:"button",role:"tab","aria-selected":c,"aria-controls":d,"data-state":c?"active":"inactive","data-disabled":s?"":void 0,disabled:s,id:b,...u,ref:n,onMouseDown:p(t.onMouseDown,o=>{!s&&o.button===0&&o.ctrlKey===!1?i.onValueChange(a):o.preventDefault()}),onKeyDown:p(t.onKeyDown,o=>{s||o.target!==o.currentTarget||[" ","Enter"].includes(o.key)&&i.onValueChange(a)}),onFocus:p(t.onFocus,()=>{const o=i.activationMode!=="manual";!c&&!s&&o&&i.onValueChange(a)})})})},"TabsTrigger")),X="TabsContent",Z=r.forwardRef(T(function(t,n){const{__scopeTabs:f,value:a,forceMount:s,children:u,...i}=t,l=C(X,f),b=x(l.baseId,a),d=E(l.baseId,a),c=a===l.value,o=r.useRef(c);return r.useEffect(()=>{const v=requestAnimationFrame(()=>o.current=!1);return()=>cancelAnimationFrame(v)},[]),g.jsx(L,{present:s||c,children:({present:v})=>g.jsx(m.div,{"data-state":c?"active":"inactive","data-orientation":l.orientation,role:"tabpanel","aria-labelledby":b,hidden:!v,id:d,tabIndex:0,...i,ref:n,style:{...t.style,animationDuration:o.current?"0s":void 0},children:v&&u})})},"TabsContent"));function x(e,t){return`${e}-trigger-${t}`}T(x,"makeTriggerId");function E(e,t){return`${e}-content-${t}`}T(E,"makeContentId");var ee=Y,N=z,I=Q,A=Z;const ce=ee,te=r.forwardRef(({className:e,...t},n)=>g.jsx(N,{ref:n,className:R("inline-flex h-9 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));te.displayName=N.displayName;const ne=r.forwardRef(({className:e,...t},n)=>g.jsx(I,{ref:n,className:R("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm",e),...t}));ne.displayName=I.displayName;const ae=r.forwardRef(({className:e,...t},n)=>g.jsx(A,{ref:n,className:R("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));ae.displayName=A.displayName;const S=70,h=80,ue=3e4;function le(e,t){if(!e||t)return"unknown";const n=e.memUsedMB/e.memTotalMB*100;return e.cpuPercent>h||n>h?"overloaded":e.cpuPercent>=S||n>=S?"warning":"healthy"}export{ue as R,ce as T,ae as a,te as b,ne as c,le as g,$ as n,se as u};
@@ -1 +1 @@
1
- import{i as o,j as t}from"./vendor-react-AJpf4YZ0.js";import{J as l}from"./index-CBfjqtE-.js";const r=o.forwardRef(({className:e,...a},s)=>t.jsx("div",{className:"relative w-full overflow-auto",children:t.jsx("table",{ref:s,className:l("w-full caption-bottom text-sm",e),...a})}));r.displayName="Table";const d=o.forwardRef(({className:e,...a},s)=>t.jsx("thead",{ref:s,className:l("[&_tr]:border-b",e),...a}));d.displayName="TableHeader";const m=o.forwardRef(({className:e,...a},s)=>t.jsx("tbody",{ref:s,className:l("[&_tr:last-child]:border-0",e),...a}));m.displayName="TableBody";const b=o.forwardRef(({className:e,...a},s)=>t.jsx("tfoot",{ref:s,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a}));b.displayName="TableFooter";const c=o.forwardRef(({className:e,...a},s)=>t.jsx("tr",{ref:s,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...a}));c.displayName="TableRow";const i=o.forwardRef(({className:e,...a},s)=>t.jsx("th",{ref:s,className:l("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...a}));i.displayName="TableHead";const f=o.forwardRef(({className:e,...a},s)=>t.jsx("td",{ref:s,className:l("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...a}));f.displayName="TableCell";const n=o.forwardRef(({className:e,...a},s)=>t.jsx("caption",{ref:s,className:l("mt-4 text-sm text-muted-foreground",e),...a}));n.displayName="TableCaption";export{r as T,m as a,f as b,i as c,d,c as e};
1
+ import{i as o,j as t}from"./vendor-react-C5H_1fOn.js";import{W as l}from"./index-COIlCLCW.js";const r=o.forwardRef(({className:e,...a},s)=>t.jsx("div",{className:"relative w-full overflow-auto",children:t.jsx("table",{ref:s,className:l("w-full caption-bottom text-sm",e),...a})}));r.displayName="Table";const d=o.forwardRef(({className:e,...a},s)=>t.jsx("thead",{ref:s,className:l("[&_tr]:border-b",e),...a}));d.displayName="TableHeader";const m=o.forwardRef(({className:e,...a},s)=>t.jsx("tbody",{ref:s,className:l("[&_tr:last-child]:border-0",e),...a}));m.displayName="TableBody";const b=o.forwardRef(({className:e,...a},s)=>t.jsx("tfoot",{ref:s,className:l("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...a}));b.displayName="TableFooter";const c=o.forwardRef(({className:e,...a},s)=>t.jsx("tr",{ref:s,className:l("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),...a}));c.displayName="TableRow";const i=o.forwardRef(({className:e,...a},s)=>t.jsx("th",{ref:s,className:l("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...a}));i.displayName="TableHead";const f=o.forwardRef(({className:e,...a},s)=>t.jsx("td",{ref:s,className:l("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...a}));f.displayName="TableCell";const n=o.forwardRef(({className:e,...a},s)=>t.jsx("caption",{ref:s,className:l("mt-4 text-sm text-muted-foreground",e),...a}));n.displayName="TableCaption";export{r as T,m as a,f as b,i as c,d,c as e};
@@ -0,0 +1,11 @@
1
+ import{a1 as a}from"./index-COIlCLCW.js";/**
2
+ * @license lucide-react v1.45.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const e={name:"plus",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]};e.node;const o=a(e);/**
7
+ * @license lucide-react v1.45.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const t={name:"trash",size:24,node:[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],aliases:["trash-2"]};t.node;const h=a(t);export{o as P,h as T};
@@ -0,0 +1,5 @@
1
+ var ti=Object.defineProperty;var ni=(e,t,n)=>t in e?ti(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ft=(e,t,n)=>ni(e,typeof t!="symbol"?t+"":t,n);import{g as rr,j as D,i as ne}from"./vendor-react-C5H_1fOn.js";function Ve(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ri(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Xt(e){let t,n,r;e.length!==2?(t=Ve,n=(u,s)=>Ve(e(u),s),r=(u,s)=>e(u)-s):(t=e===Ve||e===ri?e:ii,n=e,r=e);function i(u,s,l=0,h=u.length){if(l<h){if(t(s,s)!==0)return h;do{const f=l+h>>>1;n(u[f],s)<0?l=f+1:h=f}while(l<h)}return l}function a(u,s,l=0,h=u.length){if(l<h){if(t(s,s)!==0)return h;do{const f=l+h>>>1;n(u[f],s)<=0?l=f+1:h=f}while(l<h)}return l}function o(u,s,l=0,h=u.length){const f=i(u,s,l,h-1);return f>l&&r(u[f-1],s)>-r(u[f],s)?f-1:f}return{left:i,center:o,right:a}}function ii(){return 0}function ai(e){return e===null?NaN:+e}const oi=Xt(Ve),ui=oi.right;Xt(ai).center;const si=Math.sqrt(50),li=Math.sqrt(10),fi=Math.sqrt(2);function Be(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=si?10:a>=li?5:a>=fi?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/o,u=Math.round(e*l),s=Math.round(t*l),u/l<e&&++u,s/l>t&&--s,l=-l):(l=Math.pow(10,i)*o,u=Math.round(e/l),s=Math.round(t/l),u*l<e&&++u,s*l>t&&--s),s<u&&.5<=n&&n<2?Be(e,t,n*2):[u,s,l]}function ci(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?Be(t,e,n):Be(e,t,n);if(!(a>=i))return[];const u=a-i+1,s=new Array(u);if(r)if(o<0)for(let l=0;l<u;++l)s[l]=(a-l)/-o;else for(let l=0;l<u;++l)s[l]=(a-l)*o;else if(o<0)for(let l=0;l<u;++l)s[l]=(i+l)/-o;else for(let l=0;l<u;++l)s[l]=(i+l)*o;return s}function Ft(e,t,n){return t=+t,e=+e,n=+n,Be(e,t,n)[2]}function Ot(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Ft(t,e,n):Ft(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function ir(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Pe(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function He(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pe(){}var we=.7,Se=1/we,Te="\\s*([+-]?\\d+)\\s*",Re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",re="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",hi=/^#([0-9a-f]{3,8})$/,pi=new RegExp(`^rgb\\(${Te},${Te},${Te}\\)$`),gi=new RegExp(`^rgb\\(${re},${re},${re}\\)$`),di=new RegExp(`^rgba\\(${Te},${Te},${Te},${Re}\\)$`),mi=new RegExp(`^rgba\\(${re},${re},${re},${Re}\\)$`),yi=new RegExp(`^hsl\\(${Re},${re},${re}\\)$`),xi=new RegExp(`^hsla\\(${Re},${re},${re},${Re}\\)$`),sn={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Pe(pe,Fe,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:ln,formatHex:ln,formatHex8:vi,formatHsl:wi,formatRgb:fn,toString:fn});function ln(){return this.rgb().formatHex()}function vi(){return this.rgb().formatHex8()}function wi(){return ar(this).formatHsl()}function fn(){return this.rgb().formatRgb()}function Fe(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=hi.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?cn(t):n===3?new z(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ze(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ze(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=pi.exec(e))?new z(t[1],t[2],t[3],1):(t=gi.exec(e))?new z(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=di.exec(e))?ze(t[1],t[2],t[3],t[4]):(t=mi.exec(e))?ze(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yi.exec(e))?gn(t[1],t[2]/100,t[3]/100,1):(t=xi.exec(e))?gn(t[1],t[2]/100,t[3]/100,t[4]):sn.hasOwnProperty(e)?cn(sn[e]):e==="transparent"?new z(NaN,NaN,NaN,0):null}function cn(e){return new z(e>>16&255,e>>8&255,e&255,1)}function ze(e,t,n,r){return r<=0&&(e=t=n=NaN),new z(e,t,n,r)}function Zt(e){return e instanceof pe||(e=Fe(e)),e?(e=e.rgb(),new z(e.r,e.g,e.b,e.opacity)):new z}function It(e,t,n,r){return arguments.length===1?Zt(e):new z(e,t,n,r??1)}function z(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Pe(z,It,He(pe,{brighter(e){return e=e==null?Se:Math.pow(Se,e),new z(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?we:Math.pow(we,e),new z(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new z(xe(this.r),xe(this.g),xe(this.b),Ge(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:hn,formatHex:hn,formatHex8:bi,formatRgb:pn,toString:pn}));function hn(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}`}function bi(){return`#${ye(this.r)}${ye(this.g)}${ye(this.b)}${ye((isNaN(this.opacity)?1:this.opacity)*255)}`}function pn(){const e=Ge(this.opacity);return`${e===1?"rgb(":"rgba("}${xe(this.r)}, ${xe(this.g)}, ${xe(this.b)}${e===1?")":`, ${e})`}`}function Ge(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xe(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ye(e){return e=xe(e),(e<16?"0":"")+e.toString(16)}function gn(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new te(e,t,n,r)}function ar(e){if(e instanceof te)return new te(e.h,e.s,e.l,e.opacity);if(e instanceof pe||(e=Fe(e)),!e)return new te;if(e instanceof te)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,u=a-i,s=(a+i)/2;return u?(t===a?o=(n-r)/u+(n<r)*6:n===a?o=(r-t)/u+2:o=(t-n)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new te(o,u,s,e.opacity)}function Ht(e,t,n,r){return arguments.length===1?ar(e):new te(e,t,n,r??1)}function te(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Pe(te,Ht,He(pe,{brighter(e){return e=e==null?Se:Math.pow(Se,e),new te(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?we:Math.pow(we,e),new te(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new z(ct(e>=240?e-240:e+120,i,r),ct(e,i,r),ct(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new te(dn(this.h),We(this.s),We(this.l),Ge(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ge(this.opacity);return`${e===1?"hsl(":"hsla("}${dn(this.h)}, ${We(this.s)*100}%, ${We(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dn(e){return e=(e||0)%360,e<0?e+360:e}function We(e){return Math.max(0,Math.min(1,e||0))}function ct(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const or=Math.PI/180,ur=180/Math.PI,Xe=18,sr=.96422,lr=1,fr=.82521,cr=4/29,Ne=6/29,hr=3*Ne*Ne,Mi=Ne*Ne*Ne;function pr(e){if(e instanceof ie)return new ie(e.l,e.a,e.b,e.opacity);if(e instanceof ue)return gr(e);e instanceof z||(e=Zt(e));var t=dt(e.r),n=dt(e.g),r=dt(e.b),i=ht((.2225045*t+.7168786*n+.0606169*r)/lr),a,o;return t===n&&n===r?a=o=i:(a=ht((.4360747*t+.3850649*n+.1430804*r)/sr),o=ht((.0139322*t+.0971045*n+.7141733*r)/fr)),new ie(116*i-16,500*(a-i),200*(i-o),e.opacity)}function Yt(e,t,n,r){return arguments.length===1?pr(e):new ie(e,t,n,r??1)}function ie(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Pe(ie,Yt,He(pe,{brighter(e){return new ie(this.l+Xe*(e??1),this.a,this.b,this.opacity)},darker(e){return new ie(this.l-Xe*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=sr*pt(t),e=lr*pt(e),n=fr*pt(n),new z(gt(3.1338561*t-1.6168667*e-.4906146*n),gt(-.9787684*t+1.9161415*e+.033454*n),gt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function ht(e){return e>Mi?Math.pow(e,1/3):e/hr+cr}function pt(e){return e>Ne?e*e*e:hr*(e-cr)}function gt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function dt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function ki(e){if(e instanceof ue)return new ue(e.h,e.c,e.l,e.opacity);if(e instanceof ie||(e=pr(e)),e.a===0&&e.b===0)return new ue(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*ur;return new ue(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function zt(e,t,n,r){return arguments.length===1?ki(e):new ue(e,t,n,r??1)}function ue(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function gr(e){if(isNaN(e.h))return new ie(e.l,0,0,e.opacity);var t=e.h*or;return new ie(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pe(ue,zt,He(pe,{brighter(e){return new ue(this.h,this.c,this.l+Xe*(e??1),this.opacity)},darker(e){return new ue(this.h,this.c,this.l-Xe*(e??1),this.opacity)},rgb(){return gr(this).rgb()}}));var dr=-.14861,Qt=1.78277,Jt=-.29227,it=-.90649,Oe=1.97294,mn=Oe*it,yn=Oe*Qt,xn=Qt*Jt-it*dr;function Ci(e){if(e instanceof ve)return new ve(e.h,e.s,e.l,e.opacity);e instanceof z||(e=Zt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(xn*r+mn*t-yn*n)/(xn+mn-yn),a=r-i,o=(Oe*(n-i)-Jt*a)/it,u=Math.sqrt(o*o+a*a)/(Oe*i*(1-i)),s=u?Math.atan2(o,a)*ur-120:NaN;return new ve(s<0?s+360:s,u,i,e.opacity)}function Wt(e,t,n,r){return arguments.length===1?Ci(e):new ve(e,t,n,r??1)}function ve(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Pe(ve,Wt,He(pe,{brighter(e){return e=e==null?Se:Math.pow(Se,e),new ve(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?we:Math.pow(we,e),new ve(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*or,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new z(255*(t+n*(dr*r+Qt*i)),255*(t+n*(Jt*r+it*i)),255*(t+n*(Oe*r)),this.opacity)}}));const at=e=>()=>e;function mr(e,t){return function(n){return e+n*t}}function Ti(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Kt(e,t){var n=t-e;return n?mr(e,n>180||n<-180?n-360*Math.round(n/360):n):at(isNaN(e)?t:e)}function Ni(e){return(e=+e)==1?W:function(t,n){return n-t?Ti(t,n,e):at(isNaN(t)?n:t)}}function W(e,t){var n=t-e;return n?mr(e,n):at(isNaN(e)?t:e)}const jt=(function e(t){var n=Ni(t);function r(i,a){var o=n((i=It(i)).r,(a=It(a)).r),u=n(i.g,a.g),s=n(i.b,a.b),l=W(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=u(h),i.b=s(h),i.opacity=l(h),i+""}}return r.gamma=e,r})(1);function Si(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function _i(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $i(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=en(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(u){for(o=0;o<r;++o)a[o]=i[o](u);return a}}function Ei(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ze(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Pi(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=en(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var qt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,mt=new RegExp(qt.source,"g");function Ai(e){return function(){return e}}function Di(e){return function(t){return e(t)+""}}function Ui(e,t){var n=qt.lastIndex=mt.lastIndex=0,r,i,a,o=-1,u=[],s=[];for(e=e+"",t=t+"";(r=qt.exec(e))&&(i=mt.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),u[o]?u[o]+=a:u[++o]=a),(r=r[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:Ze(r,i)})),n=mt.lastIndex;return n<t.length&&(a=t.slice(n),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?Di(s[0].x):Ai(t):(t=s.length,function(l){for(var h=0,f;h<t;++h)u[(f=s[h]).i]=f.x(l);return u.join("")})}function en(e,t){var n=typeof t,r;return t==null||n==="boolean"?at(t):(n==="number"?Ze:n==="string"?(r=Fe(t))?(t=r,jt):Ui:t instanceof Fe?jt:t instanceof Date?Ei:_i(t)?Si:Array.isArray(t)?$i:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Pi:Ze)(e,t)}function yr(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function xr(e){return function(t,n){var r=e((t=Ht(t)).h,(n=Ht(n)).h),i=W(t.s,n.s),a=W(t.l,n.l),o=W(t.opacity,n.opacity);return function(u){return t.h=r(u),t.s=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const Li=xr(Kt);var Ri=xr(W);function Fi(e,t){var n=W((e=Yt(e)).l,(t=Yt(t)).l),r=W(e.a,t.a),i=W(e.b,t.b),a=W(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function vr(e){return function(t,n){var r=e((t=zt(t)).h,(n=zt(n)).h),i=W(t.c,n.c),a=W(t.l,n.l),o=W(t.opacity,n.opacity);return function(u){return t.h=r(u),t.c=i(u),t.l=a(u),t.opacity=o(u),t+""}}}const Oi=vr(Kt);var Ii=vr(W);function wr(e){return(function t(n){n=+n;function r(i,a){var o=e((i=Wt(i)).h,(a=Wt(a)).h),u=W(i.s,a.s),s=W(i.l,a.l),l=W(i.opacity,a.opacity);return function(h){return i.h=o(h),i.s=u(h),i.l=s(Math.pow(h,n)),i.opacity=l(h),i+""}}return r.gamma=t,r})(1)}const Hi=wr(Kt);var Yi=wr(W);function zi(e){return function(){return e}}function Wi(e){return+e}var vn=[0,1];function Ce(e){return e}function Vt(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:zi(isNaN(t)?NaN:.5)}function ji(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function qi(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Vt(i,r),a=n(o,a)):(r=Vt(r,i),a=n(a,o)),function(u){return a(r(u))}}function Vi(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Vt(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(u){var s=ui(e,u,1,r)-1;return a[s](i[s](u))}}function br(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Bi(){var e=vn,t=vn,n=en,r,i,a,o=Ce,u,s,l;function h(){var c=Math.min(e.length,t.length);return o!==Ce&&(o=ji(e[0],e[c-1])),u=c>2?Vi:qi,s=l=null,f}function f(c){return c==null||isNaN(c=+c)?a:(s||(s=u(e.map(r),t,n)))(r(o(c)))}return f.invert=function(c){return o(i((l||(l=u(t,e.map(r),Ze)))(c)))},f.domain=function(c){return arguments.length?(e=Array.from(c,Wi),h()):e.slice()},f.range=function(c){return arguments.length?(t=Array.from(c),h()):t.slice()},f.rangeRound=function(c){return t=Array.from(c),n=yr,h()},f.clamp=function(c){return arguments.length?(o=c?!0:Ce,h()):o!==Ce},f.interpolate=function(c){return arguments.length?(n=c,h()):n},f.unknown=function(c){return arguments.length?(a=c,f):a},function(c,x){return r=c,i=x,h()}}function Mr(){return Bi()(Ce,Ce)}function Gi(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Qe(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function _e(e){return e=Qe(Math.abs(e)),e?e[1]:NaN}function Xi(e,t){return function(n,r){for(var i=n.length,a=[],o=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),a.push(n.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Zi(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Qi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Je(e){if(!(t=Qi.exec(e)))throw new Error("invalid format: "+e);var t;return new tn({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Je.prototype=tn.prototype;function tn(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}tn.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ji(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var Ke;function Ki(e,t){var n=Qe(e,t);if(!n)return Ke=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Ke=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Qe(e,Math.max(0,t+a-1))[0]}function wn(e,t){var n=Qe(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const bn={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Gi,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>wn(e*100,t),r:wn,s:Ki,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Mn(e){return e}var kn=Array.prototype.map,Cn=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ea(e){var t=e.grouping===void 0||e.thousands===void 0?Mn:Xi(kn.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?Mn:Zi(kn.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function l(f,c){f=Je(f);var x=f.fill,b=f.align,v=f.sign,k=f.symbol,N=f.zero,g=f.width,d=f.comma,p=f.precision,M=f.trim,m=f.type;m==="n"?(d=!0,m="g"):bn[m]||(p===void 0&&(p=12),M=!0,m="g"),(N||x==="0"&&b==="=")&&(N=!0,x="0",b="=");var C=(c&&c.prefix!==void 0?c.prefix:"")+(k==="$"?n:k==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():""),L=(k==="$"?r:/[%p]/.test(m)?o:"")+(c&&c.suffix!==void 0?c.suffix:""),R=bn[m],J=/[defgprs%]/.test(m);p=p===void 0?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p));function O(T){var A=C,_=L,H,U,X;if(m==="c")_=R(T)+_,T="";else{T=+T;var oe=T<0||1/T<0;if(T=isNaN(T)?s:R(Math.abs(T),p),M&&(T=Ji(T)),oe&&+T==0&&v!=="+"&&(oe=!1),A=(oe?v==="("?v:u:v==="-"||v==="("?"":v)+A,_=(m==="s"&&!isNaN(T)&&Ke!==void 0?Cn[8+Ke/3]:"")+_+(oe&&v==="("?")":""),J){for(H=-1,U=T.length;++H<U;)if(X=T.charCodeAt(H),48>X||X>57){_=(X===46?i+T.slice(H+1):T.slice(H))+_,T=T.slice(0,H);break}}}d&&!N&&(T=t(T,1/0));var K=A.length+T.length+_.length,$=K<g?new Array(g-K+1).join(x):"";switch(d&&N&&(T=t($+T,$.length?g-_.length:1/0),$=""),b){case"<":T=A+T+_+$;break;case"=":T=A+$+T+_;break;case"^":T=$.slice(0,K=$.length>>1)+A+T+_+$.slice(K);break;default:T=$+A+T+_;break}return a(T)}return O.toString=function(){return f+""},O}function h(f,c){var x=Math.max(-8,Math.min(8,Math.floor(_e(c)/3)))*3,b=Math.pow(10,-x),v=l((f=Je(f),f.type="f",f),{suffix:Cn[8+x/3]});return function(k){return v(b*k)}}return{format:l,formatPrefix:h}}var je,kr,Cr;ta({thousands:",",grouping:[3],currency:["$",""]});function ta(e){return je=ea(e),kr=je.format,Cr=je.formatPrefix,je}function na(e){return Math.max(0,-_e(Math.abs(e)))}function ra(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(_e(t)/3)))*3-_e(Math.abs(e)))}function ia(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_e(t)-_e(e))+1}function aa(e,t,n,r){var i=Ot(e,t,n),a;switch(r=Je(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=ra(i,o))&&(r.precision=a),Cr(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=ia(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=na(i))&&(r.precision=a-(r.type==="%")*2);break}}return kr(r)}function oa(e){var t=e.domain;return e.ticks=function(n){var r=t();return ci(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return aa(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],u=r[a],s,l,h=10;for(u<o&&(l=o,o=u,u=l,l=i,i=a,a=l);h-- >0;){if(l=Ft(o,u,n),l===s)return r[i]=o,r[a]=u,t(r);if(l>0)o=Math.floor(o/l)*l,u=Math.ceil(u/l)*l;else if(l<0)o=Math.ceil(o*l)/l,u=Math.floor(u*l)/l;else break;s=l}return e},e}function Tr(){var e=Mr();return e.copy=function(){return br(e,Tr())},ir.apply(e,arguments),oa(e)}function ua(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}const yt=new Date,xt=new Date;function I(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),u=i.ceil(a);return a-o<u-a?o:u},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,u)=>{const s=[];if(a=i.ceil(a),u=u==null?1:Math.floor(u),!(a<o)||!(u>0))return s;let l;do s.push(l=new Date(+a)),t(a,u),e(a);while(l<a&&a<o);return s},i.filter=a=>I(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,u)=>{if(o>=o)if(u<0)for(;++u<=0;)for(;t(o,-1),!a(o););else for(;--u>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(yt.setTime(+a),xt.setTime(+o),e(yt),e(xt),Math.floor(n(yt,xt))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const et=I(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);et.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?I(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):et);et.range;const se=1e3,Z=se*60,le=Z*60,fe=le*24,nn=fe*7,Tn=fe*30,vt=fe*365,ce=I(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*se)},(e,t)=>(t-e)/se,e=>e.getUTCSeconds());ce.range;const ot=I(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*se)},(e,t)=>{e.setTime(+e+t*Z)},(e,t)=>(t-e)/Z,e=>e.getMinutes());ot.range;const Nr=I(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Z)},(e,t)=>(t-e)/Z,e=>e.getUTCMinutes());Nr.range;const ut=I(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*se-e.getMinutes()*Z)},(e,t)=>{e.setTime(+e+t*le)},(e,t)=>(t-e)/le,e=>e.getHours());ut.range;const Sr=I(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*le)},(e,t)=>(t-e)/le,e=>e.getUTCHours());Sr.range;const Ae=I(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Z)/fe,e=>e.getDate()-1);Ae.range;const st=I(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fe,e=>e.getUTCDate()-1);st.range;const sa=I(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/fe,e=>Math.floor(e/fe));sa.range;function be(e){return I(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Z)/nn)}const Ye=be(0),tt=be(1),la=be(2),fa=be(3),$e=be(4),ca=be(5),ha=be(6);Ye.range;tt.range;la.range;fa.range;$e.range;ca.range;ha.range;function Me(e){return I(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/nn)}const rn=Me(0),nt=Me(1),pa=Me(2),ga=Me(3),Ee=Me(4),da=Me(5),ma=Me(6);rn.range;nt.range;pa.range;ga.range;Ee.range;da.range;ma.range;const lt=I(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());lt.range;const _r=I(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());_r.range;const ae=I(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ae.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:I(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ae.range;const he=I(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());he.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:I(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});he.range;function ya(e,t,n,r,i,a){const o=[[ce,1,se],[ce,5,5*se],[ce,15,15*se],[ce,30,30*se],[a,1,Z],[a,5,5*Z],[a,15,15*Z],[a,30,30*Z],[i,1,le],[i,3,3*le],[i,6,6*le],[i,12,12*le],[r,1,fe],[r,2,2*fe],[n,1,nn],[t,1,Tn],[t,3,3*Tn],[e,1,vt]];function u(l,h,f){const c=h<l;c&&([l,h]=[h,l]);const x=f&&typeof f.range=="function"?f:s(l,h,f),b=x?x.range(l,+h+1):[];return c?b.reverse():b}function s(l,h,f){const c=Math.abs(h-l)/f,x=Xt(([,,k])=>k).right(o,c);if(x===o.length)return e.every(Ot(l/vt,h/vt,f));if(x===0)return et.every(Math.max(Ot(l,h,f),1));const[b,v]=o[c/o[x-1][2]<o[x][2]/c?x-1:x];return b.every(v)}return[u,s]}const[xa,va]=ya(ae,lt,Ye,Ae,ut,ot);function wt(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function bt(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function De(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function wa(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,u=e.months,s=e.shortMonths,l=Ue(i),h=Le(i),f=Ue(a),c=Le(a),x=Ue(o),b=Le(o),v=Ue(u),k=Le(u),N=Ue(s),g=Le(s),d={a:X,A:oe,b:K,B:$,c:null,d:Pn,e:Pn,f:Wa,g:Ka,G:to,H:Ha,I:Ya,j:za,L:$r,m:ja,M:qa,p:ge,q:Gr,Q:Un,s:Ln,S:Va,u:Ba,U:Ga,V:Xa,w:Za,W:Qa,x:null,X:null,y:Ja,Y:eo,Z:no,"%":Dn},p={a:Xr,A:Zr,b:Qr,B:Jr,c:null,d:An,e:An,f:oo,g:yo,G:vo,H:ro,I:io,j:ao,L:Pr,m:uo,M:so,p:Kr,q:ei,Q:Un,s:Ln,S:lo,u:fo,U:co,V:ho,w:po,W:go,x:null,X:null,y:mo,Y:xo,Z:wo,"%":Dn},M={a:J,A:O,b:T,B:A,c:_,d:$n,e:$n,f:Ra,g:_n,G:Sn,H:En,I:En,j:Aa,L:La,m:Pa,M:Da,p:R,q:Ea,Q:Oa,s:Ia,S:Ua,u:Ta,U:Na,V:Sa,w:Ca,W:_a,x:H,X:U,y:_n,Y:Sn,Z:$a,"%":Fa};d.x=m(n,d),d.X=m(r,d),d.c=m(t,d),p.x=m(n,p),p.X=m(r,p),p.c=m(t,p);function m(w,S){return function(E){var y=[],q=-1,F=0,V=w.length,B,de,un;for(E instanceof Date||(E=new Date(+E));++q<V;)w.charCodeAt(q)===37&&(y.push(w.slice(F,q)),(de=Nn[B=w.charAt(++q)])!=null?B=w.charAt(++q):de=B==="e"?" ":"0",(un=S[B])&&(B=un(E,de)),y.push(B),F=q+1);return y.push(w.slice(F,q)),y.join("")}}function C(w,S){return function(E){var y=De(1900,void 0,1),q=L(y,w,E+="",0),F,V;if(q!=E.length)return null;if("Q"in y)return new Date(y.Q);if("s"in y)return new Date(y.s*1e3+("L"in y?y.L:0));if(S&&!("Z"in y)&&(y.Z=0),"p"in y&&(y.H=y.H%12+y.p*12),y.m===void 0&&(y.m="q"in y?y.q:0),"V"in y){if(y.V<1||y.V>53)return null;"w"in y||(y.w=1),"Z"in y?(F=bt(De(y.y,0,1)),V=F.getUTCDay(),F=V>4||V===0?nt.ceil(F):nt(F),F=st.offset(F,(y.V-1)*7),y.y=F.getUTCFullYear(),y.m=F.getUTCMonth(),y.d=F.getUTCDate()+(y.w+6)%7):(F=wt(De(y.y,0,1)),V=F.getDay(),F=V>4||V===0?tt.ceil(F):tt(F),F=Ae.offset(F,(y.V-1)*7),y.y=F.getFullYear(),y.m=F.getMonth(),y.d=F.getDate()+(y.w+6)%7)}else("W"in y||"U"in y)&&("w"in y||(y.w="u"in y?y.u%7:"W"in y?1:0),V="Z"in y?bt(De(y.y,0,1)).getUTCDay():wt(De(y.y,0,1)).getDay(),y.m=0,y.d="W"in y?(y.w+6)%7+y.W*7-(V+5)%7:y.w+y.U*7-(V+6)%7);return"Z"in y?(y.H+=y.Z/100|0,y.M+=y.Z%100,bt(y)):wt(y)}}function L(w,S,E,y){for(var q=0,F=S.length,V=E.length,B,de;q<F;){if(y>=V)return-1;if(B=S.charCodeAt(q++),B===37){if(B=S.charAt(q++),de=M[B in Nn?S.charAt(q++):B],!de||(y=de(w,E,y))<0)return-1}else if(B!=E.charCodeAt(y++))return-1}return y}function R(w,S,E){var y=l.exec(S.slice(E));return y?(w.p=h.get(y[0].toLowerCase()),E+y[0].length):-1}function J(w,S,E){var y=x.exec(S.slice(E));return y?(w.w=b.get(y[0].toLowerCase()),E+y[0].length):-1}function O(w,S,E){var y=f.exec(S.slice(E));return y?(w.w=c.get(y[0].toLowerCase()),E+y[0].length):-1}function T(w,S,E){var y=N.exec(S.slice(E));return y?(w.m=g.get(y[0].toLowerCase()),E+y[0].length):-1}function A(w,S,E){var y=v.exec(S.slice(E));return y?(w.m=k.get(y[0].toLowerCase()),E+y[0].length):-1}function _(w,S,E){return L(w,t,S,E)}function H(w,S,E){return L(w,n,S,E)}function U(w,S,E){return L(w,r,S,E)}function X(w){return o[w.getDay()]}function oe(w){return a[w.getDay()]}function K(w){return s[w.getMonth()]}function $(w){return u[w.getMonth()]}function ge(w){return i[+(w.getHours()>=12)]}function Gr(w){return 1+~~(w.getMonth()/3)}function Xr(w){return o[w.getUTCDay()]}function Zr(w){return a[w.getUTCDay()]}function Qr(w){return s[w.getUTCMonth()]}function Jr(w){return u[w.getUTCMonth()]}function Kr(w){return i[+(w.getUTCHours()>=12)]}function ei(w){return 1+~~(w.getUTCMonth()/3)}return{format:function(w){var S=m(w+="",d);return S.toString=function(){return w},S},parse:function(w){var S=C(w+="",!1);return S.toString=function(){return w},S},utcFormat:function(w){var S=m(w+="",p);return S.toString=function(){return w},S},utcParse:function(w){var S=C(w+="",!0);return S.toString=function(){return w},S}}}var Nn={"-":"",_:" ",0:"0"},j=/^\s*\d+/,ba=/^%/,Ma=/[\\^$*+?|[\]().{}]/g;function P(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function ka(e){return e.replace(Ma,"\\$&")}function Ue(e){return new RegExp("^(?:"+e.map(ka).join("|")+")","i")}function Le(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Ca(e,t,n){var r=j.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Ta(e,t,n){var r=j.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Na(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Sa(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function _a(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Sn(e,t,n){var r=j.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _n(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function $a(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Ea(e,t,n){var r=j.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Pa(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $n(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Aa(e,t,n){var r=j.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function En(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Da(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ua(e,t,n){var r=j.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function La(e,t,n){var r=j.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ra(e,t,n){var r=j.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Fa(e,t,n){var r=ba.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Oa(e,t,n){var r=j.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ia(e,t,n){var r=j.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Pn(e,t){return P(e.getDate(),t,2)}function Ha(e,t){return P(e.getHours(),t,2)}function Ya(e,t){return P(e.getHours()%12||12,t,2)}function za(e,t){return P(1+Ae.count(ae(e),e),t,3)}function $r(e,t){return P(e.getMilliseconds(),t,3)}function Wa(e,t){return $r(e,t)+"000"}function ja(e,t){return P(e.getMonth()+1,t,2)}function qa(e,t){return P(e.getMinutes(),t,2)}function Va(e,t){return P(e.getSeconds(),t,2)}function Ba(e){var t=e.getDay();return t===0?7:t}function Ga(e,t){return P(Ye.count(ae(e)-1,e),t,2)}function Er(e){var t=e.getDay();return t>=4||t===0?$e(e):$e.ceil(e)}function Xa(e,t){return e=Er(e),P($e.count(ae(e),e)+(ae(e).getDay()===4),t,2)}function Za(e){return e.getDay()}function Qa(e,t){return P(tt.count(ae(e)-1,e),t,2)}function Ja(e,t){return P(e.getFullYear()%100,t,2)}function Ka(e,t){return e=Er(e),P(e.getFullYear()%100,t,2)}function eo(e,t){return P(e.getFullYear()%1e4,t,4)}function to(e,t){var n=e.getDay();return e=n>=4||n===0?$e(e):$e.ceil(e),P(e.getFullYear()%1e4,t,4)}function no(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+P(t/60|0,"0",2)+P(t%60,"0",2)}function An(e,t){return P(e.getUTCDate(),t,2)}function ro(e,t){return P(e.getUTCHours(),t,2)}function io(e,t){return P(e.getUTCHours()%12||12,t,2)}function ao(e,t){return P(1+st.count(he(e),e),t,3)}function Pr(e,t){return P(e.getUTCMilliseconds(),t,3)}function oo(e,t){return Pr(e,t)+"000"}function uo(e,t){return P(e.getUTCMonth()+1,t,2)}function so(e,t){return P(e.getUTCMinutes(),t,2)}function lo(e,t){return P(e.getUTCSeconds(),t,2)}function fo(e){var t=e.getUTCDay();return t===0?7:t}function co(e,t){return P(rn.count(he(e)-1,e),t,2)}function Ar(e){var t=e.getUTCDay();return t>=4||t===0?Ee(e):Ee.ceil(e)}function ho(e,t){return e=Ar(e),P(Ee.count(he(e),e)+(he(e).getUTCDay()===4),t,2)}function po(e){return e.getUTCDay()}function go(e,t){return P(nt.count(he(e)-1,e),t,2)}function mo(e,t){return P(e.getUTCFullYear()%100,t,2)}function yo(e,t){return e=Ar(e),P(e.getUTCFullYear()%100,t,2)}function xo(e,t){return P(e.getUTCFullYear()%1e4,t,4)}function vo(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Ee(e):Ee.ceil(e),P(e.getUTCFullYear()%1e4,t,4)}function wo(){return"+0000"}function Dn(){return"%"}function Un(e){return+e}function Ln(e){return Math.floor(+e/1e3)}var ke,Dr;bo({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function bo(e){return ke=wa(e),Dr=ke.format,ke.parse,ke.utcFormat,ke.utcParse,ke}function Mo(e){return new Date(e)}function ko(e){return e instanceof Date?+e:+new Date(+e)}function Ur(e,t,n,r,i,a,o,u,s,l){var h=Mr(),f=h.invert,c=h.domain,x=l(".%L"),b=l(":%S"),v=l("%I:%M"),k=l("%I %p"),N=l("%a %d"),g=l("%b %d"),d=l("%B"),p=l("%Y");function M(m){return(s(m)<m?x:u(m)<m?b:o(m)<m?v:a(m)<m?k:r(m)<m?i(m)<m?N:g:n(m)<m?d:p)(m)}return h.invert=function(m){return new Date(f(m))},h.domain=function(m){return arguments.length?c(Array.from(m,ko)):c().map(Mo)},h.ticks=function(m){var C=c();return e(C[0],C[C.length-1],m??10)},h.tickFormat=function(m,C){return C==null?M:l(C)},h.nice=function(m){var C=c();return(!m||typeof m.range!="function")&&(m=t(C[0],C[C.length-1],m??10)),m?c(ua(C,m)):h},h.copy=function(){return br(h,Ur(e,t,n,r,i,a,o,u,s,l))},h}function Co(){return ir.apply(Ur(xa,va,ae,lt,Ye,Ae,ut,ot,ce,Dr).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function To(e,t){t.domain&&("nice"in e||"quantiles"in e||"padding"in e,e.domain(t.domain))}function No(e,t){t.range&&("padding"in e,e.range(t.range))}function So(e,t){"align"in e&&"align"in t&&typeof t.align<"u"&&e.align(t.align)}function _o(e,t){"base"in e&&"base"in t&&typeof t.base<"u"&&e.base(t.base)}function $o(e,t){"clamp"in e&&"clamp"in t&&typeof t.clamp<"u"&&e.clamp(t.clamp)}function Eo(e,t){"constant"in e&&"constant"in t&&typeof t.constant<"u"&&e.constant(t.constant)}function Po(e,t){"exponent"in e&&"exponent"in t&&typeof t.exponent<"u"&&e.exponent(t.exponent)}const Rn={lab:Fi,hcl:Oi,"hcl-long":Ii,hsl:Li,"hsl-long":Ri,cubehelix:Hi,"cubehelix-long":Yi,rgb:jt};function Ao(e){switch(e){case"lab":case"hcl":case"hcl-long":case"hsl":case"hsl-long":case"cubehelix":case"cubehelix-long":case"rgb":return Rn[e]}const{type:t,gamma:n}=e,r=Rn[t];return typeof n>"u"?r:r.gamma(n)}function Do(e,t){if("interpolate"in t&&"interpolate"in e&&typeof t.interpolate<"u"){const n=Ao(t.interpolate);e.interpolate(n)}}const Uo=new Date(Date.UTC(2020,1,2,3,4,5)),Lo="%Y-%m-%d %H:%M";function Ro(e){return e.tickFormat(1,Lo)(Uo)==="2020-02-02 03:04"}const Fn={day:Ae,hour:ut,minute:ot,month:lt,second:ce,week:Ye,year:ae},On={day:st,hour:Sr,minute:Nr,month:_r,second:ce,week:rn,year:he};function Fo(e,t){if("nice"in t&&typeof t.nice<"u"&&"nice"in e){const{nice:n}=t;if(typeof n=="boolean")n&&e.nice();else if(typeof n=="number")e.nice(n);else{const r=e,i=Ro(r);if(typeof n=="string")r.nice(i?On[n]:Fn[n]);else{const{interval:a,step:o}=n,u=(i?On[a]:Fn[a]).every(o);u!=null&&r.nice(u)}}}}function Oo(e,t){"padding"in e&&"padding"in t&&typeof t.padding<"u"&&e.padding(t.padding),"paddingInner"in e&&"paddingInner"in t&&typeof t.paddingInner<"u"&&e.paddingInner(t.paddingInner),"paddingOuter"in e&&"paddingOuter"in t&&typeof t.paddingOuter<"u"&&e.paddingOuter(t.paddingOuter)}function Io(e,t){if(t.reverse){const n=e.range().slice().reverse();"padding"in e,e.range(n)}}function Ho(e,t){"round"in t&&typeof t.round<"u"&&(t.round&&"interpolate"in t&&typeof t.interpolate<"u"?console.warn("[visx/scale/applyRound] ignoring round: scale config contains round and interpolate. only applying interpolate. config:",t):"round"in e?e.round(t.round):"interpolate"in e&&t.round&&e.interpolate(yr))}function Yo(e,t){"unknown"in e&&"unknown"in t&&typeof t.unknown<"u"&&e.unknown(t.unknown)}function zo(e,t){if("zero"in t&&t.zero===!0){const n=e.domain(),[r,i]=n,a=i<r,[o,u]=a?[i,r]:[r,i],s=[Math.min(0,o),Math.max(0,u)];e.domain(a?s.reverse():s)}}const Wo=["domain","nice","zero","interpolate","round","range","reverse","align","base","clamp","constant","exponent","padding","unknown"],jo={domain:To,nice:Fo,zero:zo,interpolate:Do,round:Ho,align:So,base:_o,clamp:$o,constant:Eo,exponent:Po,padding:Oo,range:No,reverse:Io,unknown:Yo};function Lr(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const r=new Set(t),i=Wo.filter(a=>r.has(a));return function(o,u){return typeof u<"u"&&i.forEach(s=>{jo[s](o,u)}),o}}const qo=Lr("domain","range","reverse","clamp","interpolate","nice","round","zero");function Hu(e){return qo(Tr(),e)}const Vo=Lr("domain","range","reverse","clamp","interpolate","nice","round");function Yu(e){return Vo(Co(),e)}function Rr(e){if((typeof e=="function"||typeof e=="object"&&e)&&"valueOf"in e){const t=e.valueOf();if(typeof t=="number")return t}return e}function Fr(e,t){const n=e;return"ticks"in n?n.ticks(t):n.domain().filter((r,i,a)=>t==null||a.length<=t||i%Math.round((a.length-1)/t)===0)}function Bo(e){return e==null?void 0:e.toString()}var Mt={exports:{}};/*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */var In;function Go(){return In||(In=1,(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var a="",o=0;o<arguments.length;o++){var u=arguments[o];u&&(a=i(a,r(u)))}return a}function r(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return n.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var o="";for(var u in a)t.call(a,u)&&a[u]&&(o=i(o,u));return o}function i(a,o){return o?a?a+" "+o:a+o:a}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(Mt)),Mt.exports}var Xo=Go();const Q=rr(Xo);function Y(e){return function(){return e}}const Bt=Math.PI,Gt=2*Bt,me=1e-6,Zo=Gt-me;function Or(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Qo(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return Or;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Jo{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Or:Qo(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=r-t,l=i-n,h=o-t,f=u-n,c=h*h+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(c>me)if(!(Math.abs(f*s-l*h)>me)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-o,b=i-u,v=s*s+l*l,k=x*x+b*b,N=Math.sqrt(v),g=Math.sqrt(c),d=a*Math.tan((Bt-Math.acos((v+c-k)/(2*N*g)))/2),p=d/g,M=d/N;Math.abs(p-1)>me&&this._append`L${t+p*h},${n+p*f}`,this._append`A${a},${a},0,0,${+(f*x>h*b)},${this._x1=t+M*s},${this._y1=n+M*l}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),s=r*Math.sin(i),l=t+u,h=n+s,f=1^o,c=o?i-a:a-i;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>me||Math.abs(this._y1-h)>me)&&this._append`L${l},${h}`,r&&(c<0&&(c=c%Gt+Gt),c>Zo?this._append`A${r},${r},0,1,${f},${t-u},${n-s}A${r},${r},0,1,${f},${this._x1=l},${this._y1=h}`:c>me&&this._append`A${r},${r},0,${+(c>=Bt)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function Ir(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Jo(t)}function Hr(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yr(e){this._context=e}Yr.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function zr(e){return new Yr(e)}function Wr(e){return e[0]}function jr(e){return e[1]}function qr(e,t){var n=Y(!0),r=null,i=zr,a=null,o=Ir(u);e=typeof e=="function"?e:e===void 0?Wr:Y(e),t=typeof t=="function"?t:t===void 0?jr:Y(t);function u(s){var l,h=(s=Hr(s)).length,f,c=!1,x;for(r==null&&(a=i(x=o())),l=0;l<=h;++l)!(l<h&&n(f=s[l],l,s))===c&&((c=!c)?a.lineStart():a.lineEnd()),c&&a.point(+e(f,l,s),+t(f,l,s));if(x)return a=null,x+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:Y(+s),u):e},u.y=function(s){return arguments.length?(t=typeof s=="function"?s:Y(+s),u):t},u.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Y(!!s),u):n},u.curve=function(s){return arguments.length?(i=s,r!=null&&(a=i(r)),u):i},u.context=function(s){return arguments.length?(s==null?r=a=null:a=i(r=s),u):r},u}function Ko(e,t,n){var r=null,i=Y(!0),a=null,o=zr,u=null,s=Ir(l);e=typeof e=="function"?e:e===void 0?Wr:Y(+e),t=typeof t=="function"?t:Y(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?jr:Y(+n);function l(f){var c,x,b,v=(f=Hr(f)).length,k,N=!1,g,d=new Array(v),p=new Array(v);for(a==null&&(u=o(g=s())),c=0;c<=v;++c){if(!(c<v&&i(k=f[c],c,f))===N)if(N=!N)x=c,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),b=c-1;b>=x;--b)u.point(d[b],p[b]);u.lineEnd(),u.areaEnd()}N&&(d[c]=+e(k,c,f),p[c]=+t(k,c,f),u.point(r?+r(k,c,f):d[c],n?+n(k,c,f):p[c]))}if(g)return u=null,g+""||null}function h(){return qr().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:Y(+f),r=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Y(+f),l):e},l.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Y(+f),l):r},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:Y(+f),n=null,l):t},l.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Y(+f),l):t},l.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Y(+f),l):n},l.lineX0=l.lineY0=function(){return h().x(e).y(t)},l.lineY1=function(){return h().x(e).y(n)},l.lineX1=function(){return h().x(r).y(t)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Y(!!f),l):i},l.curve=function(f){return arguments.length?(o=f,a!=null&&(u=o(a)),l):o},l.context=function(f){return arguments.length?(f==null?a=u=null:u=o(a=f),l):a},l}function Hn(e){return e<0?-1:1}function Yn(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),u=(a*i+o*r)/(r+i);return(Hn(a)+Hn(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function zn(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function kt(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-r)/3;e._context.bezierCurveTo(r+u,i+u*t,a-u,o-u*n,a,o)}function rt(e){this._context=e}rt.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:kt(this,this._t0,zn(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,kt(this,zn(this,n=Yn(this,e,t)),n);break;default:kt(this,this._t0,n=Yn(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};Object.create(rt.prototype).point=function(e,t){rt.prototype.point.call(this,t,e)};function zu(e){return new rt(e)}function ee(e,t){e(t)}function eu(){let{x:e,x0:t,x1:n,y:r,y0:i,y1:a,defined:o,curve:u}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const s=Ko();return e&&ee(s.x,e),t&&ee(s.x0,t),n&&ee(s.x1,n),r&&ee(s.y,r),i&&ee(s.y0,i),a&&ee(s.y1,a),o&&s.defined(o),u&&s.curve(u),s}function tu(){let{x:e,y:t,defined:n,curve:r}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const i=qr();return e&&ee(i.x,e),t&&ee(i.y,t),n&&i.defined(n),r&&i.curve(r),i}function an(e){let{top:t=0,left:n=0,transform:r,className:i,children:a,innerRef:o,...u}=e;return D.jsx("g",{ref:o,className:Q("visx-group",i),transform:r||`translate(${n}, ${t})`,...u,children:a})}function on(e){let{from:t={x:0,y:0},to:n={x:1,y:1},fill:r="transparent",className:i,innerRef:a,...o}=e;const u=t.x===n.x||t.y===n.y;return D.jsx("line",{ref:a,className:Q("visx-line",i),x1:t.x,y1:t.y,x2:n.x,y2:n.y,fill:r,shapeRendering:u?"crispEdges":"auto",...o})}function Wu(e){let{children:t,data:n=[],x:r,y:i,fill:a="transparent",className:o,curve:u,innerRef:s,defined:l=()=>!0,...h}=e;const f=tu({x:r,y:i,defined:l,curve:u});return t?D.jsx(D.Fragment,{children:t({path:f})}):D.jsx("path",{ref:s,className:Q("visx-linepath",o),d:f(n)||"",fill:a,strokeLinecap:"round",...h})}function ju(e){let{x:t,x0:n,x1:r,y:i,y1:a,y0:o,yScale:u,data:s=[],defined:l=()=>!0,className:h,curve:f,innerRef:c,children:x,...b}=e;const v=eu({x:t,x0:n,x1:r,defined:l,curve:f});return o==null?v.y0(u.range()[0]):ee(v.y0,o),i&&!a&&ee(v.y1,i),a&&!i&&ee(v.y1,a),x?D.jsx(D.Fragment,{children:x({path:v})}):D.jsx("path",{ref:c,className:Q("visx-area-closed",h),d:v(s)||"",...b})}function qu(e){let{className:t,innerRef:n,...r}=e;return D.jsx("rect",{ref:n,className:Q("visx-bar",t),...r})}var Ct,Wn;function nu(){if(Wn)return Ct;Wn=1,Ct=e;function e(r,i,a){r instanceof RegExp&&(r=t(r,a)),i instanceof RegExp&&(i=t(i,a));var o=n(r,i,a);return o&&{start:o[0],end:o[1],pre:a.slice(0,o[0]),body:a.slice(o[0]+r.length,o[1]),post:a.slice(o[1]+i.length)}}function t(r,i){var a=i.match(r);return a?a[0]:null}e.range=n;function n(r,i,a){var o,u,s,l,h,f=a.indexOf(r),c=a.indexOf(i,f+1),x=f;if(f>=0&&c>0){for(o=[],s=a.length;x>=0&&!h;)x==f?(o.push(x),f=a.indexOf(r,x+1)):o.length==1?h=[o.pop(),c]:(u=o.pop(),u<s&&(s=u,l=c),c=a.indexOf(i,x+1)),x=f<c&&f>=0?f:c;o.length&&(h=[s,l])}return h}return Ct}var Tt,jn;function ru(){if(jn)return Tt;jn=1,Tt=e;function e(r,i,a){r instanceof RegExp&&(r=t(r,a)),i instanceof RegExp&&(i=t(i,a));var o=n(r,i,a);return o&&{start:o[0],end:o[1],pre:a.slice(0,o[0]),body:a.slice(o[0]+r.length,o[1]),post:a.slice(o[1]+i.length)}}function t(r,i){var a=i.match(r);return a?a[0]:null}e.range=n;function n(r,i,a){var o,u,s,l,h,f=a.indexOf(r),c=a.indexOf(i,f+1),x=f;if(f>=0&&c>0){if(r===i)return[f,c];for(o=[],s=a.length;x>=0&&!h;)x==f?(o.push(x),f=a.indexOf(r,x+1)):o.length==1?h=[o.pop(),c]:(u=o.pop(),u<s&&(s=u,l=c),c=a.indexOf(i,x+1)),x=f<c&&f>=0?f:c;o.length&&(h=[s,l])}return h}return Tt}var Nt,qn;function iu(){if(qn)return Nt;qn=1;var e=ru();Nt=t;function t(i,a,o){var u=i;return n(i,a).reduce(function(s,l){return s.replace(l.functionIdentifier+"("+l.matches.body+")",r(l.matches.body,l.functionIdentifier,o,u,a))},i)}function n(i,a){var o=[],u=typeof a=="string"?new RegExp("\\b("+a+")\\("):a;do{var s=u.exec(i);if(!s)return o;if(s[1]===void 0)throw new Error("Missing the first couple of parenthesis to get the function identifier in "+a);var l=s[1],h=s.index,f=e("(",")",i.substring(h));if(!f||f.start!==s[0].length-1)throw new SyntaxError(l+"(): missing closing ')' in the value '"+i+"'");o.push({matches:f,functionIdentifier:l}),i=f.post}while(u.test(i));return o}function r(i,a,o,u,s){return o(t(i,s,o),a,u)}return Nt}var St,Vn;function au(){if(Vn)return St;Vn=1;var e=function(t){this.value=t};return e.math={isDegree:!0,acos:function(t){return e.math.isDegree?180/Math.PI*Math.acos(t):Math.acos(t)},add:function(t,n){return t+n},asin:function(t){return e.math.isDegree?180/Math.PI*Math.asin(t):Math.asin(t)},atan:function(t){return e.math.isDegree?180/Math.PI*Math.atan(t):Math.atan(t)},acosh:function(t){return Math.log(t+Math.sqrt(t*t-1))},asinh:function(t){return Math.log(t+Math.sqrt(t*t+1))},atanh:function(t){return Math.log((1+t)/(1-t))},C:function(t,n){var r=1,i=t-n,a=n;a<i&&(a=i,i=n);for(var o=a+1;o<=t;o++)r*=o;return r/e.math.fact(i)},changeSign:function(t){return-t},cos:function(t){return e.math.isDegree&&(t=e.math.toRadian(t)),Math.cos(t)},cosh:function(t){return(Math.pow(Math.E,t)+Math.pow(Math.E,-1*t))/2},div:function(t,n){return t/n},fact:function(t){if(t%1!==0)return"NaN";for(var n=1,r=2;r<=t;r++)n*=r;return n},inverse:function(t){return 1/t},log:function(t){return Math.log(t)/Math.log(10)},mod:function(t,n){return t%n},mul:function(t,n){return t*n},P:function(t,n){for(var r=1,i=Math.floor(t)-Math.floor(n)+1;i<=Math.floor(t);i++)r*=i;return r},Pi:function(t,n,r){for(var i=1,a=t;a<=n;a++)i*=Number(r.postfixEval({n:a}));return i},pow10x:function(t){for(var n=1;t--;)n*=10;return n},sigma:function(t,n,r){for(var i=0,a=t;a<=n;a++)i+=Number(r.postfixEval({n:a}));return i},sin:function(t){return e.math.isDegree&&(t=e.math.toRadian(t)),Math.sin(t)},sinh:function(t){return(Math.pow(Math.E,t)-Math.pow(Math.E,-1*t))/2},sub:function(t,n){return t-n},tan:function(t){return e.math.isDegree&&(t=e.math.toRadian(t)),Math.tan(t)},tanh:function(t){return e.sinha(t)/e.cosha(t)},toRadian:function(t){return t*Math.PI/180},and:function(t,n){return t&n}},e.Exception=function(t){this.message=t},St=e,St}var _t,Bn;function ou(){if(Bn)return _t;Bn=1;var e=au();function t(g,d){for(var p=0;p<g.length;p++)g[p]+=d;return g}for(var n=[{token:"sin",show:"sin",type:0,value:e.math.sin},{token:"cos",show:"cos",type:0,value:e.math.cos},{token:"tan",show:"tan",type:0,value:e.math.tan},{token:"pi",show:"&pi;",type:3,value:"PI"},{token:"(",show:"(",type:4,value:"("},{token:")",show:")",type:5,value:")"},{token:"P",show:"P",type:10,value:e.math.P},{token:"C",show:"C",type:10,value:e.math.C},{token:" ",show:" ",type:14,value:" ".anchor},{token:"asin",show:"asin",type:0,value:e.math.asin},{token:"acos",show:"acos",type:0,value:e.math.acos},{token:"atan",show:"atan",type:0,value:e.math.atan},{token:"7",show:"7",type:1,value:"7"},{token:"8",show:"8",type:1,value:"8"},{token:"9",show:"9",type:1,value:"9"},{token:"int",show:"Int",type:0,value:Math.floor},{token:"cosh",show:"cosh",type:0,value:e.math.cosh},{token:"acosh",show:"acosh",type:0,value:e.math.acosh},{token:"ln",show:" ln",type:0,value:Math.log},{token:"^",show:"^",type:10,value:Math.pow},{token:"root",show:"root",type:0,value:Math.sqrt},{token:"4",show:"4",type:1,value:"4"},{token:"5",show:"5",type:1,value:"5"},{token:"6",show:"6",type:1,value:"6"},{token:"/",show:"&divide;",type:2,value:e.math.div},{token:"!",show:"!",type:7,value:e.math.fact},{token:"tanh",show:"tanh",type:0,value:e.math.tanh},{token:"atanh",show:"atanh",type:0,value:e.math.atanh},{token:"Mod",show:" Mod ",type:2,value:e.math.mod},{token:"1",show:"1",type:1,value:"1"},{token:"2",show:"2",type:1,value:"2"},{token:"3",show:"3",type:1,value:"3"},{token:"*",show:"&times;",type:2,value:e.math.mul},{token:"sinh",show:"sinh",type:0,value:e.math.sinh},{token:"asinh",show:"asinh",type:0,value:e.math.asinh},{token:"e",show:"e",type:3,value:"E"},{token:"log",show:" log",type:0,value:e.math.log},{token:"0",show:"0",type:1,value:"0"},{token:".",show:".",type:6,value:"."},{token:"+",show:"+",type:9,value:e.math.add},{token:"-",show:"-",type:9,value:e.math.sub},{token:",",show:",",type:11,value:","},{token:"Sigma",show:"&Sigma;",type:12,value:e.math.sigma},{token:"n",show:"n",type:13,value:"n"},{token:"Pi",show:"&Pi;",type:12,value:e.math.Pi},{token:"pow",show:"pow",type:8,value:Math.pow,numberOfArguments:2},{token:"&",show:"&",type:9,value:e.math.and}],r={0:11,1:0,2:3,3:0,4:0,5:0,6:0,7:11,8:11,9:1,10:10,11:0,12:11,13:0,14:-1,15:11},i=0;i<n.length;i++)n[i].precedence=r[n[i].type];var a={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,9:!0,12:!0,13:!0,14:!0,15:!0},o={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0,10:!0,11:!0,12:!0,13:!0,15:!0},u={0:!0,3:!0,4:!0,8:!0,12:!0,13:!0,15:!0},s={},l={0:!0,1:!0,3:!0,4:!0,6:!0,8:!0,12:!0,13:!0,15:!0},h={1:!0},f=[[],["1","2","3","7","8","9","4","5","6","+","-","*","/","(",")","^","!","P","C","e","0",".",",","n"," ","&"],["pi","ln","Pi"],["sin","cos","tan","Del","int","Mod","log","pow"],["asin","acos","atan","cosh","root","tanh","sinh"],["acosh","atanh","asinh","Sigma"]];function c(g,d,p,M){for(var m=0;m<M;m++)if(g[p+m]!==d[m])return!1;return!0}e.tokenTypes={FUNCTION_WITH_ONE_ARG:0,NUMBER:1,BINARY_OPERATOR_HIGH_PRECENDENCE:2,CONSTANT:3,OPENING_PARENTHESIS:4,CLOSING_PARENTHESIS:5,DECIMAL:6,POSTFIX_FUNCTION_WITH_ONE_ARG:7,FUNCTION_WITH_N_ARGS:8,BINARY_OPERATOR_LOW_PRECENDENCE:9,BINARY_OPERATOR_PERMUTATION:10,COMMA:11,EVALUATED_FUNCTION:12,EVALUATED_FUNCTION_PARAMETER:13,SPACE:14},e.addToken=function(g){for(var d=0;d<g.length;d++){var p=g[d].token.length,M=-1;g[d].type===e.tokenTypes.FUNCTION_WITH_N_ARGS&&g[d].numberOfArguments===void 0&&(g[d].numberOfArguments=2),f[p]=f[p]||[];for(var m=0;m<f[p].length;m++)if(g[d].token===f[p][m]){M=x(f[p][m],n);break}M===-1?(n.push(g[d]),g[d].precedence=r[g[d].type],f.length<=g[d].token.length&&(f[g[d].token.length]=[]),f[g[d].token.length].push(g[d].token)):(n[M]=g[d],g[d].precedence=r[g[d].type])}};function x(g,d){for(var p=0;p<d.length;p++)if(d[p].token===g)return p;return-1}function b(g){for(var d=[],p=g.length,M,m,C,L=0;L<p;L++)if(!(L<p-1&&g[L]===" "&&g[L+1]===" ")){for(M="",m=g.length-L>f.length-2?f.length-1:g.length-L;m>0;m--)if(f[m]!==void 0)for(C=0;C<f[m].length;C++)c(g,f[m][C],L,m)&&(M=f[m][C],C=f[m].length,m=0);if(L+=M.length-1,M==="")throw new e.Exception("Can't understand after "+g.slice(L));d.push(n[x(M,n)])}return d}var v={value:e.math.changeSign,type:0,pre:21,show:"-"},k={value:")",show:")",type:5,pre:0},N={value:"(",type:4,pre:0,show:"("};return e.lex=function(g,d){var p=[N],M=[],m=g,C=a,L=0,R=s,J="",O;typeof d<"u"&&e.addToken(d);var T={},A=b(m);for(O=0;O<A.length;O++){var _=A[O];if(_.type===14){if(O>0&&O<A.length-1&&A[O+1].type===1&&(A[O-1].type===1||A[O-1].type===6))throw new e.Exception("Unexpected Space");continue}var H=_.token,U=_.type,X=_.value,oe=_.precedence,K=_.show,$=p[p.length-1],ge;for(ge=M.length;ge--&&M[ge]===0;)if([0,2,3,4,5,9,11,12,13].indexOf(U)!==-1){if(C[U]!==!0)throw new e.Exception(H+" is not allowed after "+J);p.push(k),C=o,R=l,M.pop()}if(C[U]!==!0)throw new e.Exception(H+" is not allowed after "+J);if(R[U]===!0&&(U=2,X=e.math.mul,K="&times;",oe=3,O=O-1),T={value:X,type:U,pre:oe,show:K,numberOfArguments:_.numberOfArguments},U===0)C=a,R=s,t(M,2),p.push(T),A[O+1].type!==4&&(p.push(N),M.push(2));else if(U===1)$.type===1?($.value+=X,t(M,1)):p.push(T),C=o,R=u;else if(U===2)C=a,R=s,t(M,2),p.push(T);else if(U===3)p.push(T),C=o,R=l;else if(U===4)t(M,1),L++,C=a,R=s,p.push(T);else if(U===5){if(!L)throw new e.Exception("Closing parenthesis are more than opening one, wait What!!!");L--,C=o,R=l,p.push(T),t(M,1)}else if(U===6){if($.hasDec)throw new e.Exception("Two decimals are not allowed in one number");$.type!==1&&($={value:0,type:1,pre:0},p.push($)),C=h,t(M,1),R=s,$.value+=X,$.hasDec=!0}else U===7&&(C=o,R=l,t(M,1),p.push(T));U===8?(C=a,R=s,t(M,_.numberOfArguments+2),p.push(T),A[O+1].type!==4&&(p.push(N),M.push(_.numberOfArguments+2))):U===9?($.type===9?$.value===e.math.add?($.value=X,$.show=K,t(M,1)):$.value===e.math.sub&&K==="-"&&($.value=e.math.add,$.show="+",t(M,1)):$.type!==5&&$.type!==7&&$.type!==1&&$.type!==3&&$.type!==13?H==="-"&&(C=a,R=s,t(M,2).push(2),p.push(v),p.push(N)):(p.push(T),t(M,2)),C=a,R=s):U===10?(C=a,R=s,t(M,2),p.push(T)):U===11?(C=a,R=s,p.push(T)):U===12?(C=a,R=s,t(M,6),p.push(T),A[O+1].type!==4&&(p.push(N),M.push(6))):U===13&&(C=o,R=l,p.push(T)),t(M,-1),J=H}for(ge=M.length;ge--;)p.push(k);if(C[5]!==!0)throw new e.Exception("complete the expression");for(;L--;)p.push(k);return p.push(k),new e(p)},_t=e,_t}var $t,Gn;function uu(){if(Gn)return $t;Gn=1;var e=ou();return e.prototype.toPostfix=function(){for(var t=[],n,r,i,a,o,u=[{value:"(",type:4,pre:0}],s=this.value,l=1;l<s.length;l++)if(s[l].type===1||s[l].type===3||s[l].type===13)s[l].type===1&&(s[l].value=Number(s[l].value)),t.push(s[l]);else if(s[l].type===4)u.push(s[l]);else if(s[l].type===5)for(;(r=u.pop()).type!==4;)t.push(r);else if(s[l].type===11){for(;(r=u.pop()).type!==4;)t.push(r);u.push(r)}else{n=s[l],a=n.pre,o=u[u.length-1],i=o.pre;var h=o.value=="Math.pow"&&n.value=="Math.pow";if(a>i)u.push(n);else{for(;i>=a&&!h||h&&a<i;)r=u.pop(),o=u[u.length-1],t.push(r),i=o.pre,h=n.value=="Math.pow"&&o.value=="Math.pow";u.push(n)}}return new e(t)},$t=e,$t}var Et,Xn;function su(){if(Xn)return Et;Xn=1;var e=uu();return e.prototype.postfixEval=function(t){t=t||{},t.PI=Math.PI,t.E=Math.E;for(var n=[],r,i,a,o=this.value,u=typeof t.n<"u",s=0;s<o.length;s++)if(o[s].type===1)n.push({value:o[s].value,type:1});else if(o[s].type===3)n.push({value:t[o[s].value],type:1});else if(o[s].type===0)typeof n[n.length-1].type>"u"?n[n.length-1].value.push(o[s]):n[n.length-1].value=o[s].value(n[n.length-1].value);else if(o[s].type===7)typeof n[n.length-1].type>"u"?n[n.length-1].value.push(o[s]):n[n.length-1].value=o[s].value(n[n.length-1].value);else if(o[s].type===8){for(var l=[],h=0;h<o[s].numberOfArguments;h++)l.push(n.pop().value);n.push({type:1,value:o[s].value.apply(o[s],l.reverse())})}else o[s].type===10?(r=n.pop(),i=n.pop(),typeof i.type>"u"?(i.value=i.concat(r),i.value.push(o[s]),n.push(i)):typeof r.type>"u"?(r.unshift(i),r.push(o[s]),n.push(r)):n.push({type:1,value:o[s].value(i.value,r.value)})):o[s].type===2||o[s].type===9?(r=n.pop(),i=n.pop(),typeof i.type>"u"?(i=i.concat(r),i.push(o[s]),n.push(i)):typeof r.type>"u"?(r.unshift(i),r.push(o[s]),n.push(r)):n.push({type:1,value:o[s].value(i.value,r.value)})):o[s].type===12?(r=n.pop(),typeof r.type<"u"&&(r=[r]),i=n.pop(),a=n.pop(),n.push({type:1,value:o[s].value(a.value,i.value,new e(r))})):o[s].type===13&&(u?n.push({value:t[o[s].value],type:3}):n.push([o[s]]));if(n.length>1)throw new e.Exception("Uncaught Syntax error");return n[0].value>1e15?"Infinity":parseFloat(n[0].value.toFixed(15))},e.eval=function(t,n,r){return typeof n>"u"?this.lex(t).toPostfix().postfixEval():typeof r>"u"?typeof n.length<"u"?this.lex(t,n).toPostfix().postfixEval():this.lex(t).toPostfix().postfixEval(n):this.lex(t,n).toPostfix().postfixEval(r)},Et=e,Et}var Pt,Zn;function lu(){if(Zn)return Pt;Zn=1;var e=su();return e.prototype.formulaEval=function(){for(var t,n,r,i=[],a=this.value,o=0;o<a.length;o++)a[o].type===1||a[o].type===3?i.push({value:a[o].type===3?a[o].show:a[o].value,type:1}):a[o].type===13?i.push({value:a[o].show,type:1}):a[o].type===0?i[i.length-1]={value:a[o].show+(a[o].show!="-"?"(":"")+i[i.length-1].value+(a[o].show!="-"?")":""),type:0}:a[o].type===7?i[i.length-1]={value:(i[i.length-1].type!=1?"(":"")+i[i.length-1].value+(i[i.length-1].type!=1?")":"")+a[o].show,type:7}:a[o].type===10?(t=i.pop(),n=i.pop(),a[o].show==="P"||a[o].show==="C"?i.push({value:"<sup>"+n.value+"</sup>"+a[o].show+"<sub>"+t.value+"</sub>",type:10}):i.push({value:(n.type!=1?"(":"")+n.value+(n.type!=1?")":"")+"<sup>"+t.value+"</sup>",type:1})):a[o].type===2||a[o].type===9?(t=i.pop(),n=i.pop(),i.push({value:(n.type!=1?"(":"")+n.value+(n.type!=1?")":"")+a[o].show+(t.type!=1?"(":"")+t.value+(t.type!=1?")":""),type:a[o].type})):a[o].type===12&&(t=i.pop(),n=i.pop(),r=i.pop(),i.push({value:a[o].show+"("+r.value+","+n.value+","+t.value+")",type:12}));return i[0].value},Pt=e,Pt}var At,Qn;function fu(){if(Qn)return At;Qn=1;var e=nu(),t=iu(),n=lu(),r=100,i=/(\+|\-|\*|\\|[^a-z]|)(\s*)(\()/g,a;At=o;function o(s,l){a=0,l=Math.pow(10,l===void 0?5:l),s=s.replace(/\n+/g," ");function h(c,x,b){if(a++>r)throw a=0,new Error("Call stack overflow for "+b);if(c==="")throw new Error(x+"(): '"+b+"' must contain a non-whitespace string");c=f(c,b);var v=u(c);if(v.length>1||c.indexOf("var(")>-1)return x+"("+c+")";var k=v[0]||"";k==="%"&&(c=c.replace(/\b[0-9\.]+%/g,function(d){return parseFloat(d.slice(0,-1))*.01}));var N=c.replace(new RegExp(k,"gi"),""),g;try{g=n.eval(N)}catch{return x+"("+c+")"}return k==="%"&&(g*=100),(x.length||k==="%")&&(g=Math.round(g*l)/l),g+=k,g}function f(c,x){c=c.replace(/((?:\-[a-z]+\-)?calc)/g,"");for(var b="",v=c,k;k=i.exec(v);){k[0].index>0&&(b+=v.substring(0,k[0].index));var N=e("(",")",v.substring([0].index));if(N.body==="")throw new Error("'"+c+"' must contain a non-whitespace string");var g=h(N.body,"",x);b+=N.pre+g,v=N.post}return b+v}return t(s,/((?:\-[a-z]+\-)?calc)\(/,h)}function u(s){for(var l=[],h=[],f=/[\.0-9]([%a-z]+)/gi,c=f.exec(s);c;)!c||!c[1]||(h.indexOf(c[1].toLowerCase())===-1&&(l.push(c[1]),h.push(c[1].toLowerCase())),c=f.exec(s));return l}return At}var cu=fu();const Dt=rr(cu);function hu(e,t){const n=new Map;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];const u=t(...a);if(n.has(u))return n.get(u);const s=e.apply(this,a);return n.set(u,s),s}}const Jn="__react_svg_text_measurement_id";function pu(e,t){if(typeof document>"u")return null;try{let n=document.getElementById(Jn);if(!n){const r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("aria-hidden","true"),r.style.width="0",r.style.height="0",r.style.position="absolute",r.style.top="-100%",r.style.left="-100%",n=document.createElementNS("http://www.w3.org/2000/svg","text"),n.setAttribute("id",Jn),r.appendChild(n),document.body.appendChild(r)}return Object.assign(n.style,t),n.textContent=e,n.getComputedTextLength()}catch{return null}}const Kn=hu(pu,(e,t)=>`${e}_${JSON.stringify(t)}`);function Ut(e){return typeof e=="number"}function er(e){return typeof e=="number"&&Number.isFinite(e)||typeof e=="string"}function gu(e){const{verticalAnchor:t="end",scaleToFit:n=!1,angle:r,width:i,lineHeight:a="1em",capHeight:o="0.71em",children:u,style:s,...l}=e,{x:h=0,y:f=0}=l,c=!er(h)||!er(f),{wordsWithWidth:x,spaceWidth:b}=ne.useMemo(()=>({wordsWithWidth:(u==null?[]:u.toString().split(/(?:(?!\u00A0+)\s+)/)).map(d=>({word:d,wordWidth:Kn(d,s)||0})),spaceWidth:Kn(" ",s)||0}),[u,s]),v=ne.useMemo(()=>c?[]:i||n?x.reduce((g,d)=>{let{word:p,wordWidth:M}=d;const m=g[g.length-1];if(m&&(i==null||n||(m.width||0)+M+b<i))m.words.push(p),m.width=m.width||0,m.width+=M+b;else{const C={words:[p],width:M};g.push(C)}return g},[]):[{words:u==null?[]:u.toString().split(/(?:(?!\u00A0+)\s+)/)}],[c,i,n,u,x,b]),k=ne.useMemo(()=>c?"":Dt(t==="start"?`calc(${o})`:t==="middle"?`calc(${(v.length-1)/2} * -${a} + (${o} / 2))`:`calc(${v.length-1} * -${a})`),[c,t,o,v.length,a]),N=ne.useMemo(()=>{const g=[];if(c)return"";if(Ut(h)&&Ut(f)&&Ut(i)&&n&&v.length>0){const d=v[0].width||1,p=n==="shrink-only"?Math.min(i/d,1):i/d,M=p,m=h-p*h,C=f-M*f;g.push(`matrix(${p}, 0, 0, ${M}, ${m}, ${C})`)}return r&&g.push(`rotate(${r}, ${h}, ${f})`),g.length>0?g.join(" "):""},[c,h,f,i,n,v,r]);return{wordsByLines:v,startDy:k,transform:N}}const du={overflow:"visible"};function Vr(e){const{dx:t=0,dy:n=0,textAnchor:r="start",innerRef:i,innerTextRef:a,verticalAnchor:o,angle:u,lineHeight:s="1em",scaleToFit:l=!1,capHeight:h,width:f,...c}=e,{x=0,fontSize:b}=c,{wordsByLines:v,startDy:k,transform:N}=gu(e);return D.jsx("svg",{ref:i,x:t,y:n,fontSize:b,style:du,children:v.length>0?D.jsx("text",{ref:a,transform:N,...c,textAnchor:r,children:v.map((g,d)=>D.jsx("tspan",{x,dy:d===0?k:s,children:g.words.join(" ")},d))}):null})}const G={top:"top",left:"left",bottom:"bottom"};function mu(e){let{labelOffset:t,labelProps:n,orientation:r,range:i,tickLabelFontSize:a,tickLength:o}=e;const u=r===G.left||r===G.top?-1:1;let s,l,h;if(r===G.top||r===G.bottom){const f=r===G.bottom&&typeof n.fontSize=="number"?n.fontSize:0;s=(Number(i[0])+Number(i[i.length-1]))/2,l=u*(o+t+a+f)}else s=u*((Number(i[0])+Number(i[i.length-1]))/2),l=-(o+t),h=`rotate(${u*90})`;return{x:s,y:l,transform:h}}function yu(e){let{hideTicks:t,horizontal:n,orientation:r,tickClassName:i,tickComponent:a,tickLabelProps:o,tickStroke:u="#222",tickTransform:s,ticks:l,strokeWidth:h,tickLineProps:f}=e;return l.map(c=>{let{value:x,index:b,from:v,to:k,formattedValue:N}=c;const g=o[b]??{},d=Math.max(10,typeof g.fontSize=="number"&&g.fontSize||0),p=k.y+(n&&r!==G.top?d:0);return D.jsxs(an,{className:Q("visx-axis-tick",i),transform:s,children:[!t&&D.jsx(on,{from:v,to:k,stroke:u,strokeWidth:h,strokeLinecap:"square",...f}),a?a({...g,x:k.x,y:p,formattedValue:N}):D.jsx(Vr,{x:k.x,y:p,...g,children:N})]},`visx-tick-${x}-${b}`)})}const tr={textAnchor:"middle",fontFamily:"Arial",fontSize:10,fill:"#222"};function xu(e){let{axisFromPoint:t,axisLineClassName:n,axisToPoint:r,hideAxisLine:i,hideTicks:a,horizontal:o,label:u="",labelClassName:s,labelOffset:l=14,labelProps:h,orientation:f=G.bottom,scale:c,stroke:x="#222",strokeDasharray:b,strokeWidth:v=1,tickClassName:k,tickComponent:N,tickLineProps:g,tickLabelProps:d,tickLength:p=8,tickStroke:M="#222",tickTransform:m,ticks:C,ticksComponent:L=yu}=e;const R={...tr,...h},J={...tr,...typeof d=="object"?d:null},O=C.map(A=>{let{value:_,index:H}=A;return typeof d=="function"?d(_,H,C):J}),T=Math.max(10,...O.map(A=>typeof A.fontSize=="number"?A.fontSize:0));return D.jsxs(D.Fragment,{children:[L({hideTicks:a,horizontal:o,orientation:f,scale:c,tickClassName:k,tickComponent:N,tickLabelProps:O,tickStroke:M,tickTransform:m,ticks:C,strokeWidth:v,tickLineProps:g}),!i&&D.jsx(on,{className:Q("visx-axis-line",n),from:t,to:r,stroke:x,strokeWidth:v,strokeDasharray:b}),u&&D.jsx(Vr,{className:Q("visx-axis-label",s),...mu({labelOffset:l,labelProps:R,orientation:f,range:c.range(),tickLabelFontSize:T,tickLength:p}),...R,children:u})]})}function vu(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"center";const n=e;if(t!=="start"&&"bandwidth"in n){let r=n.bandwidth();return t==="center"&&(r/=2),n.round()&&(r=Math.round(r)),i=>{const a=n(i);return typeof a=="number"?a+r:a}}return e}function wu(e){const t=e;return"tickFormat"in t?t.tickFormat():Bo}class Ie{constructor(t){ft(this,"x",0);ft(this,"y",0);let{x:n=0,y:r=0}=t;this.x=n,this.y=r}value(){return{x:this.x,y:this.y}}toArray(){return[this.x,this.y]}}function qe(e,t){let{x:n,y:r}=e;return new Ie(t?{x:n,y:r}:{x:r,y:n})}const Lt=0;function bu(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Lt;return typeof e=="number"?{start:e,end:e}:{start:Lt,end:Lt,...e}}function Br(e){let{children:t=xu,axisClassName:n,hideAxisLine:r=!1,hideTicks:i=!1,hideZero:a=!1,innerRef:o,left:u=0,numTicks:s=10,orientation:l=G.bottom,rangePadding:h=0,scale:f,tickFormat:c,tickLength:x=8,tickValues:b,top:v=0,...k}=e;const N=c??wu(f),g=l===G.left,d=l===G.top,p=d||l===G.bottom,M=vu(f),m=g||d?-1:1,C=f.range(),L=bu(h),R=qe({x:Number(C[0])+.5-L.start,y:0},p),J=qe({x:Number(C[C.length-1])+.5+L.end,y:0},p),O=(b??Fr(f,s)).filter(A=>!a||A!==0&&A!=="0").map((A,_)=>({value:A,index:_})),T=O.map(A=>{let{value:_,index:H}=A;const U=Rr(M(_));return{value:_,index:H,from:qe({x:U,y:0},p),to:qe({x:U,y:x*m},p),formattedValue:N(_,H,O)}});return D.jsx(an,{className:Q("visx-axis",n),innerRef:o,top:v,left:u,children:t({...k,axisFromPoint:R,axisToPoint:J,hideAxisLine:r,hideTicks:i,hideZero:a,horizontal:p,numTicks:s,orientation:l,rangePadding:h,scale:f,tickFormat:N,tickLength:x,tickPosition:M,tickSign:m,ticks:T})})}const Mu={dx:"-0.25em",dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"end"};function Vu(e){let{axisClassName:t,labelOffset:n=36,tickLength:r=8,tickLabelProps:i,...a}=e;const o=typeof i=="function"?i:{...Mu,...i};return D.jsx(Br,{axisClassName:Q("visx-axis-left",t),labelOffset:n,orientation:G.left,tickLabelProps:o,tickLength:r,...a})}const ku={dy:"0.25em",fill:"#222",fontFamily:"Arial",fontSize:10,textAnchor:"middle"};function Bu(e){let{axisClassName:t,labelOffset:n=8,tickLength:r=8,tickLabelProps:i,...a}=e;const o=typeof i=="function"?i:{...ku,...i};return D.jsx(Br,{axisClassName:Q("visx-axis-bottom",t),labelOffset:n,orientation:G.bottom,tickLabelProps:o,tickLength:r,...a})}function Cu(e){return"bandwidth"in e?e.bandwidth():0}function Gu(e){let{top:t=0,left:n=0,scale:r,width:i,stroke:a="#eaf0f6",strokeWidth:o=1,strokeDasharray:u,className:s,children:l,numTicks:h=10,lineStyle:f,offset:c,tickValues:x,...b}=e;const v=x??Fr(r,h),k=(c??0)+Cu(r)/2,N=v.map((g,d)=>{const p=(Rr(r(g))??0)+k;return{index:d,from:new Ie({x:0,y:p}),to:new Ie({x:i,y:p})}});return D.jsx(an,{className:Q("visx-rows",s),top:t,left:n,children:l?l({lines:N}):N.map(g=>{let{from:d,to:p,index:M}=g;return D.jsx(on,{from:d,to:p,stroke:a,strokeWidth:o,strokeDasharray:u,style:f,...b},`row-line-${M}`)})})}function Xu(e){let{children:t,id:n,from:r,to:i,x1:a,y1:o,x2:u,y2:s,fromOffset:l="0%",fromOpacity:h=1,toOffset:f="100%",toOpacity:c=1,rotate:x,transform:b,vertical:v=!0,...k}=e,N=a,g=u,d=o,p=s;return v&&!N&&!g&&!d&&!p&&(N="0",g="0",d="0",p="1"),D.jsx("defs",{children:D.jsxs("linearGradient",{id:n,x1:N,y1:d,x2:g,y2:p,gradientTransform:x?`rotate(${x})`:b,...k,children:[!!t&&t,!t&&D.jsx("stop",{offset:l,stopColor:r,stopOpacity:h}),!t&&D.jsx("stop",{offset:f,stopColor:i,stopOpacity:c})]})})}function Tu(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{leading:r=!1}=n;let i,a=null,o;function u(){for(var s=arguments.length,l=new Array(s),h=0;h<s;h++)l[h]=arguments[h];r&&i===void 0?(e.apply(this,l),a=null):(a=l,o=this),clearTimeout(i),i=setTimeout(()=>{i=void 0,a!==null&&(e.apply(o,a),a=null,o=void 0)},t)}return u.cancel=function(){clearTimeout(i),i=void 0,a=null,o=void 0},u}const Nu=[],nr={width:0,height:0,top:0,left:0};function Su(){let{initialSize:e=nr,debounceTime:t=300,ignoreDimensions:n=Nu,enableDebounceLeadingCall:r=!0,resizeObserverPolyfill:i,externalRef:a}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const[o,u]=ne.useState(null),s=ne.useCallback(x=>{u(x),typeof a=="function"?a(x):a!=null&&(a.current=x)},[a]),l=ne.useRef(0),[h,f]=ne.useState({...nr,...e}),c=ne.useMemo(()=>{const x=Array.isArray(n)?n:[n];return Tu(b=>{f(v=>Object.keys(v).filter(d=>v[d]!==b[d]).every(d=>x.includes(d))?v:b)},t,{leading:r})},[t,r,n]);return ne.useEffect(()=>{if(!o){c.cancel();return}const x=i||window.ResizeObserver,b=new x(v=>{v.forEach(k=>{const{left:N,top:g,width:d,height:p}=(k==null?void 0:k.contentRect)??{};l.current=window.requestAnimationFrame(()=>{c({width:d,height:p,top:g,left:N})})})});return b.observe(o),()=>{window.cancelAnimationFrame(l.current),b.disconnect(),c.cancel()}},[o,c,i]),{parentRef:s,node:o,resize:c,...h}}const _u={width:"100%",height:"100%",position:"relative"},$u={position:"absolute",top:0,right:0,bottom:0,left:0,overflow:"hidden"};function Zu(e){let{className:t,children:n,debounceTime:r,ignoreDimensions:i,initialSize:a,parentSizeStyles:o,enableDebounceLeadingCall:u=!0,resizeObserverPolyfill:s,style:l,...h}=e;const{parentRef:f,node:c,resize:x,...b}=Su({initialSize:a,debounceTime:r,ignoreDimensions:i,enableDebounceLeadingCall:u,resizeObserverPolyfill:s}),v=o?{position:"relative",...o,...l}:{..._u,...l};return D.jsx("div",{style:v,className:t,...h,children:D.jsx("div",{style:$u,ref:f,children:n({...b,ref:c,resize:x})})})}function Eu(e){return!!e&&(e instanceof SVGElement||"ownerSVGElement"in e)}function Pu(e){return!!e&&"createSVGPoint"in e}function Au(e){return!!e&&"getScreenCTM"in e}function Du(e){return!!e&&"changedTouches"in e}function Uu(e){return!!e&&"clientX"in e}function Lu(e){return!!e&&(e instanceof Event||"nativeEvent"in e&&e.nativeEvent instanceof Event)}const Rt={x:0,y:0};function Ru(e){if(!e)return{...Rt};if(Du(e))return e.changedTouches.length>0?{x:e.changedTouches[0].clientX,y:e.changedTouches[0].clientY}:{...Rt};if(Uu(e))return{x:e.clientX,y:e.clientY};const t=e==null?void 0:e.target,n=t&&"getBoundingClientRect"in t?t.getBoundingClientRect():null;return n?{x:n.x+n.width/2,y:n.y+n.height/2}:{...Rt}}function Fu(e,t){if(!e||!t)return null;const n=Ru(t),r=Eu(e)?e.ownerSVGElement:e,i=Au(r)?r.getScreenCTM():null;if(Pu(r)&&i){let o=r.createSVGPoint();return o.x=n.x,o.y=n.y,o=o.matrixTransform(i.inverse()),new Ie({x:o.x,y:o.y})}const a=e.getBoundingClientRect();return new Ie({x:n.x-a.left-e.clientLeft,y:n.y-a.top-e.clientTop})}function Qu(e,t){if(Lu(e)){const n=e,r=n.target;if(r)return Fu(r,n)}return null}export{ju as A,qu as B,Gu as G,on as L,Zu as P,Bu as a,Vu as b,an as c,Wu as d,Xu as e,Xt as f,Hu as g,Yu as h,ut as i,ot as j,Qu as l,zu as m,Ae as t};