@decocms/mesh 1.0.0-alpha.37 → 1.0.0-alpha.38

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 (105) hide show
  1. package/dist/client/assets/{AlertCircle-FgA4OE_Y.js → AlertCircle-BRDn8bYf.js} +1 -1
  2. package/dist/client/assets/{ArrowLeft-DZ8Qhlyz.js → ArrowLeft-qWOemv4m.js} +1 -1
  3. package/dist/client/assets/{CheckCircle-D9-mPjW-.js → CheckCircle-DNAL-vtD.js} +1 -1
  4. package/dist/client/assets/{ChevronDown-CRpCA4eQ.js → ChevronDown-CJBpL9ke.js} +1 -1
  5. package/dist/client/assets/{Clock-9Ud3hYi_.js → Clock-s023drCB.js} +1 -1
  6. package/dist/client/assets/{Copy01-DGZy8_Wa.js → Copy01-Bm7GrXLR.js} +1 -1
  7. package/dist/client/assets/{CpuChip02-9xkDTOQm.js → CpuChip02-CY8-jTO9.js} +1 -1
  8. package/dist/client/assets/{DotsVertical-7BehxNIr.js → DotsVertical-DakD93ro.js} +1 -1
  9. package/dist/client/assets/{File06-JZRzMAbM.js → File06-CaEGX5DR.js} +1 -1
  10. package/dist/client/assets/{Grid01-CKvZ5Bgj.js → Grid01-DzkX4KgN.js} +1 -1
  11. package/dist/client/assets/{Inbox01-Q7OGuD8_.js → Inbox01-BwvF7iId.js} +1 -1
  12. package/dist/client/assets/{InfoCircle-ZmqIswrk.js → InfoCircle-D8u9C2rC.js} +1 -1
  13. package/dist/client/assets/{Key01-Cc974JWF.js → Key01-CNozBS0S.js} +1 -1
  14. package/dist/client/assets/{LinkExternal01-0ybSN01c.js → LinkExternal01-v_wZOVfQ.js} +1 -1
  15. package/dist/client/assets/{Loading01-BpGj_YCN.js → Loading01-Bg5ZbX7j.js} +1 -1
  16. package/dist/client/assets/{Plus-BS5hPXY3.js → Plus-DHLB4x84.js} +1 -1
  17. package/dist/client/assets/{SearchMd-BbbPnMSd.js → SearchMd-dWvbF6MG.js} +1 -1
  18. package/dist/client/assets/{Trash01-DtIQgapG.js → Trash01-B8SyVfGZ.js} +1 -1
  19. package/dist/client/assets/{Upload01-Zx3GirGx.js → Upload01-B11bwIwD.js} +1 -1
  20. package/dist/client/assets/{X-CYjj99XI.js → X-B95LxPIt.js} +1 -1
  21. package/dist/client/assets/{XClose-BDRe0Ozk.js → XClose-B0ejekJj.js} +1 -1
  22. package/dist/client/assets/{alert-dialog-Bj94Mg43.js → alert-dialog-UMEPZCAs.js} +2 -2
  23. package/dist/client/assets/{auth-CbkV4JhC.js → auth-DzSQcnhF.js} +1 -1
  24. package/dist/client/assets/{auth-catchall-pG3jhayZ.js → auth-catchall-BYr2zijL.js} +1 -1
  25. package/dist/client/assets/avatar-BHmRC7PJ.js +1 -0
  26. package/dist/client/assets/{badge-B6NR5xty.js → badge-CsN_0CQA.js} +1 -1
  27. package/dist/client/assets/{button-WA21TIge.js → button-DGzvT_2A.js} +1 -1
  28. package/dist/client/assets/{card-fnco2BKy.js → card-DhiM8w8S.js} +1 -1
  29. package/dist/client/assets/{checkbox-Bq4Db1eq.js → checkbox-CazM39DL.js} +1 -1
  30. package/dist/client/assets/collection-detail-Be2q4lq8.js +1 -0
  31. package/dist/client/assets/{collection-display-button-CJgVNUjG.js → collection-display-button-HCh5o-4Q.js} +1 -1
  32. package/dist/client/assets/{collection-header-COdYt0yo.js → collection-header-QrVAH4kj.js} +1 -1
  33. package/dist/client/assets/{collection-page-IZEjeZDJ.js → collection-page-CUS5aOdu.js} +1 -1
  34. package/dist/client/assets/{collection-search-Dh2zcE6Z.js → collection-search-nvVuwapQ.js} +1 -1
  35. package/dist/client/assets/{collection-table-wrapper-DOiiwQBc.js → collection-table-wrapper-D0FdiE30.js} +1 -1
  36. package/dist/client/assets/{connection-card-P2DYTKtD.js → connection-card-CtFpN05k.js} +1 -1
  37. package/dist/client/assets/{connection-detail-2kY4jzvr.js → connection-detail-DlPH1Rj9.js} +1 -1
  38. package/dist/client/assets/{connections-CfReLX9R.js → connections-CuXo1k5G.js} +1 -1
  39. package/dist/client/assets/{core-Bsa-CClQ.js → core-CPQcCrZ7.js} +1 -1
  40. package/dist/client/assets/{create-organization-dialog-DjEf_yPL.js → create-organization-dialog-CO78Byme.js} +1 -1
  41. package/dist/client/assets/{deco-chat-skeleton-YKru_-uq.js → deco-chat-skeleton-BAqDOmQt.js} +3 -3
  42. package/dist/client/assets/{dialog-CzRcLMrO.js → dialog-BQqZMrZX.js} +1 -1
  43. package/dist/client/assets/{dropdown-menu-lNp795nL.js → dropdown-menu-D1IcmwBM.js} +1 -1
  44. package/dist/client/assets/{error-boundary-D10vdRO6.js → error-boundary-BePJNb-A.js} +1 -1
  45. package/dist/client/assets/{extract-connection-data-CnaW3oDd.js → extract-connection-data-BzkcwZMq.js} +1 -1
  46. package/dist/client/assets/{form-BUVsmabM.js → form-CtkKIwlr.js} +1 -1
  47. package/dist/client/assets/{gateway-detail-DxVWCOGY.js → gateway-detail-BFm1a022.js} +1 -1
  48. package/dist/client/assets/{gateways-BDUTpLoJ.js → gateways-u5Ek3G6R.js} +1 -1
  49. package/dist/client/assets/{home-DcAStJkG.js → home-tHS3Zecm.js} +1 -1
  50. package/dist/client/assets/{index-B3MiP_oE.js → index-B3hUglpl.js} +1 -1
  51. package/dist/client/assets/{index-BWMTgSpJ.js → index-BFGV_ZyQ.js} +2 -2
  52. package/dist/client/assets/index-Bchib-vH.css +1 -0
  53. package/dist/client/assets/{index-DiIfEFEx.js → index-Co77-1xF.js} +1 -1
  54. package/dist/client/assets/{index-DXIf5jrv.js → index-RtH5C8CP.js} +1 -1
  55. package/dist/client/assets/{input-C8ckt9pD.js → input-CSN83rcG.js} +1 -1
  56. package/dist/client/assets/json-eo7c8zn7.js +1 -0
  57. package/dist/client/assets/{json-syntax-highlighter-DqTOcqS4.js → json-syntax-highlighter-s54gEg6g.js} +2 -2
  58. package/dist/client/assets/{layout-Ddw5vi1_.js → layout-By0mCM-C.js} +1 -1
  59. package/dist/client/assets/{lazy-highlighter-D0ldRF_z.js → lazy-highlighter-BA7LoVJl.js} +1 -1
  60. package/dist/client/assets/{localstorage-keys-C__QKrnP.js → localstorage-keys-CKD_ZpQC.js} +1 -1
  61. package/dist/client/assets/{login-Bfuntl4G.js → login-hHvv0tPc.js} +1 -1
  62. package/dist/client/assets/{mcp-oauth-BeGFsv5e.js → mcp-oauth-BXBge9LN.js} +1 -1
  63. package/dist/client/assets/{members-DsJnPzlW.js → members-Bvub8C8H.js} +1 -1
  64. package/dist/client/assets/{monitoring-C4ZUhICh.js → monitoring-B76IY8Nx.js} +1 -1
  65. package/dist/client/assets/{oauth-callback-rQDuS0Y4.js → oauth-callback-Buaygh1B.js} +1 -1
  66. package/dist/client/assets/{page-CEwSU962.js → page-X28UCcuA.js} +1 -1
  67. package/dist/client/assets/popover-Bc_J6DJM.js +1 -0
  68. package/dist/client/assets/prism-light-CJ5lsPAv.js +1 -0
  69. package/dist/client/assets/{resource-tabs-TaJMxN6_.js → resource-tabs-talmxE-P.js} +1 -1
  70. package/dist/client/assets/{schema-B3tkq8IT.js → schema-BNYaaxve.js} +1 -1
  71. package/dist/client/assets/{select-DQatPXKJ.js → select-zI1MuLqv.js} +1 -1
  72. package/dist/client/assets/{settings-DIHeOoHX.js → settings-3CQfBwb4.js} +1 -1
  73. package/dist/client/assets/shell-layout-DrYzniBY.js +17 -0
  74. package/dist/client/assets/{spinner-DD8NRDSP.js → spinner-Bz0yGoI-.js} +1 -1
  75. package/dist/client/assets/store-DFp_70M-.js +1 -0
  76. package/dist/client/assets/{store-app-detail-C3gtVQGX.js → store-app-detail-lpZSA42O.js} +1 -1
  77. package/dist/client/assets/{switch-BLTM21B0.js → switch-hr3MPsBc.js} +1 -1
  78. package/dist/client/assets/{textarea-OUcFAiZD.js → textarea-B9KhTSks.js} +1 -1
  79. package/dist/client/assets/{tooltip-Dy-DsVOX.js → tooltip-B1UObqaJ.js} +1 -1
  80. package/dist/client/assets/{types-Be8keXIM.js → types-BH1WeggD.js} +1 -1
  81. package/dist/client/assets/{use-binding-pAqGO8UI.js → use-binding-BAah0fz3.js} +1 -1
  82. package/dist/client/assets/{use-connection-Lp9rwnx7.js → use-connection-DfrXFTVM.js} +2 -2
  83. package/dist/client/assets/{use-gateway-C0GNG4JP.js → use-gateway-MMJo-JLn.js} +1 -1
  84. package/dist/client/assets/{use-list-state-BxKaK11n.js → use-list-state-z01BeFuP.js} +1 -1
  85. package/dist/client/assets/{use-mcp-ClY7_5dz.js → use-mcp-BM47vnpW.js} +1 -1
  86. package/dist/client/assets/{use-members-4V3USNhz.js → use-members-ClMZBuqE.js} +1 -1
  87. package/dist/client/assets/{use-mobile-k1X2THZ9.js → use-mobile-CZP-mMZd.js} +1 -1
  88. package/dist/client/assets/{use-organization-settings-CMytLZst.js → use-organization-settings-GOa26Bje.js} +1 -1
  89. package/dist/client/assets/use-tool-call-De--YQMp.js +1 -0
  90. package/dist/client/assets/useQuery-B00cZGqv.js +1 -0
  91. package/dist/client/assets/utils-D8oc_Xja.js +1 -0
  92. package/dist/client/assets/{well-known-mcp-CjKrCZkD.js → well-known-mcp-CJlqApJn.js} +1 -1
  93. package/dist/client/index.html +2 -2
  94. package/package.json +1 -1
  95. package/dist/client/assets/avatar-DQuAu06W.js +0 -1
  96. package/dist/client/assets/collection-detail-C45JavW1.js +0 -1
  97. package/dist/client/assets/index-LtFisB9d.css +0 -1
  98. package/dist/client/assets/json-DgiEbznW.js +0 -1
  99. package/dist/client/assets/popover-BSAaObMv.js +0 -1
  100. package/dist/client/assets/prism-light-BGWrXuVI.js +0 -1
  101. package/dist/client/assets/shell-layout-D1irgz1e.js +0 -1
  102. package/dist/client/assets/store-BlitdGFv.js +0 -1
  103. package/dist/client/assets/use-tool-call-z8Rn6Gss.js +0 -1
  104. package/dist/client/assets/useQuery-CdGzN_Sp.js +0 -1
  105. package/dist/client/assets/utils-CvrJmBA1.js +0 -1
