profclaw 0.0.1-beta.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/CHANGELOG.md +21 -38
  2. package/CONTRIBUTING.md +3 -5
  3. package/README.md +128 -63
  4. package/dist/chat/execution/tools/index.d.ts +1 -1
  5. package/dist/chat/execution/tools/index.js +41 -2
  6. package/dist/chat/providers/slack/index.d.ts +2 -2
  7. package/dist/cli/commands/models.js +39 -26
  8. package/dist/cli/commands/onboard.js +64 -79
  9. package/dist/cli/commands/setup.js +293 -90
  10. package/dist/cli/index.js +0 -6
  11. package/dist/cli/providers.d.ts +15 -0
  12. package/dist/cli/providers.js +41 -0
  13. package/dist/core/deployment.js +2 -0
  14. package/dist/providers/ai-sdk.js +26 -6
  15. package/dist/routes/channels.d.ts +12 -0
  16. package/dist/routes/channels.js +166 -0
  17. package/dist/server/route-loader.js +1 -0
  18. package/dist/server.js +115 -109
  19. package/package.json +1 -1
  20. package/skills/git-workflow/SKILL.md +3 -3
  21. package/ui/dist/assets/{ActivityView-DIPQSJ_d.js → ActivityView-BeshZXmE.js} +1 -1
  22. package/ui/dist/assets/{AgentList-CqyaYrcq.js → AgentList-QVHeldPi.js} +1 -1
  23. package/ui/dist/assets/{AnalyticsDashboard-C-mjuGHT.js → AnalyticsDashboard-C9R97dXE.js} +1 -1
  24. package/ui/dist/assets/{AreaChart-CfYWmbtr.js → AreaChart-B73gaiVQ.js} +1 -1
  25. package/ui/dist/assets/{CartesianChart-BaQ3It0c.js → CartesianChart-CXYL2R-A.js} +1 -1
  26. package/ui/dist/assets/{ChatView-DxxQy6pl.js → ChatView-qjZErlrp.js} +1 -1
  27. package/ui/dist/assets/{CostsDashboard-CDBBcGkg.js → CostsDashboard-O4DCLy1i.js} +1 -1
  28. package/ui/dist/assets/{EstimateSelect-CDjf5qKl.js → EstimateSelect-1hQf4Osk.js} +1 -1
  29. package/ui/dist/assets/{FloatingChatbot-CZHjvJIe.js → FloatingChatbot-BZBzrJxd.js} +1 -1
  30. package/ui/dist/assets/{InviteCodeManagement-DTm-IPTm.js → InviteCodeManagement-LEoGqYeA.js} +1 -1
  31. package/ui/dist/assets/{ProjectDetail-DlYUcOss.js → ProjectDetail--gPfvATB.js} +1 -1
  32. package/ui/dist/assets/{ProjectIcon-BMRpnM04.js → ProjectIcon-Chd_ofsw.js} +1 -1
  33. package/ui/dist/assets/{ProjectList-D85TN0i0.js → ProjectList-BvUfVB6c.js} +1 -1
  34. package/ui/dist/assets/{Settings-CgPqzUvj.js → Settings-1kaf7VHE.js} +1 -1
  35. package/ui/dist/assets/{StatusIndicator-yig0uZEA.js → StatusIndicator-pRfkNcdV.js} +1 -1
  36. package/ui/dist/assets/{SummaryDetail-CwLAfHgJ.js → SummaryDetail-DV3AmONk.js} +1 -1
  37. package/ui/dist/assets/{SummaryList-BvS5Idnu.js → SummaryList-B6kXiTxL.js} +1 -1
  38. package/ui/dist/assets/{TaskDetail-zarC1fOt.js → TaskDetail-CV6CzbOS.js} +1 -1
  39. package/ui/dist/assets/{TaskList-CyJq3ANE.js → TaskList-DL7brQKd.js} +1 -1
  40. package/ui/dist/assets/{TicketBoard-BlWr3-iH.js → TicketBoard-CrkkFj7C.js} +1 -1
  41. package/ui/dist/assets/{TicketDetail-DmqWKj2W.js → TicketDetail-hnnYclpD.js} +1 -1
  42. package/ui/dist/assets/{TicketList-Scj4pMWa.js → TicketList-CsDAyQCL.js} +1 -1
  43. package/ui/dist/assets/{UserManagement-BH7uG7dw.js → UserManagement-BGFQyTSr.js} +1 -1
  44. package/ui/dist/assets/{ViewSwitcher-3HzZUdWn.js → ViewSwitcher-CnL0OqA8.js} +1 -1
  45. package/ui/dist/assets/{alert-dialog-DWPb2IfQ.js → alert-dialog-SKM6Gjz4.js} +1 -1
  46. package/ui/dist/assets/{archive-CGck7gxR.js → archive-BsLa7brF.js} +1 -1
  47. package/ui/dist/assets/{badge-DEmc3Z_l.js → badge-CVHH1a-v.js} +1 -1
  48. package/ui/dist/assets/{brain-CfFdLVqb.js → brain-6o_RHVpe.js} +1 -1
  49. package/ui/dist/assets/{bug-DqSGPUUE.js → bug-CmZI7jqM.js} +1 -1
  50. package/ui/dist/assets/{calendar-BuZ4zbPW.js → calendar-Bf0t2B82.js} +1 -1
  51. package/ui/dist/assets/{chevron-up-DcJ4LL_N.js → chevron-up-CoUsOvZj.js} +1 -1
  52. package/ui/dist/assets/{circle-x-C78PNZjF.js → circle-x-Dgw11LgT.js} +1 -1
  53. package/ui/dist/assets/{constants-DhDjZe4P.js → constants-Q5Zivl-a.js} +1 -1
  54. package/ui/dist/assets/{cpu-Ck6AoG8c.js → cpu-DiPMQICV.js} +1 -1
  55. package/ui/dist/assets/{database-CA2w8Lvt.js → database-BwTfupDi.js} +1 -1
  56. package/ui/dist/assets/{dialog-BOdGWhgE.js → dialog-BUqN9Psj.js} +1 -1
  57. package/ui/dist/assets/{ellipsis-FhHKRbfl.js → ellipsis-UJx4Xnf6.js} +1 -1
  58. package/ui/dist/assets/{ellipsis-vertical-CO0UqE4-.js → ellipsis-vertical-DoULYEKn.js} +1 -1
  59. package/ui/dist/assets/{file-code-ChnhYYj1.js → file-code-B2UrJLwi.js} +1 -1
  60. package/ui/dist/assets/{folder-open-CHwA1-ve.js → folder-open-BJi577JH.js} +1 -1
  61. package/ui/dist/assets/{funnel-ByEjRFNB.js → funnel-PkaD_HSR.js} +1 -1
  62. package/ui/dist/assets/{git-branch-GTOPQgU4.js → git-branch-C_K30am0.js} +1 -1
  63. package/ui/dist/assets/{git-commit-horizontal-F5M84Kut.js → git-commit-horizontal-IT6ecxWQ.js} +1 -1
  64. package/ui/dist/assets/{globe-CQWfr7hT.js → globe-f-jjCa_g.js} +1 -1
  65. package/ui/dist/assets/{hash-nKC9gtLg.js → hash-DNEv8Elo.js} +1 -1
  66. package/ui/dist/assets/{history-DfFSA9xJ.js → history-BQSBo_1Q.js} +1 -1
  67. package/ui/dist/assets/{index-DHGvP9mp.js → index-BUmnwPQr.js} +1 -1
  68. package/ui/dist/assets/{index-Z4-RtZcs.js → index-BfF5G4Cw.js} +1 -1
  69. package/ui/dist/assets/{index-DeI8lKRR.js → index-C8N375c2.js} +1 -1
  70. package/ui/dist/assets/index-CuxnqVVz.css +1 -0
  71. package/ui/dist/assets/{index-Ca3vk7Gq.js → index-CzMM3QOk.js} +1 -1
  72. package/ui/dist/assets/{index--JkIxVXb.js → index-lJlNPFVJ.js} +3 -3
  73. package/ui/dist/assets/{index-a4Fxq0Hb.js → index-nS3EErDg.js} +1 -1
  74. package/ui/dist/assets/{layers-DFeLExSa.js → layers-jFqVrWMD.js} +1 -1
  75. package/ui/dist/assets/{layout-dashboard-WmgjMhWF.js → layout-dashboard-CcKt1hXw.js} +1 -1
  76. package/ui/dist/assets/{lightbulb-Bo8hEr7B.js → lightbulb-Jhp7FvbU.js} +1 -1
  77. package/ui/dist/assets/{link-2-YqrpQXBH.js → link-2-DdO7ostF.js} +1 -1
  78. package/ui/dist/assets/{markdown-renderer-Croje6Xe.js → markdown-renderer-n1ToC4XQ.js} +1 -1
  79. package/ui/dist/assets/{message-square-CD0H5hot.js → message-square-CBgH65X7.js} +1 -1
  80. package/ui/dist/assets/{pencil-DpFnj5dn.js → pencil-CYXCEPQh.js} +1 -1
  81. package/ui/dist/assets/{play-DVgea_jT.js → play-d1ONaH0-.js} +1 -1
  82. package/ui/dist/assets/{popover-JXecfWG5.js → popover-CrmZgoWu.js} +1 -1
  83. package/ui/dist/assets/{progress-C1ghf1Fu.js → progress-uv4SPkL5.js} +1 -1
  84. package/ui/dist/assets/{rocket-BFxPYGx9.js → rocket-DhvUetsk.js} +1 -1
  85. package/ui/dist/assets/{select-MADP8m6Q.js → select-CeQ8AHGy.js} +1 -1
  86. package/ui/dist/assets/{send-eYnW_7n-.js → send-P0r5D7td.js} +1 -1
  87. package/ui/dist/assets/{server-CPMaysH8.js → server-CVHTZB72.js} +1 -1
  88. package/ui/dist/assets/{settings-2-scXUOuE_.js → settings-2-ocj5uHGx.js} +1 -1
  89. package/ui/dist/assets/{sheet-r6NSOxi-.js → sheet-DuQExSho.js} +1 -1
  90. package/ui/dist/assets/{shield-check-PEr7nmVw.js → shield-check-DfVdE34l.js} +1 -1
  91. package/ui/dist/assets/{shield-off-CLtXio62.js → shield-off-8l0J6R-8.js} +1 -1
  92. package/ui/dist/assets/{skeleton-C9oEzNlU.js → skeleton-TFiFJ3nB.js} +1 -1
  93. package/ui/dist/assets/{smartphone-DusFfY0U.js → smartphone-77_g3SQn.js} +1 -1
  94. package/ui/dist/assets/{square-e1yxB2eR.js → square-Ckzsr3Rn.js} +1 -1
  95. package/ui/dist/assets/{switch-tNs0n-kz.js → switch-CAePkd6k.js} +1 -1
  96. package/ui/dist/assets/{table-CXxtLicg.js → table-ZjAZ7hkt.js} +1 -1
  97. package/ui/dist/assets/{tag-tAwMmQ9G.js → tag-C35mgoEv.js} +1 -1
  98. package/ui/dist/assets/{textarea-BjiEeIWh.js → textarea-DsVPnSgR.js} +1 -1
  99. package/ui/dist/assets/{timer-Vel1N3RP.js → timer-DHJBS2w1.js} +1 -1
  100. package/ui/dist/assets/{tooltip-ZMwtfr1J.js → tooltip-BYmQ331W.js} +1 -1
  101. package/ui/dist/assets/{trash-2-eM-CNwsZ.js → trash-2-keO5tKPE.js} +1 -1
  102. package/ui/dist/assets/{trending-up-BGafmjRo.js → trending-up-BBv8KbrY.js} +1 -1
  103. package/ui/dist/assets/{wand-sparkles-DPvcd9Pi.js → wand-sparkles-BusQ52ZK.js} +1 -1
  104. package/ui/dist/assets/{wrench-B8s3zYVV.js → wrench-02YaOSiK.js} +1 -1
  105. package/ui/dist/index.html +2 -2
  106. package/dist/chat/auto-reply.d.ts +0 -90
  107. package/dist/chat/auto-reply.js +0 -272
  108. package/dist/chat/execution/pty.d.ts +0 -92
  109. package/dist/chat/execution/pty.js +0 -285
  110. package/dist/chat/execution/tools/glinr-ops.d.ts +0 -202
  111. package/dist/chat/execution/tools/glinr-ops.js +0 -694
  112. package/dist/cli/commands/browser.d.ts +0 -3
  113. package/dist/cli/commands/browser.js +0 -138
  114. package/dist/cli/commands/canvas.d.ts +0 -3
  115. package/dist/cli/commands/canvas.js +0 -155
  116. package/dist/cli/commands/nodes.d.ts +0 -3
  117. package/dist/cli/commands/nodes.js +0 -193
  118. package/dist/diagnostics/exporters.d.ts +0 -21
  119. package/dist/diagnostics/exporters.js +0 -138
  120. package/dist/diagnostics/index.d.ts +0 -10
  121. package/dist/diagnostics/index.js +0 -9
  122. package/dist/diagnostics/middleware.d.ts +0 -12
  123. package/dist/diagnostics/middleware.js +0 -58
  124. package/dist/diagnostics/tracer.d.ts +0 -133
  125. package/dist/diagnostics/tracer.js +0 -257
  126. package/dist/discovery/index.d.ts +0 -8
  127. package/dist/discovery/index.js +0 -7
  128. package/dist/discovery/mdns.d.ts +0 -40
  129. package/dist/discovery/mdns.js +0 -249
  130. package/dist/plugins/registry.d.ts +0 -122
  131. package/dist/plugins/registry.js +0 -352
  132. package/dist/plugins/sandbox.d.ts +0 -77
  133. package/dist/plugins/sandbox.js +0 -287
  134. package/dist/plugins/search/brave.d.ts +0 -9
  135. package/dist/plugins/search/brave.js +0 -157
  136. package/dist/plugins/search/duckduckgo.d.ts +0 -9
  137. package/dist/plugins/search/duckduckgo.js +0 -171
  138. package/dist/plugins/search/index.d.ts +0 -13
  139. package/dist/plugins/search/index.js +0 -23
  140. package/dist/plugins/search/searxng.d.ts +0 -9
  141. package/dist/plugins/search/searxng.js +0 -170
  142. package/dist/plugins/search/serper.d.ts +0 -9
  143. package/dist/plugins/search/serper.js +0 -135
  144. package/dist/plugins/search/tavily.d.ts +0 -9
  145. package/dist/plugins/search/tavily.js +0 -146
  146. package/dist/providers/adapters/anthropic.d.ts +0 -26
  147. package/dist/providers/adapters/anthropic.js +0 -306
  148. package/dist/providers/adapters/base.d.ts +0 -53
  149. package/dist/providers/adapters/base.js +0 -99
  150. package/dist/providers/adapters/ollama.d.ts +0 -30
  151. package/dist/providers/adapters/ollama.js +0 -292
  152. package/dist/utils/ai-cache.d.ts +0 -72
  153. package/dist/utils/ai-cache.js +0 -204
  154. package/dist/utils/file-lock.d.ts +0 -85
  155. package/dist/utils/file-lock.js +0 -204
  156. package/ui/dist/assets/index-WclMPci1.css +0 -1