@@ -1 +1 @@
1
- import{r as q,c as _,j as s,e as ve,d as ke,b as Se,a as Ie,t as he}from"./index-BWMTgSpJ.js";import{i as _e}from"./AlertCircle-FgA4OE_Y.js";import{i as je}from"./Loading01-BpGj_YCN.js";import{B as ie}from"./button-WA21TIge.js";import{i as Le}from"./ArrowLeft-DZ8Qhlyz.js";import{I as ye,a as Ae,u as De,b as Ee,c as Me}from"./use-connection-Lp9rwnx7.js";import{i as Ue}from"./CheckCircle-D9-mPjW-.js";import{t as Ve}from"./ChevronDown-CRpCA4eQ.js";import{s as ge}from"./Plus-BS5hPXY3.js";import{b as $e,D as Pe,a as Re,c as ze}from"./dropdown-menu-lNp795nL.js";import{n as be}from"./LinkExternal01-0ybSN01c.js";import{E as Be}from"./SearchMd-BbbPnMSd.js";import{R as Ge,T as Fe,a as Oe}from"./resource-tabs-TaJMxN6_.js";import{a as He}from"./use-binding-pAqGO8UI.js";import{u as We}from"./use-tool-call-z8Rn6Gss.js";import{u as Ke}from"./use-mcp-ClY7_5dz.js";import{u as Ne}from"./tooltip-Dy-DsVOX.js";import{e as Ze}from"./extract-connection-data-CnaW3oDd.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{f as Je,e as Qe,b as Xe,c as Ye,g as et}from"./registry-utils-ulDDT0d8.js";import{e as tt}from"./app-name-gTETL9So.js";import{i as st}from"./InfoCircle-ZmqIswrk.js";import"./utils-CvrJmBA1.js";import"./Grid01-CKvZ5Bgj.js";import"./useQuery-CdGzN_Sp.js";import"./File06-JZRzMAbM.js";import"./collection-display-button-CJgVNUjG.js";import"./collection-search-Dh2zcE6Z.js";import"./input-C8ckt9pD.js";import"./collection-table-wrapper-DOiiwQBc.js";import"./card-fnco2BKy.js";import"./layout-Ddw5vi1_.js";import"./badge-B6NR5xty.js";import"./auth-CbkV4JhC.js";import"./generate-id-Dyweu44Y.js";const we=({size:t=24,color:e="currentColor",...o})=>q.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},q.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));we.displayName="SearchLg";function ot(t){const e=_.c(3),{message:o}=t,n=o===void 0?"Loading app details...":o;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(je,{size:48,className:"animate-spin mb-4"}),e[0]=r):r=e[0];let i;return e[1]!==n?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r,s.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),e[1]=n,e[2]=i):i=e[2],i}function rt(t){const e=_.c(9),{error:o,onBack:n}=t,r=o instanceof Error?o.message:o;let i,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_e,{size:48,className:"text-destructive mb-4"}),d=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading app"}),e[0]=i,e[1]=d):(i=e[0],d=e[1]);let a;e[2]!==r?(a=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:r}),e[2]=r,e[3]=a):a=e[3];let l;e[4]!==n?(l=s.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=n,e[5]=l):l=e[5];let m;return e[6]!==a||e[7]!==l?(m=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[i,d,a,l]}),e[6]=a,e[7]=l,e[8]=m):m=e[8],m}function nt(t){const e=_.c(5),{onBack:o}=t;let n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(we,{size:48,className:"text-muted-foreground mb-4"}),r=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"App not found"}),i=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The app you're looking for doesn't exist in this store."}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let d;return e[3]!==o?(d=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,r,i,s.jsx("button",{onClick:o,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=o,e[4]=d):d=e[4],d}function it(t){const e=_.c(3),{onBack:o}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Le,{}),e[0]=n):n=e[0];let r;return e[1]!==o?(r=s.jsx("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:s.jsx("div",{className:"flex h-full px-2 border-r items-center",children:s.jsx(ie,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:o,"aria-label":"Go back",children:n})})}),e[1]=o,e[2]=r):r=e[2],r}function lt(t){const e=_.c(25),{data:o,itemVersions:n,onInstall:r,canInstall:i,isInstalling:d}=t,a=i===void 0?!0:i,l=d===void 0?!1:d,[m,p]=q.useState(0);let x;e[0]!==r?(x=S=>{p(S),r(S)},e[0]=r,e[1]=x):x=e[1];const f=x;let h;e[2]!==o.icon||e[3]!==o.name?(h=s.jsx(ye,{icon:o.icon,name:o.name,size:"lg",className:"shrink-0 shadow-sm"}),e[2]=o.icon,e[3]=o.name,e[4]=h):h=e[4];let g;e[5]!==o.name?(g=s.jsx("h1",{className:"text-3xl font-medium",children:o.name}),e[5]=o.name,e[6]=g):g=e[6];let b;e[7]!==o.verified?(b=o.verified&&s.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[7]=o.verified,e[8]=b):b=e[8];let y;e[9]!==g||e[10]!==b?(y=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-center gap-2",children:[g,b]})}),e[9]=g,e[10]=b,e[11]=y):y=e[11];let N;e[12]!==a||e[13]!==f||e[14]!==l||e[15]!==n||e[16]!==r||e[17]!==m?(N=a?s.jsx("div",{className:"shrink-0",children:n.length>1?s.jsxs("div",{className:"flex",children:[s.jsxs(ie,{variant:"brand",onClick:()=>f(0),disabled:l,className:"shrink-0 rounded-r-none cursor-pointer",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect MCP Server"]}),s.jsxs($e,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx(ie,{variant:"brand",disabled:l,className:"shrink-0 rounded-l-none px-2 border-l-2 border-l-white/50 cursor-pointer",children:s.jsx(Ve,{size:20})})}),s.jsx(Re,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:n.map((S,C)=>{const I=S._meta?.["io.modelcontextprotocol.registry/official"];return s.jsx(ze,{onClick:()=>f(C),disabled:l,className:"cursor-pointer",children:s.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"font-medium text-sm",children:["v",S.server?.version||"unknown"]}),I?.isLatest&&s.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),C===m&&s.jsx(Ue,{size:16,className:"text-muted-foreground shrink-0"})]})},C)})})]})]}):s.jsxs(ie,{variant:"brand",onClick:()=>r(),disabled:n.length===0||l,className:"shrink-0",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect MCP Server"]})}):s.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[12]=a,e[13]=f,e[14]=l,e[15]=n,e[16]=r,e[17]=m,e[18]=N):N=e[18];let w;e[19]!==y||e[20]!==N?(w=s.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[y,N]}),e[19]=y,e[20]=N,e[21]=w):w=e[21];let k;return e[22]!==h||e[23]!==w?(k=s.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[h,w]}),e[22]=h,e[23]=w,e[24]=k):k=e[24],k}function at(t){if(!t)return"—";try{const e=new Date(t);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function ct(t){const e=_.c(45),{data:o,publisherInfo:n,selectedItem:r}=t;let i;e[0]!==o.description?(i=o.description&&s.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[s.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:o.description})]}),e[0]=o.description,e[1]=i):i=e[1];const d=o.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":o.publisher;let a;e[2]!==n.logo||e[3]!==d?(a=s.jsx(ye,{icon:n.logo,name:d,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=n.logo,e[3]=d,e[4]=a):a=e[4];let l;e[5]!==o.publisher?(l=o.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":o.publisher.charAt(0).toUpperCase()+o.publisher.slice(1),e[5]=o.publisher,e[6]=l):l=e[6];let m;e[7]!==l?(m=s.jsx("div",{className:"font-medium",children:l}),e[7]=l,e[8]=m):m=e[8];let p;e[9]!==n.count?(p=n.count>0?s.jsxs(s.Fragment,{children:[s.jsx("img",{src:"/globe.svg",alt:"globe",className:"w-3 h-3"}),s.jsxs("span",{children:[n.count," ",n.count===1?"published app":"published apps"]})]}):"Publisher",e[9]=n.count,e[10]=p):p=e[10];let x;e[11]!==p?(x=s.jsx("div",{className:"text-xs text-muted-foreground flex items-center gap-1",children:p}),e[11]=p,e[12]=x):x=e[12];let f;e[13]!==m||e[14]!==x?(f=s.jsxs("div",{children:[m,x]}),e[13]=m,e[14]=x,e[15]=f):f=e[15];let h;e[16]!==a||e[17]!==f?(h=s.jsx("div",{className:"px-5 border-b border-border",children:s.jsxs("div",{className:"flex items-center gap-3 py-5",children:[a,f]})}),e[16]=a,e[17]=f,e[18]=h):h=e[18];let g;e[19]!==o.version?(g=o.version&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Version"}),s.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",o.version]})]}),e[19]=o.version,e[20]=g):g=e[20];let b;e[21]!==o.connectionType?(b=o.connectionType&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:o.connectionType})]}),e[21]=o.connectionType,e[22]=b):b=e[22];let y;e[23]!==o.schemaVersion?(y=o.schemaVersion&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),s.jsx("span",{className:"text-muted-foreground text-xs",children:o.schemaVersion})]}),e[23]=o.schemaVersion,e[24]=y):y=e[24];let N;e[25]!==o.websiteUrl?(N=o.websiteUrl&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Website"}),s.jsxs("a",{href:o.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"Visit"}),s.jsx(be,{size:14})]})]}),e[25]=o.websiteUrl,e[26]=N):N=e[26];let w;e[27]!==o.repository?(w=o.repository?.url&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Source"}),s.jsxs("a",{href:o.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"GitHub"}),s.jsx(be,{size:14})]})]}),e[27]=o.repository,e[28]=w):w=e[28];let k;e[29]!==g||e[30]!==b||e[31]!==y||e[32]!==N||e[33]!==w?(k=s.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[g,b,y,N,w]}),e[29]=g,e[30]=b,e[31]=y,e[32]=N,e[33]=w,e[34]=k):k=e[34];let S;e[35]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[35]=S):S=e[35];let C;e[36]!==r.updated_at?(C=at(r.updated_at),e[36]=r.updated_at,e[37]=C):C=e[37];let I;e[38]!==C?(I=s.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[S,s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:C})]}),e[38]=C,e[39]=I):I=e[39];let u;return e[40]!==i||e[41]!==k||e[42]!==I||e[43]!==h?(u=s.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[i,h,k,I]}),e[40]=i,e[41]=k,e[42]=I,e[43]=h,e[44]=u):u=e[44],u}function dt(t){const e=_.c(18),{data:o,availableTabs:n,effectiveActiveTabId:r,effectiveTools:i,isLoadingTools:d,onTabChange:a}=t,l=d===void 0?!1:d;let m;e[0]!==i?(m=i.map(mt),e[0]=i,e[1]=m):m=e[1];const p=m;let x;e[2]!==n||e[3]!==r||e[4]!==a?(x=n.length>0&&s.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:s.jsx(Ge,{tabs:n,activeTab:r,onTabChange:a})}),e[2]=n,e[3]=r,e[4]=a,e[5]=x):x=e[5];let f;e[6]!==r||e[7]!==i.length||e[8]!==l||e[9]!==p?(f=r==="tools"&&s.jsx("div",{className:"flex flex-col flex-1",children:l?s.jsxs("div",{className:"flex items-center justify-center p-8",children:[s.jsx(je,{size:24,className:"animate-spin"}),s.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):i.length>0?s.jsx(Fe,{tools:p,showToolbar:!1,emptyMessage:"This app doesn't have any tools."}):s.jsx(Be,{image:null,title:"No tools available",description:"This app doesn't have any tools."})}),e[6]=r,e[7]=i.length,e[8]=l,e[9]=p,e[10]=f):f=e[10];let h;e[11]!==o?.repository||e[12]!==r?(h=r==="readme"&&s.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:s.jsx(Oe,{repository:o?.repository})}),e[11]=o?.repository,e[12]=r,e[13]=h):h=e[13];let g;return e[14]!==x||e[15]!==f||e[16]!==h?(g=s.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[x,f,h]}),e[14]=x,e[15]=f,e[16]=h,e[17]=g):g=e[17],g}function mt(t){const e=t;return{name:e.name||"",description:e.description||void 0}}function ft(t,e){if(!t||!e)return;const o=e.toLowerCase();return t.find(n=>n.app_name?.toLowerCase()===o||n.app_id?.toLowerCase()===o||n.title.toLowerCase()===o)||t.find(n=>n.title.toLowerCase().includes(o))}function ut(t,e,o,n,r){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:n?.icon||void 0,count:r??t.length};const i=e.toLowerCase(),d=t.filter(l=>(l._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":l.publisher||l._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===i);return{logo:o?.icon||d[0]?.publisher_logo||d[0]?.icon||void 0,count:d.length}}function pt(t){const e=t.server._meta?.["mcp.mesh/publisher-provided"],o=t._meta?.["mcp.mesh"],n=t._meta?.["io.modelcontextprotocol.registry/official"],r=t.server,i=Xe(r.remotes?.[0]?.type),d=Ye(r.$schema),a=n?"io.modelcontextprotocol.registry/official":t.publisher||o?.scopeName||"Unknown",l=et(r.repository),m=t.icon||t.image||t.logo||r.icons?.[0]?.src||l||null,p=t.name||t.title||t.server?.title||"Unnamed Item";return{name:tt(p),description:t.description||t.summary||t.server?.description||"",icon:m,verified:t.verified||o?.verified,publisher:a,version:r.version||null,websiteUrl:r.websiteUrl||null,repository:r.repository||null,schemaVersion:d??null,connectionType:i,connectionUrl:null,remoteUrl:null,tools:t.tools||r.tools||e?.tools||[],models:t.models||r.models||e?.models||[],emails:t.emails||r.emails||e?.emails||[],analytics:t.analytics||r.analytics||e?.analytics,cdn:t.cdn||r.cdn||e?.cdn}}class xt extends q.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Store app detail error:",e,o)}render(){return this.state.hasError?s.jsx(rt,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function ht(){const t=_.c(70),{org:e}=Ne(),o=ve();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},t[0]=n):n=t[0];const{appName:r}=ke(n);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[1]=i):i=t[1];const{registryId:d,serverName:a}=Se(i),[l,m]=q.useState("readme"),p=Ae(),x=De(),{data:f}=Ie.useSession(),h=He(x),g=d||h[0]?.id||"",b=Ee(g),y=Je(b?.tools),N=b?.tools&&b.tools.find(yt)?.name||"",w=b?.tools&&b.tools.find(jt)?.name||"",k=Me(g),S=!!a;let C,I;S?(C=N||w,I={name:a}):(C=y,I={});const{data:u}=We({toolCaller:k,toolName:C,toolInputParams:I,scope:g});let E=[],L=[],pe=null;if(u){if(Array.isArray(u))E=u;else if(typeof u=="object"&&u!==null)if("totalCount"in u&&typeof u.totalCount=="number"&&(pe=u.totalCount),"item"in u&&u.item){const c=u.item,T=c.id||"",M=c.server,U=c._meta;let D;t[2]!==c.title||t[3]!==T||t[4]!==M||t[5]!==U?(D=[{id:T,title:c.title,server:M,_meta:U}],t[2]=c.title,t[3]=T,t[4]=M,t[5]=U,t[6]=D):D=t[6],E=D}else{let c;"versions"in u&&Array.isArray(u.versions)?c="versions":"servers"in u&&Array.isArray(u.servers)?c="servers":c=Object.keys(u).find(T=>Array.isArray(u[T])),c&&(E=u[c],(c==="versions"||C?.includes("VERSIONS"))&&(L=E))}}let X;t[7]!==r?(X=c=>{const T=c.name||c.title||c.server.title||"";return qe(T)===r},t[7]=r,t[8]=X):X=t[8];let j=E.find(X);if(!j&&a){let c;t[9]!==a?(c=T=>T.server.name===a||T.name===a||T.title===a,t[9]=a,t[10]=c):c=t[10],j=E.find(c)}const v=j?pt(j):null,le=(v?.tools?.length||0)>0,ae=j?.server?.remotes?.[0]?.url||null,J=!le&&!!ae,Q=Ke({url:J?ae:""}),Y=J&&Q.state==="connecting";let ee;t[11]!==Q||t[12]!==J?(ee=J&&Q.state==="ready"?(Q.tools||[]).map(vt):[],t[11]=Q,t[12]=J,t[13]=ee):ee=t[13];const xe=ee,V=le?v?.tools||[]:xe,Ce=ft(x,v?.publisher),ce=v?ut(E,v.publisher,Ce,b??null,pe):{count:0},Te=v?.repository?Qe(v.repository):null,de=!!v?.repository&&!!Te;let $;t[14]!==de?($={id:"readme",label:"README",visible:de},t[14]=de,t[15]=$):$=t[15];const me=le||xe.length>0||Y&&!!ae;let P;t[16]!==V.length||t[17]!==me?(P={id:"tools",label:"Tools",count:V.length,visible:me},t[16]=V.length,t[17]=me,t[18]=P):P=t[18];let te;t[19]!==$||t[20]!==P?(te=[$,P].filter(bt),t[19]=$,t[20]=P,t[21]=te):te=t[21];const A=te;let se;t[22]!==l||t[23]!==A?(se=A.find(c=>c.id===l)?l:A.find(gt)?.id||A[0]?.id||"overview",t[22]=l,t[23]=A,t[24]=se):se=t[24];const fe=se;let oe;t[25]!==p||t[26]!==L||t[27]!==o||t[28]!==e||t[29]!==j||t[30]!==f?(oe=async c=>{const T=L[c??0]||j;if(!T||!e||!f?.user?.id)return;const M=Ze(T,e.id,f.user.id);if(!M.connection_url){he.error("This MCP Server cannot be connected: no connection URL available");return}try{const{id:U}=await p.create.mutateAsync(M);o({to:"/$org/mcps/$connectionId",params:{org:e.slug,connectionId:U}})}catch(U){const D=U;he.error(`Failed to connect MCP Server: ${D instanceof Error?D.message:String(D)}`)}},t[25]=p,t[26]=L,t[27]=o,t[28]=e,t[29]=j,t[30]=f,t[31]=oe):oe=t[31];const ue=oe;let re;t[32]!==o||t[33]!==e.slug?(re=()=>{o({to:"/$org/store",params:{org:e.slug}})},t[32]=o,t[33]=e.slug,t[34]=re):re=t[34];const R=re;if(!j){let c;return t[35]!==R?(c=s.jsx(nt,{onBack:R}),t[35]=R,t[36]=c):c=t[36],c}if(!v)return null;const z=(j?.server?.remotes?.length??0)>0;let B;t[37]!==R?(B=s.jsx(it,{onBack:R}),t[37]=R,t[38]=B):B=t[38];let G;t[39]!==z?(G=!z&&s.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[s.jsx(st,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t[39]=z,t[40]=G):G=t[40];let F;t[41]!==L||t[42]!==j?(F=L.length>0?L:[j],t[41]=L,t[42]=j,t[43]=F):F=t[43];let O;t[44]!==p.create.isPending||t[45]!==z||t[46]!==v||t[47]!==ue||t[48]!==F?(O=s.jsx(lt,{data:v,itemVersions:F,onInstall:ue,canInstall:z,isInstalling:p.create.isPending}),t[44]=p.create.isPending,t[45]=z,t[46]=v,t[47]=ue,t[48]=F,t[49]=O):O=t[49];let H;t[50]!==v||t[51]!==ce||t[52]!==j?(H=s.jsx(ct,{data:v,publisherInfo:ce,selectedItem:j}),t[50]=v,t[51]=ce,t[52]=j,t[53]=H):H=t[53];let W;t[54]!==A||t[55]!==v||t[56]!==fe||t[57]!==V||t[58]!==Y?(W=s.jsx(dt,{data:v,availableTabs:A,effectiveActiveTabId:fe,effectiveTools:V,isLoadingTools:Y,onTabChange:m}),t[54]=A,t[55]=v,t[56]=fe,t[57]=V,t[58]=Y,t[59]=W):W=t[59];let K;t[60]!==H||t[61]!==W?(K=s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[H,W]}),t[60]=H,t[61]=W,t[62]=K):K=t[62];let Z;t[63]!==G||t[64]!==O||t[65]!==K?(Z=s.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:s.jsx("div",{className:"h-full",children:s.jsxs("div",{className:"h-full",children:[G,O,K]})})}),t[63]=G,t[64]=O,t[65]=K,t[66]=Z):Z=t[66];let ne;return t[67]!==B||t[68]!==Z?(ne=s.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[B,Z]}),t[67]=B,t[68]=Z,t[69]=ne):ne=t[69],ne}function gt(t){return t.id==="readme"}function bt(t){return t.visible}function vt(t){return{name:t.name,description:t.description}}function jt(t){return t.name.endsWith("_GET")}function yt(t){return t.name.endsWith("_VERSIONS")}function os(){const t=_.c(6),{org:e}=Ne(),o=ve();let n;t[0]!==o||t[1]!==e.slug?(n=()=>{o({to:"/$org/store",params:{org:e.slug}})},t[0]=o,t[1]=e.slug,t[2]=n):n=t[2];const r=n;let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(q.Suspense,{fallback:s.jsx(ot,{}),children:s.jsx(ht,{})}),t[3]=i):i=t[3];let d;return t[4]!==r?(d=s.jsx(xt,{onBack:r,children:i}),t[4]=r,t[5]=d):d=t[5],d}export{os as default};
1
+ import{r as q,c as _,j as s,f as ve,d as ke,b as Se,a as Ie,t as he}from"./index-BFGV_ZyQ.js";import{i as _e}from"./AlertCircle-BRDn8bYf.js";import{i as je}from"./Loading01-Bg5ZbX7j.js";import{B as ie}from"./button-DGzvT_2A.js";import{i as Le}from"./ArrowLeft-qWOemv4m.js";import{I as ye,a as Ae,u as De,b as Ee,c as Me}from"./use-connection-DfrXFTVM.js";import{i as Ue}from"./CheckCircle-DNAL-vtD.js";import{t as Ve}from"./ChevronDown-CJBpL9ke.js";import{s as ge}from"./Plus-DHLB4x84.js";import{b as $e,D as Pe,a as Re,c as ze}from"./dropdown-menu-D1IcmwBM.js";import{n as be}from"./LinkExternal01-v_wZOVfQ.js";import{E as Be}from"./SearchMd-dWvbF6MG.js";import{R as Ge,T as Fe,a as Oe}from"./resource-tabs-talmxE-P.js";import{a as He}from"./use-binding-BAah0fz3.js";import{u as We}from"./use-tool-call-De--YQMp.js";import{u as Ke}from"./use-mcp-BM47vnpW.js";import{u as Ne}from"./tooltip-B1UObqaJ.js";import{e as Ze}from"./extract-connection-data-BzkcwZMq.js";import{s as qe}from"./slugify-CEUa2lfQ.js";import{f as Je,e as Qe,b as Xe,c as Ye,g as et}from"./registry-utils-ulDDT0d8.js";import{e as tt}from"./app-name-gTETL9So.js";import{i as st}from"./InfoCircle-D8u9C2rC.js";import"./utils-D8oc_Xja.js";import"./Grid01-DzkX4KgN.js";import"./useQuery-B00cZGqv.js";import"./File06-CaEGX5DR.js";import"./collection-display-button-HCh5o-4Q.js";import"./collection-search-nvVuwapQ.js";import"./input-CSN83rcG.js";import"./collection-table-wrapper-D0FdiE30.js";import"./card-DhiM8w8S.js";import"./layout-By0mCM-C.js";import"./badge-CsN_0CQA.js";import"./auth-DzSQcnhF.js";import"./generate-id-Dyweu44Y.js";const we=({size:t=24,color:e="currentColor",...o})=>q.createElement("svg",{viewBox:"0 0 24 24",width:t,height:t,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...o},q.createElement("path",{d:"m21 21-3.5-3.5m2.5-6a8.5 8.5 0 1 1-17 0 8.5 8.5 0 0 1 17 0Z"}));we.displayName="SearchLg";function ot(t){const e=_.c(3),{message:o}=t,n=o===void 0?"Loading app details...":o;let r;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=s.jsx(je,{size:48,className:"animate-spin mb-4"}),e[0]=r):r=e[0];let i;return e[1]!==n?(i=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[r,s.jsx("p",{className:"text-sm text-muted-foreground",children:n})]}),e[1]=n,e[2]=i):i=e[2],i}function rt(t){const e=_.c(9),{error:o,onBack:n}=t,r=o instanceof Error?o.message:o;let i,d;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(_e,{size:48,className:"text-destructive mb-4"}),d=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"Error loading app"}),e[0]=i,e[1]=d):(i=e[0],d=e[1]);let a;e[2]!==r?(a=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:r}),e[2]=r,e[3]=a):a=e[3];let l;e[4]!==n?(l=s.jsx("button",{onClick:n,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back"}),e[4]=n,e[5]=l):l=e[5];let m;return e[6]!==a||e[7]!==l?(m=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[i,d,a,l]}),e[6]=a,e[7]=l,e[8]=m):m=e[8],m}function nt(t){const e=_.c(5),{onBack:o}=t;let n,r,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(we,{size:48,className:"text-muted-foreground mb-4"}),r=s.jsx("h3",{className:"text-lg font-medium mb-2",children:"App not found"}),i=s.jsx("p",{className:"text-muted-foreground max-w-md text-center",children:"The app you're looking for doesn't exist in this store."}),e[0]=n,e[1]=r,e[2]=i):(n=e[0],r=e[1],i=e[2]);let d;return e[3]!==o?(d=s.jsxs("div",{className:"flex flex-col items-center justify-center h-full",children:[n,r,i,s.jsx("button",{onClick:o,className:"mt-4 px-4 py-2 bg-primary text-primary-foreground rounded-lg hover:bg-primary/90 transition-colors",children:"Go Back to Store"})]}),e[3]=o,e[4]=d):d=e[4],d}function it(t){const e=_.c(3),{onBack:o}=t;let n;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=s.jsx(Le,{}),e[0]=n):n=e[0];let r;return e[1]!==o?(r=s.jsx("div",{className:"flex items-center h-12 border-b border-border shrink-0",children:s.jsx("div",{className:"flex h-full px-2 border-r items-center",children:s.jsx(ie,{variant:"ghost",size:"icon",className:"items-center size-8 text-muted-foreground",onClick:o,"aria-label":"Go back",children:n})})}),e[1]=o,e[2]=r):r=e[2],r}function lt(t){const e=_.c(25),{data:o,itemVersions:n,onInstall:r,canInstall:i,isInstalling:d}=t,a=i===void 0?!0:i,l=d===void 0?!1:d,[m,p]=q.useState(0);let x;e[0]!==r?(x=S=>{p(S),r(S)},e[0]=r,e[1]=x):x=e[1];const f=x;let h;e[2]!==o.icon||e[3]!==o.name?(h=s.jsx(ye,{icon:o.icon,name:o.name,size:"lg",className:"shrink-0 shadow-sm"}),e[2]=o.icon,e[3]=o.name,e[4]=h):h=e[4];let g;e[5]!==o.name?(g=s.jsx("h1",{className:"text-3xl font-medium",children:o.name}),e[5]=o.name,e[6]=g):g=e[6];let b;e[7]!==o.verified?(b=o.verified&&s.jsx("img",{src:"/verified-badge.svg",alt:"Verified",className:"w-5 h-5 shrink-0"}),e[7]=o.verified,e[8]=b):b=e[8];let y;e[9]!==g||e[10]!==b?(y=s.jsx("div",{className:"flex-1 min-w-0",children:s.jsxs("div",{className:"flex items-center gap-2",children:[g,b]})}),e[9]=g,e[10]=b,e[11]=y):y=e[11];let N;e[12]!==a||e[13]!==f||e[14]!==l||e[15]!==n||e[16]!==r||e[17]!==m?(N=a?s.jsx("div",{className:"shrink-0",children:n.length>1?s.jsxs("div",{className:"flex",children:[s.jsxs(ie,{variant:"brand",onClick:()=>f(0),disabled:l,className:"shrink-0 rounded-r-none cursor-pointer",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect MCP Server"]}),s.jsxs($e,{children:[s.jsx(Pe,{asChild:!0,children:s.jsx(ie,{variant:"brand",disabled:l,className:"shrink-0 rounded-l-none px-2 border-l-2 border-l-white/50 cursor-pointer",children:s.jsx(Ve,{size:20})})}),s.jsx(Re,{align:"end",className:"w-56 max-h-[300px] overflow-y-auto",children:n.map((S,C)=>{const I=S._meta?.["io.modelcontextprotocol.registry/official"];return s.jsx(ze,{onClick:()=>f(C),disabled:l,className:"cursor-pointer",children:s.jsxs("div",{className:"flex items-center justify-between gap-2 w-full",children:[s.jsxs("div",{className:"flex items-center gap-2",children:[s.jsxs("div",{className:"font-medium text-sm",children:["v",S.server?.version||"unknown"]}),I?.isLatest&&s.jsx("div",{className:"text-xs text-muted-foreground/50 font-semibold",children:"LATEST"})]}),C===m&&s.jsx(Ue,{size:16,className:"text-muted-foreground shrink-0"})]})},C)})})]})]}):s.jsxs(ie,{variant:"brand",onClick:()=>r(),disabled:n.length===0||l,className:"shrink-0",children:[s.jsx(ge,{size:20}),l?"Connecting...":"Connect MCP Server"]})}):s.jsx("div",{className:"shrink-0 px-4 py-2 text-sm text-muted-foreground bg-muted rounded-lg",children:"Cannot be connected"}),e[12]=a,e[13]=f,e[14]=l,e[15]=n,e[16]=r,e[17]=m,e[18]=N):N=e[18];let w;e[19]!==y||e[20]!==N?(w=s.jsxs("div",{className:"flex-1 min-w-0 flex items-center justify-between",children:[y,N]}),e[19]=y,e[20]=N,e[21]=w):w=e[21];let k;return e[22]!==h||e[23]!==w?(k=s.jsxs("div",{className:"flex items-center gap-4 py-8 px-5 border-b border-border",children:[h,w]}),e[22]=h,e[23]=w,e[24]=k):k=e[24],k}function at(t){if(!t)return"—";try{const e=new Date(t);return isNaN(e.getTime())?"—":e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}catch{return"—"}}function ct(t){const e=_.c(45),{data:o,publisherInfo:n,selectedItem:r}=t;let i;e[0]!==o.description?(i=o.description&&s.jsxs("div",{className:"px-5 pb-5 border-b border-border",children:[s.jsx("h2",{className:"text-base font-medium mb-3",children:"Overview"}),s.jsx("p",{className:"text-muted-foreground text-sm leading-relaxed",children:o.description})]}),e[0]=o.description,e[1]=i):i=e[1];const d=o.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":o.publisher;let a;e[2]!==n.logo||e[3]!==d?(a=s.jsx(ye,{icon:n.logo,name:d,size:"sm",className:"shrink-0 shadow-sm"}),e[2]=n.logo,e[3]=d,e[4]=a):a=e[4];let l;e[5]!==o.publisher?(l=o.publisher==="io.modelcontextprotocol.registry/official"?"Official Registry":o.publisher.charAt(0).toUpperCase()+o.publisher.slice(1),e[5]=o.publisher,e[6]=l):l=e[6];let m;e[7]!==l?(m=s.jsx("div",{className:"font-medium",children:l}),e[7]=l,e[8]=m):m=e[8];let p;e[9]!==n.count?(p=n.count>0?s.jsxs(s.Fragment,{children:[s.jsx("img",{src:"/globe.svg",alt:"globe",className:"w-3 h-3"}),s.jsxs("span",{children:[n.count," ",n.count===1?"published app":"published apps"]})]}):"Publisher",e[9]=n.count,e[10]=p):p=e[10];let x;e[11]!==p?(x=s.jsx("div",{className:"text-xs text-muted-foreground flex items-center gap-1",children:p}),e[11]=p,e[12]=x):x=e[12];let f;e[13]!==m||e[14]!==x?(f=s.jsxs("div",{children:[m,x]}),e[13]=m,e[14]=x,e[15]=f):f=e[15];let h;e[16]!==a||e[17]!==f?(h=s.jsx("div",{className:"px-5 border-b border-border",children:s.jsxs("div",{className:"flex items-center gap-3 py-5",children:[a,f]})}),e[16]=a,e[17]=f,e[18]=h):h=e[18];let g;e[19]!==o.version?(g=o.version&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Version"}),s.jsxs("span",{className:"text-muted-foreground uppercase text-xs",children:["v",o.version]})]}),e[19]=o.version,e[20]=g):g=e[20];let b;e[21]!==o.connectionType?(b=o.connectionType&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Connection Type"}),s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:o.connectionType})]}),e[21]=o.connectionType,e[22]=b):b=e[22];let y;e[23]!==o.schemaVersion?(y=o.schemaVersion&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Schema Version"}),s.jsx("span",{className:"text-muted-foreground text-xs",children:o.schemaVersion})]}),e[23]=o.schemaVersion,e[24]=y):y=e[24];let N;e[25]!==o.websiteUrl?(N=o.websiteUrl&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Website"}),s.jsxs("a",{href:o.websiteUrl,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"Visit"}),s.jsx(be,{size:14})]})]}),e[25]=o.websiteUrl,e[26]=N):N=e[26];let w;e[27]!==o.repository?(w=o.repository?.url&&s.jsxs("div",{className:"flex justify-between items-center text-sm",children:[s.jsx("span",{className:"text-foreground text-sm",children:"Source"}),s.jsxs("a",{href:o.repository.url,target:"_blank",rel:"noopener noreferrer",className:"text-muted-foreground hover:underline flex items-center gap-1 text-xs",children:[s.jsx("span",{children:"GitHub"}),s.jsx(be,{size:14})]})]}),e[27]=o.repository,e[28]=w):w=e[28];let k;e[29]!==g||e[30]!==b||e[31]!==y||e[32]!==N||e[33]!==w?(k=s.jsxs("div",{className:"px-5 py-5 border-b border-border space-y-4",children:[g,b,y,N,w]}),e[29]=g,e[30]=b,e[31]=y,e[32]=N,e[33]=w,e[34]=k):k=e[34];let S;e[35]===Symbol.for("react.memo_cache_sentinel")?(S=s.jsx("span",{className:"text-foreground text-sm",children:"Last Updated"}),e[35]=S):S=e[35];let C;e[36]!==r.updated_at?(C=at(r.updated_at),e[36]=r.updated_at,e[37]=C):C=e[37];let I;e[38]!==C?(I=s.jsxs("div",{className:"px-5 py-5 text-sm flex justify-between items-center border-b border-border",children:[S,s.jsx("span",{className:"text-muted-foreground uppercase text-xs",children:C})]}),e[38]=C,e[39]=I):I=e[39];let u;return e[40]!==i||e[41]!==k||e[42]!==I||e[43]!==h?(u=s.jsxs("div",{className:"lg:col-span-1 flex flex-col pt-5",children:[i,h,k,I]}),e[40]=i,e[41]=k,e[42]=I,e[43]=h,e[44]=u):u=e[44],u}function dt(t){const e=_.c(18),{data:o,availableTabs:n,effectiveActiveTabId:r,effectiveTools:i,isLoadingTools:d,onTabChange:a}=t,l=d===void 0?!1:d;let m;e[0]!==i?(m=i.map(mt),e[0]=i,e[1]=m):m=e[1];const p=m;let x;e[2]!==n||e[3]!==r||e[4]!==a?(x=n.length>0&&s.jsx("div",{className:"px-4 py-2 border-b border-border bg-background",children:s.jsx(Ge,{tabs:n,activeTab:r,onTabChange:a})}),e[2]=n,e[3]=r,e[4]=a,e[5]=x):x=e[5];let f;e[6]!==r||e[7]!==i.length||e[8]!==l||e[9]!==p?(f=r==="tools"&&s.jsx("div",{className:"flex flex-col flex-1",children:l?s.jsxs("div",{className:"flex items-center justify-center p-8",children:[s.jsx(je,{size:24,className:"animate-spin"}),s.jsx("span",{className:"ml-2 text-sm text-muted-foreground",children:"Loading tools..."})]}):i.length>0?s.jsx(Fe,{tools:p,showToolbar:!1,emptyMessage:"This app doesn't have any tools."}):s.jsx(Be,{image:null,title:"No tools available",description:"This app doesn't have any tools."})}),e[6]=r,e[7]=i.length,e[8]=l,e[9]=p,e[10]=f):f=e[10];let h;e[11]!==o?.repository||e[12]!==r?(h=r==="readme"&&s.jsx("div",{className:"flex-1 overflow-y-auto bg-background",children:s.jsx(Oe,{repository:o?.repository})}),e[11]=o?.repository,e[12]=r,e[13]=h):h=e[13];let g;return e[14]!==x||e[15]!==f||e[16]!==h?(g=s.jsxs("div",{className:"lg:col-span-2 flex flex-col border-l border-border",children:[x,f,h]}),e[14]=x,e[15]=f,e[16]=h,e[17]=g):g=e[17],g}function mt(t){const e=t;return{name:e.name||"",description:e.description||void 0}}function ft(t,e){if(!t||!e)return;const o=e.toLowerCase();return t.find(n=>n.app_name?.toLowerCase()===o||n.app_id?.toLowerCase()===o||n.title.toLowerCase()===o)||t.find(n=>n.title.toLowerCase().includes(o))}function ut(t,e,o,n,r){if(!e||e==="Unknown")return{count:0};if(e==="io.modelcontextprotocol.registry/official")return{logo:n?.icon||void 0,count:r??t.length};const i=e.toLowerCase(),d=t.filter(l=>(l._meta?.["io.modelcontextprotocol.registry/official"]?"io.modelcontextprotocol.registry/official":l.publisher||l._meta?.["mcp.mesh"]?.scopeName||"Unknown").toLowerCase()===i);return{logo:o?.icon||d[0]?.publisher_logo||d[0]?.icon||void 0,count:d.length}}function pt(t){const e=t.server._meta?.["mcp.mesh/publisher-provided"],o=t._meta?.["mcp.mesh"],n=t._meta?.["io.modelcontextprotocol.registry/official"],r=t.server,i=Xe(r.remotes?.[0]?.type),d=Ye(r.$schema),a=n?"io.modelcontextprotocol.registry/official":t.publisher||o?.scopeName||"Unknown",l=et(r.repository),m=t.icon||t.image||t.logo||r.icons?.[0]?.src||l||null,p=t.name||t.title||t.server?.title||"Unnamed Item";return{name:tt(p),description:t.description||t.summary||t.server?.description||"",icon:m,verified:t.verified||o?.verified,publisher:a,version:r.version||null,websiteUrl:r.websiteUrl||null,repository:r.repository||null,schemaVersion:d??null,connectionType:i,connectionUrl:null,remoteUrl:null,tools:t.tools||r.tools||e?.tools||[],models:t.models||r.models||e?.models||[],emails:t.emails||r.emails||e?.emails||[],analytics:t.analytics||r.analytics||e?.analytics,cdn:t.cdn||r.cdn||e?.cdn}}class xt extends q.Component{state={hasError:!1,error:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,o){console.error("Store app detail error:",e,o)}render(){return this.state.hasError?s.jsx(rt,{error:this.state.error||new Error("Unknown error"),onBack:this.props.onBack}):this.props.children}}function ht(){const t=_.c(70),{org:e}=Ne(),o=ve();let n;t[0]===Symbol.for("react.memo_cache_sentinel")?(n={strict:!1},t[0]=n):n=t[0];const{appName:r}=ke(n);let i;t[1]===Symbol.for("react.memo_cache_sentinel")?(i={strict:!1},t[1]=i):i=t[1];const{registryId:d,serverName:a}=Se(i),[l,m]=q.useState("readme"),p=Ae(),x=De(),{data:f}=Ie.useSession(),h=He(x),g=d||h[0]?.id||"",b=Ee(g),y=Je(b?.tools),N=b?.tools&&b.tools.find(yt)?.name||"",w=b?.tools&&b.tools.find(jt)?.name||"",k=Me(g),S=!!a;let C,I;S?(C=N||w,I={name:a}):(C=y,I={});const{data:u}=We({toolCaller:k,toolName:C,toolInputParams:I,scope:g});let E=[],L=[],pe=null;if(u){if(Array.isArray(u))E=u;else if(typeof u=="object"&&u!==null)if("totalCount"in u&&typeof u.totalCount=="number"&&(pe=u.totalCount),"item"in u&&u.item){const c=u.item,T=c.id||"",M=c.server,U=c._meta;let D;t[2]!==c.title||t[3]!==T||t[4]!==M||t[5]!==U?(D=[{id:T,title:c.title,server:M,_meta:U}],t[2]=c.title,t[3]=T,t[4]=M,t[5]=U,t[6]=D):D=t[6],E=D}else{let c;"versions"in u&&Array.isArray(u.versions)?c="versions":"servers"in u&&Array.isArray(u.servers)?c="servers":c=Object.keys(u).find(T=>Array.isArray(u[T])),c&&(E=u[c],(c==="versions"||C?.includes("VERSIONS"))&&(L=E))}}let X;t[7]!==r?(X=c=>{const T=c.name||c.title||c.server.title||"";return qe(T)===r},t[7]=r,t[8]=X):X=t[8];let j=E.find(X);if(!j&&a){let c;t[9]!==a?(c=T=>T.server.name===a||T.name===a||T.title===a,t[9]=a,t[10]=c):c=t[10],j=E.find(c)}const v=j?pt(j):null,le=(v?.tools?.length||0)>0,ae=j?.server?.remotes?.[0]?.url||null,J=!le&&!!ae,Q=Ke({url:J?ae:""}),Y=J&&Q.state==="connecting";let ee;t[11]!==Q||t[12]!==J?(ee=J&&Q.state==="ready"?(Q.tools||[]).map(vt):[],t[11]=Q,t[12]=J,t[13]=ee):ee=t[13];const xe=ee,V=le?v?.tools||[]:xe,Ce=ft(x,v?.publisher),ce=v?ut(E,v.publisher,Ce,b??null,pe):{count:0},Te=v?.repository?Qe(v.repository):null,de=!!v?.repository&&!!Te;let $;t[14]!==de?($={id:"readme",label:"README",visible:de},t[14]=de,t[15]=$):$=t[15];const me=le||xe.length>0||Y&&!!ae;let P;t[16]!==V.length||t[17]!==me?(P={id:"tools",label:"Tools",count:V.length,visible:me},t[16]=V.length,t[17]=me,t[18]=P):P=t[18];let te;t[19]!==$||t[20]!==P?(te=[$,P].filter(bt),t[19]=$,t[20]=P,t[21]=te):te=t[21];const A=te;let se;t[22]!==l||t[23]!==A?(se=A.find(c=>c.id===l)?l:A.find(gt)?.id||A[0]?.id||"overview",t[22]=l,t[23]=A,t[24]=se):se=t[24];const fe=se;let oe;t[25]!==p||t[26]!==L||t[27]!==o||t[28]!==e||t[29]!==j||t[30]!==f?(oe=async c=>{const T=L[c??0]||j;if(!T||!e||!f?.user?.id)return;const M=Ze(T,e.id,f.user.id);if(!M.connection_url){he.error("This MCP Server cannot be connected: no connection URL available");return}try{const{id:U}=await p.create.mutateAsync(M);o({to:"/$org/mcps/$connectionId",params:{org:e.slug,connectionId:U}})}catch(U){const D=U;he.error(`Failed to connect MCP Server: ${D instanceof Error?D.message:String(D)}`)}},t[25]=p,t[26]=L,t[27]=o,t[28]=e,t[29]=j,t[30]=f,t[31]=oe):oe=t[31];const ue=oe;let re;t[32]!==o||t[33]!==e.slug?(re=()=>{o({to:"/$org/store",params:{org:e.slug}})},t[32]=o,t[33]=e.slug,t[34]=re):re=t[34];const R=re;if(!j){let c;return t[35]!==R?(c=s.jsx(nt,{onBack:R}),t[35]=R,t[36]=c):c=t[36],c}if(!v)return null;const z=(j?.server?.remotes?.length??0)>0;let B;t[37]!==R?(B=s.jsx(it,{onBack:R}),t[37]=R,t[38]=B):B=t[38];let G;t[39]!==z?(G=!z&&s.jsxs("div",{className:"mb-6 p-4 bg-amber-50 border border-amber-200 rounded-lg text-sm text-amber-900",children:[s.jsx(st,{size:16,className:"inline mr-2"}),"This MCP Server cannot be connected - no connection method available."]}),t[39]=z,t[40]=G):G=t[40];let F;t[41]!==L||t[42]!==j?(F=L.length>0?L:[j],t[41]=L,t[42]=j,t[43]=F):F=t[43];let O;t[44]!==p.create.isPending||t[45]!==z||t[46]!==v||t[47]!==ue||t[48]!==F?(O=s.jsx(lt,{data:v,itemVersions:F,onInstall:ue,canInstall:z,isInstalling:p.create.isPending}),t[44]=p.create.isPending,t[45]=z,t[46]=v,t[47]=ue,t[48]=F,t[49]=O):O=t[49];let H;t[50]!==v||t[51]!==ce||t[52]!==j?(H=s.jsx(ct,{data:v,publisherInfo:ce,selectedItem:j}),t[50]=v,t[51]=ce,t[52]=j,t[53]=H):H=t[53];let W;t[54]!==A||t[55]!==v||t[56]!==fe||t[57]!==V||t[58]!==Y?(W=s.jsx(dt,{data:v,availableTabs:A,effectiveActiveTabId:fe,effectiveTools:V,isLoadingTools:Y,onTabChange:m}),t[54]=A,t[55]=v,t[56]=fe,t[57]=V,t[58]=Y,t[59]=W):W=t[59];let K;t[60]!==H||t[61]!==W?(K=s.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 min-h-[677px]",children:[H,W]}),t[60]=H,t[61]=W,t[62]=K):K=t[62];let Z;t[63]!==G||t[64]!==O||t[65]!==K?(Z=s.jsx("div",{className:"flex-1 overflow-y-auto h-full",children:s.jsx("div",{className:"h-full",children:s.jsxs("div",{className:"h-full",children:[G,O,K]})})}),t[63]=G,t[64]=O,t[65]=K,t[66]=Z):Z=t[66];let ne;return t[67]!==B||t[68]!==Z?(ne=s.jsxs("div",{className:"flex flex-col h-full border-l border-border",children:[B,Z]}),t[67]=B,t[68]=Z,t[69]=ne):ne=t[69],ne}function gt(t){return t.id==="readme"}function bt(t){return t.visible}function vt(t){return{name:t.name,description:t.description}}function jt(t){return t.name.endsWith("_GET")}function yt(t){return t.name.endsWith("_VERSIONS")}function os(){const t=_.c(6),{org:e}=Ne(),o=ve();let n;t[0]!==o||t[1]!==e.slug?(n=()=>{o({to:"/$org/store",params:{org:e.slug}})},t[0]=o,t[1]=e.slug,t[2]=n):n=t[2];const r=n;let i;t[3]===Symbol.for("react.memo_cache_sentinel")?(i=s.jsx(q.Suspense,{fallback:s.jsx(ot,{}),children:s.jsx(ht,{})}),t[3]=i):i=t[3];let d;return t[4]!==r?(d=s.jsx(xt,{onBack:r,children:i}),t[4]=r,t[5]=d):d=t[5],d}export{os as default};
@@ -1 +1 @@
1
- import{r as j,c as M,j as t,F as X,z as I,a1 as z,y as _,B as G,bx as J,by as K}from"./index-BWMTgSpJ.js";import{I as $,u as Y}from"./use-connection-Lp9rwnx7.js";import{C as F}from"./checkbox-Bq4Db1eq.js";import{B as Z}from"./button-WA21TIge.js";import{i as ee}from"./ArrowLeft-DZ8Qhlyz.js";import{c as S}from"./utils-CvrJmBA1.js";import{C as te}from"./collection-search-Dh2zcE6Z.js";const se=j.memo(function(o){const e=M.c(21),{connection:n,isSelected:r,hasToolsEnabled:c,activeToolsCount:i,totalToolsCount:x,onSelect:b,onToggle:g}=o,d=r?"bg-accent/50":"hover:bg-muted/50";let u;e[0]!==d?(u=S("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),e[0]=d,e[1]=u):u=e[1];let m;e[2]!==n.icon||e[3]!==n.title?(m=t.jsx($,{icon:n.icon,name:n.title,size:"xs"}),e[2]=n.icon,e[3]=n.title,e[4]=m):m=e[4];let p;e[5]!==n.title?(p=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title})}),e[5]=n.title,e[6]=p):p=e[6];let a;e[7]!==b||e[8]!==m||e[9]!==p?(a=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:b,children:[m,p]}),e[7]=b,e[8]=m,e[9]=p,e[10]=a):a=e[10];let f;e[11]!==i||e[12]!==n.tools||e[13]!==c||e[14]!==g||e[15]!==x?(f=n.tools&&n.tools.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[i,"/",x]}),t.jsx(F,{checked:c,onCheckedChange:g,onClick:ne})]}),e[11]=i,e[12]=n.tools,e[13]=c,e[14]=g,e[15]=x,e[16]=f):f=e[16];let C;return e[17]!==u||e[18]!==a||e[19]!==f?(C=t.jsxs("div",{className:u,children:[a,f]}),e[17]=u,e[18]=a,e[19]=f,e[20]=C):C=e[20],C}),oe=j.memo(function(o){const e=M.c(18),{connectionId:n,tool:r,isSelected:c,onToggle:i}=o,x=`tool-${n}-${r.name}`,b=c?"text-foreground":"text-muted-foreground";let g;e[0]!==b?(g=S("text-sm font-medium",b),e[0]=b,e[1]=g):g=e[1];let d;e[2]!==g||e[3]!==r.name?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:g,children:r.name})}),e[2]=g,e[3]=r.name,e[4]=d):d=e[4];let u;e[5]!==r.description?(u=r.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:r.description}),e[5]=r.description,e[6]=u):u=e[6];let m;e[7]!==d||e[8]!==u?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,u]}),e[7]=d,e[8]=u,e[9]=m):m=e[9];const p=`tool-${n}-${r.name}`;let a;e[10]!==c||e[11]!==i||e[12]!==p?(a=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(F,{id:p,checked:c,onCheckedChange:i,onClick:re})}),e[10]=c,e[11]=i,e[12]=p,e[13]=a):a=e[13];let f;return e[14]!==x||e[15]!==m||e[16]!==a?(f=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:x,children:[m,a]}),e[14]=x,e[15]=m,e[16]=a,e[17]=f):f=e[17],f});function ve({toolSet:l,onToolSetChange:o}){const[e,n]=j.useState(""),r=j.useDeferredValue(e),[c,i]=j.useState("all"),[x,b]=j.useState(!1),g=j.useRef(new Set(Object.keys(l))),d=Y({searchTerm:r.trim()||void 0}),u=g.current,m=[...u.values()].map(s=>d.find(h=>h.id===s)).filter(s=>s!==void 0),p=d.filter(s=>!u.has(s.id)),a=[...m,...p],f=s=>{const h=l[s];return h!==void 0&&h.length>0},C=a.filter(s=>{if(c==="all")return!0;const h=f(s.id);return c==="selected"?h:c==="unselected"?!h:!0}),[w,P]=j.useState(a[0]?.id??null),v=w?a.find(s=>s.id===w)??null:null,E=v?.tools??[],Q=(s,h)=>l[s]?.includes(h)??!1,q=(s,h)=>{const N=l[s]??[],R=N.includes(h),y={...l};if(R){const T=N.filter(k=>k!==h);T.length===0?delete y[s]:y[s]=T}else y[s]=[...N,h];o(y)},L=s=>{const h=a.find(k=>k.id===s);if(!h?.tools)return;const N=l[s]??[],R=h.tools.map(k=>k.name),y=N.length>0&&R.every(k=>N.includes(k)),T={...l};y?delete T[s]:(T[s]=R,P(s)),o(T)},V=s=>{P(s),b(!0)},W=()=>{b(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:S("w-full md:w-80 border-r border-border flex flex-col",x&&"hidden md:flex"),children:[t.jsx(te,{value:e,onChange:n,placeholder:"Search MCP Servers..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>i("all"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>i("selected"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>i("unselected"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:C.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:e?"No connections found":c==="selected"?"No servers selected":c==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:C.map(s=>{const h=s.tools?.length??0,N=l[s.id]?.length??0;return t.jsx(se,{connection:s,isSelected:w===s.id,hasToolsEnabled:f(s.id),activeToolsCount:N,totalToolsCount:h,onSelect:()=>V(s.id),onToggle:()=>L(s.id)},s.id)})})})]}),t.jsx("div",{className:S("flex-1 flex-col",x?"flex":"hidden md:flex"),children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(Z,{variant:"ghost",size:"sm",onClick:W,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ee,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx($,{icon:v.icon,name:v.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:v.title}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})]}),t.jsx("div",{className:"flex-1 overflow-auto p-4",children:E.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:"This connection has no tools available"}):t.jsx("div",{className:"space-y-2",children:E.map(s=>t.jsx(oe,{connectionId:v.id,tool:s,isSelected:Q(v.id,s.name),onToggle:()=>q(v.id,s.name)},s.name))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"Select a connection to view its tools"})})})]})}function ne(l){return l.stopPropagation()}function re(l){return l.stopPropagation()}var B="Switch",[le]=X(B),[ce,ie]=le(B),O=j.forwardRef((l,o)=>{const{__scopeSwitch:e,name:n,checked:r,defaultChecked:c,required:i,disabled:x,value:b="on",onCheckedChange:g,form:d,...u}=l,[m,p]=j.useState(null),a=z(o,v=>p(v)),f=j.useRef(!1),C=m?d||!!m.closest("form"):!0,[w,P]=_({prop:r,defaultProp:c??!1,onChange:g,caller:B});return t.jsxs(ce,{scope:e,checked:w,disabled:x,children:[t.jsx(I.button,{type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":U(w),"data-disabled":x?"":void 0,disabled:x,value:b,...u,ref:a,onClick:G(l.onClick,v=>{P(E=>!E),C&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})}),C&&t.jsx(H,{control:m,bubbles:!f.current,name:n,value:b,checked:w,required:i,disabled:x,form:d,style:{transform:"translateX(-100%)"}})]})});O.displayName=B;var A="SwitchThumb",D=j.forwardRef((l,o)=>{const{__scopeSwitch:e,...n}=l,r=ie(A,e);return t.jsx(I.span,{"data-state":U(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:o})});D.displayName=A;var ae="SwitchBubbleInput",H=j.forwardRef(({__scopeSwitch:l,control:o,checked:e,bubbles:n=!0,...r},c)=>{const i=j.useRef(null),x=z(i,c),b=J(e),g=K(o);return j.useEffect(()=>{const d=i.current;if(!d)return;const u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(b!==e&&p){const a=new Event("click",{bubbles:n});p.call(d,e),d.dispatchEvent(a)}},[b,e,n]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...r,tabIndex:-1,ref:x,style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});H.displayName=ae;function U(l){return l?"checked":"unchecked"}var de=O,ue=D;function je(l){const o=M.c(9);let e,n;o[0]!==l?({className:e,...n}=l,o[0]=l,o[1]=e,o[2]=n):(e=o[1],n=o[2]);let r;o[3]!==e?(r=S("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),o[3]=e,o[4]=r):r=o[4];let c;o[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(ue,{"data-slot":"switch-thumb",className:S("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),o[5]=c):c=o[5];let i;return o[6]!==n||o[7]!==r?(i=t.jsx(de,{"data-slot":"switch",className:r,...n,children:c}),o[6]=n,o[7]=r,o[8]=i):i=o[8],i}export{je as S,ve as T};
1
+ import{r as j,c as M,j as t,H as X,B as I,a2 as z,z as _,E as G,bx as J,by as K}from"./index-BFGV_ZyQ.js";import{I as $,u as Y}from"./use-connection-DfrXFTVM.js";import{C as F}from"./checkbox-CazM39DL.js";import{B as Z}from"./button-DGzvT_2A.js";import{i as ee}from"./ArrowLeft-qWOemv4m.js";import{c as S}from"./utils-D8oc_Xja.js";import{C as te}from"./collection-search-nvVuwapQ.js";const se=j.memo(function(o){const e=M.c(21),{connection:n,isSelected:r,hasToolsEnabled:c,activeToolsCount:i,totalToolsCount:x,onSelect:b,onToggle:g}=o,d=r?"bg-accent/50":"hover:bg-muted/50";let u;e[0]!==d?(u=S("flex items-center gap-3 p-2 rounded-lg transition-colors will-change-auto",d),e[0]=d,e[1]=u):u=e[1];let m;e[2]!==n.icon||e[3]!==n.title?(m=t.jsx($,{icon:n.icon,name:n.title,size:"xs"}),e[2]=n.icon,e[3]=n.title,e[4]=m):m=e[4];let p;e[5]!==n.title?(p=t.jsx("div",{className:"flex-1 min-w-0",children:t.jsx("p",{className:"text-sm font-medium text-foreground truncate",children:n.title})}),e[5]=n.title,e[6]=p):p=e[6];let a;e[7]!==b||e[8]!==m||e[9]!==p?(a=t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0 cursor-pointer",onClick:b,children:[m,p]}),e[7]=b,e[8]=m,e[9]=p,e[10]=a):a=e[10];let f;e[11]!==i||e[12]!==n.tools||e[13]!==c||e[14]!==g||e[15]!==x?(f=n.tools&&n.tools.length>0&&t.jsxs(t.Fragment,{children:[t.jsxs("span",{className:"text-xs text-muted-foreground shrink-0",children:[i,"/",x]}),t.jsx(F,{checked:c,onCheckedChange:g,onClick:ne})]}),e[11]=i,e[12]=n.tools,e[13]=c,e[14]=g,e[15]=x,e[16]=f):f=e[16];let C;return e[17]!==u||e[18]!==a||e[19]!==f?(C=t.jsxs("div",{className:u,children:[a,f]}),e[17]=u,e[18]=a,e[19]=f,e[20]=C):C=e[20],C}),oe=j.memo(function(o){const e=M.c(18),{connectionId:n,tool:r,isSelected:c,onToggle:i}=o,x=`tool-${n}-${r.name}`,b=c?"text-foreground":"text-muted-foreground";let g;e[0]!==b?(g=S("text-sm font-medium",b),e[0]=b,e[1]=g):g=e[1];let d;e[2]!==g||e[3]!==r.name?(d=t.jsx("div",{className:"flex items-center gap-2 mb-1",children:t.jsx("span",{className:g,children:r.name})}),e[2]=g,e[3]=r.name,e[4]=d):d=e[4];let u;e[5]!==r.description?(u=r.description&&t.jsx("p",{className:"text-xs text-muted-foreground line-clamp-2",children:r.description}),e[5]=r.description,e[6]=u):u=e[6];let m;e[7]!==d||e[8]!==u?(m=t.jsxs("div",{className:"flex-1 min-w-0",children:[d,u]}),e[7]=d,e[8]=u,e[9]=m):m=e[9];const p=`tool-${n}-${r.name}`;let a;e[10]!==c||e[11]!==i||e[12]!==p?(a=t.jsx("div",{className:"flex items-center shrink-0",children:t.jsx(F,{id:p,checked:c,onCheckedChange:i,onClick:re})}),e[10]=c,e[11]=i,e[12]=p,e[13]=a):a=e[13];let f;return e[14]!==x||e[15]!==m||e[16]!==a?(f=t.jsxs("label",{className:"flex items-center gap-3 p-3 rounded-lg hover:bg-muted/50 cursor-pointer group will-change-auto",htmlFor:x,children:[m,a]}),e[14]=x,e[15]=m,e[16]=a,e[17]=f):f=e[17],f});function ve({toolSet:l,onToolSetChange:o}){const[e,n]=j.useState(""),r=j.useDeferredValue(e),[c,i]=j.useState("all"),[x,b]=j.useState(!1),g=j.useRef(new Set(Object.keys(l))),d=Y({searchTerm:r.trim()||void 0}),u=g.current,m=[...u.values()].map(s=>d.find(h=>h.id===s)).filter(s=>s!==void 0),p=d.filter(s=>!u.has(s.id)),a=[...m,...p],f=s=>{const h=l[s];return h!==void 0&&h.length>0},C=a.filter(s=>{if(c==="all")return!0;const h=f(s.id);return c==="selected"?h:c==="unselected"?!h:!0}),[w,E]=j.useState(a[0]?.id??null),v=w?a.find(s=>s.id===w)??null:null,P=v?.tools??[],Q=(s,h)=>l[s]?.includes(h)??!1,q=(s,h)=>{const N=l[s]??[],R=N.includes(h),T={...l};if(R){const y=N.filter(k=>k!==h);y.length===0?delete T[s]:T[s]=y}else T[s]=[...N,h];o(T)},L=s=>{const h=a.find(k=>k.id===s);if(!h?.tools)return;const N=l[s]??[],R=h.tools.map(k=>k.name),T=N.length>0&&R.every(k=>N.includes(k)),y={...l};T?delete y[s]:(y[s]=R,E(s)),o(y)},V=s=>{E(s),b(!0)},W=()=>{b(!1)};return t.jsxs("div",{className:"flex h-full",children:[t.jsxs("div",{className:S("w-full md:w-80 border-r border-border flex flex-col",x&&"hidden md:flex"),children:[t.jsx(te,{value:e,onChange:n,placeholder:"Search MCP Servers..."}),t.jsxs("div",{className:"flex gap-1 p-2 border-b border-border",children:[t.jsx("button",{onClick:()=>i("all"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="all"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"All"}),t.jsx("button",{onClick:()=>i("selected"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="selected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Selected"}),t.jsx("button",{onClick:()=>i("unselected"),className:S("flex-1 px-3 py-1.5 text-xs font-medium rounded-md transition-colors border cursor-pointer",c==="unselected"?"bg-muted border-border":"border-border opacity-75 hover:opacity-100"),children:"Unselected"})]}),t.jsx("div",{className:"flex-1 overflow-auto",children:C.length===0?t.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:e?"No connections found":c==="selected"?"No servers selected":c==="unselected"?"No unselected servers":"No connections available"}):t.jsx("div",{className:"p-2 space-y-1",children:C.map(s=>{const h=s.tools?.length??0,N=l[s.id]?.length??0;return t.jsx(se,{connection:s,isSelected:w===s.id,hasToolsEnabled:f(s.id),activeToolsCount:N,totalToolsCount:h,onSelect:()=>V(s.id),onToggle:()=>L(s.id)},s.id)})})})]}),t.jsx("div",{className:S("flex-1 flex-col",x?"flex":"hidden md:flex"),children:v?t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"md:hidden border-b border-border p-4 flex items-center gap-3",children:[t.jsx(Z,{variant:"ghost",size:"sm",onClick:W,className:"h-8 w-8 p-0 shrink-0",children:t.jsx(ee,{size:20})}),t.jsxs("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[t.jsx($,{icon:v.icon,name:v.title,size:"sm"}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsx("h3",{className:"text-base font-medium text-foreground truncate",children:v.title}),v.description&&t.jsx("p",{className:"text-sm text-muted-foreground truncate",children:v.description})]})]})]}),t.jsx("div",{className:"flex-1 overflow-auto p-4",children:P.length===0?t.jsx("div",{className:"text-sm text-muted-foreground text-center py-8",children:"This connection has no tools available"}):t.jsx("div",{className:"space-y-2",children:P.map(s=>t.jsx(oe,{connectionId:v.id,tool:s,isSelected:Q(v.id,s.name),onToggle:()=>q(v.id,s.name)},s.name))})})]}):t.jsx("div",{className:"flex-1 flex items-center justify-center",children:t.jsx("div",{className:"text-sm text-muted-foreground text-center",children:"Select a connection to view its tools"})})})]})}function ne(l){return l.stopPropagation()}function re(l){return l.stopPropagation()}var B="Switch",[le]=X(B),[ce,ie]=le(B),H=j.forwardRef((l,o)=>{const{__scopeSwitch:e,name:n,checked:r,defaultChecked:c,required:i,disabled:x,value:b="on",onCheckedChange:g,form:d,...u}=l,[m,p]=j.useState(null),a=z(o,v=>p(v)),f=j.useRef(!1),C=m?d||!!m.closest("form"):!0,[w,E]=_({prop:r,defaultProp:c??!1,onChange:g,caller:B});return t.jsxs(ce,{scope:e,checked:w,disabled:x,children:[t.jsx(I.button,{type:"button",role:"switch","aria-checked":w,"aria-required":i,"data-state":U(w),"data-disabled":x?"":void 0,disabled:x,value:b,...u,ref:a,onClick:G(l.onClick,v=>{E(P=>!P),C&&(f.current=v.isPropagationStopped(),f.current||v.stopPropagation())})}),C&&t.jsx(D,{control:m,bubbles:!f.current,name:n,value:b,checked:w,required:i,disabled:x,form:d,style:{transform:"translateX(-100%)"}})]})});H.displayName=B;var O="SwitchThumb",A=j.forwardRef((l,o)=>{const{__scopeSwitch:e,...n}=l,r=ie(O,e);return t.jsx(I.span,{"data-state":U(r.checked),"data-disabled":r.disabled?"":void 0,...n,ref:o})});A.displayName=O;var ae="SwitchBubbleInput",D=j.forwardRef(({__scopeSwitch:l,control:o,checked:e,bubbles:n=!0,...r},c)=>{const i=j.useRef(null),x=z(i,c),b=J(e),g=K(o);return j.useEffect(()=>{const d=i.current;if(!d)return;const u=window.HTMLInputElement.prototype,p=Object.getOwnPropertyDescriptor(u,"checked").set;if(b!==e&&p){const a=new Event("click",{bubbles:n});p.call(d,e),d.dispatchEvent(a)}},[b,e,n]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:e,...r,tabIndex:-1,ref:x,style:{...r.style,...g,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});D.displayName=ae;function U(l){return l?"checked":"unchecked"}var de=H,ue=A;function je(l){const o=M.c(9);let e,n;o[0]!==l?({className:e,...n}=l,o[0]=l,o[1]=e,o[2]=n):(e=o[1],n=o[2]);let r;o[3]!==e?(r=S("peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-ring focus-visible:ring-ring/50 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",e),o[3]=e,o[4]=r):r=o[4];let c;o[5]===Symbol.for("react.memo_cache_sentinel")?(c=t.jsx(ue,{"data-slot":"switch-thumb",className:S("bg-background dark:data-[state=unchecked]:bg-foreground dark:data-[state=checked]:bg-primary-foreground pointer-events-none block size-4 rounded-full ring-0 transition-transform data-[state=checked]:translate-x-[calc(100%-2px)] data-[state=unchecked]:translate-x-0")}),o[5]=c):c=o[5];let i;return o[6]!==n||o[7]!==r?(i=t.jsx(de,{"data-slot":"switch",className:r,...n,children:c}),o[6]=n,o[7]=r,o[8]=i):i=o[8],i}export{je as S,ve as T};
@@ -1 +1 @@
1
- import{c as o,j as n}from"./index-BWMTgSpJ.js";import{c as l}from"./utils-CvrJmBA1.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
1
+ import{c as o,j as n}from"./index-BFGV_ZyQ.js";import{c as l}from"./utils-D8oc_Xja.js";function u(s){const e=o.c(8);let r,i;e[0]!==s?({className:r,...i}=s,e[0]=s,e[1]=r,e[2]=i):(r=e[1],i=e[2]);let t;e[3]!==r?(t=l("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-xl border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",r),e[3]=r,e[4]=t):t=e[4];let a;return e[5]!==i||e[6]!==t?(a=n.jsx("textarea",{"data-slot":"textarea",className:t,...i}),e[5]=i,e[6]=t,e[7]=a):a=e[7],a}export{u as T};
@@ -1 +1 @@
1
- import{r as a,j as d,z as H,c as j,F as Z,a5 as $,a1 as G,a8 as ee,B as C,a2 as z,a9 as te,af as oe,ag as re,bT as ne,a7 as se,y as ae,a6 as ie,ah as le}from"./index-BWMTgSpJ.js";import{c as ce}from"./utils-CvrJmBA1.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",F=a.forwardRef((o,e)=>d.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));F.displayName=de;var pe=F;const fe=({size:o=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M20 6 9 17l-5-5"}));fe.displayName="Check";const S="org-admin",ve={from({org:o,project:e}){if(o.includes("/")||e.includes("/"))throw new Error("Org or project cannot contain slashes");return`${o}/${e}`},parse(o){o.startsWith("/")&&(o=o.slice(1));const[e,t]=o.split("/");if(!e||!t)throw new Error("Invalid locator");return{org:e,project:t}},isOrgAdminProject(o){return o.split("/")[1]===S},adminProject(o){return`${o}/${S}`}},V=a.createContext(void 0),$e=()=>{const o=a.useContext(V);if(!o)throw new Error("useProjectContext must be used within a ProjectContextProvider");return o},Ge=o=>{const e=j.c(10),{children:t,org:r,project:n}=o;let s;e[0]!==r.slug||e[1]!==n.slug?(s=ve.from({org:r.slug,project:n.slug}),e[0]=r.slug,e[1]=n.slug,e[2]=s):s=e[2];const l=s;let c;e[3]!==l||e[4]!==r||e[5]!==n?(c={org:r,project:n,locator:l},e[3]=l,e[4]=r,e[5]=n,e[6]=c):c=e[6];const i=c;let u;return e[7]!==t||e[8]!==i?(u=d.jsx(V.Provider,{value:i,children:t}),e[7]=t,e[8]=i,e[9]=u):u=e[9],u};var[O]=Z("Tooltip",[$]),L=$(),B="TooltipProvider",he=700,D="tooltip.open",[xe,A]=O(B),U=o=>{const{__scopeTooltip:e,delayDuration:t=he,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),c=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const u=i.current;return()=>window.clearTimeout(u)},[]),d.jsx(xe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:n,children:s})};U.displayName=B;var R="Tooltip",[ge,_]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=o,i=A(R,o.__scopeTooltip),u=L(e),[p,v]=a.useState(null),h=se(),f=a.useRef(0),x=l??i.disableHoverableContent,m=c??i.delayDuration,g=a.useRef(!1),[y,T]=ae({prop:r,defaultProp:n??!1,onChange:M=>{M?(i.onOpen(),document.dispatchEvent(new CustomEvent(D))):i.onClose(),s?.(M)},caller:R}),b=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),I=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),d.jsx(ie,{...u,children:d.jsx(ge,{scope:e,contentId:h,open:y,stateAttribute:b,trigger:p,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?I():P()},[i.isOpenDelayedRef,I,P]),onTriggerLeave:a.useCallback(()=>{x?E():(window.clearTimeout(f.current),f.current=0)},[E,x]),onOpen:P,onClose:E,disableHoverableContent:x,children:t})})};Y.displayName=R;var k="TooltipTrigger",W=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(k,t),s=A(k,t),l=L(t),c=a.useRef(null),i=G(e,c,n.onTriggerChange),u=a.useRef(!1),p=a.useRef(!1),v=a.useCallback(()=>u.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),d.jsx(ee,{asChild:!0,...l,children:d.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),p.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),p.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),u.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{u.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});W.displayName=k;var N="TooltipPortal",[me,Te]=O(N,{forceMount:void 0}),q=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return d.jsx(me,{scope:e,forceMount:t,children:d.jsx(z,{present:t||s.open,children:d.jsx(te,{asChild:!0,container:n,children:r})})})};q.displayName=N;var w="TooltipContent",X=a.forwardRef((o,e)=>{const t=Te(w,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(w,o.__scopeTooltip);return d.jsx(z,{present:r||l.open,children:l.disableHoverableContent?d.jsx(J,{side:n,...s,ref:e}):d.jsx(ye,{side:n,...s,ref:e})})}),ye=a.forwardRef((o,e)=>{const t=_(w,o.__scopeTooltip),r=A(w,o.__scopeTooltip),n=a.useRef(null),s=G(e,n),[l,c]=a.useState(null),{trigger:i,onClose:u}=t,p=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{c(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Pe(y,g.getBoundingClientRect()),b=Ee(y,T),P=Re(m.getBoundingClientRect()),E=_e([...b,...P]);c(E),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(i&&p){const x=g=>f(g,p),m=g=>f(g,i);return i.addEventListener("pointerleave",x),p.addEventListener("pointerleave",m),()=>{i.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",m)}}},[i,p,f,h]),a.useEffect(()=>{if(l){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=i?.contains(g)||p?.contains(g),b=!je(y,l);T?h():b&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[i,p,l,u,h]),d.jsx(J,{...o,ref:s})}),[Ce,we]=O(R,{isInside:!1}),be=ne("TooltipContent"),J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=o,i=_(w,t),u=L(t),{onClose:p}=i;return a.useEffect(()=>(document.addEventListener(D,p),()=>document.removeEventListener(D,p)),[p]),a.useEffect(()=>{if(i.trigger){const v=h=>{h.target?.contains(i.trigger)&&p()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,p]),d.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:p,children:d.jsxs(re,{"data-state":i.stateAttribute,...u,...c,ref:e,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(be,{children:r}),d.jsx(Ce,{scope:t,isInside:!0,children:d.jsx(pe,{id:i.contentId,role:"tooltip",children:n||r})})]})})});X.displayName=w;var K="TooltipArrow",Q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=L(t);return we(K,t).isInside?null:d.jsx(le,{...n,...r,ref:e})});Q.displayName=K;function Pe(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ee(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Re(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function je(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const c=e[s],i=e[l],u=c.x,p=c.y,v=i.x,h=i.y;p>r!=h>r&&t<(v-u)*(r-p)/(h-p)+u&&(n=!n)}return n}function _e(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Oe(e)}function Oe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Le=U,De=Y,ke=W,Ae=q,Ne=X,Ie=Q;function Me(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=d.jsx(Le,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function ze(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=d.jsx(Me,{children:d.jsx(De,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Fe(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=d.jsx(ke,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Ve(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let c;e[5]!==r?(c=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=c):c=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Ie,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let u;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==c?(u=d.jsx(Ae,{children:d.jsxs(Ne,{"data-slot":"tooltip-content",sideOffset:l,className:c,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=c,e[12]=u):u=e[12],u}export{ve as L,S as O,Ge as P,Ve as T,ue as V,Me as a,Fe as b,ze as c,fe as i,$e as u};
1
+ import{r as a,j as d,B as H,c as j,H as Z,a6 as $,a2 as G,a9 as ee,E as C,a3 as z,aa as te,ag as oe,ah as re,bT as ne,a8 as se,z as ae,a7 as ie,ai as le}from"./index-BFGV_ZyQ.js";import{c as ce}from"./utils-D8oc_Xja.js";var ue=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),de="VisuallyHidden",V=a.forwardRef((o,e)=>d.jsx(H.span,{...o,ref:e,style:{...ue,...o.style}}));V.displayName=de;var pe=V;const fe=({size:o=24,color:e="currentColor",...t})=>a.createElement("svg",{viewBox:"0 0 24 24",width:o,height:o,stroke:e,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},a.createElement("path",{d:"M20 6 9 17l-5-5"}));fe.displayName="Check";const S="org-admin",ve={from({org:o,project:e}){if(o.includes("/")||e.includes("/"))throw new Error("Org or project cannot contain slashes");return`${o}/${e}`},parse(o){o.startsWith("/")&&(o=o.slice(1));const[e,t]=o.split("/");if(!e||!t)throw new Error("Invalid locator");return{org:e,project:t}},isOrgAdminProject(o){return o.split("/")[1]===S},adminProject(o){return`${o}/${S}`}},B=a.createContext(void 0),$e=()=>{const o=a.useContext(B);if(!o)throw new Error("useProjectContext must be used within a ProjectContextProvider");return o},Ge=o=>{const e=j.c(10),{children:t,org:r,project:n}=o;let s;e[0]!==r.slug||e[1]!==n.slug?(s=ve.from({org:r.slug,project:n.slug}),e[0]=r.slug,e[1]=n.slug,e[2]=s):s=e[2];const l=s;let c;e[3]!==l||e[4]!==r||e[5]!==n?(c={org:r,project:n,locator:l},e[3]=l,e[4]=r,e[5]=n,e[6]=c):c=e[6];const i=c;let u;return e[7]!==t||e[8]!==i?(u=d.jsx(B.Provider,{value:i,children:t}),e[7]=t,e[8]=i,e[9]=u):u=e[9],u};var[O]=Z("Tooltip",[$]),L=$(),F="TooltipProvider",he=700,D="tooltip.open",[xe,A]=O(F),U=o=>{const{__scopeTooltip:e,delayDuration:t=he,skipDelayDuration:r=300,disableHoverableContent:n=!1,children:s}=o,l=a.useRef(!0),c=a.useRef(!1),i=a.useRef(0);return a.useEffect(()=>{const u=i.current;return()=>window.clearTimeout(u)},[]),d.jsx(xe,{scope:e,isOpenDelayedRef:l,delayDuration:t,onOpen:a.useCallback(()=>{window.clearTimeout(i.current),l.current=!1},[]),onClose:a.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:a.useCallback(u=>{c.current=u},[]),disableHoverableContent:n,children:s})};U.displayName=F;var R="Tooltip",[ge,_]=O(R),Y=o=>{const{__scopeTooltip:e,children:t,open:r,defaultOpen:n,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=o,i=A(R,o.__scopeTooltip),u=L(e),[p,v]=a.useState(null),h=se(),f=a.useRef(0),x=l??i.disableHoverableContent,m=c??i.delayDuration,g=a.useRef(!1),[y,T]=ae({prop:r,defaultProp:n??!1,onChange:M=>{M?(i.onOpen(),document.dispatchEvent(new CustomEvent(D))):i.onClose(),s?.(M)},caller:R}),b=a.useMemo(()=>y?g.current?"delayed-open":"instant-open":"closed",[y]),P=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,g.current=!1,T(!0)},[T]),E=a.useCallback(()=>{window.clearTimeout(f.current),f.current=0,T(!1)},[T]),I=a.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>{g.current=!0,T(!0),f.current=0},m)},[m,T]);return a.useEffect(()=>()=>{f.current&&(window.clearTimeout(f.current),f.current=0)},[]),d.jsx(ie,{...u,children:d.jsx(ge,{scope:e,contentId:h,open:y,stateAttribute:b,trigger:p,onTriggerChange:v,onTriggerEnter:a.useCallback(()=>{i.isOpenDelayedRef.current?I():P()},[i.isOpenDelayedRef,I,P]),onTriggerLeave:a.useCallback(()=>{x?E():(window.clearTimeout(f.current),f.current=0)},[E,x]),onOpen:P,onClose:E,disableHoverableContent:x,children:t})})};Y.displayName=R;var k="TooltipTrigger",W=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=_(k,t),s=A(k,t),l=L(t),c=a.useRef(null),i=G(e,c,n.onTriggerChange),u=a.useRef(!1),p=a.useRef(!1),v=a.useCallback(()=>u.current=!1,[]);return a.useEffect(()=>()=>document.removeEventListener("pointerup",v),[v]),d.jsx(ee,{asChild:!0,...l,children:d.jsx(H.button,{"aria-describedby":n.open?n.contentId:void 0,"data-state":n.stateAttribute,...r,ref:i,onPointerMove:C(o.onPointerMove,h=>{h.pointerType!=="touch"&&!p.current&&!s.isPointerInTransitRef.current&&(n.onTriggerEnter(),p.current=!0)}),onPointerLeave:C(o.onPointerLeave,()=>{n.onTriggerLeave(),p.current=!1}),onPointerDown:C(o.onPointerDown,()=>{n.open&&n.onClose(),u.current=!0,document.addEventListener("pointerup",v,{once:!0})}),onFocus:C(o.onFocus,()=>{u.current||n.onOpen()}),onBlur:C(o.onBlur,n.onClose),onClick:C(o.onClick,n.onClose)})})});W.displayName=k;var N="TooltipPortal",[me,Te]=O(N,{forceMount:void 0}),q=o=>{const{__scopeTooltip:e,forceMount:t,children:r,container:n}=o,s=_(N,e);return d.jsx(me,{scope:e,forceMount:t,children:d.jsx(z,{present:t||s.open,children:d.jsx(te,{asChild:!0,container:n,children:r})})})};q.displayName=N;var w="TooltipContent",X=a.forwardRef((o,e)=>{const t=Te(w,o.__scopeTooltip),{forceMount:r=t.forceMount,side:n="top",...s}=o,l=_(w,o.__scopeTooltip);return d.jsx(z,{present:r||l.open,children:l.disableHoverableContent?d.jsx(J,{side:n,...s,ref:e}):d.jsx(ye,{side:n,...s,ref:e})})}),ye=a.forwardRef((o,e)=>{const t=_(w,o.__scopeTooltip),r=A(w,o.__scopeTooltip),n=a.useRef(null),s=G(e,n),[l,c]=a.useState(null),{trigger:i,onClose:u}=t,p=n.current,{onPointerInTransitChange:v}=r,h=a.useCallback(()=>{c(null),v(!1)},[v]),f=a.useCallback((x,m)=>{const g=x.currentTarget,y={x:x.clientX,y:x.clientY},T=Pe(y,g.getBoundingClientRect()),b=Ee(y,T),P=Re(m.getBoundingClientRect()),E=_e([...b,...P]);c(E),v(!0)},[v]);return a.useEffect(()=>()=>h(),[h]),a.useEffect(()=>{if(i&&p){const x=g=>f(g,p),m=g=>f(g,i);return i.addEventListener("pointerleave",x),p.addEventListener("pointerleave",m),()=>{i.removeEventListener("pointerleave",x),p.removeEventListener("pointerleave",m)}}},[i,p,f,h]),a.useEffect(()=>{if(l){const x=m=>{const g=m.target,y={x:m.clientX,y:m.clientY},T=i?.contains(g)||p?.contains(g),b=!je(y,l);T?h():b&&(h(),u())};return document.addEventListener("pointermove",x),()=>document.removeEventListener("pointermove",x)}},[i,p,l,u,h]),d.jsx(J,{...o,ref:s})}),[Ce,we]=O(R,{isInside:!1}),be=ne("TooltipContent"),J=a.forwardRef((o,e)=>{const{__scopeTooltip:t,children:r,"aria-label":n,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=o,i=_(w,t),u=L(t),{onClose:p}=i;return a.useEffect(()=>(document.addEventListener(D,p),()=>document.removeEventListener(D,p)),[p]),a.useEffect(()=>{if(i.trigger){const v=h=>{h.target?.contains(i.trigger)&&p()};return window.addEventListener("scroll",v,{capture:!0}),()=>window.removeEventListener("scroll",v,{capture:!0})}},[i.trigger,p]),d.jsx(oe,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:v=>v.preventDefault(),onDismiss:p,children:d.jsxs(re,{"data-state":i.stateAttribute,...u,...c,ref:e,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[d.jsx(be,{children:r}),d.jsx(Ce,{scope:t,isInside:!0,children:d.jsx(pe,{id:i.contentId,role:"tooltip",children:n||r})})]})})});X.displayName=w;var K="TooltipArrow",Q=a.forwardRef((o,e)=>{const{__scopeTooltip:t,...r}=o,n=L(t);return we(K,t).isInside?null:d.jsx(le,{...n,...r,ref:e})});Q.displayName=K;function Pe(o,e){const t=Math.abs(e.top-o.y),r=Math.abs(e.bottom-o.y),n=Math.abs(e.right-o.x),s=Math.abs(e.left-o.x);switch(Math.min(t,r,n,s)){case s:return"left";case n:return"right";case t:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function Ee(o,e,t=5){const r=[];switch(e){case"top":r.push({x:o.x-t,y:o.y+t},{x:o.x+t,y:o.y+t});break;case"bottom":r.push({x:o.x-t,y:o.y-t},{x:o.x+t,y:o.y-t});break;case"left":r.push({x:o.x+t,y:o.y-t},{x:o.x+t,y:o.y+t});break;case"right":r.push({x:o.x-t,y:o.y-t},{x:o.x-t,y:o.y+t});break}return r}function Re(o){const{top:e,right:t,bottom:r,left:n}=o;return[{x:n,y:e},{x:t,y:e},{x:t,y:r},{x:n,y:r}]}function je(o,e){const{x:t,y:r}=o;let n=!1;for(let s=0,l=e.length-1;s<e.length;l=s++){const c=e[s],i=e[l],u=c.x,p=c.y,v=i.x,h=i.y;p>r!=h>r&&t<(v-u)*(r-p)/(h-p)+u&&(n=!n)}return n}function _e(o){const e=o.slice();return e.sort((t,r)=>t.x<r.x?-1:t.x>r.x?1:t.y<r.y?-1:t.y>r.y?1:0),Oe(e)}function Oe(o){if(o.length<=1)return o.slice();const e=[];for(let r=0;r<o.length;r++){const n=o[r];for(;e.length>=2;){const s=e[e.length-1],l=e[e.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))e.pop();else break}e.push(n)}e.pop();const t=[];for(let r=o.length-1;r>=0;r--){const n=o[r];for(;t.length>=2;){const s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(n.y-l.y)>=(s.y-l.y)*(n.x-l.x))t.pop();else break}t.push(n)}return t.pop(),e.length===1&&t.length===1&&e[0].x===t[0].x&&e[0].y===t[0].y?e:e.concat(t)}var Le=U,De=Y,ke=W,Ae=q,Ne=X,Ie=Q;function Me(o){const e=j.c(6);let t,r;e[0]!==o?({delayDuration:r,...t}=o,e[0]=o,e[1]=t,e[2]=r):(t=e[1],r=e[2]);const n=r===void 0?0:r;let s;return e[3]!==n||e[4]!==t?(s=d.jsx(Le,{"data-slot":"tooltip-provider",delayDuration:n,...t}),e[3]=n,e[4]=t,e[5]=s):s=e[5],s}function ze(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=d.jsx(Me,{children:d.jsx(De,{"data-slot":"tooltip",...t})}),e[2]=t,e[3]=r):r=e[3],r}function Ve(o){const e=j.c(4);let t;e[0]!==o?({...t}=o,e[0]=o,e[1]=t):t=e[1];let r;return e[2]!==t?(r=d.jsx(ke,{"data-slot":"tooltip-trigger",...t}),e[2]=t,e[3]=r):r=e[3],r}function Be(o){const e=j.c(13);let t,r,n,s;e[0]!==o?({className:r,sideOffset:s,children:t,...n}=o,e[0]=o,e[1]=t,e[2]=r,e[3]=n,e[4]=s):(t=e[1],r=e[2],n=e[3],s=e[4]);const l=s===void 0?0:s;let c;e[5]!==r?(c=ce("bg-foreground text-background animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",r),e[5]=r,e[6]=c):c=e[6];let i;e[7]===Symbol.for("react.memo_cache_sentinel")?(i=d.jsx(Ie,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"}),e[7]=i):i=e[7];let u;return e[8]!==t||e[9]!==n||e[10]!==l||e[11]!==c?(u=d.jsx(Ae,{children:d.jsxs(Ne,{"data-slot":"tooltip-content",sideOffset:l,className:c,...n,children:[t,i]})}),e[8]=t,e[9]=n,e[10]=l,e[11]=c,e[12]=u):u=e[12],u}export{ve as L,S as O,Ge as P,Be as T,ue as V,Me as a,Ve as b,ze as c,fe as i,$e as u};
@@ -1,4 +1,4 @@
1
- import{r as y,ai as Wn,aj as Ne,Q as Ae,E as he,c as zr,j as T,ak as h_,al as p_,o as m_,am as y_,an as g_,e as b_,t as x_}from"./index-BWMTgSpJ.js";import{c as Dr}from"./utils-CvrJmBA1.js";import{r as w_}from"./index-DXIf5jrv.js";import{u as __,c as eo,b as ro,T as to,i as _d}from"./tooltip-Dy-DsVOX.js";import{B as Kt}from"./button-WA21TIge.js";import{a as Od}from"./Copy01-DGZy8_Wa.js";import{i as O_,J as Pd}from"./json-syntax-highlighter-DqTOcqS4.js";const Zl=({size:e=24,color:r="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));Zl.displayName="Download01";function Hc(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function m0(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function On(){}var nn=.7,pi=1/nn,Pt="\\s*([+-]?\\d+)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P_=/^#([0-9a-f]{3,8})$/,S_=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),A_=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),C_=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${an}\\)$`),E_=new RegExp(`^rgba\\(${vr},${vr},${vr},${an}\\)$`),T_=new RegExp(`^hsl\\(${an},${vr},${vr}\\)$`),I_=new RegExp(`^hsla\\(${an},${vr},${vr},${an}\\)$`),Sd={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};Hc(On,on,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ad,formatHex:Ad,formatHex8:M_,formatHsl:j_,formatRgb:Cd,toString:Cd});function Ad(){return this.rgb().formatHex()}function M_(){return this.rgb().formatHex8()}function j_(){return y0(this).formatHsl()}function Cd(){return this.rgb().formatRgb()}function on(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=P_.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?Ed(r):t===3?new je(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Gn(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Gn(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=S_.exec(e))?new je(r[1],r[2],r[3],1):(r=A_.exec(e))?new je(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=C_.exec(e))?Gn(r[1],r[2],r[3],r[4]):(r=E_.exec(e))?Gn(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=T_.exec(e))?Md(r[1],r[2]/100,r[3]/100,1):(r=I_.exec(e))?Md(r[1],r[2]/100,r[3]/100,r[4]):Sd.hasOwnProperty(e)?Ed(Sd[e]):e==="transparent"?new je(NaN,NaN,NaN,0):null}function Ed(e){return new je(e>>16&255,e>>8&255,e&255,1)}function Gn(e,r,t,n){return n<=0&&(e=r=t=NaN),new je(e,r,t,n)}function N_(e){return e instanceof On||(e=on(e)),e?(e=e.rgb(),new je(e.r,e.g,e.b,e.opacity)):new je}function Jl(e,r,t,n){return arguments.length===1?N_(e):new je(e,r,t,n??1)}function je(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}Hc(je,Jl,m0(On,{brighter(e){return e=e==null?pi:Math.pow(pi,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new je(et(this.r),et(this.g),et(this.b),mi(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:Td,formatHex:Td,formatHex8:k_,formatRgb:Id,toString:Id}));function Td(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function k_(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Id(){const e=mi(this.opacity);return`${e===1?"rgb(":"rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${e===1?")":`, ${e})`}`}function mi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function et(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return e=et(e),(e<16?"0":"")+e.toString(16)}function Md(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Ze(e,r,t,n)}function y0(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=on(e)),!e)return new Ze;if(e instanceof Ze)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,i=Math.min(r,t,n),a=Math.max(r,t,n),o=NaN,u=a-i,s=(a+i)/2;return u?(r===a?o=(t-n)/u+(t<n)*6:t===a?o=(n-r)/u+2:o=(r-t)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ze(o,u,s,e.opacity)}function D_(e,r,t,n){return arguments.length===1?y0(e):new Ze(e,r,t,n??1)}function Ze(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}Hc(Ze,D_,m0(On,{brighter(e){return e=e==null?pi:Math.pow(pi,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,i=2*t-n;return new je(no(e>=240?e-240:e+120,i,n),no(e,i,n),no(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ze(jd(this.h),Yn(this.s),Yn(this.l),mi(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=mi(this.opacity);return`${e===1?"hsl(":"hsla("}${jd(this.h)}, ${Yn(this.s)*100}%, ${Yn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jd(e){return e=(e||0)%360,e<0?e+360:e}function Yn(e){return Math.max(0,Math.min(1,e||0))}function no(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const Wc=e=>()=>e;function R_(e,r){return function(t){return e+t*r}}function $_(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function q_(e){return(e=+e)==1?g0:function(r,t){return t-r?$_(r,t,e):Wc(isNaN(r)?t:r)}}function g0(e,r){var t=r-e;return t?R_(e,t):Wc(isNaN(e)?r:e)}const Nd=(function e(r){var t=q_(r);function n(i,a){var o=t((i=Jl(i)).r,(a=Jl(a)).r),u=t(i.g,a.g),s=t(i.b,a.b),l=g0(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=s(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function L_(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),i;return function(a){for(i=0;i<t;++i)n[i]=e[i]*(1-a)+r[i]*a;return n}}function B_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function z_(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,i=new Array(n),a=new Array(t),o;for(o=0;o<n;++o)i[o]=$t(e[o],r[o]);for(;o<t;++o)a[o]=r[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function F_(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function yi(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function U_(e,r){var t={},n={},i;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(i in r)i in e?t[i]=$t(e[i],r[i]):n[i]=r[i];return function(a){for(i in t)n[i]=t[i](a);return n}}var Ql=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,io=new RegExp(Ql.source,"g");function K_(e){return function(){return e}}function H_(e){return function(r){return e(r)+""}}function W_(e,r){var t=Ql.lastIndex=io.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",r=r+"";(n=Ql.exec(e))&&(i=io.exec(r));)(a=i.index)>t&&(a=r.slice(t,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:yi(n,i)})),t=io.lastIndex;return t<r.length&&(a=r.slice(t),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?H_(s[0].x):K_(r):(r=s.length,function(l){for(var c=0,f;c<r;++c)u[(f=s[c]).i]=f.x(l);return u.join("")})}function $t(e,r){var t=typeof r,n;return r==null||t==="boolean"?Wc(r):(t==="number"?yi:t==="string"?(n=on(r))?(r=n,Nd):W_:r instanceof on?Nd:r instanceof Date?F_:B_(r)?L_:Array.isArray(r)?z_:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?U_:yi)(e,r)}function Gc(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function G_(e,r){r===void 0&&(r=e,e=$t);for(var t=0,n=r.length-1,i=r[0],a=new Array(n<0?0:n);t<n;)a[t]=e(i,i=r[++t]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}var ao,kd;function nr(){if(kd)return ao;kd=1;var e=Array.isArray;return ao=e,ao}var oo,Dd;function b0(){if(Dd)return oo;Dd=1;var e=typeof Wn=="object"&&Wn&&Wn.Object===Object&&Wn;return oo=e,oo}var uo,Rd;function mr(){if(Rd)return uo;Rd=1;var e=b0(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return uo=t,uo}var so,$d;function Pn(){if($d)return so;$d=1;var e=mr(),r=e.Symbol;return so=r,so}var lo,qd;function Y_(){if(qd)return lo;qd=1;var e=Pn(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,i=e?e.toStringTag:void 0;function a(o){var u=t.call(o,i),s=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(u?o[i]=s:delete o[i]),c}return lo=a,lo}var co,Ld;function V_(){if(Ld)return co;Ld=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return co=t,co}var fo,Bd;function lt(){if(Bd)return fo;Bd=1;var e=Pn(),r=Y_(),t=V_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?r(u):t(u)}return fo=o,fo}var vo,zd;function ct(){if(zd)return vo;zd=1;function e(r){return r!=null&&typeof r=="object"}return vo=e,vo}var ho,Fd;function Sn(){if(Fd)return ho;Fd=1;var e=lt(),r=ct(),t="[object Symbol]";function n(i){return typeof i=="symbol"||r(i)&&e(i)==t}return ho=n,ho}var po,Ud;function Yc(){if(Ud)return po;Ud=1;var e=nr(),r=Sn(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||r(a)?!0:n.test(a)||!t.test(a)||o!=null&&a in Object(o)}return po=i,po}var mo,Kd;function Fr(){if(Kd)return mo;Kd=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return mo=e,mo}var yo,Hd;function Vc(){if(Hd)return yo;Hd=1;var e=lt(),r=Fr(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!r(u))return!1;var s=e(u);return s==n||s==i||s==t||s==a}return yo=o,yo}var go,Wd;function X_(){if(Wd)return go;Wd=1;var e=mr(),r=e["__core-js_shared__"];return go=r,go}var bo,Gd;function Z_(){if(Gd)return bo;Gd=1;var e=X_(),r=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!r&&r in n}return bo=t,bo}var xo,Yd;function x0(){if(Yd)return xo;Yd=1;var e=Function.prototype,r=e.toString;function t(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}return xo=t,xo}var wo,Vd;function J_(){if(Vd)return wo;Vd=1;var e=Vc(),r=Z_(),t=Fr(),n=x0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,l=u.hasOwnProperty,c=RegExp("^"+s.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!t(d)||r(d))return!1;var v=e(d)?c:a;return v.test(n(d))}return wo=f,wo}var _o,Xd;function Q_(){if(Xd)return _o;Xd=1;function e(r,t){return r?.[t]}return _o=e,_o}var Oo,Zd;function ft(){if(Zd)return Oo;Zd=1;var e=J_(),r=Q_();function t(n,i){var a=r(n,i);return e(a)?a:void 0}return Oo=t,Oo}var Po,Jd;function la(){if(Jd)return Po;Jd=1;var e=ft(),r=e(Object,"create");return Po=r,Po}var So,Qd;function eO(){if(Qd)return So;Qd=1;var e=la();function r(){this.__data__=e?e(null):{},this.size=0}return So=r,So}var Ao,ev;function rO(){if(ev)return Ao;ev=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return Ao=e,Ao}var Co,rv;function tO(){if(rv)return Co;rv=1;var e=la(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===r?void 0:u}return n.call(o,a)?o[a]:void 0}return Co=i,Co}var Eo,tv;function nO(){if(tv)return Eo;tv=1;var e=la(),r=Object.prototype,t=r.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:t.call(a,i)}return Eo=n,Eo}var To,nv;function iO(){if(nv)return To;nv=1;var e=la(),r="__lodash_hash_undefined__";function t(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?r:i,this}return To=t,To}var Io,iv;function aO(){if(iv)return Io;iv=1;var e=eO(),r=rO(),t=tO(),n=nO(),i=iO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Io=a,Io}var Mo,av;function oO(){if(av)return Mo;av=1;function e(){this.__data__=[],this.size=0}return Mo=e,Mo}var jo,ov;function Xc(){if(ov)return jo;ov=1;function e(r,t){return r===t||r!==r&&t!==t}return jo=e,jo}var No,uv;function ca(){if(uv)return No;uv=1;var e=Xc();function r(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}return No=r,No}var ko,sv;function uO(){if(sv)return ko;sv=1;var e=ca(),r=Array.prototype,t=r.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():t.call(a,o,1),--this.size,!0}return ko=n,ko}var Do,lv;function sO(){if(lv)return Do;lv=1;var e=ca();function r(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}return Do=r,Do}var Ro,cv;function lO(){if(cv)return Ro;cv=1;var e=ca();function r(t){return e(this.__data__,t)>-1}return Ro=r,Ro}var $o,fv;function cO(){if(fv)return $o;fv=1;var e=ca();function r(t,n){var i=this.__data__,a=e(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return $o=r,$o}var qo,dv;function fa(){if(dv)return qo;dv=1;var e=oO(),r=uO(),t=sO(),n=lO(),i=cO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,qo=a,qo}var Lo,vv;function Zc(){if(vv)return Lo;vv=1;var e=ft(),r=mr(),t=e(r,"Map");return Lo=t,Lo}var Bo,hv;function fO(){if(hv)return Bo;hv=1;var e=aO(),r=fa(),t=Zc();function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Bo=n,Bo}var zo,pv;function dO(){if(pv)return zo;pv=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return zo=e,zo}var Fo,mv;function da(){if(mv)return Fo;mv=1;var e=dO();function r(t,n){var i=t.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Fo=r,Fo}var Uo,yv;function vO(){if(yv)return Uo;yv=1;var e=da();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return Uo=r,Uo}var Ko,gv;function hO(){if(gv)return Ko;gv=1;var e=da();function r(t){return e(this,t).get(t)}return Ko=r,Ko}var Ho,bv;function pO(){if(bv)return Ho;bv=1;var e=da();function r(t){return e(this,t).has(t)}return Ho=r,Ho}var Wo,xv;function mO(){if(xv)return Wo;xv=1;var e=da();function r(t,n){var i=e(this,t),a=i.size;return i.set(t,n),this.size+=i.size==a?0:1,this}return Wo=r,Wo}var Go,wv;function Jc(){if(wv)return Go;wv=1;var e=fO(),r=vO(),t=hO(),n=pO(),i=mO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Go=a,Go}var Yo,_v;function yO(){if(_v)return Yo;_v=1;var e=Jc(),r="Expected a function";function t(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(r);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var l=n.apply(this,o);return a.cache=s.set(u,l)||s,l};return a.cache=new(t.Cache||e),a}return t.Cache=e,Yo=t,Yo}var Vo,Ov;function gO(){if(Ov)return Vo;Ov=1;var e=yO(),r=500;function t(n){var i=e(n,function(o){return a.size===r&&a.clear(),o}),a=i.cache;return i}return Vo=t,Vo}var Xo,Pv;function bO(){if(Pv)return Xo;Pv=1;var e=gO(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(r,function(o,u,s,l){a.push(s?l.replace(t,"$1"):u||o)}),a});return Xo=n,Xo}var Zo,Sv;function w0(){if(Sv)return Zo;Sv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=Array(i);++n<i;)a[n]=t(r[n],n,r);return a}return Zo=e,Zo}var Jo,Av;function xO(){if(Av)return Jo;Av=1;var e=Pn(),r=w0(),t=nr(),n=Sn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return r(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Jo=o,Jo}var Qo,Cv;function wO(){if(Cv)return Qo;Cv=1;var e=xO();function r(t){return t==null?"":e(t)}return Qo=r,Qo}var eu,Ev;function _0(){if(Ev)return eu;Ev=1;var e=nr(),r=Yc(),t=bO(),n=wO();function i(a,o){return e(a)?a:r(a,o)?[a]:t(n(a))}return eu=i,eu}var ru,Tv;function va(){if(Tv)return ru;Tv=1;var e=Sn();function r(t){if(typeof t=="string"||e(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return ru=r,ru}var tu,Iv;function Qc(){if(Iv)return tu;Iv=1;var e=_0(),r=va();function t(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[r(i[a++])];return a&&a==o?n:void 0}return tu=t,tu}var nu,Mv;function O0(){if(Mv)return nu;Mv=1;var e=Qc();function r(t,n,i){var a=t==null?void 0:e(t,n);return a===void 0?i:a}return nu=r,nu}O0();var iu,jv;function _O(){if(jv)return iu;jv=1;function e(r){return r==null}return iu=e,iu}var OO=_O();const PO=Ne(OO);var au,Nv;function SO(){if(Nv)return au;Nv=1;var e=lt(),r=nr(),t=ct(),n="[object String]";function i(a){return typeof a=="string"||!r(a)&&t(a)&&e(a)==n}return au=i,au}var AO=SO();const P0=Ne(AO);var CO=Vc();const EO=Ne(CO);Fr();var ou,kv;function S0(){if(kv)return ou;kv=1;var e=lt(),r=ct(),t="[object Number]";function n(i){return typeof i=="number"||r(i)&&e(i)==t}return ou=n,ou}var uu,Dv;function TO(){if(Dv)return uu;Dv=1;var e=S0();function r(t){return e(t)&&t!=+t}return uu=r,uu}var IO=TO();const MO=Ne(IO);var jO=S0();const NO=Ne(jO);var Vn=function(r){return P0(r)&&r.indexOf("%")===r.length-1},fr=function(r){return NO(r)&&!MO(r)},gi=function(r){return fr(r)||P0(r)},kO=function(r){return typeof r=="string"?r:r?r.displayName||r.name||"Component":""},su=function(r,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ee(e){return function(){return e}}const A0=Math.cos,bi=Math.sin,ir=Math.sqrt,xi=Math.PI,ha=2*xi,ec=Math.PI,rc=2*ec,Yr=1e-6,DO=rc-Yr;function C0(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function RO(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return C0;const t=10**r;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*t)/t+n[i]}}class $O{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?C0:RO(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,i){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(r,t,n,i,a,o){this._append`C${+r},${+t},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(r,t,n,i,a){if(r=+r,t=+t,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-r,l=i-t,c=o-r,f=u-t,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(d>Yr)if(!(Math.abs(f*s-l*c)>Yr)||!a)this._append`L${this._x1=r},${this._y1=t}`;else{let v=n-o,h=i-u,p=s*s+l*l,m=v*v+h*h,g=Math.sqrt(p),b=Math.sqrt(d),x=a*Math.tan((ec-Math.acos((p+d-m)/(2*g*b)))/2),_=x/b,w=x/g;Math.abs(_-1)>Yr&&this._append`L${r+_*c},${t+_*f}`,this._append`A${a},${a},0,0,${+(f*v>c*h)},${this._x1=r+w*s},${this._y1=t+w*l}`}}arc(r,t,n,i,a,o){if(r=+r,t=+t,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),l=r+u,c=t+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Yr||Math.abs(this._y1-c)>Yr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%rc+rc),d>DO?this._append`A${n},${n},0,1,${f},${r-u},${t-s}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>Yr&&this._append`A${n},${n},0,${+(d>=ec)},${f},${this._x1=r+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(r,t,n,i){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ef(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new $O(r)}function rf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E0(e){this._context=e}E0.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,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function pa(e){return new E0(e)}function T0(e){return e[0]}function I0(e){return e[1]}function M0(e,r){var t=ee(!0),n=null,i=pa,a=null,o=ef(u);e=typeof e=="function"?e:e===void 0?T0:ee(e),r=typeof r=="function"?r:r===void 0?I0:ee(r);function u(s){var l,c=(s=rf(s)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),l=0;l<=c;++l)!(l<c&&t(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+r(f,l,s));if(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ee(+s),u):e},u.y=function(s){return arguments.length?(r=typeof s=="function"?s:ee(+s),u):r},u.defined=function(s){return arguments.length?(t=typeof s=="function"?s:ee(!!s),u):t},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Xn(e,r,t){var n=null,i=ee(!0),a=null,o=pa,u=null,s=ef(l);e=typeof e=="function"?e:e===void 0?T0:ee(+e),r=typeof r=="function"?r:ee(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?I0:ee(+t);function l(f){var d,v,h,p=(f=rf(f)).length,m,g=!1,b,x=new Array(p),_=new Array(p);for(a==null&&(u=o(b=s())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(x[h],_[h]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(m,d,f),_[d]=+r(m,d,f),u.point(n?+n(m,d,f):x[d],t?+t(m,d,f):_[d]))}if(b)return u=null,b+""||null}function c(){return M0().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ee(+f),l):n},l.y=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),t=null,l):r},l.y0=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),l):r},l.y1=function(f){return arguments.length?(t=f==null?null:typeof f=="function"?f:ee(+f),l):t},l.lineX0=l.lineY0=function(){return c().x(e).y(r)},l.lineY1=function(){return c().x(e).y(t)},l.lineX1=function(){return c().x(n).y(r)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ee(!!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}class j0{constructor(r,t){this._context=r,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(r,t){switch(r=+r,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,t,r,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,r,this._y0,r,t);break}}this._x0=r,this._y0=t}}function qO(e){return new j0(e,!0)}function LO(e){return new j0(e,!1)}const tf={draw(e,r){const t=ir(r/xi);e.moveTo(t,0),e.arc(0,0,t,0,ha)}},BO={draw(e,r){const t=ir(r/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},N0=ir(1/3),zO=N0*2,FO={draw(e,r){const t=ir(r/zO),n=t*N0;e.moveTo(0,-t),e.lineTo(n,0),e.lineTo(0,t),e.lineTo(-n,0),e.closePath()}},UO={draw(e,r){const t=ir(r),n=-t/2;e.rect(n,n,t,t)}},KO=.8908130915292852,k0=bi(xi/10)/bi(7*xi/10),HO=bi(ha/10)*k0,WO=-A0(ha/10)*k0,GO={draw(e,r){const t=ir(r*KO),n=HO*t,i=WO*t;e.moveTo(0,-t),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ha*a/5,u=A0(o),s=bi(o);e.lineTo(s*t,-u*t),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},lu=ir(3),YO={draw(e,r){const t=-ir(r/(lu*3));e.moveTo(0,t*2),e.lineTo(-lu*t,-t),e.lineTo(lu*t,-t),e.closePath()}},Ue=-.5,Ke=ir(3)/2,tc=1/ir(12),VO=(tc/2+1)*3,XO={draw(e,r){const t=ir(r/VO),n=t/2,i=t*tc,a=n,o=t*tc+t,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ue*n-Ke*i,Ke*n+Ue*i),e.lineTo(Ue*a-Ke*o,Ke*a+Ue*o),e.lineTo(Ue*u-Ke*s,Ke*u+Ue*s),e.lineTo(Ue*n+Ke*i,Ue*i-Ke*n),e.lineTo(Ue*a+Ke*o,Ue*o-Ke*a),e.lineTo(Ue*u+Ke*s,Ue*s-Ke*u),e.closePath()}};function ZO(e,r){let t=null,n=ef(i);e=typeof e=="function"?e:ee(e||tf),r=typeof r=="function"?r:ee(r===void 0?64:+r);function i(){let a;if(t||(t=a=n()),e.apply(this,arguments).draw(t,+r.apply(this,arguments)),a)return t=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ee(a),i):e},i.size=function(a){return arguments.length?(r=typeof a=="function"?a:ee(+a),i):r},i.context=function(a){return arguments.length?(t=a??null,i):t},i}function wi(){}function _i(e,r,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+t)/6)}function D0(e){this._context=e}D0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_i(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function JO(e){return new D0(e)}function R0(e){this._context=e}R0.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:_i(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function QO(e){return new R0(e)}function $0(e){this._context=e}$0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 3:this._point=4;default:_i(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function eP(e){return new $0(e)}function q0(e){this._context=e}q0.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,r){e=+e,r=+r,this._point?this._context.lineTo(e,r):(this._point=1,this._context.moveTo(e,r))}};function rP(e){return new q0(e)}function Rv(e){return e<0?-1:1}function $v(e,r,t){var n=e._x1-e._x0,i=r-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(t-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Rv(a)+Rv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function qv(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function cu(e,r,t){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*r,a-u,o-u*t,a,o)}function Oi(e){this._context=e}Oi.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:cu(this,this._t0,qv(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,cu(this,qv(this,t=$v(this,e,r)),t);break;default:cu(this,this._t0,t=$v(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function L0(e){this._context=new B0(e)}(L0.prototype=Object.create(Oi.prototype)).point=function(e,r){Oi.prototype.point.call(this,r,e)};function B0(e){this._context=e}B0.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,i,a){this._context.bezierCurveTo(r,e,n,t,a,i)}};function tP(e){return new Oi(e)}function nP(e){return new L0(e)}function z0(e){this._context=e}z0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=Lv(e),i=Lv(r),a=0,o=1;o<t;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],r[o]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function Lv(e){var r,t=e.length-1,n,i=new Array(t),a=new Array(t),o=new Array(t);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],r=1;r<t-1;++r)i[r]=1,a[r]=4,o[r]=4*e[r]+2*e[r+1];for(i[t-1]=2,a[t-1]=7,o[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=i[r]/a[r-1],a[r]-=n,o[r]-=n*o[r-1];for(i[t-1]=o[t-1]/a[t-1],r=t-2;r>=0;--r)i[r]=(o[r]-i[r+1])/a[r];for(a[t-1]=(e[t]+i[t-1])/2,r=0;r<t-1;++r)a[r]=2*e[r+1]-i[r+1];return[i,a]}function iP(e){return new z0(e)}function ma(e,r){this._context=e,this._t=r}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function aP(e){return new ma(e,.5)}function oP(e){return new ma(e,0)}function uP(e){return new ma(e,1)}function nt(e,r){if((o=e.length)>1)for(var t=1,n,i,a=e[r[0]],o,u=a.length;t<o;++t)for(i=a,a=e[r[t]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function nc(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function sP(e,r){return e[r]}function lP(e){const r=[];return r.key=e,r}function cP(){var e=ee([]),r=nc,t=nt,n=sP;function i(a){var o=Array.from(e.apply(this,arguments),lP),u,s=o.length,l=-1,c;for(const f of a)for(u=0,++l;u<s;++u)(o[u][l]=[0,+n(f,o[u].key,l,a)]).data=f;for(u=0,c=rf(r(o));u<s;++u)o[c[u]].index=u;return t(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ee(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ee(+a),i):n},i.order=function(a){return arguments.length?(r=a==null?nc:typeof a=="function"?a:ee(Array.from(a)),i):r},i.offset=function(a){return arguments.length?(t=a??nt,i):t},i}function fP(e,r){if((n=e.length)>0){for(var t,n,i=0,a=e[0].length,o;i<a;++i){for(o=t=0;t<n;++t)o+=e[t][i][1]||0;if(o)for(t=0;t<n;++t)e[t][i][1]/=o}nt(e,r)}}function dP(e,r){if((i=e.length)>0){for(var t=0,n=e[r[0]],i,a=n.length;t<a;++t){for(var o=0,u=0;o<i;++o)u+=e[o][t][1]||0;n[t][1]+=n[t][0]=-u/2}nt(e,r)}}function vP(e,r){if(!(!((o=e.length)>0)||!((a=(i=e[r[0]]).length)>0))){for(var t=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,l=0;u<o;++u){for(var c=e[r[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var p=e[r[h]],m=p[n][1]||0,g=p[n-1][1]||0;v+=m-g}s+=f,l+=v*f}i[n-1][1]+=i[n-1][0]=t,s&&(t-=l/s)}i[n-1][1]+=i[n-1][0]=t,nt(e,r)}}var fu,Bv;function hP(){if(Bv)return fu;Bv=1;var e=fa();function r(){this.__data__=new e,this.size=0}return fu=r,fu}var du,zv;function pP(){if(zv)return du;zv=1;function e(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n}return du=e,du}var vu,Fv;function mP(){if(Fv)return vu;Fv=1;function e(r){return this.__data__.get(r)}return vu=e,vu}var hu,Uv;function yP(){if(Uv)return hu;Uv=1;function e(r){return this.__data__.has(r)}return hu=e,hu}var pu,Kv;function gP(){if(Kv)return pu;Kv=1;var e=fa(),r=Zc(),t=Jc(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!r||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new t(s)}return u.set(a,o),this.size=u.size,this}return pu=i,pu}var mu,Hv;function F0(){if(Hv)return mu;Hv=1;var e=fa(),r=hP(),t=pP(),n=mP(),i=yP(),a=gP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,mu=o,mu}var yu,Wv;function bP(){if(Wv)return yu;Wv=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return yu=r,yu}var gu,Gv;function xP(){if(Gv)return gu;Gv=1;function e(r){return this.__data__.has(r)}return gu=e,gu}var bu,Yv;function U0(){if(Yv)return bu;Yv=1;var e=Jc(),r=bP(),t=xP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,bu=n,bu}var xu,Vv;function wP(){if(Vv)return xu;Vv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(r[n],n,r))return!0;return!1}return xu=e,xu}var wu,Xv;function K0(){if(Xv)return wu;Xv=1;function e(r,t){return r.has(t)}return wu=e,wu}var _u,Zv;function H0(){if(Zv)return _u;Zv=1;var e=U0(),r=wP(),t=K0(),n=1,i=2;function a(o,u,s,l,c,f){var d=s&n,v=o.length,h=u.length;if(v!=h&&!(d&&h>v))return!1;var p=f.get(o),m=f.get(u);if(p&&m)return p==u&&m==o;var g=-1,b=!0,x=s&i?new e:void 0;for(f.set(o,u),f.set(u,o);++g<v;){var _=o[g],w=u[g];if(l)var O=d?l(w,_,g,u,o,f):l(_,w,g,o,u,f);if(O!==void 0){if(O)continue;b=!1;break}if(x){if(!r(u,function(P,E){if(!t(x,E)&&(_===P||c(_,P,s,l,f)))return x.push(E)})){b=!1;break}}else if(!(_===w||c(_,w,s,l,f))){b=!1;break}}return f.delete(o),f.delete(u),b}return _u=a,_u}var Ou,Jv;function _P(){if(Jv)return Ou;Jv=1;var e=mr(),r=e.Uint8Array;return Ou=r,Ou}var Pu,Qv;function OP(){if(Qv)return Pu;Qv=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i,a){n[++t]=[a,i]}),n}return Pu=e,Pu}var Su,eh;function nf(){if(eh)return Su;eh=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i){n[++t]=i}),n}return Su=e,Su}var Au,rh;function PP(){if(rh)return Au;rh=1;var e=Pn(),r=_P(),t=Xc(),n=H0(),i=OP(),a=nf(),o=1,u=2,s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",d="[object Number]",v="[object RegExp]",h="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function w(O,P,E,N,D,A,j){switch(E){case b:if(O.byteLength!=P.byteLength||O.byteOffset!=P.byteOffset)return!1;O=O.buffer,P=P.buffer;case g:return!(O.byteLength!=P.byteLength||!A(new r(O),new r(P)));case s:case l:case d:return t(+O,+P);case c:return O.name==P.name&&O.message==P.message;case v:case p:return O==P+"";case f:var M=i;case h:var k=N&o;if(M||(M=a),O.size!=P.size&&!k)return!1;var $=j.get(O);if($)return $==P;N|=u,j.set(O,P);var L=n(M(O),M(P),N,D,A,j);return j.delete(O),L;case m:if(_)return _.call(O)==_.call(P)}return!1}return Au=w,Au}var Cu,th;function W0(){if(th)return Cu;th=1;function e(r,t){for(var n=-1,i=t.length,a=r.length;++n<i;)r[a+n]=t[n];return r}return Cu=e,Cu}var Eu,nh;function SP(){if(nh)return Eu;nh=1;var e=W0(),r=nr();function t(n,i,a){var o=i(n);return r(n)?o:e(o,a(n))}return Eu=t,Eu}var Tu,ih;function AP(){if(ih)return Tu;ih=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=0,o=[];++n<i;){var u=r[n];t(u,n,r)&&(o[a++]=u)}return o}return Tu=e,Tu}var Iu,ah;function CP(){if(ah)return Iu;ah=1;function e(){return[]}return Iu=e,Iu}var Mu,oh;function EP(){if(oh)return Mu;oh=1;var e=AP(),r=CP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:r;return Mu=a,Mu}var ju,uh;function TP(){if(uh)return ju;uh=1;function e(r,t){for(var n=-1,i=Array(r);++n<r;)i[n]=t(n);return i}return ju=e,ju}var Nu,sh;function IP(){if(sh)return Nu;sh=1;var e=lt(),r=ct(),t="[object Arguments]";function n(i){return r(i)&&e(i)==t}return Nu=n,Nu}var ku,lh;function af(){if(lh)return ku;lh=1;var e=IP(),r=ct(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return r(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return ku=a,ku}var Qt={exports:{}},Du,ch;function MP(){if(ch)return Du;ch=1;function e(){return!1}return Du=e,Du}Qt.exports;var fh;function G0(){return fh||(fh=1,(function(e,r){var t=mr(),n=MP(),i=r&&!r.nodeType&&r,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?t.Buffer:void 0,s=u?u.isBuffer:void 0,l=s||n;e.exports=l})(Qt,Qt.exports)),Qt.exports}var Ru,dh;function of(){if(dh)return Ru;dh=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}return Ru=t,Ru}var $u,vh;function uf(){if(vh)return $u;vh=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return $u=r,$u}var qu,hh;function jP(){if(hh)return qu;hh=1;var e=lt(),r=uf(),t=ct(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",v="[object Set]",h="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",E="[object Uint8ClampedArray]",N="[object Uint16Array]",D="[object Uint32Array]",A={};A[b]=A[x]=A[_]=A[w]=A[O]=A[P]=A[E]=A[N]=A[D]=!0,A[n]=A[i]=A[m]=A[a]=A[g]=A[o]=A[u]=A[s]=A[l]=A[c]=A[f]=A[d]=A[v]=A[h]=A[p]=!1;function j(M){return t(M)&&r(M.length)&&!!A[e(M)]}return qu=j,qu}var Lu,ph;function Y0(){if(ph)return Lu;ph=1;function e(r){return function(t){return r(t)}}return Lu=e,Lu}var en={exports:{}};en.exports;var mh;function NP(){return mh||(mh=1,(function(e,r){var t=b0(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&t.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(en,en.exports)),en.exports}var Bu,yh;function V0(){if(yh)return Bu;yh=1;var e=jP(),r=Y0(),t=NP(),n=t&&t.isTypedArray,i=n?r(n):e;return Bu=i,Bu}var zu,gh;function kP(){if(gh)return zu;gh=1;var e=TP(),r=af(),t=nr(),n=G0(),i=of(),a=V0(),o=Object.prototype,u=o.hasOwnProperty;function s(l,c){var f=t(l),d=!f&&r(l),v=!f&&!d&&n(l),h=!f&&!d&&!v&&a(l),p=f||d||v||h,m=p?e(l.length,String):[],g=m.length;for(var b in l)(c||u.call(l,b))&&!(p&&(b=="length"||v&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&m.push(b);return m}return zu=s,zu}var Fu,bh;function DP(){if(bh)return Fu;bh=1;var e=Object.prototype;function r(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||e;return t===i}return Fu=r,Fu}var Uu,xh;function RP(){if(xh)return Uu;xh=1;function e(r,t){return function(n){return r(t(n))}}return Uu=e,Uu}var Ku,wh;function $P(){if(wh)return Ku;wh=1;var e=RP(),r=e(Object.keys,Object);return Ku=r,Ku}var Hu,_h;function qP(){if(_h)return Hu;_h=1;var e=DP(),r=$P(),t=Object.prototype,n=t.hasOwnProperty;function i(a){if(!e(a))return r(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Hu=i,Hu}var Wu,Oh;function ya(){if(Oh)return Wu;Oh=1;var e=Vc(),r=uf();function t(n){return n!=null&&r(n.length)&&!e(n)}return Wu=t,Wu}var Gu,Ph;function sf(){if(Ph)return Gu;Ph=1;var e=kP(),r=qP(),t=ya();function n(i){return t(i)?e(i):r(i)}return Gu=n,Gu}var Yu,Sh;function LP(){if(Sh)return Yu;Sh=1;var e=SP(),r=EP(),t=sf();function n(i){return e(i,t,r)}return Yu=n,Yu}var Vu,Ah;function BP(){if(Ah)return Vu;Ah=1;var e=LP(),r=1,t=Object.prototype,n=t.hasOwnProperty;function i(a,o,u,s,l,c){var f=u&r,d=e(a),v=d.length,h=e(o),p=h.length;if(v!=p&&!f)return!1;for(var m=v;m--;){var g=d[m];if(!(f?g in o:n.call(o,g)))return!1}var b=c.get(a),x=c.get(o);if(b&&x)return b==o&&x==a;var _=!0;c.set(a,o),c.set(o,a);for(var w=f;++m<v;){g=d[m];var O=a[g],P=o[g];if(s)var E=f?s(P,O,g,o,a,c):s(O,P,g,a,o,c);if(!(E===void 0?O===P||l(O,P,u,s,c):E)){_=!1;break}w||(w=g=="constructor")}if(_&&!w){var N=a.constructor,D=o.constructor;N!=D&&"constructor"in a&&"constructor"in o&&!(typeof N=="function"&&N instanceof N&&typeof D=="function"&&D instanceof D)&&(_=!1)}return c.delete(a),c.delete(o),_}return Vu=i,Vu}var Xu,Ch;function zP(){if(Ch)return Xu;Ch=1;var e=ft(),r=mr(),t=e(r,"DataView");return Xu=t,Xu}var Zu,Eh;function FP(){if(Eh)return Zu;Eh=1;var e=ft(),r=mr(),t=e(r,"Promise");return Zu=t,Zu}var Ju,Th;function X0(){if(Th)return Ju;Th=1;var e=ft(),r=mr(),t=e(r,"Set");return Ju=t,Ju}var Qu,Ih;function UP(){if(Ih)return Qu;Ih=1;var e=ft(),r=mr(),t=e(r,"WeakMap");return Qu=t,Qu}var es,Mh;function KP(){if(Mh)return es;Mh=1;var e=zP(),r=Zc(),t=FP(),n=X0(),i=UP(),a=lt(),o=x0(),u="[object Map]",s="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",d="[object DataView]",v=o(e),h=o(r),p=o(t),m=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||r&&b(new r)!=u||t&&b(t.resolve())!=l||n&&b(new n)!=c||i&&b(new i)!=f)&&(b=function(x){var _=a(x),w=_==s?x.constructor:void 0,O=w?o(w):"";if(O)switch(O){case v:return d;case h:return u;case p:return l;case m:return c;case g:return f}return _}),es=b,es}var rs,jh;function HP(){if(jh)return rs;jh=1;var e=F0(),r=H0(),t=PP(),n=BP(),i=KP(),a=nr(),o=G0(),u=V0(),s=1,l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,v=d.hasOwnProperty;function h(p,m,g,b,x,_){var w=a(p),O=a(m),P=w?c:i(p),E=O?c:i(m);P=P==l?f:P,E=E==l?f:E;var N=P==f,D=E==f,A=P==E;if(A&&o(p)){if(!o(m))return!1;w=!0,N=!1}if(A&&!N)return _||(_=new e),w||u(p)?r(p,m,g,b,x,_):t(p,m,P,g,b,x,_);if(!(g&s)){var j=N&&v.call(p,"__wrapped__"),M=D&&v.call(m,"__wrapped__");if(j||M){var k=j?p.value():p,$=M?m.value():m;return _||(_=new e),x(k,$,g,b,_)}}return A?(_||(_=new e),n(p,m,g,b,x,_)):!1}return rs=h,rs}var ts,Nh;function Z0(){if(Nh)return ts;Nh=1;var e=HP(),r=ct();function t(n,i,a,o,u){return n===i?!0:n==null||i==null||!r(n)&&!r(i)?n!==n&&i!==i:e(n,i,a,o,t,u)}return ts=t,ts}var ns,kh;function WP(){if(kh)return ns;kh=1;var e=F0(),r=Z0(),t=1,n=2;function i(a,o,u,s){var l=u.length,c=l,f=!s;if(a==null)return!c;for(a=Object(a);l--;){var d=u[l];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++l<c;){d=u[l];var v=d[0],h=a[v],p=d[1];if(f&&d[2]){if(h===void 0&&!(v in a))return!1}else{var m=new e;if(s)var g=s(h,p,v,a,o,m);if(!(g===void 0?r(p,h,t|n,s,m):g))return!1}}return!0}return ns=i,ns}var is,Dh;function J0(){if(Dh)return is;Dh=1;var e=Fr();function r(t){return t===t&&!e(t)}return is=r,is}var as,Rh;function GP(){if(Rh)return as;Rh=1;var e=J0(),r=sf();function t(n){for(var i=r(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return as=t,as}var os,$h;function Q0(){if($h)return os;$h=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return os=e,os}var us,qh;function YP(){if(qh)return us;qh=1;var e=WP(),r=GP(),t=Q0();function n(i){var a=r(i);return a.length==1&&a[0][2]?t(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return us=n,us}var ss,Lh;function VP(){if(Lh)return ss;Lh=1;function e(r,t){return r!=null&&t in Object(r)}return ss=e,ss}var ls,Bh;function XP(){if(Bh)return ls;Bh=1;var e=_0(),r=af(),t=nr(),n=of(),i=uf(),a=va();function o(u,s,l){s=e(s,u);for(var c=-1,f=s.length,d=!1;++c<f;){var v=a(s[c]);if(!(d=u!=null&&l(u,v)))break;u=u[v]}return d||++c!=f?d:(f=u==null?0:u.length,!!f&&i(f)&&n(v,f)&&(t(u)||r(u)))}return ls=o,ls}var cs,zh;function ZP(){if(zh)return cs;zh=1;var e=VP(),r=XP();function t(n,i){return n!=null&&r(n,i,e)}return cs=t,cs}var fs,Fh;function JP(){if(Fh)return fs;Fh=1;var e=Z0(),r=O0(),t=ZP(),n=Yc(),i=J0(),a=Q0(),o=va(),u=1,s=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(d){var v=r(d,c);return v===void 0&&v===f?t(d,c):e(f,v,u|s)}}return fs=l,fs}var ds,Uh;function ga(){if(Uh)return ds;Uh=1;function e(r){return r}return ds=e,ds}var vs,Kh;function QP(){if(Kh)return vs;Kh=1;function e(r){return function(t){return t?.[r]}}return vs=e,vs}var hs,Hh;function eS(){if(Hh)return hs;Hh=1;var e=Qc();function r(t){return function(n){return e(n,t)}}return hs=r,hs}var ps,Wh;function rS(){if(Wh)return ps;Wh=1;var e=QP(),r=eS(),t=Yc(),n=va();function i(a){return t(a)?e(n(a)):r(a)}return ps=i,ps}var ms,Gh;function eb(){if(Gh)return ms;Gh=1;var e=YP(),r=JP(),t=ga(),n=nr(),i=rS();function a(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):i(o)}return ms=a,ms}var ys,Yh;function tS(){if(Yh)return ys;Yh=1;function e(r,t,n,i){for(var a=r.length,o=n+(i?1:-1);i?o--:++o<a;)if(t(r[o],o,r))return o;return-1}return ys=e,ys}var gs,Vh;function nS(){if(Vh)return gs;Vh=1;function e(r){return r!==r}return gs=e,gs}var bs,Xh;function iS(){if(Xh)return bs;Xh=1;function e(r,t,n){for(var i=n-1,a=r.length;++i<a;)if(r[i]===t)return i;return-1}return bs=e,bs}var xs,Zh;function aS(){if(Zh)return xs;Zh=1;var e=tS(),r=nS(),t=iS();function n(i,a,o){return a===a?t(i,a,o):e(i,r,o)}return xs=n,xs}var ws,Jh;function oS(){if(Jh)return ws;Jh=1;var e=aS();function r(t,n){var i=t==null?0:t.length;return!!i&&e(t,n,0)>-1}return ws=r,ws}var _s,Qh;function uS(){if(Qh)return _s;Qh=1;function e(r,t,n){for(var i=-1,a=r==null?0:r.length;++i<a;)if(n(t,r[i]))return!0;return!1}return _s=e,_s}var Os,ep;function sS(){if(ep)return Os;ep=1;function e(){}return Os=e,Os}var Ps,rp;function lS(){if(rp)return Ps;rp=1;var e=X0(),r=sS(),t=nf(),n=1/0,i=e&&1/t(new e([,-0]))[1]==n?function(a){return new e(a)}:r;return Ps=i,Ps}var Ss,tp;function cS(){if(tp)return Ss;tp=1;var e=U0(),r=oS(),t=uS(),n=K0(),i=lS(),a=nf(),o=200;function u(s,l,c){var f=-1,d=r,v=s.length,h=!0,p=[],m=p;if(c)h=!1,d=t;else if(v>=o){var g=l?null:i(s);if(g)return a(g);h=!1,d=n,m=new e}else m=l?[]:p;e:for(;++f<v;){var b=s[f],x=l?l(b):b;if(b=c||b!==0?b:0,h&&x===x){for(var _=m.length;_--;)if(m[_]===x)continue e;l&&m.push(x),p.push(b)}else d(m,x,c)||(m!==p&&m.push(x),p.push(b))}return p}return Ss=u,Ss}var As,np;function fS(){if(np)return As;np=1;var e=eb(),r=cS();function t(n,i){return n&&n.length?r(n,e(i,2)):[]}return As=t,As}var dS=fS();const ip=Ne(dS);function vS(e,r,t){return r===!0?ip(e,t):EO(r)?ip(e,r):e}var Cs,ap;function hS(){if(ap)return Cs;ap=1;var e=Pn(),r=af(),t=nr(),n=e?e.isConcatSpreadable:void 0;function i(a){return t(a)||r(a)||!!(n&&a&&a[n])}return Cs=i,Cs}var Es,op;function pS(){if(op)return Es;op=1;var e=W0(),r=hS();function t(n,i,a,o,u){var s=-1,l=n.length;for(a||(a=r),u||(u=[]);++s<l;){var c=n[s];i>0&&a(c)?i>1?t(c,i-1,a,o,u):e(u,c):o||(u[u.length]=c)}return u}return Es=t,Es}var Ts,up;function mS(){if(up)return Ts;up=1;function e(r){return function(t,n,i){for(var a=-1,o=Object(t),u=i(t),s=u.length;s--;){var l=u[r?s:++a];if(n(o[l],l,o)===!1)break}return t}}return Ts=e,Ts}var Is,sp;function yS(){if(sp)return Is;sp=1;var e=mS(),r=e();return Is=r,Is}var Ms,lp;function gS(){if(lp)return Ms;lp=1;var e=yS(),r=sf();function t(n,i){return n&&e(n,i,r)}return Ms=t,Ms}var js,cp;function bS(){if(cp)return js;cp=1;var e=ya();function r(t,n){return function(i,a){if(i==null)return i;if(!e(i))return t(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return js=r,js}var Ns,fp;function xS(){if(fp)return Ns;fp=1;var e=gS(),r=bS(),t=r(e);return Ns=t,Ns}var ks,dp;function wS(){if(dp)return ks;dp=1;var e=xS(),r=ya();function t(n,i){var a=-1,o=r(n)?Array(n.length):[];return e(n,function(u,s,l){o[++a]=i(u,s,l)}),o}return ks=t,ks}var Ds,vp;function _S(){if(vp)return Ds;vp=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return Ds=e,Ds}var Rs,hp;function OS(){if(hp)return Rs;hp=1;var e=Sn();function r(t,n){if(t!==n){var i=t!==void 0,a=t===null,o=t===t,u=e(t),s=n!==void 0,l=n===null,c=n===n,f=e(n);if(!l&&!f&&!u&&t>n||u&&s&&c&&!l&&!f||a&&s&&c||!i&&c||!o)return 1;if(!a&&!u&&!f&&t<n||f&&i&&o&&!a&&!u||l&&i&&o||!s&&o||!c)return-1}return 0}return Rs=r,Rs}var $s,pp;function PS(){if(pp)return $s;pp=1;var e=OS();function r(t,n,i){for(var a=-1,o=t.criteria,u=n.criteria,s=o.length,l=i.length;++a<s;){var c=e(o[a],u[a]);if(c){if(a>=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return t.index-n.index}return $s=r,$s}var qs,mp;function SS(){if(mp)return qs;mp=1;var e=w0(),r=Qc(),t=eb(),n=wS(),i=_S(),a=Y0(),o=PS(),u=ga(),s=nr();function l(c,f,d){f.length?f=e(f,function(p){return s(p)?function(m){return r(m,p.length===1?p[0]:p)}:p}):f=[u];var v=-1;f=e(f,a(t));var h=n(c,function(p,m,g){var b=e(f,function(x){return x(p)});return{criteria:b,index:++v,value:p}});return i(h,function(p,m){return o(p,m,d)})}return qs=l,qs}var Ls,yp;function AS(){if(yp)return Ls;yp=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return Ls=e,Ls}var Bs,gp;function CS(){if(gp)return Bs;gp=1;var e=AS(),r=Math.max;function t(n,i,a){return i=r(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=r(o.length-i,0),l=Array(s);++u<s;)l[u]=o[i+u];u=-1;for(var c=Array(i+1);++u<i;)c[u]=o[u];return c[i]=a(l),e(n,this,c)}}return Bs=t,Bs}var zs,bp;function ES(){if(bp)return zs;bp=1;function e(r){return function(){return r}}return zs=e,zs}var Fs,xp;function TS(){if(xp)return Fs;xp=1;var e=ft(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Fs=r,Fs}var Us,wp;function IS(){if(wp)return Us;wp=1;var e=ES(),r=TS(),t=ga(),n=r?function(i,a){return r(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:t;return Us=n,Us}var Ks,_p;function MS(){if(_p)return Ks;_p=1;var e=800,r=16,t=Date.now;function n(i){var a=0,o=0;return function(){var u=t(),s=r-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Ks=n,Ks}var Hs,Op;function jS(){if(Op)return Hs;Op=1;var e=IS(),r=MS(),t=r(e);return Hs=t,Hs}var Ws,Pp;function NS(){if(Pp)return Ws;Pp=1;var e=ga(),r=CS(),t=jS();function n(i,a){return t(r(i,a,e),i+"")}return Ws=n,Ws}var Gs,Sp;function kS(){if(Sp)return Gs;Sp=1;var e=Xc(),r=ya(),t=of(),n=Fr();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?r(u)&&t(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Gs=i,Gs}var Ys,Ap;function DS(){if(Ap)return Ys;Ap=1;var e=pS(),r=SS(),t=NS(),n=kS(),i=t(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(a,e(o,1),[])});return Ys=i,Ys}var RS=DS();const $S=Ne(RS);function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},un(e)}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ic.apply(this,arguments)}function qS(e,r){return FS(e)||zS(e,r)||BS(e,r)||LS()}function LS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
1
+ import{r as y,aj as Wn,ak as Ne,V as Ae,F as he,c as zr,j as T,al as h_,am as p_,p as m_,an as y_,ao as g_,f as b_,t as x_}from"./index-BFGV_ZyQ.js";import{c as Dr}from"./utils-D8oc_Xja.js";import{r as w_}from"./index-RtH5C8CP.js";import{u as __,c as eo,b as ro,T as to,i as _d}from"./tooltip-B1UObqaJ.js";import{B as Kt}from"./button-DGzvT_2A.js";import{a as Od}from"./Copy01-Bm7GrXLR.js";import{i as O_,J as Pd}from"./json-syntax-highlighter-s54gEg6g.js";const Zl=({size:e=24,color:r="currentColor",...t})=>y.createElement("svg",{viewBox:"0 0 24 24",width:e,height:e,stroke:r,strokeWidth:"2",fill:"none",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",...t},y.createElement("path",{d:"M21 15v1.2c0 1.68 0 2.52-.327 3.162a3 3 0 0 1-1.311 1.311C18.72 21 17.88 21 16.2 21H7.8c-1.68 0-2.52 0-3.162-.327a3 3 0 0 1-1.311-1.311C3 18.72 3 17.88 3 16.2V15m14-5-5 5m0 0-5-5m5 5V3"}));Zl.displayName="Download01";function Hc(e,r,t){e.prototype=r.prototype=t,t.constructor=e}function m0(e,r){var t=Object.create(e.prototype);for(var n in r)t[n]=r[n];return t}function On(){}var nn=.7,pi=1/nn,Pt="\\s*([+-]?\\d+)\\s*",an="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",P_=/^#([0-9a-f]{3,8})$/,S_=new RegExp(`^rgb\\(${Pt},${Pt},${Pt}\\)$`),A_=new RegExp(`^rgb\\(${vr},${vr},${vr}\\)$`),C_=new RegExp(`^rgba\\(${Pt},${Pt},${Pt},${an}\\)$`),E_=new RegExp(`^rgba\\(${vr},${vr},${vr},${an}\\)$`),T_=new RegExp(`^hsl\\(${an},${vr},${vr}\\)$`),I_=new RegExp(`^hsla\\(${an},${vr},${vr},${an}\\)$`),Sd={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};Hc(On,on,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Ad,formatHex:Ad,formatHex8:M_,formatHsl:j_,formatRgb:Cd,toString:Cd});function Ad(){return this.rgb().formatHex()}function M_(){return this.rgb().formatHex8()}function j_(){return y0(this).formatHsl()}function Cd(){return this.rgb().formatRgb()}function on(e){var r,t;return e=(e+"").trim().toLowerCase(),(r=P_.exec(e))?(t=r[1].length,r=parseInt(r[1],16),t===6?Ed(r):t===3?new je(r>>8&15|r>>4&240,r>>4&15|r&240,(r&15)<<4|r&15,1):t===8?Gn(r>>24&255,r>>16&255,r>>8&255,(r&255)/255):t===4?Gn(r>>12&15|r>>8&240,r>>8&15|r>>4&240,r>>4&15|r&240,((r&15)<<4|r&15)/255):null):(r=S_.exec(e))?new je(r[1],r[2],r[3],1):(r=A_.exec(e))?new je(r[1]*255/100,r[2]*255/100,r[3]*255/100,1):(r=C_.exec(e))?Gn(r[1],r[2],r[3],r[4]):(r=E_.exec(e))?Gn(r[1]*255/100,r[2]*255/100,r[3]*255/100,r[4]):(r=T_.exec(e))?Md(r[1],r[2]/100,r[3]/100,1):(r=I_.exec(e))?Md(r[1],r[2]/100,r[3]/100,r[4]):Sd.hasOwnProperty(e)?Ed(Sd[e]):e==="transparent"?new je(NaN,NaN,NaN,0):null}function Ed(e){return new je(e>>16&255,e>>8&255,e&255,1)}function Gn(e,r,t,n){return n<=0&&(e=r=t=NaN),new je(e,r,t,n)}function N_(e){return e instanceof On||(e=on(e)),e?(e=e.rgb(),new je(e.r,e.g,e.b,e.opacity)):new je}function Jl(e,r,t,n){return arguments.length===1?N_(e):new je(e,r,t,n??1)}function je(e,r,t,n){this.r=+e,this.g=+r,this.b=+t,this.opacity=+n}Hc(je,Jl,m0(On,{brighter(e){return e=e==null?pi:Math.pow(pi,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new je(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new je(et(this.r),et(this.g),et(this.b),mi(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:Td,formatHex:Td,formatHex8:k_,formatRgb:Id,toString:Id}));function Td(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}`}function k_(){return`#${Zr(this.r)}${Zr(this.g)}${Zr(this.b)}${Zr((isNaN(this.opacity)?1:this.opacity)*255)}`}function Id(){const e=mi(this.opacity);return`${e===1?"rgb(":"rgba("}${et(this.r)}, ${et(this.g)}, ${et(this.b)}${e===1?")":`, ${e})`}`}function mi(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function et(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Zr(e){return e=et(e),(e<16?"0":"")+e.toString(16)}function Md(e,r,t,n){return n<=0?e=r=t=NaN:t<=0||t>=1?e=r=NaN:r<=0&&(e=NaN),new Ze(e,r,t,n)}function y0(e){if(e instanceof Ze)return new Ze(e.h,e.s,e.l,e.opacity);if(e instanceof On||(e=on(e)),!e)return new Ze;if(e instanceof Ze)return e;e=e.rgb();var r=e.r/255,t=e.g/255,n=e.b/255,i=Math.min(r,t,n),a=Math.max(r,t,n),o=NaN,u=a-i,s=(a+i)/2;return u?(r===a?o=(t-n)/u+(t<n)*6:t===a?o=(n-r)/u+2:o=(r-t)/u+4,u/=s<.5?a+i:2-a-i,o*=60):u=s>0&&s<1?0:o,new Ze(o,u,s,e.opacity)}function D_(e,r,t,n){return arguments.length===1?y0(e):new Ze(e,r,t,n??1)}function Ze(e,r,t,n){this.h=+e,this.s=+r,this.l=+t,this.opacity=+n}Hc(Ze,D_,m0(On,{brighter(e){return e=e==null?pi:Math.pow(pi,e),new Ze(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?nn:Math.pow(nn,e),new Ze(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,r=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*r,i=2*t-n;return new je(no(e>=240?e-240:e+120,i,n),no(e,i,n),no(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Ze(jd(this.h),Yn(this.s),Yn(this.l),mi(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=mi(this.opacity);return`${e===1?"hsl(":"hsla("}${jd(this.h)}, ${Yn(this.s)*100}%, ${Yn(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jd(e){return e=(e||0)%360,e<0?e+360:e}function Yn(e){return Math.max(0,Math.min(1,e||0))}function no(e,r,t){return(e<60?r+(t-r)*e/60:e<180?t:e<240?r+(t-r)*(240-e)/60:r)*255}const Wc=e=>()=>e;function R_(e,r){return function(t){return e+t*r}}function $_(e,r,t){return e=Math.pow(e,t),r=Math.pow(r,t)-e,t=1/t,function(n){return Math.pow(e+n*r,t)}}function q_(e){return(e=+e)==1?g0:function(r,t){return t-r?$_(r,t,e):Wc(isNaN(r)?t:r)}}function g0(e,r){var t=r-e;return t?R_(e,t):Wc(isNaN(e)?r:e)}const Nd=(function e(r){var t=q_(r);function n(i,a){var o=t((i=Jl(i)).r,(a=Jl(a)).r),u=t(i.g,a.g),s=t(i.b,a.b),l=g0(i.opacity,a.opacity);return function(c){return i.r=o(c),i.g=u(c),i.b=s(c),i.opacity=l(c),i+""}}return n.gamma=e,n})(1);function L_(e,r){r||(r=[]);var t=e?Math.min(r.length,e.length):0,n=r.slice(),i;return function(a){for(i=0;i<t;++i)n[i]=e[i]*(1-a)+r[i]*a;return n}}function B_(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function z_(e,r){var t=r?r.length:0,n=e?Math.min(t,e.length):0,i=new Array(n),a=new Array(t),o;for(o=0;o<n;++o)i[o]=$t(e[o],r[o]);for(;o<t;++o)a[o]=r[o];return function(u){for(o=0;o<n;++o)a[o]=i[o](u);return a}}function F_(e,r){var t=new Date;return e=+e,r=+r,function(n){return t.setTime(e*(1-n)+r*n),t}}function yi(e,r){return e=+e,r=+r,function(t){return e*(1-t)+r*t}}function U_(e,r){var t={},n={},i;(e===null||typeof e!="object")&&(e={}),(r===null||typeof r!="object")&&(r={});for(i in r)i in e?t[i]=$t(e[i],r[i]):n[i]=r[i];return function(a){for(i in t)n[i]=t[i](a);return n}}var Ql=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,io=new RegExp(Ql.source,"g");function K_(e){return function(){return e}}function H_(e){return function(r){return e(r)+""}}function W_(e,r){var t=Ql.lastIndex=io.lastIndex=0,n,i,a,o=-1,u=[],s=[];for(e=e+"",r=r+"";(n=Ql.exec(e))&&(i=io.exec(r));)(a=i.index)>t&&(a=r.slice(t,a),u[o]?u[o]+=a:u[++o]=a),(n=n[0])===(i=i[0])?u[o]?u[o]+=i:u[++o]=i:(u[++o]=null,s.push({i:o,x:yi(n,i)})),t=io.lastIndex;return t<r.length&&(a=r.slice(t),u[o]?u[o]+=a:u[++o]=a),u.length<2?s[0]?H_(s[0].x):K_(r):(r=s.length,function(l){for(var c=0,f;c<r;++c)u[(f=s[c]).i]=f.x(l);return u.join("")})}function $t(e,r){var t=typeof r,n;return r==null||t==="boolean"?Wc(r):(t==="number"?yi:t==="string"?(n=on(r))?(r=n,Nd):W_:r instanceof on?Nd:r instanceof Date?F_:B_(r)?L_:Array.isArray(r)?z_:typeof r.valueOf!="function"&&typeof r.toString!="function"||isNaN(r)?U_:yi)(e,r)}function Gc(e,r){return e=+e,r=+r,function(t){return Math.round(e*(1-t)+r*t)}}function G_(e,r){r===void 0&&(r=e,e=$t);for(var t=0,n=r.length-1,i=r[0],a=new Array(n<0?0:n);t<n;)a[t]=e(i,i=r[++t]);return function(o){var u=Math.max(0,Math.min(n-1,Math.floor(o*=n)));return a[u](o-u)}}var ao,kd;function nr(){if(kd)return ao;kd=1;var e=Array.isArray;return ao=e,ao}var oo,Dd;function b0(){if(Dd)return oo;Dd=1;var e=typeof Wn=="object"&&Wn&&Wn.Object===Object&&Wn;return oo=e,oo}var uo,Rd;function mr(){if(Rd)return uo;Rd=1;var e=b0(),r=typeof self=="object"&&self&&self.Object===Object&&self,t=e||r||Function("return this")();return uo=t,uo}var so,$d;function Pn(){if($d)return so;$d=1;var e=mr(),r=e.Symbol;return so=r,so}var lo,qd;function Y_(){if(qd)return lo;qd=1;var e=Pn(),r=Object.prototype,t=r.hasOwnProperty,n=r.toString,i=e?e.toStringTag:void 0;function a(o){var u=t.call(o,i),s=o[i];try{o[i]=void 0;var l=!0}catch{}var c=n.call(o);return l&&(u?o[i]=s:delete o[i]),c}return lo=a,lo}var co,Ld;function V_(){if(Ld)return co;Ld=1;var e=Object.prototype,r=e.toString;function t(n){return r.call(n)}return co=t,co}var fo,Bd;function lt(){if(Bd)return fo;Bd=1;var e=Pn(),r=Y_(),t=V_(),n="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(u){return u==null?u===void 0?i:n:a&&a in Object(u)?r(u):t(u)}return fo=o,fo}var vo,zd;function ct(){if(zd)return vo;zd=1;function e(r){return r!=null&&typeof r=="object"}return vo=e,vo}var ho,Fd;function Sn(){if(Fd)return ho;Fd=1;var e=lt(),r=ct(),t="[object Symbol]";function n(i){return typeof i=="symbol"||r(i)&&e(i)==t}return ho=n,ho}var po,Ud;function Yc(){if(Ud)return po;Ud=1;var e=nr(),r=Sn(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(a,o){if(e(a))return!1;var u=typeof a;return u=="number"||u=="symbol"||u=="boolean"||a==null||r(a)?!0:n.test(a)||!t.test(a)||o!=null&&a in Object(o)}return po=i,po}var mo,Kd;function Fr(){if(Kd)return mo;Kd=1;function e(r){var t=typeof r;return r!=null&&(t=="object"||t=="function")}return mo=e,mo}var yo,Hd;function Vc(){if(Hd)return yo;Hd=1;var e=lt(),r=Fr(),t="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(u){if(!r(u))return!1;var s=e(u);return s==n||s==i||s==t||s==a}return yo=o,yo}var go,Wd;function X_(){if(Wd)return go;Wd=1;var e=mr(),r=e["__core-js_shared__"];return go=r,go}var bo,Gd;function Z_(){if(Gd)return bo;Gd=1;var e=X_(),r=(function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function t(n){return!!r&&r in n}return bo=t,bo}var xo,Yd;function x0(){if(Yd)return xo;Yd=1;var e=Function.prototype,r=e.toString;function t(n){if(n!=null){try{return r.call(n)}catch{}try{return n+""}catch{}}return""}return xo=t,xo}var wo,Vd;function J_(){if(Vd)return wo;Vd=1;var e=Vc(),r=Z_(),t=Fr(),n=x0(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,u=Object.prototype,s=o.toString,l=u.hasOwnProperty,c=RegExp("^"+s.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(d){if(!t(d)||r(d))return!1;var v=e(d)?c:a;return v.test(n(d))}return wo=f,wo}var _o,Xd;function Q_(){if(Xd)return _o;Xd=1;function e(r,t){return r?.[t]}return _o=e,_o}var Oo,Zd;function ft(){if(Zd)return Oo;Zd=1;var e=J_(),r=Q_();function t(n,i){var a=r(n,i);return e(a)?a:void 0}return Oo=t,Oo}var Po,Jd;function la(){if(Jd)return Po;Jd=1;var e=ft(),r=e(Object,"create");return Po=r,Po}var So,Qd;function eO(){if(Qd)return So;Qd=1;var e=la();function r(){this.__data__=e?e(null):{},this.size=0}return So=r,So}var Ao,ev;function rO(){if(ev)return Ao;ev=1;function e(r){var t=this.has(r)&&delete this.__data__[r];return this.size-=t?1:0,t}return Ao=e,Ao}var Co,rv;function tO(){if(rv)return Co;rv=1;var e=la(),r="__lodash_hash_undefined__",t=Object.prototype,n=t.hasOwnProperty;function i(a){var o=this.__data__;if(e){var u=o[a];return u===r?void 0:u}return n.call(o,a)?o[a]:void 0}return Co=i,Co}var Eo,tv;function nO(){if(tv)return Eo;tv=1;var e=la(),r=Object.prototype,t=r.hasOwnProperty;function n(i){var a=this.__data__;return e?a[i]!==void 0:t.call(a,i)}return Eo=n,Eo}var To,nv;function iO(){if(nv)return To;nv=1;var e=la(),r="__lodash_hash_undefined__";function t(n,i){var a=this.__data__;return this.size+=this.has(n)?0:1,a[n]=e&&i===void 0?r:i,this}return To=t,To}var Io,iv;function aO(){if(iv)return Io;iv=1;var e=eO(),r=rO(),t=tO(),n=nO(),i=iO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Io=a,Io}var Mo,av;function oO(){if(av)return Mo;av=1;function e(){this.__data__=[],this.size=0}return Mo=e,Mo}var jo,ov;function Xc(){if(ov)return jo;ov=1;function e(r,t){return r===t||r!==r&&t!==t}return jo=e,jo}var No,uv;function ca(){if(uv)return No;uv=1;var e=Xc();function r(t,n){for(var i=t.length;i--;)if(e(t[i][0],n))return i;return-1}return No=r,No}var ko,sv;function uO(){if(sv)return ko;sv=1;var e=ca(),r=Array.prototype,t=r.splice;function n(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var u=a.length-1;return o==u?a.pop():t.call(a,o,1),--this.size,!0}return ko=n,ko}var Do,lv;function sO(){if(lv)return Do;lv=1;var e=ca();function r(t){var n=this.__data__,i=e(n,t);return i<0?void 0:n[i][1]}return Do=r,Do}var Ro,cv;function lO(){if(cv)return Ro;cv=1;var e=ca();function r(t){return e(this.__data__,t)>-1}return Ro=r,Ro}var $o,fv;function cO(){if(fv)return $o;fv=1;var e=ca();function r(t,n){var i=this.__data__,a=e(i,t);return a<0?(++this.size,i.push([t,n])):i[a][1]=n,this}return $o=r,$o}var qo,dv;function fa(){if(dv)return qo;dv=1;var e=oO(),r=uO(),t=sO(),n=lO(),i=cO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,qo=a,qo}var Lo,vv;function Zc(){if(vv)return Lo;vv=1;var e=ft(),r=mr(),t=e(r,"Map");return Lo=t,Lo}var Bo,hv;function fO(){if(hv)return Bo;hv=1;var e=aO(),r=fa(),t=Zc();function n(){this.size=0,this.__data__={hash:new e,map:new(t||r),string:new e}}return Bo=n,Bo}var zo,pv;function dO(){if(pv)return zo;pv=1;function e(r){var t=typeof r;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?r!=="__proto__":r===null}return zo=e,zo}var Fo,mv;function da(){if(mv)return Fo;mv=1;var e=dO();function r(t,n){var i=t.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Fo=r,Fo}var Uo,yv;function vO(){if(yv)return Uo;yv=1;var e=da();function r(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}return Uo=r,Uo}var Ko,gv;function hO(){if(gv)return Ko;gv=1;var e=da();function r(t){return e(this,t).get(t)}return Ko=r,Ko}var Ho,bv;function pO(){if(bv)return Ho;bv=1;var e=da();function r(t){return e(this,t).has(t)}return Ho=r,Ho}var Wo,xv;function mO(){if(xv)return Wo;xv=1;var e=da();function r(t,n){var i=e(this,t),a=i.size;return i.set(t,n),this.size+=i.size==a?0:1,this}return Wo=r,Wo}var Go,wv;function Jc(){if(wv)return Go;wv=1;var e=fO(),r=vO(),t=hO(),n=pO(),i=mO();function a(o){var u=-1,s=o==null?0:o.length;for(this.clear();++u<s;){var l=o[u];this.set(l[0],l[1])}}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=t,a.prototype.has=n,a.prototype.set=i,Go=a,Go}var Yo,_v;function yO(){if(_v)return Yo;_v=1;var e=Jc(),r="Expected a function";function t(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(r);var a=function(){var o=arguments,u=i?i.apply(this,o):o[0],s=a.cache;if(s.has(u))return s.get(u);var l=n.apply(this,o);return a.cache=s.set(u,l)||s,l};return a.cache=new(t.Cache||e),a}return t.Cache=e,Yo=t,Yo}var Vo,Ov;function gO(){if(Ov)return Vo;Ov=1;var e=yO(),r=500;function t(n){var i=e(n,function(o){return a.size===r&&a.clear(),o}),a=i.cache;return i}return Vo=t,Vo}var Xo,Pv;function bO(){if(Pv)return Xo;Pv=1;var e=gO(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,t=/\\(\\)?/g,n=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(r,function(o,u,s,l){a.push(s?l.replace(t,"$1"):u||o)}),a});return Xo=n,Xo}var Zo,Sv;function w0(){if(Sv)return Zo;Sv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=Array(i);++n<i;)a[n]=t(r[n],n,r);return a}return Zo=e,Zo}var Jo,Av;function xO(){if(Av)return Jo;Av=1;var e=Pn(),r=w0(),t=nr(),n=Sn(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(u){if(typeof u=="string")return u;if(t(u))return r(u,o)+"";if(n(u))return a?a.call(u):"";var s=u+"";return s=="0"&&1/u==-1/0?"-0":s}return Jo=o,Jo}var Qo,Cv;function wO(){if(Cv)return Qo;Cv=1;var e=xO();function r(t){return t==null?"":e(t)}return Qo=r,Qo}var eu,Ev;function _0(){if(Ev)return eu;Ev=1;var e=nr(),r=Yc(),t=bO(),n=wO();function i(a,o){return e(a)?a:r(a,o)?[a]:t(n(a))}return eu=i,eu}var ru,Tv;function va(){if(Tv)return ru;Tv=1;var e=Sn();function r(t){if(typeof t=="string"||e(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}return ru=r,ru}var tu,Iv;function Qc(){if(Iv)return tu;Iv=1;var e=_0(),r=va();function t(n,i){i=e(i,n);for(var a=0,o=i.length;n!=null&&a<o;)n=n[r(i[a++])];return a&&a==o?n:void 0}return tu=t,tu}var nu,Mv;function O0(){if(Mv)return nu;Mv=1;var e=Qc();function r(t,n,i){var a=t==null?void 0:e(t,n);return a===void 0?i:a}return nu=r,nu}O0();var iu,jv;function _O(){if(jv)return iu;jv=1;function e(r){return r==null}return iu=e,iu}var OO=_O();const PO=Ne(OO);var au,Nv;function SO(){if(Nv)return au;Nv=1;var e=lt(),r=nr(),t=ct(),n="[object String]";function i(a){return typeof a=="string"||!r(a)&&t(a)&&e(a)==n}return au=i,au}var AO=SO();const P0=Ne(AO);var CO=Vc();const EO=Ne(CO);Fr();var ou,kv;function S0(){if(kv)return ou;kv=1;var e=lt(),r=ct(),t="[object Number]";function n(i){return typeof i=="number"||r(i)&&e(i)==t}return ou=n,ou}var uu,Dv;function TO(){if(Dv)return uu;Dv=1;var e=S0();function r(t){return e(t)&&t!=+t}return uu=r,uu}var IO=TO();const MO=Ne(IO);var jO=S0();const NO=Ne(jO);var Vn=function(r){return P0(r)&&r.indexOf("%")===r.length-1},fr=function(r){return NO(r)&&!MO(r)},gi=function(r){return fr(r)||P0(r)},kO=function(r){return typeof r=="string"?r:r?r.displayName||r.name||"Component":""},su=function(r,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a]};function ee(e){return function(){return e}}const A0=Math.cos,bi=Math.sin,ir=Math.sqrt,xi=Math.PI,ha=2*xi,ec=Math.PI,rc=2*ec,Yr=1e-6,DO=rc-Yr;function C0(e){this._+=e[0];for(let r=1,t=e.length;r<t;++r)this._+=arguments[r]+e[r]}function RO(e){let r=Math.floor(e);if(!(r>=0))throw new Error(`invalid digits: ${e}`);if(r>15)return C0;const t=10**r;return function(n){this._+=n[0];for(let i=1,a=n.length;i<a;++i)this._+=Math.round(arguments[i]*t)/t+n[i]}}class $O{constructor(r){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=r==null?C0:RO(r)}moveTo(r,t){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(r,t){this._append`L${this._x1=+r},${this._y1=+t}`}quadraticCurveTo(r,t,n,i){this._append`Q${+r},${+t},${this._x1=+n},${this._y1=+i}`}bezierCurveTo(r,t,n,i,a,o){this._append`C${+r},${+t},${+n},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(r,t,n,i,a){if(r=+r,t=+t,n=+n,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,u=this._y1,s=n-r,l=i-t,c=o-r,f=u-t,d=c*c+f*f;if(this._x1===null)this._append`M${this._x1=r},${this._y1=t}`;else if(d>Yr)if(!(Math.abs(f*s-l*c)>Yr)||!a)this._append`L${this._x1=r},${this._y1=t}`;else{let v=n-o,h=i-u,p=s*s+l*l,m=v*v+h*h,g=Math.sqrt(p),b=Math.sqrt(d),x=a*Math.tan((ec-Math.acos((p+d-m)/(2*g*b)))/2),_=x/b,w=x/g;Math.abs(_-1)>Yr&&this._append`L${r+_*c},${t+_*f}`,this._append`A${a},${a},0,0,${+(f*v>c*h)},${this._x1=r+w*s},${this._y1=t+w*l}`}}arc(r,t,n,i,a,o){if(r=+r,t=+t,n=+n,o=!!o,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),s=n*Math.sin(i),l=r+u,c=t+s,f=1^o,d=o?i-a:a-i;this._x1===null?this._append`M${l},${c}`:(Math.abs(this._x1-l)>Yr||Math.abs(this._y1-c)>Yr)&&this._append`L${l},${c}`,n&&(d<0&&(d=d%rc+rc),d>DO?this._append`A${n},${n},0,1,${f},${r-u},${t-s}A${n},${n},0,1,${f},${this._x1=l},${this._y1=c}`:d>Yr&&this._append`A${n},${n},0,${+(d>=ec)},${f},${this._x1=r+n*Math.cos(a)},${this._y1=t+n*Math.sin(a)}`)}rect(r,t,n,i){this._append`M${this._x0=this._x1=+r},${this._y0=this._y1=+t}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function ef(e){let r=3;return e.digits=function(t){if(!arguments.length)return r;if(t==null)r=null;else{const n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);r=n}return e},()=>new $O(r)}function rf(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E0(e){this._context=e}E0.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,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:this._context.lineTo(e,r);break}}};function pa(e){return new E0(e)}function T0(e){return e[0]}function I0(e){return e[1]}function M0(e,r){var t=ee(!0),n=null,i=pa,a=null,o=ef(u);e=typeof e=="function"?e:e===void 0?T0:ee(e),r=typeof r=="function"?r:r===void 0?I0:ee(r);function u(s){var l,c=(s=rf(s)).length,f,d=!1,v;for(n==null&&(a=i(v=o())),l=0;l<=c;++l)!(l<c&&t(f=s[l],l,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(f,l,s),+r(f,l,s));if(v)return a=null,v+""||null}return u.x=function(s){return arguments.length?(e=typeof s=="function"?s:ee(+s),u):e},u.y=function(s){return arguments.length?(r=typeof s=="function"?s:ee(+s),u):r},u.defined=function(s){return arguments.length?(t=typeof s=="function"?s:ee(!!s),u):t},u.curve=function(s){return arguments.length?(i=s,n!=null&&(a=i(n)),u):i},u.context=function(s){return arguments.length?(s==null?n=a=null:a=i(n=s),u):n},u}function Xn(e,r,t){var n=null,i=ee(!0),a=null,o=pa,u=null,s=ef(l);e=typeof e=="function"?e:e===void 0?T0:ee(+e),r=typeof r=="function"?r:ee(r===void 0?0:+r),t=typeof t=="function"?t:t===void 0?I0:ee(+t);function l(f){var d,v,h,p=(f=rf(f)).length,m,g=!1,b,x=new Array(p),_=new Array(p);for(a==null&&(u=o(b=s())),d=0;d<=p;++d){if(!(d<p&&i(m=f[d],d,f))===g)if(g=!g)v=d,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),h=d-1;h>=v;--h)u.point(x[h],_[h]);u.lineEnd(),u.areaEnd()}g&&(x[d]=+e(m,d,f),_[d]=+r(m,d,f),u.point(n?+n(m,d,f):x[d],t?+t(m,d,f):_[d]))}if(b)return u=null,b+""||null}function c(){return M0().defined(i).curve(o).context(a)}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),n=null,l):e},l.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ee(+f),l):e},l.x1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ee(+f),l):n},l.y=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),t=null,l):r},l.y0=function(f){return arguments.length?(r=typeof f=="function"?f:ee(+f),l):r},l.y1=function(f){return arguments.length?(t=f==null?null:typeof f=="function"?f:ee(+f),l):t},l.lineX0=l.lineY0=function(){return c().x(e).y(r)},l.lineY1=function(){return c().x(e).y(t)},l.lineX1=function(){return c().x(n).y(r)},l.defined=function(f){return arguments.length?(i=typeof f=="function"?f:ee(!!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}class j0{constructor(r,t){this._context=r,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(r,t){switch(r=+r,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(r,t):this._context.moveTo(r,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+r)/2,this._y0,this._x0,t,r,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,r,this._y0,r,t);break}}this._x0=r,this._y0=t}}function qO(e){return new j0(e,!0)}function LO(e){return new j0(e,!1)}const tf={draw(e,r){const t=ir(r/xi);e.moveTo(t,0),e.arc(0,0,t,0,ha)}},BO={draw(e,r){const t=ir(r/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},N0=ir(1/3),zO=N0*2,FO={draw(e,r){const t=ir(r/zO),n=t*N0;e.moveTo(0,-t),e.lineTo(n,0),e.lineTo(0,t),e.lineTo(-n,0),e.closePath()}},UO={draw(e,r){const t=ir(r),n=-t/2;e.rect(n,n,t,t)}},KO=.8908130915292852,k0=bi(xi/10)/bi(7*xi/10),HO=bi(ha/10)*k0,WO=-A0(ha/10)*k0,GO={draw(e,r){const t=ir(r*KO),n=HO*t,i=WO*t;e.moveTo(0,-t),e.lineTo(n,i);for(let a=1;a<5;++a){const o=ha*a/5,u=A0(o),s=bi(o);e.lineTo(s*t,-u*t),e.lineTo(u*n-s*i,s*n+u*i)}e.closePath()}},lu=ir(3),YO={draw(e,r){const t=-ir(r/(lu*3));e.moveTo(0,t*2),e.lineTo(-lu*t,-t),e.lineTo(lu*t,-t),e.closePath()}},Ue=-.5,Ke=ir(3)/2,tc=1/ir(12),VO=(tc/2+1)*3,XO={draw(e,r){const t=ir(r/VO),n=t/2,i=t*tc,a=n,o=t*tc+t,u=-a,s=o;e.moveTo(n,i),e.lineTo(a,o),e.lineTo(u,s),e.lineTo(Ue*n-Ke*i,Ke*n+Ue*i),e.lineTo(Ue*a-Ke*o,Ke*a+Ue*o),e.lineTo(Ue*u-Ke*s,Ke*u+Ue*s),e.lineTo(Ue*n+Ke*i,Ue*i-Ke*n),e.lineTo(Ue*a+Ke*o,Ue*o-Ke*a),e.lineTo(Ue*u+Ke*s,Ue*s-Ke*u),e.closePath()}};function ZO(e,r){let t=null,n=ef(i);e=typeof e=="function"?e:ee(e||tf),r=typeof r=="function"?r:ee(r===void 0?64:+r);function i(){let a;if(t||(t=a=n()),e.apply(this,arguments).draw(t,+r.apply(this,arguments)),a)return t=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:ee(a),i):e},i.size=function(a){return arguments.length?(r=typeof a=="function"?a:ee(+a),i):r},i.context=function(a){return arguments.length?(t=a??null,i):t},i}function wi(){}function _i(e,r,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+r)/6,(e._y0+4*e._y1+t)/6)}function D0(e){this._context=e}D0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:_i(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:_i(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function JO(e){return new D0(e)}function R0(e){this._context=e}R0.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._x2=e,this._y2=r;break;case 1:this._point=2,this._x3=e,this._y3=r;break;case 2:this._point=3,this._x4=e,this._y4=r,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+r)/6);break;default:_i(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function QO(e){return new R0(e)}function $0(e){this._context=e}$0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+r)/6;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 3:this._point=4;default:_i(this,e,r);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r}};function eP(e){return new $0(e)}function q0(e){this._context=e}q0.prototype={areaStart:wi,areaEnd:wi,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,r){e=+e,r=+r,this._point?this._context.lineTo(e,r):(this._point=1,this._context.moveTo(e,r))}};function rP(e){return new q0(e)}function Rv(e){return e<0?-1:1}function $v(e,r,t){var n=e._x1-e._x0,i=r-e._x1,a=(e._y1-e._y0)/(n||i<0&&-0),o=(t-e._y1)/(i||n<0&&-0),u=(a*i+o*n)/(n+i);return(Rv(a)+Rv(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(u))||0}function qv(e,r){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-r)/2:r}function cu(e,r,t){var n=e._x0,i=e._y0,a=e._x1,o=e._y1,u=(a-n)/3;e._context.bezierCurveTo(n+u,i+u*r,a-u,o-u*t,a,o)}function Oi(e){this._context=e}Oi.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:cu(this,this._t0,qv(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,r){var t=NaN;if(e=+e,r=+r,!(e===this._x1&&r===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;break;case 2:this._point=3,cu(this,qv(this,t=$v(this,e,r)),t);break;default:cu(this,this._t0,t=$v(this,e,r));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=r,this._t0=t}}};function L0(e){this._context=new B0(e)}(L0.prototype=Object.create(Oi.prototype)).point=function(e,r){Oi.prototype.point.call(this,r,e)};function B0(e){this._context=e}B0.prototype={moveTo:function(e,r){this._context.moveTo(r,e)},closePath:function(){this._context.closePath()},lineTo:function(e,r){this._context.lineTo(r,e)},bezierCurveTo:function(e,r,t,n,i,a){this._context.bezierCurveTo(r,e,n,t,a,i)}};function tP(e){return new Oi(e)}function nP(e){return new L0(e)}function z0(e){this._context=e}z0.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,r=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],r[0]):this._context.moveTo(e[0],r[0]),t===2)this._context.lineTo(e[1],r[1]);else for(var n=Lv(e),i=Lv(r),a=0,o=1;o<t;++a,++o)this._context.bezierCurveTo(n[0][a],i[0][a],n[1][a],i[1][a],e[o],r[o]);(this._line||this._line!==0&&t===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,r){this._x.push(+e),this._y.push(+r)}};function Lv(e){var r,t=e.length-1,n,i=new Array(t),a=new Array(t),o=new Array(t);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],r=1;r<t-1;++r)i[r]=1,a[r]=4,o[r]=4*e[r]+2*e[r+1];for(i[t-1]=2,a[t-1]=7,o[t-1]=8*e[t-1]+e[t],r=1;r<t;++r)n=i[r]/a[r-1],a[r]-=n,o[r]-=n*o[r-1];for(i[t-1]=o[t-1]/a[t-1],r=t-2;r>=0;--r)i[r]=(o[r]-i[r+1])/a[r];for(a[t-1]=(e[t]+i[t-1])/2,r=0;r<t-1;++r)a[r]=2*e[r+1]-i[r+1];return[i,a]}function iP(e){return new z0(e)}function ma(e,r){this._context=e,this._t=r}ma.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,r){switch(e=+e,r=+r,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,r),this._context.lineTo(e,r);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,r)}break}}this._x=e,this._y=r}};function aP(e){return new ma(e,.5)}function oP(e){return new ma(e,0)}function uP(e){return new ma(e,1)}function nt(e,r){if((o=e.length)>1)for(var t=1,n,i,a=e[r[0]],o,u=a.length;t<o;++t)for(i=a,a=e[r[t]],n=0;n<u;++n)a[n][1]+=a[n][0]=isNaN(i[n][1])?i[n][0]:i[n][1]}function nc(e){for(var r=e.length,t=new Array(r);--r>=0;)t[r]=r;return t}function sP(e,r){return e[r]}function lP(e){const r=[];return r.key=e,r}function cP(){var e=ee([]),r=nc,t=nt,n=sP;function i(a){var o=Array.from(e.apply(this,arguments),lP),u,s=o.length,l=-1,c;for(const f of a)for(u=0,++l;u<s;++u)(o[u][l]=[0,+n(f,o[u].key,l,a)]).data=f;for(u=0,c=rf(r(o));u<s;++u)o[c[u]].index=u;return t(o,c),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:ee(Array.from(a)),i):e},i.value=function(a){return arguments.length?(n=typeof a=="function"?a:ee(+a),i):n},i.order=function(a){return arguments.length?(r=a==null?nc:typeof a=="function"?a:ee(Array.from(a)),i):r},i.offset=function(a){return arguments.length?(t=a??nt,i):t},i}function fP(e,r){if((n=e.length)>0){for(var t,n,i=0,a=e[0].length,o;i<a;++i){for(o=t=0;t<n;++t)o+=e[t][i][1]||0;if(o)for(t=0;t<n;++t)e[t][i][1]/=o}nt(e,r)}}function dP(e,r){if((i=e.length)>0){for(var t=0,n=e[r[0]],i,a=n.length;t<a;++t){for(var o=0,u=0;o<i;++o)u+=e[o][t][1]||0;n[t][1]+=n[t][0]=-u/2}nt(e,r)}}function vP(e,r){if(!(!((o=e.length)>0)||!((a=(i=e[r[0]]).length)>0))){for(var t=0,n=1,i,a,o;n<a;++n){for(var u=0,s=0,l=0;u<o;++u){for(var c=e[r[u]],f=c[n][1]||0,d=c[n-1][1]||0,v=(f-d)/2,h=0;h<u;++h){var p=e[r[h]],m=p[n][1]||0,g=p[n-1][1]||0;v+=m-g}s+=f,l+=v*f}i[n-1][1]+=i[n-1][0]=t,s&&(t-=l/s)}i[n-1][1]+=i[n-1][0]=t,nt(e,r)}}var fu,Bv;function hP(){if(Bv)return fu;Bv=1;var e=fa();function r(){this.__data__=new e,this.size=0}return fu=r,fu}var du,zv;function pP(){if(zv)return du;zv=1;function e(r){var t=this.__data__,n=t.delete(r);return this.size=t.size,n}return du=e,du}var vu,Fv;function mP(){if(Fv)return vu;Fv=1;function e(r){return this.__data__.get(r)}return vu=e,vu}var hu,Uv;function yP(){if(Uv)return hu;Uv=1;function e(r){return this.__data__.has(r)}return hu=e,hu}var pu,Kv;function gP(){if(Kv)return pu;Kv=1;var e=fa(),r=Zc(),t=Jc(),n=200;function i(a,o){var u=this.__data__;if(u instanceof e){var s=u.__data__;if(!r||s.length<n-1)return s.push([a,o]),this.size=++u.size,this;u=this.__data__=new t(s)}return u.set(a,o),this.size=u.size,this}return pu=i,pu}var mu,Hv;function F0(){if(Hv)return mu;Hv=1;var e=fa(),r=hP(),t=pP(),n=mP(),i=yP(),a=gP();function o(u){var s=this.__data__=new e(u);this.size=s.size}return o.prototype.clear=r,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=i,o.prototype.set=a,mu=o,mu}var yu,Wv;function bP(){if(Wv)return yu;Wv=1;var e="__lodash_hash_undefined__";function r(t){return this.__data__.set(t,e),this}return yu=r,yu}var gu,Gv;function xP(){if(Gv)return gu;Gv=1;function e(r){return this.__data__.has(r)}return gu=e,gu}var bu,Yv;function U0(){if(Yv)return bu;Yv=1;var e=Jc(),r=bP(),t=xP();function n(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return n.prototype.add=n.prototype.push=r,n.prototype.has=t,bu=n,bu}var xu,Vv;function wP(){if(Vv)return xu;Vv=1;function e(r,t){for(var n=-1,i=r==null?0:r.length;++n<i;)if(t(r[n],n,r))return!0;return!1}return xu=e,xu}var wu,Xv;function K0(){if(Xv)return wu;Xv=1;function e(r,t){return r.has(t)}return wu=e,wu}var _u,Zv;function H0(){if(Zv)return _u;Zv=1;var e=U0(),r=wP(),t=K0(),n=1,i=2;function a(o,u,s,l,c,f){var d=s&n,v=o.length,h=u.length;if(v!=h&&!(d&&h>v))return!1;var p=f.get(o),m=f.get(u);if(p&&m)return p==u&&m==o;var g=-1,b=!0,x=s&i?new e:void 0;for(f.set(o,u),f.set(u,o);++g<v;){var _=o[g],w=u[g];if(l)var O=d?l(w,_,g,u,o,f):l(_,w,g,o,u,f);if(O!==void 0){if(O)continue;b=!1;break}if(x){if(!r(u,function(P,E){if(!t(x,E)&&(_===P||c(_,P,s,l,f)))return x.push(E)})){b=!1;break}}else if(!(_===w||c(_,w,s,l,f))){b=!1;break}}return f.delete(o),f.delete(u),b}return _u=a,_u}var Ou,Jv;function _P(){if(Jv)return Ou;Jv=1;var e=mr(),r=e.Uint8Array;return Ou=r,Ou}var Pu,Qv;function OP(){if(Qv)return Pu;Qv=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i,a){n[++t]=[a,i]}),n}return Pu=e,Pu}var Su,eh;function nf(){if(eh)return Su;eh=1;function e(r){var t=-1,n=Array(r.size);return r.forEach(function(i){n[++t]=i}),n}return Su=e,Su}var Au,rh;function PP(){if(rh)return Au;rh=1;var e=Pn(),r=_P(),t=Xc(),n=H0(),i=OP(),a=nf(),o=1,u=2,s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Map]",d="[object Number]",v="[object RegExp]",h="[object Set]",p="[object String]",m="[object Symbol]",g="[object ArrayBuffer]",b="[object DataView]",x=e?e.prototype:void 0,_=x?x.valueOf:void 0;function w(O,P,E,N,D,A,j){switch(E){case b:if(O.byteLength!=P.byteLength||O.byteOffset!=P.byteOffset)return!1;O=O.buffer,P=P.buffer;case g:return!(O.byteLength!=P.byteLength||!A(new r(O),new r(P)));case s:case l:case d:return t(+O,+P);case c:return O.name==P.name&&O.message==P.message;case v:case p:return O==P+"";case f:var M=i;case h:var k=N&o;if(M||(M=a),O.size!=P.size&&!k)return!1;var $=j.get(O);if($)return $==P;N|=u,j.set(O,P);var L=n(M(O),M(P),N,D,A,j);return j.delete(O),L;case m:if(_)return _.call(O)==_.call(P)}return!1}return Au=w,Au}var Cu,th;function W0(){if(th)return Cu;th=1;function e(r,t){for(var n=-1,i=t.length,a=r.length;++n<i;)r[a+n]=t[n];return r}return Cu=e,Cu}var Eu,nh;function SP(){if(nh)return Eu;nh=1;var e=W0(),r=nr();function t(n,i,a){var o=i(n);return r(n)?o:e(o,a(n))}return Eu=t,Eu}var Tu,ih;function AP(){if(ih)return Tu;ih=1;function e(r,t){for(var n=-1,i=r==null?0:r.length,a=0,o=[];++n<i;){var u=r[n];t(u,n,r)&&(o[a++]=u)}return o}return Tu=e,Tu}var Iu,ah;function CP(){if(ah)return Iu;ah=1;function e(){return[]}return Iu=e,Iu}var Mu,oh;function EP(){if(oh)return Mu;oh=1;var e=AP(),r=CP(),t=Object.prototype,n=t.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(u){return n.call(o,u)}))}:r;return Mu=a,Mu}var ju,uh;function TP(){if(uh)return ju;uh=1;function e(r,t){for(var n=-1,i=Array(r);++n<r;)i[n]=t(n);return i}return ju=e,ju}var Nu,sh;function IP(){if(sh)return Nu;sh=1;var e=lt(),r=ct(),t="[object Arguments]";function n(i){return r(i)&&e(i)==t}return Nu=n,Nu}var ku,lh;function af(){if(lh)return ku;lh=1;var e=IP(),r=ct(),t=Object.prototype,n=t.hasOwnProperty,i=t.propertyIsEnumerable,a=e((function(){return arguments})())?e:function(o){return r(o)&&n.call(o,"callee")&&!i.call(o,"callee")};return ku=a,ku}var Qt={exports:{}},Du,ch;function MP(){if(ch)return Du;ch=1;function e(){return!1}return Du=e,Du}Qt.exports;var fh;function G0(){return fh||(fh=1,(function(e,r){var t=mr(),n=MP(),i=r&&!r.nodeType&&r,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,u=o?t.Buffer:void 0,s=u?u.isBuffer:void 0,l=s||n;e.exports=l})(Qt,Qt.exports)),Qt.exports}var Ru,dh;function of(){if(dh)return Ru;dh=1;var e=9007199254740991,r=/^(?:0|[1-9]\d*)$/;function t(n,i){var a=typeof n;return i=i??e,!!i&&(a=="number"||a!="symbol"&&r.test(n))&&n>-1&&n%1==0&&n<i}return Ru=t,Ru}var $u,vh;function uf(){if(vh)return $u;vh=1;var e=9007199254740991;function r(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=e}return $u=r,$u}var qu,hh;function jP(){if(hh)return qu;hh=1;var e=lt(),r=uf(),t=ct(),n="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",u="[object Error]",s="[object Function]",l="[object Map]",c="[object Number]",f="[object Object]",d="[object RegExp]",v="[object Set]",h="[object String]",p="[object WeakMap]",m="[object ArrayBuffer]",g="[object DataView]",b="[object Float32Array]",x="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",O="[object Int32Array]",P="[object Uint8Array]",E="[object Uint8ClampedArray]",N="[object Uint16Array]",D="[object Uint32Array]",A={};A[b]=A[x]=A[_]=A[w]=A[O]=A[P]=A[E]=A[N]=A[D]=!0,A[n]=A[i]=A[m]=A[a]=A[g]=A[o]=A[u]=A[s]=A[l]=A[c]=A[f]=A[d]=A[v]=A[h]=A[p]=!1;function j(M){return t(M)&&r(M.length)&&!!A[e(M)]}return qu=j,qu}var Lu,ph;function Y0(){if(ph)return Lu;ph=1;function e(r){return function(t){return r(t)}}return Lu=e,Lu}var en={exports:{}};en.exports;var mh;function NP(){return mh||(mh=1,(function(e,r){var t=b0(),n=r&&!r.nodeType&&r,i=n&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===n,o=a&&t.process,u=(function(){try{var s=i&&i.require&&i.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}})();e.exports=u})(en,en.exports)),en.exports}var Bu,yh;function V0(){if(yh)return Bu;yh=1;var e=jP(),r=Y0(),t=NP(),n=t&&t.isTypedArray,i=n?r(n):e;return Bu=i,Bu}var zu,gh;function kP(){if(gh)return zu;gh=1;var e=TP(),r=af(),t=nr(),n=G0(),i=of(),a=V0(),o=Object.prototype,u=o.hasOwnProperty;function s(l,c){var f=t(l),d=!f&&r(l),v=!f&&!d&&n(l),h=!f&&!d&&!v&&a(l),p=f||d||v||h,m=p?e(l.length,String):[],g=m.length;for(var b in l)(c||u.call(l,b))&&!(p&&(b=="length"||v&&(b=="offset"||b=="parent")||h&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,g)))&&m.push(b);return m}return zu=s,zu}var Fu,bh;function DP(){if(bh)return Fu;bh=1;var e=Object.prototype;function r(t){var n=t&&t.constructor,i=typeof n=="function"&&n.prototype||e;return t===i}return Fu=r,Fu}var Uu,xh;function RP(){if(xh)return Uu;xh=1;function e(r,t){return function(n){return r(t(n))}}return Uu=e,Uu}var Ku,wh;function $P(){if(wh)return Ku;wh=1;var e=RP(),r=e(Object.keys,Object);return Ku=r,Ku}var Hu,_h;function qP(){if(_h)return Hu;_h=1;var e=DP(),r=$P(),t=Object.prototype,n=t.hasOwnProperty;function i(a){if(!e(a))return r(a);var o=[];for(var u in Object(a))n.call(a,u)&&u!="constructor"&&o.push(u);return o}return Hu=i,Hu}var Wu,Oh;function ya(){if(Oh)return Wu;Oh=1;var e=Vc(),r=uf();function t(n){return n!=null&&r(n.length)&&!e(n)}return Wu=t,Wu}var Gu,Ph;function sf(){if(Ph)return Gu;Ph=1;var e=kP(),r=qP(),t=ya();function n(i){return t(i)?e(i):r(i)}return Gu=n,Gu}var Yu,Sh;function LP(){if(Sh)return Yu;Sh=1;var e=SP(),r=EP(),t=sf();function n(i){return e(i,t,r)}return Yu=n,Yu}var Vu,Ah;function BP(){if(Ah)return Vu;Ah=1;var e=LP(),r=1,t=Object.prototype,n=t.hasOwnProperty;function i(a,o,u,s,l,c){var f=u&r,d=e(a),v=d.length,h=e(o),p=h.length;if(v!=p&&!f)return!1;for(var m=v;m--;){var g=d[m];if(!(f?g in o:n.call(o,g)))return!1}var b=c.get(a),x=c.get(o);if(b&&x)return b==o&&x==a;var _=!0;c.set(a,o),c.set(o,a);for(var w=f;++m<v;){g=d[m];var O=a[g],P=o[g];if(s)var E=f?s(P,O,g,o,a,c):s(O,P,g,a,o,c);if(!(E===void 0?O===P||l(O,P,u,s,c):E)){_=!1;break}w||(w=g=="constructor")}if(_&&!w){var N=a.constructor,D=o.constructor;N!=D&&"constructor"in a&&"constructor"in o&&!(typeof N=="function"&&N instanceof N&&typeof D=="function"&&D instanceof D)&&(_=!1)}return c.delete(a),c.delete(o),_}return Vu=i,Vu}var Xu,Ch;function zP(){if(Ch)return Xu;Ch=1;var e=ft(),r=mr(),t=e(r,"DataView");return Xu=t,Xu}var Zu,Eh;function FP(){if(Eh)return Zu;Eh=1;var e=ft(),r=mr(),t=e(r,"Promise");return Zu=t,Zu}var Ju,Th;function X0(){if(Th)return Ju;Th=1;var e=ft(),r=mr(),t=e(r,"Set");return Ju=t,Ju}var Qu,Ih;function UP(){if(Ih)return Qu;Ih=1;var e=ft(),r=mr(),t=e(r,"WeakMap");return Qu=t,Qu}var es,Mh;function KP(){if(Mh)return es;Mh=1;var e=zP(),r=Zc(),t=FP(),n=X0(),i=UP(),a=lt(),o=x0(),u="[object Map]",s="[object Object]",l="[object Promise]",c="[object Set]",f="[object WeakMap]",d="[object DataView]",v=o(e),h=o(r),p=o(t),m=o(n),g=o(i),b=a;return(e&&b(new e(new ArrayBuffer(1)))!=d||r&&b(new r)!=u||t&&b(t.resolve())!=l||n&&b(new n)!=c||i&&b(new i)!=f)&&(b=function(x){var _=a(x),w=_==s?x.constructor:void 0,O=w?o(w):"";if(O)switch(O){case v:return d;case h:return u;case p:return l;case m:return c;case g:return f}return _}),es=b,es}var rs,jh;function HP(){if(jh)return rs;jh=1;var e=F0(),r=H0(),t=PP(),n=BP(),i=KP(),a=nr(),o=G0(),u=V0(),s=1,l="[object Arguments]",c="[object Array]",f="[object Object]",d=Object.prototype,v=d.hasOwnProperty;function h(p,m,g,b,x,_){var w=a(p),O=a(m),P=w?c:i(p),E=O?c:i(m);P=P==l?f:P,E=E==l?f:E;var N=P==f,D=E==f,A=P==E;if(A&&o(p)){if(!o(m))return!1;w=!0,N=!1}if(A&&!N)return _||(_=new e),w||u(p)?r(p,m,g,b,x,_):t(p,m,P,g,b,x,_);if(!(g&s)){var j=N&&v.call(p,"__wrapped__"),M=D&&v.call(m,"__wrapped__");if(j||M){var k=j?p.value():p,$=M?m.value():m;return _||(_=new e),x(k,$,g,b,_)}}return A?(_||(_=new e),n(p,m,g,b,x,_)):!1}return rs=h,rs}var ts,Nh;function Z0(){if(Nh)return ts;Nh=1;var e=HP(),r=ct();function t(n,i,a,o,u){return n===i?!0:n==null||i==null||!r(n)&&!r(i)?n!==n&&i!==i:e(n,i,a,o,t,u)}return ts=t,ts}var ns,kh;function WP(){if(kh)return ns;kh=1;var e=F0(),r=Z0(),t=1,n=2;function i(a,o,u,s){var l=u.length,c=l,f=!s;if(a==null)return!c;for(a=Object(a);l--;){var d=u[l];if(f&&d[2]?d[1]!==a[d[0]]:!(d[0]in a))return!1}for(;++l<c;){d=u[l];var v=d[0],h=a[v],p=d[1];if(f&&d[2]){if(h===void 0&&!(v in a))return!1}else{var m=new e;if(s)var g=s(h,p,v,a,o,m);if(!(g===void 0?r(p,h,t|n,s,m):g))return!1}}return!0}return ns=i,ns}var is,Dh;function J0(){if(Dh)return is;Dh=1;var e=Fr();function r(t){return t===t&&!e(t)}return is=r,is}var as,Rh;function GP(){if(Rh)return as;Rh=1;var e=J0(),r=sf();function t(n){for(var i=r(n),a=i.length;a--;){var o=i[a],u=n[o];i[a]=[o,u,e(u)]}return i}return as=t,as}var os,$h;function Q0(){if($h)return os;$h=1;function e(r,t){return function(n){return n==null?!1:n[r]===t&&(t!==void 0||r in Object(n))}}return os=e,os}var us,qh;function YP(){if(qh)return us;qh=1;var e=WP(),r=GP(),t=Q0();function n(i){var a=r(i);return a.length==1&&a[0][2]?t(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return us=n,us}var ss,Lh;function VP(){if(Lh)return ss;Lh=1;function e(r,t){return r!=null&&t in Object(r)}return ss=e,ss}var ls,Bh;function XP(){if(Bh)return ls;Bh=1;var e=_0(),r=af(),t=nr(),n=of(),i=uf(),a=va();function o(u,s,l){s=e(s,u);for(var c=-1,f=s.length,d=!1;++c<f;){var v=a(s[c]);if(!(d=u!=null&&l(u,v)))break;u=u[v]}return d||++c!=f?d:(f=u==null?0:u.length,!!f&&i(f)&&n(v,f)&&(t(u)||r(u)))}return ls=o,ls}var cs,zh;function ZP(){if(zh)return cs;zh=1;var e=VP(),r=XP();function t(n,i){return n!=null&&r(n,i,e)}return cs=t,cs}var fs,Fh;function JP(){if(Fh)return fs;Fh=1;var e=Z0(),r=O0(),t=ZP(),n=Yc(),i=J0(),a=Q0(),o=va(),u=1,s=2;function l(c,f){return n(c)&&i(f)?a(o(c),f):function(d){var v=r(d,c);return v===void 0&&v===f?t(d,c):e(f,v,u|s)}}return fs=l,fs}var ds,Uh;function ga(){if(Uh)return ds;Uh=1;function e(r){return r}return ds=e,ds}var vs,Kh;function QP(){if(Kh)return vs;Kh=1;function e(r){return function(t){return t?.[r]}}return vs=e,vs}var hs,Hh;function eS(){if(Hh)return hs;Hh=1;var e=Qc();function r(t){return function(n){return e(n,t)}}return hs=r,hs}var ps,Wh;function rS(){if(Wh)return ps;Wh=1;var e=QP(),r=eS(),t=Yc(),n=va();function i(a){return t(a)?e(n(a)):r(a)}return ps=i,ps}var ms,Gh;function eb(){if(Gh)return ms;Gh=1;var e=YP(),r=JP(),t=ga(),n=nr(),i=rS();function a(o){return typeof o=="function"?o:o==null?t:typeof o=="object"?n(o)?r(o[0],o[1]):e(o):i(o)}return ms=a,ms}var ys,Yh;function tS(){if(Yh)return ys;Yh=1;function e(r,t,n,i){for(var a=r.length,o=n+(i?1:-1);i?o--:++o<a;)if(t(r[o],o,r))return o;return-1}return ys=e,ys}var gs,Vh;function nS(){if(Vh)return gs;Vh=1;function e(r){return r!==r}return gs=e,gs}var bs,Xh;function iS(){if(Xh)return bs;Xh=1;function e(r,t,n){for(var i=n-1,a=r.length;++i<a;)if(r[i]===t)return i;return-1}return bs=e,bs}var xs,Zh;function aS(){if(Zh)return xs;Zh=1;var e=tS(),r=nS(),t=iS();function n(i,a,o){return a===a?t(i,a,o):e(i,r,o)}return xs=n,xs}var ws,Jh;function oS(){if(Jh)return ws;Jh=1;var e=aS();function r(t,n){var i=t==null?0:t.length;return!!i&&e(t,n,0)>-1}return ws=r,ws}var _s,Qh;function uS(){if(Qh)return _s;Qh=1;function e(r,t,n){for(var i=-1,a=r==null?0:r.length;++i<a;)if(n(t,r[i]))return!0;return!1}return _s=e,_s}var Os,ep;function sS(){if(ep)return Os;ep=1;function e(){}return Os=e,Os}var Ps,rp;function lS(){if(rp)return Ps;rp=1;var e=X0(),r=sS(),t=nf(),n=1/0,i=e&&1/t(new e([,-0]))[1]==n?function(a){return new e(a)}:r;return Ps=i,Ps}var Ss,tp;function cS(){if(tp)return Ss;tp=1;var e=U0(),r=oS(),t=uS(),n=K0(),i=lS(),a=nf(),o=200;function u(s,l,c){var f=-1,d=r,v=s.length,h=!0,p=[],m=p;if(c)h=!1,d=t;else if(v>=o){var g=l?null:i(s);if(g)return a(g);h=!1,d=n,m=new e}else m=l?[]:p;e:for(;++f<v;){var b=s[f],x=l?l(b):b;if(b=c||b!==0?b:0,h&&x===x){for(var _=m.length;_--;)if(m[_]===x)continue e;l&&m.push(x),p.push(b)}else d(m,x,c)||(m!==p&&m.push(x),p.push(b))}return p}return Ss=u,Ss}var As,np;function fS(){if(np)return As;np=1;var e=eb(),r=cS();function t(n,i){return n&&n.length?r(n,e(i,2)):[]}return As=t,As}var dS=fS();const ip=Ne(dS);function vS(e,r,t){return r===!0?ip(e,t):EO(r)?ip(e,r):e}var Cs,ap;function hS(){if(ap)return Cs;ap=1;var e=Pn(),r=af(),t=nr(),n=e?e.isConcatSpreadable:void 0;function i(a){return t(a)||r(a)||!!(n&&a&&a[n])}return Cs=i,Cs}var Es,op;function pS(){if(op)return Es;op=1;var e=W0(),r=hS();function t(n,i,a,o,u){var s=-1,l=n.length;for(a||(a=r),u||(u=[]);++s<l;){var c=n[s];i>0&&a(c)?i>1?t(c,i-1,a,o,u):e(u,c):o||(u[u.length]=c)}return u}return Es=t,Es}var Ts,up;function mS(){if(up)return Ts;up=1;function e(r){return function(t,n,i){for(var a=-1,o=Object(t),u=i(t),s=u.length;s--;){var l=u[r?s:++a];if(n(o[l],l,o)===!1)break}return t}}return Ts=e,Ts}var Is,sp;function yS(){if(sp)return Is;sp=1;var e=mS(),r=e();return Is=r,Is}var Ms,lp;function gS(){if(lp)return Ms;lp=1;var e=yS(),r=sf();function t(n,i){return n&&e(n,i,r)}return Ms=t,Ms}var js,cp;function bS(){if(cp)return js;cp=1;var e=ya();function r(t,n){return function(i,a){if(i==null)return i;if(!e(i))return t(i,a);for(var o=i.length,u=n?o:-1,s=Object(i);(n?u--:++u<o)&&a(s[u],u,s)!==!1;);return i}}return js=r,js}var Ns,fp;function xS(){if(fp)return Ns;fp=1;var e=gS(),r=bS(),t=r(e);return Ns=t,Ns}var ks,dp;function wS(){if(dp)return ks;dp=1;var e=xS(),r=ya();function t(n,i){var a=-1,o=r(n)?Array(n.length):[];return e(n,function(u,s,l){o[++a]=i(u,s,l)}),o}return ks=t,ks}var Ds,vp;function _S(){if(vp)return Ds;vp=1;function e(r,t){var n=r.length;for(r.sort(t);n--;)r[n]=r[n].value;return r}return Ds=e,Ds}var Rs,hp;function OS(){if(hp)return Rs;hp=1;var e=Sn();function r(t,n){if(t!==n){var i=t!==void 0,a=t===null,o=t===t,u=e(t),s=n!==void 0,l=n===null,c=n===n,f=e(n);if(!l&&!f&&!u&&t>n||u&&s&&c&&!l&&!f||a&&s&&c||!i&&c||!o)return 1;if(!a&&!u&&!f&&t<n||f&&i&&o&&!a&&!u||l&&i&&o||!s&&o||!c)return-1}return 0}return Rs=r,Rs}var $s,pp;function PS(){if(pp)return $s;pp=1;var e=OS();function r(t,n,i){for(var a=-1,o=t.criteria,u=n.criteria,s=o.length,l=i.length;++a<s;){var c=e(o[a],u[a]);if(c){if(a>=l)return c;var f=i[a];return c*(f=="desc"?-1:1)}}return t.index-n.index}return $s=r,$s}var qs,mp;function SS(){if(mp)return qs;mp=1;var e=w0(),r=Qc(),t=eb(),n=wS(),i=_S(),a=Y0(),o=PS(),u=ga(),s=nr();function l(c,f,d){f.length?f=e(f,function(p){return s(p)?function(m){return r(m,p.length===1?p[0]:p)}:p}):f=[u];var v=-1;f=e(f,a(t));var h=n(c,function(p,m,g){var b=e(f,function(x){return x(p)});return{criteria:b,index:++v,value:p}});return i(h,function(p,m){return o(p,m,d)})}return qs=l,qs}var Ls,yp;function AS(){if(yp)return Ls;yp=1;function e(r,t,n){switch(n.length){case 0:return r.call(t);case 1:return r.call(t,n[0]);case 2:return r.call(t,n[0],n[1]);case 3:return r.call(t,n[0],n[1],n[2])}return r.apply(t,n)}return Ls=e,Ls}var Bs,gp;function CS(){if(gp)return Bs;gp=1;var e=AS(),r=Math.max;function t(n,i,a){return i=r(i===void 0?n.length-1:i,0),function(){for(var o=arguments,u=-1,s=r(o.length-i,0),l=Array(s);++u<s;)l[u]=o[i+u];u=-1;for(var c=Array(i+1);++u<i;)c[u]=o[u];return c[i]=a(l),e(n,this,c)}}return Bs=t,Bs}var zs,bp;function ES(){if(bp)return zs;bp=1;function e(r){return function(){return r}}return zs=e,zs}var Fs,xp;function TS(){if(xp)return Fs;xp=1;var e=ft(),r=(function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch{}})();return Fs=r,Fs}var Us,wp;function IS(){if(wp)return Us;wp=1;var e=ES(),r=TS(),t=ga(),n=r?function(i,a){return r(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:t;return Us=n,Us}var Ks,_p;function MS(){if(_p)return Ks;_p=1;var e=800,r=16,t=Date.now;function n(i){var a=0,o=0;return function(){var u=t(),s=r-(u-o);if(o=u,s>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return Ks=n,Ks}var Hs,Op;function jS(){if(Op)return Hs;Op=1;var e=IS(),r=MS(),t=r(e);return Hs=t,Hs}var Ws,Pp;function NS(){if(Pp)return Ws;Pp=1;var e=ga(),r=CS(),t=jS();function n(i,a){return t(r(i,a,e),i+"")}return Ws=n,Ws}var Gs,Sp;function kS(){if(Sp)return Gs;Sp=1;var e=Xc(),r=ya(),t=of(),n=Fr();function i(a,o,u){if(!n(u))return!1;var s=typeof o;return(s=="number"?r(u)&&t(o,u.length):s=="string"&&o in u)?e(u[o],a):!1}return Gs=i,Gs}var Ys,Ap;function DS(){if(Ap)return Ys;Ap=1;var e=pS(),r=SS(),t=NS(),n=kS(),i=t(function(a,o){if(a==null)return[];var u=o.length;return u>1&&n(a,o[0],o[1])?o=[]:u>2&&n(o[0],o[1],o[2])&&(o=[o[0]]),r(a,e(o,1),[])});return Ys=i,Ys}var RS=DS();const $S=Ne(RS);function un(e){"@babel/helpers - typeof";return un=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},un(e)}function ic(){return ic=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},ic.apply(this,arguments)}function qS(e,r){return FS(e)||zS(e,r)||BS(e,r)||LS()}function LS(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BS(e,r){if(e){if(typeof e=="string")return Cp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Cp(e,r)}}function Cp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function zS(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(t=t.call(e)).next,r!==0)for(;!(s=(n=a.call(t)).done)&&(u.push(n.value),u.length!==r);s=!0);}catch(c){l=!0,i=c}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function FS(e){if(Array.isArray(e))return e}function Ep(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Vs(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ep(Object(t),!0).forEach(function(n){US(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ep(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function US(e,r,t){return r=KS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function KS(e){var r=HS(e,"string");return un(r)=="symbol"?r:r+""}function HS(e,r){if(un(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(un(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function WS(e){return Array.isArray(e)&&gi(e[0])&&gi(e[1])?e.join(" ~ "):e}var GS=function(r){var t=r.separator,n=t===void 0?" : ":t,i=r.contentStyle,a=i===void 0?{}:i,o=r.itemStyle,u=o===void 0?{}:o,s=r.labelStyle,l=s===void 0?{}:s,c=r.payload,f=r.formatter,d=r.itemSorter,v=r.wrapperClassName,h=r.labelClassName,p=r.label,m=r.labelFormatter,g=r.accessibilityLayer,b=g===void 0?!1:g,x=function(){if(c&&c.length){var j={padding:0,margin:0},M=(d?$S(c,d):c).map(function(k,$){if(k.type==="none")return null;var L=Vs({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},u),q=k.formatter||f||WS,z=k.value,U=k.name,G=z,Y=U;if(q&&G!=null&&Y!=null){var Q=q(z,U,k,$,c);if(Array.isArray(Q)){var be=qS(Q,2);G=be[0],Y=be[1]}else G=Q}return he.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:L},gi(Y)?he.createElement("span",{className:"recharts-tooltip-item-name"},Y):null,gi(Y)?he.createElement("span",{className:"recharts-tooltip-item-separator"},n):null,he.createElement("span",{className:"recharts-tooltip-item-value"},G),he.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return he.createElement("ul",{className:"recharts-tooltip-item-list",style:j},M)}return null},_=Vs({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),w=Vs({margin:0},l),O=!PO(p),P=O?p:"",E=Ae("recharts-default-tooltip",v),N=Ae("recharts-tooltip-label",h);O&&m&&c!==void 0&&c!==null&&(P=m(p,c));var D=b?{role:"status","aria-live":"assertive"}:{};return he.createElement("div",ic({className:E,style:_},D),he.createElement("p",{className:N,style:w},he.isValidElement(P)?P:"".concat(P)),x())};function sn(e){"@babel/helpers - typeof";return sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},sn(e)}function Zn(e,r,t){return r=YS(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function YS(e){var r=VS(e,"string");return sn(r)=="symbol"?r:r+""}function VS(e,r){if(sn(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(sn(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}var Ht="recharts-tooltip-wrapper",XS={visibility:"hidden"};function ZS(e){var r=e.coordinate,t=e.translateX,n=e.translateY;return Ae(Ht,Zn(Zn(Zn(Zn({},"".concat(Ht,"-right"),fr(t)&&r&&fr(r.x)&&t>=r.x),"".concat(Ht,"-left"),fr(t)&&r&&fr(r.x)&&t<r.x),"".concat(Ht,"-bottom"),fr(n)&&r&&fr(r.y)&&n>=r.y),"".concat(Ht,"-top"),fr(n)&&r&&fr(r.y)&&n<r.y))}function Tp(e){var r=e.allowEscapeViewBox,t=e.coordinate,n=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,u=e.tooltipDimension,s=e.viewBox,l=e.viewBoxDimension;if(a&&fr(a[n]))return a[n];var c=t[n]-u-i,f=t[n]+i;if(r[n])return o[n]?c:f;if(o[n]){var d=c,v=s[n];return d<v?Math.max(f,s[n]):Math.max(c,s[n])}var h=f+u,p=s[n]+l;return h>p?Math.max(c,s[n]):Math.max(f,s[n])}function JS(e){var r=e.translateX,t=e.translateY,n=e.useTranslate3d;return{transform:n?"translate3d(".concat(r,"px, ").concat(t,"px, 0)"):"translate(".concat(r,"px, ").concat(t,"px)")}}function QS(e){var r=e.allowEscapeViewBox,t=e.coordinate,n=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,u=e.useTranslate3d,s=e.viewBox,l,c,f;return o.height>0&&o.width>0&&t?(c=Tp({allowEscapeViewBox:r,coordinate:t,key:"x",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=Tp({allowEscapeViewBox:r,coordinate:t,key:"y",offsetTopLeft:n,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),l=JS({translateX:c,translateY:f,useTranslate3d:u})):l=XS,{cssProperties:l,cssClasses:ZS({translateX:c,translateY:f,coordinate:t})}}function At(e){"@babel/helpers - typeof";return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},At(e)}function Ip(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Mp(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ip(Object(t),!0).forEach(function(n){oc(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ip(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function eA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function rA(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tb(n.key),n)}}function tA(e,r,t){return r&&rA(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function nA(e,r,t){return r=Pi(r),iA(e,rb()?Reflect.construct(r,t||[],Pi(e).constructor):r.apply(e,t))}function iA(e,r){if(r&&(At(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aA(e)}function aA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rb=function(){return!!e})()}function Pi(e){return Pi=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Pi(e)}function oA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&ac(e,r)}function ac(e,r){return ac=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},ac(e,r)}function oc(e,r,t){return r=tb(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function tb(e){var r=uA(e,"string");return At(r)=="symbol"?r:r+""}function uA(e,r){if(At(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(At(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jp=1,sA=(function(e){function r(){var t;eA(this,r);for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return t=nA(this,r,[].concat(i)),oc(t,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),oc(t,"handleKeyDown",function(o){if(o.key==="Escape"){var u,s,l,c;t.setState({dismissed:!0,dismissedAtCoordinate:{x:(u=(s=t.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&u!==void 0?u:0,y:(l=(c=t.props.coordinate)===null||c===void 0?void 0:c.y)!==null&&l!==void 0?l:0}})}}),t}return oA(r,e),tA(r,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var n=this.wrapperNode.getBoundingClientRect();(Math.abs(n.width-this.state.lastBoundingBox.width)>jp||Math.abs(n.height-this.state.lastBoundingBox.height)>jp)&&this.setState({lastBoundingBox:{width:n.width,height:n.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var n,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((n=this.props.coordinate)===null||n===void 0?void 0:n.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.children,c=i.coordinate,f=i.hasPayload,d=i.isAnimationActive,v=i.offset,h=i.position,p=i.reverseDirection,m=i.useTranslate3d,g=i.viewBox,b=i.wrapperStyle,x=QS({allowEscapeViewBox:o,coordinate:c,offsetTopLeft:v,position:h,reverseDirection:p,tooltipBox:this.state.lastBoundingBox,useTranslate3d:m,viewBox:g}),_=x.cssClasses,w=x.cssProperties,O=Mp(Mp({transition:d&&a?"transform ".concat(u,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return he.createElement("div",{tabIndex:-1,className:_,style:O,ref:function(E){n.wrapperNode=E}},l)}}])})(y.PureComponent),lA=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},cA={isSsr:lA()};function Ct(e){"@babel/helpers - typeof";return Ct=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ct(e)}function Np(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function kp(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Np(Object(t),!0).forEach(function(n){lf(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Np(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function fA(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function dA(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ib(n.key),n)}}function vA(e,r,t){return r&&dA(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function hA(e,r,t){return r=Si(r),pA(e,nb()?Reflect.construct(r,t||[],Si(e).constructor):r.apply(e,t))}function pA(e,r){if(r&&(Ct(r)==="object"||typeof r=="function"))return r;if(r!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mA(e)}function mA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nb(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nb=function(){return!!e})()}function Si(e){return Si=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Si(e)}function yA(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&uc(e,r)}function uc(e,r){return uc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,i){return n.__proto__=i,n},uc(e,r)}function lf(e,r,t){return r=ib(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function ib(e){var r=gA(e,"string");return Ct(r)=="symbol"?r:r+""}function gA(e,r){if(Ct(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(Ct(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function bA(e){return e.dataKey}function xA(e,r){return he.isValidElement(e)?he.cloneElement(e,r):typeof e=="function"?he.createElement(e,r):he.createElement(GS,r)}var cf=(function(e){function r(){return fA(this,r),hA(this,r,arguments)}return yA(r,e),vA(r,[{key:"render",value:function(){var n=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,u=i.animationDuration,s=i.animationEasing,l=i.content,c=i.coordinate,f=i.filterNull,d=i.isAnimationActive,v=i.offset,h=i.payload,p=i.payloadUniqBy,m=i.position,g=i.reverseDirection,b=i.useTranslate3d,x=i.viewBox,_=i.wrapperStyle,w=h??[];f&&w.length&&(w=vS(h.filter(function(P){return P.value!=null&&(P.hide!==!0||n.props.includeHidden)}),p,bA));var O=w.length>0;return he.createElement(sA,{allowEscapeViewBox:o,animationDuration:u,animationEasing:s,isAnimationActive:d,active:a,coordinate:c,hasPayload:O,offset:v,position:m,reverseDirection:g,useTranslate3d:b,viewBox:x,wrapperStyle:_},xA(l,kp(kp({},this.props),{},{payload:w})))}}])})(y.PureComponent);lf(cf,"displayName","Tooltip");lf(cf,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!cA.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Xs,Dp;function wA(){if(Dp)return Xs;Dp=1;var e=mr(),r=function(){return e.Date.now()};return Xs=r,Xs}var Zs,Rp;function _A(){if(Rp)return Zs;Rp=1;var e=/\s/;function r(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}return Zs=r,Zs}var Js,$p;function OA(){if($p)return Js;$p=1;var e=_A(),r=/^\s+/;function t(n){return n&&n.slice(0,e(n)+1).replace(r,"")}return Js=t,Js}var Qs,qp;function PA(){if(qp)return Qs;qp=1;var e=OA(),r=Fr(),t=Sn(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt;function s(l){if(typeof l=="number")return l;if(t(l))return n;if(r(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=r(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=e(l);var f=a.test(l);return f||o.test(l)?u(l.slice(2),f?2:8):i.test(l)?n:+l}return Qs=s,Qs}var el,Lp;function SA(){if(Lp)return el;Lp=1;var e=Fr(),r=wA(),t=PA(),n="Expected a function",i=Math.max,a=Math.min;function o(u,s,l){var c,f,d,v,h,p,m=0,g=!1,b=!1,x=!0;if(typeof u!="function")throw new TypeError(n);s=t(s)||0,e(l)&&(g=!!l.leading,b="maxWait"in l,d=b?i(t(l.maxWait)||0,s):d,x="trailing"in l?!!l.trailing:x);function _(M){var k=c,$=f;return c=f=void 0,m=M,v=u.apply($,k),v}function w(M){return m=M,h=setTimeout(E,s),g?_(M):v}function O(M){var k=M-p,$=M-m,L=s-k;return b?a(L,d-$):L}function P(M){var k=M-p,$=M-m;return p===void 0||k>=s||k<0||b&&$>=d}function E(){var M=r();if(P(M))return N(M);h=setTimeout(E,O(M))}function N(M){return h=void 0,x&&c?_(M):(c=f=void 0,v)}function D(){h!==void 0&&clearTimeout(h),m=0,c=p=f=h=void 0}function A(){return h===void 0?v:N(r())}function j(){var M=r(),k=P(M);if(c=arguments,f=this,p=M,k){if(h===void 0)return w(p);if(b)return clearTimeout(h),h=setTimeout(E,s),_(p)}return h===void 0&&(h=setTimeout(E,s)),v}return j.cancel=D,j.flush=A,j}return el=o,el}var rl,Bp;function AA(){if(Bp)return rl;Bp=1;var e=SA(),r=Fr(),t="Expected a function";function n(i,a,o){var u=!0,s=!0;if(typeof i!="function")throw new TypeError(t);return r(o)&&(u="leading"in o?!!o.leading:u,s="trailing"in o?!!o.trailing:s),e(i,a,{leading:u,maxWait:a,trailing:s})}return rl=n,rl}var CA=AA();const EA=Ne(CA);function ln(e){"@babel/helpers - typeof";return ln=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},ln(e)}function zp(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),t.push.apply(t,n)}return t}function Jn(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?zp(Object(t),!0).forEach(function(n){TA(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zp(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function TA(e,r,t){return r=IA(r),r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function IA(e){var r=MA(e,"string");return ln(r)=="symbol"?r:r+""}function MA(e,r){if(ln(e)!="object"||!e)return e;var t=e[Symbol.toPrimitive];if(t!==void 0){var n=t.call(e,r);if(ln(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function jA(e,r){return RA(e)||DA(e,r)||kA(e,r)||NA()}function NA(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
3
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kA(e,r){if(e){if(typeof e=="string")return Fp(e,r);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Fp(e,r)}}function Fp(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=new Array(r);t<r;t++)n[t]=e[t];return n}function DA(e,r){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var n,i,a,o,u=[],s=!0,l=!1;try{if(a=(t=t.call(e)).next,r!==0)for(;!(s=(n=a.call(t)).done)&&(u.push(n.value),u.length!==r);s=!0);}catch(c){l=!0,i=c}finally{try{if(!s&&t.return!=null&&(o=t.return(),Object(o)!==o))return}finally{if(l)throw i}}return u}}function RA(e){if(Array.isArray(e))return e}var $A=y.forwardRef(function(e,r){var t=e.aspect,n=e.initialDimension,i=n===void 0?{width:-1,height:-1}:n,a=e.width,o=a===void 0?"100%":a,u=e.height,s=u===void 0?"100%":u,l=e.minWidth,c=l===void 0?0:l,f=e.minHeight,d=e.maxHeight,v=e.children,h=e.debounce,p=h===void 0?0:h,m=e.id,g=e.className,b=e.onResize,x=e.style,_=x===void 0?{}:x,w=y.useRef(null),O=y.useRef();O.current=b,y.useImperativeHandle(r,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var P=y.useState({containerWidth:i.width,containerHeight:i.height}),E=jA(P,2),N=E[0],D=E[1],A=y.useCallback(function(M,k){D(function($){var L=Math.round(M),q=Math.round(k);return $.containerWidth===L&&$.containerHeight===q?$:{containerWidth:L,containerHeight:q}})},[]);y.useEffect(function(){var M=function(U){var G,Y=U[0].contentRect,Q=Y.width,be=Y.height;A(Q,be),(G=O.current)===null||G===void 0||G.call(O,Q,be)};p>0&&(M=EA(M,p,{trailing:!0,leading:!1}));var k=new ResizeObserver(M),$=w.current.getBoundingClientRect(),L=$.width,q=$.height;return A(L,q),k.observe(w.current),function(){k.disconnect()}},[A,p]);var j=y.useMemo(function(){var M=N.containerWidth,k=N.containerHeight;if(M<0||k<0)return null;su(Vn(o)||Vn(s),`The width(%s) and height(%s) are both fixed numbers,
4
4
  maybe you don't need to use a ResponsiveContainer.`,o,s),su(!t||t>0,"The aspect(%s) must be greater than zero.",t);var $=Vn(o)?M:o,L=Vn(s)?k:s;t&&t>0&&($?L=$/t:L&&($=L*t),d&&L>d&&(L=d)),su($>0||L>0,`The width(%s) and height(%s) of chart should be greater than 0,