@@ -1,4 +1,4 @@
1
- import{u as S,m as T,j as e,i as x,r as j,K as g,O as f,Q as b,b as d,f as c,d as N,Z as z,e as v,$ as E,aj as u,k as w,J as I,t as O}from"./index--JkIxVXb.js";import{B as L}from"./badge-DEmc3Z_l.js";import{S as U}from"./skeleton-C9oEzNlU.js";import{S as H}from"./StatusIndicator-yig0uZEA.js";import{L as B}from"./link-2-YqrpQXBH.js";function P(){return S({queryKey:["integrations","status"],queryFn:()=>T.integrations.status(),staleTime:6e4})}function R({children:s,language:t,filename:r,showLineNumbers:a=!1,className:n}){const[l,i]=j.useState(!1),o=async()=>{await navigator.clipboard.writeText(s),i(!0),setTimeout(()=>i(!1),2e3)},k=s.trim().split(`
1
+ import{u as S,m as T,j as e,i as x,r as j,K as g,O as f,Q as b,b as d,f as c,d as N,Z as z,e as v,$ as E,aj as u,k as w,J as I,t as O}from"./index-lJlNPFVJ.js";import{B as L}from"./badge-CVHH1a-v.js";import{S as U}from"./skeleton-TFiFJ3nB.js";import{S as H}from"./StatusIndicator-pRfkNcdV.js";import{L as B}from"./link-2-DdO7ostF.js";function P(){return S({queryKey:["integrations","status"],queryFn:()=>T.integrations.status(),staleTime:6e4})}function R({children:s,language:t,filename:r,showLineNumbers:a=!1,className:n}){const[l,i]=j.useState(!1),o=async()=>{await navigator.clipboard.writeText(s),i(!0),setTimeout(()=>i(!1),2e3)},k=s.trim().split(`
2
2
  `);return e.jsxs("div",{className:x("rounded-xl overflow-hidden border border-zinc-800",n),children:[(r||t)&&e.jsxs("div",{className:"bg-zinc-900 px-4 py-2 flex items-center justify-between border-b border-zinc-800",children:[e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx(g,{className:"h-4 w-4 text-zinc-500"}),e.jsx("span",{className:"text-xs font-medium text-zinc-400",children:r||t})]}),e.jsx(p,{copied:l,onCopy:o})]}),e.jsxs("div",{className:"relative bg-zinc-950 group",children:[!r&&!t&&e.jsx("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:e.jsx(p,{copied:l,onCopy:o})}),e.jsx("pre",{className:"p-4 overflow-x-auto",children:e.jsx("code",{className:"text-sm font-mono text-zinc-200 leading-relaxed",children:a?k.map((C,h)=>e.jsxs("div",{className:"flex",children:[e.jsx("span",{className:"select-none w-8 text-zinc-600 text-right pr-4",children:h+1}),e.jsx("span",{children:C||" "})]},h)):s.trim()})})]})]})}function F({children:s,className:t}){return e.jsx("code",{className:x("relative rounded bg-zinc-900 px-[0.4rem] py-[0.2rem] font-mono text-sm text-zinc-200",t),children:s})}function p({copied:s,onCopy:t}){return e.jsx("button",{onClick:t,className:x("flex items-center gap-1.5 px-2 py-1 rounded-md text-xs transition-colors",s?"bg-emerald-500/20 text-emerald-400":"bg-zinc-800 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-700"),children:s?e.jsxs(e.Fragment,{children:[e.jsx(f,{className:"h-3 w-3"}),"Copied"]}):e.jsxs(e.Fragment,{children:[e.jsx(b,{className:"h-3 w-3"}),"Copy"]})})}const W={github:E,jira:()=>e.jsx("svg",{viewBox:"0 0 24 24",className:"h-full w-full",fill:"currentColor",children:e.jsx("path",{d:"M11.75 0a11.75 11.75 0 1 0 0 23.5 11.75 11.75 0 0 0 0-23.5zM3.29 12.94l7.63-7.63a.65.65 0 0 1 .94 0l.47.47-6.2 6.2a.65.65 0 0 0 0 .94l.94.94a.65.65 0 0 0 .94 0l6.2-6.2.47.47a.65.65 0 0 1 0 .94l-7.63 7.63a1.29 1.29 0 0 1-1.88 0l-1.88-1.88a1.29 1.29 0 0 1 0-1.88z"})}),linear:()=>e.jsx("svg",{viewBox:"0 0 24 24",className:"h-full w-full",fill:"currentColor",children:e.jsx("path",{d:"M3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12ZM12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM7 12L12 7V10.5H17V13.5H12V17L7 12Z"})})},Z={github:"from-gray-700 to-gray-900",jira:"from-blue-600 to-blue-800",linear:"from-indigo-500 to-indigo-600"};function y({text:s,label:t}){const[r,a]=j.useState(!1),n=()=>{navigator.clipboard.writeText(s),a(!0),O.success(`${t} copied to clipboard`),setTimeout(()=>a(!1),2e3)};return e.jsx(w,{variant:"ghost",size:"icon",className:"h-7 w-7 rounded-lg",onClick:n,children:r?e.jsx(f,{className:"h-3.5 w-3.5 text-green-500"}):e.jsx(b,{className:"h-3.5 w-3.5"})})}function q({name:s,icon:t,description:r,configured:a,webhookUrl:n,oauthUrl:l}){const i=W[t]||u,o=Z[t]||"from-gray-500 to-gray-700";return e.jsxs(d,{className:"glass rounded-[24px] overflow-hidden border-white/5 group hover-lift transition-liquid",children:[e.jsx(N,{className:"pb-3",children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:x("h-10 w-10 rounded-xl flex items-center justify-center bg-gradient-to-br shadow-lg",o),children:e.jsx("div",{className:"h-5 w-5 text-white",children:e.jsx(i,{})})}),e.jsxs("div",{children:[e.jsx(v,{className:"text-base font-bold",children:s}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:r})]})]}),e.jsx(H,{status:a?"online":"offline",label:a?"CONFIGURED":"NOT SET",showLabel:!0})]})}),e.jsxs(c,{className:"space-y-3",children:[e.jsxs("div",{className:"space-y-1.5",children:[e.jsxs("label",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground flex items-center gap-1.5",children:[e.jsx(u,{className:"h-3 w-3"}),"Webhook URL"]}),e.jsxs("div",{className:"flex items-center gap-2 p-2.5 rounded-xl glass-heavy border border-white/5",children:[e.jsx("code",{className:"flex-1 text-[11px] text-muted-foreground truncate font-mono",children:n}),e.jsx(y,{text:n,label:"Webhook URL"})]})]}),e.jsxs("div",{className:"flex items-center justify-between pt-2 border-t border-white/5",children:[e.jsx("span",{className:"text-[10px] font-bold uppercase tracking-widest text-muted-foreground",children:"OAuth Connect"}),e.jsxs(w,{variant:"outline",size:"sm",className:"h-8 rounded-xl text-[11px] font-bold",onClick:()=>window.open(l,"_blank"),disabled:!a,children:[e.jsx(I,{className:"h-3.5 w-3.5 mr-1.5"}),a?"Connect":"Setup Required"]})]})]})]})}function m({name:s,endpoint:t,description:r}){return e.jsxs("div",{className:"flex items-center justify-between p-4 rounded-2xl glass-heavy border border-white/5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-8 w-8 rounded-lg glass flex items-center justify-center",children:e.jsx(g,{className:"h-4 w-4 text-indigo-400"})}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-bold",children:s}),e.jsx("p",{className:"text-[10px] text-muted-foreground",children:r})]})]}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("code",{className:"text-[10px] text-muted-foreground font-mono px-2 py-1 rounded-lg bg-black/20 max-w-[200px] truncate",children:t}),e.jsx(y,{text:t,label:"Endpoint"})]})]})}function _(){const{data:s,isLoading:t,error:r}=P();if(t)return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("header",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Integrations"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Loading webhook status..."})]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[1,2,3].map(i=>e.jsx(U,{className:"h-48 rounded-[24px] skeleton-glass"},i))})]});if(r)return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("header",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Integrations"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Webhook and OAuth configuration"})]}),e.jsx(d,{className:"glass rounded-[28px] border-red-500/10",children:e.jsx(c,{className:"p-8 text-center",children:e.jsx("p",{className:"text-red-400",children:"Failed to load integration status"})})})]});const a=s?.integrations??{},n=s?.hookEndpoints,l=Object.values(a).filter(i=>i.configured).length;return e.jsxs("div",{className:"space-y-6",children:[e.jsxs("header",{className:"flex items-center justify-between",children:[e.jsxs("div",{children:[e.jsx("h2",{className:"text-2xl font-bold tracking-tight",children:"Integrations"}),e.jsx("p",{className:"text-muted-foreground text-sm",children:"Webhook and OAuth configuration for external services."})]}),e.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-full glass border-white/10",children:[e.jsx(B,{className:"h-4 w-4 text-blue-400"}),e.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-widest",children:[l,"/",Object.keys(a).length," Connected"]})]})]}),e.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:Object.entries(a).map(([i,o])=>e.jsx(q,{name:o.name,icon:o.icon,description:o.description,configured:o.configured,webhookUrl:o.webhookUrl,oauthUrl:o.oauthUrl},i))}),e.jsxs(d,{className:"glass rounded-[28px] border-white/5",children:[e.jsx(N,{children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"h-10 w-10 rounded-xl flex items-center justify-center bg-gradient-to-br from-orange-500 to-red-600 shadow-lg",children:e.jsx(z,{className:"h-5 w-5 text-white"})}),e.jsxs("div",{children:[e.jsx(v,{className:"text-lg font-bold",children:"Claude Code Hooks"}),e.jsx("p",{className:"text-[11px] text-muted-foreground",children:"Zero-token activity tracking endpoints"})]})]})}),e.jsxs(c,{className:"space-y-3",children:[n&&e.jsxs(e.Fragment,{children:[e.jsx(m,{name:"Tool Use Hook",endpoint:n.toolUse,description:"POST after each tool call"}),e.jsx(m,{name:"Session End Hook",endpoint:n.sessionEnd,description:"POST when session completes"}),e.jsx(m,{name:"Prompt Submit Hook",endpoint:n.promptSubmit,description:"POST on user prompt"})]}),e.jsxs("div",{className:"mt-4 p-4 rounded-2xl bg-muted/50 border border-border",children:[e.jsx("p",{className:"text-[11px] font-bold uppercase tracking-widest text-muted-foreground mb-2",children:"Quick Setup"}),e.jsxs("p",{className:"text-[12px] text-muted-foreground mb-3",children:["Add this to your ",e.jsx(F,{children:"~/.claude/settings.json"}),":"]}),e.jsx(R,{filename:"~/.claude/settings.json",language:"json",children:`{
3
3
  "hooks": {
4
4
  "PostToolUse": "curl -X POST ${n?.toolUse||"http://localhost:3000/api/hook/tool-use"}",
@@ -1 +1 @@
1
- import{c as o}from"./index--JkIxVXb.js";const a=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l=o("circle",a);const c=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],n=o("inbox",c);const e=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],s=o("layers",e);export{l as C,n as I,s as L};
1
+ import{c as o}from"./index-lJlNPFVJ.js";const a=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],l=o("circle",a);const c=[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]],n=o("inbox",c);const e=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],s=o("layers",e);export{l as C,n as I,s as L};
@@ -1 +1 @@
1
- import{c as t}from"./index--JkIxVXb.js";const e=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],o=t("layout-dashboard",e);export{o as L};
1
+ import{c as t}from"./index-lJlNPFVJ.js";const e=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],o=t("layout-dashboard",e);export{o as L};
@@ -1 +1 @@
1
- import{c}from"./index--JkIxVXb.js";const t=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],o=c("lightbulb",t);export{o as L};
1
+ import{c}from"./index-lJlNPFVJ.js";const t=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],o=c("lightbulb",t);export{o as L};
@@ -1 +1 @@
1
- import{c as e}from"./index--JkIxVXb.js";const o=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],n=e("link-2",o);export{n as L};
1
+ import{c as e}from"./index-lJlNPFVJ.js";const o=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],n=e("link-2",o);export{n as L};
@@ -1,4 +1,4 @@
1
- import{c as bm,bp as ol,j as te,bn as qe,bP as Nt,i as Gb,r as $b,O as zb,Q as Hb}from"./index--JkIxVXb.js";import{a as hm,b as Ws}from"./defineProperty-CoXUr7_6.js";const jb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],QC=bm("maximize-2",jb);const Vb=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],JC=bm("minimize-2",Vb);function Wb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Yb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xb={};function Ul(e,t){return(Xb.jsx?Kb:Yb).test(e)}const Zb=/[ \t\n\f\r]/g;function Qb(e){return typeof e=="object"?e.type==="text"?Bl(e.value):!1:Bl(e)}function Bl(e){return e.replace(Zb,"")===""}class ht{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ht.prototype.normal={};ht.prototype.property={};ht.prototype.space=void 0;function Em(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ht(n,r,t)}function Ys(e){return e.toLowerCase()}class ye{constructor(t,n){this.attribute=n,this.property=t}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let Jb=0;const $=je(),re=je(),Ks=je(),O=je(),ee=je(),Qe=je(),ke=je();function je(){return 2**++Jb}const Xs=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:re,commaOrSpaceSeparated:ke,commaSeparated:Qe,number:O,overloadedBoolean:Ks,spaceSeparated:ee},Symbol.toStringTag,{value:"Module"})),jt=Object.keys(Xs);class sl extends ye{constructor(t,n,r,a){let i=-1;if(super(t,n),ql(this,"space",a),typeof r=="number")for(;++i<jt.length;){const o=jt[i];ql(this,jt[i],(r&Xs[o])===Xs[o])}}}sl.prototype.defined=!0;function ql(e,t,n){n&&(e[t]=n)}function et(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new sl(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Ys(r)]=r,n[Ys(i.attribute)]=r}return new ht(t,n,e.space)}const ym=et({properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:ee,ariaCurrent:null,ariaDescribedBy:ee,ariaDetails:null,ariaDisabled:re,ariaDropEffect:ee,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:ee,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ee,ariaLevel:O,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:ee,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:ee,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:re,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Sm(e,t){return t in e?e[t]:t}function vm(e,t){return Sm(e,t.toLowerCase())}const eh=et({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:ee,accessKey:ee,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:ee,autoFocus:$,autoPlay:$,blocking:ee,capture:null,charSet:null,checked:$,cite:null,className:ee,cols:O,colSpan:null,content:null,contentEditable:re,controls:$,controlsList:ee,coords:O|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Ks,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:ee,height:O,hidden:Ks,high:O,href:null,hrefLang:null,htmlFor:ee,httpEquiv:ee,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:ee,itemRef:ee,itemScope:$,itemType:ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:O,pattern:null,ping:ee,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:ee,required:$,reversed:$,rows:O,rowSpan:O,sandbox:ee,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:re,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ee,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:vm}),th=et({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ke,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:ee,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qe,g2:Qe,glyphName:Qe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ke,rev:ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ke,requiredFeatures:ke,requiredFonts:ke,requiredFormats:ke,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ke,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ke,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sm}),Tm=et({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),km=et({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vm}),Am=et({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},rh=/[A-Z]/g,Gl=/-[a-z]/g,ah=/^data[-\w.:]+$/i;function ih(e,t){const n=Ys(t);let r=t,a=ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ah.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Gl,sh);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Gl.test(i)){let o=i.replace(rh,oh);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=sl}return new a(r,t)}function oh(e){return"-"+e.toLowerCase()}function sh(e){return e.charAt(1).toUpperCase()}const lh=Em([ym,eh,Tm,km,Am],"html"),ll=Em([ym,th,Tm,km,Am],"svg");function uh(e){return e.join(" ").trim()}var Ye={},Vt,$l;function ch(){if($l)return Vt;$l=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
1
+ import{c as bm,bp as ol,j as te,bn as qe,bP as Nt,i as Gb,r as $b,O as zb,Q as Hb}from"./index-lJlNPFVJ.js";import{a as hm,b as Ws}from"./defineProperty-CoXUr7_6.js";const jb=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]],QC=bm("maximize-2",jb);const Vb=[["path",{d:"m14 10 7-7",key:"oa77jy"}],["path",{d:"M20 10h-6V4",key:"mjg0md"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M4 14h6v6",key:"rmj7iw"}]],JC=bm("minimize-2",Vb);function Wb(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Yb=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Kb=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Xb={};function Ul(e,t){return(Xb.jsx?Kb:Yb).test(e)}const Zb=/[ \t\n\f\r]/g;function Qb(e){return typeof e=="object"?e.type==="text"?Bl(e.value):!1:Bl(e)}function Bl(e){return e.replace(Zb,"")===""}class ht{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}ht.prototype.normal={};ht.prototype.property={};ht.prototype.space=void 0;function Em(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new ht(n,r,t)}function Ys(e){return e.toLowerCase()}class ye{constructor(t,n){this.attribute=n,this.property=t}}ye.prototype.attribute="";ye.prototype.booleanish=!1;ye.prototype.boolean=!1;ye.prototype.commaOrSpaceSeparated=!1;ye.prototype.commaSeparated=!1;ye.prototype.defined=!1;ye.prototype.mustUseProperty=!1;ye.prototype.number=!1;ye.prototype.overloadedBoolean=!1;ye.prototype.property="";ye.prototype.spaceSeparated=!1;ye.prototype.space=void 0;let Jb=0;const $=je(),re=je(),Ks=je(),O=je(),ee=je(),Qe=je(),ke=je();function je(){return 2**++Jb}const Xs=Object.freeze(Object.defineProperty({__proto__:null,boolean:$,booleanish:re,commaOrSpaceSeparated:ke,commaSeparated:Qe,number:O,overloadedBoolean:Ks,spaceSeparated:ee},Symbol.toStringTag,{value:"Module"})),jt=Object.keys(Xs);class sl extends ye{constructor(t,n,r,a){let i=-1;if(super(t,n),ql(this,"space",a),typeof r=="number")for(;++i<jt.length;){const o=jt[i];ql(this,jt[i],(r&Xs[o])===Xs[o])}}}sl.prototype.defined=!0;function ql(e,t,n){n&&(e[t]=n)}function et(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const i=new sl(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(i.mustUseProperty=!0),t[r]=i,n[Ys(r)]=r,n[Ys(i.attribute)]=r}return new ht(t,n,e.space)}const ym=et({properties:{ariaActiveDescendant:null,ariaAtomic:re,ariaAutoComplete:null,ariaBusy:re,ariaChecked:re,ariaColCount:O,ariaColIndex:O,ariaColSpan:O,ariaControls:ee,ariaCurrent:null,ariaDescribedBy:ee,ariaDetails:null,ariaDisabled:re,ariaDropEffect:ee,ariaErrorMessage:null,ariaExpanded:re,ariaFlowTo:ee,ariaGrabbed:re,ariaHasPopup:null,ariaHidden:re,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ee,ariaLevel:O,ariaLive:null,ariaModal:re,ariaMultiLine:re,ariaMultiSelectable:re,ariaOrientation:null,ariaOwns:ee,ariaPlaceholder:null,ariaPosInSet:O,ariaPressed:re,ariaReadOnly:re,ariaRelevant:null,ariaRequired:re,ariaRoleDescription:ee,ariaRowCount:O,ariaRowIndex:O,ariaRowSpan:O,ariaSelected:re,ariaSetSize:O,ariaSort:null,ariaValueMax:O,ariaValueMin:O,ariaValueNow:O,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function Sm(e,t){return t in e?e[t]:t}function vm(e,t){return Sm(e,t.toLowerCase())}const eh=et({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Qe,acceptCharset:ee,accessKey:ee,action:null,allow:null,allowFullScreen:$,allowPaymentRequest:$,allowUserMedia:$,alt:null,as:null,async:$,autoCapitalize:null,autoComplete:ee,autoFocus:$,autoPlay:$,blocking:ee,capture:null,charSet:null,checked:$,cite:null,className:ee,cols:O,colSpan:null,content:null,contentEditable:re,controls:$,controlsList:ee,coords:O|Qe,crossOrigin:null,data:null,dateTime:null,decoding:null,default:$,defer:$,dir:null,dirName:null,disabled:$,download:Ks,draggable:re,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:$,formTarget:null,headers:ee,height:O,hidden:Ks,high:O,href:null,hrefLang:null,htmlFor:ee,httpEquiv:ee,id:null,imageSizes:null,imageSrcSet:null,inert:$,inputMode:null,integrity:null,is:null,isMap:$,itemId:null,itemProp:ee,itemRef:ee,itemScope:$,itemType:ee,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:$,low:O,manifest:null,max:null,maxLength:O,media:null,method:null,min:null,minLength:O,multiple:$,muted:$,name:null,nonce:null,noModule:$,noValidate:$,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:$,optimum:O,pattern:null,ping:ee,placeholder:null,playsInline:$,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:$,referrerPolicy:null,rel:ee,required:$,reversed:$,rows:O,rowSpan:O,sandbox:ee,scope:null,scoped:$,seamless:$,selected:$,shadowRootClonable:$,shadowRootDelegatesFocus:$,shadowRootMode:null,shape:null,size:O,sizes:null,slot:null,span:O,spellCheck:re,src:null,srcDoc:null,srcLang:null,srcSet:null,start:O,step:null,style:null,tabIndex:O,target:null,title:null,translate:null,type:null,typeMustMatch:$,useMap:null,value:re,width:O,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ee,axis:null,background:null,bgColor:null,border:O,borderColor:null,bottomMargin:O,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:$,declare:$,event:null,face:null,frame:null,frameBorder:null,hSpace:O,leftMargin:O,link:null,longDesc:null,lowSrc:null,marginHeight:O,marginWidth:O,noResize:$,noHref:$,noShade:$,noWrap:$,object:null,profile:null,prompt:null,rev:null,rightMargin:O,rules:null,scheme:null,scrolling:re,standby:null,summary:null,text:null,topMargin:O,valueType:null,version:null,vAlign:null,vLink:null,vSpace:O,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:$,disableRemotePlayback:$,prefix:null,property:null,results:O,security:null,unselectable:null},space:"html",transform:vm}),th=et({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:ke,accentHeight:O,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:O,amplitude:O,arabicForm:null,ascent:O,attributeName:null,attributeType:null,azimuth:O,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:O,by:null,calcMode:null,capHeight:O,className:ee,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:O,diffuseConstant:O,direction:null,display:null,dur:null,divisor:O,dominantBaseline:null,download:$,dx:null,dy:null,edgeMode:null,editable:null,elevation:O,enableBackground:null,end:null,event:null,exponent:O,externalResourcesRequired:null,fill:null,fillOpacity:O,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Qe,g2:Qe,glyphName:Qe,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:O,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:O,horizOriginX:O,horizOriginY:O,id:null,ideographic:O,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:O,k:O,k1:O,k2:O,k3:O,k4:O,kernelMatrix:ke,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:O,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:O,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:O,overlineThickness:O,paintOrder:null,panose1:null,path:null,pathLength:O,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ee,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:O,pointsAtY:O,pointsAtZ:O,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ke,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ke,rev:ke,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ke,requiredFeatures:ke,requiredFonts:ke,requiredFormats:ke,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:O,specularExponent:O,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:O,strikethroughThickness:O,string:null,stroke:null,strokeDashArray:ke,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:O,strokeOpacity:O,strokeWidth:null,style:null,surfaceScale:O,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ke,tabIndex:O,tableValues:null,target:null,targetX:O,targetY:O,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ke,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:O,underlineThickness:O,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:O,values:null,vAlphabetic:O,vMathematical:O,vectorEffect:null,vHanging:O,vIdeographic:O,version:null,vertAdvY:O,vertOriginX:O,vertOriginY:O,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:O,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Sm}),Tm=et({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),km=et({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:vm}),Am=et({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),nh={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},rh=/[A-Z]/g,Gl=/-[a-z]/g,ah=/^data[-\w.:]+$/i;function ih(e,t){const n=Ys(t);let r=t,a=ye;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ah.test(t)){if(t.charAt(4)==="-"){const i=t.slice(5).replace(Gl,sh);r="data"+i.charAt(0).toUpperCase()+i.slice(1)}else{const i=t.slice(4);if(!Gl.test(i)){let o=i.replace(rh,oh);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}a=sl}return new a(r,t)}function oh(e){return"-"+e.toLowerCase()}function sh(e){return e.charAt(1).toUpperCase()}const lh=Em([ym,eh,Tm,km,Am],"html"),ll=Em([ym,th,Tm,km,Am],"svg");function uh(e){return e.join(" ").trim()}var Ye={},Vt,$l;function ch(){if($l)return Vt;$l=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,s=/^\s+|\s+$/g,l=`
2
2
  `,u="/",d="*",c="",g="comment",p="declaration";function m(T,E){if(typeof T!="string")throw new TypeError("First argument must be a string");if(!T)return[];E=E||{};var y=1,b=1;function A(M){var L=M.match(t);L&&(y+=L.length);var G=M.lastIndexOf(l);b=~G?M.length-G:b+M.length}function R(){var M={line:y,column:b};return function(L){return L.position=new f(M),_(),L}}function f(M){this.start=M,this.end={line:y,column:b},this.source=E.source}f.prototype.content=T;function w(M){var L=new Error(E.source+":"+y+":"+b+": "+M);if(L.reason=M,L.filename=E.source,L.line=y,L.column=b,L.source=T,!E.silent)throw L}function C(M){var L=M.exec(T);if(L){var G=L[0];return A(G),T=T.slice(G.length),L}}function _(){C(n)}function k(M){var L;for(M=M||[];L=N();)L!==!1&&M.push(L);return M}function N(){var M=R();if(!(u!=T.charAt(0)||d!=T.charAt(1))){for(var L=2;c!=T.charAt(L)&&(d!=T.charAt(L)||u!=T.charAt(L+1));)++L;if(L+=2,c===T.charAt(L-1))return w("End of comment missing");var G=T.slice(2,L-2);return b+=2,A(G),T=T.slice(L),b+=2,M({type:g,comment:G})}}function D(){var M=R(),L=C(r);if(L){if(N(),!C(a))return w("property missing ':'");var G=C(i),V=M({type:p,property:S(L[0].replace(e,c)),value:G?S(G[0].replace(e,c)):c});return C(o),V}}function B(){var M=[];k(M);for(var L;L=D();)L!==!1&&(M.push(L),k(M));return M}return _(),B()}function S(T){return T?T.replace(s,c):c}return Vt=m,Vt}var zl;function dh(){if(zl)return Ye;zl=1;var e=Ye&&Ye.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ye,"__esModule",{value:!0}),Ye.default=n;const t=e(ch());function n(r,a){let i=null;if(!r||typeof r!="string")return i;const o=(0,t.default)(r),s=typeof a=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:d}=l;s?a(u,d,l):d&&(i=i||{},i[u]=d)}),i}return Ye}var lt={},Hl;function ph(){if(Hl)return lt;Hl=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,i=function(u){return!u||n.test(u)||e.test(u)},o=function(u,d){return d.toUpperCase()},s=function(u,d){return"".concat(d,"-")},l=function(u,d){return d===void 0&&(d={}),i(u)?u:(u=u.toLowerCase(),d.reactCompat?u=u.replace(a,s):u=u.replace(r,s),u.replace(t,o))};return lt.camelCase=l,lt}var ut,jl;function gh(){if(jl)return ut;jl=1;var e=ut&&ut.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(dh()),n=ph();function r(a,i){var o={};return!a||typeof a!="string"||(0,t.default)(a,function(s,l){s&&l&&(o[(0,n.camelCase)(s,i)]=l)}),o}return r.default=r,ut=r,ut}var fh=gh();const mh=ol(fh),Rm=wm("end"),ul=wm("start");function wm(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function bh(e){const t=ul(e),n=Rm(e);if(t&&n)return{start:t,end:n}}function pt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Vl(e.position):"start"in e||"end"in e?Vl(e):"line"in e||"column"in e?Zs(e):""}function Zs(e){return Wl(e&&e.line)+":"+Wl(e&&e.column)}function Vl(e){return Zs(e&&e.start)+"-"+Zs(e&&e.end)}function Wl(e){return e&&typeof e=="number"?e:1}class le extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",i={},o=!1;if(n&&("line"in n&&"column"in n?i={place:n}:"start"in n&&"end"in n?i={place:n}:"type"in n?i={ancestors:[n],place:n.position}:i={...n}),typeof t=="string"?a=t:!i.cause&&t&&(o=!0,a=t.message,i.cause=t),!i.ruleId&&!i.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?i.ruleId=r:(i.source=r.slice(0,l),i.ruleId=r.slice(l+1))}if(!i.place&&i.ancestors&&i.ancestors){const l=i.ancestors[i.ancestors.length-1];l&&(i.place=l.position)}const s=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=s?s.line:void 0,this.name=pt(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=o&&i.cause&&typeof i.cause.stack=="string"?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}le.prototype.file="";le.prototype.name="";le.prototype.reason="";le.prototype.message="";le.prototype.stack="";le.prototype.column=void 0;le.prototype.line=void 0;le.prototype.ancestors=void 0;le.prototype.cause=void 0;le.prototype.fatal=void 0;le.prototype.place=void 0;le.prototype.ruleId=void 0;le.prototype.source=void 0;const cl={}.hasOwnProperty,hh=new Map,Eh=/[A-Z]/g,yh=new Set(["table","tbody","thead","tfoot","tr"]),Sh=new Set(["td","th"]),_m="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function vh(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=Nh(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Ih(n,t.jsx,t.jsxs)}const a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?ll:lh,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},i=Im(a,e,void 0);return i&&typeof i!="string"?i:a.create(e,a.Fragment,{children:i||void 0},void 0)}function Im(e,t,n){if(t.type==="element")return Th(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return kh(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Rh(e,t,n);if(t.type==="mdxjsEsm")return Ah(e,t);if(t.type==="root")return wh(e,t,n);if(t.type==="text")return _h(e,t)}function Th(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=ll,e.schema=a),e.ancestors.push(t);const i=Cm(e,t.tagName,!1),o=Ch(e,t);let s=pl(e,t);return yh.has(t.tagName)&&(s=s.filter(function(l){return typeof l=="string"?!Qb(l):!0})),Nm(e,o,i,t),dl(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function kh(e,t){if(t.data&&t.data.estree&&e.evaluater){const r=t.data.estree.body[0];return r.type,e.evaluater.evaluateExpression(r.expression)}mt(e,t.position)}function Ah(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);mt(e,t.position)}function Rh(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=ll,e.schema=a),e.ancestors.push(t);const i=t.name===null?e.Fragment:Cm(e,t.name,!0),o=xh(e,t),s=pl(e,t);return Nm(e,o,i,t),dl(o,s),e.ancestors.pop(),e.schema=r,e.create(t,i,o,n)}function wh(e,t,n){const r={};return dl(r,pl(e,t)),e.create(t,e.Fragment,r,n)}function _h(e,t){return t.value}function Nm(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function dl(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Ih(e,t,n){return r;function r(a,i,o,s){const u=Array.isArray(o.children)?n:t;return s?u(i,o,s):u(i,o)}}function Nh(e,t){return n;function n(r,a,i,o){const s=Array.isArray(i.children),l=ul(r);return t(a,i,o,s,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Ch(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&cl.call(t.properties,a)){const i=Oh(e,a,t.properties[a]);if(i){const[o,s]=i;e.tableCellAlignToStyle&&o==="align"&&typeof s=="string"&&Sh.has(t.tagName)?r=s:n[o]=s}}if(r){const i=n.style||(n.style={});i[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function xh(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const s=o.properties[0];s.type,Object.assign(n,e.evaluater.evaluateExpression(s.argument))}else mt(e,t.position);else{const a=r.name;let i;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const s=r.value.data.estree.body[0];s.type,i=e.evaluater.evaluateExpression(s.expression)}else mt(e,t.position);else i=r.value===null?!0:r.value;n[a]=i}return n}function pl(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:hh;for(;++r<t.children.length;){const i=t.children[r];let o;if(e.passKeys){const l=i.type==="element"?i.tagName:i.type==="mdxJsxFlowElement"||i.type==="mdxJsxTextElement"?i.name:void 0;if(l){const u=a.get(l)||0;o=l+"-"+u,a.set(l,u+1)}}const s=Im(e,i,o);s!==void 0&&n.push(s)}return n}function Oh(e,t,n){const r=ih(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Wb(n):uh(n)),r.property==="style"){let a=typeof n=="object"?n:Lh(e,String(n));return e.stylePropertyNameCase==="css"&&(a=Dh(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?nh[r.property]||r.property:r.attribute,n]}}function Lh(e,t){try{return mh(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new le("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=_m+"#cannot-parse-style-attribute",a}}function Cm(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let i=-1,o;for(;++i<a.length;){const s=Ul(a[i])?{type:"Identifier",name:a[i]}:{type:"Literal",value:a[i]};o=o?{type:"MemberExpression",object:o,property:s,computed:!!(i&&s.type==="Literal"),optional:!1}:s}r=o}else r=Ul(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return cl.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);mt(e)}function mt(e,t){const n=new le("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=_m+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Dh(e){const t={};let n;for(n in e)cl.call(e,n)&&(t[Mh(n)]=e[n]);return t}function Mh(e){let t=e.replace(Eh,Fh);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Fh(e){return"-"+e.toLowerCase()}const Wt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Ph={};function gl(e,t){const n=Ph,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return xm(e,r,a)}function xm(e,t,n){if(Uh(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return Yl(e.children,t,n)}return Array.isArray(e)?Yl(e,t,n):""}function Yl(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=xm(e[a],t,n);return r.join("")}function Uh(e){return!!(e&&typeof e=="object")}const Kl=document.createElement("i");function fl(e){const t="&"+e+";";Kl.innerHTML=t;const n=Kl.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Ae(e,t,n,r){const a=e.length;let i=0,o;if(t<0?t=-t>a?0:a+t:t=t>a?a:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);i<r.length;)o=r.slice(i,i+1e4),o.unshift(t,0),e.splice(...o),i+=1e4,t+=1e4}function we(e,t){return e.length>0?(Ae(e,e.length,0,t),e):t}const Xl={}.hasOwnProperty;function Om(e){const t={};let n=-1;for(;++n<e.length;)Bh(t,e[n]);return t}function Bh(e,t){let n;for(n in t){const a=(Xl.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){Xl.call(a,o)||(a[o]=[]);const s=i[o];qh(a[o],Array.isArray(s)?s:s?[s]:[])}}}function qh(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Ae(e,0,0,r)}function Lm(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function Ie(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fe=$e(/[A-Za-z]/),se=$e(/[\dA-Za-z]/),Gh=$e(/[#-'*+\--9=?A-Z^-~]/);function Ct(e){return e!==null&&(e<32||e===127)}const Qs=$e(/\d/),$h=$e(/[\dA-Fa-f]/),zh=$e(/[!-/:-@[-`{-~]/);function U(e){return e!==null&&e<-2}function J(e){return e!==null&&(e<0||e===32)}function W(e){return e===-2||e===-1||e===32}const Dt=$e(new RegExp("\\p{P}|\\p{S}","u")),He=$e(/\s/);function $e(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function tt(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const i=e.charCodeAt(n);let o="";if(i===37&&se(e.charCodeAt(n+1))&&se(e.charCodeAt(n+2)))a=2;else if(i<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(i))||(o=String.fromCharCode(i));else if(i>55295&&i<57344){const s=e.charCodeAt(n+1);i<56320&&s>56319&&s<57344?(o=String.fromCharCode(i,s),a=1):o="�"}else o=String.fromCharCode(i);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+a+1,o=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function Y(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let i=0;return o;function o(l){return W(l)?(e.enter(n),s(l)):t(l)}function s(l){return W(l)&&i++<a?(e.consume(l),s):(e.exit(n),t(l))}}const Hh={tokenize:jh};function jh(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Y(e,t,"linePrefix")}function a(s){return e.enter("paragraph"),i(s)}function i(s){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(s)}function o(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return U(s)?(e.consume(s),e.exit("chunkText"),i):(e.consume(s),o)}}const Vh={tokenize:Wh},Zl={tokenize:Yh};function Wh(e){const t=this,n=[];let r=0,a,i,o;return s;function s(b){if(r<n.length){const A=n[r];return t.containerState=A[1],e.attempt(A[0].continuation,l,u)(b)}return u(b)}function l(b){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&y();const A=t.events.length;let R=A,f;for(;R--;)if(t.events[R][0]==="exit"&&t.events[R][1].type==="chunkFlow"){f=t.events[R][1].end;break}E(r);let w=A;for(;w<t.events.length;)t.events[w][1].end={...f},w++;return Ae(t.events,R+1,0,t.events.slice(A)),t.events.length=w,u(b)}return s(b)}function u(b){if(r===n.length){if(!a)return g(b);if(a.currentConstruct&&a.currentConstruct.concrete)return m(b);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Zl,d,c)(b)}function d(b){return a&&y(),E(r),g(b)}function c(b){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(b)}function g(b){return t.containerState={},e.attempt(Zl,p,m)(b)}function p(b){return r++,n.push([t.currentConstruct,t.containerState]),g(b)}function m(b){if(b===null){a&&y(),E(0),e.consume(b);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:i}),S(b)}function S(b){if(b===null){T(e.exit("chunkFlow"),!0),E(0),e.consume(b);return}return U(b)?(e.consume(b),T(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(b),S)}function T(b,A){const R=t.sliceStream(b);if(A&&R.push(null),b.previous=i,i&&(i.next=b),i=b,a.defineSkip(b.start),a.write(R),t.parser.lazy[b.start.line]){let f=a.events.length;for(;f--;)if(a.events[f][1].start.offset<o&&(!a.events[f][1].end||a.events[f][1].end.offset>o))return;const w=t.events.length;let C=w,_,k;for(;C--;)if(t.events[C][0]==="exit"&&t.events[C][1].type==="chunkFlow"){if(_){k=t.events[C][1].end;break}_=!0}for(E(r),f=w;f<t.events.length;)t.events[f][1].end={...k},f++;Ae(t.events,C+1,0,t.events.slice(w)),t.events.length=f}}function E(b){let A=n.length;for(;A-- >b;){const R=n[A];t.containerState=R[1],R[0].exit.call(t,e)}n.length=b}function y(){a.write([null]),i=void 0,a=void 0,t.containerState._closeFlow=void 0}}function Yh(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Je(e){if(e===null||J(e)||He(e))return 1;if(Dt(e))return 2}function Mt(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const i=e[a].resolveAll;i&&!r.includes(i)&&(t=i(t,n),r.push(i))}return t}const Js={name:"attention",resolveAll:Kh,tokenize:Xh};function Kh(e,t){let n=-1,r,a,i,o,s,l,u,d;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const c={...e[r][1].end},g={...e[n][1].start};Ql(c,-l),Ql(g,l),o={type:l>1?"strongSequence":"emphasisSequence",start:c,end:{...e[r][1].end}},s={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:g},i={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...o.start},end:{...s.end}},e[r][1].end={...o.start},e[n][1].start={...s.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=we(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=we(u,[["enter",a,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=we(u,Mt(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=we(u,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=we(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Ae(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function Xh(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Je(r);let i;return o;function o(l){return i=l,e.enter("attentionSequence"),s(l)}function s(l){if(l===i)return e.consume(l),s;const u=e.exit("attentionSequence"),d=Je(l),c=!d||d===2&&a||n.includes(l),g=!a||a===2&&d||n.includes(r);return u._open=!!(i===42?c:c&&(a||!g)),u._close=!!(i===42?g:g&&(d||!c)),t(l)}}function Ql(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const Zh={name:"autolink",tokenize:Qh};function Qh(e,t,n){let r=0;return a;function a(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i}function i(p){return fe(p)?(e.consume(p),o):p===64?n(p):u(p)}function o(p){return p===43||p===45||p===46||se(p)?(r=1,s(p)):u(p)}function s(p){return p===58?(e.consume(p),r=0,l):(p===43||p===45||p===46||se(p))&&r++<32?(e.consume(p),s):(r=0,u(p))}function l(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||Ct(p)?n(p):(e.consume(p),l)}function u(p){return p===64?(e.consume(p),d):Gh(p)?(e.consume(p),u):n(p)}function d(p){return se(p)?c(p):n(p)}function c(p){return p===46?(e.consume(p),r=0,d):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):g(p)}function g(p){if((p===45||se(p))&&r++<63){const m=p===45?g:c;return e.consume(p),m}return n(p)}}const Et={partial:!0,tokenize:Jh};function Jh(e,t,n){return r;function r(i){return W(i)?Y(e,a,"linePrefix")(i):a(i)}function a(i){return i===null||U(i)?t(i):n(i)}}const Dm={continuation:{tokenize:tE},exit:nE,name:"blockQuote",tokenize:eE};function eE(e,t,n){const r=this;return a;function a(o){if(o===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),i}return n(o)}function i(o){return W(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function tE(e,t,n){const r=this;return a;function a(o){return W(o)?Y(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):i(o)}function i(o){return e.attempt(Dm,t,n)(o)}}function nE(e){e.exit("blockQuote")}const Mm={name:"characterEscape",tokenize:rE};function rE(e,t,n){return r;function r(i){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(i),e.exit("escapeMarker"),a}function a(i){return zh(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}const Fm={name:"characterReference",tokenize:aE};function aE(e,t,n){const r=this;let a=0,i,o;return s;function s(c){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),l}function l(c){return c===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(c),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),i=31,o=se,d(c))}function u(c){return c===88||c===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(c),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=$h,d):(e.enter("characterReferenceValue"),i=7,o=Qs,d(c))}function d(c){if(c===59&&a){const g=e.exit("characterReferenceValue");return o===se&&!fl(r.sliceSerialize(g))?n(c):(e.enter("characterReferenceMarker"),e.consume(c),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(c)&&a++<i?(e.consume(c),d):n(c)}}const Jl={partial:!0,tokenize:oE},eu={concrete:!0,name:"codeFenced",tokenize:iE};function iE(e,t,n){const r=this,a={partial:!0,tokenize:R};let i=0,o=0,s;return l;function l(f){return u(f)}function u(f){const w=r.events[r.events.length-1];return i=w&&w[1].type==="linePrefix"?w[2].sliceSerialize(w[1],!0).length:0,s=f,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),d(f)}function d(f){return f===s?(o++,e.consume(f),d):o<3?n(f):(e.exit("codeFencedFenceSequence"),W(f)?Y(e,c,"whitespace")(f):c(f))}function c(f){return f===null||U(f)?(e.exit("codeFencedFence"),r.interrupt?t(f):e.check(Jl,S,A)(f)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),g(f))}function g(f){return f===null||U(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(f)):W(f)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,p,"whitespace")(f)):f===96&&f===s?n(f):(e.consume(f),g)}function p(f){return f===null||U(f)?c(f):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),m(f))}function m(f){return f===null||U(f)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(f)):f===96&&f===s?n(f):(e.consume(f),m)}function S(f){return e.attempt(a,A,T)(f)}function T(f){return e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),E}function E(f){return i>0&&W(f)?Y(e,y,"linePrefix",i+1)(f):y(f)}function y(f){return f===null||U(f)?e.check(Jl,S,A)(f):(e.enter("codeFlowValue"),b(f))}function b(f){return f===null||U(f)?(e.exit("codeFlowValue"),y(f)):(e.consume(f),b)}function A(f){return e.exit("codeFenced"),t(f)}function R(f,w,C){let _=0;return k;function k(L){return f.enter("lineEnding"),f.consume(L),f.exit("lineEnding"),N}function N(L){return f.enter("codeFencedFence"),W(L)?Y(f,D,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(L):D(L)}function D(L){return L===s?(f.enter("codeFencedFenceSequence"),B(L)):C(L)}function B(L){return L===s?(_++,f.consume(L),B):_>=o?(f.exit("codeFencedFenceSequence"),W(L)?Y(f,M,"whitespace")(L):M(L)):C(L)}function M(L){return L===null||U(L)?(f.exit("codeFencedFence"),w(L)):C(L)}}}function oE(e,t,n){const r=this;return a;function a(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}const Yt={name:"codeIndented",tokenize:lE},sE={partial:!0,tokenize:uE};function lE(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),Y(e,i,"linePrefix",5)(u)}function i(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):U(u)?e.attempt(sE,o,l)(u):(e.enter("codeFlowValue"),s(u))}function s(u){return u===null||U(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),s)}function l(u){return e.exit("codeIndented"),t(u)}}function uE(e,t,n){const r=this;return a;function a(o){return r.parser.lazy[r.now().line]?n(o):U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):Y(e,i,"linePrefix",5)(o)}function i(o){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):U(o)?a(o):n(o)}}const cE={name:"codeText",previous:pE,resolve:dE,tokenize:gE};function dE(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function pE(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function gE(e,t,n){let r=0,a,i;return o;function o(c){return e.enter("codeText"),e.enter("codeTextSequence"),s(c)}function s(c){return c===96?(e.consume(c),r++,s):(e.exit("codeTextSequence"),l(c))}function l(c){return c===null?n(c):c===32?(e.enter("space"),e.consume(c),e.exit("space"),l):c===96?(i=e.enter("codeTextSequence"),a=0,d(c)):U(c)?(e.enter("lineEnding"),e.consume(c),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(c))}function u(c){return c===null||c===32||c===96||U(c)?(e.exit("codeTextData"),l(c)):(e.consume(c),u)}function d(c){return c===96?(e.consume(c),a++,d):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(c)):(i.type="codeTextData",u(c))}}class fE{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const i=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&ct(this.left,r),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),ct(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),ct(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);ct(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);ct(this.left,n.reverse())}}}function ct(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Pm(e){const t={};let n=-1,r,a,i,o,s,l,u;const d=new fE(e);for(;++n<d.length;){for(;n in t;)n=t[n];if(r=d.get(n),n&&r[1].type==="chunkFlow"&&d.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,i=0,i<l.length&&l[i][1].type==="lineEndingBlank"&&(i+=2),i<l.length&&l[i][1].type==="content"))for(;++i<l.length&&l[i][1].type!=="content";)l[i][1].type==="chunkText"&&(l[i][1]._isInFirstContentOfListItem=!0,i++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,mE(d,n)),n=t[n],u=!0);else if(r[1]._container){for(i=n,a=void 0;i--;)if(o=d.get(i),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(a&&(d.get(a)[1].type="lineEndingBlank"),o[1].type="lineEnding",a=i);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;a&&(r[1].end={...d.get(a)[1].start},s=d.slice(a,n),s.unshift(r),d.splice(a,n-a+1,s))}}return Ae(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!u}function mE(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const i=[];let o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const s=o.events,l=[],u={};let d,c,g=-1,p=n,m=0,S=0;const T=[S];for(;p;){for(;e.get(++a)[1]!==p;);i.push(a),p._tokenizer||(d=r.sliceStream(p),p.next||d.push(null),c&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(d),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),c=p,p=p.next}for(p=n;++g<s.length;)s[g][0]==="exit"&&s[g-1][0]==="enter"&&s[g][1].type===s[g-1][1].type&&s[g][1].start.line!==s[g][1].end.line&&(S=g+1,T.push(S),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):T.pop(),g=T.length;g--;){const E=s.slice(T[g],T[g+1]),y=i.pop();l.push([y,y+E.length-1]),e.splice(y,2,E)}for(l.reverse(),g=-1;++g<l.length;)u[m+l[g][0]]=m+l[g][1],m+=l[g][1]-l[g][0]-1;return u}const bE={resolve:EE,tokenize:yE},hE={partial:!0,tokenize:SE};function EE(e){return Pm(e),e}function yE(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(s)}function a(s){return s===null?i(s):U(s)?e.check(hE,o,i)(s):(e.consume(s),a)}function i(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function o(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function SE(e,t,n){const r=this;return a;function a(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),Y(e,i,"linePrefix")}function i(o){if(o===null||U(o))return n(o);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}}function Um(e,t,n,r,a,i,o,s,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return c;function c(E){return E===60?(e.enter(r),e.enter(a),e.enter(i),e.consume(E),e.exit(i),g):E===null||E===32||E===41||Ct(E)?n(E):(e.enter(r),e.enter(o),e.enter(s),e.enter("chunkString",{contentType:"string"}),S(E))}function g(E){return E===62?(e.enter(i),e.consume(E),e.exit(i),e.exit(a),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(E))}function p(E){return E===62?(e.exit("chunkString"),e.exit(s),g(E)):E===null||E===60||U(E)?n(E):(e.consume(E),E===92?m:p)}function m(E){return E===60||E===62||E===92?(e.consume(E),p):p(E)}function S(E){return!d&&(E===null||E===41||J(E))?(e.exit("chunkString"),e.exit(s),e.exit(o),e.exit(r),t(E)):d<u&&E===40?(e.consume(E),d++,S):E===41?(e.consume(E),d--,S):E===null||E===32||E===40||Ct(E)?n(E):(e.consume(E),E===92?T:S)}function T(E){return E===40||E===41||E===92?(e.consume(E),S):S(E)}}function Bm(e,t,n,r,a,i){const o=this;let s=0,l;return u;function u(p){return e.enter(r),e.enter(a),e.consume(p),e.exit(a),e.enter(i),d}function d(p){return s>999||p===null||p===91||p===93&&!l||p===94&&!s&&"_hiddenFootnoteSupport"in o.parser.constructs?n(p):p===93?(e.exit(i),e.enter(a),e.consume(p),e.exit(a),e.exit(r),t):U(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===null||p===91||p===93||U(p)||s++>999?(e.exit("chunkString"),d(p)):(e.consume(p),l||(l=!W(p)),p===92?g:c)}function g(p){return p===91||p===92||p===93?(e.consume(p),s++,c):c(p)}}function qm(e,t,n,r,a,i){let o;return s;function s(g){return g===34||g===39||g===40?(e.enter(r),e.enter(a),e.consume(g),e.exit(a),o=g===40?41:g,l):n(g)}function l(g){return g===o?(e.enter(a),e.consume(g),e.exit(a),e.exit(r),t):(e.enter(i),u(g))}function u(g){return g===o?(e.exit(i),l(o)):g===null?n(g):U(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),Y(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(g))}function d(g){return g===o||g===null||U(g)?(e.exit("chunkString"),u(g)):(e.consume(g),g===92?c:d)}function c(g){return g===o||g===92?(e.consume(g),d):d(g)}}function gt(e,t){let n;return r;function r(a){return U(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):W(a)?Y(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const vE={name:"definition",tokenize:kE},TE={partial:!0,tokenize:AE};function kE(e,t,n){const r=this;let a;return i;function i(p){return e.enter("definition"),o(p)}function o(p){return Bm.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return a=Ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),l):n(p)}function l(p){return J(p)?gt(e,u)(p):u(p)}function u(p){return Um(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function d(p){return e.attempt(TE,c,c)(p)}function c(p){return W(p)?Y(e,g,"whitespace")(p):g(p)}function g(p){return p===null||U(p)?(e.exit("definition"),r.parser.defined.push(a),t(p)):n(p)}}function AE(e,t,n){return r;function r(s){return J(s)?gt(e,a)(s):n(s)}function a(s){return qm(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function i(s){return W(s)?Y(e,o,"whitespace")(s):o(s)}function o(s){return s===null||U(s)?t(s):n(s)}}const RE={name:"hardBreakEscape",tokenize:wE};function wE(e,t,n){return r;function r(i){return e.enter("hardBreakEscape"),e.consume(i),a}function a(i){return U(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}const _E={name:"headingAtx",resolve:IE,tokenize:NE};function IE(e,t){let n=e.length-2,r=3,a,i;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},i={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Ae(e,r,n-r+1,[["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t]])),e}function NE(e,t,n){let r=0;return a;function a(d){return e.enter("atxHeading"),i(d)}function i(d){return e.enter("atxHeadingSequence"),o(d)}function o(d){return d===35&&r++<6?(e.consume(d),o):d===null||J(d)?(e.exit("atxHeadingSequence"),s(d)):n(d)}function s(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||U(d)?(e.exit("atxHeading"),t(d)):W(d)?Y(e,s,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),s(d))}function u(d){return d===null||d===35||J(d)?(e.exit("atxHeadingText"),s(d)):(e.consume(d),u)}}const CE=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],tu=["pre","script","style","textarea"],xE={concrete:!0,name:"htmlFlow",resolveTo:DE,tokenize:ME},OE={partial:!0,tokenize:PE},LE={partial:!0,tokenize:FE};function DE(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function ME(e,t,n){const r=this;let a,i,o,s,l;return u;function u(h){return d(h)}function d(h){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(h),c}function c(h){return h===33?(e.consume(h),g):h===47?(e.consume(h),i=!0,S):h===63?(e.consume(h),a=3,r.interrupt?t:v):fe(h)?(e.consume(h),o=String.fromCharCode(h),T):n(h)}function g(h){return h===45?(e.consume(h),a=2,p):h===91?(e.consume(h),a=5,s=0,m):fe(h)?(e.consume(h),a=4,r.interrupt?t:v):n(h)}function p(h){return h===45?(e.consume(h),r.interrupt?t:v):n(h)}function m(h){const z="CDATA[";return h===z.charCodeAt(s++)?(e.consume(h),s===z.length?r.interrupt?t:D:m):n(h)}function S(h){return fe(h)?(e.consume(h),o=String.fromCharCode(h),T):n(h)}function T(h){if(h===null||h===47||h===62||J(h)){const z=h===47,Q=o.toLowerCase();return!z&&!i&&tu.includes(Q)?(a=1,r.interrupt?t(h):D(h)):CE.includes(o.toLowerCase())?(a=6,z?(e.consume(h),E):r.interrupt?t(h):D(h)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(h):i?y(h):b(h))}return h===45||se(h)?(e.consume(h),o+=String.fromCharCode(h),T):n(h)}function E(h){return h===62?(e.consume(h),r.interrupt?t:D):n(h)}function y(h){return W(h)?(e.consume(h),y):k(h)}function b(h){return h===47?(e.consume(h),k):h===58||h===95||fe(h)?(e.consume(h),A):W(h)?(e.consume(h),b):k(h)}function A(h){return h===45||h===46||h===58||h===95||se(h)?(e.consume(h),A):R(h)}function R(h){return h===61?(e.consume(h),f):W(h)?(e.consume(h),R):b(h)}function f(h){return h===null||h===60||h===61||h===62||h===96?n(h):h===34||h===39?(e.consume(h),l=h,w):W(h)?(e.consume(h),f):C(h)}function w(h){return h===l?(e.consume(h),l=null,_):h===null||U(h)?n(h):(e.consume(h),w)}function C(h){return h===null||h===34||h===39||h===47||h===60||h===61||h===62||h===96||J(h)?R(h):(e.consume(h),C)}function _(h){return h===47||h===62||W(h)?b(h):n(h)}function k(h){return h===62?(e.consume(h),N):n(h)}function N(h){return h===null||U(h)?D(h):W(h)?(e.consume(h),N):n(h)}function D(h){return h===45&&a===2?(e.consume(h),G):h===60&&a===1?(e.consume(h),V):h===62&&a===4?(e.consume(h),H):h===63&&a===3?(e.consume(h),v):h===93&&a===5?(e.consume(h),K):U(h)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(OE,j,B)(h)):h===null||U(h)?(e.exit("htmlFlowData"),B(h)):(e.consume(h),D)}function B(h){return e.check(LE,M,j)(h)}function M(h){return e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),L}function L(h){return h===null||U(h)?B(h):(e.enter("htmlFlowData"),D(h))}function G(h){return h===45?(e.consume(h),v):D(h)}function V(h){return h===47?(e.consume(h),o="",P):D(h)}function P(h){if(h===62){const z=o.toLowerCase();return tu.includes(z)?(e.consume(h),H):D(h)}return fe(h)&&o.length<8?(e.consume(h),o+=String.fromCharCode(h),P):D(h)}function K(h){return h===93?(e.consume(h),v):D(h)}function v(h){return h===62?(e.consume(h),H):h===45&&a===2?(e.consume(h),v):D(h)}function H(h){return h===null||U(h)?(e.exit("htmlFlowData"),j(h)):(e.consume(h),H)}function j(h){return e.exit("htmlFlow"),t(h)}}function FE(e,t,n){const r=this;return a;function a(o){return U(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),i):n(o)}function i(o){return r.parser.lazy[r.now().line]?n(o):t(o)}}function PE(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(Et,t,n)}}const UE={name:"htmlText",tokenize:BE};function BE(e,t,n){const r=this;let a,i,o;return s;function s(v){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(v),l}function l(v){return v===33?(e.consume(v),u):v===47?(e.consume(v),R):v===63?(e.consume(v),b):fe(v)?(e.consume(v),C):n(v)}function u(v){return v===45?(e.consume(v),d):v===91?(e.consume(v),i=0,m):fe(v)?(e.consume(v),y):n(v)}function d(v){return v===45?(e.consume(v),p):n(v)}function c(v){return v===null?n(v):v===45?(e.consume(v),g):U(v)?(o=c,V(v)):(e.consume(v),c)}function g(v){return v===45?(e.consume(v),p):c(v)}function p(v){return v===62?G(v):v===45?g(v):c(v)}function m(v){const H="CDATA[";return v===H.charCodeAt(i++)?(e.consume(v),i===H.length?S:m):n(v)}function S(v){return v===null?n(v):v===93?(e.consume(v),T):U(v)?(o=S,V(v)):(e.consume(v),S)}function T(v){return v===93?(e.consume(v),E):S(v)}function E(v){return v===62?G(v):v===93?(e.consume(v),E):S(v)}function y(v){return v===null||v===62?G(v):U(v)?(o=y,V(v)):(e.consume(v),y)}function b(v){return v===null?n(v):v===63?(e.consume(v),A):U(v)?(o=b,V(v)):(e.consume(v),b)}function A(v){return v===62?G(v):b(v)}function R(v){return fe(v)?(e.consume(v),f):n(v)}function f(v){return v===45||se(v)?(e.consume(v),f):w(v)}function w(v){return U(v)?(o=w,V(v)):W(v)?(e.consume(v),w):G(v)}function C(v){return v===45||se(v)?(e.consume(v),C):v===47||v===62||J(v)?_(v):n(v)}function _(v){return v===47?(e.consume(v),G):v===58||v===95||fe(v)?(e.consume(v),k):U(v)?(o=_,V(v)):W(v)?(e.consume(v),_):G(v)}function k(v){return v===45||v===46||v===58||v===95||se(v)?(e.consume(v),k):N(v)}function N(v){return v===61?(e.consume(v),D):U(v)?(o=N,V(v)):W(v)?(e.consume(v),N):_(v)}function D(v){return v===null||v===60||v===61||v===62||v===96?n(v):v===34||v===39?(e.consume(v),a=v,B):U(v)?(o=D,V(v)):W(v)?(e.consume(v),D):(e.consume(v),M)}function B(v){return v===a?(e.consume(v),a=void 0,L):v===null?n(v):U(v)?(o=B,V(v)):(e.consume(v),B)}function M(v){return v===null||v===34||v===39||v===60||v===61||v===96?n(v):v===47||v===62||J(v)?_(v):(e.consume(v),M)}function L(v){return v===47||v===62||J(v)?_(v):n(v)}function G(v){return v===62?(e.consume(v),e.exit("htmlTextData"),e.exit("htmlText"),t):n(v)}function V(v){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),P}function P(v){return W(v)?Y(e,K,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(v):K(v)}function K(v){return e.enter("htmlTextData"),o(v)}}const ml={name:"labelEnd",resolveAll:zE,resolveTo:HE,tokenize:jE},qE={tokenize:VE},GE={tokenize:WE},$E={tokenize:YE};function zE(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Ae(e,0,e.length,n),e}function HE(e,t){let n=e.length,r=0,a,i,o,s;for(;n--;)if(a=e[n][1],i){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(i=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(o=n);const l={type:e[i][1].type==="labelLink"?"link":"image",start:{...e[i][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[i][1].start},end:{...e[o][1].end}},d={type:"labelText",start:{...e[i+r+2][1].end},end:{...e[o-2][1].start}};return s=[["enter",l,t],["enter",u,t]],s=we(s,e.slice(i+1,i+r+3)),s=we(s,[["enter",d,t]]),s=we(s,Mt(t.parser.constructs.insideSpan.null,e.slice(i+r+4,o-3),t)),s=we(s,[["exit",d,t],e[o-2],e[o-1],["exit",u,t]]),s=we(s,e.slice(o+1)),s=we(s,[["exit",l,t]]),Ae(e,i,e.length,s),e}function jE(e,t,n){const r=this;let a=r.events.length,i,o;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){i=r.events[a][1];break}return s;function s(g){return i?i._inactive?c(g):(o=r.parser.defined.includes(Ie(r.sliceSerialize({start:i.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(g),e.exit("labelMarker"),e.exit("labelEnd"),l):n(g)}function l(g){return g===40?e.attempt(qE,d,o?d:c)(g):g===91?e.attempt(GE,d,o?u:c)(g):o?d(g):c(g)}function u(g){return e.attempt($E,d,c)(g)}function d(g){return t(g)}function c(g){return i._balanced=!0,n(g)}}function VE(e,t,n){return r;function r(c){return e.enter("resource"),e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),a}function a(c){return J(c)?gt(e,i)(c):i(c)}function i(c){return c===41?d(c):Um(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(c)}function o(c){return J(c)?gt(e,l)(c):d(c)}function s(c){return n(c)}function l(c){return c===34||c===39||c===40?qm(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(c):d(c)}function u(c){return J(c)?gt(e,d)(c):d(c)}function d(c){return c===41?(e.enter("resourceMarker"),e.consume(c),e.exit("resourceMarker"),e.exit("resource"),t):n(c)}}function WE(e,t,n){const r=this;return a;function a(s){return Bm.call(r,e,i,o,"reference","referenceMarker","referenceString")(s)}function i(s){return r.parser.defined.includes(Ie(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function o(s){return n(s)}}function YE(e,t,n){return r;function r(i){return e.enter("reference"),e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),a}function a(i){return i===93?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}const KE={name:"labelStartImage",resolveAll:ml.resolveAll,tokenize:XE};function XE(e,t,n){const r=this;return a;function a(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),i}function i(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),o):n(s)}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const ZE={name:"labelStartLink",resolveAll:ml.resolveAll,tokenize:QE};function QE(e,t,n){const r=this;return a;function a(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),i}function i(o){return o===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(o):t(o)}}const Kt={name:"lineEnding",tokenize:JE};function JE(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,t,"linePrefix")}}const _t={name:"thematicBreak",tokenize:ey};function ey(e,t,n){let r=0,a;return i;function i(u){return e.enter("thematicBreak"),o(u)}function o(u){return a=u,s(u)}function s(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||U(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),W(u)?Y(e,s,"whitespace")(u):s(u))}}const Ee={continuation:{tokenize:ay},exit:oy,name:"list",tokenize:ry},ty={partial:!0,tokenize:sy},ny={partial:!0,tokenize:iy};function ry(e,t,n){const r=this,a=r.events[r.events.length-1];let i=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,o=0;return s;function s(p){const m=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(m==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:Qs(p)){if(r.containerState.type||(r.containerState.type=m,e.enter(m,{_container:!0})),m==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(_t,n,u)(p):u(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(p)}return n(p)}function l(p){return Qs(p)&&++o<10?(e.consume(p),l):(!r.interrupt||o<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),u(p)):n(p)}function u(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Et,r.interrupt?n:d,e.attempt(ty,g,c))}function d(p){return r.containerState.initialBlankLine=!0,i++,g(p)}function c(p){return W(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),g):n(p)}function g(p){return r.containerState.size=i+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function ay(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Et,a,i);function a(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(s)}function i(s){return r.containerState.furtherBlankLines||!W(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(ny,t,o)(s))}function o(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(Ee,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function iy(e,t,n){const r=this;return Y(e,a,"listItemIndent",r.containerState.size+1);function a(i){const o=r.events[r.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(i):n(i)}}function oy(e){e.exit(this.containerState.type)}function sy(e,t,n){const r=this;return Y(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(i){const o=r.events[r.events.length-1];return!W(i)&&o&&o[1].type==="listItemPrefixWhitespace"?t(i):n(i)}}const nu={name:"setextUnderline",resolveTo:ly,tokenize:uy};function ly(e,t){let n=e.length,r,a,i;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!i&&e[n][1].type==="definition"&&(i=n);const o={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",i?(e.splice(a,0,["enter",o,t]),e.splice(i+1,0,["exit",e[r][1],t]),e[r][1].end={...e[i][1].end}):e[r][1]=o,e.push(["exit",o,t]),e}function uy(e,t,n){const r=this;let a;return i;function i(u){let d=r.events.length,c;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){c=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||c)?(e.enter("setextHeadingLine"),a=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),s(u)}function s(u){return u===a?(e.consume(u),s):(e.exit("setextHeadingLineSequence"),W(u)?Y(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||U(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const cy={tokenize:dy};function dy(e){const t=this,n=e.attempt(Et,r,e.attempt(this.parser.constructs.flowInitial,a,Y(e,e.attempt(this.parser.constructs.flow,a,e.attempt(bE,a)),"linePrefix")));return n;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const py={resolveAll:$m()},gy=Gm("string"),fy=Gm("text");function Gm(e){return{resolveAll:$m(e==="text"?my:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],i=n.attempt(a,o,s);return o;function o(d){return u(d)?i(d):s(d)}function s(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),i(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const c=a[d];let g=-1;if(c)for(;++g<c.length;){const p=c[g];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function $m(e){return t;function t(n,r){let a=-1,i;for(;++a<=n.length;)i===void 0?n[a]&&n[a][1].type==="data"&&(i=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==i+2&&(n[i][1].end=n[a-1][1].end,n.splice(i+2,a-i-2),a=i+2),i=void 0);return e?e(n,r):n}}function my(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let i=a.length,o=-1,s=0,l;for(;i--;){const u=a[i];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)s++,o--;if(o)break;o=-1}else if(u===-2)l=!0,s++;else if(u!==-1){i++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const u={type:n===e.length||l||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:i?o:r.start._bufferIndex+o,_index:r.start._index+i,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const by={42:Ee,43:Ee,45:Ee,48:Ee,49:Ee,50:Ee,51:Ee,52:Ee,53:Ee,54:Ee,55:Ee,56:Ee,57:Ee,62:Dm},hy={91:vE},Ey={[-2]:Yt,[-1]:Yt,32:Yt},yy={35:_E,42:_t,45:[nu,_t],60:xE,61:nu,95:_t,96:eu,126:eu},Sy={38:Fm,92:Mm},vy={[-5]:Kt,[-4]:Kt,[-3]:Kt,33:KE,38:Fm,42:Js,60:[Zh,UE],91:ZE,92:[RE,Mm],93:ml,95:Js,96:cE},Ty={null:[Js,py]},ky={null:[42,95]},Ay={null:[]},Ry=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:ky,contentInitial:hy,disable:Ay,document:by,flow:yy,flowInitial:Ey,insideSpan:Ty,string:Sy,text:vy},Symbol.toStringTag,{value:"Module"}));function wy(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},i=[];let o=[],s=[];const l={attempt:w(R),check:w(f),consume:y,enter:b,exit:A,interrupt:w(f,{interrupt:!0})},u={code:null,containerState:{},defineSkip:S,events:[],now:m,parser:e,previous:null,sliceSerialize:g,sliceStream:p,write:c};let d=t.tokenize.call(u,l);return t.resolveAll&&i.push(t),u;function c(N){return o=we(o,N),T(),o[o.length-1]!==null?[]:(C(t,0),u.events=Mt(i,u.events,u),u.events)}function g(N,D){return Iy(p(N),D)}function p(N){return _y(o,N)}function m(){const{_bufferIndex:N,_index:D,line:B,column:M,offset:L}=r;return{_bufferIndex:N,_index:D,line:B,column:M,offset:L}}function S(N){a[N.line]=N.column,k()}function T(){let N;for(;r._index<o.length;){const D=o[r._index];if(typeof D=="string")for(N=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===N&&r._bufferIndex<D.length;)E(D.charCodeAt(r._bufferIndex));else E(D)}}function E(N){d=d(N)}function y(N){U(N)?(r.line++,r.column=1,r.offset+=N===-3?2:1,k()):N!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=N}function b(N,D){const B=D||{};return B.type=N,B.start=m(),u.events.push(["enter",B,u]),s.push(B),B}function A(N){const D=s.pop();return D.end=m(),u.events.push(["exit",D,u]),D}function R(N,D){C(N,D.from)}function f(N,D){D.restore()}function w(N,D){return B;function B(M,L,G){let V,P,K,v;return Array.isArray(M)?j(M):"tokenize"in M?j([M]):H(M);function H(X){return ne;function ne(ae){const me=ae!==null&&X[ae],be=ae!==null&&X.null,ve=[...Array.isArray(me)?me:me?[me]:[],...Array.isArray(be)?be:be?[be]:[]];return j(ve)(ae)}}function j(X){return V=X,P=0,X.length===0?G:h(X[P])}function h(X){return ne;function ne(ae){return v=_(),K=X,X.partial||(u.currentConstruct=X),X.name&&u.parser.constructs.disable.null.includes(X.name)?Q():X.tokenize.call(D?Object.assign(Object.create(u),D):u,l,z,Q)(ae)}}function z(X){return N(K,v),L}function Q(X){return v.restore(),++P<V.length?h(V[P]):G}}}function C(N,D){N.resolveAll&&!i.includes(N)&&i.push(N),N.resolve&&Ae(u.events,D,u.events.length-D,N.resolve(u.events.slice(D),u)),N.resolveTo&&(u.events=N.resolveTo(u.events,u))}function _(){const N=m(),D=u.previous,B=u.currentConstruct,M=u.events.length,L=Array.from(s);return{from:M,restore:G};function G(){r=N,u.previous=D,u.currentConstruct=B,u.events.length=M,s=L,k()}}function k(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function _y(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,i=t.end._bufferIndex;let o;if(n===a)o=[e[n].slice(r,i)];else{if(o=e.slice(n,a),r>-1){const s=o[0];typeof s=="string"?o[0]=s.slice(r):o.shift()}i>0&&o.push(e[a].slice(0,i))}return o}function Iy(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const i=e[n];let o;if(typeof i=="string")o=i;else switch(i){case-5:{o="\r";break}case-4:{o=`
3
3
  `;break}case-3:{o=`\r
4
4
  `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&a)continue;o=" ";break}default:o=String.fromCharCode(i)}a=i===-2,r.push(o)}return r.join("")}function Ny(e){const r={constructs:Om([Ry,...(e||{}).extensions||[]]),content:a(Hh),defined:[],document:a(Vh),flow:a(cy),lazy:{},string:a(gy),text:a(fy)};return r;function a(i){return o;function o(s){return wy(r,i,s)}}}function Cy(e){for(;!Pm(e););return e}const ru=/[\0\t\n\r]/g;function xy(){let e=1,t="",n=!0,r;return a;function a(i,o,s){const l=[];let u,d,c,g,p;for(i=t+(typeof i=="string"?i.toString():new TextDecoder(o||void 0).decode(i)),c=0,t="",n&&(i.charCodeAt(0)===65279&&c++,n=void 0);c<i.length;){if(ru.lastIndex=c,u=ru.exec(i),g=u&&u.index!==void 0?u.index:i.length,p=i.charCodeAt(g),!u){t=i.slice(c);break}if(p===10&&c===g&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),c<g&&(l.push(i.slice(c,g)),e+=g-c),p){case 0:{l.push(65533),e++;break}case 9:{for(d=Math.ceil(e/4)*4,l.push(-2);e++<d;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}c=g+1}return s&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const Oy=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ly(e){return e.replace(Oy,Dy)}function Dy(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),i=a===120||a===88;return Lm(n.slice(i?2:1),i?16:10)}return fl(n)||e}const zm={}.hasOwnProperty;function My(e,t,n){return typeof t!="string"&&(n=t,t=void 0),Fy(n)(Cy(Ny(n).document().write(xy()(e,t,!0))))}function Fy(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(at),autolinkProtocol:_,autolinkEmail:_,atxHeading:i(We),blockQuote:i(be),characterEscape:_,characterReference:_,codeFenced:i(ve),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:i(ve,o),codeText:i(nt,o),codeTextData:_,data:_,codeFlowValue:_,definition:i(Le),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:i(zt),hardBreakEscape:i(_e),hardBreakTrailing:i(_e),htmlFlow:i(rt,o),htmlFlowData:_,htmlText:i(rt,o),htmlTextData:_,image:i(De),label:o,link:i(at),listItem:i(it),listItemValue:g,listOrdered:i(Ne,c),listUnordered:i(Ne),paragraph:i(Ue),reference:h,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:i(We),strong:i(ot),thematicBreak:i(ue)},exit:{atxHeading:l(),atxHeadingSequence:R,autolink:l(),autolinkEmail:me,autolinkProtocol:ae,blockQuote:l(),characterEscapeValue:k,characterReferenceMarkerHexadecimal:Q,characterReferenceMarkerNumeric:Q,characterReferenceValue:X,characterReference:ne,codeFenced:l(T),codeFencedFence:S,codeFencedFenceInfo:p,codeFencedFenceMeta:m,codeFlowValue:k,codeIndented:l(E),codeText:l(L),codeTextData:k,data:k,definition:l(),definitionDestinationString:A,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(B),htmlFlowData:k,htmlText:l(M),htmlTextData:k,image:l(V),label:K,labelText:P,lineEnding:N,link:l(G),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:z,resourceDestinationString:v,resourceTitleString:H,resource:j,setextHeading:l(C),setextHeadingLineSequence:w,setextHeadingText:f,strong:l(),thematicBreak:l()}};Hm(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(I){let x={type:"root",children:[]};const F={stack:[x],tokenStack:[],config:t,enter:s,exit:u,buffer:o,resume:d,data:n},q=[];let Z=-1;for(;++Z<I.length;)if(I[Z][1].type==="listOrdered"||I[Z][1].type==="listUnordered")if(I[Z][0]==="enter")q.push(Z);else{const ce=q.pop();Z=a(I,ce,Z)}for(Z=-1;++Z<I.length;){const ce=t[I[Z][0]];zm.call(ce,I[Z][1].type)&&ce[I[Z][1].type].call(Object.assign({sliceSerialize:I[Z][2].sliceSerialize},F),I[Z][1])}if(F.tokenStack.length>0){const ce=F.tokenStack[F.tokenStack.length-1];(ce[1]||au).call(F,void 0,ce[0])}for(x.position={start:Be(I.length>0?I[0][1].start:{line:1,column:1,offset:0}),end:Be(I.length>0?I[I.length-2][1].end:{line:1,column:1,offset:0})},Z=-1;++Z<t.transforms.length;)x=t.transforms[Z](x)||x;return x}function a(I,x,F){let q=x-1,Z=-1,ce=!1,de,pe,Te,ge;for(;++q<=F;){const oe=I[q];switch(oe[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{oe[0]==="enter"?Z++:Z--,ge=void 0;break}case"lineEndingBlank":{oe[0]==="enter"&&(de&&!ge&&!Z&&!Te&&(Te=q),ge=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ge=void 0}if(!Z&&oe[0]==="enter"&&oe[1].type==="listItemPrefix"||Z===-1&&oe[0]==="exit"&&(oe[1].type==="listUnordered"||oe[1].type==="listOrdered")){if(de){let Re=q;for(pe=void 0;Re--;){const he=I[Re];if(he[1].type==="lineEnding"||he[1].type==="lineEndingBlank"){if(he[0]==="exit")continue;pe&&(I[pe][1].type="lineEndingBlank",ce=!0),he[1].type="lineEnding",pe=Re}else if(!(he[1].type==="linePrefix"||he[1].type==="blockQuotePrefix"||he[1].type==="blockQuotePrefixWhitespace"||he[1].type==="blockQuoteMarker"||he[1].type==="listItemIndent"))break}Te&&(!pe||Te<pe)&&(de._spread=!0),de.end=Object.assign({},pe?I[pe][1].start:oe[1].end),I.splice(pe||q,0,["exit",de,oe[2]]),q++,F++}if(oe[1].type==="listItemPrefix"){const Re={type:"listItem",_spread:!1,start:Object.assign({},oe[1].start),end:void 0};de=Re,I.splice(q,0,["enter",Re,oe[2]]),q++,F++,Te=void 0,ge=!0}}}return I[x][1]._spread=ce,F}function i(I,x){return F;function F(q){s.call(this,I(q),q),x&&x.call(this,q)}}function o(){this.stack.push({type:"fragment",children:[]})}function s(I,x,F){this.stack[this.stack.length-1].children.push(I),this.stack.push(I),this.tokenStack.push([x,F||void 0]),I.position={start:Be(x.start),end:void 0}}function l(I){return x;function x(F){I&&I.call(this,F),u.call(this,F)}}function u(I,x){const F=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==I.type&&(x?x.call(this,I,q[0]):(q[1]||au).call(this,I,q[0]));else throw new Error("Cannot close `"+I.type+"` ("+pt({start:I.start,end:I.end})+"): it’s not open");F.position.end=Be(I.end)}function d(){return gl(this.stack.pop())}function c(){this.data.expectingFirstListItemValue=!0}function g(I){if(this.data.expectingFirstListItemValue){const x=this.stack[this.stack.length-2];x.start=Number.parseInt(this.sliceSerialize(I),10),this.data.expectingFirstListItemValue=void 0}}function p(){const I=this.resume(),x=this.stack[this.stack.length-1];x.lang=I}function m(){const I=this.resume(),x=this.stack[this.stack.length-1];x.meta=I}function S(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function T(){const I=this.resume(),x=this.stack[this.stack.length-1];x.value=I.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function E(){const I=this.resume(),x=this.stack[this.stack.length-1];x.value=I.replace(/(\r?\n|\r)$/g,"")}function y(I){const x=this.resume(),F=this.stack[this.stack.length-1];F.label=x,F.identifier=Ie(this.sliceSerialize(I)).toLowerCase()}function b(){const I=this.resume(),x=this.stack[this.stack.length-1];x.title=I}function A(){const I=this.resume(),x=this.stack[this.stack.length-1];x.url=I}function R(I){const x=this.stack[this.stack.length-1];if(!x.depth){const F=this.sliceSerialize(I).length;x.depth=F}}function f(){this.data.setextHeadingSlurpLineEnding=!0}function w(I){const x=this.stack[this.stack.length-1];x.depth=this.sliceSerialize(I).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function _(I){const F=this.stack[this.stack.length-1].children;let q=F[F.length-1];(!q||q.type!=="text")&&(q=Me(),q.position={start:Be(I.start),end:void 0},F.push(q)),this.stack.push(q)}function k(I){const x=this.stack.pop();x.value+=this.sliceSerialize(I),x.position.end=Be(I.end)}function N(I){const x=this.stack[this.stack.length-1];if(this.data.atHardBreak){const F=x.children[x.children.length-1];F.position.end=Be(I.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(x.type)&&(_.call(this,I),k.call(this,I))}function D(){this.data.atHardBreak=!0}function B(){const I=this.resume(),x=this.stack[this.stack.length-1];x.value=I}function M(){const I=this.resume(),x=this.stack[this.stack.length-1];x.value=I}function L(){const I=this.resume(),x=this.stack[this.stack.length-1];x.value=I}function G(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const x=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=x,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function V(){const I=this.stack[this.stack.length-1];if(this.data.inReference){const x=this.data.referenceType||"shortcut";I.type+="Reference",I.referenceType=x,delete I.url,delete I.title}else delete I.identifier,delete I.label;this.data.referenceType=void 0}function P(I){const x=this.sliceSerialize(I),F=this.stack[this.stack.length-2];F.label=Ly(x),F.identifier=Ie(x).toLowerCase()}function K(){const I=this.stack[this.stack.length-1],x=this.resume(),F=this.stack[this.stack.length-1];if(this.data.inReference=!0,F.type==="link"){const q=I.children;F.children=q}else F.alt=x}function v(){const I=this.resume(),x=this.stack[this.stack.length-1];x.url=I}function H(){const I=this.resume(),x=this.stack[this.stack.length-1];x.title=I}function j(){this.data.inReference=void 0}function h(){this.data.referenceType="collapsed"}function z(I){const x=this.resume(),F=this.stack[this.stack.length-1];F.label=x,F.identifier=Ie(this.sliceSerialize(I)).toLowerCase(),this.data.referenceType="full"}function Q(I){this.data.characterReferenceType=I.type}function X(I){const x=this.sliceSerialize(I),F=this.data.characterReferenceType;let q;F?(q=Lm(x,F==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=fl(x);const Z=this.stack[this.stack.length-1];Z.value+=q}function ne(I){const x=this.stack.pop();x.position.end=Be(I.end)}function ae(I){k.call(this,I);const x=this.stack[this.stack.length-1];x.url=this.sliceSerialize(I)}function me(I){k.call(this,I);const x=this.stack[this.stack.length-1];x.url="mailto:"+this.sliceSerialize(I)}function be(){return{type:"blockquote",children:[]}}function ve(){return{type:"code",lang:null,meta:null,value:""}}function nt(){return{type:"inlineCode",value:""}}function Le(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function zt(){return{type:"emphasis",children:[]}}function We(){return{type:"heading",depth:0,children:[]}}function _e(){return{type:"break"}}function rt(){return{type:"html",value:""}}function De(){return{type:"image",title:null,url:"",alt:null}}function at(){return{type:"link",title:null,url:"",children:[]}}function Ne(I){return{type:"list",ordered:I.type==="listOrdered",start:null,spread:I._spread,children:[]}}function it(I){return{type:"listItem",spread:I._spread,checked:null,children:[]}}function Ue(){return{type:"paragraph",children:[]}}function ot(){return{type:"strong",children:[]}}function Me(){return{type:"text",value:""}}function ue(){return{type:"thematicBreak"}}}function Be(e){return{line:e.line,column:e.column,offset:e.offset}}function Hm(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?Hm(e,r):Py(e,r)}}function Py(e,t){let n;for(n in t)if(zm.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function au(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+pt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+pt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+pt({start:t.start,end:t.end})+") is still open")}function Uy(e){const t=this;t.parser=n;function n(r){return My(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function By(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function qy(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
@@ -1 +1 @@
1
- import{c as a}from"./index--JkIxVXb.js";const e=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],o=a("message-square",e);export{o as M};
1
+ import{c as a}from"./index-lJlNPFVJ.js";const e=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],o=a("message-square",e);export{o as M};
@@ -1 +1 @@
1
- import{c as a}from"./index--JkIxVXb.js";const c=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],o=a("pencil",c);export{o as P};
1
+ import{c as a}from"./index-lJlNPFVJ.js";const c=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],o=a("pencil",c);export{o as P};
@@ -1 +1 @@
1
- import{c as a}from"./index--JkIxVXb.js";const o=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],e=a("play",o);export{e as P};
1
+ import{c as a}from"./index-lJlNPFVJ.js";const o=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],e=a("play",o);export{e as P};
@@ -1 +1 @@
1
- import{r as c,ao as $,j as s,bf as L,aq as z,at as b,ap as A,ar as P,bg as O,bi as _,as as w,bh as G,av as H,bt as K,bu as q,bv as U,bw as V,bx as W,bj as Z,bk as B,bm as J,i as Q}from"./index--JkIxVXb.js";var x="Popover",[j]=H(x,[_]),g=_(),[X,l]=j(x),E=e=>{const{__scopePopover:n,children:t,open:a,defaultOpen:o,onOpenChange:r,modal:i=!1}=e,p=g(n),f=c.useRef(null),[v,h]=c.useState(!1),[C,u]=$({prop:a,defaultProp:o??!1,onChange:r,caller:x});return s.jsx(L,{...p,children:s.jsx(X,{scope:n,contentId:z(),triggerRef:f,open:C,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(m=>!m),[u]),hasCustomAnchor:v,onCustomAnchorAdd:c.useCallback(()=>h(!0),[]),onCustomAnchorRemove:c.useCallback(()=>h(!1),[]),modal:i,children:t})})};E.displayName=x;var N="PopoverAnchor",Y=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=l(N,t),r=g(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=o;return c.useEffect(()=>(i(),()=>p()),[i,p]),s.jsx(O,{...r,...a,ref:n})});Y.displayName=N;var y="PopoverTrigger",F=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=l(y,t),r=g(t),i=b(n,o.triggerRef),p=s.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":T(o.open),...a,ref:i,onClick:P(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?p:s.jsx(O,{asChild:!0,...r,children:p})});F.displayName=y;var R="PopoverPortal",[ee,oe]=j(R,{forceMount:void 0}),S=e=>{const{__scopePopover:n,forceMount:t,children:a,container:o}=e,r=l(R,n);return s.jsx(ee,{scope:n,forceMount:t,children:s.jsx(w,{present:t||r.open,children:s.jsx(G,{asChild:!0,container:o,children:a})})})};S.displayName=R;var d="PopoverContent",D=c.forwardRef((e,n)=>{const t=oe(d,e.__scopePopover),{forceMount:a=t.forceMount,...o}=e,r=l(d,e.__scopePopover);return s.jsx(w,{present:a||r.open,children:r.modal?s.jsx(re,{...o,ref:n}):s.jsx(ne,{...o,ref:n})})});D.displayName=d;var te=U("PopoverContent.RemoveScroll"),re=c.forwardRef((e,n)=>{const t=l(d,e.__scopePopover),a=c.useRef(null),o=b(n,a),r=c.useRef(!1);return c.useEffect(()=>{const i=a.current;if(i)return K(i)},[]),s.jsx(q,{as:te,allowPinchZoom:!0,children:s.jsx(M,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,i=>{i.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,f=p.button===0&&p.ctrlKey===!0,v=p.button===2||f;r.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=c.forwardRef((e,n)=>{const t=l(d,e.__scopePopover),a=c.useRef(!1),o=c.useRef(!1);return s.jsx(M,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{e.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||t.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:r=>{e.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=r.target;t.triggerRef.current?.contains(i)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&o.current&&r.preventDefault()}})}),M=c.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:r,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:h,...C}=e,u=l(d,t),m=g(t);return V(),s.jsx(W,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:r,children:s.jsx(Z,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>u.onOpenChange(!1),children:s.jsx(B,{"data-state":T(u.open),role:"dialog",id:u.contentId,...m,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",ae=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=l(k,t);return s.jsx(A.button,{type:"button",...a,ref:n,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});ae.displayName=k;var se="PopoverArrow",ce=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=g(t);return s.jsx(J,{...o,...a,ref:n})});ce.displayName=se;function T(e){return e?"open":"closed"}var ie=E,pe=F,le=S,I=D;const fe=ie,ve=pe,ue=c.forwardRef(({className:e,align:n="center",sideOffset:t=4,...a},o)=>s.jsx(le,{children:s.jsx(I,{ref:o,align:n,sideOffset:t,className:Q("z-50 w-72 rounded-xl p-4 modal-glass outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e),...a})}));ue.displayName=I.displayName;export{fe as P,ve as a,ue as b};
1
+ import{r as c,ao as $,j as s,bf as L,aq as z,at as b,ap as A,ar as P,bg as O,bi as _,as as w,bh as G,av as H,bt as K,bu as q,bv as U,bw as V,bx as W,bj as Z,bk as B,bm as J,i as Q}from"./index-lJlNPFVJ.js";var x="Popover",[j]=H(x,[_]),g=_(),[X,l]=j(x),E=e=>{const{__scopePopover:n,children:t,open:a,defaultOpen:o,onOpenChange:r,modal:i=!1}=e,p=g(n),f=c.useRef(null),[v,h]=c.useState(!1),[C,u]=$({prop:a,defaultProp:o??!1,onChange:r,caller:x});return s.jsx(L,{...p,children:s.jsx(X,{scope:n,contentId:z(),triggerRef:f,open:C,onOpenChange:u,onOpenToggle:c.useCallback(()=>u(m=>!m),[u]),hasCustomAnchor:v,onCustomAnchorAdd:c.useCallback(()=>h(!0),[]),onCustomAnchorRemove:c.useCallback(()=>h(!1),[]),modal:i,children:t})})};E.displayName=x;var N="PopoverAnchor",Y=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=l(N,t),r=g(t),{onCustomAnchorAdd:i,onCustomAnchorRemove:p}=o;return c.useEffect(()=>(i(),()=>p()),[i,p]),s.jsx(O,{...r,...a,ref:n})});Y.displayName=N;var y="PopoverTrigger",F=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=l(y,t),r=g(t),i=b(n,o.triggerRef),p=s.jsx(A.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":T(o.open),...a,ref:i,onClick:P(e.onClick,o.onOpenToggle)});return o.hasCustomAnchor?p:s.jsx(O,{asChild:!0,...r,children:p})});F.displayName=y;var R="PopoverPortal",[ee,oe]=j(R,{forceMount:void 0}),S=e=>{const{__scopePopover:n,forceMount:t,children:a,container:o}=e,r=l(R,n);return s.jsx(ee,{scope:n,forceMount:t,children:s.jsx(w,{present:t||r.open,children:s.jsx(G,{asChild:!0,container:o,children:a})})})};S.displayName=R;var d="PopoverContent",D=c.forwardRef((e,n)=>{const t=oe(d,e.__scopePopover),{forceMount:a=t.forceMount,...o}=e,r=l(d,e.__scopePopover);return s.jsx(w,{present:a||r.open,children:r.modal?s.jsx(re,{...o,ref:n}):s.jsx(ne,{...o,ref:n})})});D.displayName=d;var te=U("PopoverContent.RemoveScroll"),re=c.forwardRef((e,n)=>{const t=l(d,e.__scopePopover),a=c.useRef(null),o=b(n,a),r=c.useRef(!1);return c.useEffect(()=>{const i=a.current;if(i)return K(i)},[]),s.jsx(q,{as:te,allowPinchZoom:!0,children:s.jsx(M,{...e,ref:o,trapFocus:t.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:P(e.onCloseAutoFocus,i=>{i.preventDefault(),r.current||t.triggerRef.current?.focus()}),onPointerDownOutside:P(e.onPointerDownOutside,i=>{const p=i.detail.originalEvent,f=p.button===0&&p.ctrlKey===!0,v=p.button===2||f;r.current=v},{checkForDefaultPrevented:!1}),onFocusOutside:P(e.onFocusOutside,i=>i.preventDefault(),{checkForDefaultPrevented:!1})})})}),ne=c.forwardRef((e,n)=>{const t=l(d,e.__scopePopover),a=c.useRef(!1),o=c.useRef(!1);return s.jsx(M,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:r=>{e.onCloseAutoFocus?.(r),r.defaultPrevented||(a.current||t.triggerRef.current?.focus(),r.preventDefault()),a.current=!1,o.current=!1},onInteractOutside:r=>{e.onInteractOutside?.(r),r.defaultPrevented||(a.current=!0,r.detail.originalEvent.type==="pointerdown"&&(o.current=!0));const i=r.target;t.triggerRef.current?.contains(i)&&r.preventDefault(),r.detail.originalEvent.type==="focusin"&&o.current&&r.preventDefault()}})}),M=c.forwardRef((e,n)=>{const{__scopePopover:t,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:r,disableOutsidePointerEvents:i,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:h,...C}=e,u=l(d,t),m=g(t);return V(),s.jsx(W,{asChild:!0,loop:!0,trapped:a,onMountAutoFocus:o,onUnmountAutoFocus:r,children:s.jsx(Z,{asChild:!0,disableOutsidePointerEvents:i,onInteractOutside:h,onEscapeKeyDown:p,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>u.onOpenChange(!1),children:s.jsx(B,{"data-state":T(u.open),role:"dialog",id:u.contentId,...m,...C,ref:n,style:{...C.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),k="PopoverClose",ae=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=l(k,t);return s.jsx(A.button,{type:"button",...a,ref:n,onClick:P(e.onClick,()=>o.onOpenChange(!1))})});ae.displayName=k;var se="PopoverArrow",ce=c.forwardRef((e,n)=>{const{__scopePopover:t,...a}=e,o=g(t);return s.jsx(J,{...o,...a,ref:n})});ce.displayName=se;function T(e){return e?"open":"closed"}var ie=E,pe=F,le=S,I=D;const fe=ie,ve=pe,ue=c.forwardRef(({className:e,align:n="center",sideOffset:t=4,...a},o)=>s.jsx(le,{children:s.jsx(I,{ref:o,align:n,sideOffset:t,className:Q("z-50 w-72 rounded-xl p-4 modal-glass outline-none","data-[state=open]:animate-in data-[state=closed]:animate-out","data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0","data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e),...a})}));ue.displayName=I.displayName;export{fe as P,ve as a,ue as b};
@@ -1 +1 @@
1
- import{j as e,i}from"./index--JkIxVXb.js";function u({className:s,value:a=0,max:r=100,indicatorClassName:t,...l}){const n=Math.min(100,Math.max(0,a/r*100));return e.jsx("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":a,className:i("relative h-2 w-full overflow-hidden rounded-full bg-muted",s),...l,children:e.jsx("div",{className:i("h-full bg-primary transition-all duration-300 ease-out",t),style:{width:`${n}%`}})})}export{u as P};
1
+ import{j as e,i}from"./index-lJlNPFVJ.js";function u({className:s,value:a=0,max:r=100,indicatorClassName:t,...l}){const n=Math.min(100,Math.max(0,a/r*100));return e.jsx("div",{role:"progressbar","aria-valuemin":0,"aria-valuemax":r,"aria-valuenow":a,className:i("relative h-2 w-full overflow-hidden rounded-full bg-muted",s),...l,children:e.jsx("div",{className:i("h-full bg-primary transition-all duration-300 ease-out",t),style:{width:`${n}%`}})})}export{u as P};
@@ -1 +1 @@
1
- import{c as t}from"./index--JkIxVXb.js";const a=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],h=t("clipboard-list",a);const e=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],d=t("rocket",e);export{h as C,d as R};
1
+ import{c as t}from"./index-lJlNPFVJ.js";const a=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],h=t("clipboard-list",a);const e=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],d=t("rocket",e);export{h as C,d as R};
@@ -1 +1 @@
1
- import{r as n,j as r,ap as _,ba as ht,ao as Te,bf as vt,aq as Ie,at as L,au as z,bi as Re,bG as gt,bg as xt,ar as N,bh as St,br as Pe,av as wt,bH as yt,bt as Ct,bw as It,bu as bt,bx as Tt,bj as Nt,bv as Rt,bk as Pt,bm as Et,a5 as Ee,i as G,O as _t}from"./index--JkIxVXb.js";import{C as jt}from"./chevron-up-DcJ4LL_N.js";function Ne(t,[o,e]){return Math.min(e,Math.max(o,t))}function Mt(t){const o=n.useRef({value:t,previous:t});return n.useMemo(()=>(o.current.value!==t&&(o.current.previous=o.current.value,o.current.value=t),o.current.previous),[t])}var _e=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"}),At="VisuallyHidden",je=n.forwardRef((t,o)=>r.jsx(_.span,{...t,ref:o,style:{..._e,...t.style}}));je.displayName=At;var vo=je,Ot=[" ","Enter","ArrowUp","ArrowDown"],Dt=[" ","Enter"],Q="Select",[ie,de,Lt]=gt(Q),[oe]=wt(Q,[Lt,Re]),ue=Re(),[kt,Y]=oe(Q),[Bt,Vt]=oe(Q),Me=t=>{const{__scopeSelect:o,children:e,open:l,defaultOpen:a,onOpenChange:u,value:s,defaultValue:c,onValueChange:i,dir:f,name:g,autoComplete:w,disabled:R,required:b,form:C}=t,d=ue(o),[h,x]=n.useState(null),[m,v]=n.useState(null),[F,M]=n.useState(!1),ne=ht(f),[P,O]=Te({prop:l,defaultProp:a??!1,onChange:u,caller:Q}),[W,X]=Te({prop:s,defaultProp:c,onChange:i,caller:Q}),k=n.useRef(null),B=h?C||!!h.closest("form"):!0,[K,V]=n.useState(new Set),H=Array.from(K).map(E=>E.props.value).join(";");return r.jsx(vt,{...d,children:r.jsxs(kt,{required:b,scope:o,trigger:h,onTriggerChange:x,valueNode:m,onValueNodeChange:v,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:Ie(),value:W,onValueChange:X,open:P,onOpenChange:O,dir:ne,triggerPointerDownPosRef:k,disabled:R,children:[r.jsx(ie.Provider,{scope:o,children:r.jsx(Bt,{scope:t.__scopeSelect,onNativeOptionAdd:n.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:n.useCallback(E=>{V(D=>{const U=new Set(D);return U.delete(E),U})},[]),children:e})}),B?r.jsxs(ot,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:w,value:W,onChange:E=>X(E.target.value),disabled:R,form:C,children:[W===void 0?r.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};Me.displayName=Q;var Ae="SelectTrigger",Oe=n.forwardRef((t,o)=>{const{__scopeSelect:e,disabled:l=!1,...a}=t,u=ue(e),s=Y(Ae,e),c=s.disabled||l,i=L(o,s.onTriggerChange),f=de(e),g=n.useRef("touch"),[w,R,b]=rt(d=>{const h=f().filter(v=>!v.disabled),x=h.find(v=>v.value===s.value),m=st(h,d,x);m!==void 0&&s.onValueChange(m.value)}),C=d=>{c||(s.onOpenChange(!0),b()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return r.jsx(xt,{asChild:!0,...u,children:r.jsx(_.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":nt(s.value)?"":void 0,...a,ref:i,onClick:N(a.onClick,d=>{d.currentTarget.focus(),g.current!=="mouse"&&C(d)}),onPointerDown:N(a.onPointerDown,d=>{g.current=d.pointerType;const h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(C(d),d.preventDefault())}),onKeyDown:N(a.onKeyDown,d=>{const h=w.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&R(d.key),!(h&&d.key===" ")&&Ot.includes(d.key)&&(C(),d.preventDefault())})})})});Oe.displayName=Ae;var De="SelectValue",Le=n.forwardRef((t,o)=>{const{__scopeSelect:e,className:l,style:a,children:u,placeholder:s="",...c}=t,i=Y(De,e),{onValueNodeHasChildrenChange:f}=i,g=u!==void 0,w=L(o,i.onValueNodeChange);return z(()=>{f(g)},[f,g]),r.jsx(_.span,{...c,ref:w,style:{pointerEvents:"none"},children:nt(i.value)?r.jsx(r.Fragment,{children:s}):u})});Le.displayName=De;var Ht="SelectIcon",ke=n.forwardRef((t,o)=>{const{__scopeSelect:e,children:l,...a}=t;return r.jsx(_.span,{"aria-hidden":!0,...a,ref:o,children:l||"▼"})});ke.displayName=Ht;var Ut="SelectPortal",Be=t=>r.jsx(St,{asChild:!0,...t});Be.displayName=Ut;var ee="SelectContent",Ve=n.forwardRef((t,o)=>{const e=Y(ee,t.__scopeSelect),[l,a]=n.useState();if(z(()=>{a(new DocumentFragment)},[]),!e.open){const u=l;return u?Pe.createPortal(r.jsx(He,{scope:t.__scopeSelect,children:r.jsx(ie.Slot,{scope:t.__scopeSelect,children:r.jsx("div",{children:t.children})})}),u):null}return r.jsx(Ue,{...t,ref:o})});Ve.displayName=ee;var A=10,[He,q]=oe(ee),Ft="SelectContentImpl",Wt=Rt("SelectContent.RemoveScroll"),Ue=n.forwardRef((t,o)=>{const{__scopeSelect:e,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:s,side:c,sideOffset:i,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:R,collisionPadding:b,sticky:C,hideWhenDetached:d,avoidCollisions:h,...x}=t,m=Y(ee,e),[v,F]=n.useState(null),[M,ne]=n.useState(null),P=L(o,p=>F(p)),[O,W]=n.useState(null),[X,k]=n.useState(null),B=de(e),[K,V]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(v)return Ct(v)},[v]),It();const E=n.useCallback(p=>{const[I,...j]=B().map(T=>T.ref.current),[S]=j.slice(-1),y=document.activeElement;for(const T of p)if(T===y||(T?.scrollIntoView({block:"nearest"}),T===I&&M&&(M.scrollTop=0),T===S&&M&&(M.scrollTop=M.scrollHeight),T?.focus(),document.activeElement!==y))return},[B,M]),D=n.useCallback(()=>E([O,v]),[E,O,v]);n.useEffect(()=>{K&&D()},[K,D]);const{onOpenChange:U,triggerPointerDownPosRef:$}=m;n.useEffect(()=>{if(v){let p={x:0,y:0};const I=S=>{p={x:Math.abs(Math.round(S.pageX)-($.current?.x??0)),y:Math.abs(Math.round(S.pageY)-($.current?.y??0))}},j=S=>{p.x<=10&&p.y<=10?S.preventDefault():v.contains(S.target)||U(!1),document.removeEventListener("pointermove",I),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",j,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",j,{capture:!0})}}},[v,U,$]),n.useEffect(()=>{const p=()=>U(!1);return window.addEventListener("blur",p),window.addEventListener("resize",p),()=>{window.removeEventListener("blur",p),window.removeEventListener("resize",p)}},[U]);const[pe,ae]=rt(p=>{const I=B().filter(y=>!y.disabled),j=I.find(y=>y.ref.current===document.activeElement),S=st(I,p,j);S&&setTimeout(()=>S.ref.current.focus())}),fe=n.useCallback((p,I,j)=>{const S=!H.current&&!j;(m.value!==void 0&&m.value===I||S)&&(W(p),S&&(H.current=!0))},[m.value]),me=n.useCallback(()=>v?.focus(),[v]),te=n.useCallback((p,I,j)=>{const S=!H.current&&!j;(m.value!==void 0&&m.value===I||S)&&k(p)},[m.value]),le=l==="popper"?xe:Fe,re=le===xe?{side:c,sideOffset:i,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:R,collisionPadding:b,sticky:C,hideWhenDetached:d,avoidCollisions:h}:{};return r.jsx(He,{scope:e,content:v,viewport:M,onViewportChange:ne,itemRefCallback:fe,selectedItem:O,onItemLeave:me,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:X,position:l,isPositioned:K,searchRef:pe,children:r.jsx(bt,{as:Wt,allowPinchZoom:!0,children:r.jsx(Tt,{asChild:!0,trapped:m.open,onMountAutoFocus:p=>{p.preventDefault()},onUnmountAutoFocus:N(a,p=>{m.trigger?.focus({preventScroll:!0}),p.preventDefault()}),children:r.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:r.jsx(le,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:p=>p.preventDefault(),...x,...re,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:N(x.onKeyDown,p=>{const I=p.ctrlKey||p.altKey||p.metaKey;if(p.key==="Tab"&&p.preventDefault(),!I&&p.key.length===1&&ae(p.key),["ArrowUp","ArrowDown","Home","End"].includes(p.key)){let S=B().filter(y=>!y.disabled).map(y=>y.ref.current);if(["ArrowUp","End"].includes(p.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(p.key)){const y=p.target,T=S.indexOf(y);S=S.slice(T+1)}setTimeout(()=>E(S)),p.preventDefault()}})})})})})})});Ue.displayName=Ft;var Kt="SelectItemAlignedPosition",Fe=n.forwardRef((t,o)=>{const{__scopeSelect:e,onPlaced:l,...a}=t,u=Y(ee,e),s=q(ee,e),[c,i]=n.useState(null),[f,g]=n.useState(null),w=L(o,P=>g(P)),R=de(e),b=n.useRef(!1),C=n.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:x,focusSelectedItem:m}=s,v=n.useCallback(()=>{if(u.trigger&&u.valueNode&&c&&f&&d&&h&&x){const P=u.trigger.getBoundingClientRect(),O=f.getBoundingClientRect(),W=u.valueNode.getBoundingClientRect(),X=x.getBoundingClientRect();if(u.dir!=="rtl"){const y=X.left-O.left,T=W.left-y,Z=P.left-T,J=P.width+Z,he=Math.max(J,O.width),ve=window.innerWidth-A,ge=Ne(T,[A,Math.max(A,ve-he)]);c.style.minWidth=J+"px",c.style.left=ge+"px"}else{const y=O.right-X.right,T=window.innerWidth-W.right-y,Z=window.innerWidth-P.right-T,J=P.width+Z,he=Math.max(J,O.width),ve=window.innerWidth-A,ge=Ne(T,[A,Math.max(A,ve-he)]);c.style.minWidth=J+"px",c.style.right=ge+"px"}const k=R(),B=window.innerHeight-A*2,K=d.scrollHeight,V=window.getComputedStyle(f),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),U=parseInt(V.paddingBottom,10),$=H+E+K+U+D,pe=Math.min(h.offsetHeight*5,$),ae=window.getComputedStyle(d),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),te=P.top+P.height/2-A,le=B-te,re=h.offsetHeight/2,p=h.offsetTop+re,I=H+E+p,j=$-I;if(I<=te){const y=k.length>0&&h===k[k.length-1].ref.current;c.style.bottom="0px";const T=f.clientHeight-d.offsetTop-d.offsetHeight,Z=Math.max(le,re+(y?me:0)+T+D),J=I+Z;c.style.height=J+"px"}else{const y=k.length>0&&h===k[0].ref.current;c.style.top="0px";const Z=Math.max(te,H+d.offsetTop+(y?fe:0)+re)+j;c.style.height=Z+"px",d.scrollTop=I-te+d.offsetTop}c.style.margin=`${A}px 0`,c.style.minHeight=pe+"px",c.style.maxHeight=B+"px",l?.(),requestAnimationFrame(()=>b.current=!0)}},[R,u.trigger,u.valueNode,c,f,d,h,x,u.dir,l]);z(()=>v(),[v]);const[F,M]=n.useState();z(()=>{f&&M(window.getComputedStyle(f).zIndex)},[f]);const ne=n.useCallback(P=>{P&&C.current===!0&&(v(),m?.(),C.current=!1)},[v,m]);return r.jsx(zt,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:b,onScrollButtonChange:ne,children:r.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:r.jsx(_.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Fe.displayName=Kt;var $t="SelectPopperPosition",xe=n.forwardRef((t,o)=>{const{__scopeSelect:e,align:l="start",collisionPadding:a=A,...u}=t,s=ue(e);return r.jsx(Pt,{...s,...u,ref:o,align:l,collisionPadding:a,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xe.displayName=$t;var[zt,be]=oe(ee,{}),Se="SelectViewport",We=n.forwardRef((t,o)=>{const{__scopeSelect:e,nonce:l,...a}=t,u=q(Se,e),s=be(Se,e),c=L(o,u.onViewportChange),i=n.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),r.jsx(ie.Slot,{scope:e,children:r.jsx(_.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:N(a.onScroll,f=>{const g=f.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:R}=s;if(R?.current&&w){const b=Math.abs(i.current-g.scrollTop);if(b>0){const C=window.innerHeight-A*2,d=parseFloat(w.style.minHeight),h=parseFloat(w.style.height),x=Math.max(d,h);if(x<C){const m=x+b,v=Math.min(C,m),F=m-v;w.style.height=v+"px",w.style.bottom==="0px"&&(g.scrollTop=F>0?F:0,w.style.justifyContent="flex-end")}}}i.current=g.scrollTop})})})]})});We.displayName=Se;var Ke="SelectGroup",[Gt,Yt]=oe(Ke),qt=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t,a=Ie();return r.jsx(Gt,{scope:e,id:a,children:r.jsx(_.div,{role:"group","aria-labelledby":a,...l,ref:o})})});qt.displayName=Ke;var $e="SelectLabel",ze=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t,a=Yt($e,e);return r.jsx(_.div,{id:a.id,...l,ref:o})});ze.displayName=$e;var ce="SelectItem",[Xt,Ge]=oe(ce),Ye=n.forwardRef((t,o)=>{const{__scopeSelect:e,value:l,disabled:a=!1,textValue:u,...s}=t,c=Y(ce,e),i=q(ce,e),f=c.value===l,[g,w]=n.useState(u??""),[R,b]=n.useState(!1),C=L(o,m=>i.itemRefCallback?.(m,l,a)),d=Ie(),h=n.useRef("touch"),x=()=>{a||(c.onValueChange(l),c.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(Xt,{scope:e,value:l,disabled:a,textId:d,isSelected:f,onItemTextChange:n.useCallback(m=>{w(v=>v||(m?.textContent??"").trim())},[]),children:r.jsx(ie.ItemSlot,{scope:e,value:l,disabled:a,textValue:g,children:r.jsx(_.div,{role:"option","aria-labelledby":d,"data-highlighted":R?"":void 0,"aria-selected":f&&R,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:C,onFocus:N(s.onFocus,()=>b(!0)),onBlur:N(s.onBlur,()=>b(!1)),onClick:N(s.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:N(s.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:N(s.onPointerDown,m=>{h.current=m.pointerType}),onPointerMove:N(s.onPointerMove,m=>{h.current=m.pointerType,a?i.onItemLeave?.():h.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,m=>{i.searchRef?.current!==""&&m.key===" "||(Dt.includes(m.key)&&x(),m.key===" "&&m.preventDefault())})})})})});Ye.displayName=ce;var se="SelectItemText",qe=n.forwardRef((t,o)=>{const{__scopeSelect:e,className:l,style:a,...u}=t,s=Y(se,e),c=q(se,e),i=Ge(se,e),f=Vt(se,e),[g,w]=n.useState(null),R=L(o,x=>w(x),i.onItemTextChange,x=>c.itemTextRefCallback?.(x,i.value,i.disabled)),b=g?.textContent,C=n.useMemo(()=>r.jsx("option",{value:i.value,disabled:i.disabled,children:b},i.value),[i.disabled,i.value,b]),{onNativeOptionAdd:d,onNativeOptionRemove:h}=f;return z(()=>(d(C),()=>h(C)),[d,h,C]),r.jsxs(r.Fragment,{children:[r.jsx(_.span,{id:i.textId,...u,ref:R}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Pe.createPortal(u.children,s.valueNode):null]})});qe.displayName=se;var Xe="SelectItemIndicator",Ze=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t;return Ge(Xe,e).isSelected?r.jsx(_.span,{"aria-hidden":!0,...l,ref:o}):null});Ze.displayName=Xe;var we="SelectScrollUpButton",Je=n.forwardRef((t,o)=>{const e=q(we,t.__scopeSelect),l=be(we,t.__scopeSelect),[a,u]=n.useState(!1),s=L(o,l.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const f=i.scrollTop>0;u(f)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),a?r.jsx(et,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null});Je.displayName=we;var ye="SelectScrollDownButton",Qe=n.forwardRef((t,o)=>{const e=q(ye,t.__scopeSelect),l=be(ye,t.__scopeSelect),[a,u]=n.useState(!1),s=L(o,l.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const f=i.scrollHeight-i.clientHeight,g=Math.ceil(i.scrollTop)<f;u(g)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),a?r.jsx(et,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null});Qe.displayName=ye;var et=n.forwardRef((t,o)=>{const{__scopeSelect:e,onAutoScroll:l,...a}=t,u=q("SelectScrollButton",e),s=n.useRef(null),c=de(e),i=n.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>i(),[i]),z(()=>{c().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),r.jsx(_.div,{"aria-hidden":!0,...a,ref:o,style:{flexShrink:0,...a.style},onPointerDown:N(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(l,50))}),onPointerMove:N(a.onPointerMove,()=>{u.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(l,50))}),onPointerLeave:N(a.onPointerLeave,()=>{i()})})}),Zt="SelectSeparator",tt=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t;return r.jsx(_.div,{"aria-hidden":!0,...l,ref:o})});tt.displayName=Zt;var Ce="SelectArrow",Jt=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t,a=ue(e),u=Y(Ce,e),s=q(Ce,e);return u.open&&s.position==="popper"?r.jsx(Et,{...a,...l,ref:o}):null});Jt.displayName=Ce;var Qt="SelectBubbleInput",ot=n.forwardRef(({__scopeSelect:t,value:o,...e},l)=>{const a=n.useRef(null),u=L(l,a),s=Mt(o);return n.useEffect(()=>{const c=a.current;if(!c)return;const i=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(i,"value").set;if(s!==o&&g){const w=new Event("change",{bubbles:!0});g.call(c,o),c.dispatchEvent(w)}},[s,o]),r.jsx(_.select,{...e,style:{..._e,...e.style},ref:u,defaultValue:o})});ot.displayName=Qt;function nt(t){return t===""||t===void 0}function rt(t){const o=yt(t),e=n.useRef(""),l=n.useRef(0),a=n.useCallback(s=>{const c=e.current+s;o(c),(function i(f){e.current=f,window.clearTimeout(l.current),f!==""&&(l.current=window.setTimeout(()=>i(""),1e3))})(c)},[o]),u=n.useCallback(()=>{e.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[e,a,u]}function st(t,o,e){const a=o.length>1&&Array.from(o).every(f=>f===o[0])?o[0]:o,u=e?t.indexOf(e):-1;let s=eo(t,Math.max(u,0));a.length===1&&(s=s.filter(f=>f!==e));const i=s.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return i!==e?i:void 0}function eo(t,o){return t.map((e,l)=>t[(o+l)%t.length])}var to=Me,at=Oe,oo=Le,no=ke,ro=Be,lt=Ve,so=We,ct=ze,it=Ye,ao=qe,lo=Ze,dt=Je,ut=Qe,pt=tt;const go=to,xo=oo,co=n.forwardRef(({className:t,children:o,...e},l)=>r.jsxs(at,{ref:l,className:G("flex h-10 w-full items-center justify-between rounded-xl border-none field-recessed px-4 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-all",t),...e,children:[o,r.jsx(no,{asChild:!0,children:r.jsx(Ee,{className:"h-4 w-4 opacity-50"})})]}));co.displayName=at.displayName;const ft=n.forwardRef(({className:t,...o},e)=>r.jsx(dt,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...o,children:r.jsx(jt,{className:"h-4 w-4"})}));ft.displayName=dt.displayName;const mt=n.forwardRef(({className:t,...o},e)=>r.jsx(ut,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...o,children:r.jsx(Ee,{className:"h-4 w-4"})}));mt.displayName=ut.displayName;const io=n.forwardRef(({className:t,children:o,position:e="popper",...l},a)=>r.jsx(ro,{children:r.jsxs(lt,{ref:a,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl modal-glass data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:e,...l,children:[r.jsx(ft,{}),r.jsx(so,{className:G("p-1",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),r.jsx(mt,{})]})}));io.displayName=lt.displayName;const uo=n.forwardRef(({className:t,...o},e)=>r.jsx(ct,{ref:e,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...o}));uo.displayName=ct.displayName;const po=n.forwardRef(({className:t,children:o,...e},l)=>r.jsxs(it,{ref:l,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-[var(--accent)] focus:text-[var(--accent-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 transition-colors",t),...e,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(lo,{children:r.jsx(_t,{className:"h-4 w-4"})})}),r.jsx(ao,{children:o})]}));po.displayName=it.displayName;const fo=n.forwardRef(({className:t,...o},e)=>r.jsx(pt,{ref:e,className:G("-mx-1 my-1 h-px bg-[var(--muted)]",t),...o}));fo.displayName=pt.displayName;export{vo as R,go as S,co as a,xo as b,io as c,po as d,Mt as u};
1
+ import{r as n,j as r,ap as _,ba as ht,ao as Te,bf as vt,aq as Ie,at as L,au as z,bi as Re,bG as gt,bg as xt,ar as N,bh as St,br as Pe,av as wt,bH as yt,bt as Ct,bw as It,bu as bt,bx as Tt,bj as Nt,bv as Rt,bk as Pt,bm as Et,a5 as Ee,i as G,O as _t}from"./index-lJlNPFVJ.js";import{C as jt}from"./chevron-up-CoUsOvZj.js";function Ne(t,[o,e]){return Math.min(e,Math.max(o,t))}function Mt(t){const o=n.useRef({value:t,previous:t});return n.useMemo(()=>(o.current.value!==t&&(o.current.previous=o.current.value,o.current.value=t),o.current.previous),[t])}var _e=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"}),At="VisuallyHidden",je=n.forwardRef((t,o)=>r.jsx(_.span,{...t,ref:o,style:{..._e,...t.style}}));je.displayName=At;var vo=je,Ot=[" ","Enter","ArrowUp","ArrowDown"],Dt=[" ","Enter"],Q="Select",[ie,de,Lt]=gt(Q),[oe]=wt(Q,[Lt,Re]),ue=Re(),[kt,Y]=oe(Q),[Bt,Vt]=oe(Q),Me=t=>{const{__scopeSelect:o,children:e,open:l,defaultOpen:a,onOpenChange:u,value:s,defaultValue:c,onValueChange:i,dir:f,name:g,autoComplete:w,disabled:R,required:b,form:C}=t,d=ue(o),[h,x]=n.useState(null),[m,v]=n.useState(null),[F,M]=n.useState(!1),ne=ht(f),[P,O]=Te({prop:l,defaultProp:a??!1,onChange:u,caller:Q}),[W,X]=Te({prop:s,defaultProp:c,onChange:i,caller:Q}),k=n.useRef(null),B=h?C||!!h.closest("form"):!0,[K,V]=n.useState(new Set),H=Array.from(K).map(E=>E.props.value).join(";");return r.jsx(vt,{...d,children:r.jsxs(kt,{required:b,scope:o,trigger:h,onTriggerChange:x,valueNode:m,onValueNodeChange:v,valueNodeHasChildren:F,onValueNodeHasChildrenChange:M,contentId:Ie(),value:W,onValueChange:X,open:P,onOpenChange:O,dir:ne,triggerPointerDownPosRef:k,disabled:R,children:[r.jsx(ie.Provider,{scope:o,children:r.jsx(Bt,{scope:t.__scopeSelect,onNativeOptionAdd:n.useCallback(E=>{V(D=>new Set(D).add(E))},[]),onNativeOptionRemove:n.useCallback(E=>{V(D=>{const U=new Set(D);return U.delete(E),U})},[]),children:e})}),B?r.jsxs(ot,{"aria-hidden":!0,required:b,tabIndex:-1,name:g,autoComplete:w,value:W,onChange:E=>X(E.target.value),disabled:R,form:C,children:[W===void 0?r.jsx("option",{value:""}):null,Array.from(K)]},H):null]})})};Me.displayName=Q;var Ae="SelectTrigger",Oe=n.forwardRef((t,o)=>{const{__scopeSelect:e,disabled:l=!1,...a}=t,u=ue(e),s=Y(Ae,e),c=s.disabled||l,i=L(o,s.onTriggerChange),f=de(e),g=n.useRef("touch"),[w,R,b]=rt(d=>{const h=f().filter(v=>!v.disabled),x=h.find(v=>v.value===s.value),m=st(h,d,x);m!==void 0&&s.onValueChange(m.value)}),C=d=>{c||(s.onOpenChange(!0),b()),d&&(s.triggerPointerDownPosRef.current={x:Math.round(d.pageX),y:Math.round(d.pageY)})};return r.jsx(xt,{asChild:!0,...u,children:r.jsx(_.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":nt(s.value)?"":void 0,...a,ref:i,onClick:N(a.onClick,d=>{d.currentTarget.focus(),g.current!=="mouse"&&C(d)}),onPointerDown:N(a.onPointerDown,d=>{g.current=d.pointerType;const h=d.target;h.hasPointerCapture(d.pointerId)&&h.releasePointerCapture(d.pointerId),d.button===0&&d.ctrlKey===!1&&d.pointerType==="mouse"&&(C(d),d.preventDefault())}),onKeyDown:N(a.onKeyDown,d=>{const h=w.current!=="";!(d.ctrlKey||d.altKey||d.metaKey)&&d.key.length===1&&R(d.key),!(h&&d.key===" ")&&Ot.includes(d.key)&&(C(),d.preventDefault())})})})});Oe.displayName=Ae;var De="SelectValue",Le=n.forwardRef((t,o)=>{const{__scopeSelect:e,className:l,style:a,children:u,placeholder:s="",...c}=t,i=Y(De,e),{onValueNodeHasChildrenChange:f}=i,g=u!==void 0,w=L(o,i.onValueNodeChange);return z(()=>{f(g)},[f,g]),r.jsx(_.span,{...c,ref:w,style:{pointerEvents:"none"},children:nt(i.value)?r.jsx(r.Fragment,{children:s}):u})});Le.displayName=De;var Ht="SelectIcon",ke=n.forwardRef((t,o)=>{const{__scopeSelect:e,children:l,...a}=t;return r.jsx(_.span,{"aria-hidden":!0,...a,ref:o,children:l||"▼"})});ke.displayName=Ht;var Ut="SelectPortal",Be=t=>r.jsx(St,{asChild:!0,...t});Be.displayName=Ut;var ee="SelectContent",Ve=n.forwardRef((t,o)=>{const e=Y(ee,t.__scopeSelect),[l,a]=n.useState();if(z(()=>{a(new DocumentFragment)},[]),!e.open){const u=l;return u?Pe.createPortal(r.jsx(He,{scope:t.__scopeSelect,children:r.jsx(ie.Slot,{scope:t.__scopeSelect,children:r.jsx("div",{children:t.children})})}),u):null}return r.jsx(Ue,{...t,ref:o})});Ve.displayName=ee;var A=10,[He,q]=oe(ee),Ft="SelectContentImpl",Wt=Rt("SelectContent.RemoveScroll"),Ue=n.forwardRef((t,o)=>{const{__scopeSelect:e,position:l="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:u,onPointerDownOutside:s,side:c,sideOffset:i,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:R,collisionPadding:b,sticky:C,hideWhenDetached:d,avoidCollisions:h,...x}=t,m=Y(ee,e),[v,F]=n.useState(null),[M,ne]=n.useState(null),P=L(o,p=>F(p)),[O,W]=n.useState(null),[X,k]=n.useState(null),B=de(e),[K,V]=n.useState(!1),H=n.useRef(!1);n.useEffect(()=>{if(v)return Ct(v)},[v]),It();const E=n.useCallback(p=>{const[I,...j]=B().map(T=>T.ref.current),[S]=j.slice(-1),y=document.activeElement;for(const T of p)if(T===y||(T?.scrollIntoView({block:"nearest"}),T===I&&M&&(M.scrollTop=0),T===S&&M&&(M.scrollTop=M.scrollHeight),T?.focus(),document.activeElement!==y))return},[B,M]),D=n.useCallback(()=>E([O,v]),[E,O,v]);n.useEffect(()=>{K&&D()},[K,D]);const{onOpenChange:U,triggerPointerDownPosRef:$}=m;n.useEffect(()=>{if(v){let p={x:0,y:0};const I=S=>{p={x:Math.abs(Math.round(S.pageX)-($.current?.x??0)),y:Math.abs(Math.round(S.pageY)-($.current?.y??0))}},j=S=>{p.x<=10&&p.y<=10?S.preventDefault():v.contains(S.target)||U(!1),document.removeEventListener("pointermove",I),$.current=null};return $.current!==null&&(document.addEventListener("pointermove",I),document.addEventListener("pointerup",j,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",I),document.removeEventListener("pointerup",j,{capture:!0})}}},[v,U,$]),n.useEffect(()=>{const p=()=>U(!1);return window.addEventListener("blur",p),window.addEventListener("resize",p),()=>{window.removeEventListener("blur",p),window.removeEventListener("resize",p)}},[U]);const[pe,ae]=rt(p=>{const I=B().filter(y=>!y.disabled),j=I.find(y=>y.ref.current===document.activeElement),S=st(I,p,j);S&&setTimeout(()=>S.ref.current.focus())}),fe=n.useCallback((p,I,j)=>{const S=!H.current&&!j;(m.value!==void 0&&m.value===I||S)&&(W(p),S&&(H.current=!0))},[m.value]),me=n.useCallback(()=>v?.focus(),[v]),te=n.useCallback((p,I,j)=>{const S=!H.current&&!j;(m.value!==void 0&&m.value===I||S)&&k(p)},[m.value]),le=l==="popper"?xe:Fe,re=le===xe?{side:c,sideOffset:i,align:f,alignOffset:g,arrowPadding:w,collisionBoundary:R,collisionPadding:b,sticky:C,hideWhenDetached:d,avoidCollisions:h}:{};return r.jsx(He,{scope:e,content:v,viewport:M,onViewportChange:ne,itemRefCallback:fe,selectedItem:O,onItemLeave:me,itemTextRefCallback:te,focusSelectedItem:D,selectedItemText:X,position:l,isPositioned:K,searchRef:pe,children:r.jsx(bt,{as:Wt,allowPinchZoom:!0,children:r.jsx(Tt,{asChild:!0,trapped:m.open,onMountAutoFocus:p=>{p.preventDefault()},onUnmountAutoFocus:N(a,p=>{m.trigger?.focus({preventScroll:!0}),p.preventDefault()}),children:r.jsx(Nt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:u,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:()=>m.onOpenChange(!1),children:r.jsx(le,{role:"listbox",id:m.contentId,"data-state":m.open?"open":"closed",dir:m.dir,onContextMenu:p=>p.preventDefault(),...x,...re,onPlaced:()=>V(!0),ref:P,style:{display:"flex",flexDirection:"column",outline:"none",...x.style},onKeyDown:N(x.onKeyDown,p=>{const I=p.ctrlKey||p.altKey||p.metaKey;if(p.key==="Tab"&&p.preventDefault(),!I&&p.key.length===1&&ae(p.key),["ArrowUp","ArrowDown","Home","End"].includes(p.key)){let S=B().filter(y=>!y.disabled).map(y=>y.ref.current);if(["ArrowUp","End"].includes(p.key)&&(S=S.slice().reverse()),["ArrowUp","ArrowDown"].includes(p.key)){const y=p.target,T=S.indexOf(y);S=S.slice(T+1)}setTimeout(()=>E(S)),p.preventDefault()}})})})})})})});Ue.displayName=Ft;var Kt="SelectItemAlignedPosition",Fe=n.forwardRef((t,o)=>{const{__scopeSelect:e,onPlaced:l,...a}=t,u=Y(ee,e),s=q(ee,e),[c,i]=n.useState(null),[f,g]=n.useState(null),w=L(o,P=>g(P)),R=de(e),b=n.useRef(!1),C=n.useRef(!0),{viewport:d,selectedItem:h,selectedItemText:x,focusSelectedItem:m}=s,v=n.useCallback(()=>{if(u.trigger&&u.valueNode&&c&&f&&d&&h&&x){const P=u.trigger.getBoundingClientRect(),O=f.getBoundingClientRect(),W=u.valueNode.getBoundingClientRect(),X=x.getBoundingClientRect();if(u.dir!=="rtl"){const y=X.left-O.left,T=W.left-y,Z=P.left-T,J=P.width+Z,he=Math.max(J,O.width),ve=window.innerWidth-A,ge=Ne(T,[A,Math.max(A,ve-he)]);c.style.minWidth=J+"px",c.style.left=ge+"px"}else{const y=O.right-X.right,T=window.innerWidth-W.right-y,Z=window.innerWidth-P.right-T,J=P.width+Z,he=Math.max(J,O.width),ve=window.innerWidth-A,ge=Ne(T,[A,Math.max(A,ve-he)]);c.style.minWidth=J+"px",c.style.right=ge+"px"}const k=R(),B=window.innerHeight-A*2,K=d.scrollHeight,V=window.getComputedStyle(f),H=parseInt(V.borderTopWidth,10),E=parseInt(V.paddingTop,10),D=parseInt(V.borderBottomWidth,10),U=parseInt(V.paddingBottom,10),$=H+E+K+U+D,pe=Math.min(h.offsetHeight*5,$),ae=window.getComputedStyle(d),fe=parseInt(ae.paddingTop,10),me=parseInt(ae.paddingBottom,10),te=P.top+P.height/2-A,le=B-te,re=h.offsetHeight/2,p=h.offsetTop+re,I=H+E+p,j=$-I;if(I<=te){const y=k.length>0&&h===k[k.length-1].ref.current;c.style.bottom="0px";const T=f.clientHeight-d.offsetTop-d.offsetHeight,Z=Math.max(le,re+(y?me:0)+T+D),J=I+Z;c.style.height=J+"px"}else{const y=k.length>0&&h===k[0].ref.current;c.style.top="0px";const Z=Math.max(te,H+d.offsetTop+(y?fe:0)+re)+j;c.style.height=Z+"px",d.scrollTop=I-te+d.offsetTop}c.style.margin=`${A}px 0`,c.style.minHeight=pe+"px",c.style.maxHeight=B+"px",l?.(),requestAnimationFrame(()=>b.current=!0)}},[R,u.trigger,u.valueNode,c,f,d,h,x,u.dir,l]);z(()=>v(),[v]);const[F,M]=n.useState();z(()=>{f&&M(window.getComputedStyle(f).zIndex)},[f]);const ne=n.useCallback(P=>{P&&C.current===!0&&(v(),m?.(),C.current=!1)},[v,m]);return r.jsx(zt,{scope:e,contentWrapper:c,shouldExpandOnScrollRef:b,onScrollButtonChange:ne,children:r.jsx("div",{ref:i,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:F},children:r.jsx(_.div,{...a,ref:w,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Fe.displayName=Kt;var $t="SelectPopperPosition",xe=n.forwardRef((t,o)=>{const{__scopeSelect:e,align:l="start",collisionPadding:a=A,...u}=t,s=ue(e);return r.jsx(Pt,{...s,...u,ref:o,align:l,collisionPadding:a,style:{boxSizing:"border-box",...u.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});xe.displayName=$t;var[zt,be]=oe(ee,{}),Se="SelectViewport",We=n.forwardRef((t,o)=>{const{__scopeSelect:e,nonce:l,...a}=t,u=q(Se,e),s=be(Se,e),c=L(o,u.onViewportChange),i=n.useRef(0);return r.jsxs(r.Fragment,{children:[r.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),r.jsx(ie.Slot,{scope:e,children:r.jsx(_.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:N(a.onScroll,f=>{const g=f.currentTarget,{contentWrapper:w,shouldExpandOnScrollRef:R}=s;if(R?.current&&w){const b=Math.abs(i.current-g.scrollTop);if(b>0){const C=window.innerHeight-A*2,d=parseFloat(w.style.minHeight),h=parseFloat(w.style.height),x=Math.max(d,h);if(x<C){const m=x+b,v=Math.min(C,m),F=m-v;w.style.height=v+"px",w.style.bottom==="0px"&&(g.scrollTop=F>0?F:0,w.style.justifyContent="flex-end")}}}i.current=g.scrollTop})})})]})});We.displayName=Se;var Ke="SelectGroup",[Gt,Yt]=oe(Ke),qt=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t,a=Ie();return r.jsx(Gt,{scope:e,id:a,children:r.jsx(_.div,{role:"group","aria-labelledby":a,...l,ref:o})})});qt.displayName=Ke;var $e="SelectLabel",ze=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t,a=Yt($e,e);return r.jsx(_.div,{id:a.id,...l,ref:o})});ze.displayName=$e;var ce="SelectItem",[Xt,Ge]=oe(ce),Ye=n.forwardRef((t,o)=>{const{__scopeSelect:e,value:l,disabled:a=!1,textValue:u,...s}=t,c=Y(ce,e),i=q(ce,e),f=c.value===l,[g,w]=n.useState(u??""),[R,b]=n.useState(!1),C=L(o,m=>i.itemRefCallback?.(m,l,a)),d=Ie(),h=n.useRef("touch"),x=()=>{a||(c.onValueChange(l),c.onOpenChange(!1))};if(l==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return r.jsx(Xt,{scope:e,value:l,disabled:a,textId:d,isSelected:f,onItemTextChange:n.useCallback(m=>{w(v=>v||(m?.textContent??"").trim())},[]),children:r.jsx(ie.ItemSlot,{scope:e,value:l,disabled:a,textValue:g,children:r.jsx(_.div,{role:"option","aria-labelledby":d,"data-highlighted":R?"":void 0,"aria-selected":f&&R,"data-state":f?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:C,onFocus:N(s.onFocus,()=>b(!0)),onBlur:N(s.onBlur,()=>b(!1)),onClick:N(s.onClick,()=>{h.current!=="mouse"&&x()}),onPointerUp:N(s.onPointerUp,()=>{h.current==="mouse"&&x()}),onPointerDown:N(s.onPointerDown,m=>{h.current=m.pointerType}),onPointerMove:N(s.onPointerMove,m=>{h.current=m.pointerType,a?i.onItemLeave?.():h.current==="mouse"&&m.currentTarget.focus({preventScroll:!0})}),onPointerLeave:N(s.onPointerLeave,m=>{m.currentTarget===document.activeElement&&i.onItemLeave?.()}),onKeyDown:N(s.onKeyDown,m=>{i.searchRef?.current!==""&&m.key===" "||(Dt.includes(m.key)&&x(),m.key===" "&&m.preventDefault())})})})})});Ye.displayName=ce;var se="SelectItemText",qe=n.forwardRef((t,o)=>{const{__scopeSelect:e,className:l,style:a,...u}=t,s=Y(se,e),c=q(se,e),i=Ge(se,e),f=Vt(se,e),[g,w]=n.useState(null),R=L(o,x=>w(x),i.onItemTextChange,x=>c.itemTextRefCallback?.(x,i.value,i.disabled)),b=g?.textContent,C=n.useMemo(()=>r.jsx("option",{value:i.value,disabled:i.disabled,children:b},i.value),[i.disabled,i.value,b]),{onNativeOptionAdd:d,onNativeOptionRemove:h}=f;return z(()=>(d(C),()=>h(C)),[d,h,C]),r.jsxs(r.Fragment,{children:[r.jsx(_.span,{id:i.textId,...u,ref:R}),i.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Pe.createPortal(u.children,s.valueNode):null]})});qe.displayName=se;var Xe="SelectItemIndicator",Ze=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t;return Ge(Xe,e).isSelected?r.jsx(_.span,{"aria-hidden":!0,...l,ref:o}):null});Ze.displayName=Xe;var we="SelectScrollUpButton",Je=n.forwardRef((t,o)=>{const e=q(we,t.__scopeSelect),l=be(we,t.__scopeSelect),[a,u]=n.useState(!1),s=L(o,l.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const f=i.scrollTop>0;u(f)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),a?r.jsx(et,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop-i.offsetHeight)}}):null});Je.displayName=we;var ye="SelectScrollDownButton",Qe=n.forwardRef((t,o)=>{const e=q(ye,t.__scopeSelect),l=be(ye,t.__scopeSelect),[a,u]=n.useState(!1),s=L(o,l.onScrollButtonChange);return z(()=>{if(e.viewport&&e.isPositioned){let c=function(){const f=i.scrollHeight-i.clientHeight,g=Math.ceil(i.scrollTop)<f;u(g)};const i=e.viewport;return c(),i.addEventListener("scroll",c),()=>i.removeEventListener("scroll",c)}},[e.viewport,e.isPositioned]),a?r.jsx(et,{...t,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:i}=e;c&&i&&(c.scrollTop=c.scrollTop+i.offsetHeight)}}):null});Qe.displayName=ye;var et=n.forwardRef((t,o)=>{const{__scopeSelect:e,onAutoScroll:l,...a}=t,u=q("SelectScrollButton",e),s=n.useRef(null),c=de(e),i=n.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return n.useEffect(()=>()=>i(),[i]),z(()=>{c().find(g=>g.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:"nearest"})},[c]),r.jsx(_.div,{"aria-hidden":!0,...a,ref:o,style:{flexShrink:0,...a.style},onPointerDown:N(a.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(l,50))}),onPointerMove:N(a.onPointerMove,()=>{u.onItemLeave?.(),s.current===null&&(s.current=window.setInterval(l,50))}),onPointerLeave:N(a.onPointerLeave,()=>{i()})})}),Zt="SelectSeparator",tt=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t;return r.jsx(_.div,{"aria-hidden":!0,...l,ref:o})});tt.displayName=Zt;var Ce="SelectArrow",Jt=n.forwardRef((t,o)=>{const{__scopeSelect:e,...l}=t,a=ue(e),u=Y(Ce,e),s=q(Ce,e);return u.open&&s.position==="popper"?r.jsx(Et,{...a,...l,ref:o}):null});Jt.displayName=Ce;var Qt="SelectBubbleInput",ot=n.forwardRef(({__scopeSelect:t,value:o,...e},l)=>{const a=n.useRef(null),u=L(l,a),s=Mt(o);return n.useEffect(()=>{const c=a.current;if(!c)return;const i=window.HTMLSelectElement.prototype,g=Object.getOwnPropertyDescriptor(i,"value").set;if(s!==o&&g){const w=new Event("change",{bubbles:!0});g.call(c,o),c.dispatchEvent(w)}},[s,o]),r.jsx(_.select,{...e,style:{..._e,...e.style},ref:u,defaultValue:o})});ot.displayName=Qt;function nt(t){return t===""||t===void 0}function rt(t){const o=yt(t),e=n.useRef(""),l=n.useRef(0),a=n.useCallback(s=>{const c=e.current+s;o(c),(function i(f){e.current=f,window.clearTimeout(l.current),f!==""&&(l.current=window.setTimeout(()=>i(""),1e3))})(c)},[o]),u=n.useCallback(()=>{e.current="",window.clearTimeout(l.current)},[]);return n.useEffect(()=>()=>window.clearTimeout(l.current),[]),[e,a,u]}function st(t,o,e){const a=o.length>1&&Array.from(o).every(f=>f===o[0])?o[0]:o,u=e?t.indexOf(e):-1;let s=eo(t,Math.max(u,0));a.length===1&&(s=s.filter(f=>f!==e));const i=s.find(f=>f.textValue.toLowerCase().startsWith(a.toLowerCase()));return i!==e?i:void 0}function eo(t,o){return t.map((e,l)=>t[(o+l)%t.length])}var to=Me,at=Oe,oo=Le,no=ke,ro=Be,lt=Ve,so=We,ct=ze,it=Ye,ao=qe,lo=Ze,dt=Je,ut=Qe,pt=tt;const go=to,xo=oo,co=n.forwardRef(({className:t,children:o,...e},l)=>r.jsxs(at,{ref:l,className:G("flex h-10 w-full items-center justify-between rounded-xl border-none field-recessed px-4 py-2 text-sm focus:outline-none disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1 transition-all",t),...e,children:[o,r.jsx(no,{asChild:!0,children:r.jsx(Ee,{className:"h-4 w-4 opacity-50"})})]}));co.displayName=at.displayName;const ft=n.forwardRef(({className:t,...o},e)=>r.jsx(dt,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...o,children:r.jsx(jt,{className:"h-4 w-4"})}));ft.displayName=dt.displayName;const mt=n.forwardRef(({className:t,...o},e)=>r.jsx(ut,{ref:e,className:G("flex cursor-default items-center justify-center py-1",t),...o,children:r.jsx(Ee,{className:"h-4 w-4"})}));mt.displayName=ut.displayName;const io=n.forwardRef(({className:t,children:o,position:e="popper",...l},a)=>r.jsx(ro,{children:r.jsxs(lt,{ref:a,className:G("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl modal-glass data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",e==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",t),position:e,...l,children:[r.jsx(ft,{}),r.jsx(so,{className:G("p-1",e==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:o}),r.jsx(mt,{})]})}));io.displayName=lt.displayName;const uo=n.forwardRef(({className:t,...o},e)=>r.jsx(ct,{ref:e,className:G("py-1.5 pl-8 pr-2 text-sm font-semibold",t),...o}));uo.displayName=ct.displayName;const po=n.forwardRef(({className:t,children:o,...e},l)=>r.jsxs(it,{ref:l,className:G("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-[var(--accent)] focus:text-[var(--accent-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 transition-colors",t),...e,children:[r.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:r.jsx(lo,{children:r.jsx(_t,{className:"h-4 w-4"})})}),r.jsx(ao,{children:o})]}));po.displayName=it.displayName;const fo=n.forwardRef(({className:t,...o},e)=>r.jsx(pt,{ref:e,className:G("-mx-1 my-1 h-px bg-[var(--muted)]",t),...o}));fo.displayName=pt.displayName;export{vo as R,go as S,co as a,xo as b,io as c,po as d,Mt as u};
@@ -1 +1 @@
1
- import{c as a}from"./index--JkIxVXb.js";const e=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],o=a("send",e);export{o as S};
1
+ import{c as a}from"./index-lJlNPFVJ.js";const e=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],o=a("send",e);export{o as S};
@@ -1 +1 @@
1
- import{c as e}from"./index--JkIxVXb.js";const r=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],i=e("server",r);export{i as S};
1
+ import{c as e}from"./index-lJlNPFVJ.js";const r=[["rect",{width:"20",height:"8",x:"2",y:"2",rx:"2",ry:"2",key:"ngkwjq"}],["rect",{width:"20",height:"8",x:"2",y:"14",rx:"2",ry:"2",key:"iecqi9"}],["line",{x1:"6",x2:"6.01",y1:"6",y2:"6",key:"16zg32"}],["line",{x1:"6",x2:"6.01",y1:"18",y2:"18",key:"nzw8ys"}]],i=e("server",r);export{i as S};
@@ -1 +1 @@
1
- import{c}from"./index--JkIxVXb.js";const e=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],i=c("settings-2",e);export{i as S};
1
+ import{c}from"./index-lJlNPFVJ.js";const e=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],i=c("settings-2",e);export{i as S};
@@ -1 +1 @@
1
- import{c as d,j as e,by as l,bz as r,bA as c,X as u,i as s,bB as h,bC as f,bD as p,bE as x}from"./index--JkIxVXb.js";const m=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],j=d("table",m);function v({...t}){return e.jsx(l,{"data-slot":"sheet",...t})}function b({...t}){return e.jsx(p,{"data-slot":"sheet-portal",...t})}function g({className:t,...a}){return e.jsx(x,{"data-slot":"sheet-overlay",className:s("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function N({className:t,children:a,side:o="right",showCloseButton:n=!0,...i}){return e.jsxs(b,{children:[e.jsx(g,{}),e.jsxs(r,{"data-slot":"sheet-content",className:s("data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-2xl transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 glass-heavy",o==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 sm:max-w-sm",o==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 sm:max-w-sm",o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto",o==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto",t),...i,children:[a,n&&e.jsxs(c,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[e.jsx(u,{className:"size-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function S({className:t,...a}){return e.jsx("div",{"data-slot":"sheet-header",className:s("flex flex-col gap-1.5 p-4",t),...a})}function k({className:t,...a}){return e.jsx(h,{"data-slot":"sheet-title",className:s("text-foreground font-semibold",t),...a})}function w({className:t,...a}){return e.jsx(f,{"data-slot":"sheet-description",className:s("text-muted-foreground text-sm",t),...a})}export{v as S,j as T,N as a,S as b,k as c,w as d};
1
+ import{c as d,j as e,by as l,bz as r,bA as c,X as u,i as s,bB as h,bC as f,bD as p,bE as x}from"./index-lJlNPFVJ.js";const m=[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]],j=d("table",m);function v({...t}){return e.jsx(l,{"data-slot":"sheet",...t})}function b({...t}){return e.jsx(p,{"data-slot":"sheet-portal",...t})}function g({className:t,...a}){return e.jsx(x,{"data-slot":"sheet-overlay",className:s("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...a})}function N({className:t,children:a,side:o="right",showCloseButton:n=!0,...i}){return e.jsxs(b,{children:[e.jsx(g,{}),e.jsxs(r,{"data-slot":"sheet-content",className:s("data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-2xl transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 glass-heavy",o==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 sm:max-w-sm",o==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 sm:max-w-sm",o==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto",o==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto",t),...i,children:[a,n&&e.jsxs(c,{className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[e.jsx(u,{className:"size-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function S({className:t,...a}){return e.jsx("div",{"data-slot":"sheet-header",className:s("flex flex-col gap-1.5 p-4",t),...a})}function k({className:t,...a}){return e.jsx(h,{"data-slot":"sheet-title",className:s("text-foreground font-semibold",t),...a})}function w({className:t,...a}){return e.jsx(f,{"data-slot":"sheet-description",className:s("text-muted-foreground text-sm",t),...a})}export{v as S,j as T,N as a,S as b,k as c,w as d};
@@ -1 +1 @@
1
- import{c}from"./index--JkIxVXb.js";const e=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],o=c("shield-check",e);export{o as S};
1
+ import{c}from"./index-lJlNPFVJ.js";const e=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],o=c("shield-check",e);export{o as S};
@@ -1 +1 @@
1
- import{c as a}from"./index--JkIxVXb.js";const e=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],c=a("shield-off",e);export{c as S};
1
+ import{c as a}from"./index-lJlNPFVJ.js";const e=[["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71",key:"1jlk70"}],["path",{d:"M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264",key:"18rp1v"}]],c=a("shield-off",e);export{c as S};
@@ -1 +1 @@
1
- import{j as e,i as o}from"./index--JkIxVXb.js";function i({className:s,...n}){return e.jsx("div",{className:o("skeleton-glass relative overflow-hidden rounded-xl",s),...n,children:e.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})}export{i as S};
1
+ import{j as e,i as o}from"./index-lJlNPFVJ.js";function i({className:s,...n}){return e.jsx("div",{className:o("skeleton-glass relative overflow-hidden rounded-xl",s),...n,children:e.jsx("div",{className:"absolute inset-0 skeleton-shimmer"})})}export{i as S};
@@ -1 +1 @@
1
- import{c as o}from"./index--JkIxVXb.js";const e=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],h=o("code",e);const t=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],a=o("smartphone",t);export{h as C,a as S};
1
+ import{c as o}from"./index-lJlNPFVJ.js";const e=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],h=o("code",e);const t=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],a=o("smartphone",t);export{h as C,a as S